« first day (525 days earlier)      last day (4426 days later) » 

5:00 PM
@GeorgeEdison what do you expect it to return and why?
And if you're looking for an xpath replacement of the .parameters CSS selector:
 
@hakre I have absolutely no idea anymore what just happened / what I did. What I think I did was:
 
The <div class="parameters"></div> is empty in the page, looks like JavaScript populates it.
 
@GeorgeEdison Not sure but it could have something to do with the form being powered by JS.
 
@hakre I expect to receive a DOMNodeList with all of the label's that are descendants of '.parameters'.
 
@GeorgeEdison How are you using this XPath?
 
5:01 PM
slaps forehead. - that's a very good point.
 
Checkout dev
Staged files to commit
Comitted changes
Pushed to github
 
have you considered something like: //*[contains(concat(' ', normalize-space(@class), ' '), concat(' ', 'parameters', ' '))]//label
 
After that I accidentally pushed to master :P
 
@GeorgeEdison you'll have to get the page after JavaScript has done it's job, how you do that is... up to you. :)
 
Actually, I think I'd have better luck parsing the JavaScript that initializes those elements.
 
5:04 PM
@salathe Actually there is one empty div element w/o javascript.
 
If only there was an API which documented the API :)
@hakre yes, that's what I said earlier.
 
<div class="parameters"></div>
 
@salathe There used to be but it got dropped.
 
@hakre JavaScript puts the form in that div
 
Anyway, this looks like it might be easy to parse: dpaste.com/720906
 
5:05 PM
@GeorgeEdison yup
 
The arrays and maps can be parsed as JSON.
 
@hakre I've packed the latest version of the cv-pls extensions (with the audiowrapper). Lemme upload it somewhere
 
Well, thanks for the help - I should have figured that the form was being dynamically generated sooner.
 
After that I'll try to fix the github repo
 
user895378
@PeeHaa LOL "After that I'll try to fix the github repo" ... don't worry ... nothing's un-doable and pretty soon you'll get the hang of git :)
 
5:11 PM
only if you can crash it, you know that you master it!
 
@rdlowrey :-) Thanks for the support :P
 
user895378
Like anything, the best way to learn how it works is to break it and be forced to reassemble the pieces :)
 
Difficult :
0
Q: Difficult : How to find text between [ ] using php

RoccosI have a text like this [name:roccos] [phone:123324324] [tags:abc def ghi] [id:value] How can i find the values of name, phone, etc using php, So i should have variable like this $name = 'roccos' $phone = '123324324', I can either do this for all separately or is there any way to automatically ...

 
wow that's really difficult. I once knew the answer for (), but never figured out how [] works.
why is programming that difficult?
 
Way to difficult for me
 
5:14 PM
agrees with @NikiC
 
@hakre the audio wrapper first tries to use native html5 audio if that fails it will load the SO jPlayer in and if that fails it does nothing atm. At least that's what it should do although I cannot test it :)
 
@PeeHaa You should Sign Up or Login to download this file triple OMG. you need some hosting?
I'll pick it from git
 
@hakre sorry about that. I was being lazy not booting up ftp to my own server :P
 
I'll fetch from readonly. Is this master or dev?
 
@hakre use master :)
 
5:15 PM
okay ;)
 
for some reason now dev is 3 heads behind. So I already did screw it up before what just happened :)
 
must not be
you can do diffs between branches
$ git diff master dev
 
Waiting for someone to comment "@NiKiC tereško if you think you're so smart then prove it!"
 
5:33 PM
Frameworks like wordpress and smarty?
 
Hi every body
 
hello @MikeBoutin
 
^^
i got a little probleme with an object
can you help me ?
 
user895378
@MikeBoutin Top right: "Don't ask whether someone is here or can help. Just tell us your problem. If anybody can and wants to help, they will."
 
5:36 PM
lol
sry ^^
im new here
do json_encode transform an array to an object ?
 
@MikeBoutin no it transforms an array to a json string
 
but when i do json_decode
i'm not able do get my attr
[{"upload":"3d-art-Nate-Hallinan-Smurf-Sighting.jpg","type":"image/jpeg","size":"421.077148438Kb","tmp_name":"/tmp/phpk‌​nMeV0","stored":{"local":"../public/img/upload/029127cc16724521e583b046952fbac5.j‌​pg","rootlocal":"","url":"","imageshack_link":"http://img141.imageshack.us/img141/‌​9621/029127cc16724521e583b04.jpg","imageshack_thumb":"http://img141.imageshack.us/‌​img141/9621/029127cc16724521e583b04.th.jpg"}}]
 
@PeeHaa: No more audio undefined errors
 
