Two Plus Two Publishing LLC
Two Plus Two Publishing LLC
 

Go Back   Two Plus Two Poker Forums > >

Notices

Programming Discussions about computer programming

Reply
 
Thread Tools Display Modes
Old 09-06-2018, 02:39 PM   #35051
Mossberg
Pooh-Bah
 
Mossberg's Avatar
 
Join Date: Dec 2005
Posts: 5,851
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Haha, thanks guys! That makes it an easy decision.
Mossberg is offline   Reply With Quote
Old 09-06-2018, 04:00 PM   #35052
jmakin
 
jmakin's Avatar
 
Join Date: Jan 2008
Location: Streaming
Posts: 28,625
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by suzzer99 View Post
Which device?



Oh yeah - the HD and compression is better on FIOS too. Sports looks much better.


I use it on my pc and at work on my mac, but afaik you can run it anywhere - except my roommate said you cant do live tv on ps4. Im not sure if thats true or not.
jmakin is offline   Reply With Quote
Old 09-06-2018, 04:14 PM   #35053
suzzer99
Save the Cheerleader, Save the World
 
suzzer99's Avatar
 
Join Date: Nov 2005
Location: on top of the bell curve
Posts: 92,809
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Yeah on PC that stuff is fine. Trying to FF and RW over a remote while streaming on a regular TV is a lot clunkier than old-fashioned DVR ime.
suzzer99 is offline   Reply With Quote
Old 09-06-2018, 04:37 PM   #35054
OmgGlutten!
Pooh-Bah
 
OmgGlutten!'s Avatar
 
Join Date: Aug 2016
Posts: 5,104
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Object oriented programming is all basically the same. Learning one will make the others easier to learn. I would say to go for it.
OmgGlutten! is online now   Reply With Quote
Old 09-06-2018, 04:38 PM   #35055
microbet
Solar Powered
 
microbet's Avatar
 
Join Date: Jan 2005
Location: SoCal
Posts: 53,741
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

I learned PHP and am now playing around in Javascript, node, phaser and I will say that PHP will get you in a little trouble because basically in PHP if you think you can do something, if some syntax might just work, it probably will. That will leave you trying to figure out another way (the right way maybe) to do a lot of stuff. Seems like maybe some of the newer (to me - I learned in the late 90s) stuff in Javascript (like Jquery maybe and maybe node in general) was JS people wanting to do PHP stuff in JS.
microbet is offline   Reply With Quote
Old 09-06-2018, 04:44 PM   #35056
well named
poorly undertitled
 
well named's Avatar
 
Join Date: Jun 2007
Location: esse est coesse
Posts: 76,511
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

PHP and JS have some affinity in that both treat hash tables as the core data structure, and both are untyped. But I'm not sure that Jquery (definitely not new now, btw ) was really inspired by PHP at all. Is it just the '$'?
well named is offline   Reply With Quote
Old 09-06-2018, 04:57 PM   #35057
jmakin
 
jmakin's Avatar
 
Join Date: Jan 2008
Location: Streaming
Posts: 28,625
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

PHP syntax is a nightmare but I dont mind the language anymore
jmakin is offline   Reply With Quote
Old 09-06-2018, 05:25 PM   #35058
microbet
Solar Powered
 
microbet's Avatar
 
Join Date: Jan 2005
Location: SoCal
Posts: 53,741
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by well named View Post
PHP and JS have some affinity in that both treat hash tables as the core data structure, and both are untyped. But I'm not sure that Jquery (definitely not new now, btw ) was really inspired by PHP at all. Is it just the '$'?
I guess. What I'm really trying to figure out at this moment is dynamic variable names ($$ in php) and window['variable'] sorta seems to work maybe, but I don't think it's the right way.
microbet is offline   Reply With Quote
Old 09-06-2018, 05:35 PM   #35059
Grue
Pooh-Bah
 
Grue's Avatar
 
Join Date: Mar 2004
Location: It is pitch black.
Posts: 5,652
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Then you'll be very surprised what happens when you put "$$" into the browser..
Grue is offline   Reply With Quote
Old 09-06-2018, 06:08 PM   #35060
well named
poorly undertitled
 
