« first day (914 days earlier)      last day (4259 days later) » 

user895378
19:00
Yeah I'm defaulting to utf-8 for any text/* content-type without a charset
Content-Type: text/html; charset=UTF-8
pce
pce
when i run `php-cgi config.php` without any loaded ini file, i get: `X-Powered-By: PHP/5.6.0-dev
Content-type: text/html` without charset.
@pce 5.6? Anyway, normally it's more sane to leave the charset decision to the client.
vagrant download 64mb 2 minutes. virtualbox download 95mb 20 minutes.
Not providing it leaves some wiggle room and Webbrowsers are historically better with that then servers.
19:01
@Gordon are you actually in germany? O_o
@Ocramius yes. why?
@Gordon cuz connection is wowesome in this part of the world (so far)
@Ocramius but apparently oracles connection sucks
@Gordon it's capped so you spend some time on their website while you wait for your download.
Just some nifty marketing move.
@nacin I can demonstrate an injection if you'd like to prove to you it's not "just as solid"... Will you fix it (actually fix, not BS)?
19:04
@hakre i never went to their website. I started VirtualBox and it said: update.
@Gordon okay. Maybe you should just start the update again.
Or take a look if they run torrents in the background
@ircmaxell Why you talking to the wp trolls?
@ircmaxell How do you guys even follow that? Twitter is so freaking uncomfortable to use, take it to some chat, heck, invite him here!
user895378
Yes, always invite the morons to the ambush PHP chat. That way you have backup :)
5
I'm generating static SQL to import to a DB, any suggestions on how to approach escaping? I have control over the data source, but I'd still like to have proper escaping in place.
19:10
@NikiC because he likes trolling
@igorw Write XML, MySQL can import it and PHP has a serializer for it with XMLWriter
Or take CSV works with most databases.
yeah, I thought about using CSV
should be good enough I guess :)
@rdlowrey Screw backup, if you want to have a decent chat with the guy, take it to chat
Even make it a room without writing privs to anyone but the two of you
user895378
Yeah, twitter just doesn't work for that sort of thing.
@hakre thanks
user895378
19:14
I'm not taking crazy pills right? If you use TLS correctly and verify peers (thwarting SSL cert fakers who would MitM attack you) your data can't be read even with deep packet inspection, right?
Wow. Just discovered for myself, that there is no need to add host in /etc/hosts if unix system(ubuntu) is guest system on VMWare Workstation, since you either way will end up mapping it through windows hosts file and Workstation works with it as well.
user895378
I mean, there's the chance that the Certificate Authority could comply with a government to issue them a fraudulent cert so they could spy on you, but if you acted as your own signing authority there's nothing anyone could do, right?
@rdlowrey TLS would be pretty darn useless if this were not the case.
user895378
Yeah. I've just been reading about certificate issuers being asked/forced to provide forged certificates to governments so that ssl traffic between major websites can be monitored.
19:19
that could happen. I've heard about root certs being sold even.
user895378
But I guess as long as you were generating your own certificates and acting as your own signing authority there's nothing they could do.
@rdlowrey Right, but you also need to take care to keep the secret secret.
I believe it was mentioned here:
user895378
I'm getting paranoid in my old age.
@rdlowrey The usual way of how it's going ;)
19:20
@rdlowrey paranoia is an occupational disease
@rdlowrey yes, but then you have the good ol' distribution problem.
I used to be paranoid, now I'm a pessimist.
user895378
Nah, secret usb thumb drive handoff in shady briefcase works every time :)
also , it reminded a quote from a book series that i like:
> “Paranoid? Probably. But just because you're paranoid doesn't mean there isn't an invisible demon about to eat your face.”
I just find a standalone application built using web technologies it is called pagico
@rdlowrey Don't forget to burry it in the garden 1m below.
19:23
Evening!
MGE
MGE
How can I order via mysql something like this:
MGE
MGE
ABCD1233 ABCD1333 MEOS3029
@rdlowrey As what?
user895378
I don't know, it just seems like a pointless question to me but I wasn't confident enough to cv myself. Thoughts?
19:24
is it possible to to embed web server in mac application so I can use PHP, HTML5 to build standalone applications?
@rdlowrey It does seem Too Localized
In particular as it is constrained to a point in time and the results are no longer accurate
Quoting the top answer "This benchmark was done in February 2009. I reported the numbers I was given when I did the benchmark. Since then, other users have reported that they get different numbers when benchmarking this"
Also the first answer promotes curl over fgc, so obviously it should be closed! :P
user895378
If you're writing a real crawler fgc doesn't even make sense IMHO ...
user895378
@igorw Thanks for sharing this ... adding to my to-watch queue
19:29
@rdlowrey curl doesn't either though ^^
user895378
@NikiC lol it doesn't. I really need to rework my http client so I don't hate it because there aren't any good options IMO. Guzzle is usable but I don't personally think it's a very good solution either in terms of HTTP.
user895378
And Guzzle depends on curl under the hood, which makes the whole thing pointless to me.
MGE
MGE
Hello, how can I order via sql ABCD1000 ABCD1500 AABB 3000 and take the order like 1000,1500,3000 ¿?
pce
pce
@ahmed if you don't care about filesize: "tidesdk" (tidesdk.org), but i would recommend to evaluate php-gtk at first.
lol:
0
Q: MySQL error using WHERE clause