i try do get imageshack_link
 
just installed it
 
5:40 PM
i try to get*
 
the 13.1 version. waiting for close votes now.
 
@hakre promising
lemme grab a cv candidate :)
 
yay, I just activated all options
I hope my screen start to look like vegas at night after you make a cv-pls
 
user895378
Hey guys, wasn't thinking when I answered this uber-duplicate of a question here. Voted to delete my answer as well as close the question. Please help.
 
5:43 PM
I wonder when cv notifications for smartphones will come...
 
Did it work @hakre?
 
ROFL: ` function allowed_to_watch_porn($birthday)`
 
user895378
@hakre lol nice
 
@rdlowrey that's from the question you linked.
one of it's answers.
okay no audio support on my fedora here.
but it does not crash any longer.
 
user895378
I think the allowed_to_watch_porn($birthday) function is missing a call to clear_it_with_lazy_wifey($please)
 
5:46 PM
Party pooper mode
> You might want to change your function before this gets flagged. – BoltClock♦
 
@hakre Can you try to find out how to get audio support, since I cannot test it?
@BoltClock boooooo
 
@PeeHaa well I'd say it's a limitation of the config I have.
 
@BoltClock , there is nothing wrong with that function
 
@hakre Do 'normal' @mentions work on that machine @hakre?
sound notifications that is
@MikeBoutin check out var_dump(json_decode($jsonString)); to get what you need
 
@PeeHaa no, but it doesn't work on the other machine where sounds works as well
 
5:49 PM
@PeeHaa do json_encode add slashes ?
 
@hakre :(
 
@PeeHaa No idea. Is the @mention a feature of SO chat or something you added?
 
@hakre with @mention I meant the normal sound notification when you are mentioned in chat like @hakre
@MikeBoutin add slashes where?
 
@MikeBoutin Yes at some places, check json.org
 
@tereško I'm just going by the book.
 
5:53 PM
which book ?
guide in GOP talking points ?
btw , complete off-topic , loved the comment for this [video ](youtube.com/watch?v=uV1VqiRKhfA) :
> this is why you never trust online chatrooms, cuz the little girls you plan to abduct and rape might turn out to be sadistic killers.
 
@hakre & @PeeHaa Thank you guys ^^ i got it
im new with json
 
@PeeHaa: Nice resizer bar!
 
thats very powerfull ^^
 
@MikeBoutin yw glad we could help
 
5:57 PM
@hakre sweet isn't it :) However now that I started using it I notice it would be great to be able to doubleclick to maximize / minimize
 
@PeeHaa yeah with a cool animation ;)
and audio
 
@hakre :)
 
Fun aside, the knob/grip area could be centered
 
@hakre It isn't?
 
> Really poor question. SF is not a replacement for doing some basic research about programming.
 
6:00 PM
omg I'm blind :P
 
user895378
Am I being an a-hole here or does anyone agree with me?
 
user895378
2
A: Value From Array At Index (PHP)

Rafe KettlerDo you mean return $i in your search function? Also, $ar[$i]? Though, honestly, it'd be smarter to use the standard library function for this, array_search(), which returns the index of an element of an array if it's in the array.

 
@rdlowrey Everyone's an a-hole. Including myself. As I say that.
;)
 
user895378
I guess. :) Maybe I'm wrong but "Do you mean return $i in your search function?" is not a valid answer.
 
@rdlowrey That guy didn't even post valid PHP code. i instead of $i. Better suggest how to configure error settings maybe.
 
user895378
6:13 PM
@tereško No it is not an acceptable reference
 
sorry .. in my native language it is common to use double and triple-negations
 
user895378
Oh, I was just saying thank you for the backup :)
 
0
A: Programmatically powering off an iPhone?

Jimi m a programmer & my palmpilot from more than 10 years ago would allow a software app to put the phone to sleep. My iPhone requires that I press the "power off" button to put it "to sleep". Apple sucks cuz they're SO AFRAID of shit

Palm Pilot.
 
user895378
Wow.
 
user895378
I think he must've confused SO for a random msg board site.
 
6:25 PM
Must be.
 
user895378
Let's break that answer down ...
 
user895378
Demonstrate experience in the relevant field: "i m a programmer"
 
user895378
Check.
 
user895378
Demonstrate experience with the relevant tools: "my palmpilot from more than 10 years ago"
 
user895378
Check.
 
user895378
6:27 PM
Demonstrate blanket disdain for products targeted at the mainstream? "Apple sucks cuz they're SO AFRAID of ...
 
user895378
Check.
 
user895378
Sounds like an all-around legit answer to me.
 
user895378
And now it's been deleted. So much for the on how not to answer a question.
 
