« first day (1112 days earlier)      last day (4061 days later) » 

00:00
nah I mean chrome seems to give less processing power to inactive tabs
oh, in that case, no clue
I'm messing with WebRTC and I think things are slowed down by the inactive tabs
Whats a good formal message that a user would see if JS is not enabled(Not how to alert them but the text that would be showed)
"You are an idiot"
?
@twiz Formal
but true
00:02
"Go download Google Chrome"?
because clearly that person is using IE...
ya
or is really weird and has js off by default.
I think the real question is do you actually have users with JS disabled...?
and if so, do you actual care about such scum of the Earth?
Always prepare for every case
Perfectionism is a sure path to imperfection.
Don't show him a message. Show him very basic content and degrade gracefully if possible or caring.
00:04
Yea, I think it really depends on what you're doing.
We just don't check what happens when someone enters with JS disabled, there is a bug in the bug DB closed as "won't fix"
hahaha nice
@NoahHuppert Very Yak shaving.
I've settled on something like "Javascript is not enabled on your browser, because of this the website will not function properly. If you do not know how to enable JavaScript <a href="http://enable-javascript.com/">click here</a>
@SomeKittens ?
Make the most likely case better >>> Make every case possible
!!tell NoahHuppert google yak shaving
00:06
ahh
@NoahHuppert What is the site you're doing this for?
I mean what type of site
My personal site. I don't expect anyone to visit it but I remake my site or some sort of personal site every month or too to explore a new concept or keep in practice.
right now I'm on version 3.0 and in the process of v3.1 of my site. Instead of using a database for blogging this time I decided to use an outliner and parse the outliner for posts and such. Cool project and all.
If you want to explore a new concept, you should do what @BenjaminGruenbaum said and make the site work without javascript.
assuming that is new to you.. haha
I did that for my schools wp theme for the most part
00:11
wp.... I hope I never have to use wp again...
Well I'm not the one making the content for my schools site. So I set them up with something simple like WP so that they could make new sites for teachers and post announcements very easily. I also don't like wp but it made the most sense.
Yea, its a good concept, I just hate working with it.
agreed
Well if you want to check my new site out in about 30 min that would be cool. I'm just put the final touches on the scaling design.
As in responsive for mobile?
mobile and desktop(and tablet I guess) in 1 site. Right now the live version is not(Also it lacks color)
00:16
!!afk puppy hunting
@BenjaminGruenbaum Stay safe.
hahaha
I have a tendency to completely neglect my portfolio site. I really should update it...
00:19
parked
@SomeKittens Namecheap advertisement?
Yeah, as in I haven't done anything yet
!!todo add do something with portfolio site
@SomeKittens Item(s) added.
00:20
All my dev work has been focused on some other projects and Techendo
@SomeKittens well at least mine beats that
!!help
I've been rolling my own blog engine and then Ghost came out
now I'm all outclassed.
(Yeah, been hacking on the bot too)
00:21
Is Techendo where you work, or what is that?
It's an experiment in growing a community
A while back I decided to try and make a blog system with only a homemade .txt file database. Never again. Project scrapped.
Hacker News minus negativity, SO minus vamps, Reddit minus echo chamber (for hackers programmers)
haha nice
JS warning appears, I very much have JS on.
use <noscript> for it
The background image loading makes it look like I'm on dial-up
Links at top don't work (I see the animation, but the page doesn't change)
which links?
blog/portfolio
the url does change
the page should as well
hmm
thats weird
ohhhh
I was deving on local host and I fogot to change a url
there
@NoahHuppert
Uncaught ReferenceError: jQuery is not defined bootstrap.min.js:6
Uncaught SyntaxError: Unexpected token * modernizr.js:2
00:51
@twiz First is a boostrap thing
second was a note I forgot 2 take out. oops
<script>
/*$('.expandible').click(function(){
$(this).hide();
$('.expandibleTitle').show();
});*/
</script>
^ take that out
haha maybe you should comment out your notes?
also move JS/CSS out into their own files whenever possible
(By the way, this is a great site for your age. +1)
@SomeKittens css yes. js I don't usually bother for a small project like this.
:)
I realize all we're doing is offering criticism
00:53
3.2 im going to do better image load.
Ik
hahaha
thats waht i want
Excellence in the small things leads to excellence in the big things
Your site looks better than the sites I made at 15.
^ there is my single compliment.
haha
If you guys only said good things you would be useless assholes(like my friends)
00:54
It must be nice to not have dial-up at 15.... haha
@twiz Exactly!
I'm pretty sure I used to spend more time waiting for webpages to load than coding...
But I suppose now I just spend more time getting distracted by facebook and twitter and youtube and....
By the way, a simple little thing I made a while ago: chrome.google.com/webstore/detail/focus-45/…
00:58
the question is. did u add a override in there?
huh?
nm
u have 1
nice
dl'ed
I don't even know what you mean? haha
cool
Like a way to get to a site when focus mode is on. I see now that you can enter a random code...
ohhh yea. I need to make it so you have to enter that to turn of the timer though...
01:00
ya
I like it. Suddenly my essays will get written 10x faster!
haha yea, I made it because I wanted it. It's worked pretty good for me.
user1125394
user1125394
any idea what is erf there? en.wikipedia.org/wiki/Normal_distribution
ahhhh math
01:05
error function
I just googled it...
not sure why...
see @rlemon they didnt hate it
:P
user1125394
In mathematics, the error function (also called the Gauss error function) is a special function (non-elementary) of sigmoid shape which occurs in probability, statistics and partial differential equations. It is defined as: :\operatorname{erf}(x) = \frac{2}{\sqrt{\pi}}\int_{0}^x e^{-t^2}\,\mathrm dt. The complementary error function, denoted erfc, is defined as :\begin{align} \operatorname{erfc}(x) & = 1-\operatorname{erf}(x) \\ & = \frac{2}{\sqrt{\pi}} \int_x^{\infty} e^{-t^2}\,\mathrm dt. \end{align} The imaginary error functio...
user1125394
@twiz thank
Lol. Was just looking at my old site
yyy?
@twiz forgot I still had focus on and went to check facebook :P
night all
01:17
haha see, that's basically what I needed it for. I need it to remind me not to look at "habit sites"
@SmithWillSuffice 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.
@cↄ Why were you wanting to know that anyway? haha
user1125394
01:41
@twiz trying to normalize data before feeding it to regressor (svm, kernel recursive least square)
Sorry I asked... haha
@Loktar lol
@Shmiddty Darn. Then I have to keep golfing it. :-/
@FizzyTea Shmiddty is afk: hometime
user1125394
01:58
!!urban golf
@cↄ golf More than a game, it is a habitual endeavor that takes precedence over work and friends. A perpetual quest for improvement. A sport for athletes as they get older and realize their limitations. A pleasure beyond definition. Played by yourself, with a partner or in a group. Worse than drugs and better than a first time fuck.
02:23
There are few things in this world worse than code golfing, but golfing is probably one of them.
Sucking at code golf is another.
wat
wat
03:14
0
Q: Physical addresses from logical address

