Python Programming & other inferior programming languages thread

Discussion in 'The Mainboard' started by Walt Disney, Jul 15, 2015.

  1. kennypowers

    kennypowers Big shit like a dinosaur did it
    Donor TMB OG
    UCF KnightsAtlanta BravesJacksonville Jaguars

    Does he work for Portland Group, because their compiler Suuuucks. We had to make our code compile in PGC to make it HPC compliant and it gave us like a 15% slowdown vs intel.
     
    Joe_Pesci likes this.
  2. Joe_Pesci

    Joe_Pesci lying dog-faced pony soldier
    Donor
    Wolfsburg

    I would have to ask. Although I probably won't because, while he was a nice guy and super smart, he sucked at running a college class and I will be steering clear of him most likely.
     
  3. Joe_Pesci

    Joe_Pesci lying dog-faced pony soldier
    Donor
    Wolfsburg

    fwiw i do have a deep love for C++ after data structures (especially) and design patterns

    possibly because of something resembling stockholm syndrome
     
  4. colonelrascals

    colonelrascals Mayonnaise-colored Benz, I push miracle whips
    Donor
    Texas Tech Red RaidersHouston AstrosHouston RocketsTennisTottenham HotspurTexas Tech Red Raiders alt

  5. leroi

    leroi -
    Donor
    South Carolina GamecocksGrateful Dead

    welcome to the brotherhood

    brother

    your initiation packet is in the mail
     
  6. TDCD

    TDCD Handling the Fisher account
    Donor
    Florida State SeminolesConnecticut HuskiesBoston Red SoxNew England Patriots

    What city?
     
  7. colonelrascals

    colonelrascals Mayonnaise-colored Benz, I push miracle whips
    Donor
    Texas Tech Red RaidersHouston AstrosHouston RocketsTennisTottenham HotspurTexas Tech Red Raiders alt

    Houston.

    My best friend works in O&G so I'll probably never leave.
     
    clemsontyger04 and TDCD like this.
  8. TDCD

    TDCD Handling the Fisher account
    Donor
    Florida State SeminolesConnecticut HuskiesBoston Red SoxNew England Patriots

    My work has been in a dead period over the holidays so was getting bored out of my mind. Started rewriting a previous personal project of an excel-type spreadsheet application. Forgot how much I love doing my own thing with this stuff and not following some agile bs
     
  9. Pile Driving Miss Daisy

    Pile Driving Miss Daisy It angries up the blood
    Donor
    Texas LonghornsAtlanta BravesAtlanta HawksAtlanta FalconsAtlanta UnitedGeorgia Southern Eagles

    But what about that sprint retrospective bro?
     
    Joe_Pesci, Walt Disney and TDCD like this.
  10. Joe_Pesci

    Joe_Pesci lying dog-faced pony soldier
    Donor
    Wolfsburg

    i'm trying to plan out the tasks for my little group project over the next few months. i don't know if i can match your hatred for xml (particularly with Intellisense) but mine is growing sharply.
     
  11. Joe_Pesci

    Joe_Pesci lying dog-faced pony soldier
    Donor
    Wolfsburg

    Is there a point at which an API becomes necessary? Currently users of our app just talk directly to the database, which is pretty slow because we're using the free student Azure stuff.
     
  12. leroi

    leroi -
    Donor
    South Carolina GamecocksGrateful Dead

    IME, splitting your system up into discrete pieces, like microservices, can give you a lot of flexibility and options in the long run.

    it also makes it easier to have multiple people working on it simultaneously.
     
    Joe_Pesci likes this.
  13. Aaron Hernandez

    Aaron Hernandez LikeMyPostCampaign: https://bit.ly/2kKJpot
    Donor
    Liberty Flames

    Anyone who does Python as a hobby have any home project ideas or resources? I’m taking a beginner class again and would like to supplement with my own work.

    Is there an easy way to make a Python program function on a website or am I going to have to get into JavaScript if I want that?
     
  14. colonelrascals

    colonelrascals Mayonnaise-colored Benz, I push miracle whips
    Donor
    Texas Tech Red RaidersHouston AstrosHouston RocketsTennisTottenham HotspurTexas Tech Red Raiders alt

    https://www.djangoproject.com/
     
    broXcore and Aaron Hernandez like this.
  15. leroi

    leroi -
    Donor
    South Carolina GamecocksGrateful Dead

    I use Flask for that. It's an extremely lightweight Python module that essentially turns your code into a sort of web server. (web framework.) So you can easily code your own custom routing system, where you can make any URL route to any method.

    http://flask.pocoo.org/

    Django is another web framework, but it has additional functionality that is called an "ORM", which is a way of taking SQL tables/rows and mapping them as objects in Python. It will definitely do what you ask, but it is "opinionated" and has a lot of overhead.

    The complicated part about django and flask is that you need to actually have a web server that you can install them on. Like an AWS EC2 or something. So you may also want to check out Google App Engine standard, which will host a microframework for you, for free, on appspot.com

    https://cloud.google.com/appengine/docs/standard/python/quickstart
     
    #1215 leroi, Jan 2, 2018
    Last edited: Jan 2, 2018
    Aaron Hernandez likes this.
  16. colonelrascals

    colonelrascals Mayonnaise-colored Benz, I push miracle whips
    Donor
    Texas Tech Red RaidersHouston AstrosHouston RocketsTennisTottenham HotspurTexas Tech Red Raiders alt

    great flask tutorial for those not familiar Aaron Hernandez

    https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world
     
  17. leroi

    leroi -
    Donor
    South Carolina GamecocksGrateful Dead

    also flask tends to work better in linux. if you have a windows server box , configuration is time consuming and there's not much in the way of authoritative guides to setting it up.
     
    #1217 leroi, Jan 2, 2018
    Last edited: Jan 2, 2018
    colonelrascals likes this.
  18. Joe_Pesci

    Joe_Pesci lying dog-faced pony soldier
    Donor
    Wolfsburg

    apparently that missile warning in hawaii was triggered when someone selected the wrong item from a drop down menu. how did anyone think this was a good idea and how did it pass through multiple people before being released?
     
  19. kentucky_dawg

    kentucky_dawg Fan of: Georgia
    Donor
    Georgia Bulldogs

  20. Joe_Pesci

    Joe_Pesci lying dog-faced pony soldier
    Donor
    Wolfsburg

    there's an xkcd obviously

    [​IMG]
     
  21. Pile Driving Miss Daisy

    Pile Driving Miss Daisy It angries up the blood
    Donor
    Texas LonghornsAtlanta BravesAtlanta HawksAtlanta FalconsAtlanta UnitedGeorgia Southern Eagles

    It wasn't even a dropdown menu, it looks like some 1996 webpage. I wouldn't be surprised if it was since so much government IT/Web services is probably grotesquely old and out of date.

     
  22. Joe_Pesci

    Joe_Pesci lying dog-faced pony soldier
    Donor
    Wolfsburg

    i wonder if there is any kind of confirmation dialog
     
    leroi likes this.
  23. colonelrascals

    colonelrascals Mayonnaise-colored Benz, I push miracle whips
    Donor
    Texas Tech Red RaidersHouston AstrosHouston RocketsTennisTottenham HotspurTexas Tech Red Raiders alt

  24. Savage Rob Chubb

    Donor
    Auburn TigersSt. Louis CardinalsAtlanta HawksAtlanta FalconsAtlanta United

    Sup guys. I started a blog http://atlantasportsdaily.com/ and I've been trying to figure out which Ad program I should be using.

    I got approved for Google Adsense but then got banned after about a week for some reason. I've read that they ban people for all types of reasons, but I'm not really sure what I did wrong.

    Now I'm using Media.net ads, but I've read they're not great for sports sites.

    I've got a few real advertisers, but I'm just wondering if I should continue to try and recruit legit advertisers or use an Ad program.

    Site has been up for three weeks now and here are the stats. Any advice would be greatly appreciated.

    Screen Shot 2018-01-22 at 4.40.08 PM.png
     
  25. Joe_Pesci

    Joe_Pesci lying dog-faced pony soldier
    Donor
    Wolfsburg

    submitted a proposal to some funding body at my school to get money for better hosting. AWS and Azure must just print money. in its current (probably poorly optimized) state it would cost $150/month for it to be possible for like 100 people to use our little app at the same time.
     
  26. glimmer

    glimmer queen of tmb
    Donor
    Alabama Crimson TideMetalAntifaAnarchy

    What Azure services are you using?
     
  27. Joe_Pesci

    Joe_Pesci lying dog-faced pony soldier
    Donor
    Wolfsburg

  28. Dwight Schrute

    Dwight Schrute 7 out of every 10 attacks are from the rear.
    Florida GatorsTampa Bay RaysTampa Bay Lightning

    Anyone done anything with tensorflow? I’m trying it out after using Azure ML, seems a lot more low level than Azure
     
  29. glimmer

    glimmer queen of tmb
    Donor
    Alabama Crimson TideMetalAntifaAnarchy

    School project right? If you're gonna have ~100 using it maybe the S0 level should be fine? It's got 1/10th of the computing resources (DTUs) available compared to S3 but I'd imagine the S0 could handle 100 concurrent users. Plus, 250GB is going to be a huge database that I can't imagine you would even come close to filling. S0 is $0.02/hr instead of $0.20/hr
     
  30. Joe_Pesci

    Joe_Pesci lying dog-faced pony soldier
    Donor
    Wolfsburg

    1 user = ~.7 DTUs currently. We have access to a free version provided by the school, which provides 5 or 10. There's a symposium in the spring where we demo what we did for ~4hours for industry people and whoever else wants to show up. We want people to be able to download and use the app during the symposium, if possible.

    I already submitted the proposal anyway.
     
  31. glimmer

    glimmer queen of tmb
    Donor
    Alabama Crimson TideMetalAntifaAnarchy

    Sounds cool. Good luck. Have you started looking into how/how often you're reading/writing to the db to lower the DTU for a single user?
     
  32. Joe_Pesci

    Joe_Pesci lying dog-faced pony soldier
    Donor
    Wolfsburg

    Thanks. There are a few performance things we've been looking at. Basically the area around the campus has been divided into 256 squares in a 16x16 grid overlayed onto Google Maps. Users "claim" a cell based on their GPS location. Currently when the map is loaded or updated, all 256 cells have to load to the user's phone from the db. This is bad and we're experimenting with ways to tweak this.
     
    clemsontyger04 and Spike 80DF like this.
  33. Joe_Pesci

    Joe_Pesci lying dog-faced pony soldier
    Donor
    Wolfsburg

    Everything is running in our UI thread as well (because we have no idea what we're doing) so that's something else we'll need to change
     
    clemsontyger04 and Spike 80DF like this.
  34. glimmer

    glimmer queen of tmb
    Donor
    Alabama Crimson TideMetalAntifaAnarchy

    You've probably thought about it, but instead of loading all the cells each time, maybe try to just grab the cells that have changed from the user's current map? Are you doing this in C#?
     
  35. nofatchildren - cissp

    nofatchildren - cissp Free Da Guys
    Donor TMB OG
    Tiger Woods

    Try Keras.

    Keras is a higher level front end to TensorFlow that will probably be easier to work with.
     
    Dwight Schrute likes this.
  36. Pile Driving Miss Daisy

    Pile Driving Miss Daisy It angries up the blood
    Donor
    Texas LonghornsAtlanta BravesAtlanta HawksAtlanta FalconsAtlanta UnitedGeorgia Southern Eagles

    Holy christ this is amazing/hilarious.
     
    BellottiBold likes this.
  37. Joe_Pesci

    Joe_Pesci lying dog-faced pony soldier
    Donor
    Wolfsburg

    Yeah we're using Xamarin so we can make Android stuff with C#. We have thought about doing it that way but we don't know how to make the database initiate that kind of dialog with everyone's phone. As it stands now, checking the database for changed cells isn't all that different from just loading the whole thing again. It might even be slower because 256 comparisons would be done.
     
  38. glimmer

    glimmer queen of tmb
    Donor
    Alabama Crimson TideMetalAntifaAnarchy

    [​IMG]
     
  39. glimmer

    glimmer queen of tmb
    Donor
    Alabama Crimson TideMetalAntifaAnarchy

    One more funny to end the day and celebrate finally getting this api to work in .Net core:

    [​IMG]
     
  40. Joe_Pesci

    Joe_Pesci lying dog-faced pony soldier
    Donor
    Wolfsburg

    i found this entertaining, given that things are more or less the same today in terms of non-mobile market share. if nothing else you get to see steve jobs and bill gates both get booed within about 5 minutes of each other.

     
    Walt Disney and Spike 80DF like this.
  41. Joe_Pesci

    Joe_Pesci lying dog-faced pony soldier
    Donor
    Wolfsburg

    if there are any android people in here: is there a reason to go with linear layouts over relative layouts for UI stuff? the xamarin guides i've been reading say that relative is, among other things, better for performance because of... reasons.

    linear layouts scale poorly in the emulators, but no one in my group has had a problem on their phones (galaxy s6-s8).
     
  42. colonelrascals

    colonelrascals Mayonnaise-colored Benz, I push miracle whips
    Donor
    Texas Tech Red RaidersHouston AstrosHouston RocketsTennisTottenham HotspurTexas Tech Red Raiders alt

    anyone use lightsail?
     
  43. Walt Disney

    Walt Disney #Dawgzy
    Donor TMB OG
    Georgia BulldogsManchester City

    Vscode is nice
     
    colonelrascals likes this.
  44. kentucky_dawg

    kentucky_dawg Fan of: Georgia
    Donor
    Georgia Bulldogs

    My go-to when I'm outside of Visual Studio
     
  45. Corch

    Corch My son got the Denver Nuggets jeans
    Donor
    Ohio State BuckeyesDenver NuggetsCleveland CavaliersCleveland Indians

    Any mid level Java developers in here want to move to Denver?

    The market for Java devs with 3+ years of experience is unreal.
     
  46. Joe_Pesci

    Joe_Pesci lying dog-faced pony soldier
    Donor
    Wolfsburg

    I'm still in school but what is the pay like? Just out of curiosity

    Denver seems like it would be nice too
     
    Corch likes this.
  47. Corch

    Corch My son got the Denver Nuggets jeans
    Donor
    Ohio State BuckeyesDenver NuggetsCleveland CavaliersCleveland Indians

    Mid level is probably anywhere from 80-100k
     
    Joe_Pesci likes this.