« first day (1177 days earlier)      last day (3787 days later) » 

user895378
5:00 AM
@chx101 That would make sense but PHP doesn't expose the actual descriptor number and the socket will be garbage collected anyway when script execution ends unless you initialize it as a persistent connection ...
 
@rdlowrey "unless you initialize it as a persistent connection" ... Ah! So then the idea is still possible?
 
user895378
Absolutely.
 
user895378
(if the function/library you're using to initialize the connection supports persistent connections)
 
lol
 
user895378
You're looking to do ftp?
 
5:03 AM
Yes
 
Amp?
 
Operating System: Win ME lol
 
user895378
Well you could use Amp but you'd have to implement the FTP protocol yourself. And I'm pretty sure no one wants to do that :)
 
it depends on what exactly you need from FTP
you may for example implement a separated daemon
that would proxy requests to a remote FTP
or even act as an application server with a protocol in your DSL
 
user895378
@chx101 Hmm ... I'm looking at it and it doesn't look like PHP's ftp extension allows for persistent connections.
 
5:07 AM
@rdlowrey That would be messy.
 
user895378
It wouldn't be terribly difficult to add an ftp_pconnect function similar to some of the other persistent socket things
 
user895378
But honestly I'm not sure FTP is the right protocol to be using in every web request in the first place ...
 
user895378
I'd question the use-case before adding something like that to php-src
 
curl supports both persistent connections and ftp right?
 
does it?
 
5:12 AM
@rdlowrey I'm not looking to using it as protocol in its entirety solely for web requests.
 
ssh2 might allow for both the persistent connections and the concept of file transfer.
 
If I could have a plugin that would maintain an FTP connection pool and give a each script an identifier/index to the script's connection that would be great. But Oh well. I guess I'll just have to re-connect upon each script execution.
 
user895378
@Orangepill I know it does FTP ... not sure whether or not it will let you keep a persistent connection open.
 
The CURLOPT_FORBID_REUSE option leads one to believe that it will pool the connections...
 
@Orangepill it's to perform multiple request without reopening a connection not about pooling
 
5:18 AM
@zerkms that makes sense
 
What I meant - is that the php's extensions should maintain the pool by itself
 
So was this a bug or an unimplemented feature? bugs.php.net/bug.php?id=9969
 
it cannot be a part of libcurl
@chx101 it's a feature request
 
Ok. I thought it was a bug looking at the URL (bug.php)
Ahh. A good example, net2ftp.com
 
lol
then people wonder why their site was "hacked"
 
5:25 AM
I don't think I will be putting my credentials in there...
I think introduction of ftp_pconnect would be a good thing...sure it's probably wrong for most use cases but is there any good reason to not have it?
 
It would be helpful
 
@Orangepill "ftp_pconnect" or "ftp_connect"
 
@chx101 pconnect... as a feature request for adding persistent connections to the existing ftp library
 
ok
 
anyone play with SensioLabsDesktop?
 
5:33 AM
oh
> Use a GUI to manage your dependencies via Composer.
> Run PHPUnit without using the CLI.
> Get notifications when new versions of your libraries are released.
:-S
 
I think I got what I wanted. Time to move on. Thank you all
 
5:49 AM
@rdlowrey stackoverflow.com/questions/20929806/… - you're helpful today :-)
 
user895378
SensioLabsDesktop: because ruining web app performance wasn't enough.
 
user895378
Why anyone would want bloatware like that is beyond me.
 
@rdlowrey they were funded recently, so they can afford it
 
user895378
I'm clearly not in touch with the average PHP developer at all.
 
because you're not an average developer
 
user895378
5:56 AM
@zerkms lol
 
user895378
Why is it that the only people who defend Service Locator are the ones whose framework of choice just happens to use it all over the place?
 
the thing is, SL is already a step forward
it's far better than singletons, registries or global variables
 
user895378
Yes. It's better than nothing.
 
yep
so having SL instead of something else is still a good solution
 
