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

13:01
Wanted help in iterating XML code with PHP, anyone there?
13:14
@KelvinCastelino I only support HTML not XML
What is the question though?
> The most commonly cited issue is that many developers wanted to preserve the ability to search for function foo to be able to find the definition for foo.
Really? IDEs today can jump to definition in a click, that's one of the most lame excuses I've heard.
Yeah that works great on the cli
;-)
grep FTW!
@PeeHaa git grep FTW-er
@PeeHaa You shouldn't seriously write from the CLI in 2014.
Some fixes, sure. Not actual projects, that's just silly.
That's you told, @PeeHaa!!
13:21
morning!
morning @PeeHaa @reikyoushin
@NikiC are you aware of any decent PHP libraries to merge an entire application down to a single file? JuggleCode is rather dumb...
@PeeHaa I have data in XML, I want to fetch it with PHP Code, any idea how to iterate it
@ircmaxell just a dumb question, will that be faster or just so it can be portable?
I'm debugging an issue, and want to try it
in general, it's not worth it
13:26
@AlmaDo heya
@salathe lulz
@PeeHaa This is what I have been trying till now 3v4l.org/WBTRv
@SecondRikudo I grep in code very often. I.e. almost daily basis
@KelvinCastelino Can you paste again, with valid XML?
@KelvinCastelino 1) stop using simplexml_load_string
2) start using DOMDocument
@PeeHaa it's okay, I used grep between the last two times you mentioned grep :)
13:27
@PeeHaa Searching random codebases for swearwords doesn't count as proper usage
@DaveRandom You know me too well it's getting kinda scary ;)
@ircmaxell Nope, not aware. Presumably you need something that correctly orders the classes so inheritance works?
@salathe :D
@PeeHaa could you give me a similar example which I could refer to as to how to use that one, and could use the same for my query
@NikiC less that, and more thinks like $app = require() work, and use declarations are properly hoisted. That alone would be enough...
13:29
@KelvinCastelino moment
@ircmaxell The require part sounds tricky
@NikiC I can refactor my requirements of that
@KelvinCastelino 3v4l.org/VKedH fixed example
But anyway, don't know any tools for that ^^
but use hoisting is a kicker
13:31
@ircmaxell use hoisting?
moving use declarations to the top of the file. Or compiling them out in the first place
@salathe kool! Thank you so much!
and I know they aren't difficult to compile out
probably easier to "compile them out" than to move them correctly
yeah, and there's code to do it already
13:36
I'm wondering why beta1 isn't tagged yet?!
@salathe the code you gave worked for me, but if I want to do it by loading a file, I tried using, simplexml_load_file but it threw errors, any idea why?
@KelvinCastelino the file probably contains invalid XML
@NikiC I got nothin ...
Likely won't work in practice though, because you need to take the class hierarchy into account
13:44
-3
Q: what does 't' represent in data time formatting for php

ChenWhat does 't' represent in this line of php code? $this->end = strtotime(date('m/t/Y',$this->end)); I can not even find the answer in php codex!

