« first day (836 days earlier)      last day (4104 days later) » 

12:01 AM
this look right?
change currency as needed
if so its cheaper to live in Canada bro.
even in Ontario which is a higher priced province to live in.
 
Yeah it looks about right
 
for a 3 bedroom appt in a tri-plex I pay $975 CND
thats $1164.12 NZ$
 
a month?
or week?
 
all inclusive
a month
 
Fuck that's nuts
 
12:04 AM
top floor.
 
I pay $210 a week for a nice room in a nice house in the middle of town
It is price to live here
Electronics are expensive
internet is expensive
it's all just because of the distance
 
bottom floor 1 bedroom (same everything else, kitchen, dining room, and living room. one bath. hydro water heat included) for $675/mo
parking is free. coin laundry on site.
 
That's cheap.. when I lived near geneva for a year (on the french side of the border though) I paid around 900€ per month... and that was not even right in a big city
 
Kitchener Waterloo isn't a big city (half million people) but we have a huge tech sector.
 
Yeah but it is all relative to income isnt it?
 
12:06 AM
lots of tech jobs.
@phenomnomnominal whats your "job title" and how many years have you been doing it?
 
My current job title is "Summer Intern" haha, because I'm still studying.
 
our median for "Software Developer/Programmer/Software Designer/etc" is C$60,014 - C$109,572
 
But it would be a graduate roll if I wasn't going back for masters
 
so 80K
I make no where near this.. but expect the lower end to start.
$71654.92 NZ$/year
before taxes.
 
If i was staying on full time i'd be on about $60K before tax
 
12:08 AM
60K NZ$?
 
$50253.36 here
 
yea not bad for a entry level.
here with a degree you can expect about ten k more though.
 
Yeah not bad at all, but we still have massive problems with new grads going overseas
 
12:09 AM
cost of living is slightly less.
win win.
 
People live here for the lifestyle
 
DONT move to Toronto - raped with prices everywhere I say! << to all
 
I can expect to be on probably 80-90k in 3-5 years?
 
Kitchener Waterloo is where it is at for tech jobs. We founded RIM and have google offices MS offices and tonnes of startups + more to choose from.
@phenomnomnominal depending on company and skill.
check out the monster etc for jobs in Kitchener Waterloo area
 
Haha that was a statement, I meant if I stay here, but yeah looks like I'd earn quite a bit more there
On average
 
12:12 AM
as is, seems like we have a pretty similar lifestyle to yours. it's cold here- does it get very cold there?
 
Where I am, it's fairly fine,it's very rare for it to get into the negatives
8-10 degrees C is probabaly a 'normal' winter day
 
summers here are 25-35C (+ with humidity)
winters are -10 to -35/40 (+ with windchill)
you get the benefit of being surrounded by water
 
18-28C Summer and 5-15 Winter here would be a rough guess
 
yea you get the same weather as Vancouver Island BC
they get a bit colder in the winter
 
Down south it gets a bit colder, but not too much. Anything colder than like -5 is fairly unheard of
Spending summer down here then popping up to Canada for summer would be quite a nice life
 
12:16 AM
ohh up north you get much colder here.
i'm talking where I live.
 
I know lots of Snowboarders/Skiers who do the opposite for winter.
Yeah well you're practically Arctic up the top there. Even the south of the south island is still pretty far from Antarctica
 
