« first day (892 days earlier)      last day (4073 days later) » 

4:00 PM
@theGreenCabbage That's not the purpose of the id
 
@Shmiddty lol, sorry ;-)
 
I must have the wrong idea of what the id does and is
 
isn't a limit about bookmark length?
 
@Happyninja No...
 
@theGreenCabbage It's a unique identifier for a db entry and should not be confused with data in the db entry. (i.e. should not be data)
 
4:05 PM
@theGreenCabbage what do you think it is?
 
@Happyninja I don't think I ever knew.
@Happyninja But from my understanding
 
@theGreenCabbage do you know html?
 
@Happyninja Not all appended data may be unique, therefore, in order to uniquely identify each document, Mongo does that to ensure that consistency?
 
A man was blissfully driving along the highway, when he saw the Easter Bunny hopping across the middle of the road. He swerved to avoid hitting the Bunny, but unfortunately the rabbit jumped in front of his car and was hit. The basket of eggs went flying all over the place.

The driver, being a sensitive man as well as an animal lover, pulled over to the side of the road, and got out to see what had become of the Bunny carrying the basket. Much to his dismay, the colorful Bunny was dead. The driver felt guilty and began to cry.
 
@Happyninja Yessir.
 
4:06 PM
@theGreenCabbage so you know the DOM?
 
@Happyninja I never worked with DOM before
@Happyninja Maybe I have but dont nkow the name
 
@theGreenCabbage it represent object in html among other stuff
 
Don't know why that joke popped into my head
 
@Happyninja Continue
 
@theGreenCabbage DOM is like an abstract layer. Everything within an html page is represented as part of a tree with object inside it.
 
4:09 PM
@Happyninja Ok
 
Hi! I have a pretty basic question. In my Flash class, as a new addition this year, they're starting to also show us how to make (basic) games with Javascript. And it really feels wrong. Like it's some weird stretching of Javascript so it looks like ActionScript, not even working with any HTML elements except <canvas>. I want to know if my feeling is right or if it's a correct way of doing JS programming.
An example from my teacher here, showing how to do simple movement.