well named's Avatar
 
Join Date: Jun 2007
Location: esse est coesse
Posts: 76,511
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by microbet View Post
I guess. What I'm really trying to figure out at this moment is dynamic variable names ($$ in php) and window['variable'] sorta seems to work maybe, but I don't think it's the right way.
JS doesn't have an explicit bit of syntax for this in the way PHP does, but window['foo'] works because basically everything in JS is a hash in the same way that just about everything in PHP is an associative array (in PHP terms).

You should probably be trying to avoid hanging a bunch of data off of the window object, but it's not that uncommon to have objects where you reference properties or functions using that kind of dictionary lookup syntax. I do think that most of the time you can avoid writing code this way though, and it can be a little hard to read. But it has its uses. Just instead of having window['foo'] and window['bar'] have window.MicrobetsAwesomeService['foo'] :P
well named is offline   Reply With Quote
Old 09-06-2018, 08:08 PM   #35061
_dave_
_Pooh_Bah_
 
Join Date: Feb 2005
Location: UK (or what remains of it)
Posts: 12,998
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

PHP can be very useful, I'm not sure I'd say you were "getting screwed" being taught it instead of React - they're completely different things. Back end / front end.
_dave_ is offline   Reply With Quote
Old 09-06-2018, 08:28 PM   #35062
suzzer99
Save the Cheerleader, Save the World
 
suzzer99's Avatar
 
Join Date: Nov 2005
Location: on top of the bell curve
Posts: 92,809
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

iOS voicemail has to be the buggiest product in the world. Problems including, but not limited to:

1) Screen flashes black constantly when not in speaker mode. This has happened over multiple phones.

2) Can't listen to voicemails a decent % of the time.

3) Playing the wrong voicemail from the list.

4) Playing in speaker mode when speaker isn't selected.
suzzer99 is offline   Reply With Quote
Old 09-06-2018, 09:10 PM   #35063
lostmypw
enthusiast
 
Join Date: Mar 2017
Posts: 81
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

I'm forking a python project that doesn't have any dependency versioning stuff. I hardly know python. It took me a while to get my system python packages up to date (I used apt-get install python-packagename which felt dirty). Now that I have everything working I want to set it up to use pipenv. Is this the only way to do it or is there a new tool? Also how can I even tell what versions of modules I'm using now? Do I have to print out stuff from the imported packages at runtime manually?

Also lol python. Even 10 years later this project is using 2.7 because it relies on libs that never got updated. What a cluster ****.
lostmypw is offline   Reply With Quote
Old 09-06-2018, 09:15 PM   #35064
blacklab
adept
 
blacklab's Avatar
 
Join Date: Jan 2005
Location: Austin, Tx
Posts: 854
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

php is fine, but there are way more react/node jobs than php jobs out there
blacklab is offline   Reply With Quote
Old 09-07-2018, 11:34 AM   #35065
RustyBrooks
Carpal \'Tunnel
 
RustyBrooks's Avatar
 
Join Date: Feb 2006
Location: Austin, TX
Posts: 24,467
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by lostmypw View Post
I'm forking a python project that doesn't have any dependency versioning stuff. I hardly know python. It took me a while to get my system python packages up to date (I used apt-get install python-packagename which felt dirty). Now that I have everything working I want to set it up to use pipenv. Is this the only way to do it or is there a new tool? Also how can I even tell what versions of modules I'm using now? Do I have to print out stuff from the imported packages at runtime manually?

Also lol python. Even 10 years later this project is using 2.7 because it relies on libs that never got updated. What a cluster ****.
I haven't used "pipenv" for anything but I use virtualenvs for basically everything. It lets every project have it's own set of libraries. Basically assuming you have all your requirements in a file called requirements.txt, you do

Code:
virtualenv ./myenv
. ./myenv/bin/activate
pip install -r requirements.txt
to "leave" the virtualenv you just run "deactivate" from your terminal. To get into it again just run
. ./myenv/bin/activate

When it's active, any pip stuff you do will change the virtual env, not your system env. I am imagining pipenv is similar but manages stuff for you implicitly.

