« first day (675 days earlier)      last day (4273 days later) » 

12:00 AM
...seriously?
Well, hah.
 
so everything starts at index.js, and that's it
 
Retrospect, semi-colons and commas.
 
Besides that, my previous point still holds, and calls like these make me flinch a bit
Not because of the querySelector (also because, but that's not the main point), but it does two things: (1)Tightens coupling, thus making tests harder, (2)Breaks abstraction levels (DOM calls are pretty low-level, while the rest is at a higher level)
 
12:22 AM
@cHao did I slip in semicolons? ;_;
@Zirak people tell me my code is unreadable
 
The bot is here, yes!
!!/todo get 3
 
@Troy (1)Improve my item on codecanyone.net because my clients are waiting
 
:D
I did that already, gotta delete it..
!!/todo remove 3
I guess that's how.. :/
 
@Troy Unidentified /todo action remove
 
Hmm
!!/todo delete 3
 
12:24 AM
@Troy Unidentified /todo action delete
 
Arrgh..
@Zirak?
!!/todo drop 3
:/
 
@Troy Unidentified /todo action drop
 
Oh man, I forgot how to do that :/
!!/user Zirak
 
!!/help todo
@Zirak todo: Your personal todo list. get [count] retrieves everything or count items. add items adds items to your todo list (make sure items with spaces are wrapped in quotes) rem items|indices removes items specified by indice or content
 
Oh, okay, thanks.
!!/todo rem 3
 
12:27 AM
@Raynos Because of style, or because it's just bad? If it's the former, tell them to sodomize themselves with a baton. If it's the latter, ask why.
 
Right?
 
@Troy Item(s) removed.
 
Yes.
 
@Zirak I don't know
 
!!/todo get 2
 
12:28 AM
@Troy (1)Improve my item on codecanyone.net because my clients are waiting
 
Uuh? I gotta remove that too :/
!!/todo rem 2
 
@Troy Item(s) removed.
 
!!/todo get 1
 
Just !!/todo or !!/todo get to see everything
@Troy (1)Improve my item on codecanyone.net because my clients are waiting
 
!!/todo
 
12:29 AM
@Troy (1)LOL, (2)Improve my item on codecanyone.net because my clients are waiting
 
!!/help todo
 
@Troy todo: Your personal todo list. get [count] retrieves everything or count items. add items adds items to your todo list (make sure items with spaces are wrapped in quotes) rem items|indices removes items specified by indice or content
 
!!/todo rem 1, 2
 
@Troy 1, does not exist.
 
:D testing.
@Zirak we should be able to delete multiple items.
!!/todo rem 1
 
12:30 AM
@Troy Item(s) removed.
 
!!/todo rem 2
 
@Troy Item(s) removed.
 
!!/die
 
@Troy You do not have permission to use the command die
@Troy You can't? I vaguely remember that you can.
 
No, you can't..
 
12:31 AM
!!/todo get
@Zirak (1)Make /tell argument delegation not suck, (2)Make a last-n-messages cache for a user, don't continuously respond to same, (3)Add Eliza algo, (4)I like cheese, (5)Reminder: Per-user data storage, if using user-specific data becomes widespread
!!/todo rem 1 3
@Zirak Item(s) removed.
!!/todo get
 
Uuh?
 
@Zirak (1)Make a last-n-messages cache for a user, don't continuously respond to same, (2)I like cheese, (3)Reminder: Per-user data storage, if using user-specific data becomes widespread
 
I added a comma between them :P
!!/help
 
Yeah, I need to work on that one...
 
!!/norris
 
12:35 AM
@Troy Don't worry about tests, Chuck Norris's test cases cover your code too.
 
:D
rofl
!!/norris
 
@Troy Noah was the only man notified before Chuck Norris relieved himself in the Atlantic Ocean.
 
?
!!/norris
 
@Troy Chuck Norris' testicles do not produce sperm. They produce tiny white ninjas that recognize only one mission: seek and destroy.
 
:D
 
12:48 AM
@Troy Have you met hangman?
!!/hang
  +---+
  |   |
  |
  |
  |
__+__

----------
 
1:23 AM
@rlemon on the blip thing, I would try thinking in terms of blip's range being its bottom to the bottom of its container. So (blipBottomCoordinate-blipHeight)/(navContainerHeight - blipHeight) is proportional to scrollOffset/(totalContentHeight).
 
@Raynos static/bundle.js is properly semicoloned...the rest, eh :)
 
@cHao bundle.js wasn't written by him, it's generated by browserify, it's a minified file if you prefer.
 
@FlorianMargaine pity. it's the only one with proper punctuation :)
 
you think it's the only proper punctuation
 
