« first day (1522 days earlier)      last day (3651 days later) » 

m59
m59
00:18
That should be real :/
00:28
The hungry bronze frog
runs in the distant river.
Chrysanthemums show.
Wait, is JS really the most popular web language out there?
m59
m59
I can't begin to make sense of that question.
m59
m59
Is the contest between HTML, CSS, and JavaScript??!?
00:31
No.
It's the only web programming language out there that runs on all browsers
@DemCodeLines And how many of those languages run in the browser?
About 4
Really? Which ones?
00:35
Go on, which ones?
JS runs natively in browser, python, php and the sql scripts run server side, but I still consider them web languages, as opposed to desktop software languages.
m59
m59
@DemCodeLines that's not good thinking.
@DemCodeLines Doesn't matter. The common link will always be JavaScript, which means almost by default it's the top web language.
m59
m59
You can talk how you want, but no one is going to know what you're talking about.
Sure, you can call PHP and stuff "web languages" but there's no sense in comparing them to JS (unless you mean nodejs); they serve entirely different purposes.
00:38
That's also wrong in the sense that there are tons of non-web Python and SQL scripts out there
m59
m59
^
^
Damnit, beat me to it
m59
m59
Same here haha.
I 2.9 JavaScript!
m59
m59
@DemCodeLines I get where you're coming from, but try writing something in PHP that isn't for the web. You can do all kinds of things.
00:42
Python excels at not-for-web stuffs!
@m59 Thing is, I want to learn, but at the same time, I don't want to learn something that's not in demand at all. Like most people, I want a job after college too. So I want to make sure that while I know numerous different languages, that I do know the core ones. When I go to a place like GitHub to check out projects and help them, I end up being not good enough. But before I just decide to learn all of them, I need to decide which language it is that I want to master.
After all, learning an entire language takes a lot of time. And I don't have too much of it with college courses taking up a lot of time.
m59
m59
I suggest node and python
If you want a job, master JavaScript or Java
2
Ehh, learning to program is far more important than learning programming languages, imo.
00:43
I don't think the choice of which language you learn first is nearly as important as some people make it out to be.
I was just about to order "JavaScript: The Good Parts" and "Effective Java" and saving "C++ Primer Plus" for later.
2
m59
m59
@DemCodeLines and if it makes you feel better, anything I see on GitHub is either total garbage and not my my time (or anyone else's) or it's difficult for me to grasp as well.
So, there's the code I can understand but don't want to, and code I can't understand and wish I could.
My first language was a nonsense language nobody's ever heard of; and it doesn't seem to have negatively impacted my career any...
m59
m59
hmm, actually, a lot of that code I can't understand because it really does kinda suck.
> yes, this code is a bit crazy, but it works and we have tests to prove it!
Wow that's really bad
m59
m59
00:50
If it really has to be that chaotic, they could at least comment it.
woo Angular
m59
m59
yeah? @SomeKittens
Do you guys think it's a good idea to go this route? Or should I learn C++ before?
2
13 mins ago, by DemCodeLines
I was just about to order "JavaScript: The Good Parts" and "Effective Java" and saving "C++ Primer Plus" for later.
I already know Java and JS a little, but don't know C++ at all, if that matters.
Not C++
Well, depending on what you want to do later
I guess I will be called a Software Engineer after college, right?
I'm studying Comp Sci right now.
01:01
Probably try as many languages as possible and do whatever is most fun for you
What kinds of problems you want to solve
3
For starters, I wouldn't go with C++ though
knowing C++ is important, you don't want to be a spoiled brogrammer
Yeah C++ is usually what you start with
Either C++ or Java
More like Python these days
Alright then, JS Good Parts & Java it is.
No more like C++ or Java
01:04
No, more like Python
Pretty sure that's still what they teach in programming 101 here
embedded C is where it's at
"This isn't an argument it's just contradiction"
Wth, c+ and java or java and js
?
you gotta put in some serious work to make a microcontroller make the faintest fart
Touche
Oh hey MIT's "Introduction to Computer Science and Programming" class uses Python. It's almost like different places use different languages for their introduction classes, or something.
I think any of the lower level languages are good to learn first though
I haven't used python so idk much about it, but it's probably good too
I think all lower level languages are terrible to start with
01:11
Why?
There's merits to both. Going from Python to C++ can be a shock; but then there are people who love programming who never discover it because they don't love C++'s... quirks.
@Mosho !
o/
Going to compiled languages is quite a shock
\o
Because you can't get anything done and spend a lot of time learning useless (for a beginner) concepts and debugging stupid problems
01:12
how's it going? how's runnable
@Mosho doing ok. On track for public beta, so that's good
@SomeKittens wasn't aware the current app was closed :o
Er, not runnable.com
that's open
but we're not working on it
I see
well, I hope you better make VP before my next internship
ha!
We're the bad kind of "flat"...
So no VP
01:25
CEO's pet then
off to get my insufficient sleep before another caffeinated grind tomorrow
02:02
@SomeKittens around?
Sim
Sim
hey is anyone here?
Nope
@rlemon can be
logs are just giving me a timeout
not telling me anything about why the server is crashing :?
Sim
Sim
jsfiddle.net/2j7jgk5j/1 im trying to hide the text after 10 second display how can i accomplish that?
02:05
@rlemon the current "working hypothesis" is: demonic possession
unless you can provide additional info
@rlemon The route probably never responds to the request
he's got access to the code in question, which is why I pinged him specifically, sorry @tereško
502 on nginx ? or 504
if I don't catch my errors in bluebird shouldn't they be thrown and therefore be in the logs?
@tereško heroku "Application Error"
oh , then I couldn't help even with additional info
Sim
Sim
02:09
can anyone help?
@SomeKittens maybe i'm not understanding the point of deserializeUser yet? gist.github.com/rlemon/ae0791756b44d20eac4d
!!tell Sim mdn setTimeout
@Sim this will help you time the hiding of the element
@Sim you "code sample" is missing the code part
you can google 'how to hide elements in js' for the other bit
Sim
Sim
02:15
did i do it right? jsfiddle.net/2j7jgk5j/2
@rlemon
it hides
Sim
Sim
did i do it right though?
i know it works
will it work on mobile browsers?
02:38
@Sim Yep
Sim
Sim
good means thanks:)
> Does anyone else think it's weird that the universal search icon is a magnifying glass? When was the last time you searched for anything with a magnifiying glass in real life? My ideal search icon would be a little picture of me, screaming "HAS ANYONE SEEN MY CAR KEYS?!"
@Retsam When was the last time you saved with a floppy disk? :)
Umm, when the dinosaurs ruled the Earth, I think.
STOP FUCKING STARRING EVERYTHING! Please stop starring everything.
@KendallFrey When was the last time you used a pen to edit a document?
02:49
function foo() {
  return bar().then(function() {
    return fizz().then(function(data) { return data; });
  }).catch(function(err) { console.log(err) }); // WILL I CATCH ERRORS ON fizz() ?!?!?!?
}
Surely that's a pencil?
I have a pen on my desk, but it's mostly ornamental
@rlemon Yes.
@monners When was the last time you used a clipboard to paste something into place?
02:51
@KendallFrey When was the last time you used a stamp to send a message?
I saw a really interesting breakdown of what the symbols on a PlayStation controller are loosely supposed to me. Lemme see if I can find it again.
@monners When was the last time you got a menu from the hamburger?
@KendallFrey That doesn't really count. The symbolism there is a list, we just call it a hamburger
Who cares? It's a hamburger menu
@Retsam not the illuminati!
@SomeKittens wanna help me debug this? :P
02:53
In an interview with Teiyu Goto, designer of the original PlayStation Controller, he explained what the symbols mean: The circle and cross represent "yes" and "no," respectively; the triangle symbolizes a point of view and the square is equated to a sheet of paper there to be used to access menus.
I've bastardized my code in logs.
it just times out.
no errors :?
@BenjaminGruenbaum Hey man, is there a way to make $http always return Bluebird promises? Or do they need to be explicitly wrapped? Would promisify work?
"The circle and cross represent "yes" and "no," respectively" Either my controller, or this statement, or every game ever, is fucking backwards
@KendallFrey Actually, Japanese games tended to have it reversed.
Final Fantasy Tactics, for one; had circle as "confirm" and X as "back".
That'd just confuse the shit outta me
Creature of habit
02:55
For me, X is look back, circle is KERS, triangle is DRS, and box is HUD
But, I was pretty sure X symbolized "jump", square symbolized "charge", triangle symbolized "hover" and circle symbolized "fire breath".
One of the few games where I've learned all the controls on my gamepad is NHL
I kick butt at that game
current season: 40-0-0 on max difficulty
03:09
so it works.. refresh like 5 times and heroku craps out
:(
@rlemon dude
try out azure if you're bored/feel like it
they have a free tier
and hosting node is crazy easy
I think they have a fully non trial tier anyway
at work our msdn sub is cray cray, each dev gets $150 in credits for azure each month
I've considered setting a VM and hosting a game server or something
well i'm trying to get this setup ASAP
it's already going to be a day late now
I've narrowed down the issue
but I have no idea what is causing the issue
@SomeKittens best I can figure it is that heroku hates me and db's
module.exports = function(fn) {
    var closeDb;
    return pg.connectAsync(connString).bind({}).spread(function(client, close) {
        closeDb = close;
        return fn(client);
    }).finally(closeDb);
};
does anyone see anything wrong here?
bind({}) should be bind(pg)
Just a guess
The value passed to finally will always be undefined
refreshing the page a static number of times causes it to finally fail after running this module again
so my guess is it never closes
Hello!
03:22
@rlemon .finally is called before closeDb is assigned
@SomeKittens ^
@copy any way to get around this?
Nothing comes to mind
I'd consult the manual of that database library, they probably use that pattern for a good reason
module.exports = function(fn) {
    return pg.connectAsync(connString).bind({}).spread(function(client, close) {
        this.close = close;
        return fn(client);
    }).finally(function() {
        this.close();
    });
};
I think this should work
 return pg.connectAsync(connString).bind({}).spread(function(client, close) {
     var result = fn(client);
     close();
     return result;
 });
Msybe
mine seems to work !!
03:28
Neat
success! (for now)
wanna see if it works for you?
you should be able to login, and sign up
maybe..
> You are entered into todays draw already!
Registering worked
did you try to enter before?
Nope
ahh! sweet
I have no idea if the cron to pick the winner will work
03:33
You can remove me though, I don't think I need the book (and it's a bit unfair to enter now)
rlemons-12-days.herokuapp.com Back up! Disclaimer: I have no idea if the automatic 'draw' will actually work. This first day might be a test run!!!!
@copy I honestly don't know if the cron will work
I'll check the numbers before bed
but today might be a wash. I might have to run it a day late
@rlemon You can just zero-index your 12 days of Christmas?
03:47
@rlemon Oooo! I don't have that Zakas book yet. Got his other one though, it's awesome.
If the draw doesn't see more than 10 people I think we should call it a wash and reset it all tomorrow
i will be interested in seeing if the auto winner works tho
04:06
2
That's fascinating
A game in 96KB powered by procedural texture generation
Sim
Sim
04:20
is there way to improve the code?jsfiddle.net/2j7jgk5j/2
Looks good
Sim
Sim
@copy will it work on mobile browsers
Yes
Sim
Sim
cool thanks :)
04:37
I mean, the top answer references another answer
and that is all it does
@rlemon
hai
phone died an untimely death, so I wasn't able to help earlier - sorry
@SomeKittens hai!
no worries. @copy got me sorted
but your example is borked.
never closes the db connection
Oh boy. Yeah, that'll break things.
FYI
1 hour ago, by rlemon
module.exports = function(fn) {
    return pg.connectAsync(connString).bind({}).spread(function(client, close) {
        this.close = close;
        return fn(client);
    }).finally(function() {
        this.close();
    });
};
^ works
/me wonders what I had
04:42
1 hour ago, by rlemon
module.exports = function(fn) {
    var closeDb;
    return pg.connectAsync(connString).bind({}).spread(function(client, close) {
        closeDb = close;
        return fn(client);
    }).finally(closeDb);
};
1 hour ago, by copy
@rlemon .finally is called before closeDb is assigned
@SomeKittens ^^^
...how?
the way bluebird works things out internally??
anyway, rlemons-12-days.herokuapp.com I credited your github ;)
Would have thought the finally would be called after the return fn(client) resolves.
04:45
called, not defined
makes sense really
how is that game built in 96 KB
14 minutes to spare
tonight is a demo
@argentum47 They wrote a system that would delete code that wasn't run during the game
I think
I mean, I'm entered into it :?
and I don't even know if the cron will work
didn't test it
04:46
That's why you can't scroll up on the menu - they never did during the final run, so the code was deleted.
cool
I could never write a game. I always get stuck at shooting part
There's plenty of other golfing-style techniques, but that was the major innovation of .kkregier
so the plan is that 3 seconds after the draw expires in your browser your browser will refresh and the winner will be listed and the next draw will have started
that is the plan *
timer is off :?
when you go off tab
dammit
timer?
so If the game wasn't in 3D it would have been smaller?
I thought it was in javascript
dammit
05:04
:P
@argentum47 It's in C, if I remember correctly.
I see that. I downloaded the zip file to find it was a .exe file
@copy haha yeah whats crazy is its actually a bit old now as well
like 4 years maybe more?
I remember thinking it looked a ton like Doom 3
have you seen the one where they generated mountains?
^ done in 4k
friggin AMAZZIING
shit that one is just as old jeeze
pretty sure the sound is included in that 4k limit as well
rlemons-12-days.herokuapp.com OK this should be good to go now. Todays draw will extend until tomorrow due to my incompetence. Big thanks to all who helped/provided code I stole. Good luck all!
17
05:16
@rlemon sorry about the db thing.
ha, no worries
don't look at the commit log for that project :D
how is that animated walpaper done? in JS?
yes
Things I need to do:
- Fix the timer (off tab it slows down)
- Clean up code and put on github
- Add prize listing to the winners list
- Add websockets for registration/player count update
- More Pizza!
@Loktar ^^^^^^^^^^
don't forget to get in on these
Add me to the pizza! :P
the cron should work this time
I hope
05:20
check this plz
1
Q: Style Uploadify button with css in version 3.2.1

Sobin AugustineFirst of all, I went through this SO question Uploadify button: Style with CSS? , but it's the older version. In the Uploadify documentation, they show us how to change the button with a png image, my question is, is it possible to style the button in css? If yes, how can it be done in this late...

we'll see tomorrow at midnight
user2490157
riemon
user2490157
what's the prize?
user2490157
I love prizes
it's on the page
05:21
@rlemon Why don't you have a title in the HTML?
@SomeGuy because tomorrow i'm going to fix the template system
right now I have a FULL ejs page for every page
I forgot how to developer
Hahaha
dudes
ok so the steam gem thing is kind of stupid
but you can get some deals
I just won a game thats 9.99 for 2000 gems
1000 gems is around $1.21 currently
so basically I got it for 2.42
user2490157
what steam gem?
Its the holiday thing going on on Steam currently
05:35
@rlemon Midnight EST?
yes
hello everyone
how can i store a number like 147140044005220086053110 in a variable without it converting it to 1.4714004400522009e+23
make it a string
!!> 147140044005220086053110..toString()
@rlemon "1.4714004400522009e+23"
damn
:P
05:41
or "147140044005220086053110"
thanks lol didnt thinkk about that
hello
i have some problem in js. my code is element.style.webkitTransform
its showing error
webkitTrnasform on undefined
what wrong m i doing?
anyone?
@rlemon didnt you like umm
crap... the snes mech game
can't remember the name
element=$('.a')
05:48
Metal Warriors?
If so apparently this is a close game to it store.steampowered.com/app/278930
@BenjaminGruenbaum Remind me tomorrow to pester you about why promises don't work like I thought they do.
nice
@Dramorian you're using a jquery object.
.css("your style", "Your value")
should i use document.blahblah
ok @Loktar
@Loktar i used document.getElementsByClassName('a')
cool
05:53
@Loktar but its not showing webkitTransform Node in console when i am printing that object
unless you are actually pulling back a single node from getElementsFromClassName
@SomeKittens hahaha
@Loktar thanks i'll read
woot
just got $37 in games with $8
hey @Loktar
can you please help me with this effect movies.disney.com/big-hero-6
tile hover
06:10
is this what you're working on?
oh, you just want to replicate it?
man thats a really cool effect
but yeah thats not something I can just whip up in a few mins
you might want to go to codepen.io and look for similiar effect and see if you can adapt them.
@Loktar Thanks man. I am trying it from last 4 days. i am new in js thats why it'll be very helpfull if you take look at it and guide me
i dnt want it nexr few minutes :p.
@Loktar can we start separate chat? i have collected something which i want to show you
Im actually heading to bed
its 12:18 am here
@phenomnomnominal you can decorate $q and return bluebird promises, but I'd just Promise.resolve
@SomeKittens eh... sure?
@Loktar tommorrow then??
06:57
Hey folks...just curious as to how bootstrap dropdowns actually work.

I put some bootstrap dropdown markup in between script tags (with mime type text/html). On click on a button I am adding that content into a specified element on the page.

Once inserted the dropdown works fine...does this mean there is a javascript event handling in place...or is this the work of pure css alone?
07:55
@BenjaminGruenbaum Yeh that's what I thought. Thanks!

« first day (1522 days earlier)      last day (3651 days later) »