« first day (677 days earlier)      last day (4276 days later) » 

10:00 PM
With every character you type you already think 10 steps ahead
but it's a good thing if you're building something that will eventually grow
 
if I'd have to refactor I'd create a npm module to handle the collision detection stuff, so I'd basically make a game engine <<
 
the codebase I've got is extremly clean
JSHint on every commit with additional checks
you actually need to do a jake debug build to use console.log
 
hehe
first thing I do on my linux vm is usually sudo npm install jshint :p
 
it even runs all mock tests before comitting
and the hook is auto installed by jake... no chance to escape it
 
ah, I'm not that much into tests yet
 
10:01 PM
checking of breaking code should be impossible
 
haha :)
 
if stuff breaks it's mostly the test runner or crazy environment breaking the build itself
 
@IvoWetzel I don't think my code is ever going to be used though, most of my hobby projects don't last long and I don't come back to them
 
@FlorianMargaine Was feeling the same ~1 1/2 years ago
 
I'm going to make a native version of docgenerator though
just to learn C++ modules in node.js :D
 
10:03 PM
:)
 
but books to learn C++ are... the minimum I found is 500 pages
"Accelerated C++"
@IvoWetzel what happened then? :p
@OctavianDamiean oh btw, I didn't ask for your opinion, would you use tartempion as a node.js web framework?
(tartempion-blog is a nice example of how to use it)
 
@FlorianMargaine Joined Zynga, even though it took some time, but the current project will eventually be used by pretty much... everything?
Maybe not iOS games but web, no escape in the end
 
heh, your little baby's going to come off soon x)
 
Write JS > ... > World Domination
 
I'm surprised it isn't developped in SF though
 
10:07 PM
Most of the backend work and Flash / Native things are
Zynga Germany is doing a lot of the JS nowadays
Also, I grabbed it really early and just kept delivering
 
what's the js used for?
oh, the API
 
api access, game stuff you know
 
well games aren't made in js :p
 
sadly :(
but world domination will change that!!111
 
if it's just API, any language would do, did they just prefer node.js?
 
10:08 PM
It's for the browser
so yeah...
Not so much choice there
 
oh, it's not a REST API
 
More like RPC
at least the underlying protocol
 
yeah, the point is you have to use a js API to use zynga, because you can't just request the server
well technically you could
but it'd be a PITA :p
 
indeed
and this thing has lots of cool magic with queuing, promises and stuffs :)
which reminds me of something I hate about most APIs: swallowing errors
 
using jquery or you're handling the cross browser in plain js?
 
10:13 PM
jQuery is a prime example of this
 
@FlorianMargaine !!!!!!! HERETIC! DONT SAY THE $ WORD!!!
 
and it boasts about it :p
 
No, really, the project is 60k minified
jquery is more than that
 
hm, no
jquery is like 20k
 
10:13 PM
There hardly any DOM code in there
 
ah, no need for jq then :p
 
depends on what version and what's included, but yeah, still that's 20k to much
 
you just need to handle XHR, which is quite easy to cross browserify
 
The biggest DOM interaction is in some low level Transport Layer Component which abstract XHR / iFrame
iFrame is easy because there are proxy XHR endpoints on the server
still it needs some trickery to fix issues with http > https domain access
IE is a bitch
Everything above that layer is cross browser
The Node.js runtime for the tests just uses the xmlhttprequest module
and emulates like 5 browser properties
that is for the tests, the project itself can be loaded as a node module just fine
but the tests assume a browser enviroment
 
oh that's cool
 
10:17 PM
anyways it's late... I should get some sleep
 
node.js runs v8 though
 
didn't do much this evening besides cleaning my bike and working on my VIM config >_>
 
mind to share it?
 
woaaa
not using pathogen?
 
10:18 PM
a bit outdated though in some cases (plugins)
vundle for the most part
got some custom hinting plugins at work
 
oh you're using project
 
there's even one who hints against the git staged files...
no... don't ask what vodoo was needed for that to work
 
