« first day (944 days earlier)      last day (4020 days later) » 

2:00 PM
@OctavianDamiean i have done one, the alert, or anything isnt working but if you try it out of jsfiddle it works #jsfiddle.net/hJvyY/1
 
lol
 
...that "ha ha" came right after a Velvet Underground song ended. It was amazingly in place.
 
@Connor Yeah... it's exactly what @Zirak said
 
Oh man, please don't make the same mistake as jquery and design the same API for both single elements and multiple elements
 
0
Q: How do I limit multiple character input on a keypress event in a contenteditable div?

Romantic ElectronI have a content-editable div and I want to restrict the user input so that multiple characters can not be input on a single keypress?Any idea how I could work it out?

 
@AmaanCheval What was the word you wanted to add to the weasel?
 
@Zirak so what do you suggest for the multiple elements thing, and also how can i tell if the this.currentElement is more than one, i think .length works for classes but its different for tags like h1
 
@Zirak definitely penis.
 
2:09 PM
(1)Make a separate API, (2)no it's not
The easy way out is defining it as an array, whether you select a single element or not.
And don't walk over an array with a for in loop
With extra fries please
 
penis with extra fries?
 
 app.get('h1') === [item: function]
 app.het('.heading') === [h1.heading, h1.heading, h1.heading, h1.heading, h1.heading, item: function]


    with this html

    <h1 class="heading">text1</h1>
    <h1 class="heading">text2</h1>
    <h1 class="heading">text3</h1>
    <h1 class="heading">text4</h1>
    <h1 class="heading">text5</h1>
 
and?
you could have app.getAll
so you can just use querySelector or querySelectorAll
 
Because you're decapitating the h from h1
 
if i add .length to the console.log it is

5 - classes
0 - tags
 
2:14 PM
finalElement === '1'
 
@FlorianMargaine i was thinking that
 
:9473979 so if i done app.getAll and set this.currentElements should i set this.currentElement to undefined? so i can go if(this.currentElement === 'undefined') // we are working with multiple elements?
 
You make me sad
 
