« first day (1310 days earlier)      last day (3633 days later) » 

12:05 AM
@KevinTomiyoshiYang 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.
 
Hey guys. I'm doing this class assignment to ask a web developer/programmer questions about how they got where they are, typical day at work, etc. Any of you mind helping out a student? (I'm an aspiring web developer/programmer)
 
yeah sure
 
Sure, I had to do that once
glad to pay it forward
 
Awesome!!
Hmmm, do you guys prefer t email me?
@phenomnomnominal @SomeKittensUx2666
 
Either way, you could just create a separate chat on here
 
12:13 AM
Yeah, that'd be the easiest. Or Google Forms
 
okay. I already have the questions all ready to go.
Okie dokie, I'll make a form
 
whoa
nice kitty
Okay, I made a form:
 
Add a description to that link and I'll star it so other people see it
 
Wait, you mean just say what it is?
 
12:23 AM
Yeah exactly
Just what you said before + the link
 
whoops. I can't seem to edit that, now. Let me do it again. Okie dokie
Hey guys. I'm doing this class assignment to ask a web developer/programmer questions about how they got where they are, typical day at work, etc. Any of you mind helping out a student? (I'm an aspiring web developer/programmer)
Here's a Google Form for the interview: https://docs.google.com/forms/d/14-3pBSwg8ouKvsm25A_ScQGN0FsiCvrIqWtWqx0jkLM/viewform?usp=send_form
3
is that good?
 
Yeah awesome
 
cool! Thanks! It would be awesome to see all the responses. I've been having trouble finding programmers in the industry around, so I thought stackoverflow must have someone who is employed! haha
 
Yeah, hang around! We love newcomers who are interested in learning more.
There's no shame in being new, we all were.
(There's a lot of shame in being new and insisting everyone else should write your code for you, but that's another story)
 
12:31 AM
haha yeah. I am definitely a novice, but I've been coding since as long as I can remember, but I've only been coding seriously for only maybe 2-3 years, so there's not much under my belt. I'm still in the whole "internship" "part-time job" phase + going to college.
 
Totally. I can also understand 'coding seriously' - took me a bit to finally get to that phase.
Here's the essay that finally got me to put my rear in gear: paulgraham.com/wealth.html
 
huh. Interesting! I'll read it.
Yeah, I realized that coding doesn't just have to be a hobby of mine, but I can use it for serious business and opportunities, so I've been trying to get better ever since 2-3 years ago.
aka no more sketchy hacks. I'm trying to learn how to develop better/elegant/longer lasting solutions rather than making it "work".
 
Enjoy college while you can
 
^I'm trying to enjoy college while I can. But what do you say so?
 
I left early, and regret it.
 
12:45 AM
hey guys i have a java script array when i do a console.log(myObject) it prints out the entire object i can see Object {'attribute name and values' , more......} and i have a second javascript object similar structure when i print it i am getting [object Object] is there something wrong with the second object that it looks like this in the console?
 
@SomeKittensUx2666 Why did you leave college early? Work? Or for your goals??
 
@devdar: did you accidentally try to convert it to a string or something?
 
@KevinTomiyoshiYang submitted your form!
 
@devdar Yeah, what Qantas said. I think whatever your 2nd object is, it's obviously not the same as the first.
@SomeKittensUx2666 Thanks :D woooot I won't fail my assignment haha.
 
And I got a job offer. I thought it was my dream job, but dreams are funny, in that some of them don't actually exist in the real world.
Failing's ok. I wish I hadn't cared about grades as much. I started skipping out on classes to write more code in my last year. My grades suffered, but I learned a lot more.
Where are you at college?
 
12:48 AM
Well, that's a bit of a downer.... but I guess I'll be near that road eventually.
I'm in Cal Poly SLO in California.
 
@Qantas94Heavy no i did nothing all i did was var myObject = {attributes}
@Qantas94Heavy however both have the same name could that be the reason?
@Qantas94Heavy same name but different scope
 
