« first day (1255 days earlier)      last day (3918 days later) » 

16:01
@webarto paste it where? how does that format a minified var_dump output?
Same would go if you put e.g. ZIP file :)
holy hell, yet another PHP clone of late: hippyvm.com
wrapping it <pre> tags doesn't work
@Jimbo you're welcome
16:03
@ircmaxell Their colors for the perf charts are bad. Makes it hard to distinguish.
@hohner Obviously at some paste service e.g. gist.github.com
@LeviMorrison their perf charts are bad in the first place, no code or methodology there
@ircmaxell Hippy VM? they're running out of "H" names :)
Also, those are just language benchmarks; show me app benchmarks.
16:04
@webarto doesn't work. it stays minified...
Ok, great!
I do care about language benchmarks but what really matters is how many more requests per second I can serve during peak traffic.
@hohner it's built off of PyPy's tool chain, so py is in there for a reason
@ircmaxell oh, i see. i thought they were just fans of The Byrds or something ;)
Hack looks quite cool, haven't played around with it much though
How about Room11VM :P
16:06
@webarto lol, funny. :)
What the hell is "VM" anyway? I know it as "Virtual Machine" :P
@SecondRikudo it's Virtual Machine
@webarto Virtual Members
@SecondRikudo as in JVM
@ircmaxell How does a virtual machine get transferred to a language again?
16:07
@SecondRikudo It doesn't run on magic fairy dust ;)
@SecondRikudo what do you mean?
A virtual machine (VM) is a software-based emulation of a computer. Virtual machines operate based on the computer architecture and functions of a real or hypothetical computer. Definitions A virtual machine (VM) is a software implementation of a machine (e.g., a computer) that executes programs like a physical machine. Virtual machines are separated into two major classifications, based on their use and degree of correspondence to any real machine: # A system virtual machine provides a complete system platform which supports the execution of a complete operating system (OS). These usual...
specficially the section "Process Virtual Machines"
Anyone from israel?
6
A: how to remove required php syntax error

John CondeWhen creating an array you use array() not arr(): <?php $num = array(4,2,8,9,6,445);?> <?php $num = array(0 => 4, 1 => 2, 2 => 8, 3 => 9, 4 => 6, 5 => 455);?>

@user3123545 Nope only hezbollah in here
Free Palestine
16:12
allahu akbar!
@PeeHaa: Seems like @Jimbo's previous comment went in vain. :P
@PeeHaa @webarto lol
@AmalMurali What a jock strap.
16:13
@rdlowrey did you had any time to look at that Artax bug ?
@Jimbo: Convert that into a comment and I'll upvote! :P
@AmalMurali Don't fancy being revenge downvoted :P
@Jimbo: This guy will revenge downvote if you leave such comments. Not answers. He specifically targets your low quality questions :P
I'll just post passive-aggressive tweets like this
Want easy rep on stackoverflow? Answer questions like this: http://stackoverflow.com/a/22613680/736809 #php #stackoverflow
16:16
lol
Please that crap.
BURN
When he says top 20 frameworks on hhvm.com, it makes me sad.
@webarto: Apply cold water in the burnt area. :P
Yup, yup... try not to cry, curl up and cry.
@Jimbo: rofl. Seems like Someone Who Shall Not Be Named started his work :P
16:22
yesterday, by Gordon
and of course John Conde has to repwhore on it
He's registered repwhore it seems.
Nov 26 '13 at 22:20, by rdlowrey
@HamZa A Kolink by any other name is still a repwhore.
:D
@webarto: You're reading my mind!
I was just going to post that.
@ircmaxell Let me just put this on my personal, private bookmark bar.
This answer about encryption I think is a copy-paste from an external source, but I don't have the link handy :-(
Just googled some of it in quotes and that popped up ^
@Fabien looks like a cross-post, as they were made the same day
16:28
10
Q: PHP Mcrypt - Encrypting / Decrypting file

whitman6732Trying to write a couple of functions that will encrypt or decrypt a file and am using the class found here to try and accomplish this: http://www.itnewb.com/v/PHP-Encryption-Decryption-Using-the-MCrypt-Library-libmcrypt The encryption function below seems to work, in that it appears to encry...

