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

06-01-2017 , 09:05 PM
Quote:
Originally Posted by jmakin
Yea, that's fair. I just think grading should be done on the most commonly used system. For all of our classes, this is windows. It seems like all the TA's run Linux though.

Or, they could just take the source code as the submission and compile it on whatever they're running. What we're turning in is a .jar file, not code.
Aren't .jar files portable? Isn't that actually the entire point? Java is already running your code on a virtual machine, the jar files are just code the JVM understands, as far as I knew.

But, P.S. your TAs are doing you a favor if they're encouraging you to use linux. I know I'm biased but, **** windows. You couldn't pay me to develop on windows. I know this, based on the fact that people who have tried have found they couldn't pay me to develop on windows.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-01-2017 , 09:19 PM
Java: Build once; debug everywhere.

I don't know if the JVMs for Oracle JDK and OpenJDK are different enough that building on Windows will cause issues on Linux, but I guess it depends on what pulled in as deps. It wasn't really an issue when I built stuff on Windows and deployed to Linux, but there's other fun problems.

If it matters, a .jar is basically a .zip file with a different name, so testing on Linux is really a matter of sending over the .jar and running the java command. If there is a problem, unzip and fix whatever the issue is.

Also, agreeing with Rusty. Using Windows for .Net is fine, but otherwise, Linux was among the best learning investments I ever did.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-01-2017 , 09:55 PM
Oh right, I forgot about the Java fork. I guess that could be a problem.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-02-2017 , 01:39 AM
Speaking of virtual box, I spent way too much time the past day trying to setup a sftp server on ubuntu. Was aiming to use it so that my service could test against it but in the end, I ended up using our partner's UAT environment. Face palm

+1 to being familiar with Linux early. My work has been heavily involved in command lines that I can't imagine surviving this job without any Linux experience. Same with sql.

Now if I understood ssl and encryption stuff a lot earlier, my work would have been a lot easier.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-02-2017 , 01:42 AM
Also I think I'm starting to understand wtf is docker. It's like virtual box but somehow better.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-02-2017 , 04:49 AM
Quote:
Originally Posted by kerowo
That was standard character dev mechanics until pretty much Eve wasn't it? New ideas are hard...
Blame Gary.

Quote:
Originally Posted by _dave_
Suzzer, the main problem with that guy was leaving the money online. Coinbase is a "hot wallet", it is lunacy to leave $8k there if that's more than you need moment to moment, and would be devastating to lose. It should be your immediate trading bankroll only, which by definition shouldn't be more than you can afford to lose. Even then, it should be protected by stronger 2FA than SMS, as should the email address. SMS 2FA is way better than nothing, tho.

It may seem non-obvious, if you aren't familiar with the tech. But basically in our world, what he did was the equivalent of "I play 25nl occasionally, transferred my life savings to Full Tilt, told the world on twitter, didn't get the RSA token.". Or "Won the Sunday million from a freeroll. Should I leave all the money on Stars for the foreseeable future, or what?". Or people using Neteller and Skrill to hold their savings, instead of somewhere sensible.

The recommendation is to transfer coins to one of your own (numerous) offline / secure "paper wallet", or a secure hardware wallet such as Ledger Nano S. But even just transferring to any wallet which is entirely under your control is a far better idea than leaving your money in the hands of a third party. In this case, he had his phone ported and was hacked that way - but there's many many ways a third party can "be hacked", most of which result in users being out money when there was no need.

Phone companies handing over accounts to social engineering is a serious problem, of course.

I'm quite a noob at crypto, so the above may be wrong...
Looks good to me. The problem is people don't wanna be responsible for their own security. Basically everything that makes stuff easy to use and recovery possible simultaneously provides an attack vector.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-02-2017 , 06:55 AM
jmakin,

In theory I think all you need to know is the java version (7 in your case) and what jdk the TA is using (oracle, openjdk etc). Install that on your win machine and make sure your java command is calling the right binaries.

But in practice you should 100% install an ubuntu VM on virtualbox and use that because its a good learning experience. You might have to downgrade your java to 7 though, not sure what comes with ubuntu by default.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-02-2017 , 10:44 AM
Just gave a presentation to our class on redux and killed it.

Feel like I genuinely was able to get more than half the class understanding it in my 15 mins.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-02-2017 , 11:16 AM
Quote:
Originally Posted by Barrin6
Speaking of virtual box, I spent way too much time the past day trying to setup a sftp server on ubuntu. Was aiming to use it so that my service could test against it but in the end, I ended up using our partner's UAT environment. Face palm

+1 to being familiar with Linux early. My work has been heavily involved in command lines that I can't imagine surviving this job without any Linux experience. Same with sql.

