« first day (525 days earlier)      last day (4437 days later) » 

6:00 AM
bah, i'm clearly sleepy, I botched my second to last message. s/syntax and semantics of/syntax and semantics of javascript to use/
 
Dont mind @OctavianDamiean and @andrewjackson I am taking you guys as my mentor so it would be nice if you guys tell me what to do and what not to do, hope you guys wont guide me wrong as other ones do.
 
I already told you yesterday.
 
@OctavianDamiean what exactly it was.. I just remember Oh boy thing of yours! :D
And let me tell you a brief about me if you guys interested to know..?
 
head scratch. They're giving good advice. 1. learn javascript the language 2. learn some basic DOM access (not everything, necessarily, just enough to get by for a few things, mostly its probably learn where to look things up. 3. learn jQuery and see how that can simplify things.
 
jQuery is pretty bad when we get down to it. the way *you* would select and element by id is with $('#someid')... that's slow, especially if you need to do it in a loop... the way @JayC would probably do it is with $(document.getElementById('someid'))... the way I would do it is:
var jobj = new jQuery.fn.init();
jobj[0] = document.getElementById('someid');
jobj.length = 1;
but you're a *long* ways from that
 
6:04 AM
yesterday, by Octavian Damiean
@Ahmetağa We have an awesome tag wiki for with lots of information.
 
@OctavianDamiean That's nice I just read the description last day, and today I found some more information when I clicked on learn more..
@andrewjackson That long way will be so near one day
 
That is what the tag wiki link was for ...
 
I am a photoshop guy now a days headed to Html and css.
 
don't ever let anyone tell you good code comes from simplifying and readability... although your code should be somewhat readable, that's all in the formatting... good code comes from performance. don't ever let anyone convince you otherwise. this is pretty controversial, so they will try to convince you. but as your mentor, I say it's all about performance.
 
andrewjackson: wtf?
 
6:09 AM
you heard me
 
Yes sir
 
no it doesn't. code is meant to be read by programmers
 
and that can be achieved with formatting, like I said
 
> & I am wana be a programmer
 
6:10 AM
if i want performance, I wouldn't be using javascript.
 
right, because you're going to use flash for performance???
or is it good ol' VBScript in IE6?
 
performance where?
 
Flash is dead, should be used for animation only I guess
 
Don't start optimizing stuff prematurely ... just write code that you and others can read. If you notice performance issues after your program is done start optimizing.
 
performance in the web application
 
6:12 AM
Please mention names in reply I am getting confuse, getting who's who thing
 
@OctavianDamiean yes, never optimize prematurely... that should just be common sense
 
in some circumstances Silverlight/Flash/other plugins would far exceed the performance of any javascript application. It's all circumstantial, though.
 
In essence I'm trying to say that readable code is important, especially when you are a beginner.
 
you should start learning Javascript under the performance methodology, instead of "pretty code, spaces, and comments everywhere"
 
@OctavianDamiean Copy that sir
 
6:14 AM
Comments and spaces have nothing to do with performance.
 
what did I just say?
 
what did you just say?
 
what did you both just say :o
 
"you should start learning Javascript under the performance methodology, instead of 'pretty code, spaces, and comments everywhere'" <= that's what you said, and that has nothing to do with performance... again, wtf?
 
well I could have sworn I just said "pretty code, spaces, and comments everywhere are for noobs and wannabe experts that follow coding trends, because everyone says to do it."
 