user895378
I should do a better job of remembering what it was like at that stage where you're struggling to understand how dependency injection is supposed to work.
 
user895378
6:00 AM
It's not always easy to figure out what is or is not okay with regard to IoC/SL/etc. at that point in your personal development as a programmer.
 
what I personally don't like in php is that you cannot work with classes/interfaces names as symbols and ought to work with strings instead
var samurai = kernel.Get<Samurai>();
would be much better
 
 
1 hour later…
7:22 AM
Happy sunday
 
almost 30 min for me until I can wish you the same ;)
 
7:39 AM
morning
 
morning
 
user895378
OMG @tereško ... I know you'll enjoy this steaming pile of laravel
 
If you don't know how to call something in laravel - call it a facade
 
user895378
s/laravel facade/global/ ... WTF
 
user895378
Who are these people and why are they allowed to write code?
 
user895378
7:54 AM
I didn't know there was so much idiocy in frameworks before today. I mean I knew they were slow and terrible, but still ...
 
@rdlowrey so you personally prefer to not use any at all?
 
user895378
I've never actually used any framework
 
even your own one?
I don't believe you recreate the whole environment from project to project
 
user895378
I'm firmly in the "PHP is a framework" camp. Simple routing and dependency injection is all I need. That said I haven't used the PHP web sapi in more than a year
 
user895378
Everything I do in PHP is in the CLI
 
8:02 AM
moin Daniel
what I was suggesting yesterday, it turned out, was "SWL" ... Standard Web Library ...
@zerkms things have changed drastically in the last few years, the last big PHP project I done I wasn't even allowed to use a framework ...
 
@JoeWatkins "I wasn't even allowed to use a framework" --- was it a technical or a polytical reason?
 
user895378
'Mornin Joe -- good timing as I'm actually going to bed (3am here) :) I'll catch you guys later
 
@rdlowrey so they aren't web applications?
 
politics I guess, it used to be the case that if you were hired to write code you were expected to write it, gathering code from across the internet simply wasn't an option in my experience ... the quality of code was poor, it was spread out all over the place, sourceforge was never github and pear was never composer ...
 
@JoeWatkins "if you were hired to write code you were expected to write it" --- if you were hired just to write code not to solve the business issue, then - indeed
I can understand the licensing issues, but "we are paying you - write it from the scratch" is in most cases stupid
1
Q: Showing the Primary Key is a danger

CraigWhen I select, for example, an account, from a list of accounts in my view, the URL shows something like: http://my.url.com/BankAccount/EditBankAccount?bankAccountId=12 Is there a way to hide the primary key, because northing stops someone from editing the id in the URL and posting it, to g...

 
8:21 AM
@zerkms indeed, it's stupid, now ...
 
@JoeWatkins I wasn't sure how long ago your "last big project" was )
 
yet another segfault just turned up in ext/date ...
oh nite @rdlowrey
 
not sure which is worse - lack of security caused by lack of knowledge or the same caused by wrong knowledge
(and not accepting that wrong is actually wrong)
> If you move your mouse pointer continuously while the data is being returned to Microsoft Excel, the query may not fail. Do not stop moving the mouse until all the data has been returned to Microsoft Excel.
loooooooooooooooooooooooooooooooooooooool
 
hehe
@t3rmin4t0r @SaraMG love mental image of the ms tech at his desk, wiggling his mouse thinking "I'm problem solving like the best of 'em" ...
 
good mornings
 
8:30 AM
moin @hakre
 
8:40 AM
@zerkms yes he should do that. stackoverflow.com/a/20931612/367456
@JoeWatkins moin moin :D. So you're moving the mouse in circles like a pro? :D
The bulb of my desk-lamp did just pop.
 
@hakre +1d
 
@hakre it's how I tackle every bug I come across, from now on ... just like the pros man ...
 
And I just used the last spare bulb in another lamp, and today is sunday.
 
1 turn it off and on again
2 wiggle the mouse
3 blame NSA
 
I like #2
 