@FlorianMargaine because it is. :)
 
1:32 AM
ASI has been long debated here multiple times
I'm not getting there again
 
@rlemon, nah no need for that - blipHeight on the coord:

blipTopCoordinate/(blipContainerHeight-blipHeight) === navScrollOffset/navContainerHeight, so blipTopCoordinate * navContainerHeight === (blipContainerHeight-blipHeight) * navScrollOffset, and more usefully:

blipTopCoordinate = ( (blipContainerHeight-blipHeight) * navScrollOffset ) / navContainerHeight
 
@FlorianMargaine good. cause i'd hate to have to get into that myself
 
alright
docgenerator has themes now
(yeah, 4 rules, it's a default :D)
 
1:50 AM
@FlorianMargaine Sounds like an obnoxious nitpick but Helvetica or arial makes those docs a lot easier to read onscreen.
 
@cHao bundle.js is compiled code
 
23 mins ago, by cHao
@FlorianMargaine pity. it's the only one with proper punctuation :)
 
I don't get why people fuss over semis either way. I add semis more out of habit than anything.
 
2:07 AM
@ErikReppen i fuss about it for several reasons. (1) code with semicolons and code without, look like they were written in two different languages. we really don't need that. (2) it's called "automatic semicolon insertion". ie: the interpreter covering for half-assedness (but only 80% of the time). JS code without proper punctuation is either half-assed, or showoffy "look, i know the rules of ASI" code.
and the latter still can't always get rid of all of them. so what's the point?
 
@cHao I care about three things: 1) The code is legible 2) The code is Efficient 3) The code is easy to modify

ASI-reliance might create a couple bumps in the road for #3 but I don't think those are the kinds of bumps you forget easily once you know how it works. If I could get my coworkers to put a little more effort into writing var names that actually told me something what they were for rather than p_sdrtThgy (p_ tells me a parameter - awesomely helpful) I'd be happy to let them skip the semis.
 
@ErikReppen ASI-reliance actually creates problems with #1 too, unless the writer and reader of the code understand the rules. if they don't, they can easily write or read two statements as one or one statement as two. ie: the code is lying. the interpreter reads something different than what was intended.
 
If you rely on semicolons getting automatically added by the interpreter, you're doing it wrong. Try that in any other language which has semicolon-terminated lines and watch what happens.
Not to mention that you can't properly minify your code if you don't add them...
 
2:30 AM
@cHao, solid point. I did run into confusion due to a combine script recently. It will throw people. I don't think it's terribly dire but yes. @Lusitanian but I'm not writing in any other language. I'm not aware of minify being an issue in more recent tools. Also, btw, I actually do use semis. Just don't see why it would be as much of a JS-internal-dev-holy-war as it is when he have so many server-side tools/practices to hate on first.
 
Is there anyone who knows if it's possible to run commands on a nodejitsu instance? I'd like to connect and execute a command like a wget or something for uploading data to the instance.
 
3:05 AM
@TomShreds ask in #nodejitsu
 
3:27 AM
Hi
 
3:56 AM
posted on July 06, 2012 by Victor Rodriguez

How to analyze Thread Dump - Thread Stack Trace Mozilla’s B2G to be called Firefox OS, will ship in 2013 El nuevo sistema Firefox OS está casi listo y sale en unos 6 meses First iOS Malware Discovered in Apple App Store Encuentran en una bolsa de basura una guía de viaje del siglo XII robada hace un año Linux Played a Crucial Role in Discovery of 'Higgs boson' The Scale of the Universe

posted on July 09, 2012 by Victor Rodriguez

