132,726 Archived Topics
Remove Filter ![]() | |
Hello, I have written the basic shell script "myscript.sh", which prints Hello World. I want to call this script using PL/SQL. Please let me know the procedure(steps) for the same. Thank you. Software Development shell-scripting sql | |
How we can create word document that is atemplate (contains paceholder to data ) and fill this template from xml document that contains data from serialized object Mapping Word 2007 Content Controls to Custom XML Using the XMLMapping Object c# Software Development microsoft | |
Hi Consider the string "Please, go Mr. Gofer and good bye" I want to split the string at the specific word 'Go' (not Go in 'Gofer' or in 'good') in my case 'Go' could be at begin of sentence or at end or somewhere inside sentence. How can I achieve … Software Development vb.net | |
memoryc = open("cipher.txt", "a") memoryd = open("decipher.txt", "a") #------------------------------------------------------------------------------- choice = input("cipher, decipher or memory") #------------------------------------------------------------------------------- if choice == "cipher": message = input("What is your message?") key = int(input("What is your key?")) coded_message = "" for ch in message: code_val = ord(ch) + key if ch.isalpha(): if code_val > ord('z'): … Software Development python | |
![]() | I need to write a Java program that uses a Monte Carlo algorithm to calculate the probability that next week’s lottery draw won’t have any consecutive pairs of numbers (e.g. 8 and 9 or 22 and 23). 6 numbers are drawn from 1 to 45. ![]() |
The problem is that i can't manage to compile the simplest (int main(){}) boost asio program with Code Blocks. I'm using Windows 7. Googling gave me some controversial suggestions: 1) to add -lwsock32 key - Done(Compiler settings->Other options-> -lwsock32) 2) to link with ws2_32.dll and wsock32.dll - Done (Linker settings->paths … Software Development c++ | |
So can anyone tell me how to make this I was sick for a long time so Im far behind in school. So: First the customer NEEDS to fill in his first and last name. Then he needs to tell with how many people he comes. Then he has to … | |
Alright, I've never done this before so this may not be the way to go about it, but here goes. I'm creating an Application that connects to a Server which executes SQL Queries. I am coding the Application as a prototype in Java currently and extending it later possibly with … | |
I have this code: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace RegexTest { class Program { static void Main(string[] args) { string str = "The quick brown fox."; string pat = "fox"; Regex rgx = new Regex(pat, RegexOptions.IgnoreCase); Match matches = rgx.Match(str); Console.ReadKey(); } } } … Software Development regex | |
package filehandling; import java.awt.event.ActionEvent; import java.io.*; import java.awt.*; import java.awt.event.ActionListener; import javax.swing.*; public class Filehandling extends JFrame{ JTextArea ja; JButton jb; Filehandling() { setBounds(400,400,400,400); setTitle("azeem"); setVisible(true); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); Container cont= getContentPane(); ja=new JTextArea (); cont.add(ja,BorderLayout.CENTER); JPanel jp= new JPanel(); jb=new JButton ("Save"); jp.add(jb); cont.add(jp,BorderLayout.SOUTH); setVisible(true); } public static void main(String[] args) … Software Development java java-swing | |
I am having a issue with data binding from a instantiated class in project A to Project B. The data binding "seems" to be working correctly; however, I am definitely getting a different instantiation of ClassA. This is the ClassA - which is a class in a different Project. ClassA … Software Development | |
https://friendpaste.com/mTdjXilQ0bVQJpsoCu1Wf i am having the error (float' object has no attribute 'insert').I am getting the same error with append. any solutions??? I am using python 3.4.2 .Thanks in advance. Software Development python | |
Okay guys, I have been working on this project for about 2days now and it appears i can't do it as i keep getting errors when i try tp compile the program. Please can anyone help? Sunshine.com is an online children clothing store exclusively for baby and toddler. The store … | |
Can anybody let me know, why i receive a (Runtime error 3319: Syntax Error in union Query), when I run the following union Query : sSQL = "SELECT 0 AS VoucherNo, #" & Format((txtFromDt), "dd/MMM/yy") & "# AS VoucherDate, " _ & "Vendors.VendorName, ""[Balance Brought Forward]"" AS Narration, 0 AS … Software Development visual-basic | |
I have this program,all i am stuck with is how to check if my file League.bin exits and if it is exists need to de-serialized into ArrayList and if it does exist user should initialize 4 teams,which i tried in FootballMethod(),plus i tried to do in the main top check … Software Development | |
Frnd i m trying to view path with file name in listview so plz help me plz give me code for vb 2010 | |
how to print my listview details .. i found open source with class but this is only printing my 1st column also it is printing 1st column details in all column. please tell me how i can edit it . and put my all subitems of list the class is … Software Development listview open-source printer vb.net | |
I am creating a table dynamically of which fields are date. I have a running code below but I want to remove those doble quotes in both sides.. If I remove the chr(34) on both ends, I get this error saving "invalid field defination". My code and table screen shots … Software Development visual-basic | |
Hey, I'm looking for decent MySQL tutorials for connecting a Database in Java. I'm using Java 8 so preferably would like tutorials that correspond with newest code. Thanks! | |
Hi I have some code to re-encode uniface text files in to ANSII for use by a 3rd party application. This code works fine if I create a new text file using notepad, save it as Unicode and run my script. I get a lovely output file in ANSII. When … Software Development c# file-system | |
hi :) I'm wondering >>what is the use of (static) word in func.'s ? in this code what does it mean ??and if I didn't put it what would happen then ?? thanks :) import java.util.Scanner; class Average { public static double compute(int...x) { double sum=0; for(int item:x) sum+=item; return … Software Development java | |
Here is my code,how do i use the length property to show length of the random.bin file? static void Main(string[] args) { FileStream fs = new FileStream("random.bin", FileMode.OpenOrCreate, FileAccess.ReadWrite); // has to be declared in method scope Random r = new Random(); for (int i = 0; i < 10; … Software Development | |
So here is my WORKING code. My problem lies in the output when I enter "0" or "00" for the hour in 12 midnight. No matter what it still outputs a 0 for midnight. (I want it to convert it to standard time.) I know it is something easy that … | |
How (if possible) can embedded resource (i.e. folders and the contents) be utilized as if they resided in a directory? have no idea where to even begin with doing so... Not sure if this question even makes sense but a whole box of cookies to all who can help! Thanks … Software Development | |
so im trying to find the min, max, range, mean, median, and mode. The max number is right but the min isnt. Once that is corrected, i can get range and mean easily. Also, i have no idea how to get mode and median. Im guessing the values in the … Software Development c++ | |
Hi Guys! I'm having trouble on briefcases having the same value. for ex: i choose briefcase 1 = 5000, briefcase 2 = 5000 how do i make the briefcases have a unique value? Note: the value of briefcases are randomized import javax.swing.*; import java.awt.*; import java.awt.event.*; public class DoND extends … Software Development java java-swing ![]() | |
Hello. I am getting into app development and started with a calculator. The input is not equal to the output in any size I set. Here are some screenshots: Input: [Screenshot](https://www.dropbox.com/s/otncvnpfotfgetu/Screenshot%202015-02-05%2014.44.43.png?dl=0) Output: [Screenshot](https://www.dropbox.com/s/360u5iastr69hgq/Screenshot%202015-02-05%2014.45.11.png?dl=0) And finally, here is the size thing: [Screenshot](https://www.dropbox.com/s/23aln2fzovpv72y/Screenshot%202015-02-05%2014.46.00.png?dl=0). Software Development objective-c | |
Please tell me the code for how to display record in datagridview based on combobox selected item. I have a table named table1 in sql server database.and columns are name,id,group,grade,year.when i seleted one name from my table then the remaining fields information(ie only that record)have to dispaly in datagridview by … Software Development display | |
How do i retrieve an ID with an AUTONUMBER as DATATYPE and has alphanumeric format ex(ER001)? Can some genius programmer out there help? :P? im using Access for backend and VB 2010. My code so far only returning the last number of the ID Column ex(1 instead of ER001) Dim … Software Development vb.net | |
How can I delete the old entries from the .txt file and replace them with the new ones? Like : I have a text file that has "123" in it, when I try to change the txt file it just adds the new text, I add "abc" to it and … | |
Hello, I made a program that finds all the words in my .txt file and shows them to the screen, but now I want to make it so that I can pick a word from the .txt file and replace it with something else. For example : teksts.txt has the … | |
Write a program that lets the user to enter datain a 4 X 3 matrix of integers, and then determine and return the largest element exist in the desired row.The program calls the following functions, which you have to implement: getData – accept a matrix with its size and fill … Software Development c++ ![]() | |
i have a textbox named AddU.text, i also have a msaccess table field named Quantity, what I want is that when i input a value in AddU.Text and click the add button, the value i entered will be automatically add to the existing value in Quantity. I keep searching for … Software Development vb.net | |
Hi ! I am working in a project using vb.net 2010 with SAP Crystal Reports. Regarding the Reports everything is fine but i had an unusual problem. Actually i have to make a report using sub report technique but when i call the main report that calls another sub report … | |
Hi i am trying to do this project for class and i have been stuck on it for a couple of days Here is the assignment **Array Assignment Write a program that allows the user to enter up to 20 Pro team names and then displays them. The user doesn’t … Software Development visual-basic | |
Hi here is my code,can someone help to edit the directory.getfile(),so i could output all files in c:\ Windows ? using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LogicalDrives { class Program { public static void GetLogicalDrives() { string[] drives = System.IO.Directory.GetLogicalDrives(); foreach (string str … Software Development | |
Hi, I want to learn java as young but i use Arch linux since i was kid so how can i get the emulator or what required softwares.I have java 7 installed. Reply as soon as possible to noob guy. Thanks,uxama Software Development java | |
hi everyone, im new to java. and i was assigned to do a project that integrates java and .net(c#). here's the scenario: 1. the .net system will create a text file (.txt) based on some conditions --> i already did this part. 2. the txt file will then be pass … | |
Hello i am new to programming i trying to solve the follwing Allow 6 different players to throw dice 100 times The results sholuld be stored in the collection SCORES. Read the contents of SCORES and output many times in total each number was thrown. Also output whether or not … Software Development python | |
Hi, I just wanted to know about instance method? If static modifier is not applied before does it makes it an instance method ? Plz give an example Thanku Software Development java | |
write a program that asks user for five lowercase letters,one at a time and prints their uppercase equilents(using for loop).it uses ASCII table to ensure that user enter lowercase letter(these are the letters whose ASSCII numbers range from 97 to 122).if user do not type a lowercase letter,the program ignores … Software Development c++ | |
Hello everybody. How can i get "ls" from shell scripting? I tried this but it doesn't work, i saved it in a file: #!/bin/bash $ls I know the second line is not correct, so what should i type? Getting "ls" is just an example, i infact want to import this … Software Development shell-scripting sqlite | |
This is the lines used to compile a c++ programme. g++ xp_example2.cpp api/gdxco.cpp ../C/api/gdxcc.c api/optco.cpp ../C/api/optcc.c api/gamsxco.cpp ../C/api/gamsxcc.c -Iapi -I../C/api However, when I use IDE Xcode, I don't know what to change so that I arrive at the exact same thing. For example, How shall I edit my Xcode to … ![]() | |
Can I save the information from common dialog Save as Jpg or Bmp format to an INI file and retrive it when the program starts. Now I have this line Image4.Picture = LoadPicture(App.Path & "\test.bmp") to load the picture. and it's not good. I would prefer to have that the … Software Development visual-basic | |
hello sir my problem is when i add new buttons or labels any thing on a page it cannot be displayed(and also do not execute new code) .... it display only those things which i put on the interface or page before...did not add new things...kindly help me its my … Software Development vb.net | |
I have a program (exe) that starts an external .exe program in response to a user request. If the external program is started by me on the desktop it checks for updates to the program prior to opening up. If I do it using the ProcessStartInfo then it doesn't check … Software Development vb.net | |
I cant figure out what arguements to use or really even what arguements are. #Template for Program 2 #The keyword "pass" is a placeholder that does nothing #Move each line of original code into the appropriate module #Add arguments to calcBMI() and displayResults() as needed #original code -- not in … Software Development python | |
I import an excel file into a DataGridView, one of the columns in the excel file is named DATETIME and contains both the date and time, I need to separate the date from the time how can i actually do this I've tried something but it just gives either the … Software Development | |
I am currently writing an iOS application which fills Dynamic cells with data retrieved from a PLIST file. I have searched and searched but cannot comprehend/find a way to make my data searchable. I would like my plist to be searchable and provide the correct information. Any assistance would be … Software Development ios objective-c |
The End.