@KevinTomiyoshiYang Sweet, I'm in SF. If you're ever in the neighborhood, let me know.
 
@devdar I think it could be, though if you are assigning over it, it shouldn't be a prolem I think. I'm thinking to test it
Try to print out the 2nd object to console without the 1st
see if it works. If it works, you know it's probably either logic or something with JS's nature.
 
@Kevin i will try that
 
@devdar Let us know what you see/ what happens :D
@SomeKittensUx2666 : Awesome! I'll be around in June/ Summer. I might be doing an internship with Koding in SF, so we can hang some time haha. I'm liking this chat. I'll stay haha.
 
12:53 AM
Awesome! Let me know. I assume you're a freshman?
 
@KevinTomiyoshiYang i actually renamed it and it prints the same way [object Object] i removed the first object from printing and it still doesnt work
 
okay. Hmmm.
 
@KevinTomiyoshiYang i moved the object to the same location where the other prints for testing sake and it prints great i dont know why this is happening
 
@devdar Wait, so you moved the 2nd object console.log to where the 1st object is
and it works?
 
@KevinTomiyoshiYang yes it works in that function
and doesn't in the other and there is nothing but that in the functions
 
12:56 AM
Are you passing in parameters to that variable you are printing out?
Are there parameters in the good function and the bad function?
 
Could you show an example of some code?
 
^ yeah. That would be nice :P Give us the two functions you are talking about.
 
@KevinTomiyoshiYang no i am not passsing any parameters
@KevinTomiyoshiYang it seems as thou my second object isn't a js object
 
@devdar You can show us the two functions you are using.
 
@KevinTomiyoshiYang i can access its attributes and values thou
 
12:58 AM
@devdar I think it's a JS object since you can access it.
You said that it works when u put the 2nd object in the 1st object's function, so we know it's not the object's fault.
I'm thinking the function the 2nd object is in has bad logic or some bugs. If you want, u can show us and that'll be a lot more helpful.
 
@KevinTomiyoshiYang