6:50 PM
Not this shit again :( Oops
{"error_id":502,"error_name":"throttle_violation","error_message":"too many requests from this IP, more requests availabe in 23311 seconds"}
 
user895378
lol ... do you not have a dynamic IP?
 
@rdlowrey nopez I don't. But I shouldn't hit the request limit. Oh well... I need to refactor everything soon so I'll have a look at what causes this. I just hope I don't get a permaban before I get to it
 
user895378
Too bad ... anytime I get a little heavy on the gas pedal (ban from any service) I just unplug my cable modem for a few minutes and force my ISP to assign a new IP when I plug back in :)
 
7:18 PM
@rdlowrey The thing is: I'm running some services from my home connection. So changing my ip isn't really handy
 
user895378
@PeeHaa I see. I only do personal stuff with my home connection and use dyndns to keep the IP attached to a name.
 
@rdlowrey No, I went on a date :) (with my wife)
 
user895378
@LeviMorrison Nice, yours was likely significantly more enjoyable than mine.
 
lol
We played pool, ate ice cream, started to watch an independent film about a horse and fell asleep.
 
@LeviMorrison HORSE_EBOOKS THE MOVIE
 
7:34 PM
Anyone here familiar with curl_multi_select?
Will it trigger true for the same request more than once?
Say the first time it is called it returns 2 of 10, the next time it is called, will it include the previous 2?
How do you know which handles are ready?
 
 
1 hour later…
8:45 PM
does php version 5.4.0 include all image functions...I have php 4.4.3 but it is missing many and I want to upgrade.
 
@brian , what do you mean by "image functions" ?
 
PHP's image manipulation functions are all in extensions, they're not part of the PHP core.
 
@brian 4.4.3 and you upgrade for some freaking imagine functions?!?!
With that version a better reason would be "because the server got hacked seven times in a row" or "not a single script I try runs there"
 
@brian afaik , there was no new functionality added to ImageMagick, GD or FileInfo between 5.3 and 5.4
also , 4.4.3 was released almost 6 years ago
it's old , slow and filled with vulnerabilities
should you upgrade to 5.x ? hell yeah
should you upgrade to 5.4.0 .. most likely - no
stick to the 5.3 branch till 5.4.1 or 5.4.2
 
9:58 PM
ok....I officially need help connecting to the internet on Ubuntu
 
@user705339 , whats your current IP ?
it should be something like 192.168.x.x
is it ?
 
for the wireless, I don't see that
when I typed in ifconfig
 
what exactly do you see ?
 
inet addr: 10.42.43.1
 
well .. that looks like normal local network
 
10:01 PM
Bcast: 10.42.43.255
 
can you ping the gateway
 
network is unreachable
that was the message I received when I tried pinging
 
@user705339 , you should try to ask on freenode's #ubuntu IRC channel
my native OS is FreeBSD, so i can only make general guesses
 
for some reason, I could connect easily on my laptop after installation
but on the desktop, that became a grave issue
 
was your wifi card even recognized ? maybe you just told me you wired IP
 
10:07 PM
I'm actually more interested in the wired connection
the cable's plugged in, it works on the Windows
just not on the Ubuntu
 
8 mins ago, by user705339
for the wireless, I don't see that
i assumed you are talking about wireless card
anyway , this is heavily off-topic here
go to place where ubuntu users congregate !
 
converting eregi to preg_match() with the ‘i’ modifier.
having problem to convert this eregi($home,$h)
 
i think you tried to type in "clairvoyant" and accidentally got "php" , @BasicBridge
eregi($home,$h) means completely NOTHING
zero
nada
nyechivo
nichts
 
ops it eregi(home(),$h)
 
that's even worse
@BasicBridge , do you know what that like actually does ?
 
10:28 PM
matching
 
11:19 PM
@tereško I can ping the gateway now....but still can't connect to the internet
my router interface is pointing to the DSL modem as the default gateway, while Windows is pointing to the router as the default gateway..... do you have any idea which one is the actual gateway?
 
the router
is DHCP enabled ? .. nevermind , it should be
 
yes
you are right...it wasn't working because I needed to reboot the system after making the modification
whew!
 
11:47 PM
/me === drunk (note the three =es)
 
@PeeHaa , it means that you ARE a drunk
 
@tereško it doesn't meant that I'm drunk. That's just some loose comparison I'm REALLY drunk :P
I feel like downvoting stupid questions and leaving even more stupid comments... let's see what's going on on SO :-D
 
have fun
 
@tereško Ty! You know I will
@tereško I'm proud of this one and I just started :P: stackoverflow.com/questions/9856747/…
 

« first day (525 days earlier)      last day (4426 days later) »