En el Día de la Independencia de Argentina nadie te puede decir que comer locro no es lo que se debe hacer. Puede ser poco original pero no deja de conmemorar la fecha y ser sabroso. Eso, es que sea algo rico, bien rico !!! El locro no es una comida difícil de hacer, no es dietética ni tampoco apta para vegetarianos pero si es muy rica y lleva bastante tiempo hacerla (má

posted on July 09, 2012 by Victor Rodriguez

Especial Día de la Independencia Argentina Declaración de independencia de la Argentina Brutal honestidad de presidente de Uruguay Presentan herramientas para celulares que ayudan a transitar la ciudad Y algunas otras cosas no tan patrias Chrysalis (movie) : Paris, 2025: A tough cop haunted by a murder he could not stop. A young woman scarred by a dark secret from her past. A hunt

posted on July 11, 2012 by Victor Rodriguez

java - How does the String class override the + operator? The Higgs Boson, Part I The Higgs Boson, Part II: What is Mass? The worm that feels at home in space Controlling Linux using an Android phone - Droidmote on MK802 with Lubuntu

posted on July 12, 2012 by Victor Rodriguez

Observing the Earth - Europe clears the air The 186 MPH Superbus Just Keeps Chasing Pavements Descubren una quinta luna en Plutón La primera foto de la Web cumplió 20 años Climate was HOTTER in Roman, medieval times than now

posted on July 13, 2012 by Victor Rodriguez

Weekend Projects - Bottle Radio Web exploit figures out what OS victim is using, customizes payload El bosón que mueve multitudes Dragon Rocket Orbital Stage ScienceCasts: Visit To Pluto

posted on July 19, 2012 by Victor Rodriguez

Contra las cadenas (en contra del abuso de la cadena nacional) Freno a un proyecto minero Plan chapa y pintura para los trenes Laser Settings for Engraving Hot Dogs XRobots - Iron Man Arc Reactor prop made from dollar store parts XRobots.co.uk - Iron Man MkVI Armour How-To: Get Started with the BeagleBone Honda Introduces HondaLink™ Honda Fit EV

posted on July 23, 2012 by Victor Rodriguez

NASA: Forest Recovering From Mt St Helens Eruption The Earth as You've Never Seen it Before: Atmosphere, Airglow and Aurora Star Wars Fans Restore Luke Skywalker's Igloo-Shaped Home in Tunisia!

posted on July 27, 2012 by Victor Rodriguez

Star Trek …ROCKS! [Rock Cover] Closed for Business - Matt Gemmell Weekend Projects - Infrared String Bass Higgs Boson Part III: How to Discover a Particle

posted on July 27, 2012 by Victor Rodriguez

Khan Academy: The hype and the reality Black Hat hacker gains access to 4 million hotel rooms with Arduino microcontroller New reality series: ‘Be the Next Microsoft Employee’

posted on July 31, 2012 by Victor Rodriguez

Revelan que la bandera de EE.UU. aún sigue en pie en la Luna NASA's first new spacesuit in 20 years is its own airlock James Bond escolta a la Reina hasta los juegos Olímpicos Curiosity’s Grand Entrance with Star Trek’s William Shatner and Wil Wheaton Peter Jackson Announces Third Hobbit Movie

posted on August 01, 2012 by Victor Rodriguez

Millonario premio a un físico argentino Expectativa por el inicio de la gran restauración del Coliseo Commodore 64: El dinosaurio de las computadoras personales cumple 30 años

posted on August 02, 2012 by Victor Rodriguez

The Speed of Sound Is Too Slow for Olympic Athletes Entangled Particles Break Classical Law of Thermodynamics, Say Physicists

posted on August 03, 2012 by Victor Rodriguez

Curiosity Rover Special Edition How to Experience the Curiosity Rover’s Mars Landing Online NASA Live Stream Google+ Hangout - Mars Curiosity Landing with SETI Institute NASA Be A Martian Mars Science Laboratory, the Next Mars Rover

posted on August 04, 2012 by Victor Rodriguez

Mozilla To Shaft Thunderbird Next Week How software-defined radio could revolutionize wireless Dark Matter Filaments Bind Galaxies Together From tech to toilet paper, Berliner tries to live completely open source for one year Giving Ancient Life Another Chance to Evolve How to Install My Unity Configuration Tool on Ubuntu 11.10 Using an 8-bit computer from 1982 for professional audio effects:

posted on August 05, 2012 by Victor Rodriguez

Fun with Math!: adding math formula to Blogger US missile defense staff told to stop watching porn RIM CEO Thorsten Heins interview: RIM considered Android switch

posted on August 06, 2012 by Victor Rodriguez

Special Mars Curiosity Rover edition We've arrived to Mars (again) with more brain and muscle ! Watch Live! Virtual Landing Party for the Curiosity Lander NASA Lands Car-Size Rover Beside Martian Mountain NASA rover Curiosity makes historic Mars landing, beams back photos Curiosity rover scores touchdown on Mars Mars Rover Landing (lot of links)

posted on August 07, 2012 by Victor Rodriguez

Adiós al padre de un ícono: el alfajor Capitán del Espacio Hay que pasar el invierno (comidas para consumir en la estación fría) 8 ways to share your git repository NASA's Curiosity Rover Caught in the Act of Landing Curiosity’s Dramatic MARDI Descent Movie

posted on August 08, 2012 by Victor Rodriguez

Rover, Sky Crane, Heat Shield and Parachute Located from Orbit by HiRISE Curiosity Beams 1st Color Image from Mars New Github notifications system How MIT Students Won $8 Million in Massachusetts Lottery NASA - Curiosity's New Home

posted on August 09, 2012 by Victor Rodriguez

Curiosity raises Mast and snaps 1st Self Portrait and 1st 360 Panorama Ironic Science Reality: Flying Saucers on Mars from Earth Weekend Projects - A Touchless 3D Tracking Interface Debian Now Defaults To Xfce Desktop

posted on August 10, 2012 by Victor Rodriguez

Hepatitis C Can Now Be Totally Cured By Newly Discovered Nanoparticle Demand for water outstrips supply Nuclear waste issues freeze permits for U.S. power plants Software Runs the World: How Scared Should We Be That So Much of It Is So Bad?

posted on August 13, 2012 by Victor Rodriguez

LEGO MOC-0271 Mars Science Laboratory Curiosity Rover Rootbeer GPU Compiler Lets Almost Any Java Code Run On the GPU UCLA scientist discovers plate tectonics on Mars Wall Street and the Mismanagement of Software Google's Self-Driving Cars: 300,000 Miles Logged, Not a Single Accident Under Computer Control NASA upgrades Mars Curiosity software ... from 350M miles away

posted on August 15, 2012 by Victor Rodriguez

Han Solo Frozen in Carbonite Guitar Motor Mashup Master The Mystery of the Encrypted Gauss Payload Could you hack into Mars rover Curiosity? TrapWire Spy Network Used By UK Government And Police, Says Wikileaks Plant tech turns your ficus into a remote control

posted on August 17, 2012 by Victor Rodriguez

Listo. Ya está. Publiqué mi último módulo de Perl. Basta para mi. Hace ya un tempo que venía teninedo esta sensación entre un poco cansado de ciertas cosas un tanto molestas sobre Perl y yendo hacia ningún lado. Para comenzar con algo hace no había un IDE decente para Perl, y con decente digo que se pueda hacer debugging visual, que tenga refactor, autocomplete, syntax higlighting, bús

posted on August 18, 2012 by Victor Rodriguez

1,000,000,000,000 Frames/Second Photography We're NASA and We Know It (Mars Curiosity) Captain Kirk’s Future Small-Town Beginnings Marcha Peronista 8-bit ScienceCasts: Where Will Curiosity Go First? NASA Had No Idea How To Save Apollo 13, But An MIT Student Reportedly Did

 
4:42 AM
@Raynos nice thanks
 
4:53 AM
github pages doesn't exists anymore when creating a gh-pages branch ?
 
5:23 AM
0
Q: Selected Date Value from datetime picker!

MgMgMMI want to ask the some questions form javascript.Firstly, how can i get the selected date value when i selecte one date from datetime picker in javascript. Secondly, how can i pass these selected date value from one jsp page to other jsp page? Best Regards, MgMg

 
 
1 hour later…
6:41 AM
Can any one give a solution on how to show a timepicker. I am developing an application using HTML5 CSS3 Phonegap 1.3 and Jquery
 
Waddup guys, happy tuesday :)
 
