« first day (1128 days earlier)      last day (3818 days later) » 

12:00 AM
First thing I would try, is basic troubleshooting. Start disconnecting components one by one, and then look at the wire the power button is connected with.
I never thought the BIOs would make the power button do nothing at all though
However, it would raise some concerns if it happened more than once or twice, and removing the battery and running on just wall power fixed it.
 
CSTW requires WMP to play? _wat
 
Or if removing the BIO's battery for a few seconds fixed it
 
@Shea I did the or :P
and my pc never shut down for past 6 months :P
 
Yeah, if BIOs battery fixed it, then that would be obvious
 
@m59: oh wow.
 
12:03 AM
meh now I am in a wonderful condition
i have got 3 phones hooked into the same pc
i get 5mbps !
woot :D gotta love this country
wired network < wireless network ... in speed !
 
Sorry man. lol
25mbps here over wifi, for "basic" internet
Gotta love fiber optics
@AbhishekHingnikar Wait, are we talking about Mbps (roughly 100kb p/s) or MB p/s?
 
I always get better speed in a ethernet connection than wifi
 
12:33 AM
if i assign an object to a var like this:

var j = myObj;

then change myObj.value = 10; why does j.value also change to 10 =/
 
Because j is a reference to myObj
 
well how do you tell it to not be a reference but be its own obj
 
You need to loop through the object, and copy it, value by value
 
ah man
how annoying
 
@Dave or JSON.parse(JSON.stringify(myObj));
if you got JSON
 
12:36 AM
wut
 
what?
 
what you mean if i have got json ?
 
@Dave if the browser has it
 
ohh
 
obviously
 
12:37 AM
so that is like some clever shortcut to copy an object
 
In other words, if you're not on an old IE
 
neat tip
 
It's slower though (not that it matters), but sure. And it won't work if your object has functions
Actually, support for JSON is better than I thought
 
... and circular references hurt
 
@Shea It's not slower
It's actually faster, believe it or not
 
12:42 AM
JSperfs or it didn't happen
 
so, it didn't happen?
 
So can a closure be described as a function within another function that is prefilled by the first function?
 
Wow nice. It's about the same speed and a little faster, that is surprising
 
@Shea I find, for loops to be really slow in chrome though
really slow,
Firefox tops out with for loops
 
Yeah, it's only faster in Chrome
In fact it's much slower in FF
 
12:45 AM
not as though speed matters now a days
yeah
Unless they have a different version of JSON
 
anyone? So can a closure be described as a function within another function that is prefilled by the first function?
 
No
 
@nearpoint have you read this?
2076
Q: How do JavaScript closures work?

e-satisLike the old Albert Einstein said: "If you can't explain it to a six-year old, you really don't understand it yourself.”. Well, I tried to explain JavaScript closures to a 27-year old friend and completely failed. How would you explain it to someone with a knowledge of the concepts which make up...

 
yah, so why is a simplified description of a closure being a function inside another function which is "set up or pre-filled" by the first function
 
You're confusing yourself there.
 
12:49 AM
No
 
I read it and thats exactly what it sounds like to me, so I just wanted to make sure my understanding was correct when framing it in my own terms
 
@Qantas94Heavy What a name/avatar...
 
ok so first does a closure always require 2 functions? one inside another?
 
No
 
then how come everytime I see someone refer to closure I see 2 functions
 
12:50 AM
@nearpoint That or a function inside the global scope.
 
one inside another
 
Because that's the only case where it makes a difference to intuitive behaviour
But a closure doesn't have anything to do with 2 functions
 
It's to do with variable scope being set when the function is defined, not when it is called.
 
function this_is_closure () {
var because = "the outside world cannot access me";
};
alert(because); //undefined
 
ah ok i see, does it have to do with simply accessing a variable outside the scope of that function?
@Shea how is that a closure exactly?
 
12:54 AM
@Shea It's to do with variable scope being set when the function is called, not when it is defined. (source)
 
!!s/defined, not when it is called/called, not when it is defined/
 
