« first day (82 days earlier)      last day (4851 days later) » 

4:05 PM
This is getting silly
 
Please refrain from vomit here... please.
 
He pulls out misinformation to prove his point (that mysql_client_encoding isn't effected by any of those queries. Well, it's not affected by any query since it's an internal function to PHP)...
 
Don't battle with an idiot...
he pulls you down to his level...
 
quite true...
I think I'm done for the day...
[This] reminds me of a quotation from somebody that, whenever he tried to explain the logical structure of a programming language to a programmer, it was like a cat trying to explain to a fish what it feels like to be wet. -- Saul Gorn
A Netscape engineer who shan't be named once passed a pointer to JavaScript, stored it as a string and later passed it back to C, killing 30. -- Blake Ross
 
4:18 PM
I like that one...
 
@CodingKitten some new quotes for you
 
@IvoWetzel that's why I've switched to get the knowledge about null
 
:kitten quote
 
> "A programming language is low level when its programs require attention to the irrelevant." - Alan J. Perlis
 
Programmer (n): An organism that can turn caffeine into code.
 
4:21 PM
So life did not evolve in the ocean, but in a coffee pot.
 
Law 1: Every program can be optimised to be smaller. Law 2: There's always one more bug. Corollary: Every program can be reduced to a one-line bug.
 
One statement bug: eval
 
I'm using eval !
\o/
 
@ClemDesm I'm so sorry for you :(
 
Don't !
 
4:22 PM
After 30 minutes of looking I find this:
if (foo && Company.CurrentUser.IsIE) {
     ...
}
In the code behind! And they wonder why the website isn't cross browser compatible
 
HaHa I like FriendOverflow :D I got 2 friends now :D
 
lol
 
OK, so who posted something about github.com/BonsaiDen/BiSON.js?
I got 10 new watchers today...
I got like 10 in the last half year...
 
Gilder's Law: Bandwidth grows at least three times faster than computer power. -- George F. Gilder
Too bad it's been proven wrong, and in only 10 years...
 
@IvoWetzel dailyjs.com
Mario Gonzalez wrote in with a game his team have built using Node and WebSockets: Ogilvy & Mather Holiday Snowball Fight. It’s a multiplayer game that uses a lot of interesting libraries, like CAAT and BiSON.
I should read that blog.
 
4:29 PM
The evolution of a programming language: Make work, make it fast, make it faster, make it as fast as possible.... then write a new language which compiles down to the old one, now you can start making it faster all over again!
 
lol
 
But its true
JS is getting faster... now we have Coffee Script
@Raynos Ah, yes I know of that game, didn't know that is posted on daily.js
 
@IvoWetzel do people actively develop in coffee script? I thought it was a toy to satisfy people attempting to write functional javascript
 
@Raynos Well there are quite some Node.js things using it (and only it)
 
Oh, coffeescript is real? I thought that was a joke... lol...
 
4:33 PM
@ircmaxell :). You have to appreciate using it and underscore actaully allows you to treat JS like a functional language. I have yet to get around to dropping all OO and writing functional code.
 
If you want pure functional code...
No, just make it faster again!!!1111
"Programmers must have really bad sex... they are always trying to make things smaller and faster."
 
functional is not intrinsically faster than OO...
 
@ircmaxell its just a different style. Some things are simply faster to develop with a functional style.
 
I like a good mix of all...
 
@Raynos: All other things equal, sure. But there are some things that are faster with OO. There's a place for everything
 
@ircmaxell the main point is I cant write or read functional style code. Map-reduce blocks are unreadable to me. This is something I want to learn
 
ahh
yeah, it's good to know
I thought this was a XKCD... I could be mistaken:
user image
2
0
Q: Splitting and Running a code in PHP

BradI am currently working on a project where people write articles, which are stored in a database. The credit for the article is stored as [USER ID]:Role and then loaded into the page by loading the user information from another table using the USER ID then implementing the role into the credit. F...

1st comment
 
Should I go into the PHP room and shout at @Col ?
 
lol
I doubt it would have any effect...
Wow, google images is fun.
 
4:56 PM
@ircmaxell Are you tracking the Col now ?
 
no, just searched WTF per minute, and some of the results are really odd
I came across that question cause I'm tracking the regex tag looking for 18 more upvotes...
Did I just fall into a cross-dimensional riff and end up back in 1998? The last 4 web pages I went to started playing music and video with no interaction from me. And no obvious pause button.
 
Time to go
 
@ircmaxell hidden iframes
 
bye all
 
later
@Raynos: I know it can be done, but it's annoying as hell. I thought we moved past that as a society (obviously I put too much faith in mankind)
 
