« first day (1259 days earlier)      last day (3703 days later) » 

12:27 AM
How does the number next to the title of this chat change automatically?
 
the title changes
 
@ircmaxell How does that happen... page updates? websockets?
 
12:46 AM
websockets to JS, which then updates the title
 
@ircmaxell Okay, thanks for the help.
 
1:32 AM
The above are the 2nd and 3rd times the question has been asked
 
2:00 AM
Hello. Who know something about scale in WebScaleSQL? I cannot find info about this on webscalesql.org
 
 
2 hours later…
4:23 AM
how to display ads in php language?
 
4:54 AM
@JoeFrambach doesn't work :/ — user3370147 3 mins ago
^^ haha, beautiful ... even var_dump() doesn't work :P
 
5:24 AM
Rule of three is a code refactoring rule of thumb to decide when a replicated piece of code should be replaced by a new procedure. It states that the code can be copied once, but that when the same code is used three times, it should be extracted into a new procedure. The rule was introduced by Martin Fowler in Refactoring and attributed to Don Roberts. Duplication in programming is a bad practice because it makes the code harder to maintain. Triplication is worse because it makes it harder yet. When the rule encoded in a replicated piece of code changes, whoever maintains the code will ...
@jakobaindreas_11 display_advertisment()
 
mornginhh
 
user652649
mornscotchh
 
7:01 AM
Morning
 
GodMorgen
 
7:20 AM
Hack is not Googleable ^^ heh
 
hello everyone!!
 
@Jack LOL
 
I think hhvm code should start with <?huh
wait, hang on, hack's motivation is the Maybe monad?
 
Incoming, my 2¢
Hack's userbase doesn't consist mostly of stale muffins (yet) — Dan Lugg 1 min ago
 
good_morning(); // finally refactored
 
7:31 AM
Okay, get ready...
 
I found a nice way to piss of an RDS admin hehe; delete the rdsadmin user =D
 
Mar 21 at 14:04, by Dan Lugg
Mar 14 at 13:43, by Dan Lugg
Mar 7 at 14:15, by Dan Lugg
Feb 28 at 15:17, by Dan Lugg
Feb 21 at 14:01, by Dan Lugg
Feb 14 at 3:32, by Dan Lugg
Feb 7 at 5:00, by Dan Lugg
Jan 31 at 12:54, by Dan Lugg
 
three or more? use a for!
 
@DanLugg No weekend for me. /me cries
 
for(each)
 
7:32 AM
mornings
 
@Leri That's irrelevant, one can have a happy friday followed by no weekend :)
 
mhm, no happy Fridays also. :)
 
Ooh, hacklang has generics ... intewesting.
 
how does find behave if it is using a relative path and the working dir changes while it runs?
 
7:37 AM
how is that possible?
oh, you mean the directories are modified?
 
dat feel of typing in your password, realizing it's not in the field you expected, but not being able to find where it went. dat feel.
 
abort, abort!
 
Off to my f*ckin' job. Later.
 
@Jack no, like find . so the directory is relative to the working directory when the find command is invoked.
if now find runs in the background, how does it behave if pwd changes?
 
I'd reckon it uses whatever CWD was at the point of launch.
Because cwd is process specific, not shell specific.
 
7:53 AM
That's how we're doing complex things with simple tools on SO
happy Friday (:
 
pce
morning
 
8:16 AM
good morning :)
 
oh joy its friday! not going to work today! later all.
 
what do you mean by "not going to work today", what's the error message? ;-)
 
ThW
Good Morning
 
morning
 
... Checking out files: 77% (10351/13320)
I hate it when it stops in the middle of it.
 
8:33 AM
anyone know why when i submit a form using ajax the forms data gets added in the pages url? how do i clear/stop that from happening
 
@hakre Pondering ... :)
 
@Jack Not funny :)
 
