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

4:00 PM
@copy then what's the point in having instance methods in the first place, then?
 
user1596138
@KendallFrey Example? Guess I didn't follow
 
@FlorianMargaine Because they do something using the properties of the instance
 
1min
 
@FlorianMargaine You could have instances still accessed by more than one thread
 
user1596138
Basically I need to split "Mike Conley & Jane Heald" into ['Mike Conley', 'Jane Heald', 'Mike Conley & Jane Heald']
 
4:01 PM
think about a hashmap. You have hashtable for a reason
 
user1596138
Good enough use case for copy/paste off a random site haha
 
"ab".match(/(a)(b)/)
 
@copy then you get the multi-threading issues
@dystroy hm...
 
returns ["ab", "a", "b"]
 
@dystroy why not having simply static methods in this case?
that's what I don't understand
 
4:02 PM
In your case, /(.*) & (.*)/ would do
 
the point of instantiated objects is to hold state
 
@FlorianMargaine The question is not about that
 
You've upset Jinxy Cat.
 
@FlorianMargaine Actually, you're wrong
 
@copy it kinda is. We're talking about which API to use, so it depends on whether the object has to maintain state
 
4:03 PM
class {
   constructor(v) { this.v = v}
   dostuff() { exec("pkill "+v) }
}
 
@dystroy there's not much point there
 
If the method is called by two threads, on the first one it finishes without an error and on the second one it finishes with an error, but the first thread calls isStuffDone after the second threads finishes, the result is wrong
 
class {
    static dostuff(v) { exec("pkill " + v) }
}
@copy yes, that's the issue you get when using properties of instances
 
class {
   constructor(n) { this.n = n}
   dostuff() { exec("kill "+ n +" random processes") } // I hope your OS has a function to kill n random processes
}
 
@FlorianMargaine By what you suggest, you introduce that problem
 
4:05 PM
@dystroy you'll get multithreading issues there
 
user1596138
!!> "Mike Conley & Jane Heald".split(/ (.*) & (.*) /)
 
@Jhawins That didn't make much sense. Maybe you meant: t, so
 
@copy yes, because I assume that the instance is locked on a single thread. Or there's just no point in having instance methods in the first place
 
@Jhawins ["Mike","Conley","Jane","Heald"]
 
user1596138
@KendallFrey :P
 
4:06 PM
!!> ~~[]
 
@RalphWiggum 0
 
@FlorianMargaine So you're suggesting something that is generally a bad idea and causes problems with multi-threading. What are you defending now?
 
you didn't do at all what I said
 
@chrnola 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.
 
@copy I'm defending my original assumption
 
4:06 PM
@SolidCloudinc 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.
 
don't split, do match
 
user1596138
@KendallFrey Notice the :P
 
@Jhawins I did, what about it?
 
user1596138
I tried split at first an was like wtf am I thinking
 
@copy because without the original assumption, the whole API is completely wrong
 
user1596138
4:07 PM
That's cool. I didn't know it was that simple and understandable. Thanks bro!
 
Everything is simple once you understand it
 
@FlorianMargaine What assumption?
 
3 mins ago, by Florian Margaine
@copy yes, because I assume that the instance is locked on a single thread. Or there's just no point in having instance methods in the first place
 
Oh, that's not true
There are no problems if you don't write properties, for example
 
@towc nudge coming back to earth
 
4:11 PM
@copy in this case, why not just have only static methods and static properties?
 
@me 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.
 
@CapricaSix thx
 
@FlorianMargaine Because then you can have the properties only once
 
oooh
it just clicked :D
thanks for bearing with me ._.
 
user1596138
4:22 PM
On hold for hostgator...
 
user1596138
@Kendall that works out beautifully thanks for the tip. I was having a hell of a time trying to google that
 
Usually Kendall and beautiful don't mix
Jk <3
Is there a way to see how many close votes one has casted?
nevermind, i found it
 
user1596138
But I'm having more trouble... I seriously suck at regex, and this is PHP.
 
user1596138
If someone feels like volunteering...
 
Regex is my weakest programming area, besides math
 
user1596138
4:33 PM
I can't even get to the actual data I need to parse... Nvm. Fuck hostgator needs to answer this damn phone
 
hostgoaters online support is pretty good
 
user1596138
I usually do good, but not on weird splits like this.
 
the chat, not the phone
 
user1596138
But I want to use my voice to bitch them out
 
user1596138
Tired of this shit
 
user1596138
4:34 PM
And then they answer and I'll just be really nice because I don't want to get in trouble lol
 
go digital son
 
@Jhawins you are a man of the SSH right?
 
user1596138
Of course. The SSH is the life for me
 
I am running ssh -R 1234:127.0.0.1:1234 -l user remote-ip -N on the client to create an SSH tunnel from device to server so I can proxy the websockets
I'm wondering if there is a way, without altering the client code, to tunnel back
I am trying to remote update some files. :/
 
