« first day (761 days earlier)      last day (4194 days later) » 

12:00 AM
Just the page, GET request.
Browser:
5.2.11 : ~1300ms
5.4.8 : ~ 750
AB:
5.2.11: ~1150
5.4.8: ~900
which is weird...
maybe browser one is not accurate...
 
maybe it takes 150ms to start the benchmarker
 
Chrome: 1200ms
Firefox: 1300ms
@tereško but slower one is faster in AB, and faster one is slower :)
 
meh
 
blah
 
it's your problem , deal with it =P
 
12:06 AM
I don't have a problem... I've got f* problemS, plural :D
- Apache 2.2 / PHP 5.2.11 == 1258.872 [ms] (mean)
- Apache 2.4 / PHP 5.4.8 == 706.140 [ms] (mean)
think about it
 
Why does this result in .?
$scratchdir = opendir("/home/somekittens/Dropbox/MGT360/Dormless/scratchpad");

$filename = readdir($scratchdir);
echo $filename;
 
You have to do it in a loop.
There is an example in the PHP manual.
 
. is the first file in array...
 
It will list ., .., then the files.
 
also glob('/home/somekittens/Dropbox/MGT360/Dormless/scratchpad/*.*') would work, maybe even better...
 
12:18 AM
$files = scandir('/home/somekittens/Dropbox/MGT360/Dormless/scratchpad');
@SomeKittens ^
 
@ShaquinTrifonoff How does one do that magical up arrow? ^
 
@Alec It's ^ with strikethrough, so ---^---.
 
Spiffy.
 
I T E $ ~
 
I don't know if it's a wise thing that I made a CMS for my client or a bad thing, cause it means a lesser chance of future business possibly.
 
12:22 AM
less business? how?
 
They won't need to contact me typically to run future updates on the site.
 
@relentless You can't charge the client to add new pages.
 
But idk maybe there will be a higher referral rate.
 
Is talking about script kiddie stuff here against some sort of rule?
 
I don't believe so.
This isn't hackforums.net, I don't believe this room is filled with skids.
 
12:23 AM
That's a rat race. Pennies. Go after bigger things
 
Yeah true, well I just want to boot a website real quick, lol.
But I would assume you guys are too good for that.
 
There's a difference between doing something skiddie and doing something illegal.
 
Okay, I would like to boot myself.
 
In my experience, most clients think they need a CMS. they have big plans to do the updates themselves. However, they find out it's still work.
 
That's true. And @OstapHnatyuk if you're using shelled servers that aren't yours, then it's still illegal.
And if they are your servers contact your datacenter to make sure it isn't against the TOS.
However IANAL.
Oh, and contact your ISP for permission to stress your own connection.
Anyone know if there's a way in notepad++ to remove a row of tabs in a selection? Something like alt+tab? Like, the opposite of what tab does.
 
12:30 AM
shift + tab
 
Thanks!
Much better than having to go through a few hundred lines and press the delete key almost a thousand times.
 
Back! Internet was down
Thanks all, can't believe I was that much of an idiot
 
12:45 AM
Done!
0
Q: I busted the Stack Overflow frame-buster-buster-buster

Shaquin TrifonoffYesterday I was hanging out in the PHP chatroom feeling a little bored, and then saw the leave button and remembered that it didn't ask for confirmation, so I tried putting that URL (http://chat.stackoverflow.com/chats/leave/11) into an image src, as I remember was done with the logout URL a whil...

@webarto, @relentless ^
 
We'll see if it will escalate quickly :)
 
@ShaquinTrifonoff ended up using scandir
 
Like my example :)
 
exactly
 
@webarto Oops... closed as a duplicate :(
 
user1125394
12:52 AM
@ShaquinTrifonoff can the ping-all work same way?
 
@cyril You mean, automatically?
@balpha I did see that before I posted this here. Since it hasn't been implemented, I suppose it was sort of an implicit [status-declined] but I figured it wouldn't hurt to bring it up again as a fallback option of sorts. Especially since that answer is close to a year old at this point. — AgentConundrum Aug 22 '11 at 10:38
That's from the 'duplicate'
The duplicate doesn't seem to have gotten any attention either.
 
user50049
1:19 AM
@ShaquinTrifonoff I just pinged a few people to see if it's possible to shed some light on the duplicate it was closed as. I can't think of any reason to not set the header, unless there's some kind of practical internal reason not to do so.
 
@TimPost Thanks :)
 
