132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Nithin_1

Hi all, I'm new to this forum. I'm learning C and embedded SQL. I have a question. In one of the project am doing, i want to check whether any records with a particular local_id and global_id is there in the database with in the last 90 days. If it …

Software Development c++ sql
Member Avatar for Frederick2
0
200
Member Avatar for Ahmed_62

i have this code to make sodoko board with 9*9 cells(button cells ) but i cannot made all Jpanels contain my buttons i made the first Jpanel only import java.awt.Color; import java.awt.GridLayout; import java.lang.reflect.Field; import javax.swing.BorderFactory; import javax.swing.JFrame; import javax.swing.JButton; import javax.swing.JPanel; public class Sodoko extends JFrame { private Sodoko() …

Software Development java java-swing
Member Avatar for JamesCherrill
0
231
Member Avatar for nathan.pavlovsky

Hi all! I am working on creating an SMS language translator (SMS -> real English), and I am having trouble initializing a map for the SMS -> English codes. My code is below: map<string, string> THE_SMS_CODES{ ".02","Your (or my) two cents worth", "10X", "Thanks", "2MI","Too much information", "2U2" ,"To You …

Software Development algorithm audio c++
Member Avatar for nathan.pavlovsky
0
688
Member Avatar for XP78USER

This might sound crazy or something, but i've always wanted to build an Operating System like Windows where people can do everyday things I know some people do not like the new Operating System and that the new screens look atrocious. Also I need a group at least five or …

Software Development c++ operating-system
Member Avatar for Schol-R-LEA
0
176
Member Avatar for firoj26

**I have an issue with running python scripts on linode cloud server. I create a scrapping script to scrape data by check in and check out so that i run the script using screen method. It run over one day very smoothly but today it hang. No response. When i …

Software Development python
Member Avatar for firoj26
0
365
Member Avatar for Niloofar24

Hi. I'm creating a web crawler, I want to send the output into a txt file, how can I do it? And I also want to give a path to the script to set the directory. How can I do it now?

Software Development file-system python seo
Member Avatar for Gribouillis
0
373
Member Avatar for johnnny

Hello all, Need help with a little assignment in java assignment : user inputs sentence, replaces all lowercase letters in string to uppercase, and vice versa. ive created for (int i = 0; i < s.length(); i++) { if (Character.isUpperCase(s.charAt(i))) { to DETECT if there is an uppercase letter found …

Software Development java
Member Avatar for Lau_1
0
193
Member Avatar for weeraa

I deployed a web service in a server for sending email and this is the code of it. <WebMethod()> _ Public Function SendEmailSMTPAtt(ByVal objMail As clsEmail) As String Dim strReturn As String = "" Dim mailMsg As New MailMessage With mailMsg .From = objMail.Mailfrom .To = objMail.MailTo If objMail.Mailcc <> …

Software Development email vb.net
0
169
Member Avatar for hwoarang69

I am new at vb .net and I want to know how to make website in it? like connect two papes or using header in different file and linking it together etc.. for some reason when I create a page than vb studio automatic adds a form tag and creates …

Software Development asp.net vb.net visual-basic
Member Avatar for djjeavons
0
3K
Member Avatar for Gabriel_7

ok well i just started with Java and i have an assignment that is giving me a hard time what i'm supposed to do is take an entry number(int) and then arrange its digits in an ascending and a descending way, the problem is i don't know much about arrays …

Software Development java
Member Avatar for stultuske
0
240
Member Avatar for matoo

Hi there Everyone I am writting a program POS in which i have employees database. they get a code or we can say employee ID numbers. 100001 100002 100003 now i want to keep the recourd attached with picture ID as well file names will be 100001.jpg 100002.jpg 100003.jpg as …

Software Development visual-basic
Member Avatar for matoo
0
272
Member Avatar for Papa_Don

Group, I've got a complex If/Then statement that may require the use of "Select Case". However I'm not familiar with how "Select Case" actually works. Needless to say, I'm not sure if you can use it within an "If/Then" statement. Here's what I need to do: If row > 7 …

Software Development vb.net
Member Avatar for Reverend Jim
0
2K
Member Avatar for shajin c l

C program to remove even numbers and fill it with zero Input array 1,2,3,4,5,6 Output 1,3,5,0,0,0 #include<stdio.h> void main() int i,j,k,n=6,a[]={1,2,3,4,5,6}; clrscr(); for(i=0;i<n;i++) { if(a[i]%2==0) { a[i]=-1; } else printf("%d",a[i]); } for(i=0;i<n;i++) { if(a[i]==-1) printf("0"); } getch(); }

Software Development c c# c++
Member Avatar for Moschops
0
4K
Member Avatar for bharat_3

How this calculation is done i'am confused i am getting an answer 14 ?? #include<iostream> #include<conio.h> using namespace std;main() { int a=5; int d; d=++a + ++a; cout<<d; getch(); }

Software Development c
Member Avatar for shajin c l
0
197
Member Avatar for westsiderailway

Hello Everyone, it seems that I cannot see the wood for the trees.... :-) I am having problems with this line of code... StateSQL = "select * from petrol_table where fueldate >= " & "'" & M12S & "'" & " and fueldate < " & "'" & M12F & …

Software Development dataset listview open-source sql vb.net
Member Avatar for westsiderailway
0
321
Member Avatar for shanenin

I don't understand why my function is not giving similar output as the first example of powershell code PS C:\Users\shane> $x = 3 PS C:\Users\shane> $y = 6 PS C:\Users\shane> $a = $x + $y PS C:\Users\shane> Write-Host "The answer is $a" The answer is 9 My function using similar …

Software Development shell-scripting
Member Avatar for shanenin
0
340
Member Avatar for Jalcock501

Hi Guys, I've been asked to create a GUI to output all the information gather by the program I currently have, however I'm new to using Tkinter and was wondering if someone could possible help... #!/usr/bin/python """ header comment section ****** file: M:\testPCAN\miketst.py ***** END of header comment section """ …

Software Development gui python tkinter
Member Avatar for woooee
0
580
Member Avatar for Sohail_4

Can any body tell me how can I detect Key press when my focus is not on the Form, Like I've Hidden The Form and I want to make it visible by pressing a single key or combination of keys I tried VBKEY case but that works fine unless I …

Software Development visual-basic
Member Avatar for Nutster
0
190
Member Avatar for Christian_4

can you please help me in my code MsgBox "Are you sure you want to Logout?", vbYesNo, "Confirmation" If vbYes Then Unload Me frmAuthentication.Show End If how can i have 2 choices example i want vb no and just stay with my form help me..

Software Development visual-basic
Member Avatar for Nutster
0
522
Member Avatar for Captiva

dears i want help to parse this XML in VB.NET <?xml version="1.0" encoding="UTF-8" ?> - <FOLDER> - <INFO> <REVISION>1.0</REVISION> <DATE>6/11/2015</DATE> <TIME>9:34:40 AM</TIME> </INFO> - <SHEET TYPE="GENERAL_DOCUMENTS" DOC_REF="1021961"> - <INFO_FN TYPE="FileNet-Indexes"> <F_ACCESSRIGHTS_AX /> <F_ACCESSRIGHTS_RD /> <F_ACCESSRIGHTS_WR /> <F_ARCHIVEDATE /> <F_CE_OS_ID /> <F_CLOSED>False</F_CLOSED> <F_DELETEDATE /> <F_DOCCLASSNAME>GENERAL_DOCUMENTS</F_DOCCLASSNAME> <F_DOCCLASSNUMBER>3</F_DOCCLASSNUMBER> <F_DOCFORMAT>image/jpeg;name="00400GF.pdf"</F_DOCFORMAT> <F_DOCLOCATION /> <F_DOCNUMBER>1021961</F_DOCNUMBER> <F_DOCTYPE>0</F_DOCTYPE> …

Software Development pdf vb.net xml
Member Avatar for tinstaafl
0
252
Member Avatar for can-mohan

Hi, As we know constructor doesn't have any return value so it is not good idea to perform exceptional handling inside constructor.SO i would like to know if i am opening a file inside constructor and due to some reason (file not exist) failure happened inside constructor then how to …

Software Development c++ oop
Member Avatar for can-mohan
0
393
Member Avatar for Irka

Hello! I was wondering if anybody could help me with something. I'm writing off-line banking application. I already have a code in Python and now I need to write window aplication for it. How should I begin? I wrote some simple code for main window in PyQt. But I dont …

Software Development python qt
Member Avatar for DragonMastur
0
356
Member Avatar for tinsaea

In turbo c++,how can i copy a certain file from one drive to the other e.g,the file is located in G:\one ,i want to copy it to C:\tc the file name is "file.txt"...Much love

Software Development c++ file-system
Member Avatar for vijayan121
0
263
Member Avatar for sasikrishnasamy

Hello All, I want to sort my list order by sno. This is my code, List<Employee>list=new ArrayList<Employee>(); Employee class has fields, one of field is sno (its String type); this field values are like this format 1.2.1 1.2.3 1.5.5 1.5.3 I want to sort this serial no. I used comparator …

Software Development java
Member Avatar for 2teez
0
432
Member Avatar for Manikanta Sharma

I have a requirement to generate an auto ticket/email when it's time for a scheduled task to be done and it should repeat again when it's time for performing the task. Could you please help me with the script/how this can be done I'm gathering the information to a table …

Software Development email shell-scripting
Member Avatar for Nutster
0
472
Member Avatar for Nur_4

hi i am working on school assignment which is due real soon. but i seem to have an error that ssays sytax error near '=' at line 39. here's my code. i hope someone would point out whats not right with it. using System; using System.Collections.Generic; using System.Linq; using System.Web; …

Software Development open-source
Member Avatar for pritaeas
0
410
Member Avatar for nunntb473

So I've always toyed around with C# code with the idea of gaming. Lately I've been dabbling in communication. Initially I tried sockets and TcpClient and that was hit and miss. So I decided to give pipes a go. Frankly I dont have much of a preference of one of …

Software Development client-server encryption gaming tcp-udp
0
227
Member Avatar for samantha2015

I have a class that implement all my workflow method. At some pointing time, when the request is approved by the workflow, I need to update status in database. For this I need to call the respective service class to save the status. The following method is saving the status …

Software Development java
Member Avatar for samantha2015
0
285
Member Avatar for TObannion

I'm working on a project for a tic tac toe game. I'm working on this with a partner (assigned) but he has kind of fallen by the wayside. Here is the assignment: Filenames: ttt.h, ttt.cpp, tttmain.cpp Your second project will be completed with a partner. For this project, you will …

Software Development c++ data-structure web-design
Member Avatar for tinstaafl
0
2K
Member Avatar for smart2007

I was writing a X-server display code to show movement of balls from one pixel location to next location, which can be visible at the new window opened up after execution of this code. While running the below code, I can get 5 red color filled circles (considered as balls). …

Software Development c
Member Avatar for Moschops
0
151
Member Avatar for Sarkurd

Hello. I have a few Qs about Hash tables. how does `std::hash` return a `std::size_t`? for example how does it convert a `std::string("Hello")` to `std::size_t`? How do these functions work? i have no idea what's `hash_combine` and `seed` do in `hashval.hpp` This is from STL 2nd edition. hashval.hpp #include <functional> …

Software Development c++
0
138
Member Avatar for Saran_1

I am currently troubleshooting a utility that I have been working on. The main file of the utility is below. Please not that `flatten_dict` and `makerows` are seperate files and functions, respectively. My objectives are to: * Recursively traverse a directory - done * Find XML and text files only …

Software Development operating-system python xml
Member Avatar for Saran_1
0
417
Member Avatar for Mark54

Hello, again, people. You helped me to install Python on my Desktop, and now I cannot get it running on my Laptop… same as the Desktop… Win 7, 32-bit, SP1. I think I did the same procedures, but it wouldn’t work. So, I UN-installed Python. Then re-installed it. Same problems… …

Software Development python
Member Avatar for DragonMastur
0
283
Member Avatar for Riya_2

Write a function named repeatCount(). The function repeatCount() takes two string parameters: --> the name of an input file and the name of an output file. The function repeatCount() should read each line of the input file, identify the number of words on the line that occur more than once, …

Software Development python
Member Avatar for DragonMastur
0
312
Member Avatar for James_47

Hello I am tring to write a code to generate random numbers into an array, I don't understand why this isn't working. please help #include <iostream> #include <ctime> #include <cstdlib> const int NRows = 5; const int Ncols = 5; using namespace std; int main() { //declare variables int num[NRows][Ncols]; …

Software Development c++
Member Avatar for StuXYZ
0
118
Member Avatar for Henry_5

I am implementing the last feature of my Python Checkers Game, which is to require the user to make multiple jumps. For captures, I do the following: 1 Check if the move is valid: 2 self.validatedMove = True (The move that has been made is valid.) 3 self.capture() (Captures the …

Software Development perl python tkinter
Member Avatar for DragonMastur
0
801
Member Avatar for no123

Imports System.Windows.Threading Imports System.Threading Imports System.Net Imports System.Drawing Imports System.IO Imports Microsoft.Win32 Class Window1 #Region "Fields" Private geoDoc As XDocument Private location As String Private zoom As Integer Private saveDialog As New SaveFileDialog Private mapType As String Private lat As Double Private lng As Double #End Region Private Sub GetGeocodeData() …

Software Development api google google-api seo vb.net windows-api
Member Avatar for G_Waddell
0
207
Member Avatar for Satyam_1

I have vb.net application and have a richtextbox.. I want set the lines limit to 12 and after 12 lines the user will not allow to enter text. How can i do this?

Software Development vb.net
Member Avatar for Satyam_1
0
1K
Member Avatar for Tcll

ok, so if you know me well, this gets a little complex... what I'm trying to do is execute a function from a script that requires 2 arguments where the names varry depending on the script. but I'd like that function to be executed in a namespace where I can …

Software Development python
Member Avatar for Gribouillis
0
315
Member Avatar for sachin19

find /home/scott/xyz -name "*.log*" -not -name 'access.log' -not -name 'server1.log'-exec cp -i {} /home/scott/zxc/. \; I want to run this command but It doesn't seem to work for two files.How can I achieve this?

Software Development shell-scripting
Member Avatar for sachin19
0
201
Member Avatar for HuePig

Hi, I have three classes `public class Player` , `public class Computer : Player`, and `public class Game`. In `Game` I have a List: `public List<Player> PlayerList` and a variable `Player CurrentPlayer`. Heres what happens: when I create a `new Computer()` I add it to the `PlayerList`, the `CurrentPlayer` acts …

Software Development
Member Avatar for HuePig
0
147
Member Avatar for Alok_5

I want to remove the specific nodes from xml file under song tag whose id =2 from the following file in Android (Java): <music> <song> <id>1</id> <albums_id>1</albums_id> <title>Someone Like You</title> <artist>Adele</artist> <duration>4:47</duration> </song> <song> <id>2</id> <albums_id>1</albums_id> <title>Space Bound</title> <artist>Eminem</artist> <duration>4:38</duration> </song> <song> <id>3</id> <albums_id>1</albums_id> <title>Stranger In Moscow</title> <artist>Michael Jackson</artist> <duration>5:44</duration> …

Software Development android-development java xml
Member Avatar for Karan_8
0
290
Member Avatar for basit_3

how can i select a particular child node for example when i click on a node it is selected so that if selected node= TreeView1.Nodes(0).Nodes(1).Nodes(4) then messagebox.show("node selected") end if

Software Development vb.net
Member Avatar for Reverend Jim
0
1K
Member Avatar for Papa_Don

Group, I need to insert an "If/Then" statement that will require the command to check the string for multiple variables. In other words it needs to say something like this: If Microsoft.VisualBasic.Mid(txtLine, 18, 1) = "C" or "T" or "G" or "W" Then Go do something End If After doing …

Software Development regex vb.net
Member Avatar for Reverend Jim
0
254
Member Avatar for elexender

Hi all, I have a question about file path in lunix. Since i pretty new to linux (im running ubuntu) i dont know how to give a correct file path to fopen command. I want to write some data to a usb drive. Let me show you how i would …

Software Development c file-system ubuntu
Member Avatar for Erkan_1
0
2K
Member Avatar for Ahmed_62

i have these buttons what i wanna do is when i press any of them change the button name to "Ouch!" import java.applet.Applet; import java.awt.Button; import java.awt.Color; import java.awt.Graphics; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class sudokou extends Applet { Button num[] = new Button[9]; int x, y, i, j, n …

Software Development gui java
Member Avatar for JamesCherrill
0
226
Member Avatar for Papa_Don

Group, In VB.net, I use the following to return the actual name of a folder where data is kept. Is there an equivalent in VBA? I sure hope so. It would solve some problems for me. foldernameGD = CStr(getFolderNameGD("O:\Revenue Management\Centralized Revenue Management Service\CRMS Hotels", propertyNo2 & "*")) In advance, thanks …

Software Development microsoft-office vb.net visual-basic
Member Avatar for Papa_Don
0
309
Member Avatar for Feras_1

Binary file for cars of a certain city Each car of the record containing the following information: Car number - Year - color - figures the identities of the owners of the agenda this car. (Through the matrix at most 5 because of possible car owned by more than one …

Software Development c
Member Avatar for mack1
0
150
Member Avatar for Yahia Farghaly

Does compound literals techinque reserve a memory ? if i say int x; x=(int){1}+(int){2}; or total_sum=sum_arr((int[]){1,2,3}); and what's the best situation to use this techinque ?

Software Development c
Member Avatar for Yahia Farghaly
0
86
Member Avatar for razree

Hi, I've ran into a problem when publishing/updating the clickonce project. I publish project to network share and what hapenes is that app doesn't update on startup as it should. Just old version openes, no update hapenes, seems like it doesn't see the update waiting. I've done this update a …

Software Development assembly publishing vb.net
Member Avatar for G_Waddell
0
255

The End.