5:19 PM
@ircmaxell Oh I've been on those annoying websites that have interactive video adverts. that start on their own. Its so frustrating. Its an effective way of advertising your product but its horrible on the user.
 
it's not effective to me, it's detering
 
@ircmaxell effective in terms of getting their name spread. A lot of this advertising is not direct advertising. Its a lower level subconcious name spreading. Only a small amount of revenue is made from a user seeing an advert and actively purchasing
 
yeah, true
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor
 
The rest is made from just hearing the name. and viral spreading of popularity.
 
Java: ..made by taking an 8-legged dog, housebreaking it, and tearing out its skeleton. Then giving it a machine shop.
.NET: ...made by taking an 8-legged boneless dog and drawing bones on its skin to make people think it's more like a dog.
LISP: ...it's an amoeba. It can grow 8 pseudopods to look more like an octopus if it likes, though.
PERL: ...made by gluing random animals together until something vaguely octopus-shaped crawled away.
 
5:32 PM
lol
 
JavaScript: ...made by taking an 8-legged dog, housebreaking it, converting its legs into pseudopods, and then deciding they ought to be called legs for marketing purposes.
Ruby: ...a new octupus, made with modifiable tentacles. Bones, knees, paws, rollerblades may be added at runtime.
Objective-C: ...made by taping tentacles to a dog. Slightly more octopus like, but a dog with four tentacles is even weirder then an 8-legged dog.
 
@ircmaxell whats wrong with PERL
 
It's executable line noise...
 
:kitten quote
 
> "I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone." - Bjarne Stroustrup
 
5:35 PM
It's the only language that looks the same both before and after RSA encryption...
 
RSA
 
good point
Theory is when you know something, but it doesn't work. Practice is when something works, but you don't know why. Programmers combine theory and practice: Nothing works and they don't know why.
 
Hello All
How are you doing?
 
anyone know about fancybox?
 
The sooner we fall behind, the more time we'll have to catch up <- HA!
 
5:37 PM
0
Q: Fancybox: Binding multiple DIVs that have the same class, but how can I access them individually in the onComplete function?

shogunAs you can see in the onComplete definition I am trying to access the HTML of the specific DIV that is currently being launched, but the bind call is done by class. If I have many DIVs all of the same class it is bound properly, this means that when I click the ".opener" anchor it pops up the pro...

actually probably more of a jquery question, but using fancybox
 
5:52 PM
If you don't have time to do it right, when will you have time to do it over?
 
looks like my question is a duplicate
kinda
 
@IvoWetzel Github is serving that page up as text, so all I'm getting when clicking through that is a bunch of binaries
 
6:07 PM
*can't stand the mentality that it's ever reasonable to suppress an error. *
 
@ircmaxell So you don't like Pokemon Exception Handling?
 
nope
 
Most of the time I just let them bubble up, better to crash the program than trying to rescue something that's broken of course you should make sure to rollback transactions and the like, but in general, if it crashes something's wrong
 
6:30 PM
++
 
6:41 PM
Man I really love inconsistent coding styles
0
Q: node.js retrieve form input values sent by client

