« first day (961 days earlier)      last day (3988 days later) » 

4:02 AM
theres sensationalism and drama in ANY news field
 
ok so this is ridiculous var zero = new Function("return "+(+!!(Math.random() > 3)))();
 
if u like vim... cool. php? okay! if it eorks for you, great. If you know haskell, don't laugh at the cobol guy
ok maybe the cobol guy u can laugh at
i just thought about when i meet guys after years. the "so what are yuou upto these days" comes up
and he says "IT.."
"oh, what field?"
"point of sale"
@Esailija looking at it now
 
@skopp nvm I was the problem
 
wait...
 
4:07 AM
I didn't realize my default grunt doesn't do minification
 
EP 09 Game of thrones is out DLing
 
so I was looking at old file that didn't have that optimization
I used the minification task and I got most recent file and it works now
 
 
use ST2
@Feeds bravo
 
@skopp I gave you my code and the problem
 
4:12 AM
@Esailija closure removes the var, right?
 
no doesn't remove anything, never mind it =D
 
im not, im thinking back
to an issue i had once
not var, ffunction
@DemCodeLines sorry, kept gewtting cut off
 
Gross, stuck in traffic.
 
@phenomnomnominal do you smoke
@Esailija it worked perfectly
Closure doesn't lie you stating that a fiunction is to follow
 
@skopp I don't smoke or drink
 
4:26 AM
@skopp ok, it's pretty good now
Completed 3000000 operations in 72 milliseconds.  41666667 OP/s when using when using DS.Map with integers
Completed 3000000 operations in 2693 milliseconds.  1113999 OP/s when using JSHashtable with integers
Completed 3000000 operations in 42 milliseconds.  71428571 OP/s when using Native with integers
Completed 2000000 operations in 163 milliseconds.  12269939 OP/s when using DS.Map with strings
Completed 2000000 operations in 709 milliseconds.  2820874 OP/s when using JSHashtable with strings
 
i dont drink
never did
except for ginger beer
@Esailija what did you do after
its not about minification btw
but it's better to minify than unwittingly in/out-dent
 
:P
 
in a way it doesnt likr
let me tell u how i learnt to deal with closure
after months
i convert it to coffee
then it becomes clearer what the cases are
then back to JS, but dont declare functions
also it seems to like this // ==ClosureCompiler==
// @output_file_name default.js
// @compilation_level SIMPLE_OPTIMIZATIONS
// ==/ClosureCompiler==
 
I am using local closure compiler
 
local?
 
4:33 AM
I have installed it locally on my computer, I don't use the web page
 
in an IDE
eclipse or something
 
What's up hooligans
 
no just standalone
you can do git clone on their repo and run ant
 
uh... you wrotte the compiler
oh
welll its more or less the same concept
Google chANGES their API rules and things too often and without warning
i need an idea for a nice app
to build
omg am i alone
@Esailija
 
4:48 AM
sup
 
1 sec
2 questions.
1: u know how sometimes ion source coder u see js and css files with ?_12345173\ after them
im looking for an exact example
 
ok
 
yeah like site. com/ css/bd.948.css?1368733863631
 
loading very slowly
 
not suoposed to at all
its not supposed to have linked
there.
wtf is that ?121424 part
where does it come from
 
4:58 AM
it's cache buster
 
also thew way the file is named - with two periods
 
var cssSrc = "http://www.mysite.com/main.css?" + (+new Date())
it's not necessarily even a file
URL can be anything
and file names can have multiple periods
 
you cannot know that
it probably is but it can be arbitrary server response
 
you're talking generally
i dont think its the case here
because it's mongo i think. with
sockjs
 
5:05 AM
ok
 
and it parses urls with a shebang
#!
except for cache
and i noticed that the script looks for this:
<protocol> ://<tld> . <string> / css OR js / kd . <number> . <css or js> ? <token>
only css and js files
if you removew that token at the end it will still load
i wonder if it isnt a remnant from Sass
yup. it has sprites
@BadgerGirl
 
@skopp hi
 
:O
you called me a number
for a sec. i saw it
im stressed out.
exams
and work
u
 
5:21 AM
@AyanPal Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
I'm very happy.
 
..
oh, i thought u were going to elaborate
:p
why so happy
ahhh hahaha
naughty naughty
ok.
i found a little NES emulator in javascript
been contemplating whether to share the link with you
 
@HovanessBartamian Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@CapricaSix why do you never talk to me like that anymore?
@CapricaSix this is getting too serious
i think you should go back to TRON.
 