Okay ... =(
 
finally it moves again, phew. I hope this is not now each time.
 
8:41 AM
Posted by SO_TEST .. hmm
 
mromroingi
 
@Jack we should send it deeeeper :p
hi, @PeeHaa
 
Let's see how they deal with delv
 
@AlmaDo this is what happens,when Nigerians discover SO
 
8:47 AM
@tereško you racist :D
 
most of nigerian spammers are from china
 
@AlmaDo Also check out this answer ... the conclusion is ridiculous.
Also, why do cv-pls but don't put in your own vote? ;p
 
I've done it
it's only my cv there
oh lol
I cv-d question with wrong link..
 
lol
 
8:50 AM
done
but that should be cv-d as well :D
 
Morning
 
morning, @Fabien
 
Hmm, it seems that my pr is sort of wanted, perhaps I should have another look at it ;-)
 
why would a sql query work on my localhost but not on my live version?
 
many reasons
diff version, diff schema, firewalls, unicorns.
2
 
8:55 AM
i imported the same tables and stuff into my database
unicorns <3
 
hm. I wonder: for example, we have some elementary function (i.e. sin(x) or ln(x)). Using it - can we always suggest some algorithm which will return inverse it?
 
fuck lubuntu with a rag
 
so, for example, create a function which will return sqrt using only square (pow(x,2))
 
@AlmaDo abs() fails in that respect hehe
 
goodnight folks.
 
8:56 AM
night
 
@Jack I assume that function has invert function
night, @DanLugg
 
@AlmaDo I don't get the problem.
 
it's not a problem - just curiosity. Let me be more specific..
 
yes, please.
 
function invert(callable $f, $x)
{
   //using only $f return value
   //so invert($f($x)) == $x
}
 
8:59 AM
sooo the error is that its expecting the results to have 1 response.
 
and some restrictions on $f: it's numeric, valid and has invert function
 
@AlmaDo You mean invert($f($x)) == $x?
 
yes, my bad
 
function invert(callable $f, $x)
{
  $f($x); // throw away
  return $x;
}
haha
 
but with those restrictions - $f can be anything. One more thing: we don't care what will be if we have $f value out of range for invert
@Jack huh.. ?
 
9:02 AM
in what known universe would this be possible without knowing what $f does?
 
in our. since there are such things as
but calculating F'(x) makes me sad :(
 
In the discrete domain .. yeah, maybe.
 
of course. We'll have discrete domain and we want approximate value (up to some precision, let's say 1E-12)
but may be there are better approaches
 
This kind of thing is usually greeted with a 'meh' from me ;-)
 
 
9:05 AM
And with that said, it's time to drive home.
 
^ I've freaked him :p
 
Hey guys.. sorry for the ignorance. Is my answer wrong ? stackoverflow.com/questions/22705516/…
 
@ShankarDamodaran Not sure but your "one liner" is pretty horrible :P
 
lol hmmm
 
For starters that is not a one liner
Like replacing al new line characters with space characters in a 100 line php file also doesn't make it a one liner ;)
 
9:16 AM
:) Ok i will remove that "one-liner"
 
Not sure why you got the downvote though. Also didn't really look as that what happens :P
 
Thanks @PeeHaa :) Changed it
 
9:31 AM
@Jack I've realized one huge mistake for my thoughts: inverse function is strictly bound to some interval. We can't say about invert function for x^2 because for [0, infinity) it's sqrt(x) while for (-infinity, 0] it's -sqrt(x)
 
Happy Rebeccaday!
 
hi, @DaveRandom
 
$ git status
error: bad index file sha1 signature
fatal: index file corrupt
it's friday :)
 
^ looser :p
 
Some guardian angel upvoted my answer. Thanks whoever it is :) stackoverflow.com/questions/22705516/…
 
9:36 AM
Hey @ShankarDamodaran I'm a big fan of telling someone the truth directly, so I'm just going to say it.
Many of us here believe that you should shape up.
 
@SecondRikudo Shape up ?
morning btw
 
Yeah right, I am deleting my old syntax error answers.
 
morning @HamZa
 
You've almost 30K rep, but you don't participate in the moderation of the site, that on itself is okay, we don't expect everyone to participate unless they want to.
However, you have to stop answering those obviously getting closed questions :)
 
^ Oh that ...
 
