« first day (1576 days earlier)      last day (3597 days later) » 

12:16
@copy interested in stuff like this? github.com/Ralt/lxc-testing
I am using https://github.com/mapbox/node-sqlite3/wiki/API and I have this files ... https://gist.github.com/aghosh47/c3dbc03117e97d48514c , the problem is the tables are created, but I cannot insert or fetch records. I am checking it using the sqlitebrowser. If I try it from console it works, but its not happening from the application.
Since I used express generator, I have to connect it like DEBUG=chitchat: ... ? is that a problem? why is this happening.
the console.log(db) shows open: true, but there is no err logged in console though.
12:27
Damn, life is good :D
@SecondRikudo as of bluebird 2.9.7 your promise thing with request will work - it'll copy over properties.
Hello! May you advise a system for the documentation JavaScript code? By the way, I use Doxygen for C++ projects.
@QueueOverflow I've used JSDoc before. It does pretty much what it says on the tin. It may or may not play nice with different frameworks you might be using
hi guys!
what is the best way to learn web development?
12:42
@Harish good question. Do you already know how to program?
Also - how old are you (if the answer is lower than 13 say 13)
Oh hi @Sebastian! Haven't seen you around here. Lots of 6to5 fans in this room
I'm 34.and I know little programming.
@BenjaminGruenbaum
@Harish well, there are things like codeacademy that offer HTML CSS and JavaScript courses if you prefer an interactive tutorial. HTML is fairly easy to pick up and CSS is something you struggle with for a month and then sort of get.
Are you going to be learning on your own or at a workplace with a team?
@ivarni I wanna learn it on my own in my home
@Harish JavaScript can take much more time to grasp - there are good books that teach it and books that help with misunderstandings. I suggest you learn by building. Build a small site page or game etc every day. You should be ok'ish at frontend first - know HTML and CSS and some basic JS.
When you know those - pick up a server-side language. Personally I recommend Python with bottle - it's a nice little way to get to know web development - it'll give you the most basic fundamentals of writing a backend and working with a database. Alternatively you can try php - it's super simple to get started with and powers most of the internet but personally I like it less than Python.
12:46
I've don't the course of asp.net with c# as back end.
C# and ASP.NET (given we're talking about MVC or WebAPI here and not webforms) is a very solid language + framework for backend development - but personally I think it's harder to start with and you should know HTML/CSS/JS first - it's easier to learn this way IMO.
but I didn't practiced it because of some other problems from last several months.
That's fine - start building :)
@Harish I would definetely do some tutorials then, preferably some interactive online courses to get feedback. And as @BenjaminGruenbaum said, do a lot of coding
@ivarni Thank you very much! :)
12:48
Not being part of a team removes a lot of useful feedback so you'll probably want to find that feedback elsewhere so you don't teach yourself old and/or bad habits
Web development is a lot of fun, it's a very rewarding type of programming since a lot of people get to use what you built yourself very fast. I'm sure that if you set your mind to it you'll love it.
@Harish Do you want to work with Frontend (client side, HTML, CSS, JS) or Backend (server side)?
@QueueOverflow can I learn both?
Yes, you can.
@BenjaminGruenbaum I've little knowledge of both.
but I wanna be master in that.
12:51
@Harish Of course, but I suppose, that it's quite different areas.
@QueueOverflow I have more knowledge of server side than client site.
but I feel both are necessary for developer.
i just cant understand the way of practice.
@Harish Yes, that is my experience. If you're going professional it is highly likely that you will be expected to work on both backend and frontend, at least where I'm from.
And the more languages you know, the easier it is to learn new ones
@ivarni I get confused when I make my mind to practice.
what is the good way to practice daily to brush up my knowledge better?
@ivarni I agree with you, but my brain was overwhelmed at a start of my way, when I was creating a site completely from scratch (Python + Django (more rare PHP), HTML, JS, CSS).
@harish There are many ways you can get hold of a good starting point, either by finding a bootstrap project on github or using tools like Yeoman to scaffold your app
that should make starting a project easier
12:58
@QueueOverflow same thing happen to me too.
@ivarni is there any way where i can learn and earn at the same time?
@ivarni Did you use Yeoman at practice?
I can still spend almost a day setting up everything for a new project, and I've done it many times. If it's any comfort it doesn't get any easier to start from scratch as you learn more
@QueueOverflow No, it wasn't around when I was learning
I hate yeoman
@ivarni What do you use now? I often use own hands :(
@Harish I got my first programming job when I knew practically nothing about Java, I have a master in mobile networks but I'd rather eat glue than work with it so I told them straight up on the interview that I knew next to nothing but was very motivated to learn
I don't use yeoman either, but I can see how it would be helpful when facing a completely new stack
if nothing else, then to see how other people scaffold and what patterns they use
I'll regularly create repos like this: github.com/ivarni/nodeproject then realize I've done something stupid somewhere and create new ones.
13:05
(Sorry ,Addy)
Yeoman is for scaffolding, scaffolding aka automatic code generation is admitting defeat in the fight against cruft as a language :D
@Harish Personally, I can't recommend some way to learn web development, because my way was overly chaotic and web development always was, unfortunately, only my hobby.
@QueueOverflow i wanna make it my living and hobby.
Guys, what you use today in your work at web development (tools, languages and etc)?
Wow. The Yeoman homepage comes above the actual meaning of the word Yeoman as described by wikipedia, in Google results
Why not just get a junior web dev role thats not language specific or take on a deadline free, freelance project?
13:13
@user1144408 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.
@TomW The second result in Google: "Yeoman для новичков / Хабрахабр" (Yeoman for novices / Habrahabr). :)
@user1144408 do u have any role for that?
!!afk stuff
from time to time yeah
heaps of web agencies do
@TomW One word: Search bubbles. Google learns you care about programming, so programming gets rated higher.
13:20
@RoelvanUden I don't agree with you. I have a dynamic IP and clear cache and cookies, and first five results are about scaffolding tool Yeoman (but I am from Russian).
Found an aspnet 5 generator so I'm happy
Is there any way to see my home in mobile while I'm out of city?
@ivarni I looked at a JSDoc. Is it necessary to setup Node.js? I don't use this platform before, so I don't want to install it now.
@QueueOverflow Browser fingerprinting and LSOs, as well as the intelligent algorithms that can pretty accuracy identify people based on the above, search terms, site interaction usage, etc. It's scarily powerful and can identify with about 99% accuracy most of the time. Google just creates these bubbles; you can't know that a search result is always as is as we happen to see it
@QueueOverflow It needs a JS runtime, so yes. I suppose if your language has a scriptengine (like Mozilla Rhino) you don't need to, but considering the amount of useful tools for frontend dev that do use node I would suggest looking into it
13:30
@ivarni Thanks for advice. I will look at Node.js. :)
@QueueOverflow Since you asked, I use C# in Visual Studio 2013 with ASP.NET MVC 5/Entity Framework 6/SQLServer 2012 for back-end development, and the same IDE along with NodeJS 0.10.x for front-end tool chains (e.g. building and developing for PhoneGap). When I'm not at work, I tend to use Atom or Visual Studio 2013 for open source NodeJS-based projects; sometimes using TypeScript now.
@RoelvanUden Thank you for answer. What advantages has ASP.NET as compared to PHP, Ruby on Rails and Django at your opinion?
@QueueOverflow Structure, static typing, tooling, queryables and performance.
Any node.js developper here ?
@Fanghornn Yesh.
13:38
if you can help me finding a solution
@RoelvanUden I'm trying invoke exec function of child_process synchronously
You can't. JavaScript is, by nature, asynchronous. Deal with it ;-)
@RoelvanUden In the doc they say you can use child_process.execSync
lol
HOLY SHIT THERE IS A SYNCHRONOUS VERSION
That's what they are saying
(I suggest you never use it, synchronous is bad!!!) Ok, go on.
13:41
Mh yup but i'm pretty new to node.js and i need to do things synchronously for my present project
I don't want to loose myself into asynchronous process for now
Well if i try to use execSync i get the following error Object #<Object> has no method 'execSync'
my child_process object contains { fork: [Function],
_forkChild: [Function],
exec: [Function],
execFile: [Function],
spawn: [Function] }
Why did they say there is an execSync function
i have the 0.10.25 version
What version of node are you running (node --version)?
Ok the doc is for the 0.12....;
It might be new in 0.12 (released this friday).
It might also be why I didnt know there was a sync version
this friday !!?
@Fanghornn I think you might want to update node, strongloop.com/strongblog/…
13:45
0.12 was released Feb 6th 2015
So yes, it's brand new.
ohhhhhhh that's it @ivarni !!!!!
Haha, so I wasn't crazy when I never noticed execSync
Actually i was the crazy trying to invoke this method who was'nt in my build
Thanks for helping guys
That's a pretty common mistake to make, I've voted to close questions with version mismatches on the main site many times. Good thing you asked here first instead of eating downvotes on SO :)
xD yup for sure
btw
I'm wondering, is my english skill enough good to have an clear convo with you guys ?
a clear*
13:49
@Fanghornn I have no problem understanding you
oh ok ^^ Then it's perfect, thank you
You should set up node anyway.
I think i'll have to build it, my apt-get update didn't got any nodejs update
DIY fail :(
I'm putting up a curtain track. The track comes with wall plugs, but doesn't say what size bit to use for the hole. They look like 6mm and the stuff I can find on google says that brown plugs are usually 6mm but it's not universal, and this one doesn't want to go in. The next bit I have is 8mm and that looks too big
14:05
@Fanghornn building node is easy - just get io.js instead though it's pretty much superior in every way.
Except you don't get paid
@Ben
@BenjaminGruenbaum Oh yeah i'll try it, and they just added execSync aswell
They did? Nice!
So what exactly makes io.js better? Surely they can't have improved that much in the relative short time since they forked it? Or am I missing something?
They have a much more modern v8, nodejs is stuck on v8 from August
0.10 is stuck on v8 from over a year ago
So ES6 features are a lot more stable in io.
14:11
aha
well that's a good selling point then
And an open source governance
0
A: node.js execute system command synchronously

Benjamin GruenbaumNodeJS 0.12 and IO.js 1.10 now support execSync: child_process.execSync(command[, options])# You can now directly do this: result = execSync('node -v'); and it'll do what you expect.

Also, nice catch
SO contains every single world's programming questions..
14:47
Am I the only one who sees irony in this:
?
hardware question: which are the recommended PSU manufacturers ?
It depends on the series of the PSU and not just the manufacturer - some manufacturers have a good series and a bad series. It's kind of like laptops.
Check reviews individually. Most "named" PSUs are better than generic PSUs - avoid generic PSUs they'll burn your computer and make you regret life :D
oh joy
so , this mean at least 2 weeks of evening research
Most PSUs are good enough for most uses. Unless you're SLIing or some other really intensive stuff you'll probably be good with a cheap (non generic) PSU. If you can get a modular psu that's always nice.
15:02
there intention is to run two of these in crossfire
that means I have to look at 1000W+ (and they need 2x of 8-pin cables)
hi one question. The db.run() function takes a query, a set of values and a callback which takes one error argument. I have one like
var operations = { insert: function(qString, values, function(err) { console.log(err); }); }.
If I want to promisify it, should I simply write Promise.promisify(operations.insert) or do I have to remove the callback ?
Hello! How do document function with argument, that is a object, in JSDoc:
function ({x: 100, y: 200, color: [255,200,100]}) {/* */}
why are you passing then as an object to begin with ?
depending on the context, it's likely to be a code smell
@tereško in that case I'm afraid you have evening research in front of you :D
@tereško It's such style (I call this Python style), pass the function arguments by object.
15:07
Holy shit haha that's indeed over 1000W
@BenjaminGruenbaum yeah, I am looking at something like 1200
@argentum47 promisify a module - or individually. Don't add a callback - promise libraries (good ones at least) will log for you.
Only very bad promise libraries will not let you detect unhandled rejections. We're even adding that to io. Petka is writing tests for the PR as we speak :D
We meaning , you are also working in io.js?
I wrote the proposal and now Petka is implementing it.
I only had to beg once :D
15:11
cool
:D
I was writing new Promise(...) and then when I got an error I realized I was using nodejs, so I just included bluebird. was reading this github.com/petkaantonov/bluebird/blob/master/…, saw you name on the top, so came back here :P
lol
lol
lol
15:46
lol
lol

such discussion much useful

18 mins ago, 13 minutes total – 8 messages, 8 users, 0 stars

Bookmarked 7 secs ago by Florian Margaine

3
V8, spiderMonkey, Rhino or nodeJs which JS shell is better ?
any particular reason ?
16:02
posted on February 08, 2015

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) {} Only 4 days left to grab the new shirt!