the list of files at the right
oh no, that's nerdtree
 
yes, nerdtree
 
didn't like it :/
 
10:20 PM
gundo is also in there on the right sometimes
 
command-t does enough
dunno gundo
 
@OctavianDamiean agreed...
 
ctrlp is there for most access
 
oh nice
 
(better version of command-t imo)
Just need the files system at times
 
10:20 PM
oh
 
and I've got ignores at work like /build for ctrlp
 
I'll check it out
 
because things tend to copy stuff A lot around for the builds
 
^^
you know vimtabs?
 
powerline is really great
no
 
10:21 PM
replaces ctrl + n with tab
auto completion
 
Ah, yeah sure
ah okay
 
rainbow parentheses is fun
 
I'm using supertab and some other stuff for auto complete
 
and it's supertab yeah, my bad
 
lots of magic in the .vimrc too
 
10:22 PM
and zencoding /o/
 
And I've got a 27" at work so it's often a 3x2 tiled setup
6 files open + nerd tree
 
that's nice x)
on this 13" laptop I can't open more than 5 files...
 
gundo is really great
 
I don't think I'd use it though
 
allows access to the undo history tree (yes vim has a tree structure for that)
so you can get back to stuff even after a CTRL-R and further edits
 
10:24 PM
oh
installing it right away :D
 
one of the best tools to not loose work
If I go back with u and then see "ah yeah that fits, but I'd need that one part from the version before later on" I just keep editing, jump to the old version, yank the stuff I need and go back
 
oh, vim 7.3
 
There's no way to loose anything via a redo :)
 
yeah I often need this
I have to compile vim 7.3
never got to compile it correctly with ruby and python correctly done
even though I always compile with feature=huge && enable-ruby-interp && stuff
 
which OS are you on?
 
10:26 PM
ubuntu
my VM is
 
all header files installed?
python-dev and the usuals?
 
iirc, yeah
well, trying again
ah, no python-dev
installing ruby-dev too
 
I always end up needing some tries to get the correct clipboard options in
 
clipboard options?
 
For decent pasting / copy to the system clipboard
it never works out of the box...
 
10:29 PM
oh, that
 
set clipboard=unnamedplus
let g:clipbrdDefaultReg = '+'

and the correct compile options fix it though
 
yeah I've given up
 
and 7.3
than y really goes to the system clipboard
 
I just use nano when I need to copy or I paste into a shared host folder
 
Ah yeah, that's another issue then altogether :)
 
10:30 PM
yup, I'm using a VM for that
 
VIM is one big problem though
It never gets slow... so I never close it unless I add plugins or really need a reset... so it stay open for weeks
 
and just holding u pressed moves you back in time for minutes
 
even worse: I have tmux too
 
10:31 PM
it was really nice when I was pair programming
"pair programming", rather helping the new guy
he could stay on his pc and I on mine
 
Except for the other guy not even being able to grasp what the fucking is happening to the code...
 
hahaha :p
something fun: when you have two people, tmux resizes down to the lowest resolution
 
dib OP
 
try resizing your putty window...
 
10:33 PM
and the other has some surprise
 
also VIM makes it impossible to use anything else
 
I struggle to use a mouse based editor, I'm 1000x slower...
 
ah, lol
same
 
Had to show a new colleague some stuff / do some pair programming
first of all, he uses a mac keyboard
 
10:34 PM
sometimes I have to open notepad++ on a friend's pc, it's just horrible <<
mac keyboard is fine :p I'm on one right now
 
I've got a normal one with a custom key layout to fix all the horrible crap like \ being on some obscure modifed +7 combo
 
and I've remapped way too much keys in vim...
 
I don't mind that
I've just remapped caps lock to ctrl
 
I disabled caps lock everywhere
(on OS level)
 
10:35 PM
yeah same
 
§ (Shift + 3) is remapped to <esc>
öäüß are remapped to all sorts of paranthesis
 
Ö is even remapped to ->
ß produces:
{
    <cursor>
}
 
