« first day (634 days earlier)      last day (4300 days later) » 

2:00 PM
yeah i still use it in that aspect
 
who uses images on the web anymore anyways????
CSS + Font-Icons. BAM
 
I bought PS CS5 for +200$ to create troll pics!!
 
ive never bought an adobe product
cough
 
2:02 PM
I get paid for software I buy, so I don't care.
I am kind of a proxy. :D
 
ahhhh including 9K lines to save yourself ~100 :) makes sense :P
 
well, I was. I am not there anymore.
 
@rlemon it does. but I still can't find a a DOM selector that works yet.
I saw the zest today.
 
Anyone knows of a good online sketchpad, which allows to quickly sketch a drawing or a graph, then upload it online automatically?
 
2:03 PM
Sizzle, QSA, getElement[s]By[ClassName/Id/TagName]
 
look at wireframing tools @truth
 
Sizzle is Jquery. |:
 
Also, you don't ever select a complicated selector.
no.
Sizzle is used as jQuerys selector engine.
 
but yeah pretty much.
 
Sizzle is half the size if not less.
jQuery === Abstraction library, Sizzle === selector engine.
 
2:04 PM
come back in two hours.
 
@Truth hand sketched?
 
omeid.me/theme/omeid.js you only select ID's or elements or classes. nothing complicated. I'm not bitching... i'm just pointing out the sillyness up front. Understandably this is easier for you and doesn't really matter with as little content as you have (loading times are not horrible) but it should be noted.
 
Background saving should have been in photoshop years ago...
 
@markustharkun With some basic shapes
rects, ovals, curves
 
2:06 PM
allright, lucidchart.com is your thing
it's like visio, but better and to a certain very usable extent free
and online
 
sikkk graph
 
how to get last id from the URL
http://....example.com/directory/file.php?list=id1,,id2,id3
 
@CarrieKendall on the very right, it says free!
that's all you need
 
Loved lucidChart
 
2:09 PM
I use it all the time, never needed anything that wasn't possible in the free plan
 
yeah in 25mb think of the possibilties
 
@CarrieKendall have you tried it?
 
@DanishIqbal $lastID = array_pop($_GET['list']); however this actually removes the last element from the array and returns it.
 
no, i haven't but i grow weary of the idea.. how large are your diagrams?
 
all kinds of sizes, let me check
 
2:10 PM
@rlemon ok lets me try thanks :)
 
^ good and free (for the simple stuff)
 
Hi, good morning from Brazil :D
 
@CarrieKendall just to give you an idea.. that's just the first row, so there are more and some have several pages which are not shown in the overview... screencast.com/t/AkjUuxEoF
so I'd say pretty usable for a free version
 
okay i will check out, i have been looking for a good alternative to visio for about 2 years -.- thanks for sharing
 
@ViniciusTavares Morning
 
2:15 PM
Mornin' folks;
 
@rlemon
i got this error
The argument should be an array in /home/file.php on line 47
last id:
 
@DanishIqbal You need to explode the 'list' element.
 
ahh forgot about that
hehe
i'm in my own little world today
 
wth is this-> {% code %} and {{code}}
 
$list = explode(',', $_GET['list']); $lastId = array_pop($list);
 
2:17 PM
@Bracketworks ok got it thanks :)
oh thank you so much for the full code :)
 
i will drive this road before i die in an italian super car
 
@DanishIqbal Alternatively, you could (if you have control of it) pass them as an array through the query string. ?id[]=1&id[]=2 will result in an array in $_GET['id']. I've heard this is bad form though; if anyone wants to jump in for justification on that..
 
As opposed to driving it after you die? @Mike
 
@Mike swiss ?
 
mhm stelvio pass
 
2:21 PM
I prefer dying in Ferrari
 
ferrari = italian
 
@Bracketworks i dont have control this list receive from facebook
 
@Bracketworks If you are passing multiple ids, then it makes sense to pass them in an array.
 