(This Fiddle does NOT work. I just wanted to show the code from the teacher as is, and I thought you'd prefer this to a
 
user2157210
Holy just made the fucking app 2 times faster just because i deleted my old junk method and completly rewrote it ..
 
@theGreenCabbage if you want to say modify an element within the html page, you would need to identify it. There is different way to proceed but one pretty common is to identify a tag by an unique identifier (id).
@theGreenCabbage each id MUST be unique. Think about it as, not an option
 
@Happyninja What do you mean modify an element within the html page?
 
@Ariane That they teach javascript in a flash class makes perfect sense. Flash future is somewhat uncertain.
 
4:12 PM
@theGreenCabbage there is the source page, containing your actual coding but once the page is loaded, it's the DOM. So you can modify the content without altering the source, on the fly.
 
user2157210
@widged They have flash classes you mean
 
@widged I'm not wondering whether it's a good thing to program in Javascript. I'm wondering if what I showed is the right way to do it.
 
@theGreenCabbage to do so you would need a language and that's when javascript come in
 
@Happyninja Oh yeah, I understand. Because HTML is an interpreted language,
 
@theGreenCabbage if you want to use JS i think you need to know how it works
 
4:14 PM
@Happyninja I never really got down to the science of how it worked. This is quite interesting to me. But how does it relate to what I said before?
 
In my mind what's great about Javascript is that you work with HTML elements, but there, nope, we draw shapes on a canvas, and use no HTML properties or CSS, but rather mostly entirely new functions and things that we downloaded.
 
@Ariane It depends what the goal is. Teach the basics of programming and problem solving. Any approach can do that.
 
@widget The goal is to program games in Javascript. The basics of programming, we've been doing (and still are) otherwise.
 
@Ariane if the goal is to code javascript like you would actionscript, or to go for a slow transition from javascript to flash, then check easelJS createjs.com/#!/EaselJS
 
@theGreenCabbage I think if you want to use JS you need to know how it works, to better understand what it can do for you
 
4:15 PM
@widged Actionscript feels 100 % wrong to me to begin with. The goal is to program in Javascript, period, and I'm asking if imitating Actionscript is a good thing.
 
@Happyninja Totally. I was rushed into it. I actually just started programming six months ago!
 
@Ariane the Canvas element allows pixel-level drawing at better performance than doing something similar with strictly html elements could ever do.
 
@Shmiddty So this is actually the right way of doing it? Oh dear. Sounds so very wrong.
 
@theGreenCabbage programming is just a way to speak the machine language, understand it and ... feel the power of it if you catch my drift
 
@Ariane two sides of it. Easeljs is a strongly actionscript inspired syntax. It does a great job at helping you write good games in javascript.
 
4:17 PM
@Happyninja Dude I understand. You are getting philosophical now. I enjoy that.
 
(using the canvas)
 
I mean, the end-of-term project is to make a quiz. I can't even begin to understand how it's even remotely a good idea to use a canvas instead of a Web page-like thing. ._.
 
@Ariane The thing about javascript is that it is a very flexible language. There is no set-in-stone best-practice defacto-standard buzzword-jargon
 
Both javascript and actionscript are derived from ecmascript, so they are a lot of similarities.
However, javascript and actionscript also have important differences. It pays to understand the strengths of javascript (which are very different from actionscript)
 
@Ariane Well I wouldn't use canvas for a quiz, no.
 
4:19 PM
Would it be wrong to make, say, a platform game, from just HTML elements?
 
@Ariane Not wrong, it's possible, it's been done. It's just a different tool
 
@Ariane Define "wrong" in this context.
 
@Ariane Never wrong.... There was a superb javascript library that was around before the canvas was introduced... let's find it...
 
user2157210
@Ariane a quiz? for end term?
 
Before canvas was around, there have been games made using HTML and JavaScript
It isn't sensible to do that anymore
 
4:20 PM
I dunno. Wrong. As in, it's wrong to put onclick=" " inside an HTML tag. As in, it's wrong to use HTML 4. As in, it's wrong to call to an element in JS using just it's ID, without getElementById.
@Nexx Yes.
 
@Ariane Then yes, it's wrong
 
user2157210
@Ariane Well congrats on your A++
 
@nexx I'm not a programmer. I'm studying in mostly Web development, and this is the first class where we do some game stuff. So.
 
@Ariane Canvas gives you better / easier control. Things look the same across browsers
@Ariane (well, the ones that support canvas)
 
user2157210
@Ariane a quiz in jS?
 
4:23 PM
0
Q: js oop best practise

romanI have to set up a new JavaScript library for a big project, which isn't Object Oriented yet. So I built a small file to test some needs. The result is the following: var Module = { Config: (function() { //- private members var _systemName = 'mySystem', _ver...

 
@Ariane that's the link def-logic.com complex games, all in good old dhtml
 
@Ariane Are you a student?
 
@Amaan Sigh. I was so enthusiastic about JS because it would allow to make games in an understandable way, with HTML, and CSS, etc. ._.
 
@Ariane btw: http://jsfiddle.net/W5yjc/1/

(You had an extra onload wrapper set in the jsFiddle options.)
 
@Nexx Yes. And Actionscript.
@theGreen Yes.
 
4:24 PM
@Ariane Dude. Canvas makes it much better
You really don't wan the ugly mess of the DOM for a game
 
@Ariane I thought I'd just tell you. You had some guts yesterday. I was half admiring you half loathing you
 
@Ariane You can make an SVG game :)
 
Why? Sounds so very logical to me. Much more than literally drawing pixels in a Web browser ._.
 
@Ariane I make canvas games part-time, so trust me, you don't want to do it with the DOM
@Ariane Really?
 
user2157210
Doing things with Canvas is the way
 
4:25 PM
You'd have to use CSS to just position things
 
user2157210
Its easy smart understandable
 
Canvas is the only logical way I can see
 
@Ariane Sure, until you have to draw an arc
or some other complex polygon
 
I did make a DOM tic-tac-toe as my first game
 
