Remove ads, unlock a dark mode theme, and get other perks by upgrading your account. Experience the website the way it's meant to be.

Programming • Page 14

Discussion in 'Technology Forum' started by Dirty Sanchez, Mar 5, 2016.

  1. RyanPm40

    The Torment of Existence Supporter

    Totally wish I could use Mac at my job
     
  2. tbh that sounds awful to me, I'd be so unproductive having to constantly context switch
     
  3. RyanPm40

    The Torment of Existence Supporter

    Yeah I thought so for a sec too, but when I think about it, I use Windows as my main work computer, but do Dev work on Linux. OS X isn't toooo different from Linux so I don't think itd be too bad.
     
  4. drewinseries

    Drew

    Yeah, I'll have to see how it plays out. The work is doing statistical analysis and deep learning on neuroimaging data to predict treatment paths and outcome. Not sure how everything will play into it yet.
     
  5. The work itself sounds cool as hell, just having to manage three separate systems seems like a pain. :P
     
  6. drewinseries

    Drew

    Anyone know why Pycharm can't find any other interpreters besides 2.7, which I uninstalled, and have 3.5 on my computer?
     
  7. SilverScreen

    Nihil Nihil

    File > Settings > expand Project: > Project Interpreter > click on the settings symbol to the right of Project Interpreter drop down > select Add Local > browse to your 3.5 python.exe > click OK
     
  8. danielalee12

    Regular

    What kinds of laptops do you all have? I'm in the market for a new one. I've used a macbook air for the last year and have loved it!
     
  9. RyanPm40

    The Torment of Existence Supporter

    Went from a 2011 Macbook Pro to a 2014 when it came out, and I'm loving it. The Pros used to be so bulky, but now I see no point in purchasing an air, aside from the $$ savings. I don't even have a desktop, I just HDMI to a 22" monitor- going dual soon.

    Don't know jack shit about PCs nowadays, but I helped my girlfriend's little brother find this Lenovo ThinkPad Yoga and he loves it. I think the Wacom stylus is wicked cool - not that it would be helpful for programming or anything, but pretty neat.
     
  10. drewinseries

    Drew

    Tried that but for some reason the quick installation of Python put it somewhere I could not access from the drop down menu. Ended up re-downloading it custom and putting it to my desktop, thanks!
     
    SilverScreen likes this.
  11. drewinseries

    Drew

    Update my main machine is my Linux machine, PC is essentially my email portal, I work for a massive corporation so a lot of that stuff is handled there. Haven't used the mac too much to be honest. Linux rules though.
     
    scott likes this.
  12. Dirty Sanchez

    Prestigious Prestigious

     
    RyanPm40 likes this.
  13. drewinseries

    Drew

    That instantly gave me a headache.
     
    Dirty Sanchez and RyanPm40 like this.
  14. drewinseries

    Drew

    Just wrote my first successful/useful program at work. While it is really small in scope, feels good to have professional coding officially on my resume.
     
  15. Borat 2: Vengeance

    The Pitbull of Chorus.fm Prestigious

    Starting Computer Science 2 tomorrow - the first one was Java and this one is C++. Excited but nervous.

    Also realized I have the same teacher from the time I failed Comp Sci. 1. She is from China (and goes back there in the summer to teach) and has a very thick accent/hard to understand at times...I'm gonna get at least a B regardless.

    Also decided yesterday that I'd get a headstart on stuff and ended up spending 5 minutes writing and like 1.5 hours trying to just install everything right. Glad I got it out of the way I guess!
     
    kidwithhelmet and matthaber like this.
  16. RyanPm40

    The Torment of Existence Supporter

    Recently moved to a new team at my work, and have been having a lot of fun helping develop a new app. So much better than bug fixes and support work.

    Been playing with Angular2 and it's a really cool framework. Trying to wrap my head around MongoDB at the moment :p
     
  17. Timmiluvs

    I play video games fast Prestigious

    MongoDB is easy when you get used to it - nosql style DBs are just a whole different ball game than SQL ones.

    Think of mongo like this:

    MongoDB is an application. It can have inside of it many databases. Each of those databases can have collections. Inside the collections is where all of the data is.

    Mongo
    - DB1
    -- Coll1
    --- data data data data
    -- Coll2
    -- Coll3
    - DB2
    -- Coll4

    and so on.

    Its very good for holding raw JSON and retrieving it can be quick. It also has a lot of drivers for various programming languages and a ton of capabilities to like aggregate data over multiple fields so it makes processing the data quick and relatively easy once you figure out the syntax.

    It's also lazy, so in other words, you can create empty databases or collections, you can only create them if you have some kind of data to insert into it. Along those time lines, if a DB/Collection doesn't exist and you insert something into it, then it will create it on the fly for you.

    It's powerful and very useful for a lot of data driven applications that need something to neatly store and process JSON.
     
    mercury likes this.
  18. mercury

    modern-day offspring fanatic Supporter

    Angular 2 looks really interesting. I spent the last few years doing heavy Angular development, but unfortunately never got to mess with Angular 2 before switching to a job that uses React exclusively. Wish I had more of a chance to play with 2!
     
  19. RyanPm40

    The Torment of Existence Supporter

    Yeah, the more I get into it, the easier it gets. It seemed a bit intimidating at first, having only used relational models, but it's super simple.

    It's a very cool application and love how it stores the JSON objects. I've been working with it in the Swagger framework (AMAZING tool) to structure and play with our API, and it's been a lot of fun playing around with http requests. Makes client-side interactions with the server a piece of cake.

    It's definitely quite interesting! I really like how it uses TypeScript- you still get your JS features, but working with the components and being object-oriented is great; I think it meshes better with my Java background.

    Through a very light search, I saw you can develop Android apps with Angular2 and NativeScript, and I'm really interested in checking it out sometime. I've looked into PhoneGap in the past, but that uses WebView, and I guess NativeScript+Angular2 plays with the OS's rendering engine directly, which is super neat :P. Combined with the Material2 framework, it sounds like a really cool way to develop things.
     
  20. ReginaPhilange

    Trusted Prestigious

    Been tackling the newest projecteuler.net problem. Pretty close to getting an algorithm that I think will work (well, within a reasonable time at least, I've gone through many that work but take too long). Really great programming practice though. Gonna try one more revision tomorrow and if that doesn't work then there's some more math I need to do to find a simplification. Really fun problem so far though, would recommend the site to anyone who likes math/recreational programming. Latest problem deals with Hilbert numbers which have the interesting property of being closed under multiplication but have non unique de-compositions.
     
  21. armistice

    Captain Vietnam: Bestower of Tumors

    Which problem are you working on?
     
  22. ReginaPhilange

    Trusted Prestigious

  23. ReginaPhilange

    Trusted Prestigious

    My approach has been to count the square numbers (hilbert numbers divisible by a hilbert square) and then just subtract from the total number of hilbert numbers within a given bounds, which is easy to calculate (25 hilbert numbers per 100 natural numbers). The problem is the non-unique decompositions, which basically means you'll over count if you don't check if you've counted a number before. Storing and checking each number is obviously not feasible within a reasonable time for large numbers, so I have to create a more clever algorithm to solve it.
     
  24. ReginaPhilange

    Trusted Prestigious

    So I was able to write an algorithm that gives the correct answer for the example case within 30 seconds for 10E7 bounds but that's still way too long if I'm gonna check 10E16 numbers. This is hard. Gotta be some trick for seeing if a number is decomposable into multiple squares that doesn't require brute force checking
     
  25. ReginaPhilange

    Trusted Prestigious

    Our team is going into overdrive to get our app out before spring. Really think it could be huge. Exciting stuff. I've built a brand for it that I'm really pumped for
     
    Dirty Sanchez likes this.