function postNameData() {

    var EmployeeTicket = {
        'Page': '1',
        'EmployeeTicket.surname': dijit.byId('surname').value,
        'EmployeeTicket.firstName': dijit.byId('firstName').value,
        'EmployeeTicket.otherNames': dijit.byId('otherNames').value,
        'EmployeeTicket.differentBirthName': getSelectedRadioButton('EmployeeTicket.differentBirthName'),
        'EmployeeTicket.birthSurname': dijit.byId('birthSurname').value,
        'EmployeeTicket.birthFirstName': dijit.byId('birthFirstName').value,
 
@KevinTomiyoshiYang just did your survey!
@devdar the second one is casting to a string.
console.log('EmployeeTicket ' + EmployeeTicket2);
you want:
console.log('EmployeeTicket', EmployeeTicket2);
 
@KevinTomiyoshiYang oh ho
 
@phenomnomnominal Thaaannkkks woooot
 
@phenomnomnominal ohhh lol thanks weezz i couldnt see that
 
1:07 AM
@devdar Okay! I'll look at it. and yeah, what @phenomnomnominal said
 
@KevinTomiyoshiYang and @phenomnomnominal thanks guys
 
No need to star that
 
Is it working now?
 
@KevinTomiyoshiYang yes it is
 
Cool! Yup, nice catch on the casting to string :P stupid comma. It's always those one symbol things...
 
1:10 AM
@KevinTomiyoshiYang yea i know and i here staring at this code and for nothing can i see the stupid mistake
 
@devdar Hahahaha. I know right. Not even a genius can prevent that.... lol
 
1:42 AM
Yo, anyone around?
I've got a "can I ask" question, sort of, and would like to skip meta
 
@phenomnomnominal : btw, sorry. What is your full name? you can email me it at rsonbie465@gmail.com if you don't want to do it here. I added "what is your name" on the form too. @SomeKittensUx2666
 
@KevinTomiyoshiYang Craig Spence
 
@jt0dd I won't bite, so ask away! haha
@phenomnomnominal Okay! Thanks :)
@SomeKittensUx2666 If you wouldn't mind giving me your name, that would be awesome :D
 
2:00 AM
@KevinTomiyoshiYang here, I asked on meta, but no comment yet:
0
Q: Can I ask this question about the effectiveness of a programming concept?

jt0ddI'm thinking of doing an experiment with a JS program to utilize Japanese Multiplication, and I want to ask whether or not a software math shortcut is actually a shortcut at all. To be clear, I'm contemplating writing a program to get benchmarks for the comparison of normal multiplication and J...

 
2:15 AM
@Besrl 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.
 
@jt0dd I answered quickly. It's not a very deep answer, but it's what I am thinking at the moment.
 
0
Q: waiting for ajax to complete before next ajax call

CrystalI am trying to wait for an ajax call to finish saving a model before saving the next model in the list. I was googling around and saw some stuff about deferred objects which are new to me, and another answer that had a recursive function do it. I tried the recursive method because it seemed to ...

 
2:35 AM
hi
 
@KevinTomiyoshiYang Randall Koutnik
 
@SomeKittensUx2666 Thanks :D woot
 
@jt0dd try programmers.SE
 
how can I figure out in a select if other table (called like) has two values (columns: questionid, userid) in it?
I know it's not JS, sorry for that, but all sql rooms are empty :(
 
@KissKoppány It's k. We all should know SQL more or less here.
 
2:44 AM
thanks
 
can you reword the question and use "quotations" for SQL keywords
to be more clear?
 
here you can see my structure and the query I have: sqlfiddle.com/#!2/8950f/20
I have separated a left join, because that one doesnt work
I want to check if the user liked a question
 
I see. Which line are you talking about specifically?
or are you saying how to write a SELECT for it?
 
LEFT JOIN `likes`
ON `questions`.`id` = `likes`.`questionid` AND `user`.`userid` = `likes`.`userid`
this part doesnt work
 
Have you tried IF EXISTS
?
 
2:50 AM
no
I've never heared about that
 
You can use IF EXIST(SELECT blah blah) to check if the values exist in the table
 
what the result can be?
1 or 0?
 
like IF EXISTS (SELECT * FROM like WHERE column = 'something')
something like that
I assume IF EXIST will return 1 if it exists... I'm not too sure. I am going only by memory.
 
I hope so :D it would be really good
 
yeah. Hmmm Google it up.
 
2:54 AM
how can I use it? with a left join or outside?
 
ummmmm
u can try both. But you can do something like this:
 
will it work with 2 columns? check both questionid and userid in the same time?
 
IF EXISTS (SELECT * FROM like WHERE column = 'something')
PRINT 'Yay it exists'
ELSE
PRINT 'It doesn't exist!!!!'
I think to check both you can do this:
IF EXISTS (SELECT * FROM like WHERE column = 'something' AND column2 = 'something else')
PRINT 'Yay it exists'
ELSE
PRINT 'It doesn't exist!!!!'
if you want to do something AND something else OR another thing:
SELECT * FROM like WHERE column = 'something' AND (column2 = 'something else' OR column2 = 'another thing')
@KissKoppány got it?
 
yes
but have some issues, sqlfiddle.com/#!2/8950f/22
tried to rewrite it but doesnt work
 
I am very confused with this code
 
3:03 AM
do you know a good company to do email blasting?
 
IF EXIST is just like an if else statement in programming languages.
 
in usa
 
@EmilioGort what do you mean "email blasting" ?
 
send email to a list i have, a service to send thousands of emails
 
@EmilioGort Did you buy said list?
 
3:05 AM
@KissKoppány read what I have above and you can get how to use IF EXIST, ELSE
 
-147
Q: How to send 100,000 emails weekly?

xRobotHow can one send an email to 100,000 users on a weekly basis in PHP? This includes mail to subscribers using the following providers: AOL G-Mail Hotmail Yahoo It is important that all e-mail actually be delivered, to the extent that it is possible. Obviously, just sending the mail conventiona...

 
yes a list of email I have
 
@EmilioGort Email senders don't accept customers with purchased lists
 
Holy crap. How does that have -147 reps?
 
!!s/reps/downvotes/
 
3:05 AM
@SomeKittensUx2666 Holy crap. How does that have -147 downvotes? (source)
 
wow -147
 
Is Caprica a...real person, by the way?
 
there are service to send emails, I think is called email blast
 
!!are you a real person?
 
@SomeKittensUx2666 Of course not
 
3:07 AM
@EmilioGort Yes, like MailChimp or SendGrid, but they don't allow customers who have bought the email list.
 
the list I have from the subscribe link in a website
 
@EmilioGort You said you bought the list
 
@CapricaSix I always knew sentient online entities existed!!! wooot
 
no I never said that
thats the companies a was looking...thanks
 
And why on earth was this easier than Googling it?
 
3:09 AM
I know right.... hahaha. They aren't $1000/share for nothing....
 
I google by email blasting, but dont get thats company
 
oh, Google
 
Oh. Sometimes try to google keywords like "email mulitple"
 
@EmilioGort learn to google better
 
@SomeKittensUx2666 nvm, Google used to be like almost 1000/share but now it's like 500
 
3:10 AM
@KevinTomiyoshiYang Yeah, the stock split recently
 
i'm not english speaker
 
Guys, what name you like best for a hosting company?

- criatweb.com
- piggyhost.com
 
@SomeKittensUx2666 Ouch. What happened?
 
Stock splits are good things
@LucasB Are you making a hosting company?
 
@LucasB piggyhost forsure
 
3:10 AM
@LucasB they're both dreadful.
 
I've literally written a blog post on why one shouldn't start a hosting company
 
@SomeKittensUx2666 yep
 
@Kevin I got it. But how can I use it with a left join? Or would left join proper in my case?
 
@phenomnomnominal I couldn't come up with anything better - do you have any suggestions?
 
@KissKoppány I honestly don't use LEFT JOIN that much. I would think you join it before you do IF ELSE?
 
3:12 AM
Rough draft (comments welcome)
 
@KissKoppány Why are you LEFT JOINing when all you want is to check if the two values exist in a table? I might be understanding your question wrong.
 
I'm sure its me not you
 
@SomeKittensUx2666 I'll read it
 
I'm a bit newbie
I tried with a simple select but had a syntax error
 
@KissKoppány I think you can either use IF ELSE or LEFT JOIN. They might be separate solutions. U can achieve same thing using both.
 
3:16 AM
thanks for the warning @SomeKittensUx2666, now I know what it takes, I'm building mine for 3 years now and just now I can see the whole of a hosting compan
 
found something I guess
SELECT IF( EXISTS(
             SELECT *
             FROM gdata_calendars
             WHERE `group` =  ? AND id = ?), 1, 0)
 
@LucasB ...you've been building it for three years and haven't picked a name?
 
@SomeKittensUx2666 the last years weren't easy, but now I'm mature enough to think about it as a serious business.
 
@KissKoppány Yeah, that could work
 
@SomeKittensUx2666 it was criatweb.com - I was thinking of a better name this last couple weeks
 
3:17 AM
@KissKoppány Here, read this: stackoverflow.com/questions/13128635/…
@KissKoppány The answer gives an example of using both LEFT JOIN and IF ELSE solutions. You can achieve the same with both.
 
AND FRIEND ADD ADDRESSES WORKS!
 
criatweb.com/us - it's not 100% yet, but usable. I maintain more the portuguese version (without the /us)
 
I swear, I had errors on every function called.
 
@SomeKittensUx2666 What are you guys talking about?
 
Can Ajax spoof referral URL in a post request?
 
3:19 AM
My last two comments were describing work I'm doing on Card Minion
 
@SomeKittensUx2666 ah okay!
@Ufoguy can you be more specific? like explain what you mean?
 
(It's my side project)
@KevinTomiyoshiYang What languages are you familiar with?
 
I'm trying to make a HTML5 app using phonegap. I need to do a post request and get the data back. I'm thinking of using jQuery @Kevin
@KevinTomiyoshiYang
 
@Ufoguy it's generally not possible.
 
Even in phone gap?
 
3:22 AM
@SomeKittensUx2666 I usually do C/C++, Java, PHP, Python, Javascript, and bash/batch stuff. Some sql
 
with phonegap?
@KevinTomiyoshiYang
 
@KevinTomiyoshiYang That's a nice set. Any NodeJS/Angular?
 
@SomeKittensUx2666 OH yeah, I classify it as just under JS lol
 
Any fun side projects?
 
@SomeKittensUx2666 Yeah! But slow progress due to classes :( nothing too amazing yet.
@Ufoguy phonegap? What is that?
 
3:24 AM
Protip: join the NodeJS room to find node questions for rep
 
It's a module for making native apps uding HTML
 
@SomeKittensUx2666 hahaha woot okay!
 
aNDROID and Iphone
@KevinTomiyoshiYang
 
@Ufoguy Why do you want to spoof url referals??
 
@KevinTomiyoshiYang To get past CORS
 
3:26 AM
@KevinTomiyoshiYang I'm kinda scraping from a government site!
 
We're not exactly keen on violating ToS here
Warranties are another matter.
 
@SomeKittensUx2666 I see.
 
It's legal in my country
 
@Ufoguy Huh. Well, Sure, I think you can. Not sure if you mean the HEADER REFERRER
 
3:27 AM
Yes
@KevinTomiyoshiYang
 
@Ufoguy Generally the browser decides that stuff I think, but of course it is possible to modify the info.
@Ufoguy but you may have to write your own plugin to do that, though. I'm not sure if you can do that purely using JS. Might be able (i don't know)
 
You can't (and shouldn't) do that.
 
So native android apps are the only way
 
@Ufoguy wait, what do you mean "native android apps are the only way"
 
I'm thinking of building an app using HTML5 and I need to spoof the referral header using phonegap.
But I guess that is not going to work
Or I can use Google app engine as MITM to do the spoofing for me.
I mean with python on google app engine
 
3:33 AM
@Kevin finally I made it work, thank you for your help, I'm really grateful
 
@KissKoppány No problem! Glad I can help. It's fun to do these things :) What solution did you end up using?
@Ufoguy Well, if you can somehow scrape content off of their site using a third party tool, cool.
 
Hi guys, I have a quick question, i am trying to make the same example in this link gmaps-utility-library.googlecode.com/svn/trunk/markerclusterer/…, but it does not work when i try it in my computer or jsbin, jsbin.com/gawoniqo/1/edit, WHY?
 
@Ufoguy Have you tried looking at using existing cookies the website gives? Have you tried using JSoup (sorry if this is old). JSoup is an HTML parser if that helps at all. You can also get info if the site gives you some sort of cookie for validation.
 
SELECT EXISTS(
    SELECT `userid`, `questionid`
    FROM `likes`
    WHERE `likes`.`questionid` = `questions`.`id`
    AND `likes`.`userid` = :id)) as `liked`
