« first day (925 days earlier)      last day (4038 days later) » 

12:00 AM
yeah
 
user652649
@NickFury try function save(){ .......yourcode.........; sleep(100); } and while is sleeping check if you already have data twice
 
user652649
@Ocramius I have OCD. my code is so clean you can eat off it!
 
lol
 
@Wes oh interesting when it hangs theres only one.. so you're right then, it's wrapped up in something
 
user652649
@NickFury yeah!
 
12:03 AM
@Manishearth 1. Because background scripts don't have access to the DOM, and 2. Getting it from the DOM would require a tab to be open.
 
user652649
lol
 
@Wes thanks man, I think I know what it is!
 
user652649
good ;)
 
12:31 AM
@bwoebi The Daily @cryptic is a weekdays only periodical. I have to send my staff home on the weekends =o)
 
user652649
@crypticツ you wish, now you have to please the audience, forever. it's about professional ethics :P evening
 
Noooo
 
user652649
lol
 
@Wes how would I go about finding what's wrong? the piece of code I thought was wrapping save() wasn't the problem.
 
user652649
@NickFury you could examine the whole full two backtraces, but it's easier doing in the code... walk backward within method calls and see if something could have created a second chain of calls
 
user652649
(jeez my english is getting worse, not better)
 
@Wes woh never heard of var_dump(debug_backtrace());awesome
 
user652649
@NickFury in practice you have to compare the two backtraces and find the "common denominator" of both save() calls
 
@Wes yeah makes sense, thanks again!
 
user652649
12:50 AM
yw
 
user652649
/me hates styling forms
 
@Wes I miss the good old days when websites were just blue links, black text, and CSS was just a dream.
3
 
user652649
@crypticツ yeah. do you remember <body hlink="" alink="" vlink=""> ?
 
yep, also table layouts. Those were the easy days =oP
splice up an image using Photoshop and set as backgrounds for table cells. Website up within a day or two
 
user652649
true. just saying.. this is my life now: i.imgur.com/937Yrz3.png
 
1:10 AM
@Wes urgh...
that's liquid pain
 
@Wes you must have to drink a lot
 
@Wes you forgot Amaya browser
 
user652649
@Ocramius i have to update the screenshot, because i also have win phone emulator, safari, and ubuntu
 
@Wes wait. You're not testing it for WAP browsers? :P
 
user652649
@Jocelyn in real world, you have to support older browsers. you developers don't live in the real world. :P
 
