Open Side Menu Go to the Top

08-09-2017 , 10:01 AM
I'm trying to write a script in package.json that starts two servers. That's easy enough, but I would like the script to open a new terminal tab for the second server, I tried to use ttab but apparently the system blocks "assistive access" such as opening multiple terminal tabs.

So I'm looking to "npm run start" and have it run the first script and then open a new tab and run the second, so you end up with 2 tabs in your terminal with both servers giving you logs.

This seems like it should be trivial but this system error has me thinking it might keep yelling at me as I try new stuff?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
$25m Guaranteed WPM on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
08-09-2017 , 06:54 PM
Quote:
Originally Posted by Grue
Huge drama today as it turns out one of my mods has been cheating via multi-accounting for months. And sucked away a ton of my energy and time today. fml.
Quote:
Originally Posted by Larry Legend
these game updates are my favorite reading on 2+2 atm
rofl yeah this is good stuff.

Reminds me of when I was in high school - there was this text-based MUD I used to play a ton, and right around the time I was learning C the guy who ran it decided he didn't want to do it anymore so he released the source and a few former mods/players started their own servers. I joined one of them as a programmer and had a blast putting my newfound programming knowledge to use, especially in a context where I was getting to see the inner workings of a game I'd been playing for fun for a few years.

The guy who ran it brought another coder on as well, and I didn't talk to him a ton but he seemed kind of like a cranky dude. He wanted to rewrite (or maybe just remove and replace) a big chunk of our backend to be more like some other MUD engine he had worked with in the past and liked. I didn't want to, because it's stupid to do all that work just to give him a more familiar environment.

Not long after this, the guy who runs the thing is like "uh, hey, it looks like you're cheating on your player character so I have to kick you off". I had no idea what he was talking about and eventually get it out of him that my player character magically obtained some super hard to get items. He sends me the player file and I quickly recognize that the format the items were inserted into my file is wrong and wouldn't even have worked correctly; the most likely scenario is that the other coder put them in my profile to frame me (lol this is all so dumb 15 years later). But, I was a teenager (they were both older) so he didn't believe me, and off I went.

