43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for leghorn

Hi I have a linux server with mysql installed.There is some data in mysql tables. Also.I have a .csv file (not from the aforementioned database) I need to compare the data in the database nad the .csv and print out the difference. I tried writing a shell script for that …

Software Development shell-scripting
Member Avatar for leghorn
0
285
Member Avatar for Ahmed.C

I was just wondering if there is a possible way to get the last 4 characters from a label or textbox. If someone could please provide me with an example that would be great! Thanks..

Software Development vb.net
Member Avatar for ddanbe
0
142
Member Avatar for BlackJax96

Hi, I want to convert a float value to 32bit hex and the code I have right now returns 64bit hex. The float is stored in a string called value. [CODE] result = Convert.ToDouble(value); long lVal = BitConverter.DoubleToInt64Bits(result); string hex = lVal.ToString("X"); OutputBox.Text += ("\nConverted the " + value.GetType().Name + …

Software Development
Member Avatar for Ketsuekiame
0
3K
Member Avatar for aVar++

I am going through challanges in python and cant see why i'm not getting the correct answer... The challange is 'Find the sum of all the multiples of 3 or 5 below 1000.' Here is my code: #!/usr/local/bin/python2.7 a = 0 b = 0 eA = [] eA2 = [] …

Software Development python
Member Avatar for aVar++
0
133
Member Avatar for Bhavya_1

Hi. I want to learn penetration testing in python.but i am entirely clueless where to start. I have read about some famous tools like SCAPY and pycap.So,the thing is that i want to develop my own tools to comprimise a network.Are there any good tutorials on sapy or any other …

Software Development python
Member Avatar for 1baga
0
104
Member Avatar for EriCartman13

How do you rest your variable everytime your execute the program. [code]for x in range(1,100): running = True while running: guess = int(raw_input("Enter an integer:")) if guess == x: print "Nice" running = False if guess < x: print "Higher" running = True if guess > x: print "Lower" running …

Software Development python
Member Avatar for bumsfeld
-1
4K
Member Avatar for devourer17

fstream f; char ch; int i=0; string word,word2[200]; f.open("op3_sort.txt",ios::in|ios::out); if(!f) cout<<"\nUnable To Open File!\n"; else { cout<<"\nLet's View D Content!\n"; while(!f.eof()) { getline(f,word,'\t'); word2[i]=word; i++; cout<<word2[i]; } } cout<<"\nShowing Data Now\n"; for(int a=0; a<i; a++) { cout<<endl; cout<<word2[a]; }

Software Development c++ file-system ios
Member Avatar for devourer17
-1
151
Member Avatar for dilita.mido

Draw an inheritance hierarchy for classes Quadrilateral, TRapezoid, Parallelogram, Rectangle and Square. Use Quadrilateral as the base class of the hierarchy. Make the hierarchy as deep as possible.

Software Development python
Member Avatar for james.lu.75491856
0
184
Member Avatar for billkas

Hello everyone, new user here and not a frequent user of C so please don't be harsh at me :P What I'm trying to do is read some data from a txt file, like these: > XX10X11110100X0011111XX1011101X101111XX1X1X1111X11X110111110XX11,000 > 010101100XX1110000110X00110111100010XX001101101X1011X10XX0X0XX01,001 and copy them to 2 string arrays. The first array's first …

Software Development c
Member Avatar for deceptikon
0
362
Member Avatar for james.lu.75491856

I'm creating my own handler, but what kind of object is request? I can just have the documentation for it and look at that, but I don't know where to.

Software Development python
Member Avatar for james.lu.75491856
0
129
Member Avatar for murali2489

Hi All, In MY GUI app, inside JFrame, i need to put two rows 8 column components first and then below i need to put one button in the center . I created one Jpanel having 2*8 grid layout and placed the components for two rows there and have put …

Software Development gui java
Member Avatar for murali2489
0
257
Member Avatar for themaj

My current VB.net project involves a 2003 Access db and I have now upgraded one of my machines to Access 2007. Before I upgrade the other I'm wondering whether there are any significant issues with my present VB.NET code that might render it 'broken'. Are there any connection issues I …

Software Development vb.net
Member Avatar for Begginnerdev
0
256
Member Avatar for Ahmed.C

Hi. So i was just wondering if there is a way to get the filepath only when a user selects a file using an openfiledialog. E.g. Rather than C:\Test.txt it should be C:\ Really would appreciate the help

Software Development vb.net
Member Avatar for Ahmed.C
0
2K
Member Avatar for kal_crazy

I can not get a sum from a function and return to main to check whether the sum is greater than the money added in and input more money. int vending::MakeSelection(int ItemPrice[], int NumItems[], int sum){ int response; do{ cout << "Item:"; cin >> response; if(response == 1){ for(int i …

Software Development c++
Member Avatar for kal_crazy
0
445
Member Avatar for somjit{}

for a basic ascii checker code of less than 10 lines , i want to print out stuff immediately , instead of after a newline. i understand that stdout is a bufferedstream , and so it will by default wait for a '\n'. i was looking at [this](http://stackoverflow.com/questions/1716296/why-does-printf-not-flush-after-the-call-unless-a-newline-is-in-the-format-strin) page for …

Software Development c
Member Avatar for rubberman
0
2K
Member Avatar for nmakes

I've got a problem understanding inheritance. #include <iostream.h> class A { public: int x; }; class S1: public A { public: int x; }; class S2: public S1 { public: int x; }; int main() { S2 obj; cout << obj.x; return 0; } In the code above, I basically …

Software Development c++
Member Avatar for Ancient Dragon
0
227
Member Avatar for Galbatorix

Hi, I have ben having problems making an instance of sqldatareader. I keep getting a squigly line under my datareader object with a message saying that unreachable code detected. Here is my code: using System; using System.Windows.Forms; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Albergo.Classes { …

Software Development
Member Avatar for Galbatorix
0
152
Member Avatar for nerden

I am trying to write an application to do various things, one of the elements is going to require a service, The service is called myService.vb and is part of the main solution containing frmMenu which has a button (btnRegister). Is it possible to programaticaly register this service? Alternative question: …

Software Development vb.net visual-studio
Member Avatar for nerden
0
346
Member Avatar for yuvjeeth

Hi Everyone, I would like to know if there is any way to change the color of a part of text in rich textbox when the user types it automatically like the way in vb.net IDE (Classes have blue etc.). Thanks in advance, Yuvjeeth

Software Development ide vb.net
Member Avatar for ddanbe
0
503
Member Avatar for andre.gartner.56

I'm having quite a few errors on this one. This is my first attempt on "free" coding outside tutorials. I do believe it only has to do with bad use of brackets from my side, but i'm a beginner. Line 14 - Illegal start of expression Line 18 - Class, …

Software Development java
Member Avatar for JamesCherrill
0
159
Member Avatar for monching

Hello guys, I have my problem in saving date to mysql. Dim conn As MySqlConnection Dim myCommand As New MySqlCommand Dim commandB As MySqlCommandBuilder Dim data As MySqlDataAdapter Dim query As String = "SELECT * FROM events e;" Dim myconnstring As String Dim comm As String Dim vers As String …

Software Development mysql vb.net
Member Avatar for shashikumar s g
0
3K
Member Avatar for Tcll

IMO, VS2010 with PythonTools 1.5 is the best IDE. it may not be as glamorous as Eclipse or PyScripter, but it certainly has more functionality and accuracy than either of them. -intellisense (PyScripter does a better job than Eclipse) -split file scrolling (not sure about PyScripter, but Eclipse doesn't have …

Software Development ide python
Member Avatar for Tcll
0
658
Member Avatar for jd217

I'm getting a syntax error that's confusing me beyond belief. I'm using MinGW on Windows XP(32-bit), and Notepad++ for a text editor. "Syntax error before unexpected token '('" Originally, I thought it may have been something in the code I was trying to compile, so I wrote a simple "hello …

Software Development c open-source
Member Avatar for jd217
0
1K
Member Avatar for christinetom

Hi everyone.. :), me again. I've never used Linked Lists.. They don't make sense to me. I kind of understand them though. There's plently of online explanations explaining what they are but they all go down the same path. I'm trying to undertstand how one Note (via the next pointer) …

Software Development c++ linked-list
Member Avatar for christinetom
0
275
Member Avatar for Ahmed.C

Hi. I just wanted to know if there is anyway to make a textbox recognise if there is text or not. I don't want it to be textbox1.text = "". Is there a legitimate way?

Software Development vb.net
Member Avatar for Ahmed.C
0
163
Member Avatar for Rajiv9

Hi, I have avalue like 2.90 i want the value to be round off to 3.00 Can u help me out Rajiv

Software Development vb.net
Member Avatar for Rajiv9
0
2K
Member Avatar for JameB

Hi guys, I'm working on a side project for a friend and I'm looking for a C++ library that allows me to put bunch of paragraphs in a PDF format. Anyone know any good libraries that can do this as simply as possible? It will be just paragraphs and paragraphs …

Software Development api c c++ pdf
Member Avatar for iamthwee
0
771
Member Avatar for Ahmed.C

So I've been working on this simple FTP Client and i've come across this problem. Basically when the user clicks on the folder, a label changes saying ftpserver.com/folder1 and then when a user clicks on the folder inside that it's meant to be ftpserver.com/folder1/folder2 but the label is only saying …

Software Development file-stream vb.net
0
103
Member Avatar for Akhilesh_2

#include<stdio.h> #include<stdlib.h> #include<string.h> static int compare(const void *x,const void *y){ return strcmp(*(const char**)x, *(const char**)y); } int main(){ FILE *p = fopen("file.txt","w"); char ch = '\0',**c = (char**)calloc(6,sizeof(char*)); int n[6]={0},i=0,j=0; fprintf(p,"jack\nakki\njohn\nrachael\nrobin\ntom"); fclose(p); p = fopen("file.txt","r"); while(1){ while((ch=getc(p))!= '\n'){ if(ch == EOF) break; putchar(ch); n[i]++; } printf(" %d\n",n[i]); if(ch == EOF) …

Software Development c file-system
Member Avatar for Akhilesh_2
0
119
Member Avatar for Thermalnuke

Hey guys, I havent coded visual basic in a long time I am using access 2003 and doing some code under a form. I have a button that is named system Setup and when you click on it it opens up and another form that has three comboboxes and a …

Software Development visual-basic
Member Avatar for Klahr_R
0
162
Member Avatar for Stuugie

Hi All, I'm trying to loop through and open PDFs in a folder using Java. I have the following code: import java.awt.Desktop; import java.io.File; import java.io.IOException; public class OpenPDFs { public static void main(String[] args) throws IOException { // TODO code application logic here String fp; fp ="S:\\Economic Forecasts\\Fcst13\\SourceForecasts\\"; File …

Software Development java pdf
Member Avatar for Stuugie
0
594
Member Avatar for Hikki_Passion

Ok, so I am trying to write a code that will find the attributes in a html tag using lists and splitting them up. Unfortunately its giving me a hard time with the added quotation marks. [CODE] def find_attribute_value(html_tag, att): '''Return the value of attribute att (a str) in the …

Software Development html-css python
Member Avatar for james.lu.75491856
0
1K
Member Avatar for ss125

Please can anyone explain clearly.... what is the difference between session and httpcontext.current.session and application variables? Thankyou in advance...

Software Development asp.net session
Member Avatar for ss125
0
225
Member Avatar for mark.kj.125

Currenlty i have learned html5 and css3 from different sites no one give complete tutorials about everything and doesn't made me satisfied when i see uniques combinations of tags and and some that i don't know i totally get disappointed.People have done great work only with html and css and …

Software Development html-css
Member Avatar for best4earn
0
282
Member Avatar for ss125

Hi friends, I displayed some items on my dropdown list.And users are allowed to select multiple items in the drop box. After that, If a button is clicked, I have to execute a single sql code. Say for eg, update table_name set flag='y' where field_name='[Dropdown selected items]' Please help. Thanx …

Software Development
Member Avatar for ss125
0
209
Member Avatar for VIPER5646

Hi all I have a Products table which has a description and a size column the description is a string value and the size has a double value. What I need to do is after reading the data it converts the decimals value of the size column into a fraction. …

Software Development vb.net
Member Avatar for VIPER5646
0
1K
Member Avatar for NargalaX

Hey, I would like to be able to send html requests to cleverbot, and if you've ever been there before, you would know that it is probably the most intelligent chat bot AI that can be publically used. If you don't know what it is, just go to [url]http://www.cleverbot.com/[/url] and …

Software Development
Member Avatar for bennett2213
0
193
Member Avatar for phorce

Sorry if this is hard to understand what I'm trying to do here, but, I do not know how to approach this. I am using method overloading in my constructors of a class, and I have multiple "Window" functions which are all classes that can be used and I need …

Software Development c c# c++
Member Avatar for mike_2000_17
0
295
Member Avatar for MadJako

Hi, I'm creating a simple C# ASP.NET app in visual studios and I can’t seem to figure out how to pull values from a single cell when using a table adapter for a SQL database. For example, I have a table adapter named ProductsTableAdapterand I can easily use it to …

Software Development sql
Member Avatar for MadJako
0
217
Member Avatar for johnrosswrock

Hello everyone,i am new to c# programming and i am making a form app for my collage fest which has following details: 1.name of event(comboBox) 2.name of subevent(comboBox) 3.name of coordinator1(text box) 4.name of coordinator2(text box) 5.name of participent(text box) 5.price(text box) my problem is when any event is selected …

Software Development
Member Avatar for johnrosswrock
0
221
Member Avatar for xcrunner15

I want my code to affect column 5 and 6 to, but everytime i add it i get an error this is wat i have so far Private Sub DataGridView1_CellEndEdit(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellEndEdit If (e.ColumnIndex = 4) Then ' Checking numeric value for Column4 …

Software Development vb.net
Member Avatar for xcrunner15
0
150
Member Avatar for Swetha_1

for example: consider the contents of file1.txt: 1 0 9227 1152 34 2 2 111 7622 1120 34 2 3 68486 710 1024 14 2 6 265065 3389 800 22 2 7 393152 48438 64 132 3 8 412251 46744 64 132 3 9 430593 50866 256 95 4 10 …

Software Development python
Member Avatar for rrashkin
0
164
Member Avatar for james.lu.75491856

If you use the same HUGE number many times: * import sys * sys.maxint = sys.maxint+sys.maxint * This is because if you have the INFINITE(or lower) refrence to the same integer, It will take up the sppace of that integer. If you use many diffrent huge numbers: * Use a …

Software Development python
Member Avatar for james.lu.75491856
0
166
Member Avatar for Mitja Bonca

I am doing some more coding on listView, and I can not figurate it out how to salve the problem that there is always just one checkBox on the listView checked. On the listView I have some names. When I load it there is already a checked name - so …

Software Development listview
Member Avatar for DjpjAmador
0
1K
Member Avatar for androidz

hi i have a table name table1 i want to display all the records in the table by using data grid and when i try to run it there is no records display in the datagrid and i have already configure the datalink which i name it adodc. could anyone …

Software Development open-source visual-basic
Member Avatar for Adrian779
0
1K
Member Avatar for castajiz_2

hy guys i have a problem with my event public delegate void paintEventHandler(object sender, EventArgs e); Graphics paper; public static event PaintEventHandler After1s; private void Mouth_shut(Graphics gr) { gr.FillEllipse(new SolidBrush(Color.Yellow), 50, 50, 50, 50); } private void Mouth_Open(Graphics gr) { gr.FillPie(new SolidBrush(Color.Yellow), 50, 50, 50, 50, -30, 270); } private …

Software Development
Member Avatar for Ketsuekiame
0
197
Member Avatar for DyO1

Hello everyone, I'm a making a BAT file creator and I can't find a way to add a 'Test' feature (open without saving) This is the code I tried using: Shell("command.Text") *Doesn't shell start DOS? command.text=that's where users wrtie a code Can someone give me a working code on how …

Software Development vb.net
Member Avatar for DyO1
0
168
Member Avatar for Swetha_1

for example: consider the contents of file1.txt: 1 0 9227 1152 34 2 2 111 7622 1120 34 2 3 68486 710 1024 14 2 6 265065 3389 800 22 2 7 393152 48438 64 132 3 8 412251 46744 64 132 3 9 430593 50866 256 95 4 10 …

Software Development python
0
106
Member Avatar for james.lu.75491856

It says interpeted and OOP but it's also functional and dynamic

Software Development oop python
0
118
Member Avatar for Sevyt

Probably already know the answer to this problem, but perhaps i am wrong. My datagrid is being sorted by Id which is Autonumber. So if i add a new entry its added at the bottom of the list. Is there any way to change the sorting to a different nummeric …

Software Development vb.net
Member Avatar for Sevyt
0
165

The End.