« first day (1755 days earlier)      last day (3255 days later) » 

12:00 AM
I do want to support people with javascript disabled (right now I don't support them), but that's pretty much the only special case I'm worried about
 
Pip
Cool
 
[opens pepsi can #4]
 
Pip
Aww yeah
 
oh, one other thing, Pip
 
Pip
yeah
 
12:02 AM
try using my website on a phone
 
Pip
I only have a tablet handy, sorry
 
ah okay
should work on both pretty well
 
Pip
actually hold on a sec
 
but I've only tested with chrome's dev tools
 
Pip
I'll go see if I can grab one for a sec
 
12:03 AM
don't go through too much effort. not worth it.
 
Pip
Alright :)
UI design, funfun
Once you have your API set up tell me please?
 
sure
 
Pip
Whoa... I didn't know there was no standard file browser for Android
(Pulls in library because too much effort to write code that others have already written)
 
there should be something standard for browsing pictures specifically
files in general, yeah, there's nothing
 
it seems a bit silly that there isn't one eh
 
12:15 AM
also, I bet any phone you find will take pictures bigger than what I'm supporting right now, lol
need to move them out of the db before changing that
especially because EF doesn't do byte streams. it's just like "entire file in memory? okay!"
it's so horrible :'(
 
Pip
:(
 
Joe
any reason for the decision to native java?
 
Pip
Nope
none at all other than the use of Android Studio which isn't that bad
Also, emulators.... etc
But I would totally switch if there were a valid reason
 
Joe
Something I was always curious about, but the Cross Platform "time saver" trap always gets me
but if your planning on doing anything fancy native will probably be sexier
 
lol native would probably be easier for real simple apps too. html5 sounds good for somewhere in the middle.
 
Joe
12:27 AM
I think ionic is about 1.5x the amount of work of one native app
but you get an app on all the platforms if you want it
 
good point
 
Joe
and from what i hear the apis for the hardware are shady, accelerometer, camera whatever
but if you just plan on doing an interface its great, just my two cents
 
Pip
I'll probably check it out
Actually surprisingly having a lot of fun with this
:D
 
Joe
do this one java, do a swift one later and eventually try a x-plat framework
let me know what you think
 
12:54 AM
LMAO
i found my mayor on facebook
and he accepted my friend request
 
heh, I think I need to add some silly and/or obscure jQuery to needsmorejquery.com
Ideas?
 
load the image with it using ajax
not sure if that's what you were getting at
 
heh, I thought about that, but I was also thinking it could slow the page load
 
Pip
@Joe suresure
If I ever decide to do an Apple one I will
 
@JohnMcDonald if the ajax is in the html file then no it won't. same number of get requests, and just a few bytes more data.
 
Joe
1:00 AM
@JohnMcDonald not jquery but unicornify.js? cornify.com
 
I really don't know what I want, but people that come to the page often inspect the code and complain that I don't use jQuery
heh
 
Pip
lol
 
if you make a separate file for the ajax request, then it'll be one extra get request, but that's still not horrible
 
@IcyDefiance True
 
or instead of all that, you could just use jquery to make the image fade in with some fancy effect
but I think something more pointless would be better
 
1:01 AM
yeah, probably the more pointless the better, :p
 
Joe
you want scroll to pixel positions and slide open div containers then
 
hmm, reminding me of elevator.js
 
Joe
198
Q: jQuery pitfalls to avoid

flybywireI am starting a project with jQuery. What pitfalls/errors/misconceptions/abuses/misuses did you have in your jQuery project?

do everything in the answers to this question
 
heh
That could work
 
Pip
Android Studio eats much RAM and CPU time :/
 
1:14 AM
Can't describe just listen
 
hah, and now I need to add two numbers using jQuery, :p
 
Pip
@Joe how's the game prototype going?
 
@Pip lmao i always used Eclipse
 
Joe
@Pip eh I've been stuck man
 
Pip
:(
 
Joe
1:21 AM
I was going strong I had alot of consecutive days of commits on github, then lost focus and cant get back on it
 
lmao i wish i could get work on my game
but every week these homework assignments eat up all my time
cant wait till summer vacation
 
Pip
@Joe yeah, I saw. I was poking around the people who have starred my repos
It looks good!
 
Joe
see my 118 day streak? then that week i missed?
 
Pip
Yeah :(
 
Joe
Got married and a honeymoon man!
haha so it was the best thing to miss coding for
 
Pip
1:24 AM
:D
I have to come up with a schedule for over the summer
I want to revive a old game (see github.com/WardBenjamin/Tarbeyon), work on this app, work on MoonPark, and maybe some other things
I also have a job and parents to worry about
I wonder how I'm going to have time for all of this XD
 
Joe
plan that stuff out man get ahead of it
 
Pip
Yeah. School ends for me in just about exactly a month (June 18th or 19th is the last student day IIRC)
I'm also moving again, which kind of sucks
we are literally moving down the road like 1 mile away
We were renting, now we are buying
It's going to be a huge pain to do, even though the majority of my stuff is boxed still
alright, night GDSE
heading to bed because I have school tomorrow
 
busy busy! nite man
 
Joe
nite dude!
 
1:43 AM
holy shit I hate javascript
can't concatenate file blobs to an array for some reason, but it doesn't give an error or anything, it just keeps running and the array doesn't change
don't know why it won't concatenate. don't know if I'm doing something wrong or if it's by design.
 
Get good
 
oh, concat for arrays, push for single objects
stupid javascript. give me a fucking error for that kind of thing.
 
MLM
@IcyDefiance Concat returns a new array
 
ohh that's good to know as well
 
MLM
var a = [1].concat([2, 3]);
You can also push single objects with concat: [1].concat(2);
 
1:52 AM
that would explain the lack of error
 
2:04 AM
I am Error.
 
2:17 AM
okay, got that to work. now I can quit javascripting for tonight.
 
meanwhile: I'm trying to make the stupidest most useless (yet functional) jQuery
So far, so good
hahah
arithmetic.number(2).number(4).add().number(2).pow().number()
:( Some days, it would be nice if javascript threw more errors
At the very least, a "throw every error" mode
 
MLM
throw new Error(':P');
 
lol, yeah, I saw you guys post that question earlier today
 
MLM
What do you mean by errors? Are they just being swallowed somewhere or
 
yeah, JS likes loves to roll over errors
 
MLM
2:26 AM
@JohnMcDonald example
 
hmm, I had one a minute ago, now how to make it happen again?
Well... typos in variable names or selectors aren't "errors", but your code just doesn't do anything. That's a big one
 
MLM
@JohnMcDonald Use a linter, jshint, jscs
 
The variable name typos can be caught with strict mode, but selectors can't
yeah, I think I have lint on here somewhere
I was more sympathizing with Icy than anything.
 
MLM
I use SublimeLinter-jshint and also lint when bundling/building
 
I keep thinking about trying something else, but I'm pretty engrained in jEdit's ways
and it tells me I have JSLint going
 
Joe
2:37 AM
@JohnMcDonald "use strict";
inside whatever scope youd like js to complain about
 
5 mins ago, by John McDonald
I was more sympathizing with Icy than anything.
 
and yes
 
Joe
derp my bad
im bad at returning to chat
 
5 hours ago, by John McDonald
yeah... I hate that. You can try adding the following to the top of the js file (literally):
"use strict";
Meh. It's all good, I do the same, :)
I'm making a little polish adder in jQuery, just because
 
2:49 AM
There, needsmorejquery.com uses some useless jQuery
 
3:23 AM
ugh, I am not enjoying Witcher 3's controls, it's like his walking acceleration is too slow but then he moves too fast soon after
 
right... I guess they are imitating that "first step"?
 
I'm not going to use articles tomorrow.
 
@JohnMcDonald yeah like tapping Up on the control stick for a moment has no effect
 
have to hold it long enough to get your leg velocity going I guess :/ feels like I'm fighting it more than I should
 
3:31 AM
:( yeah, "realism" isn't always fun
 
4:22 AM
"The game is so realistic that you have to eat or your dude actually starts complaining. And then if you eat too much, he throws up everywhere. IT'S SO REALISTIC!!"
@OMGtechy I was about to ask why you hate JS so much. But then I remembered this: typeof NaN: "number"
 
lol
 
4:39 AM
NaN == NaN
false
 
>javascript
 
Joe
you'll shit brix...
 
user92578
5:25 AM
So my English teacher made this Google forms form where we're supposed to submit feedback of the course. One of the radiobutton sets "is required" AND "expects 0 selections"...
 
user92578
Why do teachers even try to use computers?
 
6:07 AM
@Tyyppi_77 She's probably one of those people that blames tech problems on the computer, when in reality, PEBKAC.
 
there are panthers in my GTA5 online apartment o_o
 
user92578
6:26 AM
@AidanMueller Quite funny, but it's a he.
 
8:15 AM
@AidanMueller this is the case in most languages
 
Uh yeah
It's the case in any language that follows the IEEE floating point standard
@AidanMueller also yes, there is a floating point representation for NaN so it's a number. It's s111 1111 1xxx xxxx xxxx xxxx xxxx xxxx (with s being the sign which is typically ignored and at least one of the x-es is non-zero (all zero is infinite)
 
8:44 AM
To be more precise: It's not a number, which is why using equality on it makes no sense.
You can always compare the binary representation of the value if you want to go around that.
(This will also allow you to differentiate between positive and negative zero)
 
The recommended way of checking if a number is NaN is to compare it with itself
(Barring evil operator overloading) that is the only way x == x will ever return false
And then there should be language functions to detect what type of NaN it is
 
nvm lol
 
Aah aight
 
didn't make any sense after I looked at it
 
9:27 AM
tips hat
 
Pip
9:51 AM
morning GDSE!
tips hat
 
Morrrrnin'
 
Pip
I've got to head to school.... not really looking forward to today
standardized testing, funfun
 
@Jon if the software is not free -- chances are you are being screwed both for buying it and using it.
morning
 
Do you guys use a lot of static classes?
 
10:03 AM
nah... almost none
 
Considering I use C++? Nope
(Given that C++ does not have static classes)
 
@KevinvanderVelden you can implement "singleton" in C++
 
Not a static class
 
having global pointer is nice, but not being able to make another instances are not :P
 
In fact, that's quite a different thing, a singleton is where you only have one instance of it
 
10:04 AM
well how do you follow encapsulation then?
 
A static class is where you can only have static methods/variables
 
@KevinvanderVelden so what's the difference?
 
@Mutch95 the way every language but C# does it? C# is the only language (to my knowledge) that has static classes
 
i mean like for scripts made for specific things like a console
 
static methods/variables are basically instantiated only once :P
 
Pip
10:05 AM
@KevinvanderVelden Java
 
179
Q: Static Classes In Java

KrakenIs there anything like static class in java? What is the meaning of such a class. Do all the methods of the static class need to be static too? Is it required the other way round, that if a class contains all the static methods, shall the class be static too? What good are static classes?

Nope
 
just means i'd have to grab the object before i call methods from it then doesn't it?
 
also namespaces are almost identical to static classes, except they don't have access control
 
@Ali.S hmm true, the only actual useful difference between the two is that you can defer the instantiation of a singleton to a later point
 
@KevinvanderVelden but you can also not differ it....
also in C++ you can have an static class (by marking all it's fields and methods as static) you just can't force it to be static
 
10:08 AM
@Ali.S how do you mean?
@Ali.S yeah, but a static class means just that: you can't have non-static things in it.
 
class X{
static int f1;
static float f2;
public:
static int getF1();
static void setF1();
};
@KevinvanderVelden I mean like instantiating the static "instance" field in the application load time.
 
@Ali.S that's not what the word differ means =p. But of course you can, not that hard
 
differ as in "different"
 
hmm so I can't init a new object in another script if it is a child of MonoBehaviour?
 
Yes, differ: to be different. Still not what that sentence meant =p
 
10:14 AM
??
 
2 mins ago, by Mutch95
hmm so I can't init a new object in another script if it is a child of MonoBehaviour?
 
Yes
What about it?
 
it's not possible?
 
I 'unno, which is why I hadn't replied to it. I only replied when you started with the ?? because it seemed to me you were demanding a response and I didn't like that
 
10:17 AM
O K sorry
 
Jon
trying to stop coffee drinking
i think i need a nap
 
@Mutch95 Some, for constants like "version of the binary" and "default buffer size".
Also a few math helper methods which don't fit nicely anywhere else, like discrete integration.
 
@Jon use half caff. It helped me transition off of caffeine
 
Jon
i've done it before... just need to get past the first week, lol
 
True.
 
Jon
10:26 AM
just a habit
i drink my coffee black too -- nothing really wrong with it -- just turning my teeth yellow and costing a decent amount of money
 
10:45 AM
Ditto. <3 coffee.
 
Say i have a hierarchy like so
is this = Console
consoleInput = this.transform.Find("InputText").GetComponent<Text>();
the find function wouldn't reach InputText
would it?
 
Jon
depends where your script is
 
in console
i ended up using a file path like so
consoleInput = this.transform.Find("Input/InputText").GetComponent<Text>();
 
Jon
you need to find the game object
 
I'm not sure if Find is recursive
 
Jon
10:56 AM
Findchild
it isn't recursive
transform.Find("Input").transform.Find("InputText")
There are other find types under the GameObject instead of the Transform
GetComponentsInChildren
this uses depth first search
aka, recurses
A better way however, is to use TAGS
FindGameObjectWithTag("Tag")
 
11:17 AM
Hey music! because... why not!
I watched the movie during weekends. It's surprisingly mature but also at the same time super kid-friendly.
Somewhat like Shrek
 
Looks fun
 
"You took my mom! How can I trust you?!"
 
yes watched that a while ago i really liked it
 
"You left me alone! I am just a kid. I am not supposed to be left alone!"
@Mutch95 I am planning to watch it again. It's been a long time since the last good animation.
 
might have to get the dvd
 
11:27 AM
dvd... yes me want dvd of this movie as well...
the movie's got cute-cartoonish characters that's far from "realistic" but the terms-lines in the movie are super serious, like the main character's companion alien gets threatened to be "erased"
I haven't seen a kid's movie where main character gets threatened to be killed.
 
happens a lot in old warner bros cartoons
 
"old warner bros cartoons" Aye!!.... old cartoons are the best!
 
In Lilo and Stitch the commander doesn't give two shits if Lilo dies.
Packs her up with Stitch when he captures him.
Though to be fair he can play Elvis songs too, so the seriousness is toned down a tad..
 
I am trying so hard to remember who was the commander. Dang it. I was so young at the time I watched the Lilo and Stitch.... oh OK! It's the four eyed choby guy!
oh my goodnews there's a movie on youtube for free
 
11:48 AM
The commander is Captain Gantu.
 
oh that shark guy? He's such a bully. Man. He's big and got that pointy eyes.
 
Spam <- is a link to a question you should mark as spam
 
Jon
12:42 PM
 
Jon
can't stand the non-stop screen shake
 
1:00 PM
While I've really not watched any significant amount of anime other than Dragonball Z... on a whim I started to watch Attack on Titan last night. I think I'm hooked.
 
Good choice
How much have you watched?
 
Joe
@Jon awesome!
 
1:28 PM
Hey guys I'm dealing with a strange bug, need advice on how to debug properly. I'm using Unity3d and I'm communicating back and forth between Client side JS and Unity3d.
I have a grid such that if I click on one of the items in the grid in JS side, it makes a call to Unity to set an element so that I can drag it. However, when I select the element on the grid, I can't drag it in the unity view. How can I best debug this?
I tried sending out alerts but the alerts don't pop up
 
1:50 PM
@Lokkij I think I've finished 2 episodes... possibly 3 lol. The first episode really wowed me though.
 
Ah, yeah. The ending of the first one is good. You'll encounter another spectacular episode ending pretty soon. :)
 
Nice. Honestly this is your fault. I think Fisheye Placebo is what made me seriously consider watching it finally. It's been in the back of my mind for a while but I never took the plunge.
 
Aha, good! :D
 
@KalaJ can you go into detail on how your JS / Unity integration works? Are you using a library for the communication between them or is this something home brewed? Is this for a Unity game in the browser with JS that sits outside Unity in the same Window or is this something like Awesomium where the HTML / JS lives inside Unity?
@Lokkij I fear the impending anime / manga obsession I might get that I never asked for xD
 
Nah man. If you're anything like me you only really enjoy the excellent ones with not too much ridiculousness, and there aren't that many that fir those criteria.
 
1:54 PM
^
 
Well that's a relief
 
Other than AoT, the only anime you're pretty much guaranteed to like is Death Note.
 
I think I tried a bit of death note. on netflix
 
I did have one prior anime obsession... .hack//sign
I actually own the DVDs for that series
Absolutely nothing happens but I find it amazing
For that I considered Sword Art Online but... I don't know
 

« first day (1755 days earlier)      last day (3255 days later) »