Ah, ok
 
@Mike yeah but it isn't the only one... en.wikipedia.org/wiki/Transf%C4%83g%C4%83r%C4%83%C8%99an this is so close to me (best road after stelvio)
 
2:23 PM
@LeviMorrison I always figured so, something to do with HTTP, that despite PHP's good handling of it, it wasn't a good practice... -shrug-
 
i swear for the swiss police hating speeding so much, they have some of the best roads in the world.
 
In order to preserve a method from being overridden (and not having it's parent called), namely a base constructor for initialization, it would be best to finalize the constructor, and call an abstract defined method of initialize() from the constructor, overridden in each extending class, correct?
 
@webarto if i got a job offer in Switzerland i'd be there tomorrow.
 
@Mike it is OK to drive fast if the only one who can be killed by that action is you
 
i don't care if I was living there working at the grocery store.
 
2:26 PM
majority of criminals from my country go to Switzerland, I guess that's also a job
 
@webarto we ship all of ours down south. let the mericans deal with them (they're used to it anyways)
 
haha, i never hear anything about switzerland in a negative way. and to me its just a n overall beautiful place. That and every female i've seen from there is DDG.
 
websequencediagrams.com That is awesome
 
it is it is
 
yes, we have plenty of criminals. I vote we do like that movie "Gamer" and deploy criminals to war combat areas.
 
i first found it when on the symfony site
 
That as well
But the first is awesomer!
 
17 mins ago, by rlemon
http://www.websequencediagrams.com/
damn was hoping i did that all in one post (the line under it too)
 
have you used visio?
 
visio doesn't play so well on Linux
 
2:33 PM
My next blog post is going live in 30...
 
evening , everybody
 
@tereško hiya
 
PHP helmet and warface <?:|@}
the @ symbol is the manly chin dimple, think superman
 
i thought it was a double chin
 
2:46 PM
@tereško guten abend
 
@ircmaxell I like to discuss here first ;)
 
i'm looking for a nice simple seamless textures pack, any suggestions?
 
3:02 PM
@ircmaxell which one of them?
 
That one wasn't planned or was it?
 
No
The planned one wasn't finished yet...
 
@ircmaxell I rather see the same code in both patterns. that would also make me think how to avoid wanna-be-OO code.
 
@ircmaxell Nice summary :)
 
3:11 PM
> What I'd argue makes code OOP is a few things.
@ircmaxell I would say Code OO
or spell it out
> What I'd argue makes code Object Oriented Programming is a few things.
That doesn't sound right. But so far, a good read.
 
^-- this question was in my close list quite long, but still is not closed. I can't vote on it anymore :/
 
posted on July 11, 2012 by Anthony Ferrara

This morning I was asked a question that took me by surprise: "Your examples for PasswordLib are in OOP style, how do I write it in procedural style"... This took me by surprise, because the examples actually are in a procedural style. So I felt that I should write a post about the real differences between OOP and Procedural coding styles. Hint: whether you use classes and objects or not has ve

 
2009 question :)
 
RPM
for($i = 1; $i > 0; $i++)
echo "{$i} That sounds like a bad idea" . "<br />";
did anyone just see that comment thread?
 
Yes, I saw it full of people who couldn't work out how to use backticks properly
 
3:16 PM
@ircmaxell where do you get the time to keep out shitting (meant in the most positive way :) ) out blog posts the entire time?
 
RPM
Leigh, is that true?
 
@RPM what'n sam hell
 
@RPM Sure is, half the comments were clearly copy/paste, they had a starting backtick before their code, and no end backtick after it
@Mike question got deleted fast
@PeeHaa The previous one was better
 
RPM
@Leigh copy / paste from what? Why do you think that
@Leigh Mine was not copy paste
 
wait since when was {$1} valid ?
 
3:20 PM
@RPM I don't care, stupid comments for a stupid question.
 