The best part about Canada (if you don't mind a bit of traveling) is that you can in the span of a weekend go from beaches to hilltops snowboarding.
 
> The furthest you can be from the ocean in New Zealand is 119.44km.
And it's probably not much further for mountains haha
 
12:39 AM
how to find and replace in sublime text 2? .. can only seem to find
 
Ctrl + H
 
nice
love sublime text.. sad that I will continue to click "cancel" to the upsale popup for the rest of time until they do something more inconvenient. . - the infrequent upsale popup is so Un-inconvenient that I actually enjoy clicking "cancel" - "Yay still free =] "
 
yes - it's pretty expensive
but I'm wondering buying it
 
12:54 AM
 
!!/todo add "Get/learn ST2"
 
@SomeKittens Item(s) added.
 
!!/todo
 
@SomeKittens (0)Learn Sublime Text 2, (1)Get/learn ST2
 
...
 
12:59 AM
HA
 
/me sees a trend
 
Well done
 
!!/todo add "kill everyone who does not use vim"
 
@BadgerGirl Item(s) added.
 
Stupid 0 indexing for real world things.
 
1:06 AM
whats a good reason to start using vim?
!!/google "whats a good reason to start using vim?"
 
Same reason people start smoking.
 
@bushdiver The Google contains no such knowledge
 
All the cool kids do it
 
ah
then I am definitely not invited
does javascript have something similar to PHP's array_diff() ?
 
underscore does
 
1:15 AM
ah _.difference(array, *others) nice
 
I have a presentation due tomorrow on "Finding out what the customer wants." I tried to ask my teacher what he wanted in my presentation. He said "What you want to put in it"

YARG
 
Is that meant to be ironic?
Like was he being clever, or just a dick
 
Clever. He did actually follow up with more information.
If he hadn't, it would be kittens all the way!
 
1:51 AM
Hello. I have extremely weird problem, for me it seems to be bug of javascript itself or my fundamental misunderstanding. I've one text input change it's value, get the new value but screen does not update: `input.value = ''new`
`console.log(input.value) //new value`
but in browser I see the old value
 
I hate the accepted answer here:
832
Q: What is the most efficient way to clone a JavaScript object?

Jeffrey SchrabWhat is the most efficient way to clone a JavaScript object? I've seen: obj = eval(uneval(o)); but that's not cross platform (FF only). I've done (in Mootools 1.2) things like this: obj = JSON.decode(JSON.encode(o)); but question the efficiency. I've also seen recursive copying function, et...

 
document.getElementById(idOfInput).value = 'new'
 
What can we do to fix that?
 
I have absolutely no idea what causes such a strange behavior (on webkit and gecko)
 
@bfavaretto Upvote the one you like
 
1:53 AM
@SomeKittens yes, i did that above, i'm sorry I can't post the code but it's a bit long and I wonder if anybody else has such a problem before
 
With that snippet, we can't help you.
 
@SomeKittens The one I like has 67 votes. Resig's has 1450 (downvoted it already). It's a jQuery answer to a non-jQuery question. And extremely misleading for new users (they think, oh, so all I need to clone an object is jQuery)
 
Yeah, I don't like it either. There just isn't much you can do about it.
Meta will just tell you that "the community decided"
@ThiefMaster probably can do something about it but is bound by mod rules.
People in large numbers are idiots.
 
I was thinking about going to meta about this, but I just assumed what you said. Maybe we could start a "let's downvote resig" movement here :)
 
You'd get 20 dv, tops.
 
1:59 AM
Hahaha true
 
It's one of the reasons I stopped going on main. Stack has an apathy problem and no one admits it.
 
wow
 
oh my God, I've found why was that weird behaviour while trying to clean the code to share it with you
 
he has 20k rep.. and has given 10 fucking answers?
2
such BS.
 
@Loktar he created jQuery... So everyone thinks he must be right all the time
 
2:02 AM
i'm settings the new value, but two screens of code later reset the value with another function which should stay inside if, but it isn't
 
yeah, just pretty ridiculous
 
thanks anyway, i've lost two hours because i close brackets one line earlier, but if I didn't start to clean the code to share it with you, maybe I'd have lost two hours more
good day everybody :)
 
@erik1001 Check out the Clean Code talks. I have a hunch you'll like them
 
2:19 AM
Does anyone have a second to help me trouble shoot the funky scroll problem / offset / conflict I am fighting? stackoverflow.com/questions/14540535/…
 
@DigitalMediaGuy Sorry, I don't work with jQuery
 
yeah... using a plugin called local scroll :-/
 
Create a jsfiddle that narrows down what the problem is and then you might get some better help.
 
3:06 AM
@SomeKittens It's up to the asker which answer he accepts.. otherwise crap like that answer wouldn't be there anymore for sure:
-47
A: Why use try … finally without a catch clause?

Pankaj UpadhyayCatching errors/exception and handling them in a neat manner is highly recommended even if not mandatory. The reason I say this is because I believe every developer should know and tackle the behavior of his/her application otherwise he hasn't completed his job in a duly manner. There is no sit...

 
Yeah, that's what I was saying....
 
3:29 AM
Accept > Community
 
Of course weinre works on devices that you don't need it to work on
 
 
3 hours later…
6:16 AM
0
Q: Does javascript support numerically indexed arrays with a more optimized algorithm than an associative array?

Nathan C. TreschI know that Python, Perl, Java, Lua and obviously C (as it's the only array that's in ANSI standard afaik) support faster looking of numerically indexed arrays than doing a hash lookup or anything like that. Does Javascript also? As an example in code of what I mean, in the case of Perl: for(...

 
6:27 AM
@SomeKittens Why don't you work with jQuery?
Yikes, I just realized how long ago @SomeKittens posted that.
 
Lots of people see no advantage to jQuery
 
Isn't it like writing shorthand? I don't understand why they wouldn't see any advantage in using it.
 
Because it is a lot of code, it's quite a bloated library
 
isn't 93kb a drop in the bucket?
Or couldn't you use Google's Hosted Library to effectively wipe out the download altogether?
Do purists write their own plugins for absolutely everything as well?
 
6:44 AM
They aren't plugins if you aren't using jQuery
jQuery is mostly a DOM abstraction library. Most people don't even realize that and think that it makes JavaScript itself better (it does in some places, but that isn't the point)
 