Regarding python 2.7, most of the libraries are ported. I use python 2.7 for work because converting it would be a big task but I use 3 for almost everything now. There are probably a lot of relatively obscure libraries that never got converted because their authors are no longer active. The same thing happened with Perl 6. Perl 6 was announced in the year 2000, and I still don't think it's ascended past perl 5.

Python made a huge mistake by making not only several breaking changes, but making changes that might not be caught until run time, and that might be relatively subtle. It's not too hard to convert a big project if it will just fail to start and give an error (like happens with, say, the new print() or exception syntax), but if it will compile/start but still have some code that needs converting, that's a somewhat more difficult sell.
RustyBrooks is offline   Reply With Quote
Old 09-07-2018, 01:29 PM   #35066
Grue
Pooh-Bah
 
Grue's Avatar
 
Join Date: Mar 2004
Location: It is pitch black.
Posts: 5,652
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

This is going to sound cocky but I just don't really get how people are so unproductive. I stumbled on the contribution page on github for my work project and I have more than double the # of commits of the #2 person and frankly I dick around on the internet at least 1/4 of my work day and have other lead stuff to do another 1/4. I know commit count isn't a great metric but seriously? Heading to india in a couple weeks guess I'll try to figure it out then
Grue is offline   Reply With Quote
Old 09-07-2018, 01:59 PM   #35067
jmakin
 
jmakin's Avatar
 
Join Date: Jan 2008
Location: Streaming
Posts: 28,625
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

I keep having similar feelings
jmakin is offline   Reply With Quote
Old 09-07-2018, 02:09 PM   #35068
Craggoo
culled
 
Craggoo's Avatar
 
Join Date: Sep 2006
Location: R.I.P. ItzPenzoo 12-09-11
Posts: 12,533
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by Grue View Post
This is going to sound cocky but I just don't really get how people are so unproductive. I stumbled on the contribution page on github for my work project and I have more than double the # of commits of the #2 person and frankly I dick around on the internet at least 1/4 of my work day and have other lead stuff to do another 1/4. I know commit count isn't a great metric but seriously? Heading to india in a couple weeks guess I'll try to figure it out then
You have to consider how people structure their commits. Do they try and split them up into their distinct parts such that you would be able to revert a commit without affecting anything or do they just sandwich everything together.
Craggoo is offline   Reply With Quote
Old 09-07-2018, 02:29 PM   #35069
Grue
Pooh-Bah
 
Grue's Avatar
 
Join Date: Mar 2004
Location: It is pitch black.
Posts: 5,652
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

I have tried several times to communicate that people should be doing multiple commits a day and always to commit and push WIP commits at the end of the day to their feature branches, otherwise things are not source controlled, but who listens to me imo
Grue is offline   Reply With Quote
Old 09-07-2018, 02:45 PM   #35070
blacklab
adept
 
blacklab's Avatar
 
Join Date: Jan 2005
Location: Austin, Tx
Posts: 854
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

So my boss asks me to try to get our AWS bill down some more.

Start going through the servers. Find 4 that have not had one disk read/write in the last week. Start asking questions, finally get permission to shut 2 down. Savings of $1500 a month.

We have a product that combines a couple of data sources and produces a flat file that customers download from an ftp server. The servers run about 4 hours a month. They also have an RDS going that runs $1400 a month. There's no reason it can't run on one small instance with a local database. It doesn't matter if it takes 10 days or 4 hours to run. Holy **** you would have thought I was asking the group that runs them for their first born. God forbid you ****ers need to do your ****ing job.

So I get tasked with getting a dump of the database before they shut it down. I guess IT is too busy to click 3 buttons and take a snapshot. Turns out it's a couple of hundred gig. No problem, I'll dump one table at a time to a ec2 server and then set up an s3 bucket and move it over there. Well, turns out we don't have CLI access to S3 by default. So I open a ticket to get it. They give me a python script that grants me credentials. Yea! it works.

Start moving part of the dump over. It's at 157G of 161G and stops with the error message "Your credentials are expired, please renew them"

