43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for anandhachandru

This my code someone say were i missed it OAuthRsaSha1Signer rsaSigner = new OAuthRsaSha1Signer(); com.google.gdata.client.authn.oauth.OAuthParameters params = new com.google.gdata.client.authn.oauth.OAuthParameters(); params.setOAuthConsumerKey(oauthconsumerkey); params.setOAuthNonce(Util.getNonce()); params.setOAuthTimestamp(Util.getTimestamp()); params.setOAuthSignatureMethod("RSA-SHA1"); params.setOAuthType(com.google.gdata.client.authn.oauth.OAuthParameters.OAuthType.TWO_LEGGED_OAUTH); params.addCustomBaseParameter("oauth_version", "1.0"); rsaSigner.setPrivateKey(privKey); String method = "GET"; if (body != null && body.length() > 0) { method = "POST"; MessageDigest digest = MessageDigest.getInstance("SHA-1"); digest.reset(); byte[] hash …

Software Development api java
Member Avatar for Ewald Horn
0
341
Member Avatar for JerrimePatient

What is the `advantage` and `disadvantage` of the two loops? I don't know their `deferrences` to `each other`. the truth is I don't know where will I use the `for loop` or the `foreach loop`.

Software Development c#
Member Avatar for deceptikon
0
374
Member Avatar for samuelz

Hello everyone, i have the code below, it works fine but whenever i insert a student number that does not exist in the table, the rest of the textboxes will keep displaying data from the previous existing entry. This happens even when the i delete everything in the student number …

Software Development vb.net
Member Avatar for samuelz
0
2K
Member Avatar for Slavi

Hey guys, It's not exactly trouble with coding that I am facing more like trouble with understanding what I have to implement .. Quick background .. I am trying to implement statistical-saturation attack on block ciphers. The piper that describes the attack has the following algorithm that is used against …

Software Development algorithm encryption python
0
123
Member Avatar for savedlema

Hi all! I have just developed an application on VB.NET with mysql. I then need to deploy this to clients workstations. The plan is to install mysql server on one computer and have all other clients connect to this. What do I need to install on the server and what …

Software Development assembly mysql vb.net
Member Avatar for rubberman
0
540
Member Avatar for Chinnaiah_1

How to launch a calculator using python in windows and ubuntu

Software Development python ubuntu
Member Avatar for Chinnaiah_1
0
233
Member Avatar for liphoso

I have a class called Car, 6 other classes (Van,Cab,Truck, Taxi, Sedan and Motorbike) that implement this class. Each of the subclasses has its own mnethods and attributes. How would I go about creating an array of these vehicles with the type of car being randomly selected. that is I …

Software Development java
Member Avatar for liphoso
0
216
Member Avatar for zakn

how to find monitor brightness Level in vb.net? Change Display Screen Brightness.

Software Development vb.net
Member Avatar for zakn
0
284
Member Avatar for Ant695

The idea is to write a program that asks a user for 10 numbers and then displays how many positive and negative numbers were entered. Not really sure where I'm going wrong but this was an extra assignment to kill time while everyone else catches up. this is what I …

Software Development java
Member Avatar for DaveAmour
0
255
Member Avatar for hadisur_rahman

#include <iostream> #include <cstring> #include <cctype> using namespace std; bool testPass(char []);//function prototype to check password int main() { char *password; int length; //assure requested length and password length are the same int numCharacters; //hold number of characters for password cout << "Please enter how many characters you would like …

Software Development
0
104
Member Avatar for tgreiner

OK, here is a problem that I have found described many times on the net, but have not found a definitive solution. Until recently, file writing has worked just fine for me, but no longer. The questions are: Why does it not work now? What might I have done somewhere …

Software Development c++ file-system
Member Avatar for tinstaafl
0
9K
Member Avatar for fonzali

in windows calculator the digits get seperated in thousands as you type in the number , how can it be done in python ? thanks

Software Development python
Member Avatar for fonzali
0
570
Member Avatar for Simon180

I have a small issue with following code am inserting a new room into mysql using query and then I want it to auto join the room once its made but the problem is when room is in process of being made it will call the GoTo procedure and it …

Software Development mysql pascal
Member Avatar for Simon180
0
284
Member Avatar for zxz

Hi everyone and good morning :) . i want to simply read from the linux file "urandom" a random number and print it out on screen.just simple as that. this function should be in a file called myrandom.c ( myrandom.h must be made also, which has my function dekleration ) …

