« first day (1007 days earlier)      last day (4166 days later) » 

15:00
but i'm still getting errors in establishing a connection with my sql database using php
@Mr.Alien Lol :P
it would be greatly appreciated if someone can help me! i just have a feew quickq uestions
@Doorknob he he
@omarK instead of posting five messages that are pretty much useless padding, you could actually post the questions in the first place, that way no time is wasted...
15:02
4503 messages in 49 hours here. You really don't spam enough.
-2
Q: How does a programmer deal with problems arising out of runtime additions of this kind to an array?

user2599858The array problem I asked can be seen in this code. $sample=array('2'=>"A", "abc"=>"B", 2=>"C"); $sample_keys=array_keys($sample); foreach ($sample_keys as $keys) { echo $keys, $sample[$keys],"\n"; } The output is 2C abcB $sample[0] gives an error, so does $sample[1] How does a programmer...

mass downvoter? :O
Hello friends stackoverflow.com/a/17749352/1679187 Anyone wants to improve it, they can :)
@AmalMurali weird :O
!!/learn just-ask ": You don't need to ask if you can ask a question or if anyone is around who can help you. Just ask your question and if anyone is around that can (and wants to) help you, they will."
@ircmaxell Command just-ask learned
15:03
@Doorknob: yeah, all of them got downvoted within a few a few seconds :P
@Mr.Alien review my answer for my own post after 3 months. :)
!!/tell @ircmaxell just-ask
@ircmaxell Don't be annoying, drop the @, nobody likes a double-ping.
@ircmaxell thanks, that'll be helpful
!!/tell ircmaxell just-ask
15:03
@ircmaxell 0: You don't need to ask if you can ask a question or if anyone is around who can help you. Just ask your question and if anyone is around that can (and wants to) help you, they will.
@ircmaxell Command just-ask learned
!!/tell MadaraUchiha just-ask
@MadaraUchiha : You don't need to ask if you can ask a question or if anyone is around who can help you. Just ask your question and if anyone is around that can (and wants to) help you, they will.
@YogeshSuthar kya?
cool :)
15:06
@Mr.Alien answer dekh stackoverflow.com/a/17749352/1679187 improve karna he to karle. :)
@Foo : You don't need to ask if you can ask a question or if anyone is around who can help you. Just ask your question and if anyone is around that can (and wants to) help you, they will.
@Bracketworks That's not what I meant ;-)
@DaveRandom *shrug*
@YogeshSuthar No Yii knowledge :p
who triggered that?
15:07
I just fixed the github connection, how do I push the folder ? public_html with my ftp files to git
@Mr.Alien too bad for you. :)
!!/learn php "http://www.php.net/$0" \w+
@ircmaxell Command php learned
@ircmaxell me
!!php strlen
15:09
@ircmaxell php.net/strlen
Ah ok
someone :(?
@ircmaxell how did we learn the command learn?
@YogeshSuthar hatt, btw OI made a sleek new UI :p
!!/tell 10713115 help
@Mr.Alien OI means?
@YogeshSuthar mistake, it was just I
you online for few more mins?
@Mr.Alien yeah, I am at home. :)
@ircmaxell hm, convenient \w includes underscores.
yup ;-)
15:12
@YogeshSuthar cool, will inform you when it's done.. btw it would be better if you see it from the pc, am confused between 2 fonts
first thing I thought was: I wonder if there's any functions that wont match
!!/learn php "$0: php.net$0" [a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*
@ircmaxell Command php learned
!!/tell 10713177 php str_replace
15:13
@Mr.Alien I am noob in selecting fonts. :) I can't help. :(
Shat, ok I am going with raleway as usual, my favs, will be uploading in 5 mins ;)
@ircmaxell Command php learned
!!php ArrayObject
@ircmaxell <a href=php.net/0 rel=nofollow><code>ArrayObject</code></a>
15:14
@ircmaxell Command php learned
@ircmaxell ArrayObject: php.net/ArrayObject
@Mr.Alien go with it. I am also going for uploading my some changes for custom drop-down.
gtalk pe aaja
i am online on gmail.
Can someone help me with git -.-
!!/tell 10713287 just-ask
15:18
@Tredged : You don't need to ask if you can ask a question or if anyone is around who can help you. Just ask your question and if anyone is around that can (and wants to) help you, they will.
I setup my git, but how will add my ftp public_html folder to the push
lol
!!/learn php "$0: php.net$0 (lxr.php.net/search?q=%22ZEND_FUNCTION%$0%29%22+OR+%22PHP_FUNCTION%28$0%2‌​9%22&defs=&refs=&path=&hist=&project=PHP_TRUNK)" [a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*
@bwoebi Command php learned
dude...
!!php strlen
15:19
@bwoebi strlen: php.net/strlen (lxr.php.net/…​9%22&defs=&refs=&path=&hist=&project=PHP_TRUNK)
make that a separate command, because most people would be confused by a lxr result
bleh..
@Tredged git add?
I did that but at the push it says nothing changed
-.-
15:21
!!/learn php "$0: http://www.php.net/$0" [a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*
@ircmaxell Command php learned
where can I check what is added @ircmaxell
@Tredged is there anything in the folder?
!!php strlen
@ircmaxell strlen: www.php.net/strlen
yes my website lol
15:22
@ircmaxell Command php learned
@ircmaxell
!!/learn cphp "$0: php.net$0 (C source code: lxr.php.net/search?q=%22ZEND_FUNCTION%28$0%29%22+OR+%22PHP_FUNCTION%28$0%‌​29%22&defs=&refs=&path=&hist=&project=PHP_TRUNK)" [a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*
@bwoebi Command cphp learned
!!cphp strlen
@bwoebi strlen: php.net/strlen (C source code: lxr.php.net/…​29%22&defs=&refs=&path=&hist=&project=PHP_TRUNK)
15:23
!!/learn cphp "$0: http://www.php.net/$0 ([C source code](http://lxr.php.net/search?q=%22ZEND_FUNCTION%28$0%29%22+OR+%22PHP_FUNCTION%28$0%‌​29%22&defs=&refs=&path=&hist=&project=PHP_TRUNK))" [a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*
@ircmaxell Command cphp learned
!!cphp str_replace
@ircmaxell strlen: php.netstrlen ([C source code](lxr.php.net/…strlen%29%22+OR+%22PHP_FUNCTION%28strlen%‌​29%22&defs=&refs=&‌​path=&hist=&project=PHP_TRUNK))
@ircmaxell Command cphp learned
@ircmaxell str_replace: php.net/str_replace (C source code)
@ircmaxell I pushed but it deleted the index.php (test file) on the repo with git push -f
@Tredged without a specific error or issue, I can't really help
15:26
@ircmaxell I just want to add my folder and push everything to GIT thats all
but it keeps saying nothing changed -._
check git log
did you commit?
no because everytime i commit
I get a long list of commands
you need to add then commit then push
ok
folder with git add public_html/
!!/stat ircmaxell extended
15:28
@ircmaxell ircmaxell has 55242 reputation, earned 85 rep today, asked 13 questions, gave 1002 answers.avg. rep/post: 54.42. Badges: 8g 100s 171b
@ircmaxell nice :-)
please , stop
HAMMERTIME!
@tereško ?
please stop playing with the bot
15:29
@Tredged Is the folder empty by any chance?
no its full lol
@tereško you don't like chat spam?
ah, ok. git doesn't do empty folders, so that would have explained what was going wrong
nothing added to commit but untracked files present (use "git add" to track)
Thats what I get after doing git add public_html/
just wait until the room discovers /hangman
;)
15:32
!!/mustache 727208
@ircmaxell User 10713565 was not found (if the user is not in room 17, pass a user-id instead of a username).
@ircmaxell User -1 was not found (if the user is not in room 17, pass a user-id instead of a username).
@ircmaxell
@ircmaxell User 727208 was not found (if the user is not in room 17, pass a user-id instead of a username).
does anyone here know how to use OAuth with facebook api
/me gives up
15:33
I get the error fatal: Not a git repository (or any of the parent directories): .git @ircmaxell
its because the public_html is not in the same folder?
!!/mustache ircmaxell
I have no idea what you're doing. Have you ever used git before?
No lol
have you read any tutorials on it?
15:34
Yes I did
@CapricaSix wat?!
@ircmaxell are you talking to me
@CapricaSix lol heroku fail
I used to think heroku was awesome. Then I tried using it for something.
@ircmaxell after doing the git add and commit and succesfully pushed i never need to commit the folder again right?
if I change something just git push -f
15:39
@Tredged noooo stop stop stop
HAMMERTIME!
do not git push -f
why lol
@Tredged stop doing -f
it wont work without -f
15:40
then you're doing something wrong
let me guess, you're doing git commit --amend?
git commit -m
are other people pushing to the same repo?
or are you pushing from two different locations?
nope
only me
Anonymous
15:41
@igorw you never said anything about liip. do you know them? Or have you ever worked there before?
@Simon_eQ I never worked there, but I know quite a few who do, or did. well, half of the zürich tech scene did at some point.
I succesfully added it with commit and -f @igorw i just changed the index file but when doing git push it says nothing changed
do git log
@DaveRandom <3
15:43
nevermind got it
Thanks!!
@ircmaxell @igorw thnx
git push -f all the things!
@DaveRandom Dude what the -f
Anonymous
@igorw hmm, Zurich. I am based in Lausanne.
alias "git push -f"="echo 'Go home, you drunk'"
`
Why did I read that as Lasagne .. hungry :(
Anonymous
15:45
lol
user895378
git commit --amend && git push -f
@DaveRandom Nobody needs fridays when he has [school] vacation :-)
alias yolo='git commit -am "DEAL WITH IT" && git push -f origin master'
I know that's been posted before but I can't find the original message
!!php recursiveiteratoriterator.construct
@Leigh recursiveiteratoriterator: php.net/recursiveiteratoriterator
15:47
aw
.construct isn't a valid class or function name :-P
@ircmaxell it's a valid documentation quick link though
but a valid php manual name :-P
maybe it needs to capture :: and replace with .
!!/learn php "$0: php.net$0" [a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff\-.]*
15:48
@DaveRandom Command php already exists
:D
:-(
How do you replace them then?
!!/learn php "[`$0`](http://www.php.net/$0)" \w+
@ircmaxell Command php already exists
15:50
!!/unlearn php
@Leigh That didn't make much sense. Maybe you meant: learn, /learn
:(
!!/forget php
@ircmaxell Command php forgotten.
!!/learn php "[`$0`](http://www.php.net/$0)" \w+
15:50
@ircmaxell Command php learned
!!/php strlen
@ircmaxell strlen
!!/learn php "[Documentation For `$0`](http://www.php.net/$1)" ([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff\-.]*).*
@ircmaxell Command php learned
\w doesn't include some legal things, and it still doesn't include .
user895378
15:51
Since the joke isn't dead yet ...
@ircmaxell Command php learned
user895378
♫ Hey, I just committed you, and I'm being lazy. But hey it's Friday, so I'll git push -f maybe. ♫ #git #yolo
2
!!/php strlen()
!!/php domdocument.construct
winner
yea but..
!!/php domdocument::__construct
@DaveRandom now please replace dots by a ::. (in description of link)
the __ is legal for documentation links, just needs :: to go to a .
15:52
@Leigh That's need more advanced logic than learn is capable of
The new improved linkifier plugin will be able to cope with it though
(eventually)
I believe someone from TotalView (which is some software) has been tasked with updating all links to their software on SO. On the one hand, it's good the links will be up to date, on the other hand, it's a pity they didn't have a 2k user, so now it all needs to be reviewed
@Jasper funny stuff
@Jasper sadly you cannot get 2k rep just by editing? ;-)
offer your services, they can pay you to edit SO posts ... hang on, I feel a wikipedia style scandal coming on!
hehe
15:59
!!/learn php-method "[Documentation for `$0`](http://www.php.net/$1.$3), and [C source code for `$0()`)](http://lxr.php.net/search?q=%22%22PHP_METHOD%28$1%2C+$3%‌​29%22&defs=&refs=&path=&hist=&project=PHP_TRUNK))" ([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)(::|->)([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)
@ircmaxell Command php-method learned
@ircmaxell and what about spl_method, zend_method?
!!php-method SplFixedArray::getSize()
Is there any way to keep track of devices, as in knowing that this exact device has been used on the site before?
I mean, cookies can be erased and IPs are not that permanent.
So I want to recognize a device that might have been on the site before - but without cookies or IPs. Is it even possible?
16:00
@bwoebi hang on, in time
work in progress
@ircmaxell spl methods use SPL_METHOD, why did you try then with a Spl* class?
!!/learn php-method "[Documentation for `$0`](http://www.php.net/$1.$3), and [C source code for `$0()`)](http://lxr.php.net/search?q=%22ZEND_METHOD%28$1%2C+$3%‌​29%22+OR+%22SPL_METHOD%28$1%2C+$3%‌​29%22+OR+%22PHP_METHOD%28$1%2C+$3%‌​29%22&defs=&refs=&path=&hist=&project=PHP_TRUNK))" ([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)(::|->)([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)
@ircmaxell Command php-method learned
!!php-method Closure::bindTo
@ircmaxell you shouldn't write Documentation for ... but RTFM: ...
@bwoebi dude, lay off
!!/learn php-method "[Documentation for `$0`](http://www.php.net/$1.$3), and [C source code for `$0()`)](http://lxr.php.net/search?q=%22SPL_MA%28$1%2C+$3%‌​2C%22+OR+%22PHP_MALIAS%28$1%2C+$3%‌​2C%22+OR+%22ZEND_MALIAS%28$1%2C+$3%‌​2C%22+OR+%22ZEND_METHOD%28$1%2C+$3%‌​29%22+OR+%22SPL_METHOD%28$1%2C+$3%‌​29%22+OR+%22PHP_METHOD%28$1%2C+$3%‌​29%22&defs=&refs=&path=&hist=&project=PHP_TRUNK))" ([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)(::|->)([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)
@ircmaxell Command php-method learned
!!php-method Closure::bindTo
please da fuck stop
16:05
HAMMERTIME!
@tereško please stop with asking us to stop
HAMMERTIME!
I wish we had IRC-style private messages.
@ircmaxell That's awesome :-)
16:08
!!/learn php-function "[Documentation for `$0()`](http://www.php.net/$0), and [C source code for `$0()`](http://lxr.php.net/search?q=%22ZEND_FUNCTION%28$0%29%22+OR+%22PHP_FUNCTION%28$0%‌​29%22&defs=&refs=&path=&hist=&project=PHP_TRUNK)" [a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*
@ircmaxell Command php-function learned
!!/learn php-method "[Documentation for `$0()`](http://www.php.net/$1.$3), and [C source code for `$0()`](http://lxr.php.net/search?q=%22SPL_MA%28$1%2C+$3%‌​2C%22+OR+%22PHP_MALIAS%28$1%2C+$3%‌​2C%22+OR+%22ZEND_MALIAS%28$1%2C+$3%‌​2C%22+OR+%22ZEND_METHOD%28$1%2C+$3%‌​29%22+OR+%22SPL_METHOD%28$1%2C+$3%‌​29%22+OR+%22PHP_METHOD%28$1%2C+$3%‌​29%22&defs=&refs=&path=&hist=&project=PHP_TRUNK))" ([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)(::|->)([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)
@ircmaxell Command php-method learned
@tereško Thanks for flagging
if you want to play with a bot, there is a separate room for that
16:11
This isn't playing. It's setting up commands that may prove useful to this room
Surely after having learned something you can delete the previous msg?
I know nothing about bots, but does its implementation prevent you from setting it up elsewhere then bringing it back here again?
wtf is going on here
@BoltClock not sure with this one
@Jack woah, it's really a problem … these two lines
16:14
who's bot is this?
@bwoebi seriously dude, if you don't have anything useful to say, just keep quiet.
@Jack I asked why these two lines are a problem for you?
@bwoebi You didn't ask anything.
@NikiC it's the one in the JS room, that has moderation functionalty, allowing us to deal with issues slightly better (although it may or may not work in this room)
Going to wait til it's quiet, and teach the bot to stab people on command
16:20
@Leigh Why don't you teach it something useful, like how to make pancakes?
@ircmaxell Want to make this a gallery room or what?
php-src:master is 5.6, correct?
or is there some other way to deal with moderation?
@igorw presumably
should I base the patch on PHP-5.5 or master?
which patch?
Anonymous
16:21
I dont get it, who is the bot?
the use-function one
@igorw master
ok, cheers
by the way, did you manage to fix that leak?
yeah. I don't know how, but I fixed it.
16:24
@igorw Called stochastic programming. Do random changes until it works :P
should I open a pull request, or just link to my branch?
I want to open the RFC for discussion
@igorw PR, as you can comment on it more easily
3
@NikiC well, it puts it in gallery, then auto-voices everyone except the "banned" person/people
@ircmaxell awesome
versioning strategy for RFCs?
16:34
@igorw I do 0.* until it's offiicially proposed, then move it to 1.*
@ircmaxell officially proposed as in vote?
-4
Q: Error: Header Already Sent PHP

user2557464Never mind Got it working. Delete this please

No, I propose as Draft for discussion first
already did
then Officially propose later
16:36
@ircmaxell Question, why is it that if I use git commit -a it opens a file lol instead of commiting it like it should?
"Never mind Got it working. Delete this please" -- I think he's unable to delete the post since it's already answered.
message
@AmalMurali Great
not possible to put a standart message?
16:37
@Tredged no
standard message would be the most stupid thing ever
@BoltClock: I'm sorry?
holy crap. One of my stocks is just going nuts. It's up 146% today alone :-D
There is no point to using a vcs if you don't have good commit messages
@AmalMurali That's just me expressing frustration because the question is irrecoverable now
Oh never mind Gordon deleted it
@ircmaxell well, I already did post it a while ago to gauge interest. is there anything else I need to do before I can make it be "in discussion"?
16:38
@BoltClock: aha, that was fast!
ninja!
Nope. Just send an email with [Proposal] RFC: blah
1.0.0 it, then add changes and bump versions as discussion progresses, yes?
Did I say 146%? I meant 163% :-P
@igorw exactly...
user895378
@Lusitanian Word to your mother.
16:44
@rdlowrey o.
user895378
:)
:1071544 To do something wrong you have to be doing something at all...and... [but seriously what was the thought process behind that code?]
@ircmaxell Make that "[RFC] My Awesome RFC"
user895378
16:50
@salathe I prefer proposal because it better indicates the status
@ircmaxell I prefer following an example we all agreed to. :P But either way, @igorw the suggested practice is [RFC] followed by the RFC title.
@salathe I prefer what I think gives more semantic information. Because obviously due to the OpCache debacle, what was agreed to wasn't understood when it was agreed to...
@ircmaxell I call BS, and by BS I mean BikeShed
@ircmaxell [RFC] is right in this case. A preliminary discussion was already had, this is the actual RFC proposal. At least as far as I understood it
16:56
@ircmaxell I want to be able to search the archives for "[RFC]" and get a neat list of the proposal discussions.
wahtever, I don't care.
When the two suggested tags are [RFC] and [VOTE], that's not too much to grok is it?
user895378
@salathe "push nothing ie not create a new index in the array."
user895378
I answered the question exactly.
user895378
array_filter is how to not create a new index in the array.
16:58
@rdlowrey Did not.
user895378
@salathe blank look
@rdlowrey No, that's how to filter an array (of "empty" values by default)
user895378
@ircmaxell I didn't. I answered the question.
user895378
> how do i get it to push nothing . ie not create a new index in the array.
user895378
?
16:59
@ircmaxell I see you're making progress :D
@rdlowrey don't use a ternary

« first day (1007 days earlier)      last day (4166 days later) »