**** **** **** **** ****DICKS WTF!

Open a ticket asking for something that lasts more than an hour, get a flippant response of just renew them before the hour is up.

I have a project that I'm working on that involves moving and cleaning 5.1Tb of data from a partner's s3 bucket to one of ours. The current stoppage in that project is that I'm not allowed to start up spot instances. Since I don't really care if this takes 2 weeks or 4 weeks to run I'm just going to use spot instances to save money. But no, I'm not allowed to do that. I can start up a d2.8xlarge at $5.52 an hour, but can't start a c4.xlarge spot instance at $.06 an hour.

So I reply to the ticket that I have a project coming up that's going to move 5.1Tb of data and is going to take 2 weeks to run. You're telling me I need to stay up 24 hours for two weeks so my project keeps running?

Can't wait for his response.
blacklab is offline   Reply With Quote
Old 09-07-2018, 02:57 PM   #35071
suzzer99
Save the Cheerleader, Save the World
 
suzzer99's Avatar
 
Join Date: Nov 2005
Location: on top of the bell curve
Posts: 92,809
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Sounds like your company just traded internal Ops gatekeepers for AWS Ops gatekeepers.

Probably how it's going to turn out at many large companies.
suzzer99 is offline   Reply With Quote
Old 09-07-2018, 03:32 PM   #35072
blacklab
adept
 
blacklab's Avatar
 
Join Date: Jan 2005
Location: Austin, Tx
Posts: 854
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Yep.
Last time I worked at a large company every group had a big ass ESX server and could do whatever the hell we wanted on it. Other than them telling us when it was getting rebooted for upgrades we never talked to IT.

I've probably wasted over 100 hours in the last 10 months I've worked here trying to get **** done inside AWS.
blacklab is offline   Reply With Quote
Old 09-07-2018, 04:12 PM   #35073
goofyballer
Carpal \'Tunnel
 
goofyballer's Avatar
 
Join Date: Jun 2005
Posts: 66,940
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by Barrin6 View Post
I have a friend graduated from same school as jmakin and I. Graduated a year ago and is just making 50k in Orange County as a software dev. Boss just gave him a raise of 8k after a year and they promised to add another 2-3k after a few months. Poor guy is getting taken advantage of.

I have been pushing him to be more aggressive about a salary re-adjustment and encouraging him in finding a new job.

He’s not extactly the brightest but damn after a year he should be making more.
Wow. My entry-level salary at a video game company (which is already generally not the most employee-friendly sector) was 70k with paid overtime (and there was lots of overtime), and that was ten years ago before the Bay Area was the punchline of every joke about income inequality.


Quote:
Originally Posted by Grue View Post
I have tried several times to communicate that people should be doing multiple commits a day and always to commit and push WIP commits at the end of the day to their feature branches, otherwise things are not source controlled, but who listens to me imo
idk if this is a normal part of your work process, but pushing stuff at the end of the day sounds really annoying and would be an...adjustment. I usually have multiple active branches I'm working on locally, and I don't think failing to push it to the server means it's not in source control.
goofyballer is offline   Reply With Quote
Old 09-07-2018, 04:19 PM   #35074
goofyballer
Carpal \'Tunnel
 
goofyballer's Avatar
 
Join Date: Jun 2005
Posts: 66,940
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by OmgGlutten! View Post
software engineer, six months of experience (bootcamp grad), new york city: $160,000, plus $55,000 bonus
----
senior software engineer, seven years of experience, startup in san francisco: $150,000

lol
Quote:
Originally Posted by suzzer99 View Post
Top one could be Netflix.
goofyballer is offline   Reply With Quote
Old 09-07-2018, 04:26 PM   #35075
blackize5
old hand
 
Join Date: Sep 2012
Posts: 1,341
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

I think Netflix forgoes stock in exchange for giving substantially more salary.

Sent from my SM-N960U using Tapatalk
blackize5 is offline   Reply With Quote

Reply
      

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Forum Jump


All times are GMT -4. The time now is 04:22 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright © 2008-2017, Two Plus Two Interactive
 
 
Poker Players - Streaming Live Online