9:38 AM
I'd like to invite you to stick around in this chat room, see what kinds of questions we close, what kinds of questions aren't a fit for the site, what should be answered and what not.
We'd love to have another helping hand around here if you'd like, and one less stick in our wheels.
 
Sure mate will do that.
 
Thanks, appreciate it :)
 
I regularly CV on questions though.. stackoverflow.com/review/close/stats
 
Morning
 
Mo'nin
 
9:43 AM
@hakre wow, this must be your lucky day
 
It is F r I d a Y People!
 
@AlmaDo the formulas you've showed earlier didn't make the mention of negative domain, so i guess that makes sense.
 
@SecondRikudo For some reason, I always click on it :P
 
@Jack yes. the bad thing is: well, yes, if I assume that I have continuous differentiable function in point X - we can't be sure if it will have some sort of universal inverse function
i.e. we'll get some value for mentioned x^2. But we'll know nothing about - from which inverse function it was derived as x^2 has different inverse functions on two intervals
 
@HamZa What'd you think it was going to be?
 
9:48 AM
so we'll get some sort of ... hm. conditional function. x<0? -sqrt(x):sqrt(x)
 
@SecondRikudo didn't think ...
 
sup @HamZa
guys in strtotime or by other means, is it possible to get the date of next to next week ?
Like in strtotime you can use next week
 
@vongolashu Good, at school, just finished an assembly assignment :D
 
just to confirm, you are same Hamza as on WJ right ?
 
9:52 AM
@vongolashu WJ ???
 
nevermind, Wjunction I meant
 
@vongolashu hehe no :)
 
there was a popular coder named Hamza there too :D
btw is it possible to get date of next to next week ?
 
@vongolashu $dateTime = new DateTime; /* Now */ $dateTime->modify("+1 week"); // Now format however you want
 
9:53 AM
thats next week
I am already getting that via date('j n Y',strtotime('last week')).date('j n Y',strtotime('this week'))
 
+2 weeks then.
 
but that has a problem
if its end of month, it will show date with next month included, I dont want to cross the same month
next week doesnt goes beyond march 31 as today is march 28
 
@vongolashu So have an if statement checking for the month, and if it crossed, place it at the last day of the month.
 
@HamZa Nope, HamZa stands for Ham + Za(lami) ;-)
 
something like if(rMonth > cMonth) {
$date = $lastDayOfMonth.$cMonth.$cYear;
}
 
9:57 AM
@Jack hehehehe btw, there were some people that couldn't remember my name here (NL) so I told them think about "boterHAMZAkjes" :D
//cc @PeeHaa ^
 
hehe
 
or letme tell you my second problem why I aint using +1 or +2 weeks which be would be mhe exact result

I need those date components in a mysql query and am using between clause

But since current day is 28 and +1 week will give 4 as day
Between 28 and 4 doesnt works
 
my kids also doesn't works
 
or should I use max and min functions for day and months in my sql query ?
 
what do you think: stackoverflow.com/questions/22709305/… (I had similar issues long ago and I don't remember if I've resolved that)
 
10:02 AM
Oh wait no
 
nah not that xD
 
It sounds simple but it's actually more complex that you'd think
 
and I thought about max and min but if you max and min 28 and 4 (march, april) then it will find values between 4 and 28 which will be wrong
I think using that match match requiredMonth > currentMonth and if yes then setting date= lastDayOfMonth will be proper
 
$oneWeek = strtotime('now +1 week');
if (date('j', $oneWeek) < date('j')) {
    $oneWeek = strtotime('last day of this month');
}
echo date('Y-m-d', $oneWeek);
 
a sec testing
 
10:06 AM
Yeh that's right
Although interestingly it doesn't seem to work in 5.2
 
Who uses 5.2 nowadays? Besides 3v4l
 
is there any diff between now +1 week and +1 week ?
 
@Jack Given that I've recently had to write some code for 4.3, I'm sure someone is
 
(date('j', $oneWeek) < date('j')) should be (date('j', $oneWeek) > date('j')) I think
 
=O
 
10:08 AM
@vongolashu No but it means you could do something like this:
 
@Jack well..
Jan 19 at 12:32, by Alma Do
user image
 