@AlmaDo: Not really unclear what is being asked :P
no. it's replace for 'minimal understanding' now
check Shog's post about that..
stupid replacement, yes. it's more about "unclear why you're asking"
13:47
Haha. Yes.
Does this question really need answering? — Amal Murali 4 mins ago
That's "arrogant"?
@AmalMurali Yes, it is.
doubt. opinion-based.
Regardless of how stupid the question is, don't act all high and mighty only because you know the answer and he doesn't.
Yes, even if he could have googled it in five seconds.
hey.. anyone with XP on Behat, could help me with this question??
@SecondRikudo: What's a better phrasing for my comment then?
13:50
I'm trying to find a solution for this for days.. but nothing yet. =/
@SecondRikudo I disagree. The only "excuse" to the answer is that it was posted by user with 80k+ rep. I saw many such answers, downvoted (because it's a couple more than simple manual link) - when posted by users with low rep. I've even seen such answers flagged as "should be a comment"
@AmalMurali "Are you sure you searched well? Because I found it right there"
@SecondRikudo: What @AlmaDo said.
@AlmaDo I'm not saying it should have been answered.
In fact, I voted to close.
@SecondRikudo well, good point too
13:51
It'd have been okay if this was a low-rep user answering the question.
But @AmalMurali you asked whether or not your comment was arrogant/condescending. To that, I answer: "Yes".
my point was about - if the question was worth answering :p
@AmalMurali No, it would still not.
It would have been understandable if a low rep user would answer instead of closing.
That doesn't make it okay.
Yes, that's what I meant. I might have phrased it incorrectly.
13:56
@PeeHaa: Already CV-queued :P
ow :)
@PeeHaa Needs to be deleted as well, nobody should get 6 upvotes for being such a repwhore ;)
Oh wow. yeah that was how I got to the question in the first place :P
@NikiC nevermind
13:58
@Jimbo: That was supposed to be a teresko style comment, but apparently it didn't work as I had planned :P
@AmalMurali You didn't do anything wrong, and it certainly wasn't an arrogant comment.
@Jimbo exactly my thoughts..
i learned after a while that a responsible SO member would add it as a comment then CV and not answer it hoping to get as many votes before it gets closed..
The answer would've been more appropriate as a CW, I think.
I flagged it as not needing to exist
Guy learned where he went wrong and will read the manual, he'll get his rep back (-7 is a lot), and guy who answered it wont be such a repwhore so easily
14:02
Can't delv just yet :P
No, it doesn't. What a repwhore ;D — Jimbo 4 mins ago
:D
Adding something like "I tried searching the manual so I gave effort" and not finding it might mean that the effort given was minimal/not enough.. not always the case though..
anyone here with XP on Behat?
what is XP?
14:06
experience. HAHAHA
@reikyoushin that was my though
Who is Soner Gönül? I haven't seen him in this room but he almost always casts a delv when there are 2. Invisible ninja? :P
just bot
14:07
@AmalMurali Going through the delete votes queue and finishes the job?
I'm using Behat. Basically I have a class that uses subcontexts. However, it doesn't start the browser.. The tests run fine on command line. I have tried extending RawMinkContext but nothing yet.
StackOverflow: The online debugging aid for people who can't be bothered to figure out basic syntax errors for themselves: why only waste 2 minutes of your own time when you can waste 2 minutes of every community member's time? — Mark Baker 1 min ago
Pretty much sums it up!
I prefer:
StackOverflow: the automated free online debugger
6
@AlmaDo the "automated" and "free" online debugger..
:Ь
14:09
:P
:Ъ
hehe
odd/even? haha
soft/hard
lol (:
14:11
> Running Windows XP SP3 in your environment after April 8, 2104 may expose you to potential risks, such as: …
oh, they extended the security support period for 90 years? :-)
Is this the typo question day or something?
@Jimbo You might want to check his answers. A lot of the questions he answered should be deleted ...
~(_8^(I)
I mean closed
@bwoebi naive hehe. Sounds like running it before April 8, 2014 will not expose you to potential risks. Big mistake :p
14:12
@bwoebi "oh windows, you never fail to amuse me.."
@AlmaDo Exact :-) Let's sue Microsoft! :-D
haha. Ok, ok. WHO the HELL is on WIN right NOW??
@AlmaDo ouch!
I'm on Linux right now :p
so give my a candy
@AlmaDo gah, dual boot..
14:14
@reikyoushin no. the only one working OS for me..
Same here ^. I stopped using Windows more than an year ago.
lol
I'm using it for games :p
but for work... stopped using it 8 years ago
@AlmaDo that, and photoshop
14:15
@reikyoushin: real kids use GIMP.
@AlmaDo I'm on Windows, Linuxes and OS X, does that count?
@AmalMurali not the same quality though..
I'm on Cocaine.
@webarto we know.. ;)
@salathe (: we're not on holywar. That was a joke :D
14:16
@salathe no BSD? nah..
Pointless discussions of who's is bigger/better, etc. :)
@reikyoushin no LSD
@AlmaDo I was joking too, I'm not on OS X right this second
I have Hackintosh.. so there it's OS X under VM in Win
but that's on another workstation
@AlmaDo FYI, both BSD and LSD was produced by same university
14:17
@AlmaDo i thought hackintosh is a OSX-like vm made by FB. lol
@tereško LSD.. you mean drug?
yay. didn't knew Oo...
@reikyoushin well.. it's a way to overcome some Apple restrictions and install OS X under x86 or something like that
so using Windows & some tricks and hacks
@AlmaDo: How old are you?
working well with RAM ~16Gb
@AmalMurali 0x1A
14:21
Hmm. I'm much younger!
heh. I'm slacker. Even OS that I'm using, fits well for that
@AmalMurali well, it's clear for me what's in question, but.. poor without any efforts
Anyone with experience in switching domain registrars here? My old registrar notified me that my domain expires tomorrow and that I will be able to renew it up to 25 days after that. At what point will I be able to register the domain at a new registrar?
38 mins ago, by Alma Do
no. it's replace for 'minimal understanding' now
@AlmaDo :P
14:25
that's why I've voted :p
@Å imeVidas What you want to do is unlock it now (your domain registrar control panel should give you some way to do that) and transfer it to the new registrar, rather than waiting for it to expire and registering as a new reg
@DaveRandom No, my current registrar's control panel does not provide such an option. It's a super crappy local registrar. That's why I want to switch haha. So I have to contact them via email?
@Å imeVidas The technical details behind what you need to do are that you need to change the IPS tag. If the control panel doesn't allow you to do this, then you'll need to contact their support. You could just wait the 25 days and then you should be able to re-register it, but you'll lose service for that time and there's no guarantee that someone else won't register it before you can.
That's why ideally you need to go through a proper migration process rather than just letting it expire
14:36
@DaveRandom IPS tag? Interesting, never heard of that.
I'll contact them. Hopefully, they're not scumbags.
does somebody else have any idea why this is happening? pastebin.com/tGUcydfr
Which domain registrar do you guys recommend btw?
PDO is acting weird on me.. >.<
And its possible you're old registrar keeps your domain name and you wont be able to get it back
@Å imeVidas Oh sorry I was in .uk mode, what's the tld of your domain?
14:37
@Å imeVidas for me namecheap :)
It's an .org domain.
@reik what is the content of the $user variable?
> $user = 'foo'; // i missed the semi-comma on the pastebin
@reikyoushin: Lose the quotes around the ?. Should be just: user_name = ?";
oh right i see... apparently im blind
14:38
Wait, isn't there a whois lookup for org domains?
@AmalMurali arrg. yeah that's it. thanks!
@reikyoushin: I too had the similar issue before! :D
@Å imeVidas Ah right well yeh, that should just need to be unlocked and then you can transfer it. You may also need an auth code (depends on registrar). Their support should be able to sort both of these out for you
@AmalMurali lol, now i can pass that knowledge down when time comes..
@DaveRandom Ok, thanks
14:41
@Å imeVidas Make sure you get a copy of your zone file (or at least the mappings in it) before you transfer it, esp if they are a crappy registrar you might lose zone info when you transfer it
@DaveRandom IPS tags, auth codes, zone files? Ugh, I'm just a web developer -.-
@Å imeVidas you'd have to know them one way or another.. :)
@Å imeVidas IPS tags are an extra layer added by the .uk tld, you don't need to worry about that for .org
ok
zone file it is, then
The zone file is basically where your DNS records are configured
All of this is hideously complicated because the system is hideously outdated in terms of design, but it's the best we've got and it's not going to change any time soon
14:47
ok, home run. later
I just answered help vampire. /me feels bad
@ircmaxell Haven't seen that site before.
yeah, pretty good concept
@LeviMorrison: Same feeling
15:01
Btw, @ircmaxell, I've updated the RFC quite a bit. I know there's still work to do but I'd appreciate another look if you have the time.
@LeviMorrison def
Does anyone here uses Durandaljs?
@LeviMorrison didn't you want to support ? nullable returns?
@ircmaxell Maybe. I have a bit about it under Open Issues.
15:04
@LeviMorrison ah ok, just the "parser definition" didn't include it...
@LeviMorrison // Covariant return-type:
I like the proposal in whole
there's a ton missing, but it's getting there, and I like the narrowness of the proposal
hi i am new in stackoverflowfriends
can you any one tell me where can i download php complete reference book
@ircmaxell Anything in particular you feel is missing? (besides a Motivation section, Reflection and extension support)
leri i want " php Complete Reference " book i have already download php manual
@LeviMorrison motivation, use-cases, patch, performance breakdown. I like having the RFC include some documentation sections that explain the feature to an end user...
15:12
@user3313050 Maybe buy it?
you know any torrent or other online link
@LeviMorrison also, I really think you need a pretty significant section breaking out the discussions that happened in the past, and how this RFC extends/differs from the prior proposals
buy good night all of you guys
because that's the first thing that Stas and the like are going to say "We've talked about this before, go re-read and come back later". If you can do that already, and reply "yeah, I know, here's the breakdown/summary of that: wikilink", you'll have a MUCH better time
When doing responsive designs what's the minimum width you think you should go to?
15:17
@David 240 is min for Android (I support). Not sure about other devices.
I normally build down to 360
@Leri 240 width seems just so small, surely 240 is when the phone is in portrait position?
It is
360x240 is the smallest res in reasonable use
I wouldn't go down to 240 because unless they are retarded they just flip the phone to get more width
@David 240x320 is for 2.7''
15:19
320 I meant
Not 360
I build to 320
I'm in a situation where everything is good at 480
But then going to 320 is going to cause a headache maybe
user924016
sounds abit adaptive
@Gordon Acceptance testing via Behat/Mink + selenium = awesome, thanks :-)
Looks like I'm just going to have to do the 320px. Goddamit
user924016
make the smallest media query around 240 and set it fluid design from smallest to 0
15:22
It's my own little project like not a client so I don't have to do it but I might aswell
user924016
Are you sure you mean responsive and not adaptive design?
@RonniSkansing This changes as you resize the browser window
It's not 100% fluid though
user924016
Fluid, adaptive and responsive design is not quite the same thing
> Most of the project is done. We just need to put it all together. However, our technical team had few problems. Will you have a look at it and tell us if you can finish project?
This is the quotation from the mail I recently received. Sounds like a trap. ^
user924016
15:30
hehe
user924016
it is a feature super creeper
@Leri Who is trapping you? ^^
@webarto One of the local casinos.
Having a paid look never hurts
If by look they mean actually fix it.... noooooooooooooooo
I am 90% sure the case is latter. ^
afternoon peeps
morning sounds more optimistic. ;) Afternoon, btw.
@Leri my favorite type of project
^ masochist
That. ^^
Off to home. Later.
15:49
> Most of the project is done
i've heard this a lot of times from clients.. when what they mean is the first 10%
something like "most of the project planning".. ;)
Project planning is like an iceberg.
At least from a clients perspective.
They only see the tip
^ but there are clients who don't know what they really want, so planning becomes like throwing a dart blindfolded. :)
does anybody know a tool i can use to format var_dump output?
@hohner format to what?
Guys, if I commit a .phar file to git / svn, will the user see a load of files within that phar when they do a pull / fetch, or will they just see "phpunit.phar"
15:58
@reikyoushin something comprehensible, right now it's minified. maybe like a print_r output
@hohner but var_dump is like print_r, although seeing it on the browser makes it one line?
@Jimbo Just one file, it's a binary file.
@reikyoushin no, i've been e-mailed it from a client
Paste it then.
@webarto Gdgd, was just wondering as phpstorm allows you to click a "drop arrow" next to it and see everything in it, and if I commit phpunit I wouldn't want everyone complaining about a massive file list

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