132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ddanbe

I have strings representing an angle, of the format ddd°mm'ss''. I want to get to the three constituents: degrees, minutes and seconds. I first chopped off the seconds like this: `angleString = “ddd°mm'ss''”;` `string str = angleString.Substring(0, angleString.Length - 2);` Then I tried to do this, to get to the …

Software Development
Member Avatar for JOSheaIV
0
243
Member Avatar for Joemeister

Hi guys, I'm getting a simple error and I need your help. I want to display every object in a list by returning that object as a string but I'm getting the following error: The name 'myBikeList' does not exist in the current context My code: List<Vehicle> myList;//= new List<Vehicle>(); …

Software Development
Member Avatar for Joemeister
0
277
Member Avatar for BustACode

My code and funcs for printing to columns in 2.7 and 3.0+ using print(). I had to relearn column formatting as I moved to using the print() function, and so the follwing is a result. Inspired and partially copied from discussion on [StackOverflow](https://stackoverflow.com/questions/9989334/create-nice-column-output-in-python) def main(): # Main Code v_Data = …

Software Development python
Member Avatar for vegaseat
0
395
Member Avatar for Niloofar24

Hi. How i can ask my crawler to print only the text of all <li></li> tags in a url page? I want to save the text of all <li></li> tags in a text file (without` <li></li>` words.)

Software Development python
Member Avatar for Niloofar24
0
3K
Member Avatar for BustACode

One day I got to wondering if it was possible to get a Python script to modify itself. After a few searches I found [this](http://showmedo.com/videotutorials/video?name=7610000&#) solution that I present here. I did not write this code, but feel that it should be "paid forward" so others know that it is …

Software Development open-source python
Member Avatar for Gribouillis
0
212
Member Avatar for TekknoDraykko

Greetings! I'm reviewing Java, in an effort to enhance my programming skills. I'm utilizing the book "*Teach Yourself Java in 21 Days*" and I'm currently learning about Java Web Start. I'm not sure I full understand how I'm supposed to use Web Start (based on the samples in the book) …

Software Development java
Member Avatar for stultuske
0
285
Member Avatar for GingerDontCare

Hello everyone, I am a little stuck an this simple task. I have created an html with a form that has 2 user input boxes and 4 button +,-,*,/,. Basically a simple calculator. And I have a jsp to process the form. I am trying to now create a java …

Software Development java java-jsp oop
Member Avatar for stultuske
0
544
Member Avatar for PulsarScript

Hi have a question,i know it is always a good practice to include default in the switch,but can it be omitted in this case? As i see it would be redundant. static void Main(string[] args) { bool quit = false; do { var option = ShowMenu(); switch (option) { case …

Software Development
Member Avatar for TekknoDraykko
0
148
Member Avatar for Sheeraz_1

i have developed the windows application form in this when i m not inserting the image it gives ne empathy path name is not legal it didnot update without image. kindly help me what should i do string imgloc="";

Software Development legal
Member Avatar for TekknoDraykko
0
288
Member Avatar for Nazariy

Hi, I am multiplying two matricies in assembly. It is a 2 x 2, and as you can see they are defined down below in the code. I am also defining storate for 4 words so tht I can save the resulting matrix. 1. I declare offset fo each matrix …

Software Development assembly matrix-multiplication
Member Avatar for Schol-R-LEA
0
230
Member Avatar for Computer Savy

How to make a tool to remove temporary files using C#.net? From where, we have to start..Please help..

Software Development c#
Member Avatar for TekknoDraykko
0
274
Member Avatar for smartjugal

I want to learn C# using in windows forms from the begaining..... can anyone tell me some C# windows forms text book and the author's name? or pdf books link..????

Software Development c c# c++ microsoft pdf
Member Avatar for TekknoDraykko
0
331
Member Avatar for jez9

i want to print my receipt in A4 size, but the problem is when i tried to print preview the form that need to be print , it occupy the whole paper. I use Word in printing. and here's my code in print preview Private Sub frmreceipt_Click(ByVal sender As Object, …

Software Development vb.net
Member Avatar for Minimalist
0
2K
Member Avatar for Quast

Hi It been long time since i do some codes. so i forget the basic What i want to do is that when i click on a (Bold or Italic) button the text on the RTB become bold and another click on that button the text go back normale. Can …

Software Development gui
Member Avatar for TekknoDraykko
0
154
Member Avatar for adnan_6

please check the following error while running the BluetoothLEExplorer.Droid project from http://developer.xamarin.com/content/BluetoothLEExplorer/. D:\robotics programming\ys u\BluetoothLEExplorer_2\BluetoothLEExplorer.Droid\obj\Debug\android\src\bluetoothleexplorer\droid\ui\controls\ScanButton.java(3,3): Error: error: no suitable constructor found for Button(Context,AttributeSet,int,int) super (p0, p1, p2, p3); constructor Button.Button(Context) is not applicable (actual and formal argument lists differ in length) constructor Button.Button(Context,AttributeSet) is not applicable (actual and formal argument …

Software Development android file-system java robotics xamarin
Member Avatar for stultuske
0
281
Member Avatar for cambalinho

think in these way: the eyes have the blue color, the backcolor is blue. so how can i change the backcolor without change the image\eye? (these is just an exemple for trying explain)

Software Development c++ image
Member Avatar for cambalinho
0
153
Member Avatar for hakeemtunde

I have being trying to implement GA in java. please ccan anyone guid me on how to go about implementing it for a school that offer 13 subjects with 8 periods per day for 5days. They have 7 staffs of which some of them teach morethan one (1) subjects and …

Software Development algorithm java
Member Avatar for hakeemtunde
0
175
Member Avatar for ali11

File f=new File("c:/'.'"); // I know about file class just didn't understand what kind of file "c:/'.'" is. File strRoot[]=f.listRoots();

Software Development java
Member Avatar for JamesCherrill
0
112
Member Avatar for cambalinho

heres my image class: class image { private: ULONG_PTR m_gdiplusToken; Gdiplus::GdiplusStartupInput gdiplusStartupInput; HDC hdcimage=CreateCompatibleDC(NULL); HGDIOBJ obj=NULL; HBITMAP btBitmap=NULL; Image *img; bool isimgused=false; int imageheight=0; int imageweight=0; int framecount=0; int intSelectFrame=0; int framedelay=0; string strfilename=""; Gdiplus::Color clrBackColor=Gdiplus::Color::Transparent; HDC hdcwindow; bool blnTransparent=true; HICON HICONFromHBITMAP(HBITMAP bitmap) { BITMAP bmp; GetObject(bitmap, sizeof(BITMAP), &bmp); HBITMAP …

Software Development c++
Member Avatar for Schol-R-LEA
0
299
Member Avatar for iikitty

The first few digits are always "0"s and the last is "1"... I tried calculated on paper many times according to the steps in the code which I believe its logical and smooth. However it outputs "0"digits in front and "1" at last for every execution and I dun know …

Software Development c++
Member Avatar for iikitty
0
316
Member Avatar for MasterHamster

sorry for my english its kind of its not my primary language.. i am new with programming, and also connecting databases. i use vb2008 and ms access 2010. i watched lots of videos with binding source etc on it connecting with database and i found it easy but somehow i …

Software Development asp.net open-source vb.net
Member Avatar for Santanu.Das
0
238
Member Avatar for David_53

can anyone please explain different with vector::begin() and std::begin() ?? the code is based on the book, Effective Modern C++ item13. #include <iterator> #include <boost/type_index.hpp> using namespace boost::typeindex; #define PRINT_TYPENAME(__param) do { \ std::cout << "param (" << #__param << ") " \ << type_id_with_cvr<decltype(__param)>().pretty_name() \ << std::endl; \ } …

Software Development c++
Member Avatar for vijayan121
0
354
Member Avatar for NoobCoder85

Here is my code: ` #include <iostream> #include <iomanip> #include <string> using namespace std; class Register { //Private members private: //Creating an array for all the Prices static double Price[]; //Declaring RegNUM and RecNUM int RegNUM, RecNUM; //Print out Item name in a loop static string items[]; //Creates a Receipt …