user50049
It's been discussed that someone could do obnoxious things if able to bust the frame buster, but we didn't have chat when those discussions took place. The hilarity of tricking someone to click a link that automatically logs them out of chat might be just .. too much .. for even good natured folks to resist.
 
user50049
Amazingly, I had completely forgotten that it came up before when I noticed your post. While my memory is notoriously bad, it had been quite a while.
 
1:49 AM
@Gordon Can you sort the Backlog list to have all "cv-pls" in a list, and all "delv-pls" in another list? (on the same page). This change would make it easier for people who can't delv yet to find relevant links instead of reading the entire list.
 
Ron
2:09 AM
hi all, I'm a CI n00b and I'm trying to find out how to generate migration script when my model changes and my google-fu fails me I can only find how to do manual migration
 
user50049
@Ron CI doesn't have an automated way of doing that, your google fu didn't fail you.
3
 
user50049
I edited your question a bit, though. I believe there's some replacement scaffolding implementations scattered across github that might give you some of what you want
 
Ron
aww, that's too bad
thanks for the pointer @Tim
checking it out...
 
user50049
I find migrations to be barely convenient .. for instance just generating the initial (revision 1) schema. Rather than using everything dbforge has, I just dumped the raw SQL into $db->query(), which I think is insane.
 
user50049
I think the work flow, if using them is .. you should be doing your modifications using the migration class, then adjust your models .. which I think is also kind of wonky given the work that migrations are supposed to prevent.
 
user50049
2:21 AM
There, looks like the question is a bit more well received now. I'm interested in seeing what shows up too, as I'm about to ship something with a major change planned right after the release.
 