@nearpoint: no, it's to do with how variable scope is kept with the function even when called outside the scope it was defined in.
 
@nearpoint Just think of the term closure being a name for a rule, that states you cannot see the var because in that situation.
 
ah so a closure just means variables inside a function cannot be accessed outside the function?
like is many languages?
 
function even_though_these () {}

function two_functions_are_so_close () {
return "they are worlds apart, under the hood";
}
 
12:57 AM
@nearpoint: no, maybe we're confusing you.
 
so i completely understand this example here:
function foo(x) {
var tmp = 3;
return function (y) {
alert(x + y + (++tmp));
}
}
var bar = foo(2); // bar is now a closure.
bar(10);
so that is why i thought closure meant having one function inside another
 
> We are up against the biggest challenge to mankind - whether we should open our arms to new technology, bots ruling the world, or should we rebel, waging war against these heartless creatures.
Seriously though, the whole saga about this is ridiculous.
@nearpoint: imagine a child could get anything they want from their parents, and only their parent. The global scope is like the "first" parent. Even when their child is at another family's home or their grandparents, they still can get stuff from their parents.
 
Anyone wanna lend me a -1 on meta superuser?
 
@connor.js: which one? The -5 one?
 
1:06 AM
@Qantas94Heavy yeah, I'm not allowed.
Ill pay you back
 
ah so closures have to do with scope. and closure is related to which variables a function can access?
 
@connor.js: oh, that's right, that's MSU.
 
Michigan State University?
lmao
 
Meta Super User
Who has rep in msu around these parts??
 
Yeah, point
WTF am i reading?
Sorry, I had to stop half way through. Are you seriously saying that the welcome message is worse than the /fuckable command? I don't believe what I'm reading here... — Pinocchio 24 secs ago
 
1:13 AM
Thanks everyone for the help, I think I got it. I was watching the iOS7 lecture from Paul @ iTunes U Stanford and he mentioned closures in iOS7
at first i thought it was just a javascript thing but it relates to all languages
 
oh
 
@nearpoint: yes, it's to do with which variables a function can access.
 
1:29 AM
someone upvoted this?!?!?!?!
 
Doorkno do you know and programming languages?
I started with JAVA
i found it to be an awesome first language to learn
 
@Doorknob shit questions generally do get votes
questions that people can't answer don't ever get votes
 
@connor.js up? :P
 
lol, yeah
 
Java's a terrible first language
 
1:33 AM
no way its great, why do you think its terrible?
 
Java is at the extreme end of the OOP vs Functional spectrum
 
lol
Get 12 websites on a notepad, roll a dice. Good Luck — connor.js 32 secs ago
 
I think that beginners should be exposed to something in the middle.
 
@SomeKittens html is a good start
 
i.e. python :P
 
1:34 AM
or learn JAVA because you will learn OOP very well
 
It also has a LOT going on, with classes, inheritance, complex syntax and strong typing.
 
then learn javascript or python
 
Python is the best first language because there are fewer syntax gotchas
 
thats why i liked it
 
@nearpoint: let me guess, you are a java ee "developer"?
 
1:34 AM
Lets new guys focus on principles like logic flow, for loops, etc.
 
@ThiefMas no just a student right now
 
if you do just basic stuff in java you might not hate it immediately
 
On the other hand, Java is a superb second language
 
oh for sure its really simple language
at first
 
Java is not simple.
 
1:35 AM
but as soon as you need to touch certain j2ee frameworks - struts is the worst one i know for example - you are in a world full of crap
tons of xml, often poor documentation, ...
 
@ThiefMaster Can you give an example of something with absolutely stellar documentation?
 
java or non-java?
 
just installed my new lights... it is a shame. I had to wait until night to do it so I wouldn't interrupt their light cycle. now I can't even turn them on to see how them look until morning
 
CoffeeScript
 
Javascript is used on like 90% of websites, yet it ranks 10? wtf
 
1:37 AM
well yah the language is probably very complex the more advanced things you need to do, but getting started writing simple programs is really easy, and OOP is a great way to think about programs
 
Anything.
 