Fair, let me rephrase. Do purists write absolutely everything themselves? What do they do when something excellent has been written but is reliant on a library?
 
I think it's okay to use it if you know how it works. I don't think it's okay to just not learn JavaScript and try jQuery to just get things done quickly without having any idea of how
I haven't used jQuery yet. So I guess so
As I said, though, if I need jQuery, I don't think I'll have a problem with using it
I just haven't felt the need for it yet
 
Interesting
 
One of the main benefits of jQuery is that it smooths out the differences between browsers for a lot of things like ajax. But if you ignore IE, you don't really need that any more
 
7:10 AM
In what case would one ignore IE altogether?
 
When doing something that has to have WebGL, for example
 
7:27 AM
or webrtc
@ZachShallbetter people that like modular JS use npm
jQuery isn't modular
I don't rewrite everything. I use a shit ton of modules
 
@ZachShallbetter most of us use some minimalistic libraries for specific tasks : microjs.com/#
 
7:50 AM
@tereško you should use commonJS + browserify + npm
 
8:04 AM
why ?
i do not use node
why should i start using some node related crap ?
 
Hey everyone, I have a node-related question. Is anyone in here familiar with it? :)
 
Probably.
 
"Don't ask to ask, just ask"
 
Nice. I'll remember that.
So I've got an iOS app I'm building. I'm onto creating the database for it. I decided I would go with node (I love it!), I was originally working with mongodb thinking that it would be fine as advised by another SO user. It turns out that I couldn't actually find a way other than RESTful API to actually use mongoDB/node as database solution for my app.
I would really like to use node because as I said before, I really like it. The only thing that concerns me about doing HTTP requests is the amount of security and authentication I'm afraid I'll have to setup. Also, I have read from multiple sources that mongo isn't good for a mobile app.
 
8:19 AM
@tereško modular JS
 
So my question is what are the best node solutions you guys know of for an endpoint to a mobile application.
 
being able to be modular
 
@Raynos so you are saying that i need to write node.js to have modular JS ?
why?
 
No.
I meant commonJS is just awesome
 
@tereško because you get to write modular code without worrying about shitty browser-related issues, like implied globals and stuff.
@tereško this is some code written using browserify github.com/Ralt/Snake/blob/gh-pages/js/main.js
@jsksma2 why can't you write a restful api with mongodb?
mongodb is just a database, your node code is the one using it and providing a restful api
 
8:29 AM
I can. I already did actually. I was just reading from various people that HTTP is not very reliable when it comes to keeping data safe that's going back and forth from database to iOS
 
that's... stupid?
it's as safe as your code is
and it has nothing to do with mongodb
HTTP is reliable in itself, you just have to use it correctly
and know what's safe/what isn't
@jsksma2 see the security part in this answer programmers.stackexchange.com/a/46760/42132
 
That's great for web, but I believe I have to create some kind of key or something so the server knows that it's the app, right?
That was where I read people doubting the use of HTTP and REST
 
well, if you need some sort of authentication, you need one.
and HTTP allows you to provide some
whether you use http or something else, you'll have to need one either way
 