Yeah
Same question same answers, someone plagiarises from SO.
Anyone made something profitable lately? :)
@AmalMurali eek. why do people use mcrypt_generic?
16:30
@NikiC I have no clue. Because they think in resources?
@webarto My canola seed farm in minecraft should prove profitable in providing lubricant for my water turbine.
@ircmaxell Or get paid by lines of code.
@SecondRikudo It doesn't matter, their "magnificent" idea has no impact on rankings.
@SecondRikudo: DAFAQ :O
@NikiC: I have no idea (either way, because I know nothing about cryptography or encryption :P)
16:31
@NikiC true...
@Fabien Awesome, was thinking in "real" profit, but still awesome :)
I also love that the code uses RAND for the IV and thinks that Rijndael 256 is the same as AES 256
@NikiC to be fair, most people think Rijndael-256 is the same as AES-256...
But of course, the really funny part is the constant named CYPHER :D
doesn't excuse it, or make it right, just...
16:33
@Fabien: The original source is: itnewb.com/tutorial/…
(this one's from Sep 22, 2009)
I think the other link you posted was from one of the content-aggregation sites
Kolink aka Adam Haskell, repwhoring paid off.
I'm not really sure what getReturnType should return. If it returns a string that's easy and I'd be done. Should I add a class ReflectionReturnType? If I did that I'd want to refactor ReflectionParameter to make some kind of common Type object. I'd like to stick to the string but do you think that's sufficient?
@webarto: Eww
@AmalMurali It's almost as good as this one
@webarto Repwhoring pays off? I need to more!
@salathe I meant, he (Adam H) got a job at the company he hosted with.
@webarto It is awesome. You should come play :P
Young Sir, I gotta family to feed :D
@SecondRikudo: My eyes
@webarto And rockets to shoot
16:43
@webarto They'll understand.
I wouldn't want to get a job at the company I'm hosted with... Site5 sucks!! :P
I would love to. DigitalOcean rocks!
But I don't have the skillz :(
@salathe Newsflash, I don't work there since November :P
@webarto Damn, in that case Site5 are okay.
Hah!
Experienced bloke.
16:44
btw, did you get a new job or not
@AmalMurali Bull. Shit.
I recall that you quit the SF gig, but blacked out on the rest
@webarto: Why? :o
@tereško Got that one in January and few days later, got Nexcess one, so I quit the first one after getting one month salary.
Also, got @JoeWatkins a job :P
It was a month of jobs.
> "Nexcess: Magento Hosting – WordPress Web Hosting"
16:46
Now comes the months of work, which I honestly suck at :P
looks scary
@NikiC: you should have posted a new answer instead of editing that one (especially when it was just a copy-paste from here)
Just lies, mostly. Actually I'm with data center, have no relation to "regular hosting".
Pro tip: most people that get hired aren't fully qualified.
btw, @webarto , since you have been working at the hosting companies , can you help me set up Apache ?
16:48
Just apply and learn.
@tereško Not really :P interworx.com this is where I am at currently, the entire control panel is being rewritten to use up to 5.6 "stuff". What's the issue?
well
I want to use VirtualDocumentRoot /var/www/hosts/%1/src/public for dynamic host
and have an IP based host as a fallback (because the iOS project that I have to work with, cannot manipulate hosts file to use namebased access)
JS room not helpful...at all
:(
currently I have gone back to adding each host manually
(it's for my workspace VM)
@AmalMurali it doesn't look copy pasted from there
16:52
@tereško Sorry, I have also done it manually, which means I suck too. I can ask support?
I know this is not a JS room, but JS room is being as helpful as talking to a wall. How would I reference "<media:text>" in an XML file via JS queryselectors?
media\\:text ?
well ... if they have done a trick like that ... hell ... I would have set it up on lighttpd in 5 minutes
That doesn't seem to work
@DemCodeLines :puke:
@AmalMurali At least the page you link uses a MAC. Albeit they use PBKDF2 as the MAC, which seems a ... very weird and inefficient choice.
16:54
come on man
i really need help with it
@NikiC PBKDF2 is not a MAC. it is a KDF. So that's actually bad...
@NikiC M as "media" or "mandatory" ?
/me gets confused, when switching between knowledge domains
@AmalMurali If you're from India and 19, add * 1000 to difficulty, and it looks like they need Ruby devs so that goes well over 9000 :P
16:56
.. oh, nevermind. It's "message" in this case
> message authentication code
Yup.
@webarto: So many twists in a single message :P
@NikiC: Wrong link. I lost the other link... Anyway my point was that you should've added a new answer instead :P
Sorry, you were spawned at wrong place (like me).
@ircmaxell But isn't PBKDF2 effectively an iterated HMAC?
@NikiC yes, but it's not designed as a MAC. specifically, there's no separation between message and key. There's password and salt. And we already know about collision attacks against HMAC...
scrypt(PBKDF2-HMAC-SHA256-fail-affects-scrypt-no-security-issue-bGoDFpr8) = scrypt(;`B3nR6wQ2-_LSg"mH #yszm`[#z8B&L) for any salt, N, r, p
^^ That's because of an issue with collisions in PBKDF2 because of how it uses HMAC in the loop
17:04
very nice!
This must be the Yet Another PHP Implementation week
YAP :)
must be .. especially since hack/hhvm crap has overtaken the usual laravel crap in r/PHP
Haha
I like hack strict typing. :/
@NikiC I'd like to see more competition than just Zend and HHVM.
Competition is a good thing.
17:19
sure, sure
Guys, someone please implement the Hack syntax for PHP
You know, just a typechecker and something that strips em from the code
I'll let someone else do it.
user895378
@tereško I know what the problem is ... if you just disable the expect continue header $client->setOption('expectContinue', false); for now it should solve any errors. As for the 400 Bad Request response you were getting I don't see anything wrong with the actual HTTP request so I'm not sure what's causing that (translation: I don't view that as an artax bug without a reproducible test case + bug report).
user895378
I'm rewriting some of the http client code this week and hope to tag a new version in the next few days.
cool
I'm attempting to use get_file_contents, but I keep getting errors on the page I'm attempting to pull text from. It's a https URL and an ASP page, is there a better method I should be using?
@notchris: The function name is file_get_contents() (if you're talking about the built-in function). What errors do you get?
user895378
> I keep getting errors on the page I'm attempting to pull text from
user895378
No one can help without knowing what the errors are.
17:30
1 message moved to bin
@AmalMurali Sorry, I should have formatted that better. The error I get is "failed to open stream: HTTP request failed! "
It's an https page, I've attempted to download / use the certificate as well, same error.
Been reading r/PHP, gotta take Aspirin.
user895378
@webarto :(
So what do we have now? PHP Interpreters in: C, C++, Java, Python… anything else?
Hello. Since I think it would be a bad fit for a question, I ask here if anyone can help me real quick with a php sql statement. I really can't see whats wrong with. pastebin.com/nnqsivdN
I am not savy with mysql and hope anyone can help me with that
17:40
@Assylum What's wrong with it?
I get SQLSTATE[42000]: Syntax error or access violation: 1064
BUt it is not very helpful
It just says error in line 1
I really hate MYSQL Error Messages -.-
@Assylum There's usually a more descriptive error message
Next thing: php to machine code compiler… (not JIT, really compiling)
"Check your syntax next to ....."
@bwoebi we have .NET interprets as well
17:41
@SecondRikudo SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Error in PHP Script.
@Assylum You aren't closing your parenthesis.
CURDATE(),:tag");
@NikiC mhmpf … kay
@SecondRikudo Oh god, thank you :D. didnt see it... Thanks a ton mate :D
@bwoebi RPython. No interpreter in Python that I know of...
Maybe we could create a syntax error chat room and direct all the + questions there. :P
17:43
@ircmaxell There's a difference? okay… sorry, I don't know^^
@bwoebi it's a logical subset (although I think there are additions that make it not really compatible with cpython...
@AmalMurali Sorry if I disturbed your chat
@ircmaxell ah, good to know.
17:45
> Code with no exception handlers does not raise exceptions (after it has been translated, that is. When you run it on top of CPython, it may raise exceptions, of course). By supplying an exception handler, you ask for error checking. Without, you assure the system that the operation cannot fail. This rule does not apply to function calls: any called function is assumed to be allowed to raise any exception.
Hopefully they have a default exception handler?
@Assylum: Hey. Nope. Not at all... That was just a rant. Nothing to do with your question. I actually prefer syntax error questions asked on chat rather than on SO :)
    lst = [1,2,3,4,5]
    item = lst[i]    # this code is not checked for out-of-bound access

    try:
        item = lst[i]
    except IndexError:
        # complain
17:50
sounds like asking for segfaults
Maybe you guys can give me an opinion on my plans while I am here. I write a small website with a really simple blog. Didn't find anything that fits my need, so I gotta write it. But I am not that good with php, so I thought securing the admin area with http auth by .htpasswd. Is that a good idea? The folder is gonna be a really long name, like a md5 hash and not just example.com/admin.
I mean as long as its not linked somewhere it should be safe right?
Or can you force apache somehow into listing all folders?
as long as you're using digest authentication you should be reasonably ok
and don't worry about hiding it. It helps from bots, but doesn't really add any security at all
@ircmaxell Why is that? I mean nobody can figure out how to visist 2mdskosdhi34092389329 or so just by trial and error
even if they get that, the digest authentication should be practically enough protection assuming a decently configured server
@ircmaxell Yeah I rent one. Should be secure. It is not a root server, so I cannot change anything
thanks again :). Helped me a lot
17:55
Yay, I've had two downvotes in the past hour. Someone doesn't like me... I wonder who ahem repwhore ahem
@SecondRikudo, I saw your meta question about the FAQ thing. Are you organizing stuff, or were you just asking?
@Jimbo: What did I say? :P
Fixed that for you.
@AmalMurali Lol, thanks man. Some people are rather sad...
He's a moderator on Webmasters. I wouldn't expect this to come from mod. :)
(on the assumption that he's the downvoter :P)
@Jimbo @AmalMurali lol repwhore strikes back.. :P
@AmalMurali you've just removed +6 from him today, he's just so mad about it.. ;)
He might be monitoring the chat transcript for this room maybe ;)
@AmalMurali you'd see him on the faces on the right if he is though, no such thing as invisible here in chat.. (or so i think)
18:28
@reikyoushin: People can read the chat transcript without being in the room.
@AmalMurali ahh, yes. >.<
2
A: Why is this variable undefined? (PHP)

John CondeYou forgot to put session_start() at the top of your pages. Without it sessions won't work. <?php session_start(); if(isset($_GET['action']) && $_GET['action']=="add"){ $id=intval($_GET['id']);

Seriously? >.<
@AmalMurali lol, how much of that 80k is rep-whoring?
I don't know. Maybe like 80%? :P
I'm not qualified to judge as I was once a repwhore too (or am I still?) :P
1
A: Why is this variable undefined? (PHP)

Shankar DamodaranYou need to add session_start(); on top of your PHP code. That is the exact reason behind that ! <?php session_start(); //<-------- This one !!!! Add that on every page where you are making use of sessions !

Repwhore detected also :D
18:32
@AmalMurali my answers were not that great, but i stopped now.. :)
user895378
Hmm ... Should I bother to read the PHP Specification thread on internals?
@reikyoushin: When I feel the question is a bit low quality, I make it CW, like this one. That way, I can help the OP without being called a repwhore :D
@rdlowrey It's just talking about: no need and yes, should exist.
@AmalMurali if the question is a dupe or low quality, i just comment my answer so the asker knows the solution, then CV-pls
although my highest voted answer was made by rep-whoring, maybe i still don't know enough to give a good answer here in SO.. T-T
moring
@PeeHaa moring too
I'm kind of addicted to SO. Sometimes I feel I should offer all my rep as bounties and delete the account. But then I come back the very next day, scrowling through
lol
@AmalMurali i would offer my rep as bounties, if only i dont need them until i get 3k so i can help the cv queue
18:40
who flags a mod?
really?!
flag a mod? What are you talking about? :O
Hey hey, @Mr.Alien!
idk, I got a flag on one of Gordons messages
I also hate it when people feel the need to flag DAY OLD CONTENT
@AmalMurali hi o/
lulz
18:41
@rlemon useless infact
flagger, I know you're still in the room.... I'm giving you the evilest fucking stare I can right now.
@rlemon Probably 'twas the subject of the message or his accomplice. I actually linked to that message today.
I presumed it was the person he called out ;)
i dont get what you guys are talking about.. (sits on the side, watching while eating popcorn)
which, okay be funny. but flags are no joke! interwebz iz serious
18:43
@rlemon: LOL
@AmalMurali done with exams?
@Mr.Alien nope. It will never be over until this course finishes!
@rlemon By the way, what did you choose? "valid" or "invalid"?
invalid
I never click, am busy printing screens :p
Like I said, he's probably reading the chat transcripts ;)
@Mr.Alien: Printing screens? What screens?
18:47
Print Screen -> Open Paint -> Ctrl + V -> Crop the Image -> Post it here
Why? Just use screencloud. :P
Chrome screen capture FTW
i use pixlr plugin though..
I suppose i'll share this here as well.
in JavaScript, 2 mins ago, by rlemon
https://gist.github.com/rlemon/a7998d3a10efd680d89e run console.paint('http://i.imgur.com/0jJjx41.jpg', 90)
18:48
1. Sign up for an imgur account, 2) Install screencloud, 3) Connect, 4) Define shortcut key
Done.
just a little bit of fun in Chrome (not sure if it works in FF)
Actually I cleaned up my laptop so didn't installed much extensions now
@rlemon ( . ) ( . )
@AmalMurali you forgot something, it should be ( . )Y( . )
angry eyes or cleavage
I'm undecided
18:50
could be frog eyes.. *runs*
  ^     ^