I don't remap so much ^^
I like being able to change computer and have everything set up quickly
 
german keyboard here, gotta use these, they're in easy reach
I clone my vim files and run BundleInstall ;)
the esc remap is even bad when working in another vim...
ending up with §§§§§§§§§§§ all over the place
 
10:37 PM
lol
hahaha I can totally see that
éééééé wth didn't I hit esc? ééééé
 
:D
the bad part is, it's all muscle memory, hardly a way to now screw up
 
then "oh right... wait a minute I'm getting my vimrc"
bad/good part :p
but it's also why I wanted to remain somehow generic and not remap everything
 
Everything I do more than twice on a usual basis ends up being mapped
it really helps
 
guess so
 
I hardly ever feel pain in my fingers
 
10:40 PM
I use snipMate though, so lot of stuff is already done easily
 
only if I end up writing 2 pages of doc at once
Also using that
for loops would be a pain otherwise
 
heh
oh right
 
"fan" extends to an anonymous wrapper function
 
you''re writing cross browser js, for loops ftw :p
 
and a lot of other things :D
forin also fills in the hasOwnProperty part :)
and I use auto complete soooo much
 
10:41 PM
oh
yep
 
I get annoyed by colleagues not using it and typing the stuff out
 
I especially like the fact that autocomplete is actually based on the strings
 
yes
especially when you've got doc strings and loooooooooong words
 
asynchronously, programmatically et.c
 
10:42 PM
hahaha totally
when writing some markdown it helps a lot :3
 
Do you have a good highlighter for markdown?
I've only got one that tends to be incredible slow with huge files (400 lines or bigger)
I end up doing a set ft=text :(
 
hm
I'm mostly writing blog posts and not so long stuff in markdown
I don't generally need a highlighter
tried using the default?
with just set ft=markdown vim has some default stuff
 
the one I have does some more highlighting that that one (like code blocks and links etc.)
 
oh..
I don't find it really needed :/
 
which is another point... changing syntax files and colors on the fly.. so much win
 
10:45 PM
oh yeah that
 
end up being annoyed... e: ~/.vim/somefile.... reload
 
that's annoying -_-
 
hello, can i get some help on my website?
the last time i asked a question it was completely ignored
 
but well, I can fix annoying stuff, colors, highlighted keywords, broken syntax regex etc. in a minute
 
the default markdown filetype doesn't add syntax while you're writing the markdown
you have to close/reopen the file to see the syntax highlighting
@IvoWetzel rainbow parentheses is really fun btw :D
 
10:48 PM
It's 23:45 and there's a very noisy harvester in the field outside :(
 
gundo is really cool
people in the C++ room are sad
 
okay, fixed some mapping issues, and now I'm off to bed
6 hours of sleep at best
but yeah, weekend...
 
Hey, I have a big lack of knowledges concerning colors.
Given some colors by their RGB value, is it possible to sort them from the Darker to the Lighter ?
 
(after tomorrow)
well
 
11:03 PM
Where do you think I can post this question on the StackExchange network ?
56
Q: Formula to determine brightness of RGB color

robmericaI'm looking for some kind of formula or algorithm to determine the brightness of a color given the RGB values. I know it can't be as simple as adding the RGB values together and having higher sums be brighter, but I'm kind of at a loss as to where to start.

maybe that's the answer
 
@dievardump yes, that's easy - I answered a similar question a couple of days ago
39
A: How to check if hex color is "too black"?

AlnitakYou have to extact the three RGB components individually, and then use a standard formula to convert the resulting RGB values into their perceived brightness. Assuming a six character colour: var c = c.substring(1); // strip # var rgb = parseInt(c, 16); // convert rrggbb to decimal var r...

 
@Alnitak and why do you < 40 ?
 
?
oh, that was just in the context of the question
 
if (luma < 40) {
    // pick a different colour
}
oh ok
 
for your requirement you just need to calculate that luma value as I showed and then sort on that value
 
11:11 PM
Thanks
 

« first day (677 days earlier)      last day (4276 days later) »