huh it killed me lol finally I can say (hope so) I'm done with this part
 
@KevinTomiyoshiYang I'll take a look at that
 
3:37 AM
@KissKoppány cool :D nice and clean solution <3 love it
@Ufoguy You can write an Android app using JSoup to scrape content off of the gov site. This way, I don't think you need to manually send spoofs to trick their domain into giving you data.
JSoup would only work if the data is displayed in form of HTML or whatever JSoup can parse from the web pages.
 
!!summon 53857
 
@Ufoguy (I don't think the gov site would require any logins, so this should be even easier to do.)
@CoKoder ionno. Hopefully someone can help you with this one. I gotta eat and shower.
 
Is Jsuop for a javascript library or a Java library
I'm not familiar with Java
Python and Javascript are ,y things
@KevinTomiyoshiYang
 
@Ufoguy If you are writing an Android app.... you need to know Java...as Android is a Java class.
 
@KevinTomiyoshiYang, I hope so.
 
3:43 AM
Phonegap converts HTML5 apps in to native apps
 
@Ufoguy JSoup is for if you are writing a native Android app (using Java).
@Ufoguy okay, then google up some Javascript scrapers like JSoup. Shouldn't be too hard maybe. If not, Java is not hard to learn if you know Python or Javascript.
 
@KevinTomiyoshiYang I'll try to learn Java
 
@Ufoguy just google up some HTML5/ JS scrapers. Also, there might be third party online tools to scrape for you. Google it :)
 