Eventually the other coder lost interest and the head guy brought me back (to a codebase I barely recognized because the other guy went ahead and replaced the backend like he'd wanted to), but it was never quite as fun again.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-09-2017 , 07:28 PM
Cool story bro. I'm really enjoying these stories.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-09-2017 , 08:28 PM
I had a few thousand hours working on an emulated everquest server that has hundreds of daily users and somehow have no real personal drama to show for it. Lame. Of course the server itself had an eternal battle with RMTers, lunatics in CSR positions, and the wonderful personalities you get with any nostalgic video gaming venture.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-09-2017 , 10:56 PM
Yeah total ****show yesterday. At least 50 @ discord pings, all day on discord really, 20+ bug report emails, had to talk to this woman and she swears up and down she wont do it again and the sure enough my other awesome mods catches her the SAME DAY multiaccounting. And for nothing! High winrate on the player list, cool dark purple color. Thats it! Hundreds of hours wasted. She was a productive late night mod too (and obv could get away with it easier during off hours). Whatever. 18 year olds dude.

Every day I wake up and there's mentions and emails about x y z having bad manners and "ban foo bar baz for doing x". Wonder why FOSS sucks huh
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-10-2017 , 12:05 AM
I used to play WeeWar. At first it was fun. There were always open gams, and lots of tourneys. But after a while no one with a high rating wanted to play anyone they might possibly lose to. Once that happened it sucked.

There were some major ugly battles accusing the top people of creating mults to pad their score. I had a guy beg me to call a truce when it became obvious I was going to win.

Also there was something you could do where if your opponent didn't take their turn in a day you could forfeit them. But everyone would always give a break if the person said they were traveling or whatever. Except a few players started insta-killing their opponents in those spots. Which turned into a big kerfuffle on the forums.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-10-2017 , 12:46 AM
Round 4 of the code review from hell:

Quote:
Originally Posted by WOAT Dev
I wrote a callback to run after the unirest returns but facing issue with returning the object back to another file
Somehow he thinks the fact that his function is in another file (which he's properly exporting/requiring) matters as far as returning an object as an argument to a callback. Ugh. I don't even know what the code looks like. He's afraid to show me apparently.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-10-2017 , 02:00 AM
Anyone have this problem? We release a new service that constantly connects from our partner and pulls and parses files. Problem is that our partner releases the files in batches and the docker container's CPU spikes up for the short time period of the day.

Unfortunately some poor soul gets a page whenever that happens. The CPU usage spikes over 200% for close to 5 mins. Only happens maybe 4-5 times a day but happens really early in the morning.

Is there a way to throttle or is that not a thing?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-10-2017 , 02:21 AM
Quote:
Originally Posted by Grue
Yeah total ****show yesterday. At least 50 @ discord pings, all day on discord really, 20+ bug report emails, had to talk to this woman and she swears up and down she wont do it again and the sure enough my other awesome mods catches her the SAME DAY multiaccounting. And for nothing! High winrate on the player list, cool dark purple color. Thats it! Hundreds of hours wasted. She was a productive late night mod too (and obv could get away with it easier during off hours). Whatever. 18 year olds dude.

Every day I wake up and there's mentions and emails about x y z having bad manners and "ban foo bar baz for doing x". Wonder why FOSS sucks huh
Haven't really followed the project much, but players obsessing over their win-percentage is rarely good. You'll often see them intentionally forming lopsided teams, continuously playing newbies, etc.

Try adding some ELO-like rating system, it's super easy to do and should improve the experience a lot. Happy to help out if you have questions re: implementation for team games.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-10-2017 , 07:03 AM
Quote:
Originally Posted by Barrin6
Anyone have this problem? We release a new service that constantly connects from our partner and pulls and parses files. Problem is that our partner releases the files in batches and the docker container's CPU spikes up for the short time period of the day.

Unfortunately some poor soul gets a page whenever that happens. The CPU usage spikes over 200% for close to 5 mins. Only happens maybe 4-5 times a day but happens really early in the morning.

Is there a way to throttle or is that not a thing?
Curious what the problem is, exactly. Do you control the service that is running in that container? Then throttling it in whatever way would make sense.

But another option might be to just change the alert: make the duration that the CPU needs to be elevated longer before it alerts.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-10-2017 , 09:23 AM
Quote:
Originally Posted by plexiq
Haven't really followed the project much, but players obsessing over their win-percentage is rarely good. You'll often see them intentionally forming lopsided teams, continuously playing newbies, etc.

Try adding some ELO-like rating system, it's super easy to do and should improve the experience a lot. Happy to help out if you have questions re: implementation for team games.
yeah I added a "experienced players only" tier of games that people seem to love. Problem is its a table based game that has 100 players now so can't really make people wait, when people want to play they just grab a seat in a newly made game (or wait for an experienced game to open/make one themselves). It plays 5-10 players and most people prefer 7, 8, or 10. It used to be a flat slider and I recently added a checkbox system and it turns out everyone hates 6 and 8 player games who knew.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-10-2017 , 10:20 AM
Quote:
Originally Posted by Barrin6
Anyone have this problem? We release a new service that constantly connects from our partner and pulls and parses files. Problem is that our partner releases the files in batches and the docker container's CPU spikes up for the short time period of the day.

Unfortunately some poor soul gets a page whenever that happens. The CPU usage spikes over 200% for close to 5 mins. Only happens maybe 4-5 times a day but happens really early in the morning.

Is there a way to throttle or is that not a thing?
Can you schedule another container to be running at that time? Can you tune the alert to not go off unless the spike lasts for 8 minutes or something? I thought we were able to that with datadog but I was only around the edges of it.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-10-2017 , 10:40 AM
Yea I suggested throttling the CPU some how. Apparently just found out that it MAY be spawning bunch of threads when the batch comes in. The work it's doing isn't time sensitive so if that's the case, we should be able to reduce that then.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-10-2017 , 11:21 AM
Are you grabbing all the files in the directory at once? Limiting how many files you grab at a time could do it too, don't know which would be easier.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-11-2017 , 08:45 AM
I'm sure this question has been asked a million times before here, but how do you guys prepare for technical interviews? I don't have a CS background so don't want to be blindsided by questions about inverting binary trees.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-11-2017 , 10:37 AM
Quote:
Originally Posted by ChazDazzle
I'm sure this question has been asked a million times before here, but how do you guys prepare for technical interviews? I don't have a CS background so don't want to be blindsided by questions about inverting binary trees.
What is the role or what kind of a role you're applying for?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-11-2017 , 10:39 AM
Quote:
Originally Posted by vento
What is the role or what kind of a role you're applying for?
Senior Software Engineer & Full Stack Developer positions
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-11-2017 , 11:34 AM
It seems weird you are applying for senior roles and don't know technical interviews. Have you been with one company for a long time or something?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-11-2017 , 11:49 AM
Quote:
Originally Posted by kerowo
It seems weird you are applying for senior roles and don't know technical interviews. Have you been with one company for a long time or something?
More or less, yeah. I have 7 years software development experience but that's at a startup that I run. Was in management consulting before that.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-11-2017 , 11:53 AM
That would do it. Supposedly Glassdoor has interview questions on it but I've never looked.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-11-2017 , 04:08 PM
Quote:
Originally Posted by ChazDazzle
More or less, yeah. I have 7 years software development experience but that's at a startup that I run. Was in management consulting before that.
Just talk about what you did the last 7 years.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-11-2017 , 04:42 PM
Design fail. http://www.boredpanda.com/funny-crap...ign=BPFacebook



This is the kind of thing someone at my work would do, then argue with you that it's correct.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-11-2017 , 06:14 PM
It is correct. The list is in alphabetical order. It's ****ty design and should be in numerical order but it's labeled correctly.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-11-2017 , 06:24 PM
At every single point in design and development someone should have stepped up and screamed that it's a stupid design. Most likely there was no design and it just fell to an obtuse developer.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-11-2017 , 06:29 PM
Maybe the developer tired to sort a string 1, 2... 20 and could get it to be in "correct" order?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
$25m Guaranteed WPM on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

      
m