@Ariane implicit to your question is how much can you trust your instructor... There are a few poor practices in the code. A lot of document.body, especially in a function that capture mouse movements
 
4:26 PM
Then I made the same thing with the canvas
 
Well, maybe I just think that way because I started with websites and learned some more classic-like programming, but to me doing things with CSS sounds much better than doing them with a canvas.
 
So much better not having to use tables and CSS for everything
 
@Shmiddty <img src="polygon.svg" /> ?
 
user2157210
@AmaanCheval ain't no one got time for this
 
@Ariane No, an embeded SVG document
 
4:27 PM
@theGreen Enjoy the view, because having guts is not something I do often.
 
@Ariane What'd you do yesterday?
 
@Ariane You know. I admire people that have guts. Again, it's half admiration and half loathing. But still, you made me think yesterday.
@AmaanCheval He/she came with an essay of code and asked for help, that's the jist, lol
 
@theGreenCabbage Hahaha
 
@Amaan I got angry at someone who refused to help me until I showed him a JS fiddle with less than 25 lines that reproduced the issue. I argued that if I were able to do that, I would not need to ask for help.
 
@Ariane But I hope you learned now that throwing code at people won't get you any help. It's the true story.
 
user2157210
4:29 PM
@theGreenCabbage didnt you just
 
@theGreenCabbage I've got guts too. They're full of poops.
 
@Ariane As much as I would love unconditional love
@Nexxpresso I didn't throw code at anyone...
@Shmiddty lol
 
user2157210
I didnt follow the discussion i just saw someone getting angry at you
 
@theGreenCabbage I did reduce my code afterwards and wanted to show it to him but it didn't reproduce the issue, and he refused to help me understand why.
 
@Nexxpresso I don't recall. Maybe annoyed with me
 
4:31 PM
@Ariane window.utils.colorToRGB is a bit actionscript like. In js, better to use the module.
 
@Ariane What was the issue? I remember it working in Fiddle but not on your machine?
 
user2157210
maybe i misinterpreted
 
does bookmarklet works offline?
 
user2157210
@rogcg sure
 
@Nexxpresso You're throwing uncertainties at me. Now I am uncertain. Thanks.
 
4:31 PM
@theGreen Basically I still think he overdid the "help someone learn instead of giving the answer for free", just like it's possible to overdo giving answers.
 
@Ariane Was it about the XHR issue or something?
 
@Nexxpresso well.. I've saved a file to bookmark like: file:///C:\user....\fille.js and when I click it, it just shows the content, but doesnt run.
 
@theGreen uhm, no script tag in the AJAX-called file, and I was sure the AJAX file, since it was "inserted" in the HTML, worked like a PHP include(), and "knew" the rest of the HTML document.
 
user2157210
uhm did you make the bookmarklet like
 
user2157210
javascript:code
 
4:33 PM
@Ariane Maybe. But he really wanted you to figure it out yourself. He probably knows things more than our understanding. De-bugging is a good skill to know, to my understanding.
 
@Ariane Im glad you got it figured out!
 
@theGreen Yeah, but when you've been tearing your hair out in debugging for hours, it's obvious you've tried pretty much every step, and that it's an issue you're blind to. In that case I find it extremely nasty to ask me to debug MORE.
 
user2157210
@rogcg does work for me
 
@Ariane I get your feel, bro..
 
user2157210
4:34 PM
but i didnt put the file but the code in the bookmarklet right
 
I feel like im in some kind of bizarro world
 
@theGreen If bro is supposed to be gender dependent, gonna have to say it's not appropriate for me.
 
user2157210
Just make a new bookmark and as url you put in the code @rogcg
 
@Ariane Ugh. I feel you humanoid.
 
Hehe.
 
4:35 PM
@Ariane Thanks for rejecting my empathy, you robotic demon.
 
Bleh, your fault for misgendering me :p
 
@Nexxpresso ohh I put the code as url
 
user2157210
Yes
 
@Ariane Blegh back at you.
 
Aaaaaanyway!
 