^ you sound like me when im trying to sound super smart to a non-tech person
> ..Yeah you just gotta port the websocket for the proxy do you don't trigger a DDoS attack on your node server. That's why you use a regular expression to parse the URI and redirect back to the root node.. etc etc lol
people be like DAMN HE SMART
 
4:37 PM
@gBoat 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.
 
user1596138
HostBater is POS
 
user1596138
Sorta on the phone gimme a sec
 
0
Q: Promises, backbone.js - sequence function is called after promise resolved

KosmetikaI'm not quite confident in js Promises and I am bit stucked with this code now. It's node.js server with backbone used for models. I need to hash user password before saving it, my model has such method preSave which is the first in sequence of three methods, it looks like this: preSave: funct...

 
user1596138
@rlemon I... Usually am not a DP man. Only 1 tunnel. Can't help ya there
 
@Jhawins y u no switch hosts?
 
user1596138
4:41 PM
I'd have to switch everything again. We have so much archival data
 
But you'd have the sweet freedom of Digital Ocean
 
user1596138
I'd have to convince my boss lol.
 
Show him the site. I'm SSH-tarded and I (with some help from y'all) setup SFTP, and a Node server.
 
user1596138
Are these VPS on digital ocean?
 
I even worked my permissions. Root access for $5 a month
Yeah, I would assume they are not shared hosts because I have 100% control of my server
Very cheap, not one issue on their side
 
user1596138
4:43 PM
lol yeah
 
And a great website too
 
user1596138
I'm buying it for myself personally :)
 
The ocean?
 
user1596138
I looked at them a few months ago but forgot
 
I'd go with Pacific. Less sharks I think
 
user1596138
4:44 PM
Indian
 
user1596138
Hmm just for shits...
 
user1596138
!!urban ocean
 
@Jhawins ocean A body of water which has continuosly assaulted humanity by way of sharks, tsunamis, and bermuda triangles.
 
user1596138
Yup
 
There's more than one bermuda triangle?
 
user1596138
4:45 PM
@RUJordan Well wherever the other end of the wormhole is is probably also a triangle ;)
 
Or it's Meg Griffin's bum
I'd rather not find out
Damn poltergeists
 
fuck. I am really in a pickle here
I'm pretty sure my server is compromised.
 
Why?
 
I've been removed from the sudoers file. and passwords have changed.
I can't access visudo
 
Oh shit
How does that happen?!
 
4:51 PM
no clue
I have to do everything from the root account now :/
 
You didn't remove the root account?
 
Fuck
 
you can edit /etc/sudoers manually
 
not without permission I can't
 
@FlorianMargaine I need you to back me up here chat.stackoverflow.com/transcript/message/17091587#17091587
 
4:51 PM
My ubuntu tutorial told me to give my account root permissions and remove root
 
vim /etc/sudoers <- read only
 
@RUJordan: that sounds like a very stupid idea
 
@ThiefMaster eep. I sure hope I misunderstood the tutorial and my root is ok then
How do I check?? =x
 
id root
 
@tpill90 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.
 
4:53 PM
jordan@SourceUndead:~$ id root
uid=0(root) gid=0(root) groups=0(root)
 
anyway, if you have a user with root permissions you could always recreate the root user by creating a new user with uid 0
 
Is that bad?
 
no
that means you still have a proper root account
 
oh thank god
I thought I fucked myself there. Thanks man!
 
recreating it wouldn't have been hard
since the only "special" thing of a root account is its uid being zero
 
4:55 PM
Sorry man I was using this hacking page and I accidentally your server and jpegs.
 
%wheel ALL=(ALL) ALL

and adding myself to `wheel` should suffice?
once I regain permissions I'm backing everything up, blowing away the server and restarting from scratch
I want to rebuild all of my sites using node
 
if you have access to root.. how do you not have control?
that makes no sense
 
well I do have control. but I don't like doing things from root
I like seeing rlemon@ip
:P
IM NOT A PLANTS ASS DAMMIT!
yay it worked
 
That's debatable
 
and my server didn't blow up
 
5:02 PM
Still debatable
:rlemon's phone rings: "Yeah hey this is go daddy. We just got a report you WHEELED your server and well.. your hardware exploded. This mostly happens with Canada.. mostly."
 
@3d0 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.
 
zip -r backup.zip /var/www
i didn't realize the mistake I had just made until it was too late
 
Why does $(".some-class").on 'change', .. fire like 7 times on a checkbox input?
 
7 inputs?
 
@monners That's the joke.
 
5:05 PM
@3d0 you should be 3do.
 
@Mosho Yes, I turned it down.
 
@Cereal works well for me jsbin.com/wokuqoda/1/edit
 
@rlemon guess it fires for everything with the class, even though I only hit one
 
show me
because again, works for me jsbin.com/wokuqoda/5/edit
 
