« first day (912 days earlier)      last day (4262 days later) » 

10:02
How is that difficult?
Besides making it non-interoperable.
@Jack because I can't just json_decode it. I actually have to write a parser.
@HamZaDzCyberDeV lovely
(facepalm)
Haha; proposed by "Your mother" lolol
10:06
emm .. is it an invitation or an insult ?
@Gordon invite me too... nothing is complete without a noob
@iroegbu got all three extra users already. but thanks.
@HamZaDzCyberDeV link to user please.
@HamZaDzCyberDeV thanks. I wouldnt mind banning John for repwhoring, too :)
hahahaha xD
Did anyone know something for my issue?
@HamZaDzCyberDeV you sure that's the right user? It has nothing on the profile
It's a tribute user I suppose.
10:13
@Jack thanks
I love that guy lol, such profound statements.
@Gordon Yeah I'm sure
@HamZaDzCyberDeV Yeah agreed. Writing everything in uppercase is just horrible
And he's gone :)
10:18
This is just saaaad ...
posted on April 15, 2013 by Fabien Potencier

I know that this post won't please everyone, but I'm convinced that this is the right thing to do now and I think that most of the Symfony community will love it. Also, I've tried to be subtle in choosing my words, so read carefully and don't over-read what I've written. Long story short: in the coming months, the Symfony core contributors should focus their efforts toward stab

Part & parcel ... I guess John must have pissed someone off, but his answers weren't the only ones that were "improved".
@Feeds meh
can anybody help plz as i wanted to detect id which will match new_3_del,new_4_del as 3,4 are coming dynamic. i have done like thi
`$('input[id^="new_"]').val()` but its giving me all ids matching with "new_"
its about JQUERY
uhm guys, this is the very meaning of "Too localized" right? stackoverflow.com/questions/5365283/…
10:27
@NikiC Yeah, looks like it :)
@PHP5.5 what you have will give the val() of all input tags with ids starting with new_
@PHP5.5 jQuery room --> that way.
4
10:38
there is nobody :(
$([]) is still jQuery
How to get all <tr> ids from a table ?
using jQuery
@ScoRpion $('tr') ?
I want all <tr>'s of a table in an array
with jQuery o.O ?
10:48
@ScoRpion Ehm, maybe [].slice.call($('table > tr'), 0)
Why do you need an array specifically though?
@Gordon: hi gordon, please help me
I suppose [].slice.call(document.querySelectorAll('table > tr'), 0) would work too ... on modern browsers ;-)
@Gordon: i m uploading a video on youtube, but when i post action url it gives me error like "HTTP method GET is not supported by this URL
Error 405"
@Crazy4Php the error message is pretty clear, isnt it?
@Gordon: yes but i m passing url with window.location.href
@Gordon: in that where i have to set this methods, post or get
10:53
@Crazy4Php yeah. whatever. am busy atm. sorry.
@Gordon: okay no proble, thanks for reply
is there any one else who can help me
$a = (1 << 0); what << operator do
@Crazy4Php It's clear, you can't use GET, try to use POST
@DextOr it's a bitwise operator php.net/manual/en/language.operators.bitwise.php
thnks @HamZaDzCyberDeV
@DextOr That particular example does absolutely nothing
11:01
@DextOr you're welcome :)
@DaveRandom could you explain it a bit ? the << or >> operator ?
Well it's bitwise, which means you are dealing with binary numbers - bit-shifting only works on numbers, and it only works in a meaningful way on integers. In theory it can be useful with strings as well but PHP does not support this natively, I've written](gist.github.com/DaveRandom/5201273) a couple of functions to do this but it's clunky.
Imagine you have the following byte:
00001100
If you left-shift it (<<) 1 place, it becomes:
00011000
Quite literally all the bits are shifted one place to the left. Right shifting does the exact opposite, so if you right shift the original byte 1 place you get:
00000110
The (each step means "multiply by two") part is a little bit confusing ...
Well that's pretty simple, The binary representation of 1 is:
00000001
The binary representation of 2 is:
00000010
The binary representation of 4 is:
11:10
oh ofcourse :O
00000100
etc etc
@DaveRandom Thank youuuu u!
np
So fairly obviously shifting something 0 places does nothing, you get the same thing out as you put in. Having said that, it's not the first time I've seen it done so maybe I'm missing something there.
Also note that shifting something PHP_INT_SIZE * 8 places doesn't work as you would expect, it actually does nothing, whereas I would expect the result to always be zero
That little nuance is actually quite irritating because it means it's more difficult to normalize negative numbers between 32 and 64 bit.
(when unpacking from strings)
Another slightly irritating but understandable nuance is that you can't & | or ^ an int with a string, they are type-cast to ints which usually results in the string operand becoming zero.
11:22
@HamZaDzCyberDeV: thanks for reply, but do you have any example to upload video file on you tube?
@Crazy4Php nope, I would think there is an example on their website ?
-10
Q: Is it works php HTTP_USER_AGENT for iPad