watSay I have the following segment table segment base length 0 300 100 and a logical address of 1234 how do I find 1234's physical address? the logical address is 4 numbers long and the first 3 are the offset

03:31
0
Q: Adding a callback to a function?

Kinnard HockenhullIs there a way to add a callback to any given javascript function without changing its definition? Can this be done without using a library like deferred?

04:00
 
1 hour later…
05:09
there are many stupid people say "Java sucks" then when I ask them "Why does it suck?" then they say some weird facts they read online but the truth is nowdays it's easier to get an entry job in Enterprise development with skills with .NET or Ruby on Rails than Java so they call it suck (because others say it sucks too!)
Java is very verbose
Java lacks function literals. Even PHP has them!
Java lacks expanding arrays. ArrayLists lack square bracket access.
Very few people want to work in enterprise development
Compiled languages are dying
Java handles generics via erasure, which requires classes wanting to do reflection to resort having to ugly hacks like T func (T input1, T input2, Class<T> inputClass)
The generic type is available on arrays, but not on arraylists. Like I've mentioned, Java arrays are pretty low-level.
Java's default garbage collector is stop-the-world. I've never noticed GC pauses in flash or in javascript.
This is Java code to sort an array:
05:25
EVERYTHING is a class, reducing flexibility.
Arrays.sort(arr, Comparator<VeryLongTypeNameForTheArrayType>{
  int compare (VeryLongTypeNameForTheArrayType o1,
               VeryLongTypeNameForTheArrayType o2){
    if(o1.k1 != o2.k1) return o1.k1 - o2.k1;
    ...
  }
});
You repeat the data type three times!!!
Compare this to Ruby: arr.sort_by(&:k3).sort_by(&:k2).sort_by(&:k1)
In lisp, you can write a macro to give you the comparator. I'm not even sure you have to.
Javascript has falsy zeroes, which enables the following trick:
arr.sort(function(o1,o2){return o1.k1-o2.k1 || o1.k2-o2.k2 || o1.k3-o2.k3})
of course, don't forget ES6: arr.sort((o1,o2) => o1.k1-o2.k1 || o1.k2-o2.k2 || o1.k3-o2.k3)
And yeah, Java type names are pretty long even if you don't have a naming conflict. If you do, you have to use fully qualified types, which suck even more.
05:45
Java sucks big-time at code golf. On the Anarchy Golf site Malbolge has a higher average score than Java!
uk.co.name.hosting.name.domain.long.very.api.productname.backend.sql.Time(10, uk.co.name.hosting.name.domain.long.very.api.productname.backend.sql.Time.Units.‌​HOUR)
if you're very unlucky, you can't physically fit 80 characters per line, unless you introduce line breaks before the dot operator here (can you?)
Java is too low-level to be actually useful. But then it was originally intended for embedded systems.
Widescreen was invented for Java programmers.
Java is the 21st Century COBOL.
And yeah, there is no distinction between the domain part of the package name, the custom part of the domain name, the chain of inner classes and the chain of constant dereferences. Especially if developers are pigs that don't follow naming conventions.
Quick: how long will the operation take, given the argument as given above? Can you determine the correct amount until it completes?
calling a method on an enum constant of a type you have to fully qualify? Better turn off the 80-character line right now.
hey, my nostrils smell like blood, is this normal?
@Shea it depends. Were you coding in Java recently?
05:54
Yes, infact!
How does one smell their own nostrils? That's like biting one's own teeth.
I'm really worried.
I might have a brain tumor or something
That would explain the coding in Java.
OOOoooh daamn it!! I knew that was a bad idea!!
@Shea I must warn you against continuing to code in Java. You might encounter a nasty surprise. Would you please check if there's already a wormhole forming at the ceiling of your room?
05:56
You know what? There might be......
or whatever are portals straight from hell made of.
Hold on, I'll keep you posted
Ok back
I think you were right, it was Java all along
I'm not calling 911. If you do need help, there's no chance those guys will save you. Maybe from death, certainly not from insanity. Oh, wait, you're already insane.
The plot of Donnie Darko suddenly makes a lot more sense.
!!wiki donnie darko
05:59
Donnie Darko is a 2001 American science fiction drama film written and directed by Richard Kelly and starring Jake Gyllenhaal, Drew Barrymore, Patrick Swayze, Maggie Gyllenhaal, Noah Wyle, Jena Malone, and Mary McDonnell. The film depicts the adventures of the title character as he seeks the meaning and significance behind his troubling Doomsday-related visions. Budgeted with $4.5 million resulting in the release of a director's cut on a two-disc special edition in 2004. A spin-off sequel entitled S. Darko was released in 2009, focusing on Samantha, Donnie's younger sister. The sequel was...
Fuck! I feel retarded. :(
Stop coding in Java and evacuate the room and seal the door.. Now. It might pass in a few weeks or months.
See a psychiatrist in the meantime.
Actually a psychologist might be more appropriate for self-harm.
I think you're right. I will do it now. Thank you for the advice.
Okay guys. Death, desperately, and reprise.
<3 u ;)
Happy Diawali
Diwali () also called Divali, which starts on Dhanteras, celebrated on the thirteenth lunar day of Krishna paksha (dark fortnight) of the Hindu calendar month Ashwin and ends on Bhaubeej, celebrated on the second lunar day of Shukla paksha of the Hindu calendar month Kartik. Dhanteras usually falls eighteen days after Dussehra. In the Gregorian calendar, Diwali falls between mid-October and mid-November. Diwali is an official holiday in India, Nepal, Sri Lanka, Myanmar, Mauritius, Guyana, Trinidad & Tobago, Suriname, Malaysia, Singapore and Fiji. For Hindus, Diwali is one of the mo...
06:05
Happy Hallowe'en.
Happy day of the Dead
That's every day for a Java programmer.
Oooohhhnm, eat that last one.
Java is the biggest backward step in the history of programming languages.
Everyday for a coder
Just fuck that shit up on oooohmnnnn yum, candy. Coder
06:09
Java got one thing right: it lacks eval
Lisp got it wrong?
Evaluate your mom
I'm too tired after evaluating yours.
So you admit mine is more sophisticated?
B-, btw.
It was just a thorough exam.
06:12
Nom nom nom
Oh wait, Java does have eval. You just have to: store the source code in a file; invoke the compiler with a series of magical incantations; create a classloader to read the resulting file; load the class from the file; instantiate the class via reflection; call the right method on the instance normally.
Shit, not only does Java have eval, but it's trivial to use.
I can't even count how many times you have to reiterate the class name of the temporary class you have to generate a name for.
@JanDvorak And it only took me my tip to get there.....
So ... tell me what you want, what you really, really want. So tell me what you want, what you really, really want.
06:17
Isn't that some Britney Spears?
My sister use to listen to Spice Girls
When I was like.... 8
So you pretend to not know it, and then it turns out you do.
You don't really have a sister, do you?
When I hear "spice girl", I think "pumpkin pie"
@EnglishMaster Evaluate this.
huh? you think of their vjj?
sorry I am drunk
BTW why do you think java sucks
@EnglishMaster We just told you
06:28
1) Yes, Vah-jay-jay rules. 2) EcmaScript can compile to the same thing.... technically
Sorry I was away
3) me too
0
Q: Uploading a file automatically for speedtest.?