Yeah, I just changed yours and I'm not getting this behavior.
aaahh, I know why
 
5:10 PM
not bad. all of my websites zipped up are only 850mb total.
 
How many websites do you have?
 
a few
not as many as @Loktar but a few
and I'm hoping to get more time / ambition to finish a few more
 
One of my websites is 733 Mb. Because it's bad. But better than when it was about 4Gb.
 
that is zipped.
so unzipped ... ugh.. i don't want to know right now
 
mine is full of not very high quality jpeg, so it wouldn't be reduced a lot when zipped
 
5:18 PM
does unzip -l archive.zip just list the contents?
or does it actually unzip it
 
no idea
 
One of my websites is over 30 gigs :P
because it hosts 87111 flash games.
 
Expecting another offer today - wish me luck.
 
god it might be over 50 I dont even know
its my last site on shared hosting
good luck @SomeKittensUx2666
 
<script class="xss">$('.xss').parents().eq(1).find('a').eq(1).click();$('[data-action=retweet]').click();alert('XSS in Tweetdeck')</script>♥
 
5:20 PM
yeah I have a meeting about xss today for our app :?
because I pointed out all the vulnerabilities
 
apparently that took over tweetdeck today
 
yea
they fixed it already I believe
 
look at the retweet count
 
@Jondlm 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.
 
@dystroy the zip barely compressed it
like 840mb zipped, 870 unzipped :/
 
5:26 PM
@Loktar Thanks
 
everything is better when it rhymes
 
Holy hell, IE gave me herpes. Took me forever, only to finally find my issue stackoverflow.com/questions/7742781/…
 
yea
IE hated console for a long time
if( !'console' in window ) { window.console = console = { log: function() {} }}
stub it out
 
@Ztranger 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.
 
!!wheatly
 
I specifically told him not to mess with the email template, because he doesn't know what he's doing.
What do I come back to this morning?
 
@rlemon Thanks. I can (and should) remove my debugging code anyways, but it definitely was a process, even to jsut find out that IE was crippled like that
 
<% if ( !person.bestImage ){ %>
    <% person.bestImage = 'http://www.needlehunt.com/img/nh_icon_white_bg.png'; %>
  <% } %>
^ indentation preserved
Yes, we're doing logic in the template.
because why not?
 
Logic isn't bad in the template... but why is that logic in the template?
 
@Cereal Have you ever played Portal 2?
 
user1596138
5:38 PM
Hey @RUJordan are there referral links or anything for Digital Ocean?
 
@SomeKittensUx2666 Yea, beat it when it came out
 
@Cereal We've nicknamed the "technical" cofounder here Wheatly.
 
Does that mean he's british, or just not very bright
 
He once deleted the .git folder because GitHub was down.
7
 
user1596138
:D
 
5:40 PM
I lol'd
 
Then pushed syntactically incorrect code to our live site, which promptly crashed.
Then he tried to explain that this was all my fault because my tests should have caught it (tests are run in a pre-commit hook, which is in the now-nuked .git folder)
 
user1596138
Hahahahahahaha
 
user1596138
I love it
 
@Jhawins you haven't heard this story yet?
 
@user1964638 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.
 
5:42 PM
I must have told it five times
 
user1596138
Yeah I have but it's hilarious every time
 
user1596138
I sorta forgot just how bad he was
 
@HairyFotr 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.
 
user1596138
Oh fucking god dammit
 
user1596138
Somehow I paid my truck payment not twice... But three times today?!
 
5:45 PM
@SomeKittensUx2666 that reminds me of back in the early days of the internet. (late 90's). a girl down the street deleted the windows/system directories because she needed more space to download barbie clothing cutout images.
 
user1596138
I guess I don't have to pay it for awhile but.... Shit. How the hell did that happen.
 
user1596138
They're like you musta reloaded the page
 
user1596138
Twice
 
I'm gunna do something stupid in my script now.. I'll be back in about 15 minutes with some complaints
 
@Cereal So tl;dr, that code is there because Wheatly didn't stop to think about where it should go.
 
5:50 PM
Just remember, IE sticks its penis in your butt if you try to use console without the dev-tools open. The more you know.
 
I didn't even know IE had a penis
Yes, that's official
 
Futunari
 
MS did that
 
52 secs ago, by Kendall Frey
https://www.facebook.com/internetexplorertan
 
5:55 PM
fuuu
 
> Error code: DNS_PROBE_FINISHED_BAD_CONFIG
 
@HostileFork hi bestie
 
I flagged it because I don't want to see it
 
5:58 PM
that isn't what flags are for
noob
 
right click, inspect element, delete
 
He called you noob, flag him
 
or just shut your eyes
 
Flagged for insulting me
 
!!google rlemon killit
@NickDugger seriously. that just pisses off everyone 10K+ rep in the chats
flags are not room specific
 
5:59 PM
lol
 
@JoeDiviak 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.
 

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