user652649
1:12 AM
@Ocramius ye ye very funny :(
 
Do you at least ask for a plus for all this stuff?
At work, we charge for <IE8 and secondary browsers...
 
@Wes I'm not a professional web developer. If my web pages validate then I'm happy
 
@Jocelyn s/validate/render
 
@Ocramius No. I wrote validate.
 
user652649
@Ocramius i'm working for myself in this specific case... and yes at work we charge too for non standard development
 
1:15 AM
yellow
 
user652649
key @kaᵠ morning/evening/night you decide
 
hmmz... where's The Daily @crypticツ
nothing at my RJ-45`step
@Wes evening
 
@kaᵠ see You'll have to wait until Monday.
 
@crypticツ whaaaaaaat? noes!!!!
 
Hmm... anyone having the fastest way of matching foo.$something.$otherThing? I was thinking of explode('.', $string) and checking foo
 
@kaᵠ budget cuts, blame the Republicans =oP
 
@crypticツ will that effectively make it Week2, entry X ?
 
@kaᵠ no, entry 6
 
1:20 AM
@Ocramius preg_*
explode is dead for me
 
@Ocramius I don't get it
 
@Ocramius regex: /^foo\./ ?
 
hmm
I still need to use the other two parts - wondering if explode isn't any faster
 
user652649
@Ocramius substr?
 
1:23 AM
nope, regex
 
@Wes still need to know there's 2 parts after foo
 
@Ocramius can you explain another way?
"can you use that in a sentence?" :P
 
Ok, I basically have huge arrays of config in the form of doctrine.<WHAT>.<NAME>. For example doctrine.cache.apc, doctrine.cache.memcache, doctrine.connection.default, doctrine.connection.other_db
 
1:26 AM
so I'd like to use cache and connection here to define "who" is gonna instantiate my objects, and apc, memcache, default, other_db to decide which configs to use
 
@kaᵠ really? why is that? and what evidence do you have that regex would be faster than explode?
 
@igorw not rock solid but had a few tests, can't say more that an opinion atm
 
ok, drilling up small test then @_@
 
1:29 AM
@Ocramius : '/^doctrine\.'.$what.'\.'.$name.'$/' ?
 
@Ocramius so you're basically writing an in-memory key-value store that talks to a range of other in-memory key-value stores?
 
@igorw kind-of, yes
 
@Ocramius ok... you're doing it wrong :P
 
@igorw huh?
 
1:31 AM
basically, $what defines what factory has to build the object, and $name defines what configs to pass to the factory
 
@Ocramius then build specific hash maps for those things
 
not following... what do you mean?
 
well, instead of scanning over keys, you should store that information in a specific hashmap as early as possible
 
so "doctrine.$foo.$bar"
becomes
$doctrine[$foo][$bar]
 
1:34 AM
@igorw that is what I'm doing
 
@igorw+=100
hmm
 
@kaᵠ I don't know $what and $name upfront
 
@Ocramius and you need to re-calculate that hashmap for each request?
 
@Ocramius you don't 'care' what and name are set to?
 
I mean, can't you just calculate it once and then store it?
 
1:35 AM
@kaᵠ just [a-zA-Z0-9_-]+
 
slightly related, the docs on the redis KEYS page
 
@igorw no, it's user mappings. I can cache them later on, but it's service names hitting an abstract factory
 
@Ocramius '/^doctrine(\.[\w-]){2}$/'

RegEx - Regular Expressions

Discuss about Regular Expressions. Learn at: Regular-Expressio...
 
1:39 AM
@kaᵠ ok, explode is faster fyi ;)
 
@Ocramius really ???
 
@kaᵠ yeap
 
test code?
 
1:41 AM
@kaᵠ just iterating 1 mln times over explode or over preg_match
 
@Ocramius a bit more info: that regex also validates not only splits the string into an array, i bet your test code is wrong
 
user652649
 
@Ocramius you'll need more instructions than one explode, versus if(preg_match) that regex...
@Wes lol
 
@kaᵠ oh, you're right, it's indeed better with the regex this way :X
 
1:44 AM
@Ocramius if you really wanna test...
'/^doctrine(\.[\w-]++){2}$/'
'/^doctrine\.[\w-]++\.[\w-]++$/'
'/^doctrine(\.[\w-]++)(?1)$/'
 
what's this ++ thing?
 
^^ 3 ways to do that, performance optimized, test pls, bet 2nd is the fastest
second + is possesive
doesn't let backtracking
although it's kinda useless for such small strings, it could offer some kind of speed improvement over large qtys
@Ocramius these 3 are ok (not tested) first one is missing the quantifier ^^^^^^^^^
 
@kaᵠ gonna try in a sec - trying to brain on the architecture stuff - thx so far =D
 
user652649
@crypticツ hows your site going?
 
@igorw I guess there's a reason that's on prog.SE and not on SO... as it's NC
 
user652649
1:50 AM
@kaᵠ never heard about that
 
@Wes bout what?
 
user652649
the ++ thing
 
user652649
doesn't work in js btw
 
@Wes advanced 'regex'
@Wes js regex is crap
 
@Wes damnit I knew I was forgetting something
 
user652649
1:53 AM
@crypticツ lol
 
user652649
@kaᵠ :(
 
@crypticツ ok, i get the broom, but what's up with the black hat ????
 
@kaᵠ I needed some swagger =oP
 
@crypticツ get rid of that black, go white
blue/gray :P
introducing black hat @crypticツ
^ doesn't sound right
 
user652649
i have to choose between "styling forms in a standard way then fix for specific UAs" or "styling at the minimum common-ish denominator for all UAs then eventually fix something"
 
user652649
2:02 AM
the only thing i'm sure is that whatever i choose it will be wrong
 
got some stats? browser usage
 
user652649
problem is not fixing for browsers. i know that is possible, problem is code design and maintainability... for example i can't use :not(), i don't want to use !important and more
 
user652649
for example if i do select{height:30px;} and then select[size]{height:auto;height:initial;} it surely will not work in some browser
 
i'd use the common denominator, but then again, not webdesigning...
 
user652649
2:10 AM
@kaᵠ yes but if forms aren't styled correctly they could easily break a layout
 
adaptive layouts?
 
user652649
yes but also forms have to be adaptive
 
anyone wanna work on a website with me? I am good with Graphics Designing, CSS, etc and designing but I'm not good with scripting. I have the domain. It involves gaming, kinda like a forums. Domain = thegamingcommunity.net. I own it and all rights to it.
 
user652649
lol
 
2:19 AM
@crypticツ fancy !
bit more border maybe?
 
user652649
tsk, girls
 
user652649
:P
 
@crypticツ i take my badge seriously :P
 
@kaᵠ I don't know how to add more border without messing up the drop shadow.
 
@crypticツ that's fine just the way it is, really fancy (i know you pushed your PS skillz :P)
 
2:24 AM
GIMP!!
 
much better !!!
@crypticツ G skillz ? :P
 
@kaᵠ I didn't make the hat. I got it from online, I just added it into image, took my ears off
 
no prob, your pink alien cat is still there :P
 
I'd use Inkscape to make the hat, but it keeps crashing on me =o(
 
haha, i dig vectors too
@crypticツ a shade of yellow-orange maybe?
hemp-hat :P
 
user652649
2:28 AM
i.imgur.com/0H3pp4V.png ok my eyes are bleeding now. too much pink on my screen
 
@kaᵠ I don't know what weed you have been smoking, but mine does not look orange =oP Lemon Kush is kinda yellowish though.
 
@crypticツ i have NO IDEA what you're talking about ... 'lemon lush', was suggesting a more yellow-orange-ish-white :P
but btw on 128x128 it looks awesome
really ossm
 
@kaᵠ hemp
 
yup
hemp is used for clothes too
and paper
 
smoking paper!
 
2:32 AM
actually that's it's 'primary' industrial use
 
not in the US =o(
 
it was
some time ago... long time
 
yeah, until the corrupt DEA was bought out by the prison industrial complex and big pharma.
 
lol :))))))
i think it was some kind of misunderstanding and misinformation going on but hey.. what did they know
 
user652649
 
2:35 AM
@Wes can you pass the salt please ?
 
user652649
@kaᵠ md5 one?
 
md4
 
@kaᵠ 75a123decc35faf3a75a876f66e21a81
there you go
 
@uınbɐɥs what did you hash there?
 
2:40 AM
@kaᵠ search for the hash
 
ok @uınbɐɥs and you search for this one: 7c3dc1a5875fa62ef3a1e36f6a75a281
@uınbɐɥs please even
 
user652649
thank you for nothing, God nopaste.info/8ae17d7f22.html
 
user652649
i need a css preprocessor
 
@kaᵠ what is it?
 
md4
 
user652649
2:44 AM
i think @crypticツ is trying obstinately to reload her avatar
 
she's gone dude :P
/me gone too
bye ppl
 
user652649
bye good night
 
@Wes Here, I optimized it for you: pastie.org/private/amgmue17s7ynlfgbotxtg
 
user652649
@uınbɐɥs thanks but if you do *::-webkit-placeholder, *::-ms-placeholder {} doesn't work in some browser... you have always to separate them :(
 
user652649
stupid parsers of my ass
 
2:58 AM
@Wes I was just changing my gravatar too so it has hat on github as well
 
user652649
:P LOL
 
user652649
@uınbɐɥs jsfiddle.net/JBAWc FFFFFFFUUUUUUUUUU
 
user652649
doesn't work in chrome, trying in firefox
 
user652649
doesn't work in firefox either
 
oh well
you need a CSS preprocessor
 
user652649
3:01 AM
i hate my life
 
@Wes at least you have a life to hate =o(
 
user652649
 
user652649
they are deprecating something in favor of something that will be certainly deprecated in the future. why? what for?
 
lol
I see now
 
user652649
:-moz- instead of ::-moz-
 
user652649
3:04 AM
 
@Wes Will the people viewing the site you're making have JavaScript enabled? If so: leaverou.github.io/prefixfree
It might work
 
user652649
yes i'm going to use something like that.
 
user652649
@crypticツ i will have a life when i will not spend my days fixing internet explorer
 
@Wes I gave up on caring about IE when my phone's browser became better than it
6
 
@Wes Is Chrome Frame (or forgetting about IE completely) not an option?
 
user652649
3:13 AM
my audience is... stupid. so no :(
 
@Wes What about hiding the ClickOnce install button of Chrome Frame under the mouse cursor? The user clicks, and Chrome Frame is installed instantly :-P
 
user652649
lol
 
user652649
 
Does anyone have any good link for a jquery-like tagging system link where there is autocomplete and I can control the amount of options it shows in the autocomplete?
 
4:09 AM
@DemCodeLines choosen plugin ?
http://stackoverflow.com/q/16174841/1723893
http://stackoverflow.com/questions/16259530/very-basic-jquery-call-isnt-working-at-all
 
user652649
@NullPointer morning
 
@Wes morning
@crypticツ Y U NO ENTRY 6 please?
 
user652649
 
@baba You can try VMware i found it better
 
user652649
@NullPointer isn't vmware payware?
 
4:25 AM
@Wes yes its costly ... while you dont like torrent /warez
 
VMWare Player is free
 
user652649
I just prefer the word "donate" rather than "buy"
 
@Wes Compulsory donations? :-P
 
@uınbɐɥs link please ? since its only have free trial (and yes torrent is free)
@uınbɐɥs lol
 
user652649
@uınbɐɥs often, but only if i really like
 
user652649
4:31 AM
$photo = $_FILES['photo']['tmp_name'];
if(!isset($photo))
 
@Wes something more stupid :P
 
user652649
the totally unnecessary cloning of the variables?
 
user652649
$sid = $_POST['sid'];
$fname = $_POST['fname'];
$lname = $_POST['lname'];
$sex = $_POST['sex'];
$nationality = $_POST['nationality'];
$photo = $_FILES['photo']['tmp_name'];
$dept = $_POST['dept'];
 
user652649
fuck this shit. i'm dropping support for IE7
9
 
user652649
^ star that!
 
4:35 AM
@NullPointer Hmm... I can't find the link any more... but I have downloaded it from the VMWare website before
IMO, VirtualBox is better though
 
@uınbɐɥs np ....
 
Late night StackOverflow is worse than late night imgur.
 
@uınbɐɥs bt in vmware you can copy file directly .. connect to INTERNET and full screen view is better and much more more more
 
@NullPointer You can connect to the internet in VirtualBox too.
What do you mean by 'directly copy file'?
 
can copy file directly from virtual machine's os to os
 
4:44 AM
ah
In VirtualBox, there are only Shared Folders.
And a shared clipboard.
 
give a another try to vmware ... i have tried both and found vmware better ...lot more better
 
Hi. What'd I do if i want to create a new object and later apply exactly the same values of other object on this newly created one?
Will new and clone help me?
 
m59
Can someone help me understand how php thinks of $stmt->bind_param('sssd', $code, $language, $official, $percent);?
 
bye guys
 
m59
I want to use that line of code in a more dynamic situation.....passing various amounts of params..
 
user652649
5:12 AM
@m59 equivalent of func_get_args() for undetermined number of args
 
m59
I think I'm going to switch to PDO lol
 
@NullPointer see this
 
user652649
i don't even use prepared statements
 
m59
Wes, really??
 
user652649
yes
 
5:53 AM
@crypticツ You missed a 1 on the end of that URL.
 
@NullPointer ^
=oP
 
user652649
 
user652649
^ any resemblance to real persons is purely coincidental
 
user652649
6:08 AM
@uınbɐɥs %E2%80%AEwolfrevokcats
 
@uınbɐɥs dafuk, how is the search term in URL different from the term in the search field?
 
lol
 
user652649
@crypticツ pwnd!
 
@crypticツ You were tricked by RTL ;-)
 
@uınbɐɥs I still don't get how 'stackoverflow' shows up as the search string.
 
6:14 AM
@crypticツ Because I reversed stackoverflow: wolfrevokcats and prepended a RTL character.
 
lol
 
user652649
@uınbɐɥs thanks to you now google thinks that i like ALWAYS to read RTL text
 
user652649
the whole google is RTL now
 
m59
maaaaaannnn
I'm setting my pdo connection to null
 
m59
yet, it isn't null!?
 
user652649
@uınbɐɥs the cookie won't die
 
user652649
lol dammit
 
@Wes that's odd
 
m59
$this->db = null;

    if (isset($this->db)) { echo $this->db->getAttribute(PDO::ATTR_SERVER_INFO); }
	else { echo '<p>Database connection is NOT active.</p>'; }
I've tried every variation of that i can think of, still not going to else
 
user652649
6:20 AM
restarting chrome
 
user652649
google lol fail
 
user652649
now it's ok
 
user652649
@m59 you are doing something wrong... db is not null
 
m59
you see me set it to null! lol
 
user652649
maybe you have more
 
m59
6:23 AM
nope
 
@m59 what is var_dump(isset($this->db)); outputting?
 
m59
not a thing
 
user652649
@m59 it can't be. it should print at least "NULL"
 
m59
lol it's crazy. If pdo is up it says true
but if null, nothing
 
user652649
*sorry not null, false or true
 
6:29 AM
yeah you should be getting the output bool(false)
 
user652649
try var_dump($this->db); but if you ask me, it's you that you can't even see if the text is printed :P:P:P add header("content-type: text/plain"); at the top of the php page
 
m59
strange, it just started working.
gimme a sec to try out some things
Well what the heck. Glitch I guess.
 
PHP gremlins, they come out around this time of night O_o
2
 
m59
Maybe I instinctively put a dot somewhere I missed or some crazyness lol
 
user652649
i mapped my keyboard to send ctrl+f5 instead of simple f5 for this reason
 
m59
6:31 AM
To my knowledge, I didn't change a thing and not it works haha.
 
user652649
m59 ctrl+f5 always
 
m59
oh snap....
you think it was cached?!
screwwwwwwww so tired I didn't think of it.
 
@hello all
 
user652649
hello
 
@wes how are you today
 
user652649
6:40 AM
@Er.NikhilAgrawal did you ever saw the movie Predator? i'm like that.
 
@wes ya i saw it way back in 2010
no wayback in 2009
@wes
do you like that movie yadefinately it isnice
 
user652649
yeah
 
user652649
i like how friendly are the indians :P
 
persnaaly I like to talk with people and like to know about their
culture
so tell me
where do u live
 
user652649
italy, but i don't have any culture :P
 
6:51 AM
ok...
so what you do
 
user652649
joking. i'm a professional rockstar. joking again
 
user652649
i'm a web developer, probably
 
@m59 create a common function valStr( $strsSampleString ) where you'll check if entered value is a string or not by virtue of is_array() and element set in accepted parameter and length of accepted parameter is greater than zero.
 
user652649
Jan 14 at 21:30, by Venkat
@Pekka could you explain about german culture marriage..? your people like love marriage or arranged marriage (father and mother looking pride for son) ?
 
@Er.NikhilAgrawal aaah I love talking about myself, ask me questions! =oD
 

« first day (925 days earlier)      last day (4038 days later) »