Hi guys, I have a quick question, i am trying to make the same example in this link gmaps-utility-library.googlecode.com/svn/trunk/markerclusterer/…, but it does not work when i try it in my computer or jsbin, jsbin.com/gawoniqo/1/edit, WHY?
 
3:49 AM
the next step's gonna be to count how many user liked a post but first I need some sleep I guess :D
 
@KissKoppány What's this for?
 
@SomeKittensUx2666 @KissKoppány I guess it's for some website he/she is writing?

@KissKoppány The next step shouldn't be hard at all. You can relax and do it later :)
 
I'm new to php/mysql/js jquery ajax and I'm making a social site as practicing
 
Nice, enjoy
 
@KissKoppány well I'm going to hangout in the PHP and Javascript chat. Maybe SQL too. U can ask me if I have spare time like now! :)
 
3:52 AM
@Kevin hopefully :D
good, thanks :)
thanks @SomeKittensUx2666
my bed is calling me, and I'm polite so I've to answer :P see you later guys and thx for the help ^^
 
4:20 AM
Well I rolled my ankle so hard today
 
@RUJordan wat
 
Was playing basketball and rolled my ankle and stupidly kept playing
 
Welcome to JavaScript chat. Read this link or we'll eat you: rules.javascriptroom.com. Before asking a question inform yourself on the XY problem goo.gl/taIqf
 