Kevin_TAI cannot figure out why this mysql statement keeps failing. It's driving me crazy INSERT INTO subscription_table (time, expiration, num_devices) VALUES (0, '2013-05-01 19:22:14 +0000', 1) WHERE code='exp828ccf9' is producing the error #1064 - You have an error in your SQL syntax; check the m...

19:33
@PeeHaa埽 Ineed it is! A very fine one Sir!
MGE
MGE
Nobody knows? How can I order via sql ABCD1000 ABCD1500 AABB 3000 and take the order like 1000,1500,3000 ¿?
@MGE via regex, but that will destroy your indexes
consider making your product codes (which i assume they are) more readable
@rdlowrey closed
user895378
19:36
thanks!
the question i just linked was removed by the author, lol
class BinaryTree {
    protected $value, $left, $right;

    public function __construct($value, BinaryTree $left = null, BinaryTree $right = null) {
        $this->value = $value;
        $this->left = $left;
        $this->right = $right;
    }

    public function preorder() {
        return co\recursive(function() {
            yield $this->value;
            yield co\from($this->left->preorder());
            yield co\from($this->right->preorder());
        });
    }

    public function inorder() {
user2230111
Unbelievable noob question, but how do I use square brackets (sorry, don't know what they're called) in xpath? Here's my code:
user2230111
for ($i=0; $i<=$previousitemsno-1; $i++)
{
$query = './/channel/item[$i]/title';
$entries = $xpath->query($query);
array_push($existing, $entries);
}
@looserlf You can edit your post
19:38
@looserlf you can only use variable in " ", not in ' ' :)
@Hiroto Can you at least try to be polite?
also [ is a bracket, { is a brace, and ( is a parenthesis. The more you know (tm)
vas ist das?
user2230111
Sorry, just a typing error, that wasn't in my code, just mistyped when i was copying it over
user2230111
19:39
so, it should be like this for ($i=0; $i<=$previousitemsno-1; $i++)
{
$query = ".//channel/item[$i]/title";
$entries = $xpath->query($query);
array_push($existing, $entries);
}
user2230111
doesn't seem to work
@looserlf You can simply use $existing[] = $entries instead of array_push
@looserlf What does the HTML look like and what are you trying to get?
If the HTML is going to be a codedump, please pastebin it.
Lol @Hiroto I only now realize his name is actually looser :P
lulz
you thought i was calling him a name? ...
user2230111
@PeeHaa埽 It's xml, the structure's like this

<rss>
<channel>
<item>
<title>title</title>
<media:content url="url" />
</item>
</rss>
@Hiroto yeah badly :P
19:43
Arrrrgh! XML! My eyes! They burrrrrrrrn!
Quick, fetch me an eyebath and the JSON
@looserlf And what are you trying to retrieve in there?
user2230111
@PeeHaa埽 I'm just trying to retrieve all the items in media:content, and put them into an array.
@looserlf But your xpath is matching <title>s and not media:content
user2230111
Oh, sorry, that was just to test. Ill change it
Are you trying to get the URL's or just the nodes?
user2230111
19:46
@PeeHaa埽 the urls
i think i just walked into Spam Wars: The Answers Strike Back
0
Q: how to keep two different version of ruby in the same machine without conflict?

RubyLovelyI have installed Ruby 2.0.0 and Ruby 1.9.3 p392. But lot's of gem like nokogiri,selenium-webdriver are not compatible with 2.0,thus I am bound to keep 1.9.3 version in my windows machine. Now problem is 2.0.0 get rides on 1.9.3.Thus I am not able to run the code which are using above mentioned ge...

@looserlf Is the actual XML valid?
If it is you can simply do:
user895378
Sooooo ... how important is it for a maxConnections configuration directive limiting the max number of simultaneous connections to your server to be a "hard" limit? For example, if I specify $maxConnections = 100; is it okay if it occasionally allows 102 or 103?
$dom = new DOMDocument();
$dom->loadXML($yourXml);

$links = array();
foreach ($dom->getElementsByTagName('media:content') as $mediaNode) {
	$links[] = $mediaNode->getAttribute('url');
}

var_dump($links);
You may want to test it though :P
@rdlowrey Sounds pretty lame
user895378
hehe you're probably right
19:52
:)
user895378
Though there's little point in limiting simultaneous connections in a single-process single-threaded server anyway as compared to something like apache (up to a point).
Fair enough. Although you could always just obfuscate the fact that your are actually doing $hardLimit -3 somewhere in your code ;-)
user895378
I was really just being lazy ... I can make it work correctly with the hard limit, was just hoping for an excuse not to do the extra work :)
@looserlf square brackets are square brackets in xpath, and they form a so called Predicate.
19:55
@rdlowrey Nopez. No excuse from me today :D
@NikiC What is this Niki?
@hakre iterator implementations :)
aaawh it's gone already :(
@NikiC Yes I see. Makes me hotty. But no time right now arrrrgh.
19:56
@PeeHaa埽 holy hell. Self-deleted of all things
@PeeHaa埽 wow .. just wow
I want to undelete it just so I can cv
something tells me I must have made somebody angry.
Yay. Revenge!!!!
Lol, I wasn't even active. What did happen?
But the rep left at some nice number.
20:00
@hakre lol
Maybe that was the point of the exercise :P
user2230111
@PeeHaa埽 Sorry for the delay, thanks! That worked!
@hakre Maybe it's just a coincidence!!
@looserlf np :-)
@MadaraUchiha yeah.. sure...
20:01
@MadaraUchiha I have a jQuery plugin that creates these lists ;)
Anonymous
@tereško I guess you were right about Kolink
@hakre It's odd that they don't seem sequential or ordered by votes.
Most serial downvotes are one answer after that other from the user's profile
Only thing I can think of @hakre is that all those posts just suck and the downvotes are legit :P
Anonymous
lol
20:04
That must be it @PeeHaa埽
@MikeB Yes, I mean this is computers. I wonder that programmers can not imagine that this is that likely to be detected immediately.
Well, @hakre what did you do 12 minutes ago? :P
@MadaraUchiha Let me check.
@MadaraUchiha Nothing.. not for the last 24 hours atleast. There's nothing on the activity stream that could be taken as offensive
Unless it was part of a deleted question/answer
@MikeB You don't see all of his activity, only he and mods can
Anonymous
20:06
Ok, guilty I am the one who donwvoted @hakre's answers
@MadaraUchiha nothing. for the last two hours. I was really a cuty.
@MadaraUchiha Go on
Well, I already know who it is, I got inside infoz :P
You should continue guessing.
Go on, entertain me.
Anonymous
8-)
@pce Thanks for the answer, I am aware of tideSDK and PHP-GTK but both of them will not help in my case, since what I wanted is to build normal web site with PHP framework like "Laravel" or Codeigniter and, tidesdk and php-gtk cannot run this framworks
20:10
do not use CodeIgniter
it is a horrible piece of crap
just an example, I am Laravel Fan
:)
pce
pce
@ahmed what i tried these days was gtk with the webkit widget, that gives you a browser.
since I am more like a "fan of MVC" , i think that they all suck
Anonymous
fail
pce
pce
20:12
@admed the GTK+/webkit widget is also used for the gnome-browser ( blogs.igalia.com/carlosgc/2013/04/11/webkitgtk-2-0-0 )
but you have to start a webserver, too ;)
@pce PHP has webserver in there ;)
@MadaraUchiha I asked first :)
@tereško there is one and only one point of using it. Freelance jobs.
@MikeB Don't ask me, ask the mod.
We don't have mods in here.
20:17
@nacin Demonstrated vulnerability emailed. Now it's on you...
pce
pce
@hakre yeah ( php.net/manual/en/features.commandline.webserver.php ), i thought about it, too. One could use a webkit widget and start the php-webserver, that listens on localhost:9090, point the webkit widget to localhost:9090 and you're done, in theory ;)
$10 says his reply is something like "that's not how we use it"
ALMOST THERE
96
A: SQL injection that gets around mysql_real_escape_string()