wth
ok
lol
I don't think I'm doing this right
lol
looks ok. Gravity 2
var operations = {
              fetchAll: function(queryString) {
                var all = Promise.promisify(db.all);
                all(queryString).then(function(rows) {
                  console.log(rows);}, function(err) {
                    console.log("---", err)
                  });
              }
      }
and when I do operation.fetchAll("SELECT * FROM users) , it says ---- [TypeError: Database object expected] .
how to fix
16:23
db is bound to the database.
also, don't promisify every time.
Promise.promisifyAll(db);
Also, your fetchAll function doesn't do anything.
Oh. Well technically it should return a value and do a res.render('users, {users: rows}), I was trying to see it with console.log()
yay, promisifyAll and db.allAsync is working. how cool
this suffix stuff ^_^
If you're on io.js you can use Promise.coroutine
16:43
let me learn it correctly. The I can move on to cooler stuffs. there is an issue, I have done db.allAsync(queryString).then(function(rows) { return rows; }).error(function(err) { return err; }), but what I actually need is to call that fetchAll in routes/users.js. like fetchAllAsync, and then use the req and res. I feel this wrapper is useless. I will dump it
Is it possible to do that, return a Promise and then have a Promise for that.
17:10
should i uninstall node.js before installing io.js or do they play nice with each other?
oh, their executables are both called "node" so I guess that more or less answers my own question
17:28
@BenjaminGruenbaum what's your stand on io.js?
4 days
Hey academic people, anyone can point me to a good resource to study algorithms?
17:48
@SecondRikudo most of my day amounted to github.com/iojs/io.js/pull/758#issuecomment-73421938
I love io, I think for now it's the way forward
Read Cormen Awal, great book
I can't find any other related book with that name, so I guess that must be it...
18:04
over 1k pages in that book :O wow
@AwalGarg What algorithms you want to study?
@AwalGarg +1 for "Introduction to Algorithms". I like it! Its size is cause of big count of described algorithms and data structures.
algorithms in general, the big O notation etc., complexity and stuff.
@AwalGarg I like also "Algorithms by Robert Sedgewick and Kevin Wayne" and "Skiena Steven S. The Algorithm Design Manual".
I can't say which of them is better, because I use they as reference book. :)
Personally, S. Skiena described the O notation is better then another authors. Look, maybe you will like it.
And, guys, if you don't understand me, say me about it, because my english skill is not very good.
or you could watch the videos from MIT CS501 or something
and then read that book
18:15
that Cormen book would take some time to read
@QueueOverflow thanks, I will take a look.
@argentum47 hrm? link?
looking wait.. in the mean time youtu.be/hGaHFqsUEXQ?t=10m47s
each is like 1 hour video though.
but those Big O, theta and omega should be in most books
@argentum47 erm, wrong link? :)
the freevideo lectures link
yep, those lectures look good! :D
18:27
that guy with long hairs, I though it was teresko :P
!!rimshot
gif from Caprica Six was moved
@FlorianMargaine Use case?
@argentum47 gonna go with those lectures, and that coursera course.
19:11
@copy running tests in a specific contained environment, i.e. running a Travis environment locally
The nice thing is using overlayfs, i.e. copy on write
 
1 hour later…
20:12
For example, running tests that involve a fresh database or list of files or Linux packages, without touching your environment. Testing an install script... I'm sure there are many examples of where testing in a fresh isolated environment is useful
20:31
@SomeKittens, @BenjaminGruenbaum My AI is still running!
@Zirak It consolidates towards the top center?
Yep
It was the most braindead logic I could think of
I've always went towards the corner. Does "top center" work for the standard version too?
shrug
I don't want to lose the next hour+ of my life so I'm going to resist the urge to try it
20:35
var kmap = {
    left: 3,
    up: 0,
    right: 1
};

function playTurn () {
    GM.move(kmap.left);
    setTimeout(function () {
        GM.move(kmap.up);

        setTimeout(function () {
            GM.move(kmap.right);

            setTimeout(function () {
                GM.move(kmap.up);

                setTimeout(playTurn, 400);
            }, 400);
        }, 400);
    }, 400);
}
playTurn();
@Zirak how nice
Here's the AI
left -> up -> right -> up
that's not using AI, but just me
How do you people have the patience? It's mind numbing
20:43
@crl Wheatly once posted a screenshot of that acting like he did it.
crl
crl
nah of course, I didn't, just pointing at it
hello evryone . how can implement a create image without extention . for example <img src="images/book"/> insted of <img src="images/book.png"/>
@osmanRahimi Why do you want to do that?
@kelunik I saw some article on the net use that and I want to how do that?
@osmanRahimi I don't see a reason why you would want that.
20:55
Regardless of whether or not you'd want it, I pretty sure it's not possible from the client-side.
You could set your server up to respond to requests for "images/book" with the "images/book.png", but there's no way to set that up on the client side.
@crl ah, you are not acquainted with the legend of Wheatly.
crl
crl
sorry I don't know Wheatly or Wheatley
21:11
@SomeKittens P2's Wheatly?
^ Note that this is a former coworker - I don't work there anymore.
@SomeKittens That fact that you don't worker there anymore and he does makes me shudder
@SecondRikudo He was fired but the company eventually shut down.
Any company to hire Wheatly is doomed to fail.
After all, it's what the most brilliant minds of the planet came up as the most stupid being ever created.
Is this the part where he kills you?
21:18
It's a pattern in the industry - once you start to believe you know everything, you no longer learn. When you're no longer open to learning, you're not a useful engineer. Arrogance ends careers. Wheatly hit that point before learning anything.
5
@SomeKittens Good thing the project was under source control
@Zirak That was the first action I took upon joining the company.
Personal note: Tack on "What source control do you currently use?" to my list of questions for the interviewer
Fortunately, all of my current coworkers are brilliant, never write bugs and are well-gifted in the arts of scholarship.
@jdphenix It's part of the Joel test
@SomeKittens I find bugs inefficient to write and fix. So I stopped writing them.
21:36
Just a thought, if you're ever in that situation, check whether your company is certified to any international standards, like ISO27001
You can lose certification for failing to follow good practice, particularly ones you've said in your own coding standards that you will do
@SomeKittens that's why so many people at computer programming quit so early.
It changes so fast.
@BenjaminGruenbaum I'm considering writing a blog post on the topic - comments appreciated
Yes, my blog is coming back, and yes, I finally have an actionable plan to make that happen.
Sure
I'm busy all day working on the unhandled rejection hooks for io
I'll read it though :D
@BenjaminGruenbaum io.js?
21:43
An excellent way to avoid career-ending arrogance is to just hang around @BenjaminGruenbaum
lol
I'm pretty much a retard so I'm motivating people to learn by not acting like me :D
Just last month Eich told me to "fucking google it" twice in like... 20 minutes :D
8
IRC or GitHub?
ESDiscuss -_-'
Archived for ever and ever :D
@BenjaminGruenbaum Just found it - glorious. Frakkin' ninja.
21:50
ESDiscuss a good list for those of us who aren't contribute-to-IO.js level?
yep
I don't care to look stupid in front of people like Eich, I'm just happy they're willing to talk to me.
esdiscuss is good for any intermediate+ js devs
contribute-to-IO.js level isn't a particularly high level, anyone can do it.
esdiscuss can be really simple or really hard - a lot of people there understand very specific problems very well.
how r u guys..?

« first day (1576 days earlier)      last day (3597 days later) »