43,549 Solved Topics
Remove Filter ![]() | |
Guys, I want my textbox are ALL CAPITAL letters even I encode a small letter and it will become Capital .. thanks guys! Software Development vb.net | |
Hi, I'm having some issues with getting next data from the database, it seemed to be working before, but now it doesn't change the textfields to the next data just appends the data into TextArea1 and TextArea2, the other data TextField1 etc.. Doesn't even change, so I do not know … Software Development java | |
import os import re import sys sys.stdout=open('f1.txt','w') from collections import Counter from glob import glob def removegarbage(text): text=re.sub(r'\W+',' ',text) text=text.lower() return text folderpath='d:/induvidual-articles' counter=Counter() filepaths = glob(os.path.join(folderpath,'*.txt')) num_files = len(filepaths) with open('topics.txt','r') as filehandle: lines = filehandle.read() words = removegarbage(lines).split() counter.update(words) for word, count in counter.most_common(): probability=count//num_files print('{} {} {}'.format(word,count,probability)) … Software Development python | |
We use to import packages in java like import java.util.*; import java.lang.*; import javax.swing.*; But, why is it javax for swing? Software Development java java-swing | |
What is the difference between JDK and JRE? I know its silly to ask but i am shameless till i get my things get clarified... :D Software Development java | |
Hello i'm trying to display date in textfield this is my code: private void DateObjectActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: java.util.Date date=new java.util.Date(); this.DateObject.setText(date.toString()); olny the problem is the date will only show If i press a button I want it to display automatically when I … Software Development display gui java java-netbeans | |
Hy, I have a beginner question: when using PyDev should all my programs be inside a package or not? Software Development python | |
Hi all, Im want to create a program for myself which will search my directories for ebooks and let me select the one i want to read. So for instance my first form has a button for C# Books, I want that then to produce a list of books found … Software Development seo | |
Thanks to diafol for putting me wise to the imdb api. Unfortunately, due to my ignorance of all things related to web programming I am stuck. I fetch my information via the following Dim url As String = "http://mymovieapi.com/?title=@title&type=xml&plot=full&episode=0&limit=1&year=@year&yg=1&mt=M&lang=en-US&offset=&aka=simple&release=simple&business=0&tech=0" url = Replace(url, "@title", "Star+Trek") url = Replace(url, "@year", "1979") WebBrowser1.Navigate(url) … | |
Hi, As part my developement I would like to keep all employees document stored in database table rather in folder. I dont want to store the files in folder and keep the file location in table so that get the file from the location. I tried my level best in … Software Development pdf visual-basic | |
I am trying to write some code to regex search against wide strings. The problem I am having is that the regex operations ( `regex_search` in particular ) does not take in wide arguements. Here is the snippet I am having trouble with: Function Header: void scan_filesystem( wpath const& f, … | |
Hi How to get the path of home directory in windows? I have the script that write log.txt in my windows 7 Desktop. How can I change path in python to write log.txt in homedir directory? Is there any way to do it? I tried with those 2 methods But … Software Development python | |
Hello, I am trying to encrypt a String using Symmetric Key Cryptography. When I try to encrypt the string, on runtime it gives me this error: input text: Hello World Exception in thread "main" javax.crypto.IllegalBlockSizeException: data not block size aligned at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(Unknown Source) at javax.crypto.Cipher.doFinal(DashoA13*..) at SimpleSymmetricExample.main(SimpleSymmetricExample.java:25) I know it … Software Development encryption java | |
hi all, i have a program that insert arabic language to ms access when i create .jar file for the program and move it to another computer and run the jar file it store the arabic data in the ms access database like that ?????. note: you must know that … Software Development java | |
I need help on a program I am currently creating as I am trying to use a foreach statement on a DataGridView & loop through the rows & cells. I have tried the dataview but this doesn’t seem to have the properties to count through cells. I have therefore tried … Software Development | |
Hello everybody. Lately, I'm having a problem with PyDev which is driving me crazy: It is failing to connect to the Python console, therefore, many built-ins appear as errors (None, __name__, the os modules, etc.). I have tried downgrading PyDev, I have tried disabling IPv6, I have tried disabling my … | |
How do i finda spl character in a string and return found one..? Software Development python | |
In the conversion process of a java to c# project, i have come to java's ***indexOf()*** function in ***string.java*** class, which takes in two integers (int ch, int fromIndex) and return some integer value for a char (i'm guessing its an ASCII value). I need to know if there is … | |
Group, I've found code that will format a number found in a TextBox to display it with two decimal places. It looks like this: Private Sub txbStateTaxPcnt_Leave(sender As System.Object, e As System.EventArgs) Handles txbStateTaxPcnt.Leave stateSlsTax = Convert.ToInt32(txbStateTaxPcnt.Text) txbStateTaxPcnt.Text = stateSlsTax.ToString("n2") End Sub This works great when a whole number is … Software Development vb.net | |
I am doveloping a game brain champ. This is its version 3. In this version I want to use mouse in addition with keyboard for input. I have successfully tested its standalone keyboard version as well as mouse version. I have used int86() function for mouse with 0x33 interrupt number. … Software Development c++ | |
Hello, I'm trying to look at elements of an xml file. I have one on hand but i'm trying to write a utility for extracting info about the MessageId and KeyID, Serialnumber along with a host of other information. Basically, when I've got all of my ducks in a row … | |
Hello everyone! Just as the title suggests, i would like to know if it's possible to set the position of a dialog box. The default behaviour, is to appear in the center of the screen I use it this way : public static int confirmationBox(String infoMessage, String location) { int … | |
Ok so I'm a total noob with VB.NET and I so far I've read about a thousand forums and I've yet to get a straight answer. I've read that VB treats anonymous types differently than C# (the why, beats me). I have a DataTable, and I want to return a … | |
Hi all, I'm following [this](http://msdn.microsoft.com/en-us/library/dd492149.aspx) tutorial and I'm encountering strange behaviour with the program. My finishLabel *ought* to be calling finishLabel_MouseEnter() when the mouse hovers over it, but it's calling wall_MouseEnter() instead - the location of the mouse resets and the congratulations box doesn't show up. In the properties/events box … Software Development c# ide microsoft visual-studio | |
I have been working on this for two weeks now and it has been progressing slowly. I am currently working on getting the the remove function of my program to 1. first check to see if there is a product 2. list the products 3. allow the user to select … Software Development c++ | |
Good day folks, I want to delete some records in my datatable using query. But I don't know how to do it. Can someone help me? Thanks For i As Integer = 0 To objChkArray.Count - 1 Dim rows As DataRow() = dtable.[Delete]("ct = '" & CInt(objChkArray(i)) & "'") For … | |
Group, Historically I've used 'Convert.ToInt32(TextBox1.Text)' when moving the numbers stored in a TextBox to an integer variable. But it's made me wonder what the difference is between Int16, Int32 and Int64. In simple terms, can someone explain this to me (remember, I'm simple minded!)? As a follow-up question, I'm finding … Software Development vb.net | |
Why is it that no matter how long I put the sleep command or loop, cat is unable to read the file, even though the file already exsists? Is there any way of reliably waiting for the whois to finish, write to file and then read that the file exsists?? … Software Development file-system shell-scripting | |
Group, I'm not sure if this is a SQL Server issue or a Visual Basic issue. However during the runtime, I'm getting the following error message: String or binary data would be truncated. The statement has been terminated. I'm not sure why or where this is being caught. Searching this … Software Development vb.net visual-basic | |
Is there any way to make the size of the tab control expand in both hight and width when the entire window is resized? For example, if I initially set the top of the tab control to be about 1 inch below the top of the window and fill the … Software Development vb.net | |
Hi, I need some help on this how can i use the arrow keys(up,down,left and right) in the keyboard so that the filloval will move, I have no idea on this.can you help me on this please. Thank you in advance. import java.util.*; import java.awt.*; import javax.swing.*; import java.awt.event.*; public … Software Development java java-swing | |
I added a string into an arraylist, but when i want to retrieve it, it does not go into if conditional in the code below: ArrayList a=new ArrayList(); a.add("12"); System.out.println(Integer.toString(1)+","+Integer.toString(2)); if((Integer.toString(1)+Integer.toString(2))==a.get(0)){ System.out.println("this is working here"); } What is the problem here? Software Development java | |
Howdy; I am still on my journey into the world of assembly, and feel that I am becoming more comfortable with it, however; there are somethings I am still struggling with. Below I have posted my code, and have inline comments with it. These comments represent my understanding of the … Software Development assembly data-structure | |
I am currently converting a Java library to C# .Net, please help me to find if there are C# equivalents of the following java specifics: * RuntimeException() * IllegalStateException() * StringBuffer Any resource on Java to C# conversion will be very helpful. Thanks in advance. Software Development java | |
cant seem to figure out what the error is :( #include<iostream> using namespace std; //prototyping variables void averageCal(double a[]); void productCal (double p[]); void sumCal (double s[]); int main () { double userinputs [5];//storing the user inputs in a array for(int i=0; i<5; i++)//suing a for loop to cycly and … Software Development c++ | |
Hello programmers! I am creating a player vs. computer connect four game. It has full interactivity along with error checking for invalid inputs by the player. However, when the main() function is run, the program "stops"/or freezes up after there are five pieces in the connect four board. The game … | |
hello all, kindly help me for this i have one form with datagridview in vb.net and 5 textbox for filing GDV i am using code: Dim a As String = txttable.Text DataAdapter1 = New OleDbDataAdapter("Select * From " & txttable.Text & " where [pay_year] = '" & cmbSyear.Text & "' … Software Development vb.net | |
Hello, I am using Itext to create reports, I have created the layout which includes a table. try{ Document doc = new Document(); PdfWriter.getInstance(doc, new FileOutputStream("Products.pdf")); doc.open(); Image image = Image.getInstance("logo.png"); //doc.add(new Paragraph("image")); doc.add(image); doc.add(new Paragraph("Registration",FontFactory.getFont(FontFactory.TIMES_ROMAN,18,Font.BOLD,BaseColor.RED))); doc.add(new Paragraph(new Date().toString())); doc.add(new Paragraph("------------------------------------------------------------------")); PdfPTable table = new PdfPTable(2); PdfPCell cell = new … | |
Hello, I have started picking up on encrytion, and I seem to have an error when I run the program. Here is the error: Exception in thread "main" java.security.NoSuchAlgorithmException: Cannot find any provider supporting ES/ECB/PKCS5Padding at javax.crypto.Cipher.getInstance(Cipher.java:453) at GenerateKey.encrypt(GenerateKey.java:41) at GenerateKey.<init>(GenerateKey.java:24) at GenerateKey.main(GenerateKey.java:71) Here is my GenerateKey class: import java.io.IOException; … Software Development bsd encryption java operating-system | |
Hi everyone, I'm stuck making a Scroll pane to see all the bar graphs created when they do not fit on screen, or when the frame is diminished. Can anyone tell me how to do this please? Thanks import javax.swing.JFrame; import javax.swing.JOptionPane; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; import java.awt.*; … Software Development java java-swing | |
can you help me with the code for that using the logic: 1) randomly select the start point 2) predetermine the distance you need that car to travel using nextGaussian() 3) identify all the end points that are that distance away 4) randomly select one as you can see, i … Software Development java | |
I'm having a nightmare here! I'm calling 2 different forms, one like a loading screen and the other is the working form. The trick here is placing the 'SplashScreen1.Close()' at the end of Form2 and it will automatically close the loading screen when Fom2 finish. But I could never get … Software Development vb.net | |
I tries to install a wizard for web references in eclipse, i found these plugins: org.apache.axis.wsdl2java.eclipse_1.1.0. and org.apache.axis_1.1 and when I am trying to add a web reference i get an error message: The selected wizard could not be started. Plug-in "org.apache.axis.wsdl2java.eclipse" was unable to instantiate class "org.apache.axis.wsdl2java.eclipse.wizards.WebReferenceImportWizard". org/eclipse/core/internal/utils/Assert guys … | |
Angles are often measured in degrees, minutes, and seconds. There are 360 degrees in a circle, 60 minutes in one degree, and 60 seconds in one minute. Write a program that reads two angular measurements given in degrees, minutes, and seconds, and then calculates and prints their sum. Constants are … Software Development c++ | |
Hello everyone, Maybe someone out there can help me. I have this code that I am using and for the life of me it keeps throwing an error: If Len(ComboBox1.Text) < 1 Then MsgBox("You need to specify a target for this to operate properly.", vbExclamation, "Error") Exit Sub End If … Software Development seo vb.net web-browser | |
Hi, I havea simulation in which cars are moving. The point is that a car has a start point (coordinates x and y) and an end point (coordinates x1 and y1). I'd like to make sure that the distances that the cars need to travel are following a gaussian distribution … Software Development java | |
I got into graphics programming a few days ago. I did some graphics before but very little in Ittlicht (a complete game engine with sound, rendering, network etc...) But I heard about DirectX and how great it is for games and other 2D and 3D graphics. But the API is … Software Development api c++ windows-api | |
Hello, I have one method for checking fields entered, if they are consistent enough then I am inserting into the database. Another on to check duplicates: //check fields and if alright insert in table public void checkFields(String a, String b, String c, String d){ if(a.length() >= 4 && b.length() >= … Software Development java | |
Hi, I hope I'm in the right place, I'm not an ASP.NET expert, I'm developing a site where I use MSAccess to data base. All works well except for a Class, cut and pasted, where I tried to open my access table. I used the same namespace used in all … Software Development | |
Hi All, I am developing a windows application which uses Ms Access Database. The code is working smoothly in Visual Studio. But, when I create a setup for that project and install it on any machine. I am not able to write data in that datbase. I think its because … Software Development visual-studio |
The End.