if non-java is fine... flask.pocoo.org/docs - or most other well-maintained python projects that have a sphinx-based documentation
 
which I dont know how to do really well in javascript
 
1:37 AM
@nearpoint: why do you want to use OOP? just for the sake of using OOP?
 
@nearpoint I've taught quite a few people programming first principles, and believe me, beginning Java is not easy.
 
and if you were serious, this is the reason why java is a horrible first language. people think OOP is the only thing out there and always the best thing. because some professors believe that.
 
@ThiefMas well thinking about a program in terms of objects and actions helps me write them in a clean manner
 
Saying Java is good at teaching programming first principles is like saying MSNBC is good at teaching fundamentals of the modern US political system.
 
ThiefMas? Is that a christmas variant where someone stole all the presents? :D
 
1:39 AM
I dono i disagree
 
Based on?
 
Java is terrible :/
 
@nearpoint: It really depends on the task. For some things using classes/objects is indeed fine.
 
@nearpoint I'd love to hear the reasoning behind that.
 
Java is actually a very common topic in this room :/
sry
 
1:41 AM
Haha, did you know you a website could intercept any expression entered to the console? if the user is using Chrome
 
@C5H8NNaO4 woah
 
I think Java is a good language first because (for me at least) thinking in terms of objects helps me write and structure programs that can be extended easily as I learn more. Also you dont have to worry about memory management as much as in C++ because of garbage collector
 
@C5H8NNaO4 it also stops autocomplete
 
and it is a powerful language that you can do a lot with so it is exciting the more you learn
 
@nearpoint What can you do in Java you can't do in Javascript?
 
1:43 AM
Well for one thing you have Eclipse a really nice IDE
2
 
@nearpoint really, you're comparing this to C++? that would be an even worse first language
 
which helps beginners out a lot!
 
@connor.js oh ^^ yeah, didn't noticed that yet. Nothing bullet proof, I'm missing a bunch of error checks anyway, just a funny thing you can get a reference to InjectedScriptHost
 
@connor.js Embedded devices, for one
 
@nearpoint you just lost all credibility :P
 
1:46 AM
lol well im sorry i like eclipse so far
i dont like netbeans as much though
 
Webstorms pretty sweet
 
@nearpoint It's awesome that you're a student and learning a lot. We all were beginners at one point. It's also kinda clear that your experience at this point is limited (which is perfectly ok). Just remember that there is TONS of friggin awesome stuff out there to learn (and no perfect solution), keep an open mind and you'll do just fine.
 
Hey guys, what possibly am I doing wrong with this? jsfiddle.net/EfYev/13 I really have now no idea how to use .toFixed in this script
I want to display values with 3 decimals
 
@SomeKittens What do you mean by that?
 
@SomeKittens um ok.. thats true i guess but why dont you point out what you think i said that makes my experience limited
@SomeKittens then maybe I can learn the way of the pros like you
 
1:49 AM
@connor.js Java works wherever the JVM is. JS works wherever Node/Browsers are. The JVM is in more places.
 
@BenjaminGruenbaum Dunno why that article is related to me. I'm vegetarian for a couple of years and doing vegan for about 6 month. Never read a 'life changing' book either :-P
 
@jAndy BenjaminGruenbaum is afk: sleep
 
@nearpoint You said you were a student. You've also claimed some opinions that make it clear you have not tried alternatives (and thus are not aware of the tradeoffs).
@nearpoint How to be a programming pro: Never stop building cool things.
 
ohh god Toronto is really never going to live this down.
 
Well because I think java is a good first language to learn?
 
1:51 AM
If every day, you work to build something cool, you will turn around in two years and say "WOAH. I've done so much."
 
im sure there are people who are experienced who think java is a good language to learn
i dont think that opinion shows that someone is in experienced
 
@rlemon I think "I have more than enough to eat at home" is enough to make him famous even after he's dead and gone.
 
@connor.js autocomplete works again, forgot to return the result of the call to eval
 
@SomeKittens I call shenanigans
 