Software Development c file-system
Member Avatar for zxz
0
3K
Member Avatar for ilovec++

I have some doubts concerning some basic C++ concepts, and would be very thankful, if someone would kindly clear the doubts: a) Every variable of a data type occupies a specific amount of memory, like int occupies 2 bytes and so on. So, if I declare a reference variable as, …

Software Development c++ data-structure
Member Avatar for yoavip
0
566
Member Avatar for kubura musah

Hello! I am a new c leaner. Can I call a function from a different function apart from the main ? And is this also part of recursive?

Software Development c
Member Avatar for kubura musah
0
179
Member Avatar for london-G

Hi Guys, I am getting an error: Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string: "jLabel4" With this code: public void insertCustomer() { Properties conProps = new Properties(); conProps.setProperty("user", "user"); conProps.setProperty("password", "pass"); int q = Integer.parseInt(jLabel4.getText()); try { con = DriverManager.getConnection("jdbc:mysql://91.208.99.2:3379/5thfloor_pos", conProps); con.setTransactionIsolation(Connection.TRANSACTION_SERIALIZABLE); } catch (SQLException ex) { Logger.getLogger(AddProduct.class.getName()).log(Level.SEVERE, null, …

Software Development java
Member Avatar for TekknoDraykko
0
348
Member Avatar for Papa_Don

Group, I'm using the following code to read down to the third line of a text file. If it meets the criteria, I need to stop the read and then delete the file. However I'm finding it difficult to do this as everything I've tried has failed. Have you some …

Software Development file-system vb.net
Member Avatar for Papa_Don
0
1K
Member Avatar for london-G

I am trying to retieve the total salaries from a table where the customer name is X. I have the code below however there seems to be an error. public void total(String name){ double totals=0; Properties conProps = new Properties(); conProps.setProperty("user", "user"); conProps.setProperty("password", "pass"); try { con = DriverManager.getConnection("jdbc:mysql://91.208.99.2:3379/link", conProps); …

Software Development java
Member Avatar for london-G
0
199
Member Avatar for Yuki_1

I want to show only specify database table in datagridview.I had use dataGridView1.AutoGenerateColumns = false; but i don't know how to add the column.For example on of the column is "attn_id".How should i add it? here my code to connect database private void tmst_timein_new_Load(object sender, EventArgs e) { try { …

Software Development vb.net
Member Avatar for AleMonteiro
1
6K
Member Avatar for altjen

hello. recently Im having this error. Why is this? why is that? PS: after enter a 2nd person in the database it has imported and the first person in. Sometimes when import the data fast, it upload the person, if it take for a while (~40 seconds or more) it …

Software Development vb.net
Member Avatar for altjen
0
151
Member Avatar for karodhill

I am suppose to display 3 error messages,Premium Channels is a required field,Customer Type is a required field and If a business checkbox is checked an error message is suppose to display saying Business Customers must select 1 or more Connection." can anyone tell me why just the Business Customers …

Software Development display vb.net
Member Avatar for karodhill
0
280
Member Avatar for Niloofar24

Hello. I'm looking for a good tutorial for creating a chat messenger in java. I checked [this link](http://www.javaworld.com/article/2076864/java-concurrency/building-an-internet-chat-system.html?page=1) but it was not good and clear, was poor tutorial without clear explanation and details. Can you help me with another tutorial? Tutorial video or text both are good. (Let me mention …

Software Development java
Member Avatar for JamesCherrill
0
925
Member Avatar for scheppy

Hello all Im trying to make java robot hold down the command key. I have used the following code. robot.keyPress(KeyEvent.VK_META); robot.Delay(5000); robot.keyRelease(KeyEvent.VK_META); This doesant seem to do the trick. Yes I have searched on how to do this but cannot find a working answer. Am I using the wrong keycode? …

Software Development apple java
Member Avatar for JamesCherrill
0
2K
Member Avatar for waseem1345

hello, let's say I have a string which contains: string s="111\n222\n333"; and I wanna add something like: foreach(Line ln in s) { if(ln="111") { MessageBox.Show("Found the 111 number"); } } Can u help me do that "foreach line"? thanks in advance :D

Software Development
Member Avatar for DaveAmour
0
244
Member Avatar for Doogledude123

I'm making one of those puzzle games that has the empty tile which you need to slide them around to finish the picture. When I refer to the "Active Tile" I'm referring to the tile that's empty on the board. I'm changing the position of the active tile and the …

Software Development java java-swing puzzle
Member Avatar for JamesCherrill
0
250
Member Avatar for karodhill

I have been working on a pig latin converter. If a letter starts with a vowel or number it should end with way if it begins with a consonant it should revert the letters so the first one begins with aeiouy like chair should be airchay. Everything in my program …

Software Development vb.net
Member Avatar for Mr.M
0
223
Member Avatar for Papa_Don

Hi group, I'm attempting to use a variable (i) to read the multiple files within a folder. However this doesn't seem to be working. Can you tell me what I'm doing wrong? For i = 0 To counter Dim objReader As New System.IO.StreamReader(getRestranName(i)) If System.IO.File.Exists(folderName) Then Do While objReader.Peek() <> …

Software Development vb.net
Member Avatar for Papa_Don
0
300
Member Avatar for luckynisarg

i want to design a software for a robot. i want to use the arrow keys of keyboard to direct the robot. can any one tell me that how can i do coding of that?

Software Development visual-basic web-design
Member Avatar for Sohail_4
0
2K
Member Avatar for overwraith

Hello, I am thinking about doing a matrix RREF function, am still in the research stage, but I thought I should post a bug I have been having. The following code doesn't work. What I am trying to do is orderby the array index [0], and then by [i...] etc. …

Software Development
Member Avatar for overwraith
0
161
Member Avatar for HōñËy

I need the solution of this program using C++ .. Develop a database software to maintain the records of students of a college.The software should be user-friendly.The user can easiy add new records,update existing records,create reports of existing records etc.

Software Development c c# c++
Member Avatar for David W
0
283
Member Avatar for ArpitJ.25
Member Avatar for David W
0
136
Member Avatar for ArpitJ.25

What does int flag = 1 or flag = 0 means in C++ language? I have seen it in many programs but I don't know its use.

Software Development c c# c++
Member Avatar for Schol-R-LEA
0
170
Member Avatar for george_82

Hello All, Can somebody tell me what is designer.cs file in C# and what is its use in programming. I'm new in C# and I also want to know more about this automatically created designer.cs file while programming. Thanks, George

Software Development
Member Avatar for asdfiuo
0
7K
Member Avatar for abdurehim

a java code that displays multilevel feedback queue scheduling[](http://www.)

Software Development java queue
Member Avatar for JamesCherrill
0
274
Member Avatar for Doogledude123

I can swap two tiles, however, when I need to shuffle them, I need each tile to have a unique position. I've tried setting up array's for the x and y position of both the tiles to be swapped checking against the randomly generated number to make sure it's position …

Software Development java
Member Avatar for Doogledude123
0
246
Member Avatar for shahera.arafat

hi :))) I have a pro. here which I can't use the keyListener and the buttons (ActionListener )at the same time !! I can use once a time either the keylistener OR ActionListener ! and in my prog. I should use both of them at the same time ! what …

Software Development java java-swing
Member Avatar for JamesCherrill
0
426
Member Avatar for Thomas_25

I have a base class (A) and two derived classes (B,C) (mode of inheritance is public). I have two values in base class A that needs to be modified by derived classes B,C so i declared their get() and set() under protected in base class. Now each of the derived …

Software Development c++
Member Avatar for Thomas_25
0
336
Member Avatar for HōñËy

I need to know how to install MASM on my laptop? anyone please ,if there is online site to download it ..tell me.

Software Development assembly
Member Avatar for HōñËy
0
135
Member Avatar for rahulamuu

Hello All, I just started learning java at home .I am getting an error message".java:8: error: cannot find symbol int randomNum = (int) (Math.Random() *5);" Could you please help me on the same? Here is my java code: class SimpleDotComGame{ public static void main(String [] args){ int numOfGuesses = 0; …

Software Development
Member Avatar for rahulamuu
0
878
Member Avatar for collin_ola

Hi! Firstly, here's the code: if(new File("ATM.xls").exists()){ System.out.println("File exists"); } else{ File excel = new File("ATM.xls"); } What I'm trying to do is check whether or not a file exists and then create said file, if it does not exist. This all works fine, but somehow, I'm unable to use …

Software Development file-system java microsoft-office
Member Avatar for collin_ola
0
4K
Member Avatar for Rustatic

What I am currently trying to do is have the user press a button, upon pressing that button, the cursor turns into a crosshair. Wherever the user clicks next is the point recorded in the code. Any help is appreciated.

Software Development vb.net
Member Avatar for AleMonteiro
0
707
Member Avatar for Suzie999

Trying to use source control for the first time. I installed git and added it to visual studio 2010. Made my project folder a git repo, commited it, and pushed it. But all I can see in my git bitbucket remote repo is this. http://s12.postimg.org/4w8flnx31/git1.jpg I do not see any …

Software Development visual-studio
Member Avatar for Suzie999
0
119
Member Avatar for James19142

I continuously get this warning whenever a constructor delegates to another constructor within the containing type, having virtual bases. `warning C4100: '$initVBases' : unreferenced formal parameter` It's the same warning as when a parameter or local goes unused, it in this case it seems to be referring to the virtual …

Software Development c++
Member Avatar for James19142
0
649
Member Avatar for Ma Nicole Ydralyn

Hi guys I need some help in sorting array in descending and ascending order. I already have my ascending program but it does not work when I put codes for descending..

Software Development c++
Member Avatar for vegaseat
0
132
Member Avatar for ddanbe

I’m working on a little matrix class for my own use and because for me, it is just fun! Now I noticed a lot (10 and more) of the methods always seem to follow the same pattern: - Iterate over the rows - For each row iterate over the columns …

Software Development c# web-design
Member Avatar for ddanbe
0
368
Member Avatar for scheppy

Hello All. I have a program that automatically restarts itself atfer a certain amount of time. I am doing this to test some things out. The program is wrapped in a jar. I run the jar from terminal with java -jar ProgramName.jar It will run and will output all the …

Software Development java
Member Avatar for scheppy
0
384
Member Avatar for buzzstpoint

Beginning coding here. But in my programming class I have a basic program to enter a couple of numbers, calculates the basic math then displays the equation and answer. Here is my output to app: lblAdd2.Text = Convert.ToString(vTools.unformat(txtNum1.Text)) + " + " + Convert.ToString(vTools.unformat(txtNum2.Text)) + " = " + mathNum1.ToString(); …

Software Development
Member Avatar for buzzstpoint
0
281
Member Avatar for Amr_Mohammad_R

Greetings, I want to know if I am having a shared .exe file and these shared .exe is running by 2 users on different machines but they are running the application from the shared place and there were a class which has a static property are there will be a …

Software Development
Member Avatar for Amr_Mohammad_R
0
187
Member Avatar for karodhill

I am trying to calculate a cable bill for a residential and business customer can someone point me in the right direction for my logic?For residential customers it is 4.50 processing fee,30 basic service fee and 5 per channel. For business customers processing fee = 16.50 basicservice fee is 80 …

Software Development vb.net
Member Avatar for Reverend Jim
0
149

The End.