@PatilSagar u want design???
 
@PatilSagar: There are many ways to implement a timepicker. It depends whether you want to pick only a time, a date or both, and whether you want to enable string based input (`<input type="time">` or something similar) or use a graphical representation.
See also http://stackoverflow.com/q/1155820/1139697
 
6:57 AM
@Zeta Danm you are 2 kind zeta ;)
 
G'mornin errrrrbody o/
 
@zeta i am developing a mobile application.
 
@Anzeo morning
 
user1125394
7:48 AM
Hi people, is JSON.stringify the JS equivalenrt os json_encode, it seems the encoding is not done the same
json_encode(array("text"=>"tereško")) gives {"text":"tere\u0161ko"}
JSON.stringify({'text':'tereško'}) gives {"text":"tereško"}
JSON.stringify({'text':encodeURIComponent('tereško')}) gives {"text":"tere%C5%A1ko"}
can't get the equivalent behaviour
 
user1125394
(php's json_encode)
 
user1125394
right gonna ask a SO question
 
stringify will not encode your values
 
user1125394
How cold I encode it like php, 'cause I'm posting using JS, and reading using Php
 
when you use the encodeURIcomponent, does it work?
 
user1125394
7:54 AM
I don't think url_decode('tere%C5%A1ko') would work
 
have you tried it?
I assume you are using jQuery?
cause it will do all those things for you
if you make use of the $.ajax functions
 
user1125394
json_decode('tere%C5%A1ko') works !
 
user1125394
@anzheo
 
user1125394
yes the thing is
 
user1125394
$.post('Publish', {
application: "rggr",
text: "tereško"
}, function(res) {
console.log(res);
});
 
user1125394
8:02 AM
is not written in database (Cassandra)
 
user1125394
I need to encode it
 
user1125394
tereško for example
 
Sam
When you say encode, I thought that meant special characters, such as "% or ? or $ or space"? What characters are you actually trying to encode?
Why can't I edit my last message....
 
user1125394
you are right I don't want to encode them, what is the JS function to encode only specials?
 
Sam
You would use encodeURIComponent, see here -> jsfiddle.net/t3Ub3
 
user1125394
8:19 AM
yes but I mean this is UTF8's and they don't cause problems in DB, I canstore them like that
 
Sam
So your having trouble storing the strings in the DB?
 
user1125394
yep Cassandra know it?
 
Sam
Let me just get this straight so I can help more.

1. You get a string from the webpage.
2. You encode this string using encodeURIComponent.
3. It is sent off to a PHP page.
4. The PHP page performs some validation.
5. PHP page stores this string in a database.

On what stage does the problem occur?
@cyril ...
 
0
Q: Relevance of Metro to ASP.Net developer?

JediMindedI am a web developer, working mostly with ASP.Net(webforms + MVC), C#, javascript and so on. As you know, continuous learning is very important for us, but time is not infinite. I do dabble with the odd technology every now and then that has nothing to do with web but mostly I try to learn more...

 
8:47 AM
Hey guys, anyone mind telling me how to debug through js with firebug? :)
 
