« first day (752 days earlier)      last day (4422 days later) » 

00:41
hi
i'm new !
my condolences
01:28
haha ^^
Good Morning all :)
-1
Q: Retrieve facebook users realtime data

Qasim ShahIs there any way to track facebook application users whatever they are doing on facebook, for e.g watching a video or visiting someone's page and show it in the application.

lol
01:44
@Kishor enable the stalking permission another_damn_app_stalking_request
lol
02:07
@TimPost I did it!
@ShaquinTrifonoff I'm pushing all the code on git and well put a link here in a moment.
02:43
^ there you go, @TimPost. It's very messy, but it works. I'll work on it later on.
It's nearly 4am...let's get some sweet sleep . :)
@Christian good night
 
2 hours later…
05:34
hi
every body
i find way for find how to convert file to byte array ?
05:52
$bytes = str_split(file_get_contents('file.txt'));
@amin --^
06:18
could i know difference between h1[class="title"] and h1.title and who have higher precedence ?
06:38
@ShaquinTrifonoff thankyou...:)
looks like no difference
@NullPointer No. But .class-name-here is the normal way :)
[class="class-name-here"] is more for xml, where the class attribute doesn't have any special meaning. i distinctly remember browsers breaking when i tried to combine raw xml with a css stylesheet
i couldn't even use #id...i had to say [id="id"]
@cHao thank ..now i have got what i want to know
07:27
Good morning
morning
07:44
Good morning everyone! Yet another night without dying in my sleep. Sadly.
@Christian Geez
08:03
Mornings
@Christian That's a cheering thought. I never considered it that way really.
monring
@PeeHaa morning
btw what is meaning of monring? i even couldn't find on urban dic. You always says monring instead of morning, that seems more then a typo :)
@draconis Typo I don't seem to get rid of when it is early
Just wait for it to appear in the urban dictionary
;)
@vascowhite Oh, it's the sweetest way to die. Just wish for a nice dream.
@draconis Sounds like "my ring"....French English..
@PeeHaa If you want some quality entertainment, search for the Maltese Prime Minister in UD. His name's Hon (Dr) Lawrence Gonzi. (just search for his surname)
08:34
@Christian well if you were to believe the Mayans and look at the recent weather patterns I'd say our days are numbered :P
@ShyamK That would be disappointing. I'd have imagined apocalypse to be much more entertaining.
morning
09:05
mornong Morning
09:26
@DaveRandom there should be few hundreds of dups
Any idea why would git-upload-pack keep on going indefinitely?
I hope @ThiefMaster is voting to close these NARQs he's answering.
uff meeting :/
What's the recommended way of executing a program/command from PHP?
I need to capture the program's output as well as set the initial environment variables.
I'm currently using proc_open(), but I'm afraid it has some issues causing PHP to block indefinitely.
github.com/uuf6429/git-php-backend/blob/master/… <- this is how/where I'm using it.
@Christian If I want to set env vars I always use proc_open(). Try fclose()ing STDIN immediately since you don't use it, the problem may be with the way the child process is handling that stream.
@DaveRandom ok, trying it out...
O.o
git-http-backend dies with stderr "fatal: The remote end hung up unexpectedly"
@Christian Ok well try setting them all to non-blocking mode then (stream_set_blocking())
and not closing it, right?
It kind of failed...didn't return anything. I'll try setting only stdin as non-blocking.
Fails as well.

