64,152 Solved Topics
Remove Filter ![]() | |
I am supposed to create a file that will generate 100 random numbers and then sort them. I am stuck on the sorting. I think it would be a really simple solution but i cant seem to figure it out. I have tried the arrays utility and creating a method … | |
This is "part" of my code Imports System Imports System.IO Imports System.Text Public Class Form2 Public fo1 As String Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim path As String = Directory.GetCurrentDirectory() & "\test.txt" If File.Exists(path) Then My.Computer.FileSystem.WriteAllText(path, fo1, True) Else Dim fs As FileStream … | |
i have a listview in a form that contains a name like "Aileen-EB" , "FEMA-EB" , "CARMEN-EB7" , "TONETTE-A" something like that I need to get them and put it on a Dim AccountName as String I use if statement but i want my code to be like this For … | |
The problem is explained by the comments in the code. It is a fundamental question about the method call...every time I try text_box_name.tk_textBackspace() I get the TclError message. That's why I asked the question without the code... # When user enters a search word in the +search_box' text widget and … | |
Hi all I have the folowing to calculate the Number of weeks between two dates. The OpenDate= Nov-1-12 and closingDate= Nov-29-12. When Executing the the NumberOfWeeks=3 If I go to the calander 4 weeks why is the NumberOfWeeks=3 NumberOfWeeks = DateDiff(DateInterval.Weekday, OpenDate, ClosingDate) Thanks In Advance. | |
Just a thought that woke me up this morning. A means of providing 'property' type constructs in C++ classes similar to python properties. # Header # #ifndef _HXX_CPROP #define _HXX_CPROP /** * Helper class to connect a 'property' in a * c++ class to getter/setter methods * */ template<class T, … | |
Hello everyone! It has been quite sometime since I was on Daniweb, and a lot has changed. Anyway, I have decided to "fix" my old Java school ISU and make it better. (I am not in school so don't worry, I'm not cheating.) Here is my problem: I want a … | |
Hi all, I have a csv that has over 800,000 records that gets loaded into my db via SSIS package routines. However, there are about 190 records that I do not want to be loaded into the the database. The csv comes from an external source and is unaltered at … | |
need to design a code for my first assignment in dev c++ for olmypic judging, 5 judges, 10 competitors, need to score each competitor between 0.0 and 5.0. i cant use the highest score for each competitor or the lowest and must average the remaining results. any help? i have … | |
Here is my code: <html> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>inner_pages</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <style type="text/css"> .divTagContent { background-color: #F9FBFA; height: 367px; width: 691px; overflow: auto; } .divScrollLinks { background-color: #F9FBFA; height: 370px; width: 205px; overflow: auto; } </style> <script type="text/javascript"> function MM_swapImgRestore() … | |
Hello, i have my naughts and crosses code as pasted below. Can someone help me with code to recognise if the game has come to a draw and recognising any invalid moves. Row1 = [" "," "," "] Row2 = [" "," "," "] Row3 = [" "," "," "] … | |
i have tblScrutiny , COLUMNS: teamid name userid now confusion is that every team has many members, so how how would i mention them, like e.g i mention 1 member in teamid =1 , then in next row the teamid changes (identity=ON) , so how to mention 2nd member ? | |
Okay, so my hurdle here is to Serialize a list that has a bunch of objects in them, write them to a file, and be able to open the file to load the list of objects back into a listbox. I've read the MSDN articles and browsed some Forums, but … | |
Hi there, I have an array of unsigned chars SOURCE, i need to combine into DESTINATION, i want to turn: SOURCE[0] = 3 SOURCE[1] = 9 SOURCE[2] = ' ' SOURCE[3] = 0 SOURCE[4] = 4 SOURCE[5] = ' ' SOURCE[6] = 7 SOURCE[7] = d into DESTINATION[0] = 39 … | |
mov eax,'ZYXW' Now there are 3 problems. in Hexa W=57,X=58,Y=59,Z=5a Debugger shows this as 1515804759 in Decimal. that is when 5958595a taken as a whole. why doesn't it show 87888990 like when they are take separately? 2. Why is it shown as 5a,59,58,57 rather than 57,58........ ? (because W=57 which … | |
<div id="hedar_main"> <div id="hedar1"> <?php include('menu.php')?> </div><!--end of header1 --> </div><!--end of header-main --> </div><!--end of header --> <div class="rightdiv"> <?php include('local_auth.php')?> <?php include('news.php')?> <div class="midal_right"> <center><div class="divimg"><img src="images/home_img1.jpg" /></div></center> <center><div class="divimg"><img src="images/home_img2.jpg" /></div></center> </div><!--end of midal_right --> </div><!--end of rightdiv --> <div id="futter"> <div id="futter_main"> <div id="futter1"> <?php include('footer.php'); … | |
final Handler myHandler = new Handler(){ @Override public void handleMessage(Message msg) { updateUI((String)msg.obj); } }; Would someone please let me know what the curly brace '{' and its contents mean in this context? what is the purpose? | |
Visual Basic.Net: I have a DataGridView in Last Name sequence. Is it possible to when a user types the first letter of a last name that it displays all rows with last names that start with that letter. When he types the second letter, it displays all records whose last … | |
I have made a application X1 with Visual Studio 2008 (visual basic) .NET Framework 3.5 and deployed on Windows 7 desktop System. Works fine. The Same application X1 i have now made with Visual Studio 2012 (visual basic) .NET Framework 4.5. What must i do to ensure that the application … | |
I tried to rotate an element by changing the CSS using this code: elem.style.-moz-transform:rotate(45deg); It didn't work, and yes, I'm using firefox to test it. How should this be done? | |
Hey, Im looking for the cleanest way to scan through a text file and remove symbols only if they meet certain conditions. So far i have been using the Scanner, but it removes them regardless and i was looking for the best way of providing conditions like those for comments … | |
Hi Can I get some assistance with the following Code: Letter = raw_input("Enter Letter") A = 7 B = 8 C = 9 print Letter I have left the basic info but if the Letter A is entered in the print Letter it results A, I want it to give … | |
this part is i am un sure what its doing. while($row = mysql_fetch_array($sql)) { $id = $row["id"]; } why cant i do this? $row = mysql_fetch_assoc($item_query); $id = $row['id']; this is my login in script. full code //BINARY for case sensitive $sql = mysql_query("SELECT user_id FROM user WHERE user_name='$username_p' AND … | |
Hey there, I need help with a query. The typical situation is like this: I expect, say, 1000 rows out of a query that is based, say, on lastName column. One column is, say, firstName. I know I only have like twenty unique names that occur on multiple rows. I … | |
Hello Community, Is there a website that has a database like phpmyadmin that i can access from my website? Please help... | |
Trying to display events on my website based on what my clients want to view. I have 3 checkboxes setup to toggle the connected events, but I can't seem to make the onclick handle more than 1 event at a time. Basically, I want to know 1) how to display … | |
hi, im new in vb6 how to search in datagrid where every keyword you type wil display the record found in database? here's my code in saving pls ned help here....this is our thesis God Bless>thanks. Sub search() 'search if student is registered then With ado .ConnectionString = connectdb .RecordSource … | |
i'm trying to make an autocomplete that will display the name of files in a folder. The autocomplete is ok except the part that it only display for the last file name. your help and suggestions much appreciated! =) code to open the folder and list the excel file names. … | |
I had a jquery-based code that messed up the slider on my page @ http://formidablehoops.blogspot.com Is there a way to have those two co-exist, or is there a way to toggle my calendar at the bottom with javascript instead? I've removed the code for now, but I think it's a … | |
so I am new to python and I am trying to generate a 100 numbers from 0 to 10 and find out how many times a three appears. I'm not sure exactly how to get it to work. I basically just want to be able to count how many times … | |
Okay so the break down. I have a simple application. You can create a new vehicle, either a car, sports car, truck, or minivan. That object is then loaded into a listbox. Each one has 4 methods that display the message box (Start, Drive, Park, Wash). So if I create … | |
Hi, Below is my code Socket CSocket,SSocket; sin_ad.sin_family = AF_INET;//sin.sin_family = PF_INET; sin_ad.sin_port = htons((u_short)m_Port); sin_ad.sin_addr.s_addr = INADDR_ANY; int s_len = sizeof(sin_ad); CSocket = accept(SSocket,(struct sockaddr *)&sin_ad, &s_len); ****if (ioctlsocket(CSocket, FIONBIO, &iMode))//iMode is ulong set to 1. { idc_txtbox.put_SelText("Unblocking of Socket failed"); closesocket(ServerSocket); WSACleanup(); }** if (CSocket == INVALID_SOCKET) { … | |
1.If cin and cout objects are in the 'iostream' , why do we need to declare it again using 'std' ? 2.are cout,cin,cerr,clog the only ones in the iostream? 3.under which categories do cin,cout and iostream fall? (library,object etc..) 4.can we use the same iostream for both linux and windows? … | |
I'm returning to college after a 21-year absence and am starting fresh in a science stream. My first course in January will be the introductory Python course. In the meantime, I'm doing the Codeacademy tutorials and have completed the basic ones on variables, strings, comments, conditionals, some functions, and a … | |
**<iframe width="608" frameborder="0" id="mainframe" name="mainframe" onload="$(this).height($(this).contents().height());" src="mindex/forratt.php" scrolling="no" /></iframe>** So I have written this code to automatically adjust the iframe to its content and it works fine. The thing is that when I access a page with a lower height, the height from the previous page stays put. I want … | |
Hello, I have this php form designed in dreamweaver. when you search any bpv (bank payment voucher) file in this form it will fetch the pdf file link from my local hard disk folder. currently my local folder name is bpv and it has all the pdf files in it. … | |
So I managed to get everything working right except for one thing, when I enter the following input: a = 2 b = 2 c = 2 I should be getting this: Root 1 = -0.5 + 0.866025i Root 2 = -0.5 - 0.866025i But I get this: Root 1 … | |
Hi there, How do we differentiate between NULL and zero in C++. I have a program in which i assign NULL to num variable but if i apply if condition to check whether it is NULL or zero. Program still gives me result zero. //num = 0; num = NULL; … | |
Hi everyone, I am stuck in writing Bank Account program. I want that if user wants to create an account, BankAccount class object is created. Then after this i call to its methods such as getBalance() to get the balance in the account. But its not working and I am … | |
 i am creating a pagination on my page. i dont like pagination with numbers so i went with different one. take a look at my image that i upload. as you can see if user click at last button i want to load 8 more images. to get … | |
How can I control the position of text in a label? Thank you | |
hi I'm trying to sort 3 numbers from lowest to highest that the user enters...ex ...2 , 4, 6. I have a problem with finding(calculating the middle) number. this is what i have [CODE]//create a Scanner Scanner scanner = new Scanner(System.in); //Prompt the user to enter three floating-point numbers System.out.println("Please … | |
I need a little help with the below code. I am basically reading text from a .txt file and need to be able to convert the text into an array(fam6) that i can then search for a value that is typed into a text box. If said text box search … | |
I have got a simple naughts and crosses game working, can someone tell me a simple def blah(): .. command to check if the player has already moved to a place on the board already taken.. E.G Player's first go = top left Player's second go = top left.. (message … | |
Dear all, I would really appreciate your help and assistance with a bug i'm facing in myphpadmin Mysql table. I have a table which is named as total amount. I also have a front end php. interface where i do my data entry from. When I enter for example (100000) … | |
Hey guys, i have been working on this for a while and global doesnt seem to be doing anything; help? Row1 = [" "," "," "] Row2 = [" "," "," "] Row3 = [" "," "," "] Grid = [Row1,Row2,Row3] x = False def NAC(): def check(): #only using … | |
![]() | Hi all, I have a table on a page that is generated from MySQL database entries via AJAX request. I have a `.live()` event for the table rows in that table, `$(#myTable tbody tr).live('click', func...)`, which opens a jQuery UI dialog window with extra information from the table row. In … ![]() |
hello guys how are i have a proplem with upload files when i tring to uploading images from my script on the server it is not display all images that i uploaded althoug i upload for instance 50 images and when the upload finishe it will just display about 24 … ![]() | |
I have the following code which is intended to supply the family and given names of people who are in the users table but not in the quiz table. Can I even do this, and this throws an error anyway? `$query = mysql_query("SELECT quiz.userGroup AS q_userGroup, quiz.userDate, users.userGroup AS u_userGroup, … | |
Dear all, I would really appreciate your help and assistance with a bug i'm facing in myphpadmin Mysql table. I have a table which is named as total amount. I also have a front end php. interface where i do my data entry from. When I enter for example (100000) … |
The End.