@nearpoint I have not heard that opinion from somebody with industry experience. The only ones I've heard it from are students and professors who've never worked outside of academia.
@Loktar wat? How so?
 
1:54 AM
I highly doubt the JVM is on more machines than machines that can run JS
 
@Loktar give me some ps4 impressions please !
 
@C5H8NNaO4 I was thinking it was a good thing :)
 
@jAndy I dont have a good impression yet due to lack of games :(
the games that are out are mostly cross platform
 
Seriously - something that introduces you to various methods of doing things is not a bad idea.
 
1:55 AM
so they are on the PC as well, so right now the ps4 just seems like a decent pc
 
@SomeKittens well, I will let you know after a decade what I think ;)
 
@Loktar Not in terms of installs, but potential installs. I'm operating off the assumption that the JVM works anywhere a browser or Node will, so JVM just needs one more platform to beat it.
 
@Loktar isn't there any... ps4.. kickoff game or something
 
the controller is cool though
 
which just shows off all the shiny bells and whistles
 
1:55 AM
@jAndy there are, but none that interest me a lot, they have also gotten mediocre ratings
theres an arcade one thats really cool/fun
killzone got mixed reviews although looks pretty
and Knack got pretty bad reviews
 
@nearpoint Awesome! Please do, discussion is very cool. You may want to start a blog to chronicle your adventures in programming.
 
Knack !
 
I got assasins creed black flag
 
what a name
 
I know one thing the ps4 runs all its games so far at a higher res than the xbone
so as of right now it seems like the more capable machine
also the ps4 vs of bf4 can handle 64 players, the xbone vs cannot
 
1:57 AM
I never owned a ps3, I'm just curious if the ps4 has that.. "ohwwee awesome unbelievable new tech" feeling in comparison
 
