« first day (912 days earlier)      last day (4261 days later) » 

15:00
hi to all
do you know how to access a child of a html document element ?
I tried element.childnodes[n]
but it didn't work
@MHDaouas jsfiddle.net show us what you've done so far
0
Q: JavaScript - 2D Top-down Tile Collision Detection

Thomas MoseyI am developing a small Top-down Game (Much like the old Zelda Games) and I'm having an issue in terms of Collision detection (The actual theory itself rather than assigning Tiles as solid, etc.) I have a function called "checkTileCollision" which takes two parameters, X and Y, and is called thr...

user2157210
ok got my resume page up
user2157210
Thank you XCritics
15:09
@Nexxpresso why did i even click...
user2157210
because you like cats?
probably
user2157210
you get things by id
user2157210
and never set an id?
oh sorry I made it now
15:10
@MHDaouas 'li' is not an id
fast
my case is a lot more complicated
I'm working on an AppMobi app
user2157210
and your button does not work
user2157210
have to wrap in head
there are selector-functions other than getElementById?
mind blown
@Nexxpresso K I HIRE U NOW! U JQUERY?
@GNi33 You shouldn't use them though
user2157210
I VERI GUD JQUERY I CAN EVEN MOBILE JQUERY
yeah, i heard they are deprecated and evil
@Nexxpresso K U MAEK IPHONE GAEM?
user2157210
I MAKE IPHONE GAME
user2157210
15:11
NO PROBLEM
I ACTUELLZY MAED IPHONE GEM
^ AWLMOST AS MUCH AWESOM as @Nexxpresso WEBSITE
user2157210
OH I CAN MAKE ANDROID APP REAL QUICK FOR YOU TO SHOW HOW GUD I IS
user2157210
I NO HAVE MAC HERE
15:12
what do you mean by wrapping in head ?
user2157210
clikc wrap in head
user2157210
in fiddle options
NO I MAEK IPHONE GEM FOR BOWSERS
@BenjaminGruenbaum even things like querySelector() and querySelectorAll()?
NO PRBLM
15:13
Or is that exactly what we're discussing and I missed some context?
user2157210
I TINK VERI GUD ANDROID BETTER IHPNE
I didn't find it
@SomeKittens Not even once
man Newgrounds has such good artists
love the ads and page design
@SomeKittens you shouldn't use anything other than getElementById
15:14
@Loktar Don't get me nostalgic again ;'(
user2157210
Ok I will do multi platform app displaying random cat pictures
^ pro tip
qS(A) are friggin' awesome
coffee is not good for health
user2157210
AND THEN SELL IT
15:14
@RyanKinal no, it's evil
@RyanKinal I agree
@BenjaminGruenbaum Wait, why? What did I miss? Is it a legacy thing?
@SomeKittens Sarcasm? Hardly
@SomeKittens It's a 'being an ass' thing :)
15:15
You have to use them intelligently, and if you're selecting on an ID, you should still use gEBId, but they rock.
Although, I do rarely use query selectors when building something. I use them all the time when scraping though
Keep your selectors simple, and be aware of the quirks, and you're good
@BenjaminGruenbaum I'm tired and distracted. What?
user2157210
If give everything the same id i can get more elements with getElementById
user2157210
PROFIT
15:15
@SomeKittens I wasn't being serious
@RyanKinal we're not being serious right now btw ;)
Sssssshhh! I'm being a guru here!
When I see jQuery code I always think "Y U NO DO DATA BINDING IN THE RIGHT DIRECTION?"
Binding logic to presentation makes me sad :(
Allow me to think I'm better than all of you for just a second :-P
user2157210
there is html5 audio now?
user2157210
15:16
right?
Ok. Carry on. Back to paper-writing.
user2157210
I CAN DO CAT MEOW ON MY SITE
@FlorianMargaine i thougt those before-after pics usually go from left to right
@Nexxpresso Right.
@GNi33 how fun you are today
15:17
@MHDaouas jsfiddle.net/3WpNG/5 I'm not sure why you have to double click the button for it to work, maybe you can figure it out
@Nexxpresso you should use the web midi api!!!
yeah, i feel like getting sick, i usually fall into idot mode then. so sorry ;_;
^ *2
Also, @Nexxpresso you should have a trail to follow your mouse, and a snow effect
user2157210
FOLLOW MOUSE
user2157210
WITH CATS
15:18
@Nexxpresso dynamicdrive.com
OMGLOLWTF
dynamicdrive hasn't change since I last saw it, that was 10 years ago :O
Ah, the copypasta
the concept of dhtml makes me throw up in my mouth.
I don't know what dhtml even means :(
@MHDaouas jsfiddle.net/3WpNG/6 that seems to work
dynamic html
user2157210
body, a:hover {cursor: url(cur.cursors-4u.net/nature/nat-10/nat924.cur), progress !important;}
user2157210
15:20
I USE THIS
dynamic drive
memories...
whitespace is considered the first child
so if you remove it all it works as well :P
user2157210
IS BETTER NAO???? nexxpresso.de
@Loktar yeah I fixed it with jsfiddle.net/3WpNG/6 :)
because of the textnode being the "first" child
was a weird issue I learned me something!
15:22
But thanks I seen that when I googled :)
@Nexxpresso I love the get new cat button.
@Nexxpresso You MUST use marquee tags
Element.prototype.remove exists?!
user2157210
@BadgerGirl its great unlimited cat
user2157210
15:23
is there still blink?
user2157210
I NEED BLINK
@FlorianMargaine It's new
@FlorianMargaine Like really new
like, 2 years old?
@Nexxpresso marquee
@FlorianMargaine Like, 3 months old? Maybe a bit more or less
15:24
thanks guys :)
oh that wasn't sarcasm!
How might you remove an `addEventListener('mousedown', function() {});`
cause `removeEventListener('mousedown');` does not do it, I'm pretty sure you need to pass it the function it's bound to, but it's not bound to a specific function
maybe we'll finally be able to remove this html element
@FlorianMargaine No, it recently got in :)
@rlemon Not dubstep, but a lot of good stuff to check out: reddit.com/r/swinghouse
15:24
nice
can we mix jquery with javascript
@XCritics maintain a reference to the function.
user2157210
@phenomnomnominal BETTER?????? nexxpresso.de
@MHDaouas NO! Don't even try! You'll break the internet!
like this: $("#id").children[0]
on the same line
15:26
@phenomnomnominal like how, ('mousedown', newEvent = function() {});
@Nexxpresso LOL
ok I stared at that too long
when I switched back everything was green for a second
the pink made my eyes bleeed
user2157210
its magenta
@Nexxpresso The text should be yellow.
fart
@MHDaouas $('#id').get(0).children[0]; // .get(0) gets the actual DOM element
15:28
thanks mate :)
var myFunc = function () { console.log("BANG!"); }
element.addEventListener('click', myFunc);
element.removeEventListener('click', myFunc);
user2157210
@BadgerGirl UPDATED
user2157210
there is no cat meow api in the web
@Nexxpresso Now you're hireable.
user2157210
i want rainbow text
15:31
I've been clicking the new cat button way too long.
alert($('#id').get(0).children[0].css("left")); doesn't work :/
oh a girl in a programming chat room
$('#id').children().first().css('left');
it's rare :)
why not firstChild ?
why not pure DOM in the first place ?
document.getElementById('id').children[0].style.left;
user2157210
I will start my application phase soon
15:33
what is the difference between children() and children[n] ?
are they both integrated in JavaScript ?
user2157210
I can now be hired Badger Girl said
.children() is jQuery
ah ok
@MHDaouas you're mixing jQuery methods from jQuery and DOM methods
15:34
I had doubts about it
For some reason, .html() strips out a form tag but leaves the content unchanged. Wtf?!
that's why I asked if it's possible to mix them
@MHDaouas of course you can, but only in one direction, jQuery -> DOM, not DOM -> jQuery
thanks guys ;)
I'm planning a website design for a fictive hair salon, and I wanted to do hair on the right side of the screen that descends all page long, until it reaches an end in the footer. When unfolding a section, scissors would cut the hair and put the section in the space (basically just a background-color to hide it). But I've been unable to find a way to make repeatable natural-looking hair in Illustrator.
user2157210
15:36
I need to find some cool cursor trail
I'm working with jquerymobi
user2157210
@MHDaouas Do you know any good cursor trails?
you could go the opposite direction by re-calling a jQuery constructor on resulting DOM nodes.. but you know.. the unholy child will probably come out of the grave and find you.. it... is.. over... he is com00iing.. oh noooo")%$"
children() and first() are not part of the lib
@Ariane maybe shes born with it
15:37
@jAndy firstElementChild
maybe it's maybelline
Do y'all know a way to do that (repeating hair) in Javascript drawing that would allow me to do that? BTW if it's complicated I won't use it because it's definitely not the focus of the exercise. If I,m going to use a lot of energy on this I'll find another concept
@FlorianMargaine lastElementChild
@Loktar Who's born with what?
@Ariane yeah one sec
was a weak joke about hair.
@jAndy rapedElementChild
@FlorianMargaine ...
@FlorianMargaine belovedElementChild
..
wtf guys
15:38
... ok
@jAndy ryanIsInTheKitchenElementChild
user2157210
OK NOW ITS AMAZING nexxpresso.de
@FlorianMargaine Not currently... though I'm planning on being in the kitchen tonight
You know, while I'm making dinner
@RyanKinal it's a joke on the fact that people learning english usually learn this sentence first
@Nexxpresso what did just happen ?!
although it's "Brian is in the kitchen"
user2157210
15:39
@jAndy I made page for my resume
hmm damnit
@FlorianMargaine Ah, I see
I cant find the example I was thinking
it feels like I left my body for a short while and everything was pink
user2157210
did you see the cursor trail
15:40
why are we using all this, it's useless
I find that most Americans learning a different language tend to learn something about libraries first...
we should go back to nature
@Loktar Thanks for trying
I saw it all... aahhwwwg, my life probably will never be like before
Does someone have a similar idea to my concept above that wouldn't involve a repeating pattern?
15:41
@Ariane are you actually named after a rocket ?
... damnit it seems to be erroring
blarg all of his stuff is
@jAndy Ariane is a fairly common first name. The rocket was named after the first name. Which happens to be strongly connoted to Greek mythology.
anyway all of his stuff was "wormy"
but could easily be hair
youd have to use canvas
user2157210
I FORGOT TO REMOVE DYNAMIC THINGIE
@Loktar Holy shit
15:42
@AmaanCheval is it working for you?
its erroring here for me
Yeah
It's amazing
@Loktar that is... creepy...
^ theres a simpler example
@jAndy yeah its pretty awesome
@Loktar
What are those controls? I've seen them before, they're really nice
15:44
@Loktar Yeah... sounds a bit complicated. I guess I'll find another concept.
document.getElementById("id").children[0].style.left does not work
user2157210
does html5 audio repeat the audio?
@Ariane yeah :? would be a lot of work
but would look amazing.
/me goes to lunch
setup tentacles to one............
:P
@Nexxpresso No, but you can implement it forestmist.org/2010/04/html5-audio-loops
15:46
@loktar nice :D
user2157210
ok so just loop
user2157210
why does it not work ..
user2157210
useless shit
user2157210
i want meow
user2157210
15:53
ok
user2157210
now its perfect
user2157210
Spaces are better than tabs
Tabs are better than spaces.
0
Q: jQuery .html() removes form tag but keeps content