@ircmaxell btw typo "so I'n not " -> "so I'm not "
 
RPM
@leigh hah I know it was just funny
@Mike
 
@Mike For a long time, how else do you access object properties ;D
 
RPM
You didn't know you could do that?
 
in php?
 
RPM
3:20 PM
Yes sir @mike
$i = "Mike";
echo "Hello {$i}";
 
what'n sam hell
wtf is this shit, Ruby?
 
user895378
OMG I HATE F-ING FLASH SO MUCH ARGGGGGGGGGGGGGGGGGGGGG
 
@Leigh Which one?
 
yes, we all hate flash equally @rdlowrey
 
@rdlowrey hiya ;)
fishing flash?
 
3:22 PM
@rdlowrey you must be building a website i0.kym-cdn.com/photos/images/original/000/101/781/Y0UJC.png
 
@PeeHaa the one recommending the tutorial wiki ;D
 
:D
 
why would you use {$i} over echo 'blah'.$i.'blah';
 
@Mike why would you use double quotes without a variable inside the string?
 
I'm really starting to hate people with stupid CS!!!!
 
3:23 PM
it was an example.
 
RPM
@Mike I usually don't. I learned about it when learning about object literals
 
there, better.
 
RPM
Yea it is said that single quotes are faster @Mike
 
@PeeHaa yeah counter-strike people are idiots! :P
 
"$i", "{$i}" and "${i}" all do the same thing - except you need the braces when you access object properties
 
3:24 PM
Flash makes security breaches piece of cake ;)
 
@CarrieKendall Yup those too
 
i suppose i dont understand why you would have three different ways, that all are identical.. if that is, that they are identical.
/shrug
 
RPM
Under different circumstances each one is appropriate
 
@Mike "i dont understand why you would have three different ways". Ahhh how cute you are new in the PHP world
;-)
 
i would consider my self a new kid on the block, sure.
 
user895378
3:26 PM
@Mike they aren't identical ...
 
apparently so since i missed the memo about {$1}
 
RPM
How long yo ubeen programming @Mike?
 
@Mike hehe
 
yay now i can be trendy, and write PHP like ruby
o.O
 
RPM
Make sure you fill those TPS reports out
 
3:27 PM
@rdlowrey in what scenario would you pick {$v} over "$v"
 
user895378
@Mike when you need to name a variable using a normally invalid character.
 
user895378
If you want to do: $obj = new StdClass; $obj->my-variable-name you can't because dashes aren't allowed in PHP variable names. You have to do $obj->{'my-variable-name'}
 
oh :)
 
@Mike when I need to write "{$v}ariable", not "$variable" ;)
 
so they aren't identical then.
perfect, so its not useless then. Its there for more than just personal preference.
 
3:29 PM
@rdlowrey I hate API's who deliver content like that: Yeah I'm looking at you Soundcloud API!!
super mega ultra wicked ping
 
@PeeHaa does it give a super mega ultra wicked pong?
 
user895378
@PeeHaa lol yeah. Unless there's a really good reason, please stick to valid characters in variable names.
 
user895378
@PeeHaa pong. pong. pong.
 
so by standards which is typically more accepted for calling variables. echo 'string {$v}'; or echo "string $v";
guess i need to read up on some shit
 
@Mike the latter
Obviously parsing out the braces adds overhead, only use them when you need to
 
3:31 PM
in other words, use {$v} when needed and not all the time
righteous, i learn something new everyday.
 
exactly
 
@Leigh Yup it did
@Mike I often like concatenating better
 