Ron
what I do currently (since I'm a n00b) is I create dump every time my schema changes, the problem is when I run it on the server all the server's data becomes lost (of course!)
 
user50049
@Ron Well, in your defense, the way migrations currently work kind of leads people to that insanity. So far, just doing it by hand is the only way I've made it work (beyond my regex fueled madness of getting the damn schema imported in the first place)
 
user50049
It's definitely not as complete as it could be, but it was a recent (rather bolted on) addition.
 
Ron
@Tim what do you think of tools like schemasync?
would that work for my use case?
 
user50049
@Ron Take a look at this
 
user50049
2:31 AM
I know I've seen a few things floating around github that could be pieced together to make something sort of sensible, I just have to find those bits. Now that I'm actually hitting a similar concern, I might spend some time on it
 
user50049
And yeah, schemasync would work for you, but .. again, you're just feeding sql blobs through preg_replace() and doing a hail mary query.
 
Ron
awesome, that codeigniter-schema looks promising too, thanks for spending some time looking into my questions @Tim that's very kind of you
if you'd put your answer on my question so I can accept it, well +10 would be a drop in ocean to your 17.6k but that's a way I can return thanks to your answer
 
user50049
@Ron I'm actually hoping to see a few "No, but here's how I did it" answers show up in a last attempt to avoid doing it myself :P
 
user50049
But .. if you want django style migrations .. well .. umm.. just use django :P
 
Ron
@Tim alright then let's see if somebody has a better idea. can't use django this time, client insists on CI.
 
3:05 AM
@TimPost augh the phrase 'when your model changes' makes me cringe :p
@Ron there are third party migration packages for mysql, if that's what you're using
 
user50049
@Lusitanian Well, I left it in as he's kind of alluding to a django style implementation (I added schema).
 
django makes kittens cry ("the web framework for perfectionists with deadlines" -- really!!?!?!? )
as you know i like whining about frameworks though
 
Ron
yeah, me CI n00b sorry for the wrong lingo, I guess that's causing the downvotes?
 
user50049
@Ron Umm, it only had one down vote
 
user50049
Then two up votes after I edited it
 
3:14 AM
Nah, the lingo is typical framework lingo
 
user50049
Yep, those framework apologist wretches should slurp it up like copious amounts of warm milk.
 
Ron
it had two downvotes at a point, doesn't matter though
 
Wow, an athlete can do a 7th grade Algebra problem and he's the best at math in his league.
.________________________________.
 
hey guys just a little question about lgpl licence
is it free to use in my commercial project?
(without modifying)
 
user50049
I'm actually frightened by the number of programmers I meet that can't factor a simple polynomial, @Lusitanian
 
3:18 AM
@TimPost Seriously? I think people have just become complacent because of WolframAlpha :P
 
Ron
3:34 AM
@Shimmy AFAIK LGPL = use outside linking, otherwise LGPL your source
 
user895378
IF you've ever used non-blocking socket streams and are aware that my answer here is definitely correct, feel free to upvote :)
 
Ron
disclaimer: I'm not a lawyer
 
user50049
@Shimmy Yes. The LGPL has a linking exception that states, simply linking against and using the library does not constitute a combined work. This is how proprietary programs are able to link against the GNU C library on Linux platforms.
 
user50049
I'm the license compliance officer for my company
 
user895378
Note to self: lay all questions regarding licenses at the feet of @TimPost going forward.
 
user895378
3:38 AM
Thanks! kbai!
 
@TimPost Go get a law degree.
 
user50049
@Lusitanian Why on earth would I want to do that? :P OSI approved licenses are enough of that fudge for me.
 
anyone a textmate-to-sublimetext2 convert?
 
@TimPost Hehe, it seems like something good to throw money at in the vein of your blog post on financially stupid programmers.
 
user50049
It seems like there's more undefined behavior in law than programming. Nooooo thanks :)
 
3:44 AM
Meh, I hate that it's up for interpretation and there's so much 'gray area' -- clearly defined sets of rules are much nicer.
 
user895378
Sadly, life is one giant gray area. Programming is a brief reprieve from the inefficiency and uncertainty we otherwise wallow through each day.
3
 
user895378
Welcome to @rdlowrey's philosophy corner. The time is now 10:48 EST. We're taking your questions, so grab a chair, a good drink and join the fun.
4
 
user895378
/me dims lights, turns on the elevator music
 
@rdlowrey heh, is this like a radio show?
 
user895378
Go ahead, caller.
 
3:52 AM
lol
 
@rdlowrey Hmm. In programming, error handling is a thing of beauty. We can catch exceptions and determine the cause of the problem without a hitch. Why, in real life; do the most minor issues in our daily routines cause us incalculable pain for weeks on end?
 
user895378
Mo' money, mo' problems.
 
user895378
I got 99 problems but a glitch ain't one.
 
Extended version: If you're havin' Perl problems I feel bad for you son, I got 99 problems but a glitch ain't one.
 
Hey, I posted a message in the sandbox with PHP!
 
3:57 AM
Is it possible to control the url after form submitted in get method ? I have 2 inputs; one hidden type I wish not to show the hidden input in the URL but I have to show the other one ?
 
@Dharma Can you use POST?
 
no as I have to bookmark URL.. :(
I guess I cant bookmark post url's or is there any kind of workaround for that ?
 
Not that I know of :(
 
user895378
It should be noted that while POST won't display the value in the url, the HTTP message's entity body will still be clearly visible to any party between the client and the server if you aren't using SSL encryption (https://). The point is: if you're hiding it in a POST body for security reasons you aren't helping yourself at all.
 
Actually I have a requirement where the URL should display the main result of form but hide the hidden input value from url as well the link should be bookmarked.
 
4:02 AM
@Dharma Then you have to use GET :P
 
heheh I am using GET but the hidden value is also shown in URL :(
 
@Dharma You can't really avoid that.
 
This is most certainly a sort of X/Y problem.
 
hmmm. Thanks anyways. will try someother method to overcome :(
 
user895378
That's like leaving the State/Province out of an address because "it clutters things up." A resource is identified by it's URI and the query string is an important part of that. Your requirement is unreasonable ...
 
4:08 AM
anyone happen to know C#, or vb here?
 

C#

General discussions about the c# language, Squirrels | gist.gi...
 
@user1079641 You probably want to go to the C# or VB room :P
 
user895378
Bill Gates hates me, so ... no.
 
@rdlowrey why's that?
 
user895378
@Lusitanian I'm just making things up at this point because I'm avoiding unit tests :)
 
4:09 AM
ah
 
user895378
For the record, writing good software takes a long time.
 
yup
 
@rdlowrey In regard to something you said earlier, how would one see the HTTP message's entity (POST) ? You said b/w the client and server... so that would mean that the client won't be able to see it?
Like maybe it pops up in the Network section in Chrome Dev Tools. So the client could see it if he knew where to look, right?
 
user895378
@ShyamK Or if the client downloaded a freely available packet sniffer like Wireshark they could watch the outgoing traffic.
 
user895378
4:24 AM
My point was that putting information in a POST message body does nothing to help prevent someone who wants to see it from doing so.
 
That would be something like using an external module to sniff it out?
 
@ShyamK Hi.
 
user895378
Right. POST is no more secure than GET.
 
@srinu hello again :D
 
@ShyamK how to get id from url.
 
4:27 AM
@srinu what id? do you mean something like www.mysite.com/?id=1 and then get id? use $_GET['id']
 
@ShyamK row->id.
 
huh?? which row? which id?
 
i am using this url $link = JRoute::_( 'index.php?option=com_book&view=pages&cid[]='.$row->id); how can i get this id to next page.
that id should be index id in that next page.\
 
try $_GET['cid[]']
 
@ShyamK i tried that one but no use.
 
4:35 AM
@srinu $_GET['cid'][0]
 
what is the purpose of the [] ? Can't you just send cid? unless you are trying to pass an array?
 
Ok.can u plz suggest me how to do?
@ShyamK
 
5 mins ago, by Shaquin Trifonoff
@srinu $_GET['cid'][0]
that will get you the value that you want...
if you are using $link = JRoute::_( 'index.php?option=com_book&view=pages&cid='.$row->id); instead, then use $_GET['cid'] to get the $row->id value. Cos when you are using cid[] you are sending an array.
 
Ok.
 
@ShyamK hello again, seems like the Python room has really died recently :P
 
4:49 AM
@srinu Also you may use print_r($_GET); to print all the values passed in the GET. You know to check if something is there or not. Also you use print_r($_REQUEST) to print both the GET and POST content
@Nick yup... I've been keeping the snake in his cage... haven't been playing with it... and the questions that ppl post there are usually Django and Py web stuff... nothing I can help them with...
So what has the SHIELD director been upto? oh right, you are back to being plain ol' Nick... Pain/Naruto Nick :D
 
@ShyamK I feel ya, they usually end up in here anyways lol
2 hours ago, by Tim Post
But .. if you want django style migrations .. well .. umm.. just use django :P
 
that was a lot of ppl exiting the room at once...
 
It was...
I've set up test1.shaquin.tk through test9.shaquin.tk. I'll leave everyone to guess what for ;)
 
@Nick Py chat is usually dead except for when It'sYourFault is there...
@ShaquinTrifonoff No styling for test1
 
@ShyamK Not yet. That's what test2 is for.
test1 => stackoverflow.com
test2 => cdn.sstatic.net
 
4:59 AM
Hi! Does anyone have a bit of knowledge with Prestashop maybe. I am trying to change the way Prestashop routes languages. Basically i need to duplicate Prestashop into language folder- so every country would have its completely own installation. Then the url could look like this domain.com/en/
but Prestashop would then add /en or /de /br etc after that, making it look like domain.com/en/br
i would like it to be domain.com/en-br for example
like store.apple.com/hk-en or store.apple.com/hk
 
@ShaquinTrifonoff Uncaught ReferenceError: StackExchange is not defined on test1.shaquin.tk:20, test1.shaquin.tk:2927,http://test1.shaquin.tk/:2947
 
@ShyamK It's... not finished yet ;)
 
oh... okay... I can wait :D
@ShaquinTrifonoff you keep making different little tests and stuff... I always wonder where you get time... I never seem to have time for anything besides sleeping and gaming... :( I really need to do something besides waste away
 
@Nick what have you been upto lately?
 
5:10 AM
@ShyamK just boring ol client wants a website, just trying to figure out what look I'm going to go with. Yourself ?
 
responsive design, bootstrap... redesigning a crappy site... trying to atleast
 
@ShyamK ahh yes, framework ?
 
well ya Twitter bootstrap seems to be one... Everytime I use float the thing screws up... Maybe I'm just using it in the wrong places
 
This is really really cool! ;) — jmort253 17 mins ago
4
Q: I busted the Stack Overflow frame-buster-buster-buster

Shaquin Trifonoff Possible Duplicate: Should Stack Exchange be using the X-FRAME-OPTIONS header? Yesterday I was hanging out in the PHP chatroom feeling a little bored, and then saw the leave button and remembered that it didn't ask for confirmation, so I tried putting that URL (http://chat.stackoverflo...

 
@ShaquinTrifonoff duplicate ?
 
5:18 AM
@Nick Apparently.
But the 'duplicate' was last active in 2011, and there are no answers.
 
@ShaquinTrifonoff shaquin.tk/experiments/geo.html fetches my coordinates better(not accurate but close enough), but then again its geolocation. Maybe you can use that for your map instead
 
@ShaquinTrifonoff Nick was the first to fall for it (sorry Nick).
^^ sorry for the triple ping lol, twas quite alright
 
@ShaquinTrifonoff so this was how you did that... nice
 
@ShyamK Once I get my template system working, I'll make it annoy everyone, asking for their location.
 
Thumbs up to that :D
 
5:37 AM
It's slowly getting there: test1.shaquin.tk
 
5:48 AM
Object moved to here. at test1.shaquin.tk/users/authenticate looks a little fishy.
 
@ShyamK How did you get it to display that?
When I try to log in it just doesn't work.
 
@ShaquinTrifonoff I can browse all the questions and stuff... are you gonna remake(or what ever witchcraft you're using :P) the entire site at your domain? chat.test1.shaquin.tk hehe
 
It's a proxy.
Hmm... I've collected 3 downvotes... wonder why...
 
@ShaquinTrifonoff Log in->Log in with Google->Object moved to here. Clicking here will give the confirmation message standard to OpenID thingies 'Test1.shaquin.tk is asking for some information from....', click 'Alow' and it returns to the same 'Object moved to here' page. Doesn't proceed any further from there
 
Ah, I was clicking Log in with Stack Exchange.
@ShyamK It has no idea what to do with the auth data :P
 
5:59 AM
@ShaquinTrifonoff jealousy? :P
 
6:23 AM
@ShaquinTrifonoff I still can't get to your website from my computer --- the IP address leads nowhere
 
tracert shaquin.tk
 
kay
 
Microsoft Windows [Version 6.2.9200]
(c) 2012 Microsoft Corporation. All rights reserved.

C:\Users\Shaquin>tracert shaquin.tk

Tracing route to shaquin.tk [31.170.163.195]
over a maximum of 30 hops:

  1   100 ms    95 ms   100 ms  192.168.1.254
  2    53 ms    40 ms    38 ms  125-238-104-1.jetstream.xtra.co.nz [125.238.104.
1]
  3     *       48 ms    46 ms  mdr-ip20e-int.msc.global-gateway.net.nz [202.37.
244.222]
  4    50 ms    45 ms    45 ms  ae4-10.akbr5.global-gateway.net.nz [202.37.244.2
That's what I get ^
 
Tracing route to shaquin.tk [31.170.163.195]
over a maximum of 30 hops:

  1     7 ms     4 ms     3 ms  192.168.11.1
  2     4 ms     3 ms     3 ms  192.168.1.254
  3    50 ms    27 ms    31 ms  INTERNET-GATEWAY-REDACTED-FOR-FUN
  4     *        *        *     Request timed out.
  5     *        *        *     Request timed out.
  6     *       29 ms    25 ms  75.25.192.95
  7    28 ms    24 ms    27 ms  12.83.69.29
  8     *        *        *     Request timed out.
  9     *        *        *     Request timed out.
after 7 they all timeout
 
6:28 AM
i have access to it
 
seen 2m ago, talked 1m ago
He he :D
 
wollut
needz moar possibility
 
user50049
@LoverOfEvening I knew that was going to be posted yesterday.
 
@TimPost How?
:)
 
6:35 AM
@TimPost how???!!!
 
@TimPost has The Sixth Sense (M. Night Shyamalan's last non-terrible film)
 
user50049
@LoverOfEvening We use the same spell caster, of course!
2
 
:) lol
 
But let's be honest, you can actually talk to dead people.
 
@Lusitanian any experience? we have lot of stories here, and night shyamalan is from my place too !!!
 
user50049
6:38 AM
@Lusitanian They like to be called existentially challenged
 
@TimPost My apologies -- tell them not to mess with me tonight.
@LoverOfEvening Heh yeah I think most of the people on at this time here are from Asian countries because of timezones.
I'm an oddball because I generally don't sleep much
 
user50049
I'm going to see if a hot shower can work out this kink in my neck. Back in a while
 
@Lusitanian Something tells me that you're not the only oddball here :P
 
No I'm not.
 
user895378
@Nick I get that same vibe.
 
6:40 AM
@TimPost Enjoy
 
@Lusitanian go get some sleep bro.. me from workplace, after a very tight sleep
 
@Nick Fixed that for ya.
 
7:29 AM
Why would position() not work here?
 
leftPos = $el.parent().position().left;
@Nick
 
@ShaquinTrifonoff duhh thanks :D
 
The left of <a> elements will always be 0 (relative to the <li>).
@Nick No problem :D
 
i was just wondering if this is (or can be considered) a controller? pastie.org/5381137
 
7:59 AM
what do you mean 'considered a controller'?
@TimPost still showering?
 
user50049
@Lusitanian Yes, I'm enjoying it so much that I brought my computer in
 
hehehehe
 
user50049
I'm on one of those problems where you sit and stare at it for a few hours thinking 'how in the hell can I fix this without completely re-writing it'
 
The answer is probably completely re-writing it.
What's the problem, though?
 
user50049
@Lusitanian Ah it's actually an innocent misunderstanding on my part months ago. I thought I understood how something in our billing system worked, and built part of my app (purely API driven) around that understanding. I was, umm, wrong.
 
8:03 AM
That must be a fun feeling...
 
user50049
@Lusitanian That's the thing with misunderstandings, they're only as destructive as they are concealed over time. So now I have to think about how I'm going to explain it.
 
Ah. I'll be here (looks at clock, holyshititsnow3am)
 
user50049
So before I do that, for my own sanity, I sit here and look for some ... even perhaps hackish .. way of avoiding a lot of work at the last possible minute.
 
Incur a technical debt and do it hackily.
You might even end up on TDWTF :)
 
user50049
@Lusitanian Yeah.. I hope it's possible. I'm planning another major release not long after launch, which would provide sufficient time to take the band-aid off
 
8:07 AM
I'm now convinced that the engineers at Google Music put in a 'feature' to their "Shuffle All" algorithm designed to pick the worst music you have in your collection while you're in the middle of something and don't want to find the tab its open in to change the song.
@TimPost Then just get it done. Is this in (one of your) CodeIgniter project[s]?
 
user50049
@Lusitanian Unfortunately, yes. Just what I need at this point, more constraint :)
 
How fun, when's the deadline?
 
user50049
@Lusitanian track.isADonkey()
 
user50049
@Lusitanian Tomorrow.
 
I'm trying to adjust timezones in my head now.
4:11 PM, right? [same as Hong Kong]
 
user50049
8:14 AM
Yep, exactly
 
8 hours to fix = fun
 
@Lusitanian well: i wasn't exactly sure what a controller was, but upon further reading i see it is pretty much a controller.
 
@MoshMage It depends on which context you are using the word 'controller' in
but I just realized I don't want to get into the discussion about MVC that's been had at least 10 times in here
 
lolol theres one of those every day
@Lusitanian why are you up so late ?
 
Because I don't have normal sleeping patterns. Why are you up so late?
 
8:19 AM
to be honest i just wanted some assurance i wasn't messing things up, or mixing things up. but then i did what a normal person would and googled for MVCs examples and compared my code with theirs. Turns out my controller (as in: the thing that decides what is called - that's what i gather a controller is) is pretty much the same as everyone elses so i am at will with my self now.
I also don't want to start a MVC discussion so we are in the same page :)
 
Gooooood morning
 
@Lusitanian lol me neither, as long as the work gets done. It just does not matter to me
besides it's quieter at night
@webarto mornin'
 
@webarto heya o/
 
o/
 
@webarto Good morning
 
8:32 AM
What's going on?
 
nothin
 
I'm still trying to figure out if i'm a normal wack-job or a unnormal one at that: how normal is it to write your own "framework"? (by framework i mean something that help you code faster. I say it quoted because i'm not sure if this qualifies as one);
appart from that: just having a smoooth mornin :)
 
@webarto am I going to be depressed at that
 
I was looking for ways to try to detect spam with PHP if possible...
 
8:36 AM
@webarto SERIOUSLY WAT WHY WOULD THAT EVER BE EFFECTIVE AT DOING ANYTHING
Do you mean spam emails?
 
Yup :)
 
