Programming Thread

Discussion in 'Silicon (v)Alley' started by Enigma, Mar 28, 2015.

  1. Just figured we should have a programming thread!
     
    Post what you're working on, what ideas you have, ask questions, get help.
     
    n00bz and 1337 h4x0rz welcomed equally

     
  2. #2 Enigma, Mar 28, 2015
    Last edited by a moderator: Mar 28, 2015
    Figured I would contribute, just some boring little thing I whipped up out of boredom
    [​IMG]
     
  3. I once had an idea to help students schedule their classes by enumerating all the possible schedules made with certain restrictions in order to weave it around work life. But the project was too large for me.
     
    • Like Like x 1
  4. I say go for it. I like big projects because I always learn a ton of stuff
     
  5. The project I'm working on right now is using python to make an automation program that can control my grow room.  
     
    So far I just have a basic gui that displays the status of equipment that the program can turn on and off, and also monitors the environment and logs the data from the sensors.  The program will also send me text message alerts under certain conditions like high/low temperatures.  The program controls when the lights and fans are on right now, but soon I'll be adding soil moisture sensors and have the program also water the plants automatically when they are dry.
     
    Here is what my gui looks like so far.  The blank space on the will contain a display that shows the wet/dry status of each of the plants.
     
    [​IMG]
     
    • Like Like x 1
  6. Really nice man. I like it, simple and functional. What modules did you use? I'm assuming at the very least tkinter for the GUI
     
  7. Nice initiative Enigma, and thats really cool Berry
    Code:
    System.out.print("Hello thread!");
    I'm finishing a project with three other students for getting sentiment analysis over time and viewing the trends in a GUI, with graphs and shit, one of the tougher projects I've been involved with
     
    Using bootstrap and chart-js for the GUI so we can put it online
     
    For those interested in sentiment analysis (natural language processing for detecting if a text is objective or subjective, and a polarity rating to judge if its a positive or negative opinion), there's a great Python library called TextBlob thats easy as shit to use and has a bunch of great language processing functionality, including translation and classification
     
    The issue I have right now is making it work with a web crawler for scooping up all the opinions. Trying to make it work with tweets, but I'm stuck on that part, it just works with a database of news articles right now
     
    Oh and if anyone is nerdy enough to be interested in the math behind the Textblob NLP, it's a Naive Bayes classifier and I have no idea how the details of it works. If you're a computer science math major or know how the naive bayes classifier works, lemme know!
     
  8. #8 Berry, Mar 31, 2015
    Last edited by a moderator: Mar 31, 2015
     
    I actually used pygame.  I've only been learning python for about a year and one of the ways I've been keeping myself interested and practicing is by making little mini games, so I've learned quite a bit about pygame, but haven't delved too much into the other more frequently used modules for making a gui yet.
     
  9.  
    How are you connecting the grow room sensors to the program? I've been meaning to get into working with sensors for years, but never got off my ass
     
  10. Interesting as fuck man! Keep us updated on how the projects going. Seems like we all really like python :laughing:
     
    Right now I'm just bullshitting with making a little keylogger in python just for shits and giggles, will probably have it finished tonight
     
  11.  
    The python code is running on a Beaglebone Black which is running Linux.  There are third party modules available that allow easy access to the Beaglebone Black's pins to communicate with various types of sensors. 
     
  12. Favorite IDE? What OS/distro do you guys use? Favorite and most hated languages to work with?
     
    I'm really digging geany, and I use Arch, Win7, and Mint
     
    I love C, it feels so low-level and intimate and precise and I think it's beautiful, in its own way
     
    I dislike PHP but will use it when I have to
     
  13. #13 VikingToker, Mar 31, 2015
    Last edited by a moderator: Mar 31, 2015
    Cool Berry, when I get some time and an idea for a project that involves censors I'm gonna check that out
     
    Python is hands down my favorite language, fuck typesetting [​IMG]  I love how simple it is. Java is what I've coded in the most, and I'm pretty savvy with HTML, CSS and Javascript. No experience with any other languages, C intimidates me, the lower the level the more scared I get. I had to do some coding in Dark and PROLOG (which is obscure) for a class some years ago and hated it :<
     
    As for IDE I've used a bit of BlueJ, but didnt liked it and since have always used Eclipse (pydev addon for Python), and just Notepad++ for the web coding
     
    edit: Oh and Ubuntu and Windows OS
     
    edit edit: LaTeX has to get an honorable mention, I think that deserves respect as a coding language even if its just for pretty reports
     
  14. So far I've only learned python so I've been using IDLE.  I've tried some other IDE's but just haven't found one that matches the simplicity but functionality I like in IDLE.
     
    I use Debian for most of my projects and Windows 8/putty to ssh into the Linux OS.
     
    Like I said I have only programmed in python so I can't really say if I would like another language better, but I have really enjoyed python so far.
     
  15. Ruby is pretty similar IMO, if you want to take a look at that, and if you're into web development ruby on rails has a huge community. I prefer python and django but to each their own.
     
  16. Hey guys I am new to programming have been learning Java for passed 2 years I would love to do some kind of project that can monitor/control my grow room what kind of hardware would you recommend raspberry pi along with Arduino? I have no idea how to go about doing it but am determined to find out love doing something challenging. I would like to mess around with something like this and maybe learn some c/c++ in the progress. Can you guys send me a link of hardware micro-controllers that could be used to monitor/control my grow and if anyone has done it before maybe a simplified breakdown on what is required?
     
  17.  
    I could also put it out in the public so that others can learn also!
    You can do what you want with Arduino microcontrollers. Try the Teensy arduino. You can attach a bunch of sensors: pH, moisture, etc and control stuff from there. I agree with you on the RasPi as a web-facing alert/monitoring data logger. Sounds interesting
     
     
    Berry's got what you want right here. He can most likely help you most.
     
    with some sensors like 
     
  18.  
    All my system consists of is a Beaglebone Black, Arduino Uno, Temperature/Humidity sensor (AM2315 from Adafruit), and I'm about to add a soil moisture sensor.  The Beaglebone Black is just like the Raspberry Pi except it has more pins so you can connect to more sensors.  The cool part is that because the Beaglebone Black or Raspberry Pi is running linux, you can also make it a webserver that can then be connected to remotely from anywhere to control or view information over the internet.  The only reason I use the Arduino Uno is that the particular Temp/Humidity sensor I'm using isn't easy to get it to communicate with it connected to the BBB or a RPi, but it communicates just fine withe the Arduino.  So I have the Arduino talk to the sensor and then send that information to the BBB.  All my code is written in Python and there were plenty of resources available and examples on how to communicate with different sensors, and same goes with Arduino.  
     
  19. i spent a lot of time in php world and jquery.
     
    right now all about angular.js it's so much fun to build little apps. 
     
  20. What are you working on right now?
     

Share This Page