Sam
@AndersMetnik You would use the console tab
If there is any JS errors they would appear there
 
o/
 
Yeah thanks, but I meant with breakpoints etc :)
 
Sam
@AndersMetnik Ah apologies, I think there is still a way, Ill have a quick look at mine (Firebug on Chrome)
 
lol @Zirak for that comment about publishing :P
 
Sam
8:52 AM
@AndersMetnik I can add breakpoints on my version of firebug in the sources tab
Oh OO JavaScript, why are you so hard to learn...
 
IT'S A LIE
IT'S ALL A LIE
EVERYTHING IS OO JS BECAUSE JS IS A (nearly) PURE OO LANGUAGE
IT IS TOO LATE THE (fake) PROTOTYPE CANNOT HOLD
 
Sam
@Zirak :P
Im trying to get my head around it and its not going in lol
 
Ḁ̵ͬ̔̃͌̀N̛̞̪̹̥̦̳͈͊̇̔̄͊ͪͅD̴̥̬͍̱̝̠͚̬̙̂̐̕͢ ̧̹̖̱̹ͯ͗ͦ͐͆F̸̵̠̦͈̹̬̝ͧ̅ͦ̾̉̏̓̔R̗̫̩͉̲͇̖͂̌ͧ̊̆Õ̱̳͍͊M͈̰̞͇̑̄ͯͮͬ͛̀͝͡ ͮ҉͙͙̣Y̯͙ͤ͊ͤ͂̈́͗͋̎̕O̸̢̜͌ͣ̊͆̃͗ͬU̵̡̢͙̣̮͈̥̼̽̈́ͫͤ̊̾ͫ̿R̳͈̦̣͆͒́͢ ̶͈̲̟̄ͦ̚Fͪͭ͏̢͙̠͍̤̺Ã̙̫̫̱͒ͬ͆̑̍ͭ̊̈́K̵̠͋̀̓ͬ͋̃̇̚͢Eͦ͐̃ͨ͢҉̣̤̺̗̱͈͈̗̲ ̛̞͈̳ͨ̒͐͑͠P̵͚̳̙̻̲͉̮͗̄̋R̷̠̠̘͕͑̉͂ͦ̄Ơ͊̽̉̓͊̾͂͛͠҉̼͍̦͔̭͉̫̭Ṱ̵̻̖͈̇O̧̬̦̊̇͆Tͤ̎̏̍ͫ͂ͣ́͏̠̼̱͈̮͖̬͡Y̪̦͉͋͐͂̄̿ͣ̓͠P̻̞̦ͮͬ͟Ę̶͙̭̗̫̼͇̾̋S̯͙̿ͫ ̛̫͙͓͎̻̄̅̋͊̽͊̄͢ͅE̍̊͊̂̀̂́҉̖͎̙̟̫͚̟͘V͉̈ͦIͤͨͫ͏̶͎̩͙L͌̈́ͭ̀́ͯͯ͆͠҉̰̗̞̥ ̷̻̣̈̂ͯŚ̖̯͍̬̻͚ͫͥP͕̠̦̂̋ͧA̱̥̓̅ͮ̍̓̈̈ͨ͜W̧͓̭̜͗̇N̪̼͔̯͍͇͈̱̂ͪͯ͆S̙̰̩̣̿͗̌͋̇͞
̶̥̣̥̞̣ͫ͊͂̌̏̂̚͘M̸̜̞̱͐ͣȂ̟̥͔͍̯ͫͭ̂͠D̢͈̜̑̇ͦ̕͟Ẹ͎̭ͧͯ̽̋̈́̄̓̓͋́͜ ̩̠̞͙̣͕̠̮̀́̇̔͂̊ͦ͡B̽͆̚͏̫̬̫̞Y̸̛͍͈̒̐ͮ̀ ̮͈̝̥̳̈͗ͬ̃̅̅͂̅̑H͉ͧͬ͂͜͞Ą̈́̈́͒̅̓ͩ̚͘҉̙̙̤̜̰̥̻R
 