considering today's date, wont that try to evaluate if (4 < 3) { true }
 
^^ Love that movie
 
yeah. I was young. Such a lovely time..
 
Yep, that movie redefined trimming the roses.
And crude jokes like "I let him go" and "Don't disturb my friend, he's dead tired"
 
10:10 AM
function add_weeks($weeks = 1, $base = 'now')
{
    // treat non-strings as a unix timestamp
    if (!is_string($base)) {
        $base = '@' . intval($base);
    }

    return strtotime(sprintf('%s +%d weeks', $base, $weeks));
}
@vongolashu ^
 
@Jack you've forgotten "I lie" (:
 
Oh yes hehe
0
A: how to localhost saved values check using javascript

saranPlease explain your doubt clearly.....

Why +1 ? I hope it was OP, but still ...
 
okay
now how to use that function @DaveRandom
 
Ahh I can't flag :P
Too many of your recent flags have been declined - please review them instead of flagging this post!
 
hahaha
 
10:12 AM
:)
 
pretty good explanation that you're doing it wrong. So reconsider
 
I only have 40 declined flags, out of 2200 :)
 
@DaveRandom something like this for next week add_weeks(1,now) ?
 
I have 7.. but I have very few total flags
 
10:13 AM
@ShankarDamodaran Impressive flag history nonetheless :)
 
@Jack :) ty . but 241 disputed :(
 
Don't worry about disputed.
 
Haha, in this question I first fooled the quick answerers and then went against my own comment and got the accepted answer .. mwahaha
 
Damn :P @Jack . Hehe
 
10:16 AM
@DaveRandom great but I am still confused about this
(date('j', $oneWeek) < date('j'))
doesnt that means if(4<3) ?
oh wait nvm
j is Day not month -_- my bad
 
:-P
 
haha testing it now :D
okay it worked for +1 week from now, now testing it for next week
@DaveRandom btw for my next week range, I need like next week and then next to next week
which will be +1week and +2 week
so that if statement wont be valid for this right ?
 
@ShankarDamodaran Disputed is like neither positive nor negative ... though I would reason that if I counter flag a NaA and the answer is not removed I should get a useful flag++
 
@Jack, Ah didn't know that before :) Ty
 
Yeah, it's when a mod handles all flags and not all were unanimous ... it then clears all flags and makes up his own mind.
 
10:30 AM
:) The multi-dimensional array question u answered was really impressive mate :) @Jack
 
hmm .. which one?
js?
 
Hey guys, I'm trying to figure something out. I store sessions in the database for my application. And I seem to have a swarm of sessions coming in, and when I tail the access log, it's mostly the google bot. Does this mean google deletes its cookies every time making my server/application create a new session every time? and is this the way it should be? I'm using ZF 1.11
 
@vongolashu does 3v4l.org/g7K55 do what you want?
 
Nah , yesterday I commented on that too.. Hmmm its like creating a 3 dimensional array from a string.
 
Ahhh was supposed to write some explanation there heh
 
10:33 AM
actually @DaveRandom I did it this way, is this correct ? as in test code it do shows correct dates from today

$cDate = add_weeks(1);
$rDate = add_weeks(2);
if (date('j', $rDate) < date('j', $cDate)) {
$rDate = strtotime('last day of this month');
}
list($cDay,$cMon,$cYear) = explode(' ',date('j n Y',$cDate));
list($rday,$rmonth,$ryear) = explode(' ',date('j n Y',$rDate));
 
@vongolashu That works as long as your base data is always "now". If it isn't then you need to account for that in the last day of this month part. If you base date is some time in 2015, you don't want to get the last day of the current month
 
nah I am running all calls from today
 
@Jack, Hehe nevermind that :P
 
since I always need to compare date from today to requiredWeek/time
 
> Birthday attacks are basically people who managed to get into your birthday party uninvited and eat your cake because they convinced the guard that the likelihood of two people having the same birthday is extremely low ;-) and by cake, I meant your server =p
heehee
 
10:41 AM
do something like first day and last month of next year exists for strtotime ?
 