@skopp Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
5:27 AM
Not sure if :P
 
lol
won't
 
do you know any plugin on js or jquery that works like excel ?
 
google docs?
 
google scripts
to be exact
 
@skopp Yes, share it.
 
5:30 AM
well it depends if u want that
 
it is like jqgrid?
 
I don't know if my boyfriend would like it.
 
not you
YOU
 
or put a @usersomethinghere?
 
@hashtagalias
first i must dedicate a love song to the bot chick
no... not you, ;
 
5:35 AM
@BadgerGirl OMG you have a boyfriend ?
 
i dont know what iot wAS
 
Amazing. Prague's public transport is severely cut down due to the floods. Well, fine. Happens - it's raining after all. What's great is that the information web page is pretty much overloaded too. What I do like, however, is that I don't have to travel anywhere today.
 
@BenjaminGruenbaum I do, and stop pinging me or I'll tell your wife.
 
tO @CapricaSix
and i want all my Bionicle LEGO robots back
and the giant buzz ightyear
 
@JoseGVaranam Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
5:42 AM
>:{
here badger girl
plerase be careful
addictive
i was playing tennis for almost 45 minutes
 
@skopp Can you pass this game? copy.sh/iw
 
which will be the best gesture event library for ipad
 
schecking
got it
its in the name
u must stay insync with the apple
 
@Sam Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
um odd question but why are updates released on in early april 5 2013 like im installing node, and a bunch of gnu stuff and projects on git alot of things have their last update on april 4-5 2013 any rhyme or reason for this
 
5:53 AM
rephrase please
 
@TrevorRudolph Because that's when they got updated?
@skopp Have you said anything constructive, ever?
 
why are different open source projects releasing updates on april 5th 2013
 
@Zirak why
 
Maybe the same guy contributed to several. Maybe it's witchcraft. What's wrong with april 5th?
Seems like a perfectly fine date to update.
 
aahaha i just think it may be a cycle thing idk thats my only guess
 
5:54 AM
I'd be amazed if different project didn't get updated at an exact same date once in a while.
 
it could be a law change in some obscure african or american country
 
usually things are released every quarter
 
but its like random ones from all over the place.... actually most are from gnu
kk it might be gnu deadlines...
 
Or the same guy. If you really care, check the commit history.
7 messages moved to recycle bin
 
good idea
 
5:59 AM
@Zirak
 
thanks, idk why i jumped into js room when im making a linux iniramfs
bye!
 
"it could be a law change in some obscure african or american country"
 
Cool. "You cannot counterflag your own message" but you can see the flag. Any idea why was it flagged?
 
Very constructive answer.
Even more relevant
 
By 'obscure', I meant "not known to most people"
 
6:05 AM
hehe
 
not "whose existence is disputed"
I can't see how that is rude
 
I just realized something
room mode changed to Gallery: anyone may enter, but only approved users can talk
 
me neither
 
!!/mute 1417189 "continued stupidity and irrelevance"
 
6:06 AM
who flagged then?
 
@Zirak Muted user 1417189
 
I'm cool with that
 
Why are people pinging me for access
 
@Gacnt because you're room owner and we're in gallery mode, don't approve :)
 
Not the plural "people", one person, who was just muted
 
6:08 AM
I just don't know who 1417189 is
I'm going back to what I was doing
 
@Zirak you forgot to set some timeout
 
Because I haven't implemented one yet
 
oh
!!/help mute
 
@JanDvorak mute: Mutes a user. /mute usrid reason
 
6:10 AM
Anybody ever watch Hemloch Grove on Netflix
It's pretty good
 
what is the proper way to write css manupulation,
like this

$(document).ready(function(){
	$("h1").mouseenter(function(){
		$(this).css({
			"background" : "red"
		});
	});
});

or like this ?

$(document).ready(function(){
	$("h1").mouseenter(function(){
		$(this).css("background", "red");
	});
});
 
@CallMeDummy look up the CSS :hover pseudo-class
 
0
Q: Few clarifications about the DOM

user1720897I have been trying to understand the DOM and although, I have a fair idea of what it is, there are certain ideas I just cannot pin down. I will list down what I think the DOM is and my questions will be inline. 1.The DOM is a fully object-oriented representation of the web page.The W3C DOM stan...

 
First...please format your code (hit ctrl+k while editing). Second, they're both exactly the same. Third, they're both the wrong way of doing it - manipulate non-dynamic styles (i.e. anything not animation related) with css.
 
@Zirak , in the tutorial it was animate() , I didn't know it was supposed to be used with animte only
 
6:16 AM
@CallMeDummy if you're worried about whitespace, it's largely irrelevant (just don't overdo it in either direction). If you're worried about object-style/two-argument-style, it's largely irrelevant too. And yes, a CSS-only solution would probably be the best here.
@CallMeDummy you shouldn't do in Javascript what you can do trivially in CSS
 
My intention was that static things go with css, dynamic things with js. The only time you want dynamic styling is when you're animating, and you're not the one implementing the animations, so you shouldn't use it at all.
 
even CSS can animate nowadays
 
@JanDvorak I am going through a jQuery tutorial so I am just trying out things as specified in the tutorial, Secondly I was confused on using {} braces between css properties and values
 
!!/tell CallMeDummy jquery css
 
6:20 AM
@CallMeDummy the curly braces denote an object literal. This lets you set multiple CSS properties with one call. The other version passes two separate arguments to .css, which then sets a single property.
 
The second portion is on setting styles.
 
@CapricaSix Thanks, I already have it opened in one of my tabs
@JanDvorak Is it a good practice to use curly braces even if I am modifying a single property ?
 
It doesn't matter
 
Use what you like better
 
understood, thank u
 
6:23 AM
@CallMeDummy You dummy.
 
Note that the object literal syntax doesn't require the newlines inside: .css({keyName: "textual value", secondKey: 100})
avoid overlong lines, however
 
aye aye sir ^_^
 
@Zirak when should we unban Skopp?
 
@JanDvorak When you feel like it.
 
6:29 AM
what about now?
Could 20m be enough?
 
No. He decided to invite me to random rooms. He's a child.
 
I'm handing you the authority to unban him, then :-)
 
@Zirak you know, we can just flag him if you find him annoying 6 flags by 10K users suspend a user across the system
 
@BenjaminGruenbaum mods would rather see us handle that, IIRC
 
Pro Tip: It has been 1370241399.534284 seconds since the start of 1970
 
6:37 AM
That's not a tip
 
Come on Crocodile Dundee, you're missing the other half of that sentence!
 
@JanDvorak No mods needed, 6 flags auto-ban a user
Also, the site expects us to moderate ourselves but doesn't give us the tools to do that appropriately imo. These sort of users should not be such a problem to begin with
 
Can anyone help me with this problem stackoverflow.com/questions/16775620/…
 
Javascript, javascript you're so fine you blow my mind hey javascript
 
@gacnt : agreed]
 
6:53 AM
I can't decide if it means I'm weak or moral or anything.
!!/unmute 1417189
 
@Zirak Unmuted user 1417189
 
room mode changed to Public: anyone may enter and talk
 
Here's Johnny
 
@Zirak I would wait a little until switching off gallery
 
jan
i did to you what i did to him ... ask him why
 
6:55 AM
@effbott Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
...the too well-known feeling of having made a mistake creeps up on me.
 
@Zirak What are you working on
 
I was referring to unmuting skopp
 
I'm asking in general, not in reply to anything you've said ^^
 
G'day
 
7:01 AM
I thought you meant turning off the gallery mode
@alex hello
 
Toying with the idea of a Prolog adventure game
 
@Zirak sounds like a cool project
Has anyone worked on a NES emulator before?
 
I have the story in my head, just need a good few puzzles to start coding.
 
Is it gonna be graphical? I'm not sure if that's what 'prolog' entitles
 
I have some questions to ask about implementing the PPU (in JavaScript, but shouldn't matter)
If not, I will slowly step backwards..
 
7:03 AM
Prolog is a general purpose logic programming language associated with artificial intelligence and computational linguistics. Prolog has its roots in first-order logic, a formal logic, and unlike many other programming languages, Prolog is declarative: the program logic is expressed in terms of relations, represented as facts and rules. A computation is initiated by running a query over these relations. The language was first conceived by a group around Alain Colmerauer in Marseille, France, in the early 1970s and the first Prolog system was developed in 1972 by Colmerauer with Philip...
 
!!/ google ppu
 
Oh it's a language
 
PPU -> Picture Processing Unit
 
@alex Just ask matt damon
 
7:04 AM
@Matt Damon Hey...
 
image processing = image-loading + bunch of math + image-storage/upload/display. #2 is kinda difficult.
unless you mean simple convolution effects
 
I took my dog to the dog park today, it was fun
 
Someone come here please, I need test subjects
 
in Room for Zirak and rlemon, 16 secs ago, by Zirak
oh yeah, I banned Florian
Thank you ._.
 
user1596138
Haha
 
7:20 AM
What would be more efficient, a for loop inside the main function, or however many arguments to a function and loop through arguments[]
 
what do you want to do ?
 
We'll use the mute function of Ziraks bot for example, if I did
beer!/mute "@FlorianMargaine 'He misbehaved' 1m", "@Gacnt 'Hes just too awesome' 1m"
 
@Gacnt You do not have permission to use the command mute
 
I intended to write "function". It came out as fybctuib
 
7:29 AM
@ap.singh Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
sorry...
 
can anyone help me in this ques
1
Q: Substring text with javascript including html tags

ap.singhi wanted to substring a string something like follow. And i have start position and length of the string . i have checked this ques Substring text with html tags in javascript. But in this substring is performing from 0 but i have a random start position. Any idea about how it will done var str...

 
@ap.singh just use an HTML parser..
@ap.singh use createElement to create a temp element, throw the stuff in, select the span, or p or whatever and replace the text
@ap.singh there you go
0
A: Substring text with javascript including html tags

Benjamin GruenbaumHere is a native DOM API approach to do this sort of thing. The browser already has powerful built in HTML parsing abilities. No need to re-invent the wheel var el = document.createElement("div"); el.innerHTML = var str = 'Lorem ipsum <p>dolor <strong>sit</strong> amet</p>, consectetur adipiscin...

 
ok, I did an overhaul of the permission stuff. If shit doesn't work, yell at me.
/mute now doesn't accept a reason (instead it'll link back to the message), and accepts a duration
!!/help mute
 
@Zirak mute: Mutes a user. /mute usrid duration Duration should be in the format n[mhd] for n minutes/hours/days. If only n is provided, minutes is assumed.
 
7:46 AM
i have tried so many things. Some one has suggest me this solution but its only working in chrome not in mozila jsfiddle.net/aps123/2ULbK/30
 
@ap.singh I just posted an ANSWER to your question...
@ap.singh don't use code you don't understand, don't just copy paste functions you don't understand
 
@Zirak @ME@ME@ME@ME!
 
@BenjaminGruenbaum not i am not doing copy paste . actually i am working on this from last 15 days and i have tried so many things. But nothing works.
 
Read my answer
 
7:52 AM
I need another set of eyes
Anybody see any errors, it compiles just fine, but errors on run
 
ew vim, vim is for noobs
 
I lub vim
 
@Gacnt what errors?
 
I miss people who take screenshots of code without providing context or what goes wrong
 
/Users/GacntMac/Documents/Javascript/adventurecssgame/node_modules/express/node_modules/connect/lib/proto.js:104
    , fqdn = ~req.url.indexOf('://')
                 ^
TypeError: Cannot read property 'url' of undefined
  at Function.app.handle (/Users/GacntMac/Documents/Javascript/adventurecssgame/node_modules/express/node_modules/connect/lib/proto.js:104:18)
  at Server.app (/Users/GacntMac/Documents/Javascript/adventurecssgame/node_modules/express/node_modules/connect/lib/connect.js:65:37)
  at Server.g (events.js:175:14)
I was getting to that
Just gotta relax BRUH
 
7:53 AM
Also, there're a perfectly good set of eyes in your background
 
@BenjaminGruenbaum do you use nano?
 
@Gacnt I think you're lion
 
LOL
@BenjaminGruenbaum See anything wrong there, it be drivin me bananas
 
@badbetonbreakbutbedbackbone only word, winword is the best editor
@Gacnt node has a debugger, you can add a watch to request,
 
@BenjaminGruenbaum oh ok, you on windows :P never used mac shell?
 
7:55 AM
Why else would it have the word "win" in it?
 
@badbetonbreakbutbedbackbone never
 
I'm just not even gonna bother with it, I'll just leave it as .js
 
i can't understand why vim is assumed better then nano ...
i hate vim comands :D
@BenjaminGruenbaum why using win? cause job pc?
@Zirak you on windows too?
 
@badbetonbreakbutbedbackbone because nano sucks balls?
 
7:59 AM
@FlorianMargaine but why it sucks? :D i like it :P
 
it's like notepad...
 
more simple ...
 

« first day (961 days earlier)      last day (3988 days later) »