Abhiim a beginner in development field. I am building a Web UI for a device for internet connection and one of the requirements in it is the speedtest. I know the basic concept of how speedtest works. A file is downloaded for a limited time then the same file is uploaded again and the speed is track...

I <3 you sweetheart
@WhiteboardDev 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.
06:51
0
Q: Review the status bar code

uddSimplification of code appreciate.... var textarea = document.getElementById("textarea"), statusBar = document.getElementById("status-bar"), inputFile = document.getElementById("input-file"), appname = "notepad", isModified = false, showStatusBar = true, filename; function changeDoc...

me?
I !(<3) you
07:20
0
Q: Not getting current position when map is draged

Third Battle Of PanipatI want to get current position (latitude and longitude) when map is draged. For that i am using following code: google.maps.event.addListener(map , 'drag', function(event) { addMarker(event.latLng.lat(), event.latLng.lng()); }); But unfortunatly, event does not contain l...

0
Q: Not getting current position when map is draged

Third Battle Of PanipatI want to get current position (latitude and longitude) when map is draged. For that i am using following code: google.maps.event.addListener(map , 'drag', function(event) { addMarker(event.latLng.lat(), event.latLng.lng()); }); But unfortunatly, event does not contain l...

1 message moved from Lounge<C++>
07:42
Hey people :D
0
Q: Why on the client side there is a field called "isAudit" when reviewing?