@RUJordan ouch. Well, if it makes you feel better, I got hit by a car few days ago and broke my foot and face. This is why I'm here...
 
girls will not read ur link perhaps
 
4:23 AM
@DanyP correct
 
You broke your face?
 
))
any suggestions on a site to practice problems?
 
@RUJordan broke my facial bones. Like nose bone, cheek, etc.
 
js problems related to algorithm and stuff, not really web development
 
@DanyP Project Euler is fun :D
 
4:24 AM
Jesus man
I hope you're alright
 
Project Euler x2
 
@RUJordan I'm getting better. The person who hit me will have to pay a handsome amount for my treatment lol
 
cool ill give a go to project euler
 
@DanyP You'll love it. It has lots of "general" algorithm problems that you can implement in different languages to achieve the same result.
 
i find that solving hard problems and always finding a way to solve them better and more elegantly helps in all development areas..
 
4:26 AM
@DanyP for sure.
 
yea, checked a few questions looks awesome
and some maths involved, fun as well
review math notions at the same time
 
@DanyP Yup! A good waiting-in-line game. haha. Or... waiting-for-food game
 
4:37 AM
Anyone used MutationObserver?
 
Hi guys, can you check this jsbin code? jsbin.com/henewape/1/edit
I am trying to do an example such that stackoverflow.com/questions/11792683/…
but it seems that it does not work, why?
The probel is that the alert alert("found!"); is not executed
 
4:53 AM
@CoKoder _circle.contains is not a function
 
@adeneo -> hey. I solved my problem :)
hey @Connor
 