( . )Y( . )
 \   -   /
 |` ___ '|
 ###   ###
I tried my best to make an Ascii frog based on your eyes
It looks like a cat to me
or a dog
   o-o
  (   )
  /`-'\
 :'}#{':
} \! !/ {
`-'   `-'
^ a dissected one?
when i said frog i meant this:
19:06
Who the hell is going around flagging stupid stuff?
@VarunAgw feeling high?
@VarunAgw you mean this?
lol. What was the message content, @Mr.Alien?
@reikyoushin: Don't even try. You can't. This elephant is unstoppable.
user2286243
@reikyoushin Yeah! It only load when you add ? to php.net/images/logo.php
user2286243
funny php
19:09
@VarunAgw They are random
@AmalMurali ^^^ that link which he just shared, followed by a text please stop him
@VarunAgw the logo is random.. doesn't mean if it runs on your browser, we'd see the same
user2518044
19:20
Hello. Does someone know if a PSR-0 class loader can handle more than one base path per instance?
@Bartek Should be reeeeeeally easy to implement? Why do you need somebody to do that for you?
But I would personally create a new instance considering it will stack anyway
user2518044
@PeeHaa I don't want anyone to do this for me. It's just that I can't find any informations about that. In examples I can only see "/path/to/project/lib/vendor".
anyone got a 5.6 build environment on the go ?
@Bartek PSR-0 says nothing about that. Specific implementations may or may not support that
@JoeWatkins 3v4l does
19:30
need to test ext
Well, nevermind then
can we test exts on travis without rebuilding php yet ?
dunno
@JoeWatkins why not?
Need a favor. I'm doing a talk in a few weeks "Design Patterns (Are) For Dummies", but the organizer doesn't like that it's playing on the "for dummies" meme. Can you think of a title that's still a little bit edgy indicating "this isn't your normal design patterns talk"?
19:32
seem to remember it didn't work a while ago and I had to rebuild php
@ircmaxell X for the average Joe.
@CSᵠ nah, if I was going that far, I'd just stick with the Dummies...
@SecondRikudo be careful! you don't want any major news picking this up, can almost see the headlines: "Internet explorer KILLS, switch to a different browser, research on the internet proves..."
19:38
@CSᵠ Why not? Let them! How can I contact them?!
@ircmaxell Design patterns for complete idiots!
lol
No, misses the point
@SecondRikudo just send them this telling them you're a statistician. that should do it, no worries
untalented/dull/retards ?
@ircmaxell Design Patterns advice from granma` applied TODAY!
no...
another fun thread on internals
language spec ^^
19:43
yeah, read it
from what I saw, was decent except for one person
JS spec "258 pages" really cute. We'll need more pages just to outline the comparison behavior :D
@NikiC I don't know about that... Especially since you should take that step to make a sane break to clarify and reduce the specified concepts to what they should be (at a BC cost)
@ircmaxell ah, so we're talking about specing p6
19:45
@NikiC that's the only way I would do it
simply because otherwise you're talking about making a massive spec that's internally inconsistent, and asking dozens of projects to handle the BC burdon, rather than 1
@ircmaxell aww, and I thought we might beat c++ in pagecount :P
(Of course, a much more ambitious goal would be to beat x86 in pagecount ;)
how long?
@ircmaxell s/dummies/newcomers ?
newbs sounds offensive, eh
19:53
Adobe PDF 1.7 - 1310 pages...
@ircmaxell lol, the C++ standard I use has exactly the same number of pages ^^
really? that's kinda funny
"A programming language, and a document format take the same number of pages to describe. Guess which is over-engineered"...??? The correct answer is:
It's not funny, it's masons.
And Illuminati and stuff.
zOMG so funny
19:56
Is it possible to have arbitrary number of capture groups in a regex?
For example, take a look at this demo. I'm trying to match a parenthesized pattern (could be nested multiple levels deeper). The expression I currently have matches ((bar) baz) correctly, but I want it to also return (bar). Is that possible?
Certainly it is, just not sure how.
Oh dear, PHP 6 v1 failed because of Unicode. PHP 6 v2 fails because the language spec never gets finished.

« first day (1255 days earlier)      last day (3918 days later) »