« first day (2082 days earlier)      last day (2870 days later) » 

9:00 PM
!!afk stardope valley
 
I would hope it was only one dev
 
@ssube That's what typical programmers or nerd drives is a Fiat
 
the game looks like shit
 
I wish there were more areas, though
 
:p
 
9:00 PM
@Loktar it's a good game, you negative nancy
 
@Tarson lolwut
 
> Canada looks like shit
you take that back :P
 
nobody drives a Fiat
 
@Loktar try it first. content heavy and the graphics .. albeit pixel, are full.
 
they're joke cars
 
9:00 PM
as in, there was a shitload of work done
 
yeah I was totally joking
I just see it praised everywhere figured people would get on me for saying something bad
I havent played it yet
 
when I first looked at it I was iffy, looked like farmville. read the reviews and got it for the GF
watched her play it for like ten minutes and bought it
 
yeah it sounds like harvest moon
which was/is hugely popular
 
I do think it needs some expansions and new areas
 
!!afk 4realz
 
9:01 PM
@Loktar Oh mah gawd, Loktar, yew haven't played Stardew Vall-eh? Whut is wrong with yew?
 
@ssube Programmers or nerds typically drive Smart Cars, Fiat, and Priuses basically eco friendly cars
 
@Tarson what strange land do you live in?
 
^
 
The stereotypical one
 
the lame ones do
maybe it's just mid-20s programmers who still have a life that drive fun cars
 
9:04 PM
My fit is fun
super fun
I promise
!!afk home
 
@ssube It's getting hard to avoid Eco friendly cars, I try to get the gas guzzlers lol.
 
@Tarson srsly, what country do you live in?
 
we know where you got the electricity from
 
cause here it's the exact opposite
 
@ssube USA
 
9:05 PM
@Tarson wtf then. Here most devs drive Audis and BMWs
 
I'll never buy a audi to me they all look the same really, except for like TT and R8, other then that they are the same to me lol.
 
The "I'm 16 and my parents bought me this" and the "I wanted gullwings but couldn't afford a lambo"?
 
@ssube lol noooo. Honestly.
I wanted gullwings but couldn't afford a lambo ;(
 
I was driving the other day and a green gallardo zipped by on the other side of the road
unfortunately we didn't get to race
 
9:26 PM
Jesus that was a long meeting
But I got a super cool mention for project recognition which was nice
 
:D That's awesome
 
anyone knows how to program?
 
Kil, I assume there are at least one such people in the world
What do you need help with?
There are lot's of people willing to help if you have a specific issue :)
 
just to be fair pg13 means 2 fucks per movie
 
@William who are you trolling now?
 
9:32 PM
@ssube the stared message
Madara Uchiha
 
i want to fix navigate bar on top of my screen when i scroll down..
 
you should probably not do that
 
you are right he is a mod
@Kil'jaeden position:fixed
 
@William plus, you can't exactly go around setting policy
@Kil'jaeden look at Bootstrap and other UI libraries and see what they're doing.
 
google "sticky scrollspy" or something
 
9:33 PM
it's a combination of position (both fix and x/y), floating elements, and other stuff.
 
conditional sticky headers have 2 parts. The conditional part which requires you to know when the user has scrolled past a certain point, and the sticky part which is really just a simple 'position: fixed' rule combined with positioning.
 
in IE6 you need to use javascript expression() fun fact
 
The conditional part is the part that takes more effort. But if I recall correctly jquery has a built in function api.jquery.com/scroll that will help you do that
alternatively you can just use a premade plugin or library like Bootstrap scrollspy v4-alpha.getbootstrap.com/components/scrollspy or waypoints imakewebthings.com/waypoints
If you don't want to deal with the conditional part (aka you don't care about fancy resizing or recoloring effects on scroll) just use position:fixed and it will still stick to wherever you position it.
 
This is hilarious eager.io/blog/…
 
9:54 PM
The history seems pretty interesting
`In a somewhat optimistic sci-fi vision of the future, it was believed your browser would know how relevant a given piece of content was to you, allowing it to show it to you at a larger size:

RELEVANCE > 80 ? h1.font.size *= 1.5`
This is what we need
 
alright
 
+1
 
SFCSS ftw (scifi CSS)
 
heh, great stuff
 
or AICSS
 
9:58 PM
I got my emacs + lisp setup on my chromebook
life should be fun onwards
 