@Jack and I know easy way for inverse function which in monotonous (:
don't even know if this should be closed. OP has code.. but has not brain?..
//offensive, may be :\
 
@AlmaDo and the answer? /me scared
what is he thinking?
 
those has the answer? good lord..
 
anyone still here ?
someone good with php-mysql
 
@ShankarDamodaran should be closed
 
11:23 AM
@HamZa :)
 
i have a problem with sql for filtering records in php
                        $sql = "SELECT * FROM Tbl_nascholingen N,Tbl_leerkrachten L, Tbl_Disciplines D WHERE N.Leerkracht = L.Stamboeknummer AND N.Discipline = D.IDDiscipline AND N.Discipline ='".$_POST['zoeken']."' OR N.Leerkracht ='".$_POST['zoeken']."'";
but the works, but the results are not correct as i expected.
have anyone an idea?
 
That looks like something horribly vulnerable to sql injections...
 
sometimes the filter is correct, sometimes not
how to solve?
 
12:30 PM
hire a developer
 
12:41 PM
Does anybody know, where i can find the source-code of the Java-remote-client for phpdbg? The homepage says it ships bundled with the phpdbg package, but i cannot find the sources, neither on their official homepage nor at github. ( phpdbg.com )
 
@DanLugg show me an example
 
i have a question for specialists
 
there are no specialists in room 11
 
where are the php specialists then?
 
12:53 PM
the best php specialists are mostly in reddit.com/r/phphelp
 
^ this
 
I need to access a javascript variable from php, i saw here: http://stackoverflow.com/questions/2338942/access-a-javascript-variable-from-php

not possible but the accepted answer person had an other solution for this, a hidden php field but the value is there when i click on submit, is there a way to get that value from that hidden input field before submitting that?
 
First asked to you, otherwise you don't get an answer i go to reddit
 
ok.
Ajax (also AJAX; ; an acronym for Asynchronous JavaScript and XML) is a group of interrelated web development techniques used on the client-side to create asynchronous web applications. With Ajax, web applications can send data to, and retrieve data from, a server asynchronously (in the background) without interfering with the display and behavior of the existing page. Data can be retrieved using the XMLHttpRequest object. Despite the name, the use of XML is not required (JSON is often used instead. See AJAJ), and the requests do not need to be asynchronous. Ajax is not a single tec...
 
12:57 PM
Hi guys. I'm using a helper function to create dynamic thumbs, it works like this: thumb('uploads/images/original-file-path-jpg', 200, 200); . So I search for the image, crop it to 200x200 and save the new file as 'original-file-path_200x200.jpg'. The problem comes when I want to generate thumbs from external sites, cause I can't use the original path to get the thumb path... how do you guys handle that? Maybe a third paramater with the a forced path?
 
Is that a question for this room or not?
for posting on SO or not?
or for reddit?
 
^ did you read my answer?
 
is that that ajax ?
how works that, i have used before ajax?
 
so you didn't read it..
 
Ajax is also legendary
 
12:59 PM
yeah
 
i'm in translation that paragraph
i'm don't understand good english :P
 
:"Aias" redirects here. For other uses of this name, see AIAS (disambiguation) and Ajax (disambiguation). Ajax or Aias ( or ; ) was a mythological Greek hero, the son of King Telamon and Periboea, and the half-brother of Teucer. He plays an important role in Homer's Iliad and in the Epic Cycle, a series of epic poems about the Trojan War. To distinguish him from Ajax, son of Oileus (Ajax the Lesser), he is called "Telamonian Ajax," "Greater Ajax," or "Ajax the Great". In Etruscan mythology, he is known as Aivas Tlamunus. Family Ajax is the son of Telamon, who was the son of Aeacus and g...
^^ more fun :D
 
@AlmaDo I must make use of ajax?
 
what should I do with that book?
 
1:06 PM
what could be done with any book if not reading? well.. use it as toilet paper? expensive..
 
@PeeHaa Wakey wakey.
 
@Fabien ?
 
happy friday morning!
 
@PeeHaa heh sorry to ask but any idea on when Pee'MS might be done? I'll give you $5 and 1.5 beer if the answer is tonight :P
 