8:43 AM
@JoeWatkins You could perhaps create a template for PHP bugtracker?
 
hehe
 
> Have you tried to wiggle the mouse while the script runs?
 
8:55 AM
I swear, whoever decided that json_decode should return a stdClass instead of an array by default hated newbies. Trips them up every single time.
 
9:14 AM
 
9:27 AM
Now it's looking more and more official :D
 
@hakre you're drunk
 
well, what if not? :)
 
hehe
 
@hakre then we (me?) need more context :-)
 
yesterdays jokes about disapproval stamps.
11 hours ago, by salathe
user image
12 hours ago, by ircmaxell
nah, we should get our own "not-valid" stamp
 
9:30 AM
this one is amazing
 
9:40 AM
sometimes I feel like a mascot for this chat room
 
@tereško you're telling it like it's something bad
@tereško btw, what is your opinion about modern frameworks? Do you use any?
 
@zerkms depends. Which ones would be deserving the "modern" label?
 
@tereško zf2, sf2
... laravel
may be some others that I haven't even heard
 
Was that "find the odd one out" list? Laravel does not fit there. It's just an iteration on the old ones with more marketing budget.
 
9:51 AM
@tereško anyway, do you use some?
 
no
 
@tereško why?
 
I have only gone through their source for research purposes
 
you don't start projects often and mostly work with existing code or just prefer to always reimplement everything from scratch?
 
I have pieces of my own code that I reuse
both on php and js side of things
also when it comes to 9-to-5 employment, I always have been in situation, where framework choice has already been made by someone else
 
9:56 AM
@tereško can I get your feedback on two questions I intend to give someone I'll be intervieweing for frontend today?
 
@BenjaminGruenbaum sure
 
Thanks
gist.github.com/benjamingr/4267bb03bf3407f6ea0b - this is basically 'implement an event emitter / mediator in JavaScript'
gist.github.com/benjamingr/1fa2d840c0e99175458c - this is basically 'implement a router in JavaScript'
They get these after they're given a short HTML/CSS/JS exercise where the emphesis is on the HTML/CSS side of things. After they finish these they get asked what they thought about the questions and if/when they'd find the patterns/code useful in actual scenarios.
 
lemme see
 
@BenjaminGruenbaum how the last test for "Does not leak events between messengers" is supposed to work?
oh, the different objects are triggered
 
@BenjaminGruenbaum My JavaScript-fu is quite weak, but I think even I could do that on a whim; what exactly is the purpose behind that?
 