grats :D
 
grats! took a while though :/
 
crouton is actually much simpler than I thought it'd be
it's just a debootstrap + chroot
@FilipDupanović yeah, didn't have the occasion to use it since I got it
 
(gingerly hide's his nano fan-club stickers from Florian)
 
though only problem is you have to compromise your Chromebook's security :/
 
9:59 PM
it's the 2nd time I can use it
@FilipDupanović lolsec
 
o_o
 
I wished that NaCl dev container worked
 
now I need to fetch my ssh/gpg keys
or create a new one
 
What is the advantage of a chrome book over say something like Ubuntu Mate running on a netbook?
 
nothing really
chrome have decent battery life
 
10:01 PM
@FlorianMargaine from what I've read its goot to have one key per machine at least dealing with portable computers for sake of security
 
@William yup, cheap and long battery life
 
Significantly better life?
or like 30 mins?
 
it easily lasts 7hrs
 
o.o
Isnt it a glorified tablet in laptop form?
7hrs is pretty significant though
 
@yosefrow I have a Acer CB 13, 1080p, 12 hour battery life
 
10:04 PM
whoa wut :o
nice man
How much did you shell out for that?
 
mine was $300
4GB RAM, 4-core
 
it's an ARM architecture, though
 
o___o man I wish I knew about it like a week ago. I just bought an Ideapad 100 for around the same price
 
i prefer thinkpads except for the battery life
 
Lenovo is pretty well known for quality when it comes to workstations I guess
 
10:06 PM
@FilipDupanović x86 for me
 
@yosefrow I can close the lid and give my phone a full charge
 
wow
 
and it's so cheap I don't really even care what happens to it
 
you must have an 8 cell battery or something
i imagine it weighs at least 2 pounds
 
@yosefrow mine is 1406g
 
10:13 PM
I don't know, it's compact, it'll fit anywhere; does feel a bit heavy, though the right kind of
 
my laptop has no battery :D well, maybe 3.5 hours
MAYBE
 
in theory, I have 12hrs
 
I need portable, I don't need disconnected.
so I don't mind. There is always somewhere I can plug into
 
@FlorianMargaine well, I traded in for an Nvidia Tegra for the extra battery life, though I did it because I was certain I wouldn't ever run anything more than a tab and the secure shell to do work
 
which sounds about correct, if I do mostly browsing
 
10:15 PM
I found out the hard way you can't work without 4G at least, not even with Mosh
 
anyone here bilingual if so what language do you speak
i like mosh a lot
 
it's great on fast connections :D
 
i have never tried it on a cellular connection i would have assumed being done by MIT it is as good as it gets but maybe not
 
Hello gais and squirrels.
Anyone here using Meteor 1.3?
Haven't used Meteor in a while, and decided to play with it today -- but the new NPM integration has me royally confused.
 
@corvid it is your time to shine!
 
10:26 PM
does anyone here know if you can nest $elemMatches in mongo db?
Like so: this.accessCollection.findOne({
documentId: documentId,
accessKeyList:{
$elemMatch:{
accessKey: accessKey,
permissionList: {$elemMatch: permission} }
}
});
 
@William well, you can hack at some cafe, put the device to sleep, turn it back on in the bus and roam to your phone and not lose your session, which already makes it a better client than SSH
 
yes yes but the internet is browsable even youtube on a mobile device. There is no reason something like mosh shouldn't be able to be usable like that on a mobile connection
 
but the... update buffering only works for the line where the cursor is at, so you can't really move around
 
Im looking into ajax currently and I came across these words: "After the document loads, the browser reads the hash and runs the AJAX requests, displaying the page plus its dynamic AJAX changes.whatever.com/script.php#some-ajax-state"; and my question is: how do i tell the browser what to run based on #some-ajax-state
 
@William meh, it's still really painful, you feel like you're idling 2/3 of the time instead of punching keys, you want to smash the device after 20 minutes... it's like going back to dial-up
 
10:29 PM
Anyone at least familiar with Meteor?
 
i know so meteor
some*
 
Have you used 1.3 yet?
 
i do believe i have only used 1.3
 
Do you understand the whole NPM integration? Have you been using Meteor OR Atmosphere for packages?
What's the difference between meteor packages and modules?
 
i've just been pulling my packages by adding package names to the packages file
i think its the same as adding them using npm
ah, i see
 
10:34 PM
That being stated, I am not FORCED to use NPM correct?
MUST I use the ES2015 'import'?
 
your not forced to use npm
 
npm and 'import' are unrelated.
npm just puts files in node_modules, a place node looks for dependencies. that's it.
 
you can use require instead of import
 
you can ignore that system entirely
 
and if you need to do an if statement, you have to use require, import wont work
 
10:37 PM
I don't know npm's relation to Meteor, though.
 
Hey guys, anyone want to see my implementation of Game of LIfe in processing.js?
 
yes
 
It's more like a piece of art than a game I guess though
 
yea, it always annoyed me that they called it "game" of life
 
@yosefrow it would be cool if you could go backwards in time
left arrow
 
10:39 PM
it certainly isn't a very fun game.
 
Yeah I had that feature which just swapped out the last array but it was poorly implemented. Tomorrow I think when my head is on straight I will think up the algorithm for it
Or google for one
 
i think i won the game! :)
 