:( i'm quite sensitive to nasty pongs
 
user895378
I generally concatenate instead of doing "text $var" just because I find it easier to see what's happening with 'text' . $var even though an IDE will generally highlight the variable name inside the string anyway. Choosing one over the other for performance reasons is probably an unnecessary micro-optimization though.
 
ha beat ya
 
3:34 PM
@rdlowrey likewise, especially when you're forced to echo out html in a string along with variables. much easier to use single quotes and concatenate
 
@rdlowrey how many optimisations do you need to skip before they become necessary?
 
or end php, and write straight html.
and echo the var
 
@Mike And when there are lots of variable you should resort to sprintf()
 
i've never done that
 
@PeeHaa sprintf is the slowest method of the lot
faster to just concat
 
3:36 PM
its not as easily readable either.
 
user895378
@Leigh Well, @ircmaxell + reading Code Complete 2 really changed my view on things like that. If you read the linked blog you'll see how I approach it now.
 
@Leigh It's not about performance
 
with concat you can at least see the variable in one line.
click click time to read, if it wasn't for this cush govt job i'd never learn anything lol
 
:)
 
i swear, ive learned more from Anthony and you guys than i have from almost any tutorial i've read.
 
3:38 PM
2
A: SELECT rows WHERE next n rows satisfy CONDITIONS

ctraheyWhew... I put together an idea that may get you what you want. Forgive me if it takes a bit to understand, but I hope you see that it's actually a fairly straightforward solution to a moderately complex problem. I would build the query (in PHP) to have n self-joins where n is the number of time...

 
user895378
@Mike Yeah, this room is $$$ for learning/improving. Doesn't matter what your skill level is.
 
Any alternatives?
 
do you want a PHP chat room certificate? @Mike
 
?
 
@webarto Let me guess E. 100 or $ 100
 
3:40 PM
yeah, it's the same :D @PeeHaa @Mike sorry I guess you've missed that part
 
no, but i would buy the regs here a beer if there was ever a SO php drink-up
 
@Mike I have a php chat drink-up every weekend. ;)
 
i didnt mean specifically php chat, i meant the regulars from SO as well.
 
@PeeHaa I enjoy squeezing performance out of things. If i'm not being paid, or not having fun, I'm probably not doing it. So if I decide I want to "prematurely micro-optimise" just for fun. I don't care what anyone has to say about it :)
 
zzzzzzz
 
user895378
3:43 PM
@Leigh I used to say the same thing ... but for the record, since I changed my ways my productivity has improved significantly.
 
22 hours ago, by rdlowrey
The PHP Chat certification quiz.
@Mike
 
@rdlowrey well, productivity is a somewhat subjective metric
 
how do you quote a message from the past?
> :123125125 ?
 
user895378
@Leigh And the code's readability for others has significantly improved as well.
 
user895378
@Mike just paste the permalink from the message you want to repost into the box and hit send.
 
user895378
3:45 PM
44 secs ago, by Mike
how do you quote a message from the past?
 
(dropdown arrow on the left as you highlight the message)
 
22 hours ago, by rdlowrey
Well, the answer to every multiple choice question is obviously "None of the above" (unless 42 is listed as an available choice).
sweet
 
omfg, bahahahaha
4 hours ago, by blackbee
odemi gave me the link to you pho password lib and cryptlib(), but the examle you provided was in oop style php. how do i write it in normal style
 
@Mike That's why I see that little avatar when he enters the chat
Well that and the fact he is an idiot who refuses to RTFM
 
user895378
3:57 PM
Yeah that guy was here late last night ... I tried to help him but it was abundantly clear he had no idea what was going on ...
 
user895378
11 hours ago, by blackbee
what is the difference between rtrim() and mysqli_escape_string() or mysqli_real_escape_string().. htmlentities and using str_replace() to replace the / ' " to their equivalent html
 
wtf?, yeah.
 
user895378
11 hours ago, by rdlowrey
@blackbee None of those functions have anything to do with one another
 
@rdlowrey wut?
 
user895378
Yeah ...
 
3:58 PM
The differences: Everything?
 
user895378
Maybe some people are unaware that a PHP manual exists ...
 
I truly honestly believe that @rdlowrey, more-so i truly believe some people think w3schools is the only credible source of info for php.
 

« first day (634 days earlier)      last day (4300 days later) »