Why not invoke something like spamassassin to score 'em?
 
goodmorning guys
 
mornafternooevening
 
Oi Oi
 
8:38 AM
@Lusitanian I thought that was cPanel thingy, you know, just looking at it now.
 
"cPanel thingy" ._.
 
user50049
cPanel ... ALL THE THINGYS!
3
 
@webarto It uses the logic if(condition) { return true; } else { return false; } ..!
 
@ShaquinTrifonoff That's very, very important. You can't return condition or someting could go wrong. (/sarc)
I really should sign all messages that are sarcastic with that lest it not translate well.
 
8:40 AM
Hey, what do I know, I just work here.
 
@webarto The one question you really need to consider in spamfiltering
is Has anyone really been far even as decided to use even go want to do look more like?
 
@webarto Heh... scroll down... ERROR: si-captcha.php plugin says GD image support not detected in PHP! Contact your web host and ask them why GD image support is not enabled for PHP. ... twice.
 
@Lusitanian WAT
@ShaquinTrifonoff Function is just ridiculous.
[dmarjanovic@dev ~]$ spamassassin -V
SpamAssassin version 3.2.5
  running on Perl version 5.8.8
 
@Jocelyn hmm, can do. not sure when I find the time though. You can use this Javascript in the meantime:
var links = document.getElementsByTagName('a');
for (var i = 0; i < links.length; i++) {
    if (links[i].hasAttribute("class") && links[i].getAttribute('class') === 'delv') {
        links[i].parentNode.style.display = 'none';
    }
}
 