John ツWhen reviewing anything on any site from the platform (Stack Exchange) there are ajax POST requests to http://[site-name]/review/next-task. The interesting par is that in the JSON response there is a field called isAudit that can be true or false. This made me curious and I verified when it is ...

:-)
shh... At least Andrew Barber and I know about it. We kinda expected it wouldn't become divulged throug a question like this. — Jan Dvorak 24 secs ago
>:(
08:06
Hey quick question.
Say I have an ajax page loader, and I would like to load javascript files dynamically, do you think this could be implemented but putting the loaded js in a seperate scope so it doesn't conflict with the actual loader?
@avitex define "separate scope", "conflict", "actual loader"
Sure.
<script>
loader script here
[ loaded js ]
</script>
If you're talking about Angular, I'm outta here
When I say scope, I mean function, and variable declaration etc.
Actual loader, the script that is loading the js files.
if you mean how the script you load is executed, then you can use an indirect eval ((0,eval)(code)) or (new Function(code))()
but, if you're writing a single page application, you should load the scripts all at once or use a script loader like require.js
if only to prevent unneccessary double loading
08:18
Ah thanks mate, new Function() looks brilliant.
<span class="morecontent"><span style="display: inline;">a Hewawasam in COL/A @ Friday 1st of November 2013 01:10:07 P</span>&nbsp;&nbsp;<a class="morelink less" href="">less</a></span>
<span style="display: inline;">a Hewawasam in COL/A @ Friday 1st of November 2013 01:10:07 P</span>
innerHtml
i want to get
when i click the morelink a tag
09:45
Hi guys
10:07
@Baran 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.
10:54
@phenomnomnominal Heh, "I have a bug, but it isn't my fault. Damned quantum mechanics!"
@phenomnomnominal look at yesterday, we talked about this. There was another fun bug related to cars
11:41
posted on November 01, 2013

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-3727700-1"); pageTracker._trackPageview(); } catch(err) {} Oh man. Just got first draft of the BAHFest vids, and you geeks are

i hope someone have idea
http://stackoverflow.com/questions/19726056/search-input-clear-button-by-click-dont-show-startview-state
> There is a depressing misbelief that jQuery leads to "spaghetti code". Nothing could be further from the truth. What people refer to as spaghetti is in fact a mixture of model and view code. To avoid it, simply separate your model code from the view with observables. You don't need a framework for that.
it's true because it's common sense
that's how I always roll.. javascript classes and jquery
^^
user1125394
12:31
sorry my memory is bad, what is the word for a 'short fix', to an issue? (a 2-syllab word I think)
0
Q: Suggestion needed for learning Java

BE StudentI need some advice in learning Java and getting Java certification. My target is to get Certified. I am acquainted with C, C++, feel quite okay with the topics. As I already mentioned that I need some suggestions about, how to start Java and where to start. Please help me in this regard. I alre...

hrm, so it seems stores in my area already carry the N5!
lunch time :)
GameStop: "Your credit card will not be billed until your order actually ships. The packing slip included in each shipment also serves as your receipt and makes a great paper airplane."
This question appears to be off-topic because it is not a practical problem you are (or someone could be) solving. — Jan Dvorak 5 mins ago
12:48
0
Q: Coding convention when using differential inheritance