Suresh DhakalI have problem with $_SERVER['HTTP_USER_AGENT'] in iPad

^^ best question of the day, shown in its entirety in a onebox.
@Gordon yes.
@igorw does the same penalties occur when using sprintf and variants?
afaik the terminal buffer is the limiting factor here.
hm, my machine is doing too much crap in the background now, it's skewing the benchmarks. also, benchmarking is hard.
will try again once backup+torrents are complete, then I'll be able to get more accurate numbers.
11:42
@MadaraUchiha This sort of thing is what I meant regarding making the ext/mysql comment less spammy.
@igorw Wait, so you're saying <?php /* do stuff */ echo "string of HTML"; is faster than <?php /* do stuff */ ?>string of HTML ? Or did I miss something
@DaveRandom I'm saying they both slow down the execution of a cli script significantly.
@igorw They both do? So what you propose, fwrite(STDOUT, 'Stuff'); ?
Anybody here has read the oauth spec 1 ?
12:01
@PeeHaa埽 Read some of it once but had to stop before I hung myself. Why?
@PeeHaa埽 Note that the answer has been modified since I wrote that to include that info ;-)
@DaveRandom I am working on a project (an oauth service implementation). But I want to know what the difference is between oauth 1a and rfc 5894
They kinda made a mess of the different versions
@DaveRandom ow :)
First there was: oauth.net/core/1.0 and after that oauth.net/core/1.0a and after that tools.ietf.org/html/rfc5849
@PeeHaa埽 Mmm, @Lusitanian is probably your best bet there
Yo dawg wake up@ @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian
5
@lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian @lusitanian
Poor @lusitanian, getting pinged 60 times..
Why are you pinging @lusitanian? What's @lusitanian done?
12:13
It's what @Lusitanian hasn't done that's the problem, @Lusitanian hasn't got out of bed yet because @Lusitanian is lazy @Lusitanian @Lusitanian
You people are evil for pinging @Lusitanian so much =( I feel for you @Lusitanian!
I think we're all in agreement about @lusitanian then. @lusitanian needs to get out of bed, stop being a lazy @lusitanian, and then @lusitanian should do whatever @lusitanian should be doing.
@DaveRandom They are identical opcodes. So the only difference could be in the parser, which there is no significant difference, so no, they are the same: 3v4l.org/sVpsq/vld#tabs vs 3v4l.org/E6EtM/vld#tabs
Agreed. @Lusitanian
@ircmaxell Mmm, I thought as much, @igorw reckons they are both making a benchmarkable performance difference, I'm not sure what he's proposing instead (presumably fwrite(STDOUT) which would bypass the output buffering mechanism, but he seems to be busy so I'm not sure if that's what he's getting at or not)
12:20
it could be outside of PHP where the bottle neck is
Indeed, but if it can be demonstrated that some semantically identical PHP code is faster than some other approach it would imply that the bottleneck is somewhere in PHP. But since it's not me that's doing this test I shall refrain from further comment until I'm presented with some concrete evidence either way :-P
time php -r 'for ($i = 0; $i < 1000000; $i++) { echo $i; }' > /dev/null

real    0m0.733s
user    0m0.425s
sys     0m0.306s
time php -r 'for ($i = 0; $i < 1000000; $i++) { fwrite(STDOUT,  $i); }' > /dev/null

real    0m2.158s
user    0m1.720s
sys     0m0.436s
time php -r 'for ($i = 0; $i < 1000000; $i++) { }' > /dev/null

real    0m0.148s
user    0m0.138s
sys     0m0.009s
so echoing 1MM times takes 0.6 seconds (or there abouts)
@ircmaxell is it the function call? Can you try time php -r '$f = function(){}; for ($i = 0; $i < 1000000; $i++) { $f(); }' > /dev/null ?
Now, without the dev/null redirect:
@Ocramius no, that's not what this is testing
time php -r 'for ($i = 0; $i < 1000000; $i++) { echo $i; }'

/** SNIP **/

real    0m33.952s
user    0m0.471s
sys     0m0.635s
just wanted to compare the baseline :)
wow
12:27
Lesson: writing to the terminal (which is a blocking operation) is slow...
@DaveRandom yeah, I get it, possible
@ircmaxell Interesting, so the OB actually speeds it up? Or did I not read that right? I would have called that the other way
No
There is no output buffering in CLI by default
@iroegbu just wanted to capture all the input tag ids matching that criteria
it's the piping the output to the terminal (a blocking display) vs to dev/null ( a non-blocking sink)
12:31
So why is fwrite(STDOUT, $i); "so much slower" (I know it's a pretty meaningless speed difference but it does appear significant within the confines of the test)? Because of the function call overhead?
@DaveRandom probably
@DaveRandom a few reasons: first, the function call, second: the overhead of more opcodes, third: the more code to run through (the fwrite stuff before it gets to the stdout writing)
goes from 2 opcodes to 5 opcodes.
alright, I'm out. Later
I'm just trying to remember the exact nature of the caveat to do with this that I came across once. However I think it was related to gz, so it was probably to do with php://output in a web server SAPI. I know I found that writing a stream directly bypassed something where echo did not, I know I made a note of it somewhere. The more I think about it though the more I suspect it was php://output related though.
Later
12:38
@DaveRandom good question, I wonder if fwrite will bypass the output buffer context...
later thoguh
(i.e. it's not PHP, it's terminal output buffer as initially assumed)
@ircmaxell It was a PHP4 thing: 3v4l.org/AUQUV, 3v4l.org/sASmq, 3v4l.org/gTjAc
user1125394
12:54
w3school seems to prefer mysqli w3schools.com/php/php_mysql_select.asp
@c'c Nobody cares what W3Schools thinks.
user1125394
man you google 'mysql php', there's no good info, you have to manually go to php.net maybe
@c'c That's because W3Schools use aggressive almost-black-hat SEO to get to the top of Google. Prime example of why W3Schools sucks can be found in the last code sample on this page.
@c'c php.net also doesn't have good info
Let's just say it has been on my list for a loooong time
12:58
@DaveRandom how is this even legal
today's most used commit message from my SVN commits: "FML"
is there anybody using godaddy hosting? I'm working in a small it business and we are planning to change our hosting for more reliability
@tereško :-(
@Happyninja don't go for godaddy
@PeeHaa埽 why?
godaddy is the w3school of hosters
13:00
@PeeHaa埽 okay
Where is the best file to encrypt your password for a registration? I have a index wich includes a file for form validation, after that I use a DAO file to insert the data into my database with and $sql = "..." and $params array. Now where is the best place to encrypt the pass?
user1125394
ok if you include pdo, you start having better stuff
I use PDO.
@c'c Don't make the mistake in thinking that just using pdo makes it any better by magic
godaddy.com/news/article/… <-- It was not caused by a hack, it was caused by their internal network. Because that's a much better reason for a 6 hour outage on the entire network.
13:02
@PeeHaa埽 haha, I love how Happy Ninja accepted your reason without question. I'm going to use w3schools to win every argument.
Im trying to encrypt the password in my Params array but it seems PHP won't do that,
'email'=> Common::encryptPass($data['email']),
@crypticツ :-)
@DaveRandom at the moment we are experiencing inconsistency with some of our email server. It been 4 days now and the hosting service reason is hard drive failure.. Gosh, it mean 1 thing to me: either they don't have a recovery plan or they just bunch of liar
@Duikboot first of all, you don't encrypt passwords, you hash them.
and yes, you want to do that when inserting into the database.
I maybe spelled it wrong,
I do this:
return md5(sha1($password).$config->salt);
13:05
eeeh
yeah, don't do that.
@DaveRandom "We have let our customers down and we know it. " --Scott Wagner Go Daddy CEO
you really want to use something stronger for hashing. see @PeeHaa埽's link.
@crypticツ hang on! I just saw the 'okay'. @PeeHaa埽 I use godaddy. I haven't had any reason to complain, yet.
13:06
Is it easy to implement?
yes, just include one file.
@iroegbu ...w3schools. I win! +1 for me
@Duikboot read the README ;-)
@Happyninja At the end of the day, no-one can guarantee 100% uptime, acts of god etc etc. What you need to do is remember that you get what you pay for. Don't be drawn in by cheap offers, find something that gives you a guaranteed SLA. Stuff will inevitably go wrong, but if you have a decent legally binding SLA you can be guaranteed the impact will be minimal, and in a serious outage scenario you will have a decent ground for reclaiming damages.
@crypticツ Oh well, as long as you are aware, that's what really had me worried.
its working igorw :)
thx
13:15
@DaveRandom thing is my boss don't want to spend a lot on it. I did some searching for decent architecture and it come around 75$US/month but I was told it's over-budget. I guess I'm doomed for cheap-unreliable hosting service
@DaveRandom hmmmm grippie was broken on that one :(
user1125394
you can put a slash / in query strings right? as a seprarator and explode it after
@Happyninja Tell them this: If you buy cheap hosting, you get cheap service. And when something business critical goes wrong, they will have no-one but themselves to blame. They won't be able to recoup any losses, and no-one in your company will be able to do anything about it. I've put many, many systems together at the minimum cost but I refuse to do it unless I have a signed document that basically says "I'm aware of the risks and it's my fault when it goes wrong".
@c'c According to the standards, no. In practice, probably, but don't.
@PeeHaa埽 Define "broken"
user1125394
let's comma then
@c'c You can do it as long as you URL-encode it.
user1125394
13:21
yes
I tend to use semi-colons if I really need to do that, but arr[]=1&arr[]=2 syntax is a much better option, because it arrives in PHP ready-decoded to an array
user1125394
oh right forgot the []
@DaveRandom that's what i will tell him then :\ I certainly don't want to be blame for cheap budget
Hello friend Good Morning, Good Evening, Good Afternoon, Good night
That was a short conversation
13:23
now i am going to ask u one question i hope u have answer of it
Did someone say, semi-colons?
The following program...

;;;;⁏;;⁏;;;
⁏ ;;;;;;⁏⁏;;⁏;⁏
⁏ ;;;;;;⁏⁏;⁏⁏;;
;;⁏⁏ ;;⁏ ;;;;;;⁏⁏;⁏⁏⁏⁏
⁏ ;;;;;;⁏;;;;;
⁏ ;;;;;;⁏⁏⁏;⁏⁏⁏
⁏ ;;;;;;⁏⁏;⁏⁏⁏⁏
;;⁏⁏ ;;;;;;⁏⁏
⁏;;⁏ ;;;;;;⁏⁏;⁏⁏;;
⁏ ;;;;;;⁏⁏;;⁏;;
⁏ ;;;;;;⁏;;;;⁏
⁏ ;;;;;;;⁏;⁏;
⁏ ;; ;

produces the following output:

Hello World
user1125394
@DaveRandom eh comma is fine since this mush go inside a WHERE account_id IN (?)
in Magento , when i am going to refresh or delete cache. it will show me error and my whole page show me code and than error message. @tereško @crypticツ @PeeHaa埽 @all other friend help me plz
@c'c Nope, won't work like you are thinking. You can't prepare an IN() with a single ?, you have to do (?, ?, ? ...)
A single ? is treated as a single value
user1125394
worked in c#
user1125394
13:27
if the value is 123,128,129
@Michel06 Please don't ping random people with your questions, it makes everyone less likely to help you. If you have a problem with magento you should ask here
user1125394
(it's integers, that's problably why it works)
user1125394
@DaveRandom don't ping Random as well
@c'c Well in that case either you aren't using prepared statements and you are just dropping the comma string straight into a query (bad plan) or C# does some magic that PHP doesn't. Either way, that won't work in PHP
@DaveRandom It only showed half
13:28
@Jimbo This is also hello world:
any one can help?
user1125394
@DaveRandom I don't know in advance the length of ?,?,?, but I guess I generate it
The brainfuck programming language is an esoteric programming language noted for its extreme minimalism. It is a Turing tarpit, designed to challenge and amuse programmers, and was not made to be suitable for practical use. It was created in 1993 by Urban Müller. The name of the language is generally not capitalized except at the start of a sentence, although it is a proper noun. Language design Urban Müller created brainfuck in 1993 with the intention of designing a language which could be implemented with the smallest possible compiler, inspired by the 1024-byte compiler for the FA...
@DaveRandom ohk i ping two or 3 people who is inteligent enough to give my answer thats why bt sorry ill not next time
Brainfuck is the Hitler of Programming Language Discussions #godwin
3
13:29
@PeeHaa埽 ...of the content, or something to do with the actual grippie/container? Either way it's probably an API issue, remember we just innerHTML the HTML string that SE sends us.
Godwin's law strikes again!
Lol. Brainfuck's Hello World: ++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
I agree, Brainfuck is a brain fuck.
Gordwin*
@igorw :D
13:30
@Gordon Isn't that comment subject to Godwin's law in itself?
@DaveRandom yes, kinda
@DaveRandom Right after it my pc broke down. So it may be E_CRAP_PC
@c'c Yeh I showed someone else this the other day, let me find it
@DaveRandom Huh?
@ircmaxell Since 4.3.somethingverylow php://output goes through the regular ob (or at least that's what seems to be the case on 3v4l which I guess uses the CLI SAPI underneath)
13:32
@DaveRandom 3v4l.org/2QBd6
I am trying to take image data passed through post and attach it to an e-mail and send that e-mila with html. I made it work in a test.php file but when I paste the code over to my main file I see all of the --PHP-mixed-f016f2d79755d6c2aed0c641f7e30efa
Content ... stuff in plaintext in the e-mail.
I am using ob_start to make an image and i'm using ob_start again to make the message. WTH am I doing wrong here :/...
user1125394
@DaveRandom that does ;), I know ugly but
user1125394
$st = $pdo->prepare('SELECT * FROM account_order WHERE account_id IN (?)');
$st->execute([$_GET['accounts']]);
@ircmaxell Interesting. There was a (apparently unrelated) change to ob_start() in 4.3.2. Will test with CGI/mod_php in a bit, see if I can work out what it was I found. Maybe it was just E_PEBKAC.
@c'c Nope, really not going to do what you think it will.
Oh wait
Actually it might
user1125394
it does really, and just have basic configurations
13:36
If you have emulated prepares on
(which you should turn off)
That's arguably a bug in emulated prepares if that's the case, because that shouldn't work.
user1125394
why shouldn't, in SQL IN (1,2,3) is correct
Yes but that's not what you are describing with that syntax. You are describing IN ('1,2,3') or possibly IN(1)
@DaveRandom thx :)
Hello
13:39
My gut tells me that's off-topic - Feels like it could set precedent for SO to be the help-text for any site
user1125394
@DaveRandom as yes maybe the trainling quotes, and mysql handles the bg
user1125394
bug*
@MikeB From the FAQ What kind of questions can I ask here? ... software tools commonly used by programmers
Not in any version I've tried. And I wouldn't want it to either. It's not a bug, it's using it incorrectly. pastebin.com/pKmUgtFW is the correct usage.
@MikeB I'd say OT and NC
We0
We0
Hi Everyone
13:44
Hello @We0
Anonymous
hi @We0
@HamZaDzCyberDeV phpize is a tool, github is a site
We0
We0
I have a cron job and I am trying to create a lock so it doesn't run while there is one instance running already
@MikeB But I think GitHub is meant for programmers ?
Pus
Pus
Hi friends any idea about this question
http://forums.cpanel.net/f185/two-ssl-host-cpanel-ssl-error-338801.html#post1369061
We0
We0
13:45
actually nvm
it is creating
my destruct was removing it
facepalm
I posted my code to a question. Can anybody help me out? stackoverflow.com/questions/16016784/…
@MikeB Mmm, but isn't git a tool? So by extension I'd actually say github-related questions are borderline on topic. Still NC though.
@HamZaDzCyberDeV If that were true I could expect to copy their FAQ into StackOverflow questions help.github.com
what's the difference between programmers.stackexchange.com and SO... both handle programming questions?
13:47
If it's not programming related then it belongs on programmers.stackexchange.com (Serious message SO used to print out during migration)
@DaveRandom possible, but why worry about 4.3
@MikeB You <strike>I;m</strike> convinced now ^^
Pus
Pus
1
Q: Redirect all https://www.mydomain.com to https://mydomain.com using htaccess