Software Development c++ oop
Member Avatar for David W
0
374
Member Avatar for PulsarScript

namespace BinaryFileIO { class Program { static void Main() { FileStream BinFile = new FileStream("BinFile.bin", FileMode.Create, FileAccess.Write); BinaryFormatter bformatter1 = new BinaryFormatter(); //right to file Random rng = new Random(); for (int i = 0; i < 10; i++) { // how do i put to the file and than …

Software Development file-system
Member Avatar for yesi_1
0
135
Member Avatar for annndrey

Hello! I've got a question about implementation of a standart tree model for TreeView. I have a response from database that lools like [ [A, [a,b,c]], [B,[a,b,c]], . . . [N,[a,b,c]] ] And I want to pass it through treemodel to treeview, for in GUI it looks like that: A …

Software Development data-structure gui python
Member Avatar for vegaseat
0
3K
Member Avatar for Taqwasarwar

Hi everyone, I am a beginner in python, and I would really appreciate if someone could help me with this. Basically I am trying to write a program where I will be importing a file that has a lot of numbers in many lines, there are also some blank spaces. …

Software Development python
Member Avatar for vegaseat
0
311
Member Avatar for garkle

I'm in an introductory programming class, and one of our assignments is to complete a Rock Paper Scissors program using nested switch statements First of all, this method might be completely wrong in the first place, but currently every time I compile it it says I'm missing a return statement …

Software Development java
Member Avatar for JamesCherrill
0
397
Member Avatar for Odyssey2001

Hello!!I have a database and I want to display its data into a QTreeView in PyQt.The database's column has file paths.I have a problem in filling this treeview with data because it's a database and I'm not sure if it is like working with txt files and because it is …

Software Development python sqlite
Member Avatar for Odyssey2001
0
706
Member Avatar for overwraith

Have any of you ever done big O notation? I found some websites that describe it, but not many professional ones. Are there any books that describe it too?

Software Development
Member Avatar for sepp2k
0
240
Member Avatar for psvmr

I am trying to sort averages of scores in a class by pupil, from highest to lowest. My data is stored in text files like this: Charlie:0 Seema:2 Amber:4 Paige:5 Amber:8 Keith:1 Charlie:8 Seema:0 Charlie:9 Seema:3 Paige:0 Paige:4 Paige:4 Charlie:1 Keith:5 Keith:3 Here is my code so far: with open("class …

Software Development mathematics python
Member Avatar for vegaseat
0
972
Member Avatar for psvmr

I have been trying to create a program which the teacher log in to view the scores of a test of a school class. The scores are stored in a text file like this: Charlotte:7 Charlotte:4 Charlotte:3 Chelsea:2 Chelsea:9 Chelsea:5 Jeff:1 Jeff:10 As you can see there are multiple scores …

Software Development python
Member Avatar for vegaseat
0
676
Member Avatar for Hawk123

Hi, I have a database which stores details of different department. Each department have uneven number of members. Eg. Table field Department A President : 1 Vice President : 3 Treasurer : 1 Secretary : 3 Committee : 10 Department B President : 1 Vice President : 4 Treasurer : …

Software Development vb.net
Member Avatar for Santanu.Das
0
194
Member Avatar for jez9

database - field[counterx3 - Id(text)Primary Key] my code works really well before but when i changes and add codes in the others forms i got error in updating the value in my database, here's my code for update sql = "update counterx3 set ID='" & Val(acsdr!ID) + 1 & "'" …

Software Development vb.net
Member Avatar for Mr.M
0
166
Member Avatar for Omar El Hussein

I've learned the basics of c++ Now, I want to develop and enter the graphics world, Any suggestions?

Software Development c++
Member Avatar for マーズ maazu
0
184
Member Avatar for Yardood

Can someone please recommend me on a right way of working with codes? how should i plan it? how should i arrange it? every time i start a project i find myself later struggling with the difficulties of an unplanned project. how do YOU do it?

Software Development c++
Member Avatar for Yardood
0
163
Member Avatar for Niloofar24

Hi everybody. What is the usage of `urljoin`? An example: >>> from urlparse import urljoin >>> url = urljoin('http://python.org/','about.html') >>> url 'http://python.org/about.html' I think the answer is that when we take a link from here `'http://www.python.org/` for example , it looks like this `<a href="/about/>about</a>`. So if i take the …

Software Development python seo
Member Avatar for Niloofar24
0
834
Member Avatar for marcelmarcelmarcelmarcelmarcelmarcelmarcelmarcel

Hello, for a school assignment I was supposed to write an insertion sort algorithm for a doubly linked list. As the feedback system of this particular course is rather weak (actually non-existent) I would like to ask you for your honest opinion about how well this is implemented, what could …

Software Development c++ linked-list
Member Avatar for David W
0
2K
Member Avatar for Yara Emad

Why it keeps giving me a zero answer ?!!! even though there IS a text file to search in it !! //a C++ project that reads a text from an input file and writes the same text into an output and find how much symbols are there #include <iostream> #include …

Software Development c++
Member Avatar for David W
0
489
Member Avatar for jez9

Hi again, i am working for a new project [payroll system] , i want to know how can i calculate late like for example my working time should be 8:00am-5:00pm and one day i go to office at 8:30 am , can someone tell me how can i save in …

Software Development vb.net
Member Avatar for jez9
0
171
Member Avatar for Nanyo

Hi does anyone know if it is possible to use bruteforce to check for a username and a password in a website using C++? If yes please provide some code. Thanks! (Oh, and I am going to use that with educational purposes only) :D

Software Development c++
Member Avatar for Nanyo
0
81
Member Avatar for lokmani

Hello, my web api is not working on chrome, but working on IE a open appears at bottom contains .json files . i have all the data on it. can you check my code whats the error? public class DataController : ApiController { [Route("dataapi/category")] [HttpGet] public IEnumerable<vendor_category> Category() { return …

Software Development api json web-browser
Member Avatar for djjeavons
0
685
Member Avatar for humorousone

I've got a program with (you guessed it) a .properties file. I've saved new values for properties while running the program through visual studio's debugging system. The changed properties are persistent when running the program (they appear in text boxes, as per my code), but when I view the settings …

Software Development github visual-studio
Member Avatar for djjeavons
0
202
Member Avatar for Huseyin_1

I am new to java client and server and I have been given a task to complete which does the following below: Client: c1. Connect to server via a connection-oriented socket. c2. Read (from socket) and display the prompt message sent (see step s2 in server) by the server. c3. …

Software Development client-server gui java
Member Avatar for David_50
0
349
Member Avatar for vegaseat

Well I done it! Got bored after the holidays and bought a Raspberry Pi credit card sized computer ($35), the least expensive LED TV and a Logitech wireless Keyboard/Mouse combo. The way I ordered the kit it cost almost twice as much, but it came with a good 2.5A powersupply, …

Software Development python raspberry-pi ruby video-card
Member Avatar for vegaseat
0
670
Member Avatar for vijay90kk

scan through this API there should be a option for scan with OCR, means all content will save in database as a txt‏ Once scanning done that become a image‏

Software Development api java
Member Avatar for peter_budo
0
116
Member Avatar for jim45682

Modify the Week Two Java™ application using Java™ NetBeans™ IDE to meet these additional and changed business requirements: The company has recently changed its total annual compensation policy to improve sales. A salesperson will continue to earn a fixed salary of $75,000. The current sales target for every salesperson is …

Software Development ide java java-netbeans
Member Avatar for jim45682
0
2K
Member Avatar for Magic8Computing

How do i get this to write to a txt file instead of message box pleaseWr Function ReceiveSerialData() As String ' Receive strings from a serial port. Dim returnStr As String = "" Dim com1 As IO.Ports.SerialPort = Nothing Try com1 = My.Computer.Ports.OpenSerialPort("COM3") com1.ReadTimeout = 10000 Do Dim Incoming As …

Software Development vb.net
Member Avatar for Mr.M
0
176
Member Avatar for Christina_3

Hi, I was assigned a project to write a user information program to help create and maintain user data. One of the parts of the project I am completely stumped on is how to validate the password a user would input... Tasks are... Evaluate Password - If either of the …

Software Development c++
Member Avatar for Moschops
0
235
Member Avatar for Niloofar24

Hello. I'm trying to create a web crawler. I've read about web crawler's duty and about how it works and what he does. But just need more information. Could you please tell me what does a web crawler can do? What kind of duty i can define for my web …

Software Development python seo
Member Avatar for Niloofar24
0
328
Member Avatar for bidisha_1

question related to C++ 1) Find the sum of natural numbers from 1 to 10. 2) Accept n numbers and find total of divisible by 5 and not by 10.

Software Development c++
Member Avatar for rubberman
0
112

The End.