oligofrenEver since reading Crockford's "Good Parts" and Johansen's TDD book, I have wanted to use more of the differential inheritance pattern in my coding at work (as in avoiding new by using Object.create()), but I find that I am having a hard time argumenting for the clearness of the code when trying ...

12:59
@jAndy well performance of promises was really awful before bluebird, if you can write promise code with just .then then more power to you but in practice most of those methods are used everywhere in node if you are doing it right so it's not that bloated. Of course on client side there is less need for many of the things which is why you can strip a lot out when making client side builds github.com/petkaantonov/bluebird#custom-builds
TIL "GoldFish Code"
oh god
my brain is dead
Hey guys, I really do not give a shit about my phone color, but I give a shit about the deterioration with time
I have /path/to/src/some/file, and I want /path/to/target/some/file
Is white a bad color? Do you see more the impacts on a white phone?
13:07
I always go for black
white will show dirt in scratches
@rlemon your sexual life should be kept to yourself..
I am mostly worried about dirt.
@FlorianMargaine why? Then it would only be half as fun
Ok so I'll take the black one. And wait 5 more days
:D
and i'm happy with the size of my forearms currently.
13:09
@FlorianMargaine RdC are selling the 12Go black 478euros
It's 120euros more than what google ask for it, shipping included.
!!> var y = {a: 1, '\rb' : 2}; JSON.stringify(y);
@rlemon "{\"a\":1,\"\\rb\":2}"
@JanDvorak
13:09
I'll take the 32Go black, 408euros.
minus the bots stupid output there
@Robyflc what did I not point out in the first place? That I did not understand the question? Sorry about that - but I did point it out as soon as I made sure I could not understand the question. As for the title - I don't really mind it. What I'm worried about is the body. — Jan Dvorak 22 secs ago
@JanDvorak
there is no body, iz ghost
fun little comment chain
@rlemon was just thinking the same.
if you used bracket notation none of this would be an issue (executing, the names are still silly IMO) — rlemon 30 secs ago
I'm beginning to wonder if he knows what bracket notation is
13:15
@rlemon he's using it during iteration
doesn't mean he knows what it is...
It's not your body I was explicitly worrying about, but the question body. As for not understanding anything - yeah, that's why I'm voting to keep this closed. — Jan Dvorak 15 secs ago
!!afk low battery
@JanDvorak Hurry back, ok?
> You've made a purchase on Google Play. You will not be charged until your order has shipped.
how is it avail for you?!
WTF?!
13:19
it leaves the warehouse on the 8th of November
And it takes 1-3 business day to be at my door
doesn't even give me an option to buy one
We are out of inventory. Please check back soon.
all sizes, all colours
just "add to wishlist"
Aha :D
but local stores apparently do have them
fuck... brb going to get my phone.
13:20
the 16go black is only on add to whishlist
Others are ok
Just started a bounty on the meta thing if someone could pick up next week and put a bounty when this one expires that'd be great.
@BenjaminGruenbaum Were you bitten!? Strip! Prove you weren't bitten.
13:37
@rlemon Seriously?
Joe
Joe
anyone have any thoughts using modernizr ( or anything else ) for wanting to serve up parallax to a desktop browser but not to mobile phones / tablets - ive done alot of reading about how detecting 'touch' isnt a legitimate route anymore
Why don't you want it on mobile?
Joe
Joe
id love it on mobile if it works flawlessly on the device
What features do you need to 'detect'? There are false positive with 'touch', but what else?
Joe
Joe
well im already using it to find compat for html5 video
13:43
@BenjaminGruenbaum I have 101 meta rep, otherwise I would
@oguzh4n 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.
@Joe caniuse.com/#search=video so you need to detect IE8?
Joe
Joe
@mikedidthis - id prefer to detect features - but not sure what 'feature' i could target to determine 'optimal parallax compat' ill take a look on caniuse thanks man
& yes sadly im going back to ie7 on this
@Joe no problem and welp :(
Do mobile devices tend to have problems with parallax?
13:52
depends how the click is handled.
300ms default delay. But iirc, Chrome mobile automatically fixes that.
Joe
Joe
not uncommon to see alot of 'skipping' on a few of the phones
not sure if its just overwhelming amount of js or what
Good morning
Stupid stores say they have them but don't :(
yet
I think it has something to do with paint times and length

« first day (1112 days earlier)      last day (4061 days later) »