4:36 PM
@Ariane at least in NZ bro is used largely... applies to beached whales as well youtube.com/watch?v=ZdVHZwI8pcA
 
Thanks for the answers, everyone, even if it's not what I'd have wanted to hear.
I'm gonna go back to working.
 
The world would be boring if everything is what you wanted to hear.
 
user2157210
Working working
 
You as in, not you specifically
 
user2157210
Atleast half of us in here should work right now
 
4:37 PM
@Nexxpresso what if its a giant script
 
@Nexxpresso Hell yesss!
 
@Ariane If you want to make your games with markup, you might want to use SVG
I've never tried it
 
user2157210
@rogcg Well make it a userscript then I would say if its only for certain sites
 
@Ariane kineticjs.com is a good canvas library
 
@Nexxpresso you have any good tutorial for it?
 
user2157210
4:38 PM
write userscript over it
 
user2157210
 
@AmaanCheval I just used standard elements
if you remember dont dress me bro
 
Yeah
 
lol had to make it work in IE7 but didn't want to use Flash
 
But a platformer using DOM?
 
4:39 PM
it could be done. I've seen some crazy performance demos using just the dom
 
Sounds strange
 
I agree
but its def possible
 
Yeah, I'm sure it could be done
 
damnit.. making me want to try it now :P
 
Hahaha
 
4:40 PM
I notice you guys are more distracting than of actual assistance.
 
It won't be difficult really
 
I need to get out of here
 
Just ugly
 
@AmaanCheval plenty of DOM platformers there : def-logic.com/silbyproject.html
 
user2157210
@rogcg and name the file filename.user.js so chrome and firefox do recognize them
 
4:40 PM
Someone should make a platformer using just CSS and HTML. No JavaScript at all, that would be crazy
It's totally doable
 
@widged I'm not saying they can be done. I'm saying it just sounds really strange to me
 
@Nexxpresso didnt know about that.. thanks.
 
@BenjaminGruenbaum Hmm, with mouse input for movement
@Darkyen CSS Challenge for you ^
 
@BenjaminGruenbaum Hey man, welcome back!
 
@widged hah those are all dom?
 
4:41 PM
@AmaanCheval agreed, strange to aim for that
 
pretty nice
 
@theGreenCabbage Hey :) How's it going? Did you manage with JS objects? @rlemon pinned a post by Yehuda Kats about JS objects, you should read it
 
@Loktar yes, all dom, I think they date from the 1990s or about
 
@BenjaminGruenbaum Dude I figured it out! I did.
 
Main example I remember is the one Im sure everyone has seen, DHTML Lemmings
 
4:42 PM
Oh, yeah
I remember that
 
@BenjaminGruenbaum Now I am stuck at my next step. The actual object comparisons
 
greasemonkey only works on firefox
 
@BenjaminGruenbaum I hate the feeling of being stuck at something
 
@theGreenCabbage what seems to be the issue?
 
user2157210
@rogcg chrome has userscript implentation build in
 
4:43 PM
@theGreenCabbage Learning is the hardest thing to learn :)
 
@Nexxpresso how do I access that?
 
@BenjaminGruenbaum User marr75 posted a seemingly very smart solution, but I am finding hard to implementing it
@BenjaminGruenbaum stackoverflow.com/questions/15621883/… This was the thread.
 
When you pet bird sees you reading the news paper, you have to think if he's wondering why you're staring at his toilet so intensely.
 
@rlemon When your cat sees you taking a bath or shower they are very happy, thinking you are finally dying
 
4:44 PM
serious question I asked my co workers and no one had an answer to: How do blind people know they are done wiping their ass?
 
@rlemon Then they are perplexed by why you are enjoying that lava-like material
 
user2157210
@rogcg drag it in the chrome extension tab and its installed
 
@theGreenCabbage He is doing the comparisons in MongoDB, you can ask it about how stuff is different. You can do that on JS too, doing it in Mongo is probably faster. C# actually does an amazing job at this, I wish JS had more powerful collections
 
@Darkyen @Loktar echojs.com/news/3372
 
I wish JS had LINQ
 