AWS iOS framework streamlines the whole process though.
But you have to build it on Java/Python.
I'm learning node/mongo (my first back-end language) right now, so I apologize for my complete ignorance in the field of databases, servers, and authentication. But I'm just having trouble understand how I would even create a key, API, or anything of the sort without it taking me months to figure out (I don't have that much time).
 
why do you want to limit? what limits do you want?
 
8:39 AM
What do you mean by limits?
 
why do you need people to authenticate? how do you want them to authenticate?
what's the risk in sending non-protected data over the wire?
 
the gist of it is the user logins into the app by entering in their data. Then the app queries their friend's events.
For comparison, let's hypothetically say I'm making the exact same thing as Twitter.
The risk is that my app will contain people's sensitive-data. Facebook info, passwords, emails, etc.
 
1
Q: Toggle a popup and toggle it when clicked outside

LadinekoI have a issue, Im trying to make a popup toggle with toggleClass. However i also made a rule that i got from StackOverflow that makes the popup dissapear when clicked outside. However when i click the button login it appears, but i cant make it dissapear with the login button anymore. But i ha...

 
8:59 AM
I feel really in the dark with this. I really appreciate your help.
What about Restify & Sequelize?
 
@jsksma2 just look into how sessions work
 
Well, if sessions in ObjC are like they are in JS, I understand them pretty well.
 
there are different ways to implement sessions tbh
but well, you can use sessions with node.js
over HTTP.
 
Okay, that makes sense.
So, the way I'm thinking this is supposed to work at this point is that the user logs in for the first time, the key hardcoded into the app allows the app to query/compare the username and password with what's saved into the database. So then it comes back as a match, so it logs the user in, and from there, I can use a collection to simply HTTP GET all of their events?
The only part I don't know how to do there is the creation of the auth key
 
9:24 AM
Somone should make a DOM abstraction library called con.
 
9:43 AM
@jsksma2 there's no key hardcoded into the app. See what sessions in HTTP are: stackoverflow.com/a/3804387/851498
@phenomnomnominal dare I ask why?
 
conDOM
it's funny
 
Ok. I shouldn't have asked.
Although it is fun.
 
10:06 AM
how can i add 1 to every click on a button?
 
10:17 AM
hi, my table td max-width is not working in IE. Is anybody suggest a solution for this?
 
How can i set selected value of a radio button in jquery?
 
jsfiddle.net/Sriganesh/9S74F/22 Max-width not working in IE.
@Renjithpalavilai $('input:radio[name=theme]:checked').val();
 
I have to set the selected value and not to get
 
$(":radio[name='name'][value='1']").attr('checked', 'checked');
 
Would someone please explain async to me. Simply define it's meaning.
 
10:30 AM
!!/define asynchronous
 
@AmaanCheval asynchronous: Lack of temporal concurrence; absence of synchronism. (source)
 
Asynchronous I/O, or non-blocking I/O, in computer science, is a form of input/output processing that permits other processing to continue before the transmission has finished. Input and output (I/O) operations on a computer can be extremely slow compared to the processing of data. An I/O device can incorporate mechanical devices that must physically move, such as a hard drive seeking a track to read or write; this is often orders of magnitude slower than the switching of electric current. For example, during a disk operation that takes ten milliseconds to perform, a processor that is clo...
 
So it essentially means that I can complete other "tasks" while I'm doing something else. In laymen's terms.
Or being other "tasks"
 
Kind of, yes
 
@AmaanCheval Please suggest me that jsfiddle.net/Sriganesh/9S74F/…
 
10:35 AM
I'm reading async JavaScript by trever burnham and found it confusing when he explained the difference between how node and WebKit handled async. I figured I had zero understanding at that point.
 
@ZachShallbetter I haven't heard of that
 
var object ={}
console.log(obj);
obj.foo = 'bar';
 
You probably meant var obj = {};
And
!!/tell Zach format
 
@Zach Format your code - hit Ctrl+K before sending and see the faq
 
WebKit will return { foo : bar} where node will return {}
 
10:38 AM
Right
 
Sorry on my tablet
 
Ah, it's alright
WebKit keeps its console requests asynchronous
That may be a problem at times as well
Because it isn't expected
 
See and that's where I got confused.
How is it that WebKit returns foo:bar when it hasn't defined it yet?
 
Because it's sent asynchronously!
 
Rather it hasn't been defined yet
 
10:40 AM
The JavaScript keeps running
While the console log you invoked goes into the depths of WebKit
When the log is finally called internally, the foo property has been defined
 
@Amaancheval, @zach How to set the selected value of a radio button in jquery?
 
I see, so while it's requesting the log "function" it hasn't passed any data with it?
.prop()
 
It's passed a reference to the object, right?
So when WebKit checks the function internally, the property has been declared
 
or attr()
 
If you copied the object over, without a reference, you'd get a static copy
 
10:44 AM
That makes sense. So it's simple returning with the reference which it then checks
 
i would like to get an unique id when the button is pressed. how can I do +1 to an id?
 
@ZachShallbetter Exactly
 
Wild, so if I changed the object parameters three times before it returned I'd risk getting any one of them logged.
 
@Casper First of all, you can't have an id that starts with numbers.
@ZachShallbetter Yeah. Depends on the number of your computer's cores, and WebKit's implementation
 
I see, thanks again Amman.
 
10:46 AM
@AmaanCheval an example: <div id="repeatable[' Here inside an number ']'"
 
@Casper I don't think [ is a legal character either
 
Woah, what is going on there?
 
so when an row is cloned, with the add new button I would like to add 1 every time. So id="repeatable-1", d="repeatable-2", d="repeatable-3"
@AmaanCheval ok and something like above?
 
Why do you want them to have ids anyway? Just save the reference to the object
@Casper Looks fine
 
I would like to have unique rows, when i save the post inside wordpress they will override the default one...
all the rows had a class of row
 
10:49 AM
Are you ever going to use the id?
 
I would like to add the attribute id to the row everytime the button is pressed to clone an field. and add 1 to every id
 
Make a sample JSFiddle
 
But I don't know how to do this. But i can post the js code..
 
o/
 
@AmaanCheval jsfiddle.net/Sriganesh/9S74F/25 Any suggestion for max-width not working in IE?
 
10:56 AM
Nope
@GNi33 \o
 
Hi any body know about file browser
 
oh how i love these questions
 
It's like fucking Twilight in here...
 
wow, jsfiddle is slow today
 
@phenomnomnominal As soon as I spot Kristen Stewart in here I'm gonna permanently leave I think.
 
11:04 AM
I give it 3 weeks
 
don't you hate it when you stumble over a band you just can't stop listening to?
 
I love it
Doesn't happen that often to me now
Most music I come across is meh
 
yeah, haven't had that feeling since ADTR last time i think
stumbled over "City Lights" yesterday
dammit, that's exactly the kind of Pop-Punk I love
 
blergh ...
 
11:09 AM
City Lights? Artist or song?
Can't find anything except Charlie Chaplin
I liked ADTR
 
Artist: City Lights
Record: In It To Win It
great album
@OctavianDamiean what's thaaat? ;)
 
!!/tell GNi33 urban blergh
 
@GNi33 blergh The phonetic spelling of the sound of disgust or being fed up.
 
well, thanks for clearing that up for me ;)
anyone else experiencing huge troubles with Canary and Pages that use flash since the last update?
 