@Sam hehe well why is it? ;)
 
Here's OO javascript:
var obj = {};
...and that's it.
 
8:58 AM
Haha
 
You can also do this: var arr = [] or var func = function () {}. They're all objects. You know what, as a treat, I'll throw you this one more thing: var regex = /blah/
 
you spend way too much time raging in chat
 
Sam
At the moment I would setup a namespace with functions inside. Say:

var frog = {
id = "Foo",
blah = function(){}
}

And im learning how to use classes, like var frogable = new frog;
 
Yes, because everyone is all so wrong!
 
@Zirak the most basic way of running a script on page load == ? :)
 
8:59 AM
@Sam Stop the lies. You do not (should not) construct classes in js.
js is a prototype based language; not a class based language. From objects you make objects. There are no classes.
new is an abomination for the java minded
 
Sam
@Zirak I had a technical test for a job, and it required using classes
 
func.prototype isn't the real prototype; func.__proto__ is
 
Sam
@Zirak I failed, so now im learning classes :)
 
@Sam Then they've got it wrong as well.
Tell them to sodomize themselves with a baton and learn proper javascript.
 
Sam
@Zirak Unfortunately they are the ones with the jobs + money
 
9:01 AM
@Zirak has a point
 
pfft, and what do you want, purity of thought, or money?
 
I SAID ONE
@Sam can you get your money back from those classes?
 
@Zirak MONEY!
 
Sam
@Zirak Money ;)
@Anzeo I can if I add a return money function ;)
 
Humanity is doomed
 
9:03 AM
            window.onload(showValidateStyleResults('<%=request.getParameter("id")%>'));
doesn't work why? :/
 
Because you're calling the onload function, which may or may not exist
 
Sam
@Zirak No money == No life
 
@AndersMetnik I think it's because JS is OO now apparantly
 
If you want to assign something to be called onload, window.onload = function () {....} or window.addEventListener('load', function () { ... })
 
@Zirak Is there anything that will work?
 
9:04 AM
@Sam That's a lie. Capitalism isn't the only way of life.
 
Sam
@Zirak It is in England
 
Stop lying! To yourself and everyone! You live in a swamp full of lies, slowly drowning, suffocating from your own past and seeing a bleaker and bleaker future! Only to be silently coerced with more sweet, honey-coated lies! Why can't you feel yourself sink? Why do you force yourself into the linearity of society?
 
Sam
Am I in the philosophical chat? Haha
 
Your just in a chat with Zirak :)
2
 
By the time you realize what shit you're in, you're 80 with lung cancer and have only a past to look at, so as you slowly fade away into the ether of death, you realize how shitty your life has been, how in looking at the future, you never lived in the present. Maybe then you'll have 4 seconds of clarity, a peace-mindedness where you truly, truly don't give a fuck. But by then, you're dead.
 
9:08 AM
@Zirak
window.addEventListener('load', function () { showValidateStyleResults('<%=request.getParameter("id")%>') });

Doesn't work either :-/
 
Sam
@AndersMetnik Why not just use a hosted jQuery and use document ready?
 
@Sam STOP PROPAGATING MINDLESSNESS
AAAGGGHHH
 
Because not using jquery :)
 
@AndersMetnik It might not be the event-adding part...any errors?
 
Sam
@AndersMetnik You could always try adding the event inline, although I never do this myself.

<body onload="init()">

function init()
{
alert("page loaded");
}
 
9:11 AM
@Zirak woops yeah :/
 
@AndersMetnik http://tinkerbin.com/SjVAyiVB that's that, then
 
@Zirak hugs
 
knifes in the gut
 
var twitterBird = new Image();
if( b.dissolved == false ) {
context.moveTo(b.x,b.y);

twitterBird.src = "waveexample_files/character.png";
context.drawImage(twitterBird, WIDTH/2,b.y-230, 270, 270);
//context.arc(b.x,b.y,b.currentSize,0,Math.PI*2,true);
document.body.addEventListener("click",function(){

});
}
 
user1125394
@Sam, ok thx you're right again, I was lazy but i can encode it on the fly in some php
 