Good job!
:D
What do you think of it?
 
Thanks for the help guys!
Coming from Meteor 1.1/1.2, haven't used Meteor in some time. The new tutorial sent my brain into shambles.
 
@yosefrow i don't know what i'm doing but it's fun
 
10:41 PM
haha :D
thanks :)
 
neet are you good at meteor find queries?
 
@yosefrow it would be nice if you could hold down the right arrow key
 
really nice @yosefrow!
 
you can william
 
Not at all, lol. I haven't used Mongo much.
What were you trying to do?
 
10:41 PM
William is it not working fo ryou?
 
im wondering if you can nest $elemMatch queries
like this:
accessCollection.findOne({
documentId: documentId,
accessKeyList:{
$elemMatch:{
accessKey: accessKey,
permissionList: {$elemMatch: permission} }
}
});
 
@FilipDupanović thanks :)
 
@yosefrow when I hold it down it doesn't work for me. Also wtf does it say public_html?
 
@Greg I'm going to be honest, I have no idea. Though I wouldn't imagine there not being some sort of method to that end.
 
yea, i should just write sql. Stupid mongo db.
 
10:44 PM
William because Its a github repo and I like to keep my web stuff in its own directory so I can store libraries and other things above it.
 
@Greg just drop $elemMatch for nested documents
 
@FilipDupanović what do you mean?
 
public_html isn't a big deal although it reminds me of my php days
 
haha :D
I'm just learning PHP :P
apparently you can turn github repos into websites just by forking them to a branch called gh-pages and access them via https://{user}.github.io/{project}
 
11:09 PM
.
 
@Greg you can nest expressions and that looks good, but you'd use the $elemMatch operator for permissionList only if it was an array of sub-documents you wanted to query based on multiple fields
 
@FilipDupanović Ah ok thanks!
 
@FilipDupanović do you have a lot of experience with Javascript?
 
though it looks like array of values in your case (?), the $in operator would suffice
 
@FilipDupanović i see, i will look at the $in operator
 
11:12 PM
@yosefrow I guess, I haven't tried out all the web APIs though
 
@FilipDupanović would you mind if I showed you the code of the game I posted earlier and providing a little bit of feedback?
it uses processing.js though
 
sure, I can throw a look for readability and reuse, can't help out with the algo though
 
thats fine
ok ill post the file
 
I'm in the repo
 
11:25 PM
code looks really nice @yosefrow!
 
@FilipDupanović I really appreciate the compliment. I've never had my code reviewed before though, so I'm sure there is something I can improve. Any suggestions?
 
moving to ES6 and extracting a module out of your script would be the next improvement; you can drop the IIFE, deindent and the classes make it a bit easier to collocate data and related functions together
 
What is IIFE
I'm also not sure what you meant in the end part as well
 
Immediately Invoked Function Expression
 
Ok, so thats var x = (function(){})(parameter); ?
 
11:33 PM
(function() {
    var myLocalVariable = 42;
    console.log(myLocalVariable);
})();
yea.
 
hmm, what did he mean by extracting a module out of my script?
 
it lets you scope variables to that function, or make self-contained things with 'private' variable.
who?
 
you have some private, static data and functions starting starting at L30; at L148 you created an isolated context where you declare the game
 
@Luggage sorry I'll just let him explain :D
@Luggage thanks for the info though
 
good luck
 