DJDavid98Reference URL: http://86.101.198.88/form/ (tried to reproduce in a jsFiddle, but it doesn't happen there) I'm using an inline HTML template for forms to be added individually. The addition of forms is done like this: $('#uploadForms').prepend( $('#htmlTemplate').html() ); The problem is that ...

16:11
0
A: Get file contents in java script

Mikko OhtamaaYou need to perform AJAX GET request to URL: http://api.jquery.com/jQuery.get/ Note that the server must support HTTP access control security in the case you load JS file and data file from different servers: https://developer.mozilla.org/En/HTTP_access_control

almost 14k yet stupid answer :(
Ajax request to jquery docs? xD
user2157210
i cant remember more things i used when startede
user2157210
i have audio
user2157210
marquee cursor trail
user2157210
different cursor
16:20
Now that this guy posted an answer, no one will look at my question in the next couple hundred years...
@FlorianMargaine I downvoted both jquery answers.
@DJDavid98 class="upload_form"
@Zirak ?
From the html you posted
Yes, and?
16:22
"as uploadForms is class and not ID." - It is and ID. — DJDavid98 4 mins ago
@Zirak There's clearly an 's' at the end of the word.
Let me edit just so it's more clear
There.
And also there's an underscore and different capitalization, too.
A language that doesn’t have everything is actually easier to program in than some that do. [Dennis M. Ritchie]
Hey, quick question for you guys! When using the double pipe character ( example `x = x || y ), does that catch undefined?
Or do you have to check for the specfically?
@phil did you try ?
!!> undefined || 0
@dystroy Maximum execution time exceeded
16:32
Yes, but this one is letting it through
7
Q: Javascript || or operator with a undefinded variable

bryan sammonI have been doing some reading lately one article I read was from Opera. http://dev.opera.com/articles/view/javascript-best-practices/ In that article they write this: Another common situation in JavaScript is providing a preset value for a variable if it is not defined, like so: if...

even this question tells me
that it should catch it, but it's not :(
@Phil I don't get your precise question.
I am using this equation, var prev_sizes = ',' + sizes[ resp.blank_pricingid ] || '';
@FlorianMargaine That question is a year old, maybe that was his first ever answer when he didn't know anything :)
it's allowing a undefined to get placed into the prev_sizes var
@Phil Add parenthesis
var prev_sizes = ',' + (sizes[ resp.blank_pricingid ] || '');
16:35
ohhhhhhhh
becauwse the ',' doesn't make it undefined!!!!!
THANK YOU :)
hahahaha, makes perfect sense
@XCritics Command moustache does not exist. Did you mean: mustache
@XCritics User -1 was not found.
!!/mustache Phil
haha, what? you think i should grow a mustache?
@XCritics User -1 was not found.
16:39
Worked great!
hahahahahahahaha
alright, that works.
Hey
do you guys know
if there is any medium that you can sell software ideas on?
And just say you also had concept code.
Example code.
@dystroy add #.jpg to the end
16:43
@Necro probably not. Contrary to popular belief ideas have little value. What's valuable is idea+work.
2
@dystroy Thats what i mean iv done the work behind the idea.
just has to be implemented
"the work behind the idea" is the implementation
i think your lost to my meaning
Lets just say you have a cool idea
like a new engine
you make the engine
cool
now you have to sell it
...so you just want to sell software
16:48
I really have no way to do anything about what iv made.
Why do you want to sell it anyway?
I found a way to make images the size of a few hundred bytes to download.
Google images could use something like this.
But its no real good to me.
Keep laughing.
The concept is sound im just sad no one will see it.
> The concept is sound
Ooooooh
Transferring files via speakers?
16:51
1. Make it public with a very restrictive non-commercial license
2. Sell commercial licenses
3. ???
4. Profit!
2
@Necro Let me guess, you convert them to PNG 8-bit and then you decrease the amount of colors.
@Necro I think the best you could get, provided it's really really good, is some fame if you can prove your point (there are examples on the interwebs of good presentations). Such a fame would be extremely valuable and would get you some work in good companies. If it's really good...
Its got nothing to do with degrading images to be smaller.
@OctavianDamiean
I didn't say you degrade them.
But if it's just an idea and the implementation is simple, it's probably worthless.
16:52
"you decrease the amount of colors."
That's not equal to degrading.
@dystroy The implementation is not simple.
So prove your point with a gallery, similar to what Google does with WebP
Convert each pixel to it's hex value and dl as a text file, then have a program that converts it back.
@DJDavid98 No :P.
16:54
Download a different, small file
@dystroy Will patenting the file be worth it?
@dystroy the idea. Sorry.
@Necro Not really.
@Necro No you're not, otherwise you'd have open-sourced it.
I'd really appreciate tho if anyone that has the common sense plugin installed could help me with this question.
Well it would only make sense if you patent it internationally and that is very expensive.
16:56
@DJDavid98 use more jQuery
@OctavianDamiean What are we saying in terms of expensive?
@DJDavid98 $($($($($("*"))))).hide().show().fadeOut().fadeIn()
@Zirak Love how you always throw this shit in people's faces
@Necro I don't have exact prices to tell you but I know that it is very expensive to patent something internationally.
@AmaanCheval I was lost as to what he was talking about.
"No You're not" What?
16:58
@Necro If you were really upset that no one would see it, you wouldn't keep it to yourself
@Necro He said, basically "you're not sad that nobody will see it, because if you were, you would open-source it"
I know that young people often want to patent. And lose money that way. That's because of the urban legends of people getting rich with simple genius ideas they patented. You must be sure you have a really strong, publiable and convincing proof your compression scheme is good before you lose money in the patent system.
Its not something that you can implement in a website. Its in the software, like chrome.
So basically, as long as you don't want to open-source it, just shut up and come back once you've patented it so we can check it out.
!!/define publiable

« first day (912 days earlier)      last day (4261 days later) »