Sam
9:13 AM
@cyril No problem mate, good luck
 
within the function ,how to take the Id for this above code
Pls help me
 
Sam
@Ritesh Can you show us the problem?
 
ok
 
Also, for properly showing code, press Ctrk+K before sending the message.
!!/beautify 5017970
var twitterBird = new Image();
if (b.dissolved == false) {
    context.moveTo(b.x, b.y);
    twitterBird.src = "waveexample_files/character.png";
    context.drawImage(twitterBird, WIDTH / 2, b.y - 230, 270, 270); //context.arc(b.x,b.y,b.currentSize,0,Math.PI*2,true);  document.body.addEventListener("click",function(){    });  }
Close enough
 
document.body.addEventListener("click",function(){ }); }
this code takes the click function to whole body,but i need to take for specific image as click event
@Zirak
 
9:19 AM
If they're in the same scope, then there isn't a problem.
 
Sam
@Ritesh Try this -> jsfiddle.net/L7btQ . You need to get the element by ID and then attach the event handler
 
:)
they rather fire 45 employees than cutting the wage of the management, that's the way to go!
 
@sam var twitterBird = new Image();
if( b.dissolved == false ) {
context.moveTo(b.x,b.y);

twitterBird.src = "waveexample_files/character.png";
context.drawImage(twitterBird, WIDTH/2,b.y-230, 270, 270);
//context.arc(b.x,b.y,b.currentSize,0,Math.PI*2,true);
document.body.addEventListener("click",function(){

});
}
within this function ,can we call id?
 
What do you mean "call id"?
 
id:;
 
9:26 AM
...what?
okay, it's a "can" question, so try it and see. If you can, you can. If you can't, you can't.
 
1
Q: How to get < span > value?

suannaiThere are a piece of code,but can not use <id> tag. So,how do I get to the <span> 1 2 3 4? <div id="test"> <span>1</span> <span>2</span> <span>3</span> <span>4</span> <div>

downvote everything...
 
Anyone play Fable? About to finish ME 3 (ME 2 was better, in gameplay terms; ME 1 was best in storyline. but all 3 recommended as play-and-forget games), and in desperate need of something awesome.
 
Sam
Empire Earth 2, best game ever
 
0
Q: addClass to a href link acccoring to the location.href using jquery

NickPIs there a way to have the following code written more efficiently? Please note that this section of navigation is part of a CMS and is set to hidden hence you won't see it expanded. I have the following code that works i.e re writes the nav items and adds a class of current according to the loc...

i'm too lazy to find a dupe, so i picked too localized (which it is anyways)
 
eh, not in the mood for an involved strategy game.
Already played the ass off Kingdoms of Amaleur (highly recommended, best thing I've played in years.) Crawlers and shooter games preferred (the latter will be made better with the existence of a sniper-rifle)
 
9:42 AM
if Amalur is the best thing you've played in years, I doubt you've played Uncharted
 
Full name and social security number?
oh hah, that's the full name.
 
huhwha?
 
On the empirical scale of iso size, I'll try Fable: The Lost Chapters first. But thanks, I'll remember Uncharted
 
where are the us-citizens in here?
 
hi
@GNi33 i live in the US, lol
@Zirak if you want more games to add to the list, little big planet 1 and 2 are fantastic
definitely not as violent or gritty (in fact, it's rather childish) but it's a very refreshing drift
 
9:51 AM
my constant facepalm about todd akin is interfering with my productivity at work, how do you guys handle that over there?
 
dude, i'm 15
i couldn't care less about who's running for missouri's seats in the senate...
:P
 
@Purmou Noted
 
Sam
I have a question for you all. When you are looking for a new job and they ask you for your current salary, what do you tell them?
 
even i care. idiots like that should be locked away, not running for political positions
 
My mother's maiden name
Or, you know, my current salary
Whichever
 
9:53 AM
@Sam My hourly rate for freelance web design is $35
i made the mistake of saying that during a little interview for a part-time web design job
 
Sam
I was going to tell them a salary range, because I dont want the recruiter to have an upper hand in salary negotiations
 
well it all depends on what kind of work you'll be doing
my mentor told me that he charges upwards of $120 for jobs that involve consulting
 
Sam
@Purmou It would be a permanent full time salaried job
 
though, he's a software engineer at JPL, with software running on the rover as we speak
then obviously on the lower end
 
But why are they asking for your current salary? I'm pretty sure you can refrain from telling them.
 
9:55 AM
@Zirak sure you can, it's your liberty to, but I'm not sure how people would respond to that
 
Sam
@Zirak Recruitment companies seem to ask as one of their first questions
 
seriously
the most important thing in anything related to recruitement is to be honest
 
Sam
I was going to say something like "My salary is private between myself and my previous employer, but I am interested to hear the offered salary"
 
if they ask your current salary, give them
 
eh, that sounds disrepsectful
 
9:58 AM
if they base off your next salary on this one, tell the gazillion reasons why it's wrong
if you have some, of course.
if you don't have any reason, you deserve your current salary
 
Sam
@FlorianMargaine Would being underpaid in comparison to similar developers count as a reason?
 
If you think you deserve more, then demand more.
 
well, i'd love to learn how to ask for more money, but i'll be heading out
good luck with the job, @Sam :)
 
Sam
@Purmou Thanks :) Enjoy the rest of your day
 