4:45 PM
@BenjaminGruenbaum I proceeded to ask him A LOT of questions under
 
@BenjaminGruenbaum You could make a library, but it wouldn't be quite the same
 
@rlemon I'm nearly done fixing that user issue. The re-write I was doing was long coming
 
@BenjaminGruenbaum I just don't know what the best method is. I am also facing a minor deadline too.
 
@Nexxpresso ok its installed. how to run it? there is no option to do that..
 
user2157210
and for firefox you just navigate to a page where it is like mydomain.com/file.user.js and it asks if it should be installed chrome has to download and drag now .. @rogcg
 
4:46 PM
@Zirak but do you have an answer for how the blind wipe their ass and know when it's clean?
 
Just need to iron some things out. Unfortunately it's difficult to test these things (new users joining).
 
user2157210
well its a userscript it gets executed on the site you specified it for
 
@Shmiddty The language isn't able to do that, it would require a change in the language itself. LINQ is a part of the C# runtime, not just a library
 
@BenjaminGruenbaum Someone wrote a very functional function that does comparisons. Is it possible to use this with objects too?
 
@rlemon Do you know why alarm clocks for the def aren't popular? If they wake def people up, they should be horrendously useful.
 
@theGreenCabbage The best method is what he suggested, you should look up comparisons in mongo, like docs.mongodb.org/manual/reference/operator/lt
 
I can't find the video, but he talked about it in one of his videos
 
@rlemon Also, how do people without arms wipe?
 
I dont know if I should use bookmarklet or userscript
 
user2157210
4:48 PM
Well what do you want to do
 
both seem pretty the same for me.. i have 0 experience with that..
 
@Zirak Why do you assume they poop too?
 
@Nexxpresso its a way that when I load a specific page, and click it, I want to remove some of its style content, and modify an html element..
 
@theGreenCabbage Because I have no reason to assume the contrary?
 
user2157210
Use userscript
 
4:49 PM
@Nexxpresso ok.. i need to know, does it works offline?
 
user2157210
You want it removed all the time right?
 
@Zirak Smarty pants.
 
WHO DARES FLAG THE MIGHTY @Zirak?????!!!!!!!!!!!11111oneoneeleven
 
user2157210
i guess so if you specify the url where it should work
 
oh what now you lot
 
4:49 PM
@rlemon I can feel with my hands if there's poop left on my ass (protected with the toilet paper)
 
@DaveRandom hehe, what was flagged? this!?
 
posted on March 26, 2013 by johnmccutchan

Learn how you can use Chrome DevTools against your mobile device.

 
@Zirak alarm for deaf people are just vibrators you put under the blanket
 
@Nexxpresso its like an adblock, but for this specific site.. its a news site, that blocks you from reading the news, and I found out that deleting this elements, I'm able to read it.. hehehe
 
@BenjaminGruenbaum Do you mind linking me up to that article you were talking about that was pinned here?
 
user2157210
4:50 PM
well so
 
@FlorianMargaine That sounds effective, so it's surprising how the usage isn't more widespread
 
4 hours ago, by rlemon
http://yehudakatz.com/2011/08/12/understanding-prototypes-in-javascript/
@theGreenCabbage ^
 
@BenjaminGruenbaum You're the man
 
@rlemon also, the feeling you get on your ass when it's dry is a good indicator
 
@Zirak Clearly these people don't know who they are dealing with
 
user2157210
4:51 PM
// ==UserScript==
// @name remove the ads
// @version 0.1
// @description removing apps
// @author You and me and the rest of the world
// @license Do whatever you want
// @include URLTOBEINCLUDEDON/*
// ==/UserScript==
 
@theGreenCabbage Your question should be handled in the MongoDB level and not the JS level most likely, like the answer-giver suggested
 
@Zirak it's just more expensive. And since people can wake up with normal alarmms, why should they use a special one?
 
user2157210
Put that on top of your script
 
@Zirak yea, but I have to imagine there is more blind people than armless people
 
@Nexxpresso yeah.. and the rest of the script, can it be normal jquery code??
 