10:04 AM
@LeviMorrison The interviewee has already shown they're capable of building a basic html/css/js app. They're now required to implement a design pattern showing control more control of JavaScript and then required to discuss it in detail (that is, explain why they think it's useful).
@LeviMorrison Go ahead, I'd be interested in what you come up with.
 
what level of developer you're interviewing?
the implementation there is trivial isn't it
 
@BenjaminGruenbaum JS questions seem ok. They are simple enough for anyone with appropriate skillset to complete and will give good source for determining the practices the interviewee uses
as how html / css, I can give you some examples ( if you give me 5 minutes to dig them up )
 
@BenjaminGruenbaum It's 3:00am here. Suffice it to say I've already written one in PHP (it's not quite the same but close enough) and you can find it in Ardent; it is a really simple translation to JS.
Going to bed; good night everyone!
 
@tereško I'd love to hear HTML/CSS suggestions. I don't want to overkill though.
@LeviMorrison Do you have any doubt you'd pass a technical interview in a company looking for a frontend developer?
 
10:07 AM
lemme dig in my archives ... brb
 
@BenjaminGruenbaum Depends if they want me to be up-to-speed on Ember.js and friends when I start ^^
 
@LeviMorrison what if they demand providing pixel-accuracy for html/css ie6-ie11 and all other browsers? :-D
 
Anyway, I think you have decent tests. They are small enough that you can easily do them in interviews, they aren't too complex but should weed out certain people, etc.
And good night... I'm really tired ^^
 
@LeviMorrison noo one cares about that.
At least no one serious, learning a framework is a day/two
 
@BenjaminGruenbaum 37.252.125.109/lab/test/l-7 .. that would be first one
use inspect to see what it does
 
@tereško That's pretty nice.
 
the IE6 fix would not be required
 
Morning
 
10:22 AM
@tereško Yeah, don't you think it's a bit long for 20-40 minutes though?
 
@BenjaminGruenbaum 37.252.125.109/lab/test/l-25 .. inspect and alter the "width" value. In practice this would be for images with various (but, unspecified) width.
 
@tereško That's good, it seems smaller and just mainly tests the guy knows how to position things with inline-block.
 
@BenjaminGruenbaum 37.252.125.109/lab/test/l-36
alter browser height to see the behaviour (this one should be possible in 10 minutes)
 
10:25 AM
We actually have a test pretty similar to that last one, it's pretty good at classifying things.
 
37.252.125.109/lab/test/l-41 and 37.252.125.109/lab/test/l-41/no-right.html with same CSS (if no sidebar, the content expands to fill up part of the new space)
also see 37.252.125.109/lab/test/l-41-mod for sidebar that can expand
that's about it
 
The footer is a bit off, but that's also pretty good. Nice.
Off to lunch, thanks a lot.
 
all these examples were written 5+ years ago
none of them were tested in modern browsers .. ever
there are 43 in total, with various modifications
oh.. there is also 37.252.125.109/lab/test/l-12 , @BenjaminGruenbaum (change browser width or scale the page to see the behavior). That one is an early prototype of "Unholy grail layout" .. not sure where the finished version went though.
 
ping @HamZa
 
morning
 
10:36 AM
morning
 
@crypticツ I gotta go soon ... A quick question ?
 
ah, maybe later. I can't even think of how to write the question out >.<
can't stand the pressure!
 
Well "later", I'll be back in 6-7hours :(
I got to work ...
 
Can't believe they actually accepted this for a bank card... http://t.co/1klUdOegut @SkinnerGeoffrey
 
ok Cyaa, see you later. I hope I'll find a ping later on :P
 
10:40 AM
if nordea made it one of their "official designa" it would be awesome
 
good morning @Gordon
 
@hakre good morning my bad conscience and happy new year
 
yeah, happy new one!
o_O :)
 
Does Dropbox always upload/download the entire file any time a change is made? I want my xampp/htdocs folder to be upto date from the dropbox account folder i have hosted?
 
@samitha how does relate the one to the other?
 
10:48 AM
I have hosted my application in dropbox.com and i need when i updating that app it should be synced with my other computer ( they are in different location )
@hakre
 
if (return_value) {
RETVAL_STRINGL(c, len, 1);
} else {
return estrndup(c, len);
}
return "";
it's php's trim() implementation. The last return looks funny
 
So,XAMPP/htdocs <<==== dropbox.com/htdocs @hakre
 
@samitha and how do you kick in the sync? Via API or just the desktop client?
If it's API there is no delta-sync. If it's the desktop client, there probably is a delta-sync.
 
I love to use dropbox client if it have all the features i want
i want only one feature
 
Do an rsync between htdocs and the dropbox directory
then you can first sync dropbox so that you all have in one place and ready.
 
10:51 AM
download changed content from dropbox
 
then rsync with the htdocs folder.
 
does it possible with using dropbox client ?
(rsync)
 
11:22 AM
@hakre there?
 
no :)
 
lol
can't we use dropbox instead ?
 
@samitha why shouldn't you be able to?
 
can we use outside dropbox folder ?
i want to sync with dropbox account folder to local htdocs
not local to dropbox account
 
I can not see why this should not be possible at all?
 
11:31 AM
Hello World!
can u guys help me see why this thing is turning out false... it was working a while ago, i basically just added some more variables to get pulled out of the DB:

if ($stmt = $mysqli->prepare("SELECT id, user, pass, salt, name, sname, phone, mobile, country, website, desc, bday, datetime FROM clients WHERE email = ? LIMIT 1")) {
 
@FernandoSilva Have you tried debugging it? php.net/manual/en/mysqli.error.php
 
@Danack not yet, was just wondering if it was one of those "missing comma" type of things... let me give that a try... just a sec
 
So you prefer to hassle other people rather than fix obvious bugs yourself. Awesome.
 
@Danack Sry m8, wasn't that... it was working and i thought it was one of those simple things i never see
@Danack 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 'desc, bday, datetime FROM clients WHERE email = ? LIMIT 1' at line 1" }
 
datetime is a reserved word?
oh and so is desc
/flex
 
11:45 AM
@Danack thks that just saved me from hours of staring at commas
 
@FernandoSilva your sql error starts at "desc". so that's where you should have looked at
 
As andho said, giving the error message showed exactly where the problem lay, so became a much easier problem to solve.
 
@andho i see, i'll try to remember that... it was my 1st time asking a question before starting to pull my hair out
sry bout that guys, and thks for the help
 
always look at the error carefully
 
i would never have guessed the reserved word... its my 1st time working directly with a database
but ur right... i just need to bump into all the mistakes so i dont do them again... learning the hard way here :S
 
11:55 AM
@FernandoSilva yup. no prob
 
already changed the database and query, all is right with the world... for now, hehehe
 
@PeeHa: When I pasted that dupe's link into the box, the box suggested your question: stackoverflow.com/questions/20933242/…
 
12:22 PM
hi
is there anyone who is experienced with wordpress
 
i kno
@begiPass i know a thing or two, wouldn't say experienced though
@begiPass what's the issue?
 
here it is
0
Q: videos plugin for wordpress

begiPassI am a beginner in wordpress and I want to add or developp (if doesn't exist) a plugin to show videos in the right side of the website , and when the user press one of them, I redirect it to the page of video which contains the video and eventual text and comments the videos should appear by dat...

can you respond me in the two case please
yes and not
 
@begiPass give me a sec, i'll try to find something and post the answer... there are several things you can do
 
ok thank you
 
12:40 PM
@FernandoSilva that question should be closed as it is off-topic. You really should not be answering it.
 
@crypticツ i was thinking on flagging it to get moved to stackWordpress, but i'd answer it anyway as it would go along with the answer
 
@FernandoSilva If you migrate it the question will get locked
 
@crypticツ i see, so should i just leave him hanging?
 
@FernandoSilva go ahead and give him some links if you want in chat. Just don't post an answer to an off-topic question as it makes it more difficult to moderate and you will very likely get downvoted.
 
@crypticツ roger that^^
 
12:51 PM
@FernandoSilva btw wordpress.stackexchange.com/help/on-topic "Note that we do not handle questions: asking for recommendations for plugins, themes, books or hosting services." It would be off-topic on Stack WP as well.
 
@crypticツ the way i read the question he's looking for a way to make it happen, so my answer gives him 3 ways of possibly getting it to work, not really suggesting existing plugins that he could use
@begiPass are u still here?
 
That would probably fall under 'too broad' as nothing has been attempted yet by the user imho.
 
@crypticツ looks like he's doing something else...
@crypticツ I know what you mean cryptic, but I've been where he is, he sounds lost... I'm not going to breast feed him the answer, just point him in the general direction of possible solutions, since his question doesn't really give me much to go on
@crypticツ you really think i'd get downvoted for answering?
 
Morning
 
1:07 PM
@FernandoSilva There's offers of breast feeding available?
 
@Danack well most of the times it's what they'r looking for xD
 
@FernandoSilva Preeeeeeety-suuuure you mean spoon-feeding.
As breast feeding is something completely different.
 
Morning
 
mornin
 
1:08 PM
@Danack Well I think it's a cultural barrier thing, in Portugal we have that saying, I basically translated it xD
@Danack But I understand what you're saying
 
There's also the less common term "moob feeding"
 
hmm... don't know that one
google doesn't know that one :p what does it mean?
 
^ that
 
@Danack roflmao
well i'm off for lunch, catch you guys in a bit... don't moob feed much xD
 
1:21 PM
"Developers say getting computers to understand spoken Welsh is a challenge." http://www.bbc.co.uk/news/uk-wales-north-west-wales-25557237 #noshitsherlock #godlikeAIrequired
 
@webarto I can't upload anything to the dev.cv-pls.com as my account does not have write perms for the directory. Same goes with the cv-pls.com one. =o(
 
Hmmmm... what's your email @crypticツ?
 
@webarto you had emailed the login for the VPS
 
That's the online version of "Heeey guuuurl, can I get yo' number?"
 
@crypticツ OK. You have new mail.
 
1:30 PM
@webarto =oO
 
@Fabien False, you can't hide from l337 hax0rz :P
 
:P
 
Anyone based in germany i can ask a few questions to ? i m planning a move kthxbai :D
 
I gotta pack up my closed loop CPU cooler today and use some old stock one I found. Fingers crossed it actually works.
 
@PatsyIssa What do you need?
 
1:33 PM
@webarto Well a bit of details about the job market, cost of living and such, i must have read over 20 websites so far but still hesitating
@webarto I m still a junior php developer with a focus on front end tech
 
@webarto could have just chowned the folders setting me as owner =oP
 
I need to make some food =/
should have ordered pizza instead of going to market =/
 
@crypticツ I don't know how to do that, meh :P
 
@webarto Well I went ahead and did it, so go and change your pass now.
 
@tereško You can still order a pizza
 
1:39 PM
@crypticツ It's OK, you're trusted (it's a weakness).
@PatsyIssa Do you know what would be your whereabouts i.e. location?
 
@webarto I ll be in hamburg since i have a place to stay there
 
Let's say you have a place to stay, and average salary of 2000€, I'm guessing you could spend 500€ on food (it's not expensive if you cook yourself), rest you can spend on booze and hookers.
 
I am back
 
@webarto Hahahahha sounds like a plan :P
 
1:45 PM
If you don't have a place to stay, rent would be around 500€ and bills around 200€, so you have advantage.
 
Step1 get a job, step2 get a work visa
 
what are you talking about Pasty
?
I am curious to enter this discussion
 
Planning on moving to germany was trying to get a feel of the cost of living and such there
 
Get a job while not in Germany, don't got as a tourist and look for job.
 
@webarto Yeah that's what i m doing
checking out different government portals and such
 
1:48 PM
If anyone is interested in helping. dev.cv-pls.com the table columns are sortable now, but only the first column seems to correctly sort. =o\ Btw, static HTML page.
 
@crypticツ what are the ordering modes for "Close" columns?
there seem to be more then 3
 
@tereško it should put it in numeric either ascending, descending or be in default unordered state on page load.
 
also, you really should commit =P
 
dev.cv-pls.com/assets/js/table_sorter.js is the JS code I got to do it.
 
@webarto Thing is i have a job here, been working for 2 years (graduated 6 months ago) but the country's security is deteriorating bombs going off every week, so i m kinda packing my bags and leaving
 
1:54 PM
I hate committing unfinished code =o( Either way, current code is not even working. I am doing front-end work first before I move to the back-end. All bwoken right now.
 
@crypticツ I tested on the old Opera and Aurora (firefox next) ... both have same broken behavior
4 separate ordering modes, no discernible pattern
 
@PatsyIssa I know the feeling :P Do it, but you'll always be Ausländer in Germany :P
Still better than bombs.
 
@webarto no jQuery! =oO
 
@webarto Beats the states and i even have a greencard :P
 
Well that's just insane :)
 
1:58 PM
what is "insane" ?
 
Going to Germany rather than US and A.
 
roparz.me/play/light-javascript-table-sorter is the demo for the current JS code. The numder sorting works fine in demo.
 
I will make something edible and try to debug it
or course, that will be quire limited since I cannot actually run it locally
 

« first day (1177 days earlier)      last day (3787 days later) »