I see that there an ajax call is required for this.
 
1:17 PM
@Fabien heheheheh I am afraid I have to disappoint you :(
 
hi, @reikyoushin
 
@PeeHaa Still busy with Mr. Client? :(
 
@jakobaindreas_11 I already did!
8 hours ago, by Dan Lugg
@jakobaindreas_11 display_advertisment()
^^ Just like that.
 
@DanLugg Is it quote time? Also baby-face (no beard) pic please.
 
@Fabien Will need to produce baby-face picture later, can't take pictures where I'm at.
 
1:22 PM
Hmm.. High tech testing facility?
Playground?
 
Casino.
 
Ooh, put it all on red!
 
Send us a cheque, you lost.
Also, we don't take cheques.
 
lol
 
:-P
 
1:24 PM
^ as I've said
33 mins ago, by Alma Do
there are no specialists in room 11
:p
 
@Fabien When you said "quote time", were you referring to the usual Friday quotery?
 
ok, i go to the ajax room
 
@AlmaDo hi! :)
@averroken is there such a thing?
 
Hola, PHP room.
 
@DanLugg yeah
 
1:31 PM
Hello
 
@Fabien Already happened, starred once -->
 
Ah cool, good to know it worked and a black hole wasn't created.
 
A black hole wasn't created, yet.
Surely, someday, the CSS will bork, and everyone will be mad at me.
 
Dan, are you in Canada? :D
 
@DanLugg your night was too short
 
1:35 PM
@xianritchie No, I'm on a raft in the North Pacific. Excuse my internet connection, it's a bit iffy.
@AlmaDo lol, tell me about it.
@xianritchie Srsly tho, yes.
 
@DanLugg I was referring to your word choices. Americans don't type "cheque". :D
It's like the Canadian tell.
 
Eh?
 
failed mr. Holms
@DanLugg well..
5 hours ago, by Dan Lugg
goodnight folks.
 
The only person I ever met who said "eh" with regularity was a girl I crushed on from Manitoba. She also said "a gain", but not "a boot". But she did say that weird slurry "sorry" you get there. :D
 
UK people use Cheque too btw
 
1:38 PM
@xianritchie Nobody says "a boot", unless you're from Maritimes.
And most of Canada probably doesn't consider people in the Maritime provinces part of Canada anyway.
 
True, Fabien. But people in the UK rarely make casino references.
 
There's about 3 casinos within a 10 minute walk of me :P
 
"Herb", because there's a f****ing H in it? :D
 
@Fabien did you ever been there?
 
"Check the mail for a cheque" -- Unambiguous
"Check the mail for a check" -- U W0T M8?
Well, I need to argue with git, and do some .NET stuff, so I'll cheque check y'all later.
 
1:43 PM
It's okay, I'm American, but I use the -our ending for words like colour, honour, favour. When I first started reading, I read primarily british edition UK author books that my grandmother had.
 
@xianritchie Spot on chap.
 
.net? Ew.
 
C# is nice, the .NET core is alright, MS is poopy shit stains.
Also, no lies, no deceit:
Deal with it. Later.
 
Morning! Is this the duck typing channel? I haz a problem:
 
1:49 PM
^ kewl!
 
hello
0
Q: Codeigniter putting underscore when overwrite is true in upload method

user3445065$config['file_name'] = $logged_in_user['user_name'].".png"; $config['upload_path'] = 'assets/profiles/'; $config['allowed_types'] = 'gif|jpg|png'; $config['overwrite'] = true; $this->load->library('upload', $config);...

some one plz answer this
thanks in advance
 
@Fabien I think I have worked somewhere around 90 hours the last 7 days
 
@PeeHaa Pussy. If you haven't worked for at least 2/3rds of the time you're not even trying.
 
@PeeHaa Ouch. End in sight? And by end I mean beer.
 
@DaveRandom you slacker
:p
 
1:55 PM
@reikyoushin i have problem with so an thinh
ajax call
from javascript to php on the same page without submit/click event
 
@Fabien beer yes end no. Not in the coming 3 weeks at least
 

« first day (1259 days earlier)      last day (3703 days later) »