Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

atomicblue2

Member
  • Content Count

    18
  • Joined

  • Last visited

Awards


This user doesn't have any awards

About atomicblue2

  • Title
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hello! Im about to upgrade my whole pc rig, from am3+ to the new ryzen thats releasing next month. And i was thinking about getting a new card to replace my old gtx 780 now... So should i upgrade my GPU now or wait for Amds new cards? (Will there be a significant performance diffrence with the pcie 4.0 and would a gtx/rtx card be worth it anyway atm?) Correct me if i understood everything wrong. My english is horrible. Thanks.
  2. Hello! Will a Dark Rock Pro 3 fit Asus ROG STRIX B360-G Doesnt matter if ram slots are not easily accessible, as long as i can actually put them there. Thanks.
  3. Know whats the rest of the model name actually for? Country its made for?
  4. Hello, Will Samsung S8+ model SM-G955FZKADBT work in Finland with finnish sim? Sim lock is not a thing here in Finland to my knowledge as long as its unlocked. So no need to worry about that. Thanks
  5. I managed to make some progress so this is not my problem anymore. I tried using preparedstatement that is working "good" but now its giving me this "The column position '1' is out of range. The number of columns for this ResultSet is '0'." try { con = DriverManager.getConnection(url, user, password); st = con.createStatement(); rs = st.executeQuery("SELECT * FROM ASIAKASREKISTERI"); if (rs.next()){ asiakasrekisteri = rs.getInt("ASIAKKAANNUMERO"); NIMI = rs.getString("nimi"); Laskutusosoite = rs.getString("laskutusosoite"); Postinumero = rs.getString("postinumero"); Puh = rs.getString("puh"); String update = "INSERT INTO ADMIN1.ASIAKASREKISTERI (NIMI, LASKUTUSOSOITE, POSTINUMERO, PUH) " + "VALUES ('" + NIMI + "'" + ", " + "'" + Laskutusosoite + "'" + ", " + "'" + Postinumero + "'" + ", " + "'" + Puh + "'" + ")"; PreparedStatement prepared = con.prepareStatement(update); prepared.setString (1, NIMI); prepared.setString (2, Laskutusosoite); prepared.setString (3, Postinumero); prepared.setString (4, Puh); prepared.executeUpdate(update); } updateTable(); } catch (SQLException ex) { // close stuff Didnt change anything else from the code thats not shown here
  6. Im trying to insert stuff into my database. When doing so i get this "ResultSet not open. Operation 'getInt' not permitted. Verify that autocommit is off." I have tried turning autocommit off but no diffrence. And also couldnt find any help from elsewhere. public class NewJFrame extends javax.swing.JFrame { String Puh = ""; String Postinumero = ""; String Laskutusosoite = ""; String NIMI = ""; int asiakasrekisteri = 0; /** * Creates new form NewJFrame */ public NewJFrame() { initComponents(); updateTable(); } private void updateTable() { DefaultTableModel dtm = (DefaultTableModel) jTable1.getModel(); dtm.setRowCount(0); String url = "jdbc:derby://localhost:1527/asiakasrekisteri"; String user = "admin1"; String password = "admin1"; try { con = DriverManager.getConnection(url, user, password); st = con.createStatement(); rs = st.executeQuery("SELECT * FROM ASIAKASREKISTERI"); int row=0; while (rs.next()) { dtm.setRowCount(row+1); asiakasrekisteri = rs.getInt("asiakkaannumero"); NIMI = rs.getString("nimi"); Laskutusosoite = rs.getString("laskutusosoite"); Postinumero = rs.getString("postinumero"); Puh = rs.getString("puh"); jTable1.getModel().setValueAt(asiakasrekisteri, row, 0); jTable1.getModel().setValueAt(NIMI, row, 1); jTable1.getModel().setValueAt(Laskutusosoite, row, 2); jTable1.getModel().setValueAt(Postinumero, row, 3); jTable1.getModel().setValueAt(Puh, row, 4); row++; } } catch (SQLException ex) { System.out.println(ex.toString()); } finally { try { if (rs != null) { rs.close(); } if (st != null) { st.close(); } if (con != null) { con.close(); } } catch (SQLException ex) {System.out.println(ex.toString()); } } } String url = "jdbc:derby://localhost:1527/asiakasrekisteri"; String user = "admin1"; String password = "admin1"; try { con = DriverManager.getConnection(url, user, password); st = con.createStatement(); asiakasrekisteri = rs.getInt("asiakkaannumero"); NIMI = rs.getString("nimi"); Laskutusosoite = rs.getString("laskutusosoite"); Postinumero = rs.getString("postinumero"); Puh = rs.getString("puh"); String update = "INSERT INTO ASIAKASREKISTERI (nimi, laskutusosoite, postinumero, puh)" + "VALUES (" + "'" + NIMI + "'" + ", " + "'" + Laskutusosoite + "'" + ", " + "'" + Postinumero + "'" + ", " + "'" + Puh + "'" + ")"; st.executeUpdate(update); updateTable(); } catch (SQLException ex) { System.out.println(ex.toString()); } finally { try { if (rs != null) { rs.close(); } if (st != null) { st.close(); } if (con != null) { con.close(); } } catch (SQLException ex) { System.out.println(ex.toString()); } } }
  7. just cause u guys are curious. The reason was to slow down my game so others need to wait for me and i can afk...
  8. Any programs that do this? Weird question but anyway.
  9. Soundcard Xonar DGX 5.1 Can optical audio port be used as input?
  10. win10 wasnt reliable for me. Literally everyday i had to start it again cause some windows update or something like that made it restart. And i had alot of problems just turning the computer on.(1/10 starts actually worked) So far with windows server os i havent had any problems running the pc 24/7 and heat is no longer a problem to me.
  11. code worse than texas tropic strom pls uninstall netbeans
  12. I might consider that. But the point is whats with windows server that makes the laptop run higher temps? Since with windows 10 in the same spot it was running alot cooler. I have been using this laptop for 2 years as a server. So why is it so bad? Yes laptops are not intended for server use but im only running a voip server on it.
  13. Yes im using the laptop as a server. Yes its kinda dead and cant use it. So im using it just as a voip server. In screenshot its not on that high load even but laptop is still on fire.
×