« first day (1006 days earlier)      last day (4167 days later) » 

08:00
thanks
@DaveRandom yea, I liked procedural, it was just an easy flow, it is real pain in the a-s-s to insert a simple data in the db, first write the query, than use :? or the other place holder am forgetting.. and than use an array to substitute the values.. its like 2 line pf procedural vs 10 line of 00p
@Mr.Alien Actually prepared statements are nothing to do with OOP ;-)
5
I think it's just important to observe the pillars of OOP if you are going to use it
@DaveRandom +1 @Mr.Alien is noob in OOP. :P
@DaveRandom then :(
@YogeshSuthar kick you arse :p
@YogeshSuthar pot , I introduce you to the kettle
@RegisteredUser fyi that could be simplified to #[^\w\-]#
Anyone want a cookie O.o
@Tredged MEEEEEEEE!!!!!!!!!! =oO
PLB
PLB
Which one seems to be more readable: private $_Something = array(); or private $_Something = [];?
08:10
Awhhh I ate them @crypticツ
@Mr.Alien There's an association between the two in PHP, which is entirely the fault of a sh*tload of crappy tutorials that still exist on the internet that use ext/mysql. But prepared statements are actually a feature of databases, it just so happens that the two main MySQL drivers in PHP have OOP APIs. But actually only 50% of the drivers that can be used to access MySQL from PHP have OOP APIs, but 75% of them support prepared statements.
@PLB c) the one without the prefix _
And 75% of them have procedural APIs
And without the starting capital letter
^^ that
08:12
@DaveRandom Probably because prepared statements are often associating with the migration from mysql_ to PDO.
@PLB The real question is "do you need support for PHP<5.4"
@PLB private $something = [];
PLB
PLB
@DaveRandom No, of course.
@tereško private... ?
@PLB ^^
@tereško Then use [] notation.
PLB
PLB
08:13
Ok, thanks.
private $omething = []; ftw
5
@crypticツ type this into your browser's addressbar: javascript:document.cookie += ";kookay=foaDaKittyKatOmnomnom;"
private $☃ = [];
@Gordon nothing happened :(
@Tredged is your name cryptic? No :P
08:15
@salathe I still try and work a private $hit; into everything I do.
@Gordon Technically yes
@DaveRandom привет $член = [];
@DaveRandom I got this weird problem on the cv-log page. If you click say 'hide close' option you can toggle it off and off fine. Toggle it on so they hide. Then click the 'reset' link. The form resets but the toggle no longer works. However, click the reset button for a 2nd time and now all toggles works again. The reset code is the last code block at the end cv-pls.com/assets/jscc/main.jscc?raw Disabling the loadOptions(); statement fixes it. Not sure what I am doing wrong.
@Gordon I have the javascript: scheme disabled in browser =oP
@crypticツ then use your dev tools ;)
mysql_real_escape_string is to be used for all CRUD of just Select ?
08:17
hello i want to develop feature like selling websites just like flippa.com but i am stuck how to get pageview and unique visite of site through google analytic ?
@vladimire mysql_* is used for nothing anymore. it's deprecated.
anyone here ever used hubot?
@Ocramius hubot? like in the awesome tv series? i'd love to use one of these.
@Gordon I'm using your JSON backlog again, I have both enabled now, you can toggle between both since both have their pros/cons. Do the backlog get fresh copy if someone visits backlog and the cache is stale or is it only performed via cron?
08:19
@Gordon yeah, I know, use mysqli instead... It's just something I wonder about
I'm thinking of throwing this at my XMPP...
hello i want to develop feature like selling websites just like flippa.com but i am stuck how to get pageview and unique visite of site through google analytic ?
@Gordon I got the empty results again. Some what similar thing happened to me where instead of fetching the usual 300+ entries it only got 18 so something happened.
russian is a fun language, where "член общество" would mean "member of society", but simply "член" would mean "dick"
@crypticツ Is it a bad advice to relax and eat a cookie drink a glass of milk, and then continue working. Taking a break is good for the body and the mind.
@Tredged I listen to music and have some chai tea
@vladimire the answer to your question should be obvious though. The point of that function is to prepare user supplied input for safe input into your db, so that applies to everything.
please helpme
@crypticツ LOL I have exactly the same althou mine is normal tea xd
@Gordon of course
08:22
O.G Kush :)
@Visions you should consult your physician about that one
@Visions stop spamming please
@Gordon How are you this morning Gordon.
@Tredged busy. thanks. you?
at a guess: vaguely annoyed
08:24
@Gordon atm having my 'break' :p but fine thanks.
@tereško hmm may you pepole are more expert than him because of that i am here
@DaveRandom oh, thanks for the explanation, but classes, objects, public, private, etc are concepts of oop right?
@Mr.Alien classes ain't :P but explaining that would be too complicated so yes, they are for now
@Visions I am a beginner
@Gordon really need to work hard in getting these concepts
@Gordon Haben Sie vielleicht ein schönes Lied für mich ? Sorry für die Deutsch (probably fail'd).
08:26
@Gordon haha now that makes me happy :)
@Tredged we have translates...
@Tredged that was correct german
@crypticツ I think I see what's going on, I'm just trying to figure out the best way of fixing it
@Tredged do you expect us to hum?
Yay :D
Everyone expect u ;x @tereško
@Tredged I discovered open.spotify.com/track/6PNXt6PVfrJgUPBywlKT4S yesterday through a friend. Pretty mellow.
08:28
Thanks :) @Gordon
user142019
Morning.
user142019
Good morning.
@rightfold Morning!
user142019
How's it going.
Im fine thanks u
08:32
hello grt people out there :)
hello Earthling
@DaveRandom what did I do wrong?
i am having a slight problem in looping ...how can i display the values of the total value%3 in each row
morning
08:34
@tereško lol
morning
@crypticツ I think it's to do with the fact that every time toggleOption() is called an event handler is attached, where you only really want to do it once on init, not every time the form is reset
I'm not 100% on that though I'm just pulling it apart in my editor
@HamZa do you disagree ?
keep track of already handled cv's on separate systems
@tereško I don't know if I would have to read "member of society" in a classroom if I wouldn't laugh
@DaveRandom fixed it, I set a boolean value in the reset form code prior to calling loadOptions() then checked the value prior to loading the event listener
are there any interesting companies doing PHP in Miami, Florida?
@HamZa well ... the translation is somewhat vague, bur the (old?) literary translation is "member" of some group .. and the slang refers to genitalia
08:38
My boss is an idiot. COMMENT ALL THE LINES!!!!!!!!
@tereško these italians …
(session cookie management with a half-way sane API)
@iroegbu lol @ earhling xd
08:39
@Tredged open.spotify.com/track/4fZhnxi2b29JvSBzAZtmqT if you are looking for a somewhat harder electro tune. more drum n' bassy
@DaveRandom that bit of code is somewhat useless , when you have HTTP-Only cookies
Good MONRING ALL
i am newbie in PHP need some help. i want to show progress bar on downloading media file
@PeeHaa lol my boss mostly doesn't comment at all
@Gordon Amazing lol i can't believ I wasted 5 months premium spotify so much music there xd
08:41
i have also written some piece of code
@KamranOmar There is already some questions/tutorials on the web. Search for it
@crypticツ ah, did you get the news about monsanto retracting all their patent request in europe? thought you might like that news.
@Jimbo morning
user895378
Can someone please explain to me how to make packagist understand that v.0.1.0 is not correct for this repo which clearly isn't at v0.1.0 ???
@DaveRandom What I was going to do was save all the options in a var and when the user finally clicks 'save' it would save the entire options array (encoded)? as a single cookie value. Then on page load I fetch/decode and apply the settings. Or should I save each option individually? I didn't think I should since the options on get saved to cookie when user hit's save.
@HamZa i need some urgent help
user895378
Also, let this serve as my periodic I HATE COMPOSER rant.
@HamZa i have already written some piece of code
@Tredged the soundrop app is quite nice to find new artists in genres you like. so is the radio function
@KamranOmar and the problem is ?
08:42
@tereško Indeed, but that's not what it's for. Actually the more I read that the more I wonder why I didn't just use localStorage
@crypticツ - just use localStorage :-P
@Gordon Im gonna test that out seems nice ;)
@Gordon Europe is giving them the boot, reason GMOs are banned there pretty much. Here though where they are headquarter they have all the politicians and agencies like USDA, FDA, etc all on their payroll. Even a supreme court judge is a former Monsanto attorney
@DaveRandom I don't know how to =o( I have to read up on it
i want to update progress par on downloading. i have written some code i have two files one is download.html and other is download.php
@crypticツ It's as simple as localStorage.getItem(name); and localStorage.setItem(name, value);
08:44
@HamZa using curl
Also note that you can only store strings in LS
@KamranOmar problem please
@DaveRandom wohoo, might be able to get it done today then.
I DON'T WANT TO USE AN ARRAY
-7
Q: how to print variable string using loop