PusHi I am trying to redirect the https://www.mydomain.com to https://mydomain.com and i use following htaccess RewriteEngine on RewriteCond %{HTTPS} off RewriteCond %{HTTP_HOST} ^mydomain\.com$ [OR] RewriteCond %{HTTP_HOST} ^www\.mydomain\.com$ [OR] RewriteCond %{HTTPS_HOST} ^www\.mydomain\....

@ircmaxell Because I still very occasionally have to stupidify code to 4.3.10 for an specific embedded system. But that is, admittedly, a ridiculously narrow use-case.
@HamZaDzCyberDeV ---strikethrough--- = strikethrough
aaaa
@DaveRandom thx again :p
Pus
Pus
13:51
I have an ssl issue can anyone help please ?
Is it possible with BCRYPT to make for example a hash and paste it in the database for a user
and use it then?
@DaveRandom there should be a kinda documentation for all that like, italics, bold etc
RewriteCond %{HTTPS} off [OR,NC]
RewriteCond %{HTTP_HOST} ^www\.mydomain\.com$ [NC]
RewriteRule .* mydomain.com$0 [R=301,L]
@Pus ^^
13:54
Now please stop spamming the room with your question.
@ircmaxell We need to stop that from being developed or we all lose our jobs
that was to @Duikboot's reply
Now, off to the first meeting of the day
What was wrong with my reply?
@ircmaxell Do any agile?
13:59
I only asked it once?
@Duikboot Ofcourse you can hash a password and put it in a DB and use it later for authentication, or am I missing something ?

« first day (912 days earlier)      last day (4262 days later) »