Jump to content

technovore

Member
  • Posts

    671
  • Joined

  • Last visited

Everything posted by technovore

  1. I'm considering buying the oneplus x. I live in Belgium and a friend of mine claims that it has bad connectivity with belgium mobile networks. I was wondering if anyone from Belgium can confirm this? https://oneplus.net/be_nl/x/specs
  2. Thank you for all your responses and for sharing your experiences. Verdict: 7 people claim that any cable charges just as well, 6 people claim that a "better" cable will charge faster. so I guess it isn't conclusive but my experience still stands, I'll be looking for a better cable..that audioquest one looks nice....
  3. hey all I recently lost my USB cable that came with my smartphone(nexus 5). I replaced it with a generic usb cable, but have been noticing that it charges slower than before. Is it me or does any usb cable charge just as well, even though different chargers charge differently. thank you
  4. I tried Pygame once, it was terrible. I tried Unity recently and have been loving it ever since. I'd suggest unity, no idea about UE.
  5. Pygame does it as well
  6. yeah gmail still works fine, I guess I'll be sticking with it then. I kinda liked inbox, shame I can't use it, I guess it's more my style.
  7. Hi all I'm trying out the "Inbox by google" email client app on my nexus 5. I used gmail before and it had my 2 gmail accounts and my 2 microsoft accounts (1 from outlook and 1 from the school's exchange server). Everything worked fine. But I can't seem to add a non-google account to the inbox app. TL;DR Am i missing something? how do I add a non-google account to inbox? In the likely event that this is impossible, then why would anyone prefer the inbox app over the gmail app? thank you
  8. try calling flush? http://developer.android.com/reference/java/io/PrintWriter.html
  9. it's just the name of the NetworkInterface. but I fixed it now, just needed admin privgs.
  10. running the my code with admin priviliges fixes it
  11. posted on stackoverflow like I should've in the first place: http://stackoverflow.com/questions/30437346/c-sharp-trying-to-disable-a-networkinterface
  12. Hey guys, I'm creating little tool to manage my NetworkInterfaces. I've looked all over the web for a way to disable a nic. I've already got an instance of it. http://i.imgur.com/9RG2A9s.png Neither of these methods actually manage to disable the nic (yes i know the second isn't being called) Doesn anyone know another method? many thanks xx!
  13. http://www.bq.com/gb/products/aquaris-e4-5.html "QHD resolutionEnjoy your images at a resolution of 540 x 960 pixels (240 ppi)." are they being sarcastic?
  14. magic happened, it works. dbc is an instance of an object with a public boolean connectionWorks() private void addDatabaseConnectionThread(){ t = new Thread() { @[member=OverRide] public void run() { while (!interrupted() && threadRunning) { if (dbc.connectionWorks()){ lblDBConnection.setText(""); } else { lblDBConnection.setText("database connection failed"); } try { Thread.sleep(3000); } catch (InterruptedException e) { e.printStackTrace(); } } } }; t.start(); } don't ask me why this works and the previeous one didn't.
  15. I'm writing a program in java that uses a databaseconnection. I wrote a new thread to constantly check wether I have a connection to the database. my thread works, but when I call a function it doesn't run. this works: private void addDatabaseConnectionThread(){ (new Thread(){ @[member=OverRide] public void run() { while(!interrupted()){ //if (dbc.connectionWorks()){ System.out.println("true"); //} try { Thread.sleep(200); } catch (InterruptedException e) { e.printStackTrace(); } } } }).start(); } but this doesn't work: private void addDatabaseConnectionThread(){ (new Thread(){ @[member=OverRide] public void run() { while(!interrupted()){ if (dbc.connectionWorks()){ System.out.println("true"); } try { Thread.sleep(200); } catch (InterruptedException e) { e.printStackTrace(); } } } }).start(); } and I have no idea why... dbc.connectionWorks is a function in another class that works when called outside of the thread. can anyone help?
  16. hi I'm working on another small java project and I was wondering wich renderingHints I should set to which settings in order to achieve the best quality. So far I have these on: @[member=OverRide] public void paint(Graphics g) { //region setup graphics super.paint(g); Graphics2D g2d = (Graphics2D) g; g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON); //endregion //some more irrelevant code } Does anyone have any more suggestions? I can't seem to wrap my mind around what the others do. https://docs.oracle.com/javase/7/docs/api/java/awt/RenderingHints.html#KEY_ANTIALIASING
  17. oh my god, I'm so sorry! could a mod please move it over to programming please?
  18. EDIT: Dear forum moderators, please move this over to programming please! sorry for the mistake Hey guys, I'm working on a project for school and I'm trying to play an audios file(wav) in java. I've looked all over the web and they all basically suggest the same code. problem is that I don't hear anything. I do hear it if I play the sound in vlc. code: package AudioTest;public class Main { public static void main(String[] args) { Sound.play("C:\\Users\\Jelle\\IdeaProjects\\AudioTest\\src\\AudioTest\\1.wav"); }} more code: package AudioTest;import javax.sound.sampled.AudioInputStream;import javax.sound.sampled.AudioSystem;import javax.sound.sampled.Clip;import java.io.File;public class Sound { public static synchronized void play(final String fileName) { new Thread(new Runnable() { public void run() { try { Clip clip = AudioSystem.getClip(); AudioInputStream inputStream = AudioSystem.getAudioInputStream(new File(fileName)); clip.open(inputStream); clip.start(); } catch (Exception e) { System.out.println("play sound error: " + e.getMessage() + " for " + fileName); } } }).start(); }} Can anyone help? thanks!
  19. I tried RMB on my startup class which has a main method...same problem but as stated before, it's now magically fixed
  20. thanks for the quick response everyone. Sadly I must dissapoint you, I did not find the solution, but a guy from my team bundles our code all over again and now it works if I do the git clone thingy.
  21. Hi, I'm a computer science student and I'm using intellij (not my choice, I prefer netbeans) for a java project. I can run other projects just fine (with the necessary jre fiddling). But for this project I can't click the RUN button. java is set up just fine I get this annoying bugger if I click the run button.
  22. ^ as the title suggests, I'm looking for a VPN thingy. I'm at school and they're blocking steam on the network(only specific ports are allowed here). I'm using Linux(ubuntu 14.04) becuase I'm a total badass. any ideas? preferably free. thanks
×