@Connor, so what?
I try to call this function 		google.maps.Circle.prototype.contains = function(latLng) {
		  return this.getBounds().contains(latLng) && google.maps.geometry.spherical.computeDistanceBetween(this.getCenter(), latLng) <= this.getRadius();
		}
 
  var circles  = [
    new google.maps.LatLng(37.782551, -122.445368),
    new google.maps.LatLng(37.782745, -122.444586),
    new google.maps.LatLng(37.782842, -122.443688),
    new google.maps.LatLng(37.782919, -122.442815),
    new google.maps.LatLng(37.782992, -122.442112),
    new google.maps.LatLng(37.783100, -122.441461),
    new google.maps.LatLng(37.783206, -122.440829),
    new google.maps.LatLng(37.783273, -122.440324),
    new google.maps.LatLng(37.783316, -122.440023),
    new google.maps.LatLng(37.783357, -122.439794)
These are not circles
 
5:09 AM
@Connor, those points are within radius of the circle
 
@CoKoder they are not instance's of google.maps.Circle therefore don't inherit the Circle.prototype
 
^I agree with Connor
 
@Connor, so how to make it work?
 
@CoKoder You make it grow arms, legs, and a brain. Then it should work itself out. haha jk. Just bored.
 
Morning!
0
Q: Show graph axes when using jqplot library

Ionică BizăuI am using jqPlot for creating graphs using jQuery. I want to display Ox and Oy axes in my graph (also, with arrows and some text if possible). How can I do this? I initialize my graph using: $.jqplot ('graph', [[[1, 2]]], { axesDefaults: { labelRenderer: $.jqplot.CanvasAxisLabelRe...

Can anyone help me with a solution?
 
5:33 AM
!!youtube nero promises
 
@phenomnomnominal, thanks, but the alert is not executed: alert("found!");
 
@CoKoder no it isn't because your contains function doesn't work, because you're not including the geometry library
 
5:50 AM
@phenomnomnominal, can you help me to include the geometry library
 
@CoKoder nope sorry, I'm busy, but I sent you a link that should tell you everything you need to know
 
@CapricaSix YES
 
See, it's funny because Node.js is introducing native promises in v0.12
 
@SomeKittensUx2666 Why is it funny ?
 
@dystroy I posted a song called 'Promises'
 
6:02 AM
OK. Have no sound here, so I guess it's funny...
 
@dystroy Any suggestions for handling db migrations in node/postgres?
 
not really, what's the problem ? Can't you just dump and restore ?
 
Schema migrations, adding a new table, for instance
 
(disclaimer : coffee level very low)
 
Question #2: I have an array of data. I want to insert each item in the array as a separate pg query using bluebird promises. What's the best way to achieve this?
Is it .map I'm looking for? I'm not sure if I'm reading the docs right
 
6:28 AM
@SimonVanCasteren 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.
 
@BenjaminGruenbaum See above. It's late, so I'm probably missing the obvious solution.
I'm getting a bunch of contacts from the Google API, and I want to insert each contact as a row in postgres.
The number of contacts will differ per user, of course
 
6:48 AM
@SomeKittensUx2666 Can you recommend a kickass introduction to database design and interaction?
 
/me isn't that great with databases
 
hmmm
Ah well. I'll see what I can source from the collective talent of CampJS next week :D
It'll be my first tech camp/hackathon :D Super excited
 
sweet! Enjoy!
 
Really looking forward to the intro workshops for nodejs and extending Atom Editor
 
can I ask you a question about regular expression?
 
6:52 AM
@sabbir I dunno, can you?
 
!!s/I dunno\, can you\?/Yes/
 
@monners @sabbir Yes (source)
 
CWATIDIDTHERE?
 
my input :: user name | otherinfo | otherinfo <user_email@email.com.others>; user name2 | otherinfo2 | otherinfo2 <user_email2@email.com>; user name3 | otherinfo3 | otherinfo3 <user_email3@email.com>;

And I use the following regular expression:
(\s*?([a-zA-Z0-9\.\-_|\s]+(\s?|\s?\w+)*(\s)*)?<[a-zA-Z0-9\.\-_]+@[a-z0-9\.\-_]+\.[a-z0-9]{2,5}(\.[a-z0-9]{2,5})?>;)\s*?
 
@Regnarg 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.
 
6:58 AM
:( I made foot but I spilled it everywhere because I am still crippled from the accident...
but I'm back guys!
 
wb
 

« first day (1310 days earlier)      last day (3633 days later) »