oh hey!
can someone upvote a good answer of mine?
 
10:04 AM
@Sam define "similar developers"
 
var twitterBird = new Image();
if (b.dissolved == false) {
context.moveTo(b.x, b.y);
twitterBird.src = "waveexample_files/character.png";
context.drawImage(twitterBird, WIDTH / 2, b.y - 230, 270, 270); //context.arc(b.x,b.y,b.currentSize,0,Math.PI*2,true); document.body.addEventListener("click",function(){ }); }
here in this code we used document.body.addEventListener.But the problem i need for particular position for click event .Pls help me
 
it depends on the market, see what the salaries are for your level of education and experience
 
i've been stuck at 4,995 for a week now
 
Sam
@FlorianMargaine Similar years of experience, similar coding ability, similar education. I guess I could do some more research into salary.
 
see the offers on the market, look at monster.com or stuff
 
10:05 AM
@Zirak can we do like this
var touchPos = stage.getTouchPosition();
var x = touchPos.x - 190;
var y = touchPos.y - 40;
 
@Ritesh can you use jquery? they do all the cross-browser handling for you...saves you a lot of stress
 
Sam
@FlorianMargaine I have 2 interviews in a couple of days that pay double my current salary ( I passed a technical test & phone interview for both). I'm concerned they may ask the recruiters what my current salary is, and reduce the offer.
 
chance for you, you have 2 interviews
you can tell the other propose the salary they originally offered
if they really want to cut down the salary
 
Sam
@FlorianMargaine Good point
 
http://hakim.se/experiments/html5/wave/03/ .See this link I want to click on this bubbol
@Purmou
 
10:10 AM
did you make that? i see no problem with it.
but anyways, i've gotta go
bye!
 
hahaha
hakim.se isn't him
 
hakim.se/experiments/html5/… .See this link I want to click on this bubbol
@Sam
 
Sam
@Ritesh What bubble? There is many bubbles
 
Hi does anyone know of a good lightbox - The caption is going to be html so ideally I would like the alt tag to be one thing and the caption maybe in another element
 
Sam
@RichardHousham I use colorbox, jacklmoore.com/colorbox
 
10:17 AM
Thanks - I'll have a look
does it allow for a group of photos - with next/prev?
Looks like it - this might be a winner - cheers!
 
@Sam its not div ,its purely canvas
 
Sam
@Ritesh Ive never used canvas, someone else may be able to help though
 
10:35 AM
0
Q: JQuery Promise Interface for a (very) simple JSON Parser

CrimsonChinI have written a parser function that returns a JQuery Promise. You can see from the code that this is the top level parser and it delegates out to two other more specific parsers. At the minute it feels a little scattered about with the promise being rejected and resolved all over the place. ...

 
@Ritesh you didn't ask a question, did you?
 
10:53 AM
var twitterBird = new Image();
if (b.dissolved == false) {
context.moveTo(b.x, b.y);
twitterBird.src = "waveexample_files/character.png";
context.drawImage(twitterBird, WIDTH / 2, b.y - 230, 270, 270); //context.arc(b.x,b.y,b.currentSize,0,Math.PI*2,true); document.body.addEventListener("click",function(){ }); }
here in this code we used document.body.addEventListener.But the problem i need for particular position for click event .Pls help me
@GNi33
 
you could attach the event-listener to a specific element rather than the body
 
But its canvas html5
 
yeah
 
if i give document.body........ it clicks the whole body event.but i need to click the particular position within the body
whether we can reduce the size of click event?
 
the canvas is taking the whole size of the body?
 
10:58 AM
yes ,width=1024px , height=768px
 
allllright
docgenerator now supports custom themes
...I should make some doc for docgenerator
eating my own dog food /o/
 
@Ritesh have a look at this link -> ibm.com/developerworks/library/wa-games/index.html
bounding box of the element + mouse coordinates relative to the canvas, it's explained pretty good in there
 

« first day (675 days earlier)      last day (4273 days later) »