@Lusitanian Ok, what next? :)
 
8:44 AM
@webarto It looks like, essentially, you should just pipe something into it and it'll spit out a score. DISCLAIMER: I could be totally wrong.
 
@Lusitanian Looks like it.. I'm not dealing with regular viagra/boobs/dick spam, little more complicated, I just want to check with several services/ways, and mark as spam by hand. Thanks for the input.
 
Gotcha. The proper way is generally: if( strpos($message, 'CANNED MEAT') !== false ) { echo 'spam spam spam spam spam'; }
 
<marguee><blink>spam spam spam spam spam</blink></marquee>
 
is there any way of rewriting the first line of a file (i just want to uncomment the line) besides storing it to a variable and writing it all-over again?
 
sed
No, you have to read and write.
 
8:55 AM
hmm.. Well, if it has to be.
 
LOL
 
@webarto LOL
@MoshMage it's possible
fopen with mode r+ then do whatever you want with fseek and fputs
 
Ill read into those, thanks :)
 
@Lusitanian You still have to read it and write it, and you have to have a handle, variable that is :)
 
^twas what i was thinking
 
8:59 AM
@webarto But you don't need to read the entire file into memory, which is I think what the concern was.
 
^indeed
 

« first day (761 days earlier)      last day (4194 days later) »