no :(
none of them do now though
the PC is too far ahead
 
hmm, why is that
 
@SomeKittens good idea
 
like playing assasins creed for example on the ps4, it runs at a 900p, whereas my pc games run at 1080p and look much better
 
@All: I will be formally restarting my blogging adventures in January (one post a week). Hold me to it.
 
1:58 AM
@jAndy I think its because the next gen consoles went to x86 architecture, and worked with amd directly
 
sony always managed to get some hardware/software together with ps1/2/3 which always was so highly specialized for 3d/games that pc were behind
at least, for a couple of month
 
yeah it used to be like that always, next gen consoles were ahead of pc for liek 6 months to a year
but they all had specialized hardware that did crazy things to make them that way
this time around by the time the consoles were released the gpu's were comparable to mid range pc gpus
 
@SomeKittens what languages do you blog about
 
however I got it for the gameplay
Sony is awesome about releasing really good exclusives
 
I guess thats also a reason that explains the pretty low-budget for the ps4
 
1:59 AM
so thats why I got one
 
I guess its around $300 cheaper than the ps3 was on release day isn't it
 
@nearpoint I've written about Java (the link I provided earlier was me) and JavaScript mostly. Some PHP. A lot of my blogging has less to do with the tools themselves and more to do with being a programmer.
 
man I feel bad Im sounding negative
its a cool machine definitely, just didnt wow me like they used to
 
@SomeKittens what the link again
 
yea
I know exactly what you mean
 
2:01 AM
When would you ever need that?
 
@connor.js wow, I feel stupid now :D Thanks
 
nobody should be allowed to call himself Andy around this place XCEPT ME!
 
^
 
You should also check out codinghorror.com/blog
 
2:01 AM
alright
 
@Loktar can you play bluray discs and bluray3d discs with ps4 ?
I heard some rumors that you can't
 
ish
you can play blu ray, just not 3d yet
they are patching it for 3d
 
Anyone know if there's a function in underscore that can get me the object with the id 1? Just curios? [{id: 1}, {id: 2}]
 
or .. something about the "media" access is restricted or something
 
it may have been in the first patch
they dont have DLNA this time around so you cant connect to media servers and play content which is lame
they've also talked about patching it in
 
2:04 AM
that sucks tremendously
 
yeah I agree
idk why they would remove it
also the lack of backwards compat suuucks
I basically will have to keep my ps3 now forever
 
I can think of one reason
that is .. the ps4 as machine is so cheap, sony needs to earn money by selling games
 
yea
 
so they try to exclude people who buy the machine just for multimedia access
...like me
 
which they will do, Sony owns some awesome studios
 
2:05 AM
can you write a javascript app that a user downloads and runs, with an experience more similar to a desktop application than an in browser app?
 
:P
 
@nearpoint yea
few ways, .hta's on windows, or you can use something like node-webkit
 
@connor.js _.find, _.where, etc
 
@Loktar do you have a link to a resource
 
@SomeKittens cool, thanks
 
 
lol
 
haha, that expression there is golden
 
speaking of cardio im about to go run
ate terribly today
 
yea thats also a thing where I know precisely what you mean :-P
 
2:07 AM
@Loktar wow that is crazy
 
haha yeah but my food today compared to what you probably ate is magnitudes worse
I had pizza..
 
wooaaahh :-P
tho.. I eat pizza also sometimes, but I have to cook it for myself obv
 
@Loktar Nope. Literally all I've had is garlic bread and pizza
 
hard to get vegan pizza to buy
 
I've had Pizza too
 
2:08 AM
pizza day
 
!!pizza 20 2000
 
haha nice
 
!!pizza 200 200
 
2:10 AM
 
!!pizza 300 300
 
2:24 AM
Java is clearly shit
5
HTTP Status 400 - org.codehaus.jackson.map.JsonMappingException: Can not instantiate value of type [simple type, class com.agiliumlabs.tracker.api.model.User] from JSON integral number; no single-int-arg constructor/factory method (through reference chain: com.agiliumlabs.tracker.api.model.InternalProject["owner"])
mmmm
pizza
!!pizza 18in
 
 
1 hour later…
m59
3:31 AM
@Qantas94Heavy goodness, please could someone comment and back me up here?
-1
Q: AngularJS website sample failing to execute (version 1.2.0)

Henrique BarcelosHere is the sample (from Angular official site): angular.module('project', ['ngRoute', 'firebase']). value('fbURL', 'https://angularjs-projects.firebaseio.com/'). factory('Projects', function(angularFireCollection, fbURL) { return angularFireCollection(fbURL); }). config(function($r...

This guy is such a douche.
 
@m59: I already -1ed him.
 
m59
Yeah, but he doesn't get it.
He is so crazy wrong and abusing SO and won't hear it from me.
 
@m59: let it go, it's what he thinks is right. Anyway, I've now -1ed his question.
And everyone else a +1
 
m59
That he thinks posting a question means people are supposed to solve totally unrelated issues just because he has them
help vampire
it sucks knowing he'll keep doing it
 
Thing is I can't go downvoting all of his questions as it'll get reversed
 
3:35 AM
Hi, do you guys know of a good tutorial that can help me achieve this: casetagram.com/design ...Basically, I want to be able to upload images and have their thumbnails appear on a bottom panel as shown there. Are they using a canvas for that bottom panel?
 
m59
I just meant that it would be nice if someone posted that he is being a help vampire - posting questions and expecting answers that solve his problem, even if they're irrelevant to the post.
 
@m59 Wow, is it really that serious?
 
m59
Depends on how serious you mean :)
I think it's good for people to know the truth and to do right by others.
 
@Jaigus: which one are you referring to?
 
m59
SO would be better if people would stop being greedy, stubborn help vampires, so I'm all about trying to convince people not to be.
Anyway, I need to be off of SO for a few days, lol.
 
3:39 AM
@Qantas94Heavy The bottom panel. Try uploading a picture to really see what Im talking about
 
@Jaigus: ah, I see. no
 
m59
Night, dudes.
 
@m59 goodnight
 
@m59: see ya
 
do you have any idea how i can upload a nicely scaled thumbnail that way? I'll ask a question if you'd like
The tutorials ive found thus far don't work as well : /
In that solution the image is cropped in the center upon upload somehow
 
3:45 AM
You might want to take a look at their JavaScript code - it isn't minified: casetagram.com/js/designEx.js?v=2013111120fejfjij3
 
hello good morning to all of you
 
@Shailendrsingh hello
@Qantas94Heavy ok thanks ill take a look
 
4:04 AM
@Shailendr 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.
 
!!stat
 
@Qantas94Heavy Qantas 94 Heavy has 3808 reputation, earned 87 rep today, asked 10 questions, gave 139 answers. avg. rep/post: 25.55. Badges: 4g 12s 29b
 
@Qantas94Heavy any special meaning to the name?
 
@SomeKittens: my name? well...
 
0
Q: Javascript function fails to execute in safari, firefox and chrome

RayC<script> function moveon() { //display a modal dialog to ask the user question var answer = confirm("Ready to move on? "); // If they clicked the "ok" button, make the browser load a new page. if (answer) window.location = "http://google.com"; } //run the function defined above 1 minute (60,00...

 
4:18 AM
!!stat
 
@Qantas94Heavy Qantas 94 Heavy has 3818 reputation, earned 97 rep today, asked 10 questions, gave 139 answers. avg. rep/post: 25.62. Badges: 4g 12s 29b
 
4:35 AM
!!stat
 
@Qantas94Heavy Qantas 94 Heavy has 3827 reputation, earned 106 rep today, asked 10 questions, gave 138 answers. avg. rep/post: 25.85. Badges: 4g 12s 29b
 
!!stat
 
@Qantas94Heavy Qantas 94 Heavy has 3852 reputation, earned 130 rep today, asked 10 questions, gave 138 answers. avg. rep/post: 26.02. Badges: 4g 12s 29b
 
5:01 AM
It's about shoe insoles..
hahaha what..
 
Have you tried jQuery? — SomeKittens 8 secs ago
 
jQuery.fn.shoes will do the trick
 
@SomeKittens I died. LOL
Are JavaScript frameworks "future proof"? (For example, how long can we expect jQuery to not be "replaced"?)
 
A very very long time
 
I like that. Do you think native javascript will adapt methods that make selecting elements easier?
 
5:13 AM
querySelectorAll is already in all the modern browsers
 
^ that
 
and jQuery just acts as a wrapper for that function (if it's there) unless the query contains some jQuery-specific selectors (:eq, :contains, etc)
 
Hmmm
 
Is there a library that replicates as much of the jQuery API as possible with DOM methods?
I guess internally jQuery does that.
 
5:45 AM
Good morning guys
 
@phenomnomnominal zeptojs.com
 
@whitehat101 oh yeah, that piece of shit haha, we used to use it at work.
 
I kinda feel robbed by microsoft
 
@phenomnomnominal why?
 
@phenomnomnominal Well, there is always jquery.com
 
5:48 AM
Install Windows, do nothing
 
@SomeKittens mobile site, it's a shit load smaller than jQuery
but we were faling back to jQuery for Windows phone anyway, and it's missing a lot of quite useful functionality.
so we decided to go for one library instead of two.
 
@rlemon I finally had poutine
 
@BenjaminGruenbaum ... why did u not tell me windows azure will require a CC/ internationally accepted just to start to develop with
 
@AbhishekHingnikar BenjaminGruenbaum is afk: sleep
 
!!/listlisteners
 
5:56 AM
@Qantas94Heavy 420, help, listen, eval, coffee, live, die, refresh, forget, ban, unban, info, jquery, choose, user, listcommands, norris, urban, parse, tell, mdn, afk, awsm, color, convert, define, findcommand, get, github, google, hang, inhistory, learn, 5318008, i_am_a_robot, aliens, ym, format, 3point14, camel, ihatelanadelrey, fa, knock, lick, insult, ultimateinsult, microlove, easytools, wherearethegoats, tobacconist, ninjad, adventure, w3schools, 3mdn, joystick, stackoverflow (page 0/4)
 
!!wherearethegoats
 
@phenomnomnominal I ate them
 

« first day (1128 days earlier)      last day (3818 days later) »