Now if I understood ssl and encryption stuff a lot earlier, my work would have been a lot easier.
Welp I'm doomed then
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-02-2017 , 11:36 AM
If the TA/proff were inclined to be helpful they would have just provided a Vagrantfile for the class.

Is the TA on ubuntu 14 or 16?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-02-2017 , 12:10 PM
14
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-02-2017 , 12:57 PM
OK, I apologize in advance if this only causes confusion, tooling is a pain in the ass when you're just trying to get **** done. But this might be magic for you:

Install vagrant: https://www.vagrantup.com/downloads.html

You will need VirtualBox too.

Create a file named `Vagrantfile` in your project directory. And paste this in:

Code:
Vagrant.configure("2") do |config|

  config.vm.box = "ubuntu/trusty64"

  config.vm.provision "shell", inline: <<-SHELL
    apt-get -y -q update
    apt-get -y -q upgrade
    apt-get -y -q install default-jre
    apt-get -y -q install default-jdk
  SHELL
    
end
In a shell, gitbash or w/e, just run `vagrant up` from your project dir, this will take a couple minutes. When it's done you can `vagrant ssh` and you are now in the ubuntu virtual box, navigate to `/vagrant` which will contain your project files, you can then javac and all that stuff there.

I hope this helps, but it also might be good to clarify that those are the java packages the TA is using.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-02-2017 , 01:21 PM
Thank you! I'm going to try to get it up and running today, we'll see if I have any problems. I'm pretty bad at this stuff.

The most frustrating thing is that I can't really test anything until I get this running. I've almost finished my implementation (it's a CPU scheduler) and the algo's aren't super complicated so I'm not too worried but you never know.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-02-2017 , 03:17 PM
Also aren't the TAs actually it running off the school's servers? You should be able to sftp the whole project up there and test it from there. No need to set up virtual box.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-02-2017 , 03:21 PM
Quote:
Originally Posted by Barrin6
Also aren't the TAs actually it running off the school's servers? You should be able to sftp the whole project up there and test it from there. No need to set up virtual box.
Maybe, maybe not. I didn't when I was a TA.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-02-2017 , 03:41 PM
I actually took the same class with jmakin with the same professor, and I believe that's how they tested it. Actually now I remember they provided us a autograder. You just had to take the autograder and run it off the school's servers.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-02-2017 , 04:08 PM
welp i can't even get it to boot.

also this teacher is awful. have been to like 3 lectures, I have a 98%.

you took it with Amir?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-02-2017 , 04:08 PM
Quote:
Originally Posted by Barrin6
Also aren't the TAs actually it running off the school's servers? You should be able to sftp the whole project up there and test it from there. No need to set up virtual box.
they gave that as an option, going to try that. usually the school's servers won't let my PC connect though

my project is basically done too, this is frustrating as ****. probably belongs in the HW thread, sorry :/
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-02-2017 , 04:23 PM
omg i'm up and running

lol, TA's giving all these fancy instructions on how to transfer files from windows to your ubuntu client. He wants the students to connect virtual box to a router and set up an IP address then transfer the files. I just uploaded to my drive and downloaded from ubuntu.

Last edited by jmakin; 06-02-2017 at 04:31 PM.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-02-2017 , 05:41 PM
Alright basically done.

I can think of no other reason he wants us to turn it in this way other than he wants to familiarize us with linux.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-03-2017 , 11:59 PM
What does it mean on angel list when it says Software Developer .5% - 1.5% (or whatever)... so it is a start up... there is no or limited funding. What are those numbers for exactly?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-04-2017 , 01:09 AM
Basically means nothing. You should treat it as nothing since most startups make you work liked hell and eventually fail. On the off chance that even if they do succeed, you'll get screwed over somehow.

Check this out https://tldroptions.io and you'll see why.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-04-2017 , 04:52 AM
It's the percentage of equity for the position. But yes as barrin says it's most likely going to be worth little to nothing
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-04-2017 , 06:27 AM
Quote:
Originally Posted by Barrin6
Basically means nothing. You should treat it as nothing since most startups make you work liked hell and eventually fail. On the off chance that even if they do succeed, you'll get screwed over somehow.

Check this out https://tldroptions.io and you'll see why.
Not really sure how this calculator works, but the math seems somewhere between dubious and totally made up.

Not that I disagree with the view that you shouldn't consider early stage startup options to be essentially worthless.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-04-2017 , 08:49 AM
They give an explanation if you click on the "how we guesstimate" button. They make a lot of assumptions. I certainly wouldn't take it as gospel.

My company is probably going to go public this year. I have a fair number of shares but almost all of them aren't vested yet. I'll probably make a little money off them but not a lot. Probably not, like, even a new car. The recruiter was trying to make me settle for less money and more shares and I was like, nah. I'll take the money.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote

      
m