@FlorianMargaine Oh no :-(
Where did that come from?
 
1
Q: How bad is it Doc? (Vanilla Javascript)

FajitaNachos2 months ago, I wrote a chrome extension called hotfix. I recently went back to look over the code and it made me cringe a bit. I refactored it a little, but before I get knee deep in it, I would like to ask for suggestions on the best way to proceed. I'm not expecting anyone to completely rewrit...

 
... that's... pretty friggin' sweet.
The extension in the question from feeds
 
@Zirak I think it was have
 
@RyanKinal Whoa!
 
I know, right?
 
2:24 PM
I don't get it...
 
That's a fucking great idea!
 
> Chrome extension to push changes from Chrome Developer Tools to GitHub.
what does that mean?
 
!!/ln
 
@Zirak Command ln does not exist.
 
How will I remember the order now...
!!/learn ln target link_name
 
2:26 PM
@Zirak Command ln learned
 
@FlorianMargaine It means you can use Chrome to edit your JS source, and push the changes directly to GH.
 
Crap.
!!/forget ln
!!/learn ln "`ln target link_name`"
 
@Zirak Command ln forgotten.
@Zirak Command ln learned
 
!!/ln
 
2:26 PM
what is the group name for classes & ids is it selectors?
 
@Zirak ln target link_name
 
@OctavianDamiean I never remember the order of ln -s either.
 
yeah, dont worry
 
@RyanKinal I don't get it... :|
 
I've screwed myself soooo many times by messing that order up...
 
2:27 PM
hey
do you know how to compress different folders in a single archive with tar?
no googling
10 seconds
you guys suck.
 
@Zirak :D
 
tar -czf archive.tar.gz folder1/ folder2/
 
No worries. The world has ended.Big deal.
Also, wtf... my Chrome is FREAKING THE HELL OUT
 
Hello
 
@FlorianMargaine xzf
 
2:29 PM
no, x uncompresses
c compresses
 
@FlorianMargaine Okay... so... let's say I'm editing code for GMScreen. I can open my dev tools, debug, make changes, and then have the changes committed directly to GH. No need to go into an editor, or a separate git client.
 
@FlorianMargaine That's a tool he wrote.
 
@RyanKinal oh, I see
@OctavianDamiean oh right... I always forget about it
 
Sweet idea, right?
 
yeah... I don't know about the "push to github" though
 
2:31 PM
cvf
 
or just "commit"
I guess I like to control my commits
 
var getDetails = function()
{
	var url = "API TO URL"
		return $.ajax({
			type:'GET',
			url:url,
			dataType:'json',
			header:{'Accept-Encoding':'gzip'},
			async:false,
			contentType:'application/json'
		})

}
var data = [];
getDetails().done(function(res){
			data = res.field1;
			var ele;
			for (propName in res.segments){
				ele = propName ? res.field2[propName] : null;
				var val;
				var endlat;
				var nums =0;
				for ( var j=0; j < ele.length;j++)
				{
					data[nums] = ele[j]
					val= ele[j].ele_id;
 
@BenjaminGruenbaum the z is required for compression
 
Yeah, I haven't looked to deep into it
 
@BenjaminGruenbaum Why verbose?
 
2:31 PM
I like seeing what is added to the archive
 
-- "Hello"
-- OMG CODESPLOSION
 
I hate ezpublish
 
its returning null in
Safari only
 
@djtechie What is "it"?
 
No one uses Safari anyway, you shouldn't worry.
 
2:36 PM
I pasted the code above
 
You see? No objections so far.
 
@djtechie ... yes, but which part is returning null?
 
var getDetails = function()
{
	var url = "API TO URL"
		return $.ajax({
			type:'GET',
			url:url,
			dataType:'json',
			header:{'Accept-Encoding':'gzip'},
			async:false,
			contentType:'application/json'
		})

}
var data = [];
getDetails().done(function(res){
			data = res.field1;
			var ele;
			for (propName in res.segments){
				ele = propName ? res.field2[propName] : null;
				var val;
				var endlat;
				var nums =0;
				for ( var j=0; j < ele.length;j++)
				{
					data[nums] = ele[j]
					val= ele[j].ele_id;
 
You've seen nothing. That was a weather balloon, move on.
 
2:38 PM
Alerting data which is coming null
 
-_-
Move your alert into the done function
 
@OctavianDamiean I hate you.
 
:D
@BadgerGirl Take this happy cat. (=^ェ^=)
 
סּ_סּ
 
My friend just came up with arguably the best opening paragraph for any resume I will ever have.
Its 100% true as well.
> During my service in the Armed Forces the United States was never attacked. In my career as a military consultant we were able to kill Osama Bin Laden.
^ lol cracks me up so much
 
2:39 PM
hah
 
@Loktar thahaha :D
 
@Loktar lol. Brilliant.
 
Sounds legit
 
lol yeah its so great. I wonder what people would say if I used it.
 
2:40 PM
@Loktar You know, it is hard to argue against it. I mean he didn't lie. :P
 
> Is this guy serious wtf?
@OctavianDamiean lol exactly
I joined after 9/11 and only did 4 years
we weren't attacked in that time!
 
you consider 9/11 an attack?
 
yeah
 
Considering it as a defensive move?
 
lol
I was about to ask.
 
2:42 PM
"Now that the terrorists see how screwed we are, they feel too much pity to attack"
 
no, but then... there were attacks during his service
A common definition of terrorism is the systematic use or threatened use of violence to intimidate a population or government and thereby effect political, religious, or ideological change. This serves as a list and compilation of acts of terrorism, attempts of terrorism, and other such items pertaining to terrorist activities within the domestic borders of the United States. Attacks by date 1800–99 * November 7, 1837: A pro-slavery mob kills abolitionist Elijah P. Lovejoy, editor of the Alton Observer. * May 21, 1856: Sacking of Lawrence—Pro-Slavery forces enter Lawrence, Kansas to disa...
 
That guy is wearing a top hat. He can't be a terrorist.
 
The 2006 ones are WEEEAK
I joined dec 03 and left sep 07
I couldnt be everywhere @FlorianMargaine could only stop major attacks :P
 
terrorism fighting money would be better spent making cars safer
 
2:44 PM
@SimonSarris I agree to an extent
 
it should be spent researching unicorns.
 
I would like to see the war on drugs money be used for that
 
I'd appreciate a new form of spoon
 
2:45 PM
One that also makes me soup
 
everyone agrees but nobody wants to admit failure, but the war on drugs is done/winding down
DARE took pot out of their curriculum
 
Maybe a fork which generates cake?
 
yeah
@SimonSarris I dont think a lot of supporters of the money spent think the money spent on the war on terror was a failure.
I think Iraq was/is a pretty huge waste of money though
My biggest gripe with terrorism besides the obvious, is how people use it as a stepping stone to strip us of rights
 
Can anyone please help me?
 
"Guys, guys, just let me take some of these rights! Dont worry itll make you safer!"
"You have nothing to worry about anyway you're not a terrorist!"
 
2:47 PM
^- this is why students get "Dunning kruger" [ 2 mins in the video i realized boy i havent have to do anything]
 
rights discussions are always awkward and nebulous
people have a very poor understanding of what makes someone secure or not
which is really too bad
 
@KendallFrey @rlemon brothers , is there any eval like friend of us to make a calculator in C#
 
Hello men
 
//remember florian's eval using calculator ?
 
@djtechie Sorry, I did look, but have no idea
 
2:49 PM
Hello shmiddity
 
@SimonSarris I guess with the low amt of terrorism, violence, etc (Especially when put into perspective throughout world history) we don't need to make any significant changes.
I just hate the argument "Id let the gov do whatever as long as Im safe"
sorry Ill stop talking serious stuffs :P
I love javascript, and canvas!
 
hahahaha
serious stuff is good to talk about
 
yeah I just noticed it got really quiet
felt like a kill joy
 
I agree generally, but I disagree that the argument ends up being "I'd let the gov do whatever as long as I'm safe"
usually its presented in a more subtle way
 
yeah
 
2:55 PM
!!would you like to stay in your new persona for a while?
 
I dont think anyone directly says that. However I just dont agree with the perspective of "Im not doing anything wrong so its ok, I dont have to worry"
 
@Zirak Not at all
 
There's a man on the train that looks vaguely like an uncle of mine
 
@OctavianDamiean Bot don't like it too much
 
I don't think it's him
 
2:56 PM
@Loktar yeah that gets problematic
 
the patriot act just makes me angry really.
People let fear drive them
 
@Darkyen: lex & yacc? It's been forever since I've played with those... (well, the GNU variants). Not quite like an "eval", of course.
 
on the other hand, you dislike the patriot act because you (quite possibly rightly) fear the government's (potential abusive) power
 
OMG
i made a calculator/notepad in C# -> i didnt even had to think!
 
@SimonSarris yes
 
2:57 PM
but yeah we went collectively nuts for a while as a nation, and that's a problem
a bigger problem it seems is stepping back and returning to normal
 
yeah Id love to see that
 
powers granted in (a percieved) emergency tend to stay around
 
@Darkyen I think that's how many websites get built.
 
the country seems so divided right now though :?
 
yeah its hard to get anything done these days
 
2:58 PM
@FizzyTea websites still need some thinking// unless ofcourse dreamweaver
 
yeah exactly, the gov never seems to give up power
 
the last bipartisan measure I liked was the Do Not Call List
 
"Hey guys its cool, income tax is only temporary"
 
821
A: Jon Skeet Facts

Jon SkeetThese are written in the third person so as not to disrupt the style of the thing. But hey, as we all know, Jon Skeet can make 1 == 3 anyway, so it makes no difference. Jon Skeet is immutable. If something's going to change, it's going to have to be the rest of the universe. Jon Skeet's additio...

 
which was like, 2003 :D
 
2:59 PM
lol at least everyone can agree we hate telemarketers
 
@SimonSarris pretty sure a large portion of the people in the U.S. are normally crazy.
 
@twiz people in the US aren't so bad
 
Do you not live in the U.S.? haha
 
compared to other countries people in the US are extremely friendly and generous
I live in New Hampshire, and have traveled to about ~13 countries
 
it is really weird actually. I think extreme people are just reported on too much
 
3:00 PM
I won't argue with that
 
@SimonSarris OK.
any other?
 
yeah @Loktar, its important to remember @twiz that if its in the news, its because its rare
 
I just mean people are crazy, regardless of how friendly they are
Not talking about people in the news
 
Random question, but anyone have any experience with condenser mics?
 
I mean go to any walmart
haha
 
3:01 PM
ie if you read about a murder in your newspaper, thats a good thing, its rare enough that its very noteworthy
they don't print many murder stories in Tegucigalpa (hondouras)
 
very true. I only get my news from twitter haha
 
(not to pick on hondouras, but if you're the murder capital of the world...)
 
which probably isn't any better
 
NH has loads of guns, but the culture is very nonviolent. I've never felt unsafe in NH in my entire life
(not true of, say, parts of upstate New York, not to pick on them)
 
live free or die
haha
isn't that NH?
 
3:03 PM
yes
thats adapted from a toast by john stark
 
@SimonSarris funny enough New York has some of the strictest gun laws :P
which Im sure you knew
 
the stark house is like 100 feet from my house :D
(I live in the historical district of Nashua, NH in a house built in 1840)
 
Please someona can help me? stackoverflow.com/questions/16612261/…
 
@Loktar I don't want to put words in mouths or make too many assumptions here, but I would imagine gun murder violence is totally uncorrelated with gun laws by state. In other words, passing gun laws by themselves probably does not reduce gun murder violence by state.
(as in, take out suicides and accidents, which hinge much more on availability)
 
If you want to basically end gun violence, just end the war on drugs...
that would probably solve about 90% of it
 
3:07 PM
@SimonSarris Im not sure actually, have never really looked into it. However I know cities with major crime have strict gun laws
Chicago, DC, New York
However Detroit and Flint do not
 
detroit doesn't have major crime?
 
no I mean strict laws
detroit and flint dont have strict gun laws
only reason I know that is because Im from MI
so basically I have no idea if there is a correlation
I was agreeing and disagreeing with myself all at the same time
 
haha
I think other factors change the murder rate waaaay more than guns in themselves
 
yeah culture is a huge factor Im sure
 
money for instance
 
3:09 PM
guns are just a politically "easy" target
 
well... a city with a lot of violent crime is going to be more likely to create stricter gun laws...
 
revamping society is hard
 
@Loktar my guess would be more on financial systems (in all its aspects)
 
@jAndy I think it goes back to culture as well. Maybe its a cycle.
most likely a good combination of money and culture
 
yea, agreed
 
3:10 PM
Ok guys... I'm done trying to solve the worlds problems in the Javascript room... haha
 
wheres @rlemon
and @FizzyTea holy hell man I love heman dude!
Mmmeeeermaaaan
 
Hehe! They don't make 'em like they used to.
 
I agree
I just got Masters of the Universe for my intellivision
Im sad there arent many, or modern heman games
 
I decided this character looked the most like me.
 
Can anyone help me?
 
3:14 PM
Yeah, there's a big retro market out there.
 
I've pasted my code above...where I'm getting null alert
 
@Loktar I don't get your facebook quote >:) elaborate please
what is that supposed to mean
 
Please someone can help me? stackoverflow.com/questions/16612261/…
 
@jAndy lol its just randomly funny
because I was in the AF after 9/11, and now im a contractor
I haven't directly contributed to any of that
but its still true
 
Hey everybody. Ping me with your favorite phone apps. Games, tools, whatever.
 
3:19 PM
all related to phones @RyanKinal?
or just in general
 
@RyanKinal airdroid
obviously
 
@RyanKinal Battleheart
 
mobile apps in general
 
I love to use my mobile phone as mobile spy cam
hehe
 
@djtechie: did you post a question about it? Or did it get negative voted and thus now you are here? BTW: Please don't paste code into the room unless it is only a few (2-4) lines. It's easer to refer to a place on the web where the code is pasted.
 
3:20 PM
Ooh, interesting
I'll give it a look
 
0
Q: Is it Wise to disconnect the ui layer from the backend in mobile web apps?

user2390977What's the future when it comes to mobile web development? I mean, traditionally, in the java world, we make use of Java EE technologies such as Spring, Hibernate and some MVC framework like Spring MVC or JSF, RichFaces, Play etc. The UI layer is deployed within the same ear as the rest of the b...

 
@JayC Ok..I'll take care of it but can you please help me on this issue?
 
when I bought my smartphone, the salesman got me with the point that I'm allowed to.. without any charge or costs
worldwide...
take pictures
 
djtechie: AJAX is asynchronous.... that's your problem. And please don't try to make it synchronous, either.
just add another done callback or something.
 
I want to store the object I'm getting into data array
 
3:25 PM
By that, put the alert within the added done callback.
 
I should be able to use that data array out of the done
 
Anybody got a decent source for just a list of english words? Legit english words, no proper nouns or things like "ab"?
 
yes... but the done callback only fires after the ajax response is actually retrieved.
 
I'm storing the result in data array when its done then i want to access that data array out of the done event to
 
@Zirak /usr/share/dict/words
 
3:26 PM
> no proper nouns or things like "ab"
 
hence why I'm saying use another done invocation so you can separate your logic out.
 
Yes...to make it possible I've put async:false and now I'm getting result in data array out of the done but some how its not working in safari only
 
hey all. has anyone ever used highlight.js?
 
nooooooooooooooo
 
3:27 PM
maybe also helpful
21
Q: Can I get an English dictionary word list somewhere?

ArjunI'm creating this cool answer engine that answers "who" questions. I will share the URL soon. However, I need a list of English words for that, so find "proper nouns". Can I get an English dictionary dump or just a list of all English words, preferably British and American. Any help will be ama...

 
I asked you not to make it synchronous... but yet you did it anyway :-P
 
ooohh noooo a snake.... its a snake badgergirl .......
 
@jAndy That seems pretty good
79768 words...wonder how many will hold after plurals removed
 
cat file | uniq | wc -l
 
english language has tons of words actually, lots of doubles (in regard to content) which pretty much say the same thing
 
3:30 PM
You mean to say I should remove async:false
?
 
@djtechie: yes! you don't need it.
 
Meant plurals. whoops.
 
OK..then how to get out of .done?
 
how are you going to remove them? just check the s?
 
3:31 PM
i hate ie7.
 
If the previous line had the same word without the s
Not fool-proof, but good enough
 
we need a phrase / buzzword punishment
 
$.ajax({...}).done(function(){..}).done(function(){..}) you can add any number of done invocations.
 
like.. everytime someone smashes a "I hate ie6" or something.. he loses 10rep
:p
@JayC buts its so much more beautiful to collect ajax promises in a Array and work with $.when.apply() lateron
which of course doesn't help you at all if you really want to have single syncronized requests
 
@jAndy: that's about what I was going to say next
 
3:36 PM
It might be basic question but what is promises?
 
but, without really having thought about it, if you ever have the requirement to let run more than 2 consecutive, sequentially and syncronized server-requests in a row, you're doing something very wrong
 
@jAndy: he doesn't want synchronized requests, he just wants code to run when the response is delivered.
 
fricken hot outside
 
@JayC I see
 
@Shmiddty youtube.com/watch?v=9qkUYE7NNys when ever anyone mentions it being warm / hot.
 
3:40 PM
well, I was just preaching that REQ->WaitResponse->REQ->WaitResponse->REQ->WaitResponse->ETC seems like a fail from the getgo, regardless if the actual xhr runs sync or async
 
is bad practice to load ajax html with <link> to css files?
 
does anyone see a alert here? its not alerting for me? jsfiddle.net/3nqMM
 
each html module needs his own css file, do i need to put it obligatory in <head> tags?
 
@djtechie: ... it's what you are using when you are using done. jQuery creates a special jqxhr object that implements the promise/Deferred interface. Promises allow you to add callbacks whenever the promise is resolved or failed.
 
pastebin.com/BCcvk2C8 <- please tell me there is a better way to do that
 
3:44 PM
anyone?
 
// though i removed 8 variables out of the code ;] and about 40 lines.
 
@Darkyen Y U CHEAT ON JS
 
I don't see the pattern in this:

111110101
000011000
000011001
001001101
110000100
000010110
000000000
101000100
100101001
101111000
100101000

which translates to (base 10): 501, 24, 25, 77, 388, 22, 0, 324, 297, 376, 296
 
@Darkyen you're in the wrong chat room , try #c
 
@JayC so basically promise is an object?
 
3:46 PM
@jAndy I didn't know @Darkyen and @JonSkeet were an item
 
item ? tools!
 
@jAndy cause exams
i have to make calculator in .net!!
omg soo pro aintit !!
 
@Darkyen I just saw a cat which pushed a watermelon out of a lake ...
 
@djtechie: yes, it's an object, like most things are.
 
and also i needa make notepad init too!!
 
3:47 PM
@Connor no it doesn't alerts, cause you just defined a method but you havent's called that
 
naaahh I'm just kidding with you <3
 
:-)
lol i am so worried about how am i going to make a calculator / notepad
and print star patterns in C# & .net they are too hard :(
 
hmm so what's the Deferred what is the difference between promise and Deferred ?
 
@Darkyen ask in #C you are in the wrong room chat
 
like.. real "hard" or just incapable ?
 
3:48 PM
@okok i am just having fun bro :-)
 
oh oh ok
 
@jAndy Its hard bro the syntax , you know i dislike verbose syntax to begin with and then xaml & the way visual studio authors it looks like inline C#Script to me
 
as you wish
 
Click="Button1_Click()"
 
thats gross actually
 
3:49 PM
do anyone knows if loading <link> tags inside body is a bad practice?
do the necessary has to stay inside <head> ?
 
The fact your asking that question gives you the answer?
 
off topic, but can't windows controls in .NET have values associated with them?
 
to me mike?
 
(off topic per JavaScript room, on topic per Darkyen's problem)
 
@Shmiddty What is it?
 
3:50 PM
@okok yes.
 
that'd remove some of the clutter.
 
@mikedidthis well i know it is a bad practice but i mean, can i do it? it seems it works anyway ...
not sure if i'll get some problem with some browser i think not , but better to ask experienced people
:P
@mikedidthis
 
Dude, this is your decision. If your comfortable adding a bad practice to your code, do it.
 
@mikedidthis i mean i can append links to css via jquery before send ajax ... but then it'a a bad practice too :(
 
3:54 PM
and i have to put and remove
 
then maybe rethink your solution
 
@okok: IIRC, links should only go in head. you might get by without putting them there (there might be some libraries or browsers that move them there), but no guarantees.
s/putting them there/putting them there *yourself*/
 
@Shmiddty Ooh, #anagol gives you live updates of new submissions. :-)
 
@FizzyTea yeah
 
@JayC sure thanks, problem is for me it works putting them in html, and since i load them in html using ajax, i'll get no problemsi mean, it's all hidden at the end ...
so i'm in dubt
will be good cause every html file will get his own <link> :P ..
 
3:59 PM
0
Q: Boiler.js - A new JavaScript utility library. Room for improvement?

XaxisBoiler.js @ GitHub Boiler.js Homepage I wrote Boiler.js from the ground up for a few reasons: Underscore.js and other similar libraries do not have enough methods for working with object-literals in my opinion. Most of Underscore.js and other similar libraries method's do not support deep it...

0
Q: JScript.NET Exec() StdOut hangs, StdErr 2>&1 and redirect to file tricks not working

user225084Been doing hours of research on this and i'm thoroughly stuck, here's how far i've gotten... Here's my complete code divided by comments. (IIS 7.5, page location:127.0.0.1) var shell=new ActiveXObject("WScript.Shell"); var shellExec=shell.Exec("%comspec% bitcoind getinfo 2>&1"); This part runs fin...

 

« first day (944 days earlier)      last day (4020 days later) »