Open Side Menu Go to the Top
Register
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

12-05-2017 , 06:05 PM
Suzzer, missed opportunity on that response.

Definitely sucks.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-05-2017 , 06:21 PM
Missed opportunity?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-05-2017 , 06:22 PM
Indeed.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-05-2017 , 06:27 PM
Yeah I had that but it felt dirty.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-05-2017 , 06:34 PM
Quote:
Originally Posted by daveT
Not many Haskell jobs available. What few I've spoken to sort of prefers people with PhD level backgrounds.

They also all say they don't like the way I write code, which I take to mean they don't like secure, fast, and transaction safe.

I think Haskell programmers take themselves a little too seriously. They are sort of all the cliches one would find in the Lisp community, though Lisp programmers are tongue in cheek where I'm not sure if the Haskell community understands that or why Lispers are.
I actually have a PhD... However, I'm not after a Haskell job, I just fancied learning something new.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-05-2017 , 06:37 PM
Quote:
Originally Posted by Grue
I talked to the hiring manager for my "react/kubernetes expert" position and he's like "uh no we just need a react guy to build a web app, we can't find any so we figured we'd find someone who knows back end and see if they could learn JS". but I'm exactly what they need and its a lead dev job for stupidly high money at a fortune 100 and I'm sure I'll find a way to screw it up next week.
Got this. Guess they were desperate
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-05-2017 , 06:45 PM
woot! nice job! Uh, literally
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-05-2017 , 07:00 PM
I did get a "how do I deploy a react app on a docker container" question and I was like "uh I'd google it".
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-05-2017 , 07:20 PM
“Just how devops told me”
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-05-2017 , 07:51 PM
ok friends, as I said 4chan /v/ has arrived on my site and there's ~60-100 of them playing for the past couple days. Mods have it mostly under control somehow.

So I have a feature where players can upload a custom cardback image, 70x95. Its only unlocked when you've played 50+ games. The 4chan ones don't count though as they're private.

I can't help myself and am really curious just to see how crazy they go. I want to enable them for all players (there's a debounce), but I don't know how I'd delete the newest ones. Can someone ping me a linux command that would delete all files created after a certain timestamp? Casual SOing says its not that easy.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-05-2017 , 08:29 PM
Quote:
Originally Posted by kerowo
“Just how devops told me”
Serverless ftw. Containers are on the way out.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-05-2017 , 08:30 PM
It's pretty easy using the find command, ls -t or a script in your favorite language. On my phone but I can post an example later if no one else does
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-05-2017 , 08:49 PM
Quote:
Originally Posted by Grue
ok friends, as I said 4chan /v/ has arrived on my site and there's ~60-100 of them playing for the past couple days. Mods have it mostly under control somehow.

So I have a feature where players can upload a custom cardback image, 70x95. Its only unlocked when you've played 50+ games. The 4chan ones don't count though as they're private.

I can't help myself and am really curious just to see how crazy they go. I want to enable them for all players (there's a debounce), but I don't know how I'd delete the newest ones. Can someone ping me a linux command that would delete all files created after a certain timestamp? Casual SOing says its not that easy.
This will get you started: https://askubuntu.com/questions/5892...er-than-7-days

Make sure to practice someplace safe...
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-05-2017 , 09:08 PM
SQL function parameter order is endlessly tilting to me. When you have CHARINDEX(string, string) which finds the first occurrence of a string in another string, what kind of malicious psychopath puts the search string first and the target second? WHOEVER YOU ARE, SEEK HELP.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-05-2017 , 09:31 PM
While I'm complaining about things, Java's Arrays.asList() method converts an array into an ArrayList, which is Java's basic list type. Simple and straightforward.

Only.... it turns out this thing is not the standard java.util.ArrayList, but some other type called java.util.Arrays.ArrayList. This also inherits from the List abstract class. It behaves just like a normal ArrayList, except if you try to add or remove items from it, that will compile and then fail at runtime with an UnsupportedOperationException.

I mean, are you kidding me? Was that deliberately designed to be malicious?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-05-2017 , 09:49 PM
I thought for sure that you must be mistaken somehow because I've used Arrays.asList here and there, but I guess I've always only used them in an immutable way, because sure enough!

lols.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-05-2017 , 10:14 PM
Making that an RTE is especially awful
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-05-2017 , 11:52 PM
Not that I even pretend to know anything about sysadmin work but its so hard to find things out or even try to find things out. I finally upgraded my DO "droplet" to a 2 core machine. Only big processes being run are mongo and node via pm2. Is the other core being used?! How do I figure that out? IDK maybe I'm overthinking this.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-05-2017 , 11:59 PM
In that situation I would assume the 2 cores are functionally just a pooled amount of cpu power you have access to.

If you have to explicitly configure logic to use both cores then that seems insane to me, but I could be completely wrong.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-06-2017 , 12:15 AM
yeah all I know is that every node process can only use one core so I'd hope that ubuntu knows wtf its doing and the entire mongo process is on the other one? w/e it uh.. hasn't crashed yet.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-06-2017 , 12:33 AM
Quote:
Originally Posted by Grue
Not that I even pretend to know anything about sysadmin work but its so hard to find things out or even try to find things out. I finally upgraded my DO "droplet" to a 2 core machine. Only big processes being run are mongo and node via pm2. Is the other core being used?! How do I figure that out? IDK maybe I'm overthinking this.
This is why I hate linux. It's like 100% knowing stuff, 0% concepts. I like to get over the knowing stuff hump ASAP - and then have fun with the concepts.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-06-2017 , 12:35 AM
you can run "top"

you'll get something like this:
PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
10169 mysql 47 20 0 2190M 1666M select 1 487:08 192.15% mysqld
1163 www 1 26 0 481M 48608K select 1 0:03 20.52% httpd
1086 www 1 24 0 481M 51056K select 7 0:06 19.21% httpd

look at the "C" column, it tells you which cpu is being used.
There should be 0 and 1 in that column if you have 2 cpus
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-06-2017 , 12:45 AM
Quote:
Originally Posted by Wolfram
Personally, I would go with golang because it feels more and more like Node isn't that great for back-ends at scale (fine for front end though), and golang has a nice K.I.S.S. vibe going for it. Maybe goofy can weigh in here.
Node frontends?

Is that really true? I'm not super plugged in to the web dev community but I assumed Node was running the entire internet by now.

Anyway, regarding Go, it's definitely been fun to learn and the language design & idioms are quite nice and result in code that feels well-organized and elegant. Dependency management is a dumpster fire but whatever. It also feels like tool support is meh, is delve really the best debugger that exists right now? (probably not but that's what pops up when I google "go debugger"?) But, no language is perfect after 10 years, those things will improve.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-06-2017 , 12:49 AM
top is the strangest command ever. Why does it bounce around so much? What does the bold mean? When are zombies coming??

** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-06-2017 , 12:56 AM
I hate top too. Perfect example of byzantine confusing linux.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote

      
m