How about using a combination of putenv() and passthru()?
Oh, and output buffering since I really need to process the returned data.
@Leigh That would mean I have to implement the Smart HTTP spec myself :(
Well, with the new system it kinda works, but I get this error in netbeans: "Starting read stage without written request data pending is not supported"
10:49
I think I've found my problem and why git-http-backend is blocking for input. My CGI implementation is kind wrong; on POST requests it should forward the POST body to the CGI program as STDIN...not doing it results in the CGI program blocking.
That means I should go back to the proc_open implementation since passthru doesn't accept stdin.
WTF. The whole thing I was coding is now stuck before of a FB Bug. Shit
Let me check my care-o-meter.
8
has anybody had any problems with Wordpress multisite? I can't access the network panel :/ error logs are not showing the problem and google isn't to helpful :/
11:09
hello mates.. just a quick question: can i address people as 'sir' on SO? :|
5
Q: YII fixture issue:Exception: Unknown method: 'issues'

Harish AnchuI have discovered Yii recently and am working through the book (agile web application development with yii 1.1 and php5 : link) now as well. I am using Yii 1.1.12, in order to follow the book with minimum problems the fixture file is in place and not returns the neccesary array fixture is adde...

@goldenparrot Yes, you can use 'sir', but 'mates' is forbidden!
@vascowhite Thanks mate. Won't use 'mate' on SO :)
To be serious, salutations are not expected and are discouraged. They just add noise and are quite often edited out. @goldenparrot
I'm currently searching Google for "php execute cgi script", but the results seem misleading.
(most often people suggest using include(), exec() or virtual())
I have yet to try virtual, but I'm pretty sure the other two won't work. CGI POST is passed through STDIN...
Seems virtual() doesn't pass $_POST at all... :(
@vascowhite signatures? I guess you mean thanks, regards etc. at end of q/a. But, I was referring to salutation in a comment. Like: "Sir, I do not get what you've said. Could you further explain it?"
@goldenparrot Salutations are not required and imo tend to make you look needy.
It is all noise.
Aren't all needy? Yes, I think. So, yeah I guess that makes it unnecessary.
Sir is an honorific address used as a courtesy title to address a man without using his given or family name in many English speaking cultures. It is often used in formal correspondence (Dear Sir, Right Reverend Sir). The term is often reserved for use only towards one of superior rank or status, such as an educator or commanding officer, an elder (especially by a minor), or as a form of address from a merchant to a customer. Equivalent terms of address are "ma'am" or "madam" in most cases, or in the case of a very young woman, girl, or unmarried woman who prefers to be addressed as su...
11:52
@goldenparrot only if you want to clearly communicate that you are from India
@goldenparrot , actually the term "sir" should be only used when talking to someone who has been knighted by queen of england .. thing is, for some reason in India it is being taught that only form how to speak to someone respectfully , which is completely wrong
@tereško That's not quite right. It is also used in military/quasi-military organisations to address somebody of senior rank.
here .. compare these three sentences , @goldenparrot :
- do you want a beer
- would you like some tea
- you, sir, should shut up
@tereško hahah lol....:P
@tereško last one was completely lol
12:04
@tereško That's not it's only use, that's it's use as an honorific title. In ordinary use it's usually a respectful address, for example when you address a letter to unknown persons, you start it with Dear Sir/Madam
@vascowhite true , but it actually come from tradition knights .. though in modern society it is used when speaking to someone whose achievements you recognize
@Leigh , IMHO , you should not use "sir" to address someone you do not know
@tereško That's how it is mostly used.
@tereško Yes, you're right, that's where it came from and you had to be 'knighted' to gain the title 'Sir'. That's still true, 'Sir' as a title is reserved for nights of the realm, but 'sir' as a salutation has much wider use.
@vascowhite I think thats the point thats missing, there is a difference between a title and a salutation
12:08
@Leigh , when you use it to start or end each sentence , it is not a salutation
and it definitely has no place in comments on SO
@vascowhite naah .. it fits right in at the end of snide remarks
oh, yes, of course it does... Sir!
@tereško It can be, if you use less modern english... "Sirs, let me direct you to point 37b of the agenda", and "I disagree wholeheartedly my good sir!"
Although I can't think of a way of using it at the start, without it being a plural
You seem to have forgotten military salutation.
12:12
You mean that "Sir, yes sir!" bullshit
@Leigh No.
@Leigh when a new secretary is talking to an up-tight boss
:6115087 That feels american, and we know they have no real grasp on the english language, so it doesn't count
user1125394
@Leigh what movie is it again?
well .. neither does most of people here
12:15
@cyril It's not a movie, it's... real :P
@Leigh "Sir, yes sir!" ....lol...:P
Actually, the salutation variant probably stems from "Sire"
any one who can read spanish?
I need help..
user1125394
@Leigh yes ...but Full Metal Jacket
@AmandeepJiddewar i need girlfriend ,,,,,,lol.....ask question if anyone can then the will not need to request
12:18
@AmandeepJiddewar Use Google Translate -_-
@Ch
Google translator not helping
it's kind of crypted
user1125394
user1125394
"Do you maggots understand that?"
user1125394
the first and the last word out of your filthy sewers will be "Sir"
@cyril :D Never heard about it, but sounds like a fun movie.
12:28
@AmandeepJiddewar I have basic spanish skills.
user1125394
ram
ram
i want php time function in EST time so i need "November 6, 2012, 12:09:17, EST" this format, can you help to me....
@cyril Actually, I've seen parts of it. That big guy their ended up shooting himself or something, correct?
user1125394
every1 then himself yes
13:03
@DaveRandom Nope, this didn't work either:
1
A: Multiple writes to a process opened with proc_open

DaveRandomIt sounds like the other process is blocking waiting for EOL or EOF on STDIN. What are you trying to execute? Regardless, there's a pretty good chance this will sort it out: Just append \n to the command you are sending to the other process. E.g. $process = proc_open("my_process", $descriptors...

I was thinking, what if I set all pipes as non-blocking and go into an infinite loop until the process exists (or some other condition)?
I hate it when people assume things about what is being taught in India. @tereško what you said is bull shit. I have no idea what made you say that.

see http://english.stackexchange.com/q/28309
13:20
@goldenparrot , the experience
Hi all
I have posted a question on wordpress.stackexchange.com 2 days ago, 34 views but no answer yet, can you please help me in a wordpress menu problem?
@tereško that makes me wonder how small the number of people you had experience with must be, to say that against an entire crowd. Anyway I don't have any interest in chatting further because I obviously can't vouch for anyone but me.
Morning
can anyone help me please?
@TahirYasin link to question
13:29
@Christian I'll have a play around with git-http-backend, see if I can come up with a recipe that works. As a temporary measure what are putenv()/shell_exec() doing for you? I don't like to modify my environment just for a child process but it should work.
@goldenparrot In my experience, the overwhelming majority of the incorrect use of the word "sir", is from Indians speaking English.
IMHO "sir" is the only correct way to address someone on the internet, because
> 29. In the internet all girls are men and all kids are undercover FBI agents
> 30. There are no girls on the internet
1
Q: How to add sub-menu to a menu generated by wp_nav_menu by using plugin

Tahir YasinI have a menu generated by wp_nav_menu which look like <ul class="nav-menu" id="menu-top-nav"> <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-43" id="menu-item-43"><a href="http://www.example.com/item1.com">Item 1</a></li> <l...

@DaveRandom I've been very near to getting it work with putenv() / passthru(), but I can't pass $_POST, which is essential to git-http-backend.
In my country, we only call Alex Ferguson as 'sir' \o/. Respect!
13:43
@Christian How does proc_open() help with that? It's just a set of key value pairs, passing an array as an environment is just like calling putenv() over and over, for the scope of the child process only.
@DaveRandom The CGI spec requires POST to be passed via STDIN. I think...
@draconis People talking about football are on a fast track to my block list ;-)
@DaveRandom Seconded! ;)
@Christian But you're not doing that in the code you showed? Also, try $result = shell_exec("echo ".escapeshellarg("your post data")." | git-http-backend");
@draconis Everyone gets a warning, you've had yours :-P
13:49
@DaveRandom It's kinda hard to keep up with my code changes :D
Oh btw, relevant to Indians failing at "sir"
thank you sir i will try to it with json_encode() — Saleem 1 hour ago
@Christian You should try a versioning system like git. Oh, wait.. :)
@DaveRandom We can simply say 'yellow card'.
Just kidding, couldn't stop myself :( please one more chance :)
@vascowhite Shut up. >:( lol
13:55
hahahhaha
14:11
1
Q: How to add sub-menu to a menu generated by wp_nav_menu by using plugin

Tahir YasinI have a menu generated by wp_nav_menu which look like <ul class="nav-menu" id="menu-top-nav"> <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-43" id="menu-item-43"><a href="http://www.example.com/item1.com">Item 1</a></li> <l...

any help will be appreciated, thanks
mornings :)
14:26
posted on November 06, 2012 by Henrik Sarvell