ircmaxellThe short answer is yes, yes there is a way to get around mysql_real_escape_string(). For Very OBSCURE EDGE CASES!!! The long answer isn't so easy. It's based off an attack demonstrated here. The Attack So, let's start off by showing the attack... mysql_query('SET NAMES GBK'); $var = mysql_...

@ircmaxell Well, fine then you say and go full-disclosure.
I know what this chat needs.
RADIO
:)
And someone who would run it.
@MadaraUchiha I've exceeded my monthly allotment of @Gordon :(
20:19
@pce yes, or we wrap it in a firefox extension and run it with it's own profile and not menu ;)
@MikeB I wasn't referring to Gordon.
@MadaraUchiha ask what?
@BoltClock @BoltClock @BoltClock @BoltClock @BoltClock ?
LOL, that serialdownvoter even downvoted community answers of mine - stackoverflow.com/a/12769983/367456
ow wait @Gordon is already here
20:20
LOHL
@PeeHaa埽 What?
nvm :D
BTW you're fast :P
No way for me to hide the evidence
:P
@PeeHaa埽 yeah but Im not paying attention. i have no clue what you guys are rambling about
20:21
@hakre OK I sent the guy a warning
Me neither tbh
Warnings are nice
@BoltClock Please tell me who that was so I probably can find out what happened.
@hakre I temporarily lost over 70 points on April 11th (another angry user...)
@hakre No, because even I don't know what happened either
20:21
@Jocelyn Neh you didn;t loose anything
right?
(Actually, no because I'm not supposed to tell)
(but you know what I mean)
@hakre 18 downvotes. mimimimi
@BoltClock yes I can imagine.
@Jocelyn Lol, why didn't you report it then?
@PeeHaa埽 it was reverted, if it's what you mean
20:22
yep
I should probably do another one with a monster truck.
@hakre What's a pricee?
@MadaraUchiha it's a person or object that gets a price attached to it.
@igorw Is that a fancy way of calling somebody a hooker?
:D
20:27
lol
@pce I will investigate more on this theory, Thanks:)
@Gordon Yes, I got a hard hit. Hopefully it was worth it :)
@hakre he don't want that...
Can a mod tell me what happened to this user? stackoverflow.com/users/1203803/daknok
20:34
@hakre yes
@MikeB likely destroyed
@ircmaxell well, who cares?
obliterated
@BoltClock 36 I got 36 downvotes on April 11 (almost only on answers, since I asked only 2 questions on Stackoverflow)
http://stackoverflow.com/questions/15820956/on-ajaxsuccess-alter-a-different-dom-element
tubbleweed awarded...woot.
20:36
@Gordon Are you able to be more specific? Deleted by user or mod? Merged with another account?
And actually the time is a good one to promote changing the database class because they want to change it to mysqli.
Getting real prepared statements would be a benefit.
I mean for all those users who need to install WP un-patched.
@MikeB once destroyed only community managers can get them back, so I see the same 404 you see
@Gordon thanks
@MikeB Was I talking to you some time ago about that duplicate account?
@webarto Yep, my flag was denied for that user
20:39
Yuuuuuup.
@Pheagey Congrats. That's hard to achieve. Maybe the pattern in your ASCII art?
Anonymous
This is how people should resign.
@phpNoOb What has he done this time?
Anonymous
@Jocelyn Who cares, I would fire someone for a cake right now.
If a flag gets denied and later the content is deleted your flag should be expunged
20:46
@phpNoOb Fire someone who asks a bad PHP question :-p
@MikeB What does expunged mean in this case
When I do a patch for PHP documentation, where can I see whether it got accepted or not`?
@hakre I didn't say I wouldn't do it. I just said he didn't want it
@BoltClock Like the flag was never raised
20:47
@ircmaxell Yes, he always wants that you mail them at their "security" email where it goes into oblivion unless they fear somebody is putting it on the news. Seen that often.
I am going to ping him on twitter until he replies
Anonymous
@Jocelyn Good Idea. I would fire @webarto for a glass of water, if he was (hope not) my employee
@hakre possible...
I'm not the greatest artist...
user895378
If you're an ASOIAF dork like me, you'll appreciate this, otherwise ... kindly disregard:
user895378
20:48
@phpNoOb that's at least the third time I see you lash out on @webarto for no provoked reason? why is that?
*sob*
Anonymous
@Gordon sorry, but last time he provoked me.
We're not allowed to lash out at @webarto? :p
interesting: Quickhash
Anonymous
@MikeB the rules are kindf tighter for me.
Anonymous
20:51
On the other hand, you can read this ---------------------------->
@phpNoOb Ah, short leash? It's nice to keep things pleasant every once and a while
Anonymous
and yet it is stared
@igorw that new?
Anonymous
Plus, since when did it become offense to say that I am better that someone when it comes to PHP?
@ircmaxell no idea, only just stumbled across it just now.
20:53
@phpNoOb i explained in great detail why that "i am better" thing was offensive
well, first version was 2011-07-28
@phpNoOb i'd really appreciate if you could stop that. thanks.
that's awesome
@igorw Unexplored wonders of php.net/manual...
Anonymous
@Gordon I would really appreciate if you stop your fixation on my comments too.
20:56
Leaving.
Anonymous
as they are compared nothing to many people's
@BoltClock laters
@phpNoOb We fixate on flags. Just fyi. If people are flagging your comments we can't help it
@PeeHaa埽 cya
@phpNoOb I will do so as soon as you stop lashing out at people
@Gordon I personally don't care what he is saying, but it's not nice.
20:58
stupid bios... turns out that setting a bios recommended "safe" overclock on my cpu, disables S3 mode on the motherboard... meaning no sleep...
Thanks for defending me :)
@webarto np
group hug?
Fire @webarto! Not enough jQuery!
Oh, it's over already?

« first day (914 days earlier)      last day (4259 days later) »