OverflowI have this code so far, $a = "cook"; $b = "book"; $c = "dook"; $d = "look"; Now, I want to know how to print this variable using loop. Thanks I don't want an array I think we can do the same by using ASCII code, any help is highly appreciated

@PeeHaa how would I convert 0 and 1 strings to boolean in JS?
08:46
=]
@PeeHaa Oh yeh I forgot about that. @crypticツ I tend write an abstraction object to sit over the top of it and store JSON.stringify(value) instead, to give you proper types
I have no idea why it doesn't just work like that in the first place
@crypticツ json that shit what dave said
@HamZa not updating progress during downloading. Updating after downloading.
I'm sure we have something in cv-pls that would work more or less ootb actually, 1 sec
@DaveRandom The settings I would think?
Apparently we don't do that
I'm really not sure why :-S
@KamranOmar that makes sense
I am trying to understand how is a feature like facebook's timeline is built because PHP does not have any default function like timeline etc if I am creating a website
so what is required here to program a timeline
@RegisteredUser A developer
08:50
we should be able to cv a chat message
yes yes YES!
@RegisteredUser lolwut ? From progress bar with cURL to FB's timeline. Stop trolling please
@iroegbu indeed
Although ignoring users idiots helps
user895378
DAMNIT, COMPOSER. Literally every time I try to use you you break, don't work or engage in some other dumb-assery.
@rdlowrey you missed self update ?
08:53
@rdlowrey or probably are just unlucky
no!
no he confessed he dislikes composer. Probably composer noticed :)
user895378
I don't know what the hell I missed. Either I don't know how to operate a damn console or composer always sucks.
user895378
composer sucks packages from packagist.
08:54
@rdlowrey that's github being sucky ;)
@rdlowrey people hate to use bundler .. why did you expect any different from composer ?
user895378
@tereško I don't, I just get all these numpties asking for composer support.
user895378
And every time I try to integrate it goes tits up.
@crypticツ pastebin.com/hWrDGaV4 should do you
> curl -iv "http://nodeload.github.com/rdlowery/Amp/zip/v0.1.0"
* About to connect() to nodeload.github.com port 80 (#0)
*   Trying 192.30.252.146... Connection refused
* couldn't connect to host
* Closing connection #0
curl: (7) couldn't connect to host
:10675675 what @Ocramius just said. it's gh
user895378
08:56
I am a petite ball of rage.
4
lol
one of my ex-coworkers yesterday suggested that i shound't have used "use strict"; in my JS , to make it easier for debugging
@rdlowrey Summon @igorw. It is 100% his fault.
user895378
I feel like I have some sort of brain block because I fail every time I try to use it :)
08:58
@tereško lolwut
loolo
@DaveRandom thanks!, how do I view the local storage?
@rdlowrey the correct URI seems to be: codeload.github.com/rdlowrey/Amp/zip/v0.1.0
@DaveRandom yeah , that basically summed up the entirety of my response , followed by "sure , why not .. it's your responsibility from now on anyway"
user895378
@hakre In what part of the $ composer.phar install command do I tell it to use that ?
09:01
@rdlowrey consider using the --prefer-source flag to avoid these problems. Github is very stable on git repo cloning, but not much on serving zipballs
@rdlowrey can't really force it. It's an URL that composer retrieves from the GH api
@rdlowrey I didn't say that, I just wanted to point out my findings. Maybe it helps in writing a bug-report?
@PeeHaa that is all drupal in one file?
user895378
sorry for being pissy. composer is NOT what I want to be doing at 5 in the morning.
@rdlowrey I can understand. And it's your right to be pissy, it's everybodies right. Just tried to be helpful.
@crypticツ: ^ this GO navigator is somewhat in the way.
user895378
@hakre thanks :)
09:08
@rdlowrey Why are you up at 5am?
@hakre That is just a random selection :)
user895378
@Jimbo Code. The end.
@rdlowrey +1
except for the fact that I've been doing it also tonight and I'm wasted a zombie.
im usually stoned
thats so funnnnn xd
user895378
I tried to go to sleep at ~1 and kept thinking of things to work on so eventually I just got up and started pounding away at the keyboard.
09:10
Thats the spirit!
@Mr.Alien Today, we're going to the mystery tea house
@hakre aaah not sure why it's moved over there. What browser? Nvm, Chrome
Hi people...i have a quick question. preg_match function seems to fail for all web hosts I have tried and runs perfectly on local host for a pattern. How can I solve this?
What lol ¿?
@Prabhpreet have you tried debugging ?
09:12
yeah i have...it returns 0 when i upload it online, on local host it returns 1. I have no idea why it's doing that
well ... the inputs don't match
but on local host it works perfectly...i have tried getting the output from print_r and it seems to work. Actually I'm trying to parse a date and i have tested the regex pattern online also. It works there. But weirdly enough, it doesn't work when I upload it to a server.
Hello, i would like to ask something, i have a page that a user inputs name,email,telephone and then a code is generated for the user ( all of them are insert into my db ). Is there anyway to see if the user will use the password that generated somehow anywhere? I mean the password might be a coupon or something like that and can be used to other pages and not mine. So is there any way to see that?
@Ocramius nope, don't know anything like that
I have tried using php 5.2, 5.3, 5.4
09:15
What about 5.1 and 5.5
@Prabhpreet well .. check the inputs instead
it's empty
@NikiC got here so far
too late =o( @Gordon
still need to get some test coverage there... it will be a pain
09:17
@crypticツ mhmm. 11.15. the backlog is rebuild all 15 minutes, so that could be the cause. see if it happens again on 11.30
@tereško I did and it works on my localhost which is running 5.3
@Prabhpreet Can you provide a fiddle on regex101.com ?
@Ocramius i see... the simplest way to do it if you are dealing with user classes is to just parse the file and take the right class from it (assuming you want stuff like method bodies). For internal classes there probably isn't a way around what you're doing there
@NikiC yes, I'm currently dealing with eval'd code (edge case, but still something I'm addressing)
so for those I'll just skip parsing method bodies
ah, okay
09:19
otherwise the only thing that really itches me is the npath complexity
it's reallyreallyreallyreallyreallyreallyreallyreally high
ok i found a solution....the problem was the feed was i was parsing gave a different language completely so it wasn't able to parse it. this was because my server was located somewhere in europe and it gave the feed according to the local language. thanks everyone :)
@Ocramius yeah ^^
@Prabhpreet which is why I told you to check the inputs in the preg_match()
one thing that one could do is add boolean parameters to the make* methods (i.e. if false it would be ignored).
09:22
@tereško (y)
@NikiC is there a way to do a one-time set of all those?
I also had to extend the abstract builder to access normalizeValue
$methodBuilder
    ->makePublic($reflectionMethod->isPublic())
    ->makeProtected($reflectionMethod->isProtected())
    -> // ...
^- this is what I'm thinking about
hmm, that'd be set then
yeah, that would be even more methods ^^
bleh :P
anyway, I'm planning on throwing this thing in ZF3 and drag in php-parser as a dependency
current state of Zend\Code is a mess
09:24
@crypticツ What exactly do you mean "view" it? See everything that's currently in it?
@Prabhpreet isolate the problem, create a test-script. see what differs. start with getting versions and if functions are available.
@DaveRandom yes, I checked in Firebug and it's showing up empty. I'm sure I'm doing something wrong as usual
6
Q: Is there a correlation between code complexity and developer productivity?

BennyIs the time spent refactoring a code base worth it in the long run, in terms of developer productivity? It seems pretty clear to me that modifying a clean, well designed system is much simpler and faster than working on a poorly designed one, but I'm after some solid evidence. Are there any stud...

@Ocramius it's a parser. lol.
09:27
@hakre I'm more interested in the AST abstraction
@crypticツ I'm not sure then, in chrome it just works. Also in chrome something like var contents = {}; for (var key in window.localStorage) { contents[key] = window.localStorage.getItem(key); } console.log(contents); would work
Zend\Code as it stands is like big reflection objects that generate "THEMSELVES?!?!?"
perfectly fine for simple tasks, but you hit the wall quite fast
I am back.
@Jimbo great, let me know when ;)
@Ocramius but you're walking the result?
09:38
zzzz sleepy
@Mr.Alien Come at my desk, I will assign you task.
@hakre yes
@YogeshSuthar before doing any work I'll kick your ____ :p
@Ocramius btw, those setXYZ methods are something that should most likely be added in any case to the nodes directly
They already have isXYZ, but nothing to change it, other man manual bit magics ^^
09:41
@Ocramius I see the many ifs in there. Looks also a bit like boilerplate. But I wouldn't parametrize it either now and keep it verbose/unrolled. You can refactor that later, right now you're dealing with a different problem I'd say.
that might help your code there too ^^
@NikiC nice idea!
0
Q: update the progress bar on file downloading

Kamran OmarI am developing simple php script which will show the progress bar on file downloading for that i am using curl library. As i am newbie in PHP therefore may be i am not following appropriate library. Currently i am facing problem in php code i.e. not updating progress bar. My code is following: ...

@Mr.Alien you are doing tooo much work, take some rest. :P
Just came to say linkedin API sucks
09:45
@YogeshSuthar I am working on 7 projects at a tym in the office, and 3 of my personal at home
@zerkms I was expecting that LinkedIn sucks
@Mr.Alien try real life some day
@zerkms Only sundays .. :(
... - said a person who does a remote work after full time office
haha so you too a workaholic...
nope, I'm just poor and silly - so need to work twice as more
09:46
@NikiC @hakre alrighty, will keep it that way. @NikiC I'll extract that class and PR as soon as I get some tests done (which will be hell)
@zerkms I think you've great talent, talented people are not poor :p
@Mr.Alien it is, but their api is even worse :-S Looking for 500 error for 10+ minutes while I'm assumed to develop some integration with its authentication
@Mr.Alien haha small projects. :)
@zerkms never tried it's api but I had developed a business networking website where I used to have a fake profile on linkedin and used to make better features
@YogeshSuthar currently running on big ones
@Mr.Alien in comparison to FB or twitter - it's a total mess
no official server-side client (not in any programming language), terrible JS client
weird endpoints: https://api.linkedin.com/v1/people::(~):(id,first-name,last-name,email-address,location:(name,country:(code)))
09:50
@Mr.Alien teri to lag gayi ab. :P
Heh, spotted a typo http://msdn.microsoft.com/en-us/library/ms972966.aspx#regexnet_topic8
\w Matches a vertical tab; \u000B
It should be
\v Matches a vertical tab; \u000B
any one knows Regular expressions.
for email..
@HamZa new customer. :p
my conditions are
@Rafee please don't
09:54
string@nonumbers.string
I am writing that in Objective C
@YogeshSuthar lolz
Quickly written: http://goo.gl/uLczd
It've made it simple
46
A: How to validate an email address in PHP

PeeHaaThe easiest and safest way to check whether an email address is well-formed is to use the filter_var() function: if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { // invalid emailaddress } Additionally you can check whether the domain defines an MX record: if (!checkdnsrr($domain, 'MX')) ...

I'm soooooo upset of myself today. Proposed a beer bet to a friend of mine who is a security researcher that he won't find any vulnerabilities in my hobbie project and seems like he has found something (but doesn't tell until we met in a bar to celebrate it)
a quick solution for javascript alert that doesnot work in ajax enabled sites ?

« first day (1006 days earlier)      last day (4167 days later) »