So it seems my old eclipse templates won’t work anymore in Aptana Studio 3.... Read More

14:44
anyone know about MySQL here?
@RolandSams See the room name and description
The C++ room sent me here
> Discussion for all things PHP - Don't ask whether someone is here or can help. Just tell us your problem. If anybody can and wants to help, they will.
Ok, I want to know if there is a maximum number of queries in a time frame using MySQL or is it just a matter of system resources?
Has Oracle capped it?
14:53
ok ty
Search engines ftw
15:05
I have a CakePHP application, which uses the 'EmailComponent' outside of cakePHP (In a SOAP request), When I use it like this, it doesnt load my templates (located in /views/elements/emails/ ), instead it loads the default cakephp template. When I send a email using the component (through CakePHP, ie: no SOAP request), It works fine and sends the correct template email from the above folder..
the code im using to initialise the component is here: justpaste.it/1hvz
15:36
i hope you are aware that PHP5 has been released, bcause you still are writing code for PHP4.x
@hakre morning ....:)
@Feeds You make me sad.
user1607528
16:09
what would you use to delete mysql entry. (GET, POST)? .
@Muhammet POST because of idempotence. In 99.9% of cases. There may be some use case where GET would be appropriate, for ex. when implementing some kind of tracking system, but it would be a secondary function of the request - if the primary function of the request is to delete something, use POST.
user1607528
@DaveRandom thanks.
user1607528
Sorry if asking wrong question, I want to call delete function when submit button clicked, how do i do that. Give sample example please?
16:25
@Muhammet DELETE. Harharhar.
user1125394
document.getelementById('myforrm').onsubmit = delete;
user1607528
is it safe?
@Muhammet Of course not. If it deletes entries, it can't ever be safe.
user1607528
thanks
user1125394
@Muhammet where's your delete function? javascript, php
user1607528
16:30
@cyril i figured it out thanks
user1607528
16:42
I can't ask questions :(
any one around?
user1607528
Is it because I use proxy
probably
@TheWebs we all ...
you dont need a proxy to acces this site
user1607528
16:45
Proxy which is a traffic compressor called fastun
I'm off guys. @DaveRandom if you get some time later on, we could try figuring out proc_crap :)
@Muhammet check this 301.7 KB (268.4 KB from cache)
@Christian Yeh I'm gonna have a play around with it later. Did you try piping the post data in with echo?
so u can once load so next time in your browse it will load very less data
@DaveRandom Not yet no. People are currently queuing in my office....you get the picture.
user1607528
16:48
I will have to turn it off and turn it on when browse something else new
@Christian No worries. Definitely worth a try until proc_open() is working for you (which I'm sure it will)
user1607528
@NullPointer. There is a form which is processed with update.php. I need to pass Get[id] to update.php. I tryied hidden input. What other options?
@Muhammet i am sure that so is using all of this what you proxy does
so it wont much worthy
rather worthy
@Muhammet what ???
user1607528
I need to pass id of blog entry to update.php. which I can get with GET where form is at
you can create update.php so why you need to ask to other
is there any special reason ??
user1607528
16:54
ok. index.php?id=1. the form is on index.php. i already put hidden input with value of $_GET['id']. and it perfectly passes it to update.php. I am curious if there is other way (globals ? constants?)
can some one tell me if GET is the best way to handle this? stackoverflow.com/questions/13254914/…
no you can only pass by either GET or GET by the form approach and other are cookie and session
Your question makes little sense
how so?
it makes purpose sense
in my books
So I am assuming theres no wordpress command to do any of this. ok
can not believe asked by 4.2k rep user stackoverflow.com/questions/13255776/…
17:20
what do you guys recommend for cookie compression?
@hanleyhansen a webserver that supports gzip?
@hanleyhansen check
4
Q: Will mod_gzip compress the cookies

Eric HogueI have a php web application that uses big cookies to store a lot of users data. If I set mod_gzip on the apache server, will it compress only the page content or will it compress the cookies also?

@NullPointer i'm better off using sessions then right?
@hanleyhansen
You know that sessions use cookies, right?
@Leigh what?
17:23
@hanleyhansen depends on what you are storing
@Leigh well duh. but it isn't stored on the client's side
The concept is pretty simple. If you can't store a lot of data in a session, store it elsewhere, remember where you stored in session.
@hanleyhansen
Session cookies are stored on the client side.
@Leigh lol....:P
I'm going home, I'm not inbred enough to manage a triple-facepalm.
7
17:29
@Leigh there are client side cookies and server side cookies. why are you facepalming like i'm making stupid statements?
what i meant by this:
7 mins ago, by hanleyhansen
@NullPointer i'm better off using sessions then right?
is that i should introduce sessions into the equation so i can store more data without a problem
user1125394
A cookie, also known as an HTTP cookie, web cookie, or browser cookie, is usually a small piece of data sent from a website and stored in a user's web browser while a user is browsing a website. When the user browses the same website in the future, the data stored in the cookie can be retrieved by the website to notify the website of the user's previous activity. Cookies were designed to be a reliable mechanism for websites to remember the state of the website or activity the user had taken in the past. This can include clicking particular buttons, logging in, or a record of which pages ...
user1125394
with my apache config I just send the PHPSESSID and the storage is server-side
@hanleyhansen There is no such thing as a "server-side cookie". Cookies are key/value pairs that are set by the server, and stored on the client side - basically a collection of cookies represents a 1 dimensional map. When the client makes a request, it sends those key/value pairs back to the server, the way that PHP sessions work is by using 1 key from that map (PHPSESSID) to identify a server-side data store that will be loaded into the current execution.
Using sessions does not create "server-side cookies", it uses a single cookie to maintain the mapping between a local data store and a particular client.
@Gordon Voted to close, but I must admit I have done similar things myself in the past :O
@DaveRandom cheater
Any decent API will rate-limit based on access tokens rather than IP address, so frankly I don't feel too bad about it...
Evening
18:11
@Gordon How the fuck did that get an upvote
2 upvotes that is...
@PeeHaa and how did it survive for so long?
Well can't blame me. I just came home ;)
@DaveRandom /me is back. I'm writing some new code and a couple of test cases. When these are ready, I'll be able to do the real stuff. I hope.
18:28
@evening peehaa
but i loss 60 rep :( its okk
I want to answer something but all the Qs are either too localized or dupes
@Gordon Preview: docs.google.com/spreadsheet/… - but my mind is somewhat in low mode, I'm not really creative with the questions so far.
@hakre looks good for a start
18:43
@hakre Whats the purpose behind the spreadsheets form? other than obvious questions.
@nickhar I'm asking myself if it is possible to find out more about the motivation why many stackoverflow users post code examples with the mysql_* functions.
Which of the following Mysql APIs do you use?
Is that a trick question? I use all 3 of them, but been leaning to PDO in the last two or so years.
@Christian Trick in which sense?
@hakre now there should be some questions asking why folks use the apis they use
@hakre Got it and very understandable.
18:45
For what do you use PHP? Needs an option for freelance devs?
@hakre In the sense that unfortunately I have to maintain software that use ext/mysql, so "I use ext/mysql"
@vascowhite You mean client work?
@Christian well, there is a checkbox to check that :)
oh yeah, I guess that covers it
@hakre Yeah, anyway, sent.
I mean for example if you're using wordpress, you're using ext/mysql, too.
18:46
take out the word 'some'?
@hakre Exactly. I think I missed the point of the survey. Other than the years part, the rest is pretty much the same.
@hakre I felt freelance work was missing, too. i figured by client work you mean freelance but freelance is clearer imo
I will put "Freelance Developer" in there, too as an additional checkbox. Also maybe if you're a contracted worker, no idea how that is called.
@hakre employee?
@PeeHaa thank you :)
18:50
:)
Question: Do you guys store millisecond time as an integer (in msec), or as a float (in sec, like microtime)?
I think the float approach is kinda cleaner. 0.5 == half a second vs 500
Depends on the context
lol for title:
0
Q: appendChild is "eating" the children