4:52 PM
so my question is one that should be easily answerable.
 
@BenjaminGruenbaum I dont understand the difference between handling it in JS vs. MongoDB..
 
@BenjaminGruenbaum you have
 
user2157210
@rogcg if you include the jquery in the script sure
 
'lo y'all
 
experience with redis ?
 
4:53 PM
@rlemon and I answered you. FFS!
 
@FlorianMargaine but is that it? just 'feeling' alone? seems kinda weak to me
 
@Darkyen Yoyo
 
@Nexxpresso and after I finish the implementation.. I should just install it as a chrome extensions.. and how do I make it work for the specific page?
 
You would basically make a library with a similar-language curryable method calls eg:

var something = linq.from(collection).where(function(a){return a.property == value}) etc
 
@rlemon feeling alone has always worked for me. Sometimes I manually check, but the feeling's always being right
 
4:54 PM
@Loktar haha one of the girls at my work said "smell?"
 
anybody with some experience in redis ?
 
s/manually/visually
 
@FlorianMargaine I suppose I'm paranoid, I always need the visual check
 
@Shmiddty curryable!?
 
user2157210
@rogcg well it will be some page as news.com/news.php?id=123 right?
 
4:54 PM
@Nexxpresso yes..
 
!!/google curryable
 
user2157210
@rogcg so you write in the @include news.com/news.php?id=*
 
Server error (status 500) occured (message probably too long)
 
@FlorianMargaine That reminds me of the car I always wanted to buy when I was younger. Renault Safrane. :)
 
4:55 PM
Yo dudes this is in python
 
@theGreenCabbage MongoDB is a database, JavaScript is a programming language. MongoDB does clever loops to handle your data fast, like index it and stuff. You're using a database driver in JavaScript to talk to your MongoDB database and query it for stuff or add values to it. You could talk to MongoDB from let's say Python too.
 
@OctavianDamiean curryable in the sense that jQuery is curryable.
 
@Darkyen ?
@Shmiddty Do you know how LINQ works :)?
 
@Shmiddty Do you mean the fact that you can chain a lot of functions?
 
4:56 PM
I love him ripping on Orange.
 
@BenjaminGruenbaum Not precisely. I know there's a lot of reflection going on.
 
@Shmiddty It's FREAKING AWESOME. It doesn't just takes your methods and runs them on a collection, that's how it works on IEnumerables, when you do something interesting like IQueryable the magic happens
 
@Nexxpresso this would be this website preciselly... www1.folha.uol.com.br/esporte/…
 
@rlemon Hahaha, yeah, his channel is pretty cool
 
@Shmiddty It takes your code, disassembles it into basic units of a parse tree, rebuilts it from scratch in whatever (for example SQL) and then sends it to the server
 
4:57 PM
 
@Shmiddty When you use, let's say LINQ2SQL or Entity, or RavenDB driver it converts your code to an expression that query-giver understands and runs it there
 
...it took me 10 minutes, but finally
 
@OctavianDamiean the safran is also one of the most expensive condiments
 
Okay so i have a hash
and i use hlen to find a "property"
 
Something like 30-35k € per kilo
 
4:58 PM
now tell me if i can sort by selecting multiple hashmaps ?
 
@BenjaminGruenbaum Yes, I know that. So it's not the syntax you're looking for, but the actual machination of it all?
 
@Shmiddty When you write a LINQ adapter, you handle that, disassembling a lambda expression into the basic parts and rebuilting that.
 
user2157210
@rogcg yeah well you might have to include things for every sectiosn or just
 
@FlorianMargaine Oh yea, I knew that. :D
 
user2157210
*uol.com.br*
 
4:59 PM
So anybody ... halp ?
 
@Nexxpresso indeed
 
-_-
 
@Shmiddty Yes, I would like to be able to send methods to MongoDB, although I can cheat there since MongoDB accepts JavaScript queries, so I wouldn't need to bother with translating to begin with, just like the space pen :)
 
@Zirak I heard that<#s quite common to older men.
 

« first day (892 days earlier)      last day (4073 days later) »