11:25 AM
No, but I experience huge problems when loading websites with external JavaScript or generally everything when loading HTTPS websites.
Which sucks because I have to reload the website at least three times.
 
hm, weird
 
@GNi33 I've been having trouble with Chrome's dev build and flash for quite a while
 
i'm not having issues like that with Github for example
 
Flash crashes and I have to stop the plug-in
Generally on YouTube
 
yeah, there have been troubles before, but i had them in stable iirc.
but now, since the last update on canary, if there's a tab like, let's say Youtube or Grooveshark the tab crashes after some time
no notice of a crashed Flash - Plugin though
 
11:29 AM
Oooh they replaced Paul Irish with Jeremy Ashkenas at Webstock
 
@OctavianDamiean huh, i just realized my github-problems in chrome are gone...
 
Fuck you Instacode!
That's 10 lines ...
 
posted on January 29, 2013

Eight top speakers on eight CSS modules. 14th of June, Amsterdam. That's CSS Day. Sounds good? More to the point: do you trust us? Today we open early bird sales: tickets for €150 instead of €250. But you won't get any more information. On 12th of February we'll announce the speakers, but early bird will end. And we only have 50 early-bird tickets all in all. So trust us, buy a ticket and

 
Hey guys I have a situation here, I was working on jsbin.com and testing some code regarding iframes and full screen api, and then by mistake I set the iframe source to stackoverflow.com, which loads some script and displays a alert and redirects to stackoverflow.com, because of which i can't even edit the code, and the same thing , popup and then redirect happens over and over again, check out this link jsbin.com/evidez/1/edit ,
i cannot find a way to edit that iframe url, my code is endangered, is there a way out ? www.jsbin.com/evidez/1/edit
 
11:35 AM
Yeah blank lines seem to count.
 
ok... I'm being stupid... what's the problem when I paste a link to an image ?
 
Man, I just got it "conDOM - your cross browser protection." <- Why didn't I think of this 3 years ago.
@dystroy, must be done off the extension
 
@dystroy It has to end with a .png (or any other valid image file ending).
 
This works ?
 
11:41 AM
I tried disabling javascript and then loading, www.jsbin.com/evidez/1/edit, in hope that the bitchy SO popup might be blocked, but it turns out that jsbin fails to load, without js.
 
that doesn't surprise me at all
 
> QuirksMode.org is the home of the Browser Compatibility Tables, where you’ll find hype-free assessments of the major browsers’ CSS and JavaScript capabilities, as well as their adherence to the W3C standards.
LOL
 
did he update the tables yet?
 
0
Q: i want validate a number in the box as the number shoul be greater than 60 using javascript

user79848 Mobile number validation using regex function regIsDigit(fData) { var reg = new RegExp(”^[6-9][0-9]$”); return (reg.test(fData)); } name:

 
11:59 AM
@GNi33 No idea.
 
how can i earn a star in this chat room? =)
 

« first day (836 days earlier)      last day (4104 days later) »