telex-wapI have a structure which is a big div container: var bigcontainer = document.createElement('div'); which contains three items: A header, a set of buttons and the main information: var divheader = document.createElement('div'); var divbuttons = document.createElement('div'); var divinfo = doc...

@PeeHaa Timeout....won't probably more than 15 mins.
@Christian why would you need miliseconds for a timeout?
Hello! PHP Chat room!
18:53
@PeeHaa I'd add to it "for additional fat".
@Gordon It's the timeout for a process to run.
@Christian I didnt ask what it was for but why you need it
Oh. I don't know. I'm designing a class that executes commands, you see.
It supports setting a timeout, and it can be accurate up to milliseconds.
Say, run a program for up to quarter of a second. To be honest, I can't think of a valid use case.
@Christian if you cant think of a valid usecase, dont use miliseconds. can of worms.
@Gordon But why restrict this area if it doesn't do any difference to me?
@Christian because yagni
18:56
I mean, runtime > timeout will always be the same.
oh
user1125394
@DaveRandom imagine some developer stores the English->German dictionnary (say 10k words) for each user that connects to its server, how does it work this thing is in your browser? what is the $_SESSION max size?
@cyril "unlimited"
note the quotes
user1125394
yes ok I thought it was
:6119818 session data is not send to the client

« first day (752 days earlier)      last day (4422 days later) »