6:15 AM
Javascript is not something which can be learnt in an hour! :[
 
@JayC what does "instead of" mean anyways?
 
Also, there is a good book you should probably read. JavaScript: The Good Parts by Douglas Crockford
I don't agree with everything he says but it is good book to get an idea of the good and bad parts.
 
Right now I started this eloquentjavascript.net/contents.html
 
yes, Douglas Crock'of-shit'ford is good for the absolute beginners, but don't let him give you any bad habits
"Crock'of-shit'ford" might be a little harsh, but he I still says he preaches some bad habits too.
 
@OctavianDamiean I got this PDF eleventyone.done.hu/… saved to desktop
 
6:20 AM
Yea, no I don't care. I'm not a fan of pirated books.
You should also delete that link.
 
imo the argument "Javascript isn't meant for you to have to constantly optimize your code" should mean that Javascript should just always be optimized, but it's not. no language is "just optimized". a language with room for optimization is all the more reason for optimization.
 
@OctavianDamiean Its too late :(
 
anyways, enough with that controversial subject... I'm sure if you just learn the language, you'll eventually learn the best practices on your own... if you're intelligent in the least.
 
im having some trouble parsing json from a php ajax.php file , it sends a echo $string as a response , when i get the data from jquery's .get method it doesnt parse giving "Error: JSON.parse: unexpected character"
Server side : echo "{'success':'1','username':'someuser'}";
JS:
$.get("ajax.php,{},function(data) { JSON.parse(data); // error });
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaruhhhg
 
6:24 AM
I think I'm just too conservative. lol
 
people need to learn JSON, too.
do you see strings starting with single quotes? I don't think so.
 
that's valid JSON...
 
Indeed, it is.
 
{'foo':'bar'} is NOT valid JSON
 
ya it is lol
 
6:25 AM
that's valid javscript, NOT JSON
 
that J thing kills
Java
Java Script
JQuery
Json
Jfather
Jmother :D
 
@JayC i tried it without quotes too
 
JSON.parse({'foo':'bar'})
SyntaxError: Unexpected token o
that's what my Chrome console gives
 
it says on that site as an option "string : value"
 
"string": "value"
 
6:27 AM
does string not mean wrapped int quotes?
 
double quotes.
 
Oh, he is inside of PHP ...
 
i mentioned that earlier , im on php echoing the string out in ajax.php as a response to the request
 
errg, my examples horrible
dumfuck (me)
 
first of all JSON.parse("{'foo':'bar'}")
 
6:29 AM
JSON.parse("{'foo':'bar'}")
SyntaxError: Unexpected token '
that's what happens
 
second of all, I can't get it to work not matter what I use
 
Right, if you are not using that object from within JavaScript code it is not valid.
 
JSON.parse('{"foo":"bar"}')
Object <= yay an object.
 
That is if you try to parse it.
 
well whatever, JSON.parse is stupid anyways
lol
 
6:30 AM
its native code in most browsers.
modern ones, anyway.
 
I'm pretty sure it was standardized otherwise, I'm probably wrong tho
 
I gave you the standard link :-D
 
didn't w3 standardize it?
 
idk, JSON is stupid
 
6:32 AM
@andrewjackson Orly? What do you use? XML?
 
well, I guess it's better this way, actually...
 
well.... yeah... (fine, I'm wrong, I should be linking to w3 consortium, blah blah blah).... the guy behind json.org was behind the standardization....
 
it's allows for micro-optimization, so if you agree with it, then you kinda have to agree with my position on optimization =D
@anonymouslyanonymous you know of json_encode() right?
 
i got it working in php like this:
$arr = array("name1"=>"val1","name2"=>"val2");
echo json_encode($arr);
@andrewjackson yeah
 
@anonymouslyanonymous change to: echo '{"success":"1","username":"someuser"}';
since you didn't read the entire conversation that just took place in front of you ;)
 
6:37 AM
@andrewjackson yeah that works too :D thanks!
 
@JayC honestly, I had no idea it required double quotes =S
well, honestly or more like obviously
but I'm kinda glad it's like that, when I think about it
this provides a full, stripped to the bone, exceptionless and conditionless maximum optimized method to fetch pure data
 
glad to have been of service. i need sleep.
 
ya me too.... night
 
 
2 hours later…
8:29 AM
hello
 
9:03 AM
Make my answer better:
!!/get answer
0
A: How does javascript look up a member of an object through its prototype chain?

ZirakIt's because you called MyClass1.prototype=new MyClass2(); after creating an instance of MyClass1. var MyClass1=function(){ this.key1="value1"; }; var MyClass2=function(){ this.key2="value2"; }; MyClass1.prototype=new MyClass2(); var myObject=new MyClass1(); myObject.key1 === "valu...

 
@Zirak: too high level for me :p
Make my jsfiddle work: jsfiddle.net/Ralt/2MntT
basic level, don't get why it's wrong
I feel like I've really improved since wandering around this room though :)
 
If it's too high-level then I did it wrong
Why would your example work?
XPM doesn't have create, XPM.prototype has it
 
The [[Prototype]] of an object is the properties inherited to it, it's its past.
typo?
 
Where?
 
none, my bad
I read "it's it's past"
alright, got it for the jsfiddle earlier :)
 
9:19 AM
I personally don't recommend using the older class system, left behind by ES3. It was made purely for Java dev eye-candy, and hides the great prototypical nature of js.
ES5 offers awesome tools, the big cannon being Object.create
 
Object.create allows you to create an object based on the prototype of another one, right?
 
Based on anything
Object.create({monkey:'FLY!'})
Object.create(XPM.prototype)
 
what's the awesomeness of it?
 
You're handling pure prototype objects, which is the core idea of prototypical inheritance
 
it just allows you to create new objects copying other ones without copying their reference's values?
 
9:22 AM
Your prototypes don't hide behind constructor functions, they're the stars.
 
what is a prototype object then?
 
Any object
 
(I'm playing noob, but I'd like to get all the way...)
1 min ago, by Zirak
You're handling pure prototype objects, which is the core idea of prototypical inheritance
I don't get it
isn't it the same as "you're handling pure objects, which is all javascript has ever been about"?
 
Prototypical inheritance is based on the idea that objects inherit from objects. There are no classes - only their instantiations. There are no templates - only savage monkeys running around.
 
do they inherit of their datas?
 
9:25 AM
By mimicking constructors and forcing you to use new, the handling is still there, it's still prototypical inheritance, but the prototypes are hidden, they're a layer down, it makes you think in classical terms.
Besides, new is lots of black magic.
 
ok I see what you mean
the Object.create method is rather about "we're getting prototype out of its hideout, it was there all this time"
pfff. I download around 900 ebooks on some torrent
there's a javascript folder with around 15 books
all about jQuery ._.
 
hehe
 
oh
3 are about js
Javascript Web Applications by MacCaw, Node Web Development by Herron and Supercharged Javascript Graphics by Cecco
the first doesn't inspire me
ok
I clearly don't recommend xpmjs for production x)
 
10:05 AM
hm, there's no chance that anyone here tried installing a driver for ew-7711ln wireless PCI adapter in Ubuntu?
 
10:40 AM
0
Q: JS assignment to build a layout from JSON data

KumarI was asked to do create this layout(http://i.imgur.com/DMcOk.png?1) using JSON Data (http://pastebin.com/raw.php?i=jEm4Agzk) with whatever library I liked. I chose jQuery. The rules were: All js should be unobtrusive. The js should pass thru JSLint. More details can be seen here http://i.img...

 
10:57 AM
weepee, ubuntu
 
11:33 AM
@rlemon Told you I'd do it eventually
 
 
1 hour later…
12:49 PM
Anyone here seen daily brain teasers for programmers?
 
1:04 PM
@Incognito: interested
 
@Incognito , which one ?
 
1:29 PM
hmmm
I got some interesting programming books there
some about HTML5 canvas
some about assembler
REST API Design Rulebook
 
1:47 PM
Sorry, I was asking if there actually was something like that.
I haven't seen it.
 
user1385191
hey look; more Ruby fanatics: github.com/styleguide/javascript
 
20 degrees outside, sun is shining...
perfect weather to head out and buy some batteries for my 360 controller!
 
<a href="javascript:;" sigh
 
user1385191
2:07 PM
there seems to be a strong correlation between Ruby fanatics and cluelessness regarding JavaScript
 
!
But they got 10 years of rails experience
 
It's sad. I looked at the hubot source for inspiration, and was bombarded with yuck
They're trying to transcribe Ruby into javascript, and seem to think that "well it looks like Ruby, so we might as well write it like Ruby"
 
user1385191
btw I pushed Utils up last night if you want to take a look:
 
user1385191
I'll be in the Utils room if you want to talk about it
 
2:11 PM
Awesome
 
@Zirak got sick of doing things the silly way eh?
11.10 or 12.04 beta?
 
@rlemon More like had a free few hours and got sick of Cygwin. Setting up the wireless adapter driver was a bit yucky, but it all worked out. I LURV THE TERMINAL.
11.10
 
you know the hoykeys?
 
Learning 'em slowly
 
177
Q: What are Unity's keyboard and mouse shortcuts?

htorqueIn Unity, are there any pre-defined shortcuts, e.g. to open the dash or unhide the launcher?

 
2:16 PM
neat, thanks
 
np. askubuntu.com is a great place for tricks, search the top questions
 
user1385191
I had to switch back to gnome classic from Cinnamon because the new nVidia driver was causing Mint to freeze
 
user1385191
restarted my computer about 12 times yesterday
 
i've had a few problems with unity, but I am seeing promising things about 12.04
i mean that is a horrible video
but you can see a few better ones by users in the related content
 
2:43 PM
@OctavianDamiean rlemon.github.com its not done yet.
 
@rlemon Why are the css3 neon lights chunks of meat in salad dressing?
 
lol
like I said it's not finished. :P
 
hi room
@rlemon cool idea
 
@AlexParker what do you mean idea? it's just my demo site
it either looks cool or doesn't.
the ideas are not yet linked.
 
I just joined the room and saw lorempixel. If you had an api for this and added it to devel in drupal I can think of a few people who would use it every day.
Obviously I am missing some context.
 
2:52 PM
is @Zirak using that account ? or it's just for the bot ?
 
@tereško Both for now
 
please , stop
@Zirak , you will soon be in a hell-lot ignore lists
 
@tereško My initial assumption that the bot won't be abused for spamming could be wrong
 
bbl
 
user1385191
17 messages moved to bin
 
user1385191
2:54 PM
time to mooooooooove on
 
@Zirak , if you are so naive , you might apply for some compensation .. it could be a medical condition
 
user1385191
2 messages moved to bin
 
user1385191
ha
 
I'll just leave this here for anyone who is interested in the Web Audio API and phase modulated synthesis. domitable.com/static/side-projects/phasemod/phasemod.html
 
Who the hell is going apeshit on the flags again?
 
2:58 PM
Hello
Some one know how to use flowplayer? ( this is flash player )
 
@rlemon Nice.
 
It's on my github: github.com/AlexanderParker/phasemod - You'll need a recent version of chrome to use it. If there's a better place to post this stuff let me know.
 
@AlexParker This is pretty awesome!
 
Cheers, it's the start of something
I have so many plans. Abstract the audio API for one. There's no single implementation yet.
@OctavianDamiean If you have any ideas, let me know, maybe add them to the tracker on github
 
3:23 PM
hmm... chmod 777 . -R might have been a mistake, but for some reason, emacs still gives File error: Cannot open load file, blah-blah
 
Uh oh. Where did you run this?
 
On the ~/.emacs.d, nothing more than a bunch of elisp files
ls is suddenly so green :P
 
heh
Well that should not break things but be careful with stuff like that, especially when recursion is involved.
 
heh, yeah we had a guy at work accidentally replace every file on one of the dev servers with a tar-gzipped version of itself. that was a cartonable offence
 
Also, I know it's highly frowned upon but here's a jQuery plugin I made for my synth. domitable.com/static/side-projects/jquery-plugins/knobRot/…
@Incognito Only hipsters use chaining hey? Love it. Not 100% accurate, but funny.
 
@AlexParker If you like chaining so much why didn't you use it more? github.com/AlexanderParker/knobRot/blob/master/knobRot-0.2.2.js
 
@Incognito As you say, it causes problems. It only causes problems because sometimes people don't understand that some functions return a value and not an instance of the class being dealt with.
 
Whoever was asking about selectors...
p em ~ em, h1 + div
is a selector group.
p em ~ em
is a selector.
 
$( "#myElement" )
   .IF( myVar == "yes" )
      .css( "color", "green" )
      .click( function () { alert( "Yes" ); } )
   .ELSE( myVar == "maybe" )
      .css( "color", "yellow" )
      .click( function () { alert( "Maybe" ); } )
   .ELSE()
      .css( "color", "red" )
      .click( function () { alert( "No" ); } )
   .ENDIF()
   .show();
 
3:43 PM
p, em and em are simple selectors.
 
And the space and ~ are combinators.
 
@minitech Wasn't that last night?
 
@Zirak That's why kitten had an internal ignore list :P
 
Voilà!
@Incognito Yeah. But I found out this morning.
So I'm putting it here.
 
3:44 PM
Ah
 
@Incognito hmmm. Ok. A wrapper for boolean logic. Nice, I guess.
 
@IvoWetzel The bot has /ban and /unban, but I'd like to think most people here are mature enough. Hopefully.
 
I can't see myself using it though... Seems a bit over the top.
 
@AlexParker Yo dawg I heard you think chaining like this made sense.
 
@Zirak This was already disproven with kitten... :(
 
3:46 PM
q.q
 
@Incognito Where did you hear that?
 
!!cowsay chain chain go away come again another day.
 
 ________________________________________
/ chain chain go away come again another  \
\ day.                                    /
 ----------------------------------------
    \   ^__^
     \  (oo)\_______
        (__)\       )\/\
            ||----w |
            ||     ||
@IvoWetzel People abused kittens!?
 
@AlexParker Just take an extremest stance on chaining one way or the other and I'll leave you alone.
 
@Incognito Um ok. Chaining is awesome and every program should be written as a constant chain of a superglobal singleton object or however is the most correct way to represent such a lunatic idea.
program.init(function() {/* do stuff */}).executeNextFunction(etc...
Do I pass?
 
3:50 PM
I guess so.
I was hoping for more conviction from you in it.
 
Sweet. More vodka, then.
 
I'm going to starbucks. Then maybe write code or something. Cheers all!
 
No worries, my chainy bretheren.
Hey general stack overflow question - at what point do I get to post messages to people? Or is private messaging not a thing here? Sorry. Total noob I know.
 

« first day (525 days earlier)      last day (4437 days later) »