11:35 PM
no problem. you can feel free to have a look and offer some feedback as well if you want" github.com/yosefrow/game-of-life/blob/master/public_html/js/…
I'm just trying to learn what I'm missing by coding on my own
@FilipDupanović Im having a look now
 
wait. is this generated code?
 
no. I wrote it
why?
 
the way your phrased that..
 
Oh haha. sorry xD
I meant coding without any feedback
You can only do it for so long before you begin to miss things that other ppl might know about
 
not really sure why you wanted to do that @yosefrow, the stuff in there is also mostly static (like the Table constructor) and isn't bound to settings or the game you declared within
 
11:38 PM
what's with the 'void's?
 
its processing.js
I'll switch to p5.js at some point
then it will look better
@FilipDupanović im going to take a few minutes to understand fully what you are saying
 
@yosefrow I guess you should probably move everything under the IIFE context
 
why?
 
@FilipDupanović I wonder if that would work with processing.js I'm going to try
 
well, it'd make sense that it only returns either the GameOfLife constructor (that's what the script from the global context would only care about) or either remove it
 
11:41 PM
I'm not sure how those void lines are even valid js
 
@Luggage it isn't really. its fed to a library which compiles it into javascript
 
oh.
 
@Luggage or something like that
 
well, it's 99% javascript
 
@Luggage i just know i include processing.js and it works
 
11:44 PM
@Luggage it does nothing, just returns undefined for the last expression
 
@Luggage yeah but you are right its kind of confusing. So i think i'll move to p5.js
 
@FilipDupanović I know what void does, but that use is not valid. it's a syntax error
Every fucking time I say anything, you pick one word, and pretend I don't know what it means
 
its Java syntax really
Chill out guys :P
 
And every time you just prove you are unable or unwilling to read any complete sentence
 
@Luggage I think he was just excited to want to help me
@Luggage i also don't fully pay attention when I'm excited
 
11:46 PM
well then he's been excited for weeks
 
and he was offering a theory
 
or my entire life, that would make it a condition
 
xD
lol
I wish i could stay excited my whole life
is jealous
 
also.. your code does not look like it's written by someone who doesn't know what and IIFE is or needs his advice. This whole thing is weird
 
those are just some P5 entrypoint methods, think it can just be ignored
 
11:47 PM
@Luggage chill out man. Im just asking random ppl for feedback. Everyone's opinion is valid if it makes sense
@FilipDupanović processing.js in this case. P5.js is what i am hoping ot migrate to
@Luggage i appreciate the fact that you think my code looks good enough though> I'm just hunting for flaws I guess
 
I'm still confused, I only had a chance to look at some people over their shoulders doing programmatic drawings in labs
 
xD
 
well, what Luggage said last and the whole issue of the global and IIFE context you're declaring stuff within
 
@FilipDupanović so basically the fact that some is inside the IIFE and some is outside?
 
doesn't really make sense, since you should either move more stuff out or move everything within
I can try to explain why you'd use an IIFE, if it'll make sense, because you have two lurking issues atm
 
11:52 PM
ok
 
your game executes immediately and it seems to be blocking (dunno how to handle the loops, though)
 
ok thats easily solved by putting it at the end of the HTML file right?
 
but, either way, imagine I wanted to run two of your separate games in the same document
 
At some point, yeah that was the idea
to make the system as extensible as possible
I think i may have gone overboard though
unneccessarily
 
if I reference the scripts from the same documents, then everything that was declared within the two games is going to be implicitly assigned to the global context developer.mozilla.org/en/docs/Web/JavaScript/Reference/…
 
11:56 PM
his game is entirely encapsulated inside the IIFE. Only a non-js void draw() function is outside, which I assume is called by processing.js
and some other helpers
 
and the settings which are global in this case
hmm
thinking
 
this means that whichever game's script is evaluated last might overwrite what was declared by the previous game, they would basically clash in preparing the global context, to odd results
 
@FilipDupanović I think the issue here is that nothing would be overwritten. But every time I called an update method it would update for both
and both instances would look exactly the same
 
line 30 through 147 are in the IIFE?
 
what I would need in the document to run the game is basically to call two separate constructors, so if each of your scripts creates an isolated execution context and spews out two functions that get assigned to two distinct names in the global context--that would solve the problem
 
11:58 PM
close. 148 - 515
 
so move everything from L30 under the IIFE context
 

« first day (2082 days earlier)      last day (2870 days later) »