Jump to content

rockking1379

Member
  • Posts

    748
  • Joined

  • Last visited

Everything posted by rockking1379

  1. SQLite honestly is probably more powerful than access
  2. Most people don't know it exists. Someone wants to to a database and it's a bunch of use this or that server based one. SQLite is phenomenal for small projects or things where you need local database. Great for system configurations too.
  3. Finally someone else who recommends SQLite!
  4. honestly as something like a developer device this is pretty nice
  5. all i can hear is data centers everywhere going "YES YES YES YES" game serves man. virtual machines. so much power on the chip
  6. and just like that i will begin pursuing a complete and permanent migration to linux for any server related task
  7. when you catch the error, trying doing a stacktrace printout so we can walk through what is specifically happening. if you have hangouts it would be better for communication as it is a little faster
  8. read over the properties demo, you will see how i read the file into the program and then access the property "TEXT"
  9. import java.io.*;import java.util.Properties;/** * Created by James on 12/2/2015. */public class PropertiesDemo{ public static void main(String[] args) { /* Properties util is a great way for storing configuration data. it works with a file (though not yaml) it also makes reading and writing configurations very easy. and then getting a specific value from a configuration is also easy this is how i would do configuration data */ try { Properties properties = new Properties(); File propFile = new File("./configuration.properties"); if (propFile.exists()) { FileInputStream fileStream = new FileInputStream(propFile); properties.load(fileStream); System.out.println(properties.getProperty("TEXT")); } else { properties.setProperty("TEXT", "This is a properties demo"); propFile.createNewFile(); FileOutputStream fileOutputStream = new FileOutputStream(propFile); properties.store(fileOutputStream, "System Configuration"); fileOutputStream.close(); } } catch (IOException ioe) { ioe.printStackTrace(); } }} that is for using the Properties stuff import java.io.*;/** * Created by James on 12/2/2015. */public class PrintWriterDemo{ public static void main(String[] args) { //do stuff in here try { /* PrintWriters are great for making writing to some type of output (console, network, file) more like writing to the console. you get a println method as well as print. but can also simply utilize write */ PrintWriter writer = new PrintWriter(new FileWriter(new File("./foo.txt"))); writer.println("this is a demo with a print writer"); writer.close(); } catch(IOException ioe) { ioe.printStackTrace(); } }} PrintWriter demo, similar to BufferedWriter but little less explicit for when data is flushed import java.io.*;/** * Created by James on 12/2/2015. */public class BufferedWriterDemo{ public static void main(String[] args) { //do stuff in here try { /* BufferedWriters are great for maintaining control over the output of the file and when data is actually written (either to the network or to the disk) */ BufferedWriter writer = new BufferedWriter(new FileWriter(new File("./foo.txt"))); writer.write("this is a line"); writer.flush(); writer.close(); } catch(IOException ioe) { ioe.printStackTrace(); } }} BufferedWriter demo. these are useful for when you want to explicity control when the data is written to the file. but i would say go for PrintWriter or the Properties utility.
  10. okay i am on PC for a while here but question: are you trying to store configuration data for a program? if so then i am going to very very very strongly recommend you use the Properties classes. i will dig through my code and find somewhere where i used BufferedWriters or i will make an example since they are fairly easy for me. but i will also put up an example of using the properties stuff because it is immensely useful. you ever messed with minecraft server properties? that uses java properties stuff
  11. I use a BufferedWriter sorry don't have an example as I'm on mobile
  12. honestly while its a gray area, it does make sense. the service isnt available via the internet (i mean it probably is) but while your using your comcast connection it would technically be on their intranet.
  13. My wife really prefers her current 5S strictly because of the screen size. I have a 6 and even with a few weeks I don't think she could effectively use it like she can get 5S
  14. I saw a Twitter post and then downloaded it. Kinda happy to see it on iOS finally
  15. i promise it wasnt me. im just a low life college student who needed some responses for a group project
  16. i just wanted to say thanks to everyone who took the time to take my survey. i really appreciate it.
  17. regardless of how you responded, you are another response. even if wanted to answer with random things. responses that dont have somewhat legitimate answers will be scrubbed out before i make charts.
  18. everyone's input helps. the more responses i have the better.
  19. yeah im not really sure that the other members of my group quite understand how much modern society uses their devices...
  20. yeah that would have been a more appropriate question. but they made the common questions on a day when i was absent. but thanks for doing the survey
  21. wasnt one of my questions that was a common question that the rest of my group came up with. i would guess any activity is what they want. so forum browsing, facebook, twitter, etc
  22. to address the edit, its a respect thing to the LGBT community. i looked into it and it was one of the less restricitve options
  23. well the rest of my group had only gone down to 18...so i added <18 because i know there are some members of this community as well as others who are not over 18. only have to be what like 5 to have a cell phone anymore
×