hadiS78hi, i can't figure out why i can't retrieve the form input values in node.js sent by a jquery ajax call: here is the client side jQuery code: $('#send-button').click(function(event) { event.preventDefault(); var str = $('#form-contact').serialize(); $.ajax({ type: 'POST', url: "contact", ...

 
Dude, you can upvote comments on deleted questions? weird
0
A: Better way to do this foreach in PHP?

ircmaxellHere's one better way (at least what I would determine to be better): $reportIds = array(); $dataArray = $data['report']->result_array(); foreach($dataArray as $reportElement) { $reportIds[] = $reportElement['id']; } It uses more meaningful variable names (as I'm guessing), and is a li...

 
hurray the daily this question
0
Q: Can I reference other properties during object declaration in JavaScript?

sergI am trying to do something like this: var obj = { a: 5, b: this.a + 1 } (instead of 5 there is a function which I don't want to execute twice that returns a number) I can rewrite it to assign obj.b later from obj.a, but can I do it right away during declaration?

 
7:01 PM
Well, at least I broke even on it and got the check-box even with all of the Col's ramblings:
0
A: Character encoding issues: MySQL 5.0 + PHP 5.2

ircmaxellYou need to execute a few queries to tell it to use UTF-8 for the connection (the default is indeed Latin-1). Here's what I use: SET CHARACTER SET = "utf8"; SET character_set_database = "utf8"; SET character_set_connection = "utf8"; SET character_set_server = "utf8"; I know some of these seem...

 
0
Q: How to prevent Closure Compiler from renaming "true", "false" and "null"

ArmaÄŸan AmcalarGoogle Closure Compiler renames all "true", "false" and "null" occurences in code like; var s = true, x = null, V = false; and uses these shorthands instead; in conditions such as; if (someVariable == s) now; Google Analytics code defines it's own "s" variable; overriding the value "true"; ...

gosh... instead of fixing their code, they blame the compiler! :D
 
7:42 PM
Dammit. I think my phone just bit it again
 
I managed to mistype my password twice when entering. Now I dont know what it is. How do I overwrite it?
 
hahaha
 
@ircmaxell I did the whole try to mistype it once and got it. No clue what "it" is. Never mind I managed to mistype it twice and changed it again. Stupid hidden password fields :\
 
stupid not paying attention to what you're doing is more like it
 
Always great when people unfix there questions...
hahahaha
-2
Q: Javascript parent and child window functions

Mike Thornley<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE>Lab 9-3</TITLE> <SCRIPT LANGUAGE="JavaScript"> <!-- function myFunction(){ myWin = open("","","width=200,height=200"); with(myWin.document){ op...

the OPs comments on raynos answer
> No, it's not homework nor am I a child!. I am a cert student who was taught to raw code in this manner through CIW . I asked for help, not to be patronised. Thought I'd get guidance not a barrage of third party insults. Thanks all the same.
 
7:51 PM
Yay, I think my phone is possessed...
 
@CodingKitten Have you ever possessed a phone?
 
@IvoWetzel nothing, fork Node and ajax ?
 
@CodingKitten Fork yourself...
 
@IvoWetzel I usually just want to accept one, you did give a more interesting
 
the screen is moving on its own...
randomly clicking
 
7:52 PM
hmmmm
 
it already called a friend of mine on its own
 
ghosts or bugs... GHOSTS!
 
I think the touchscreen is dying. It's happened to me twice before (this is the third time)
Both times I got new phones. This is the third one to do it. I have no idea what could be wrong...
 
@IvoWetzel he has the nerve! The nerve to complain
 
Well considering every comment on his answers complains about something
god...
 
7:56 PM
@IvoWetzel I was about to say I wont hire anyone with a CIW certificate because of you but thats a bit too harsh
The internet business associate certificate!
 
   Skills Taught (Refer to course description for more details).

        JavaScript language essentials, including program flow control, form validation, image animation, frame targeting and cookie creation
 
hey that looks like a good thing to add to my resume
 
@Nathan Why not, anyone here should be able to do that "test" in 5 minutes
 
my employer requires me to produce proof of professional certification but they have no idea of what any of it is. I was planning to do the w3schools certs every few months for the next coupla years.
 
ahhhhhh he said the w word
 
7:59 PM
certification is a joke
 
I spent way too much of last year getting a .NET MCPD cert because someone heard ".NET rah rah rah", and it was a pain-- those tests take work!
 
and any manager that requires it is showing you his true colors (that he is just looking to try to cya rather than hire someone who's compitent)
 
I hardly doubt that that CIW JS thing takes any work...
 
I liked the w3schools practice tests, anyway, because in 5 minutes I can pass them :)
Well see, I work for a hospital, not really an IT industry, and it's the hospital HR that wants to see IT people getting ongoing education certificates like nurses have to.
 
> Crockford doesn't pass w3schools tests, w3schools tests fail Crockford.
 
8:01 PM
:D
 
Ahhh, I won't work for IT in a hospital...
 
Crockford hurts w3schools' feelings.
Well, I like living in Fairbanks, Alaska, and the options are a little constrained here.
I did realize through the MCPD hoop-jumping exercise though, that marketing myself to my HR department is important.
At least my pay is not dependent on my SO reputation-- that would really be a rat race.
 
@nathan Clearly you should get paid double if your a 20k+ repper at SO
 
actually this CIW stuff is totally sweet-- I'm pretty sure they have direct-mailed my boss before :)
 
lol
Ummmm
> You can do a soft reset at anytime while your device is on by pressing "Control+Alt+Delete" on your Droid.
I didn't know my phone had a control or an alt button... I guess you learn something new every day...
 
8:10 PM
:D
 
OMG
0
Q: isFinite returns true when variable is undefined

ClutchI'm using isFinite to determine if a key from an array is correct, for (x in selectList) { if (isFinite(x)) { $('#' + selectList[x])[0].selectedIndex = 0; } } I thought this was working correctly but now in Firefox isFinite is returning TRUE when x is undefined. T...

@Raynos Would be great to get paid at all to begin with...
 
@IvoWetzel stop being a bum
 
@IvoWetzel I think we're hiring a wintel admin.
 
@Nathan Sorry, but I'm quite happy with my Window-less world :)
And now I don't sit in a basement >_>
 
is literally in a basement. With the spiders.
 
8:14 PM
@IvoWetzel get a suit. Get a portfolio. Go into companies. Show them why your awesome. get hired.
 
@Raynos I wish it was that easy in stupid germany, fact is I don't even have the money for a suit
 
@IvoWetzel borrow your brothers suit
 
The last thing I bought that wasn't food or something the like, was a Wii game... in May of last year >_>
@Raynos Only got a sister here...
 
@IvoWetzel do you use stackcareers?
 
@IvoWetzel are you really 23?
 
8:17 PM
@Nathan Uh, think so... although at time I wish I'd still be 7 and therefore without all the worries
 
@Ivo 7 was a good age. I have kids aged 9,7 and 5 now and one on the way. Think of how worry-free 23 is!
 
@Nathan and your 23? .. You started too early. No offence
 
@Raynos no, 35
 
@IvoWetzel do you have 3 children aswell?
 
@Raynos I wish I had... taking care of them would be far better way to spent my life than sitting in front of a stupid PC typing stuff all day long...
 
@IvoWetzel, at least you have a kitten.
 
I was thinking of writing a shell script to install some key software that I could use (having reinstall linux 4 times this week). Is it worth bothering, and can I do it in a useful scripting language?
 
@Nathan But only a digital one... my cat died 2 years ago, and @YiJiang broken code isn't a really good replacement for a cat you had for 14 years
@Raynos shellscript? exec sudo apt-get?
start the script, type in your password once, of course you have to remember it first....
 
@Raynos, it is worth bothering, but you might not be able to do it in a "useful" scripting language.
 
You can always use os.system or something the like in Python
 
8:24 PM
@IvoWetzel I'm sorry to hear about your cat.
@Raynos you might try the script command to generate a simple shell script quickly-- see man script.
 
@Raynos Problem with those is, 95% of the job offers there are US
@Nathan Well I'm over it, although she always took some of the loneliness away
 
@IvoWetzel if you want to choose your place (hometown) rather than your job, you may have to compromise on some aspects of the job... story of my life.
 
Yay more bullshit answers
0
Q: Where is the problem in this prototype [ajax.Request] code ?

ebncana function sendM() { new Ajax.Request("sendm.html", { method: 'post', postBody: 'text='+ $F('text') +'&sub='+ $F('subject') +'&sname='+ $F('name') +'&sfmail='+ $F('email') +'to='+ $F('to'), onLoading:showLoad, onComplete: showResponse }); } function showLoad(){ $('dresult')...

@Nathan atm I can't choose anything... even moving for a job is not an option, since I'd first need to do the job in order to have the money for moving etc. >_>
 
@IvoWetzel sounds like the classic bootstrap problem
 
@Nathan Indeed
 
8:39 PM
I hate bad code. Code keeps failing because I insist on having '&' in my drive name
 
@Raynos I hate people who write bad code
 
I'm used to having a div container for my sites, but a few designs have had the background colour of just the top title bar spanning from left to right of the whole screen - what's the best semantic way to do this in html - using html5 ?
should I use an outer container??
 
@Greg would it hurt to make h1 span the whole screen?
h1 is block-level just like div.
 
I'd only use h1 in case the title bar consists of only one line of text
 
I usually make the <body> the container... am I right in thinking that nothing will be able to flow outside the <body> in this case?
 
8:47 PM
@Greg apart from dodgy code :D
 
@Greg that's my understanding of <body>... the only thing outside of it is <head>
 
@IvoWetzel look into out sourced work from home kind of jobs
 
isn't there a site where people post small programming tasks on an auction-like board, and developers bid on them and do them? It would be like SO but for money and rep.
I saw one once but forgot where it was.
 
@Nathan topcoder?
 
looks
 
8:55 PM
0
A: How do I do a "for ...in ...." loop in Javascript?

Kim<script type="text/javascript"> var x; var mycars = new Array(); mycars[0] = "Saab"; mycars[1] = "Volvo"; mycars[2] = "BMW"; for (x in mycars) { document.write(mycars[x] + "<br />"); } </script>

how many wrong things can one put in one answer...
and yes there's already my downvote on it...
 
@Greg I haven't seen that before. It's more contest-like. I thought I saw one that was more auction-oriented; more like eBay for development.
@IvoWetzel it's apparently pasted from w3schools.com/js/js_obj_array.asp
 
hey guys hows it going
 
@Nathan Then we have to call Nick, he should be able to delete that guys account
@Nathan What actually would be great, a w3schools detector
Put all the w3schools stuff into a DB, and then check answers against that :D
In case it matches, your account gets deleted
 
does anyone know, if i add jquery to a site that uses just ordinary javascript, it shouldnt cause a conflit?
 

« first day (82 days earlier)      last day (4851 days later) »