64,152 Solved Topics
Remove Filter ![]() | |
Hi! I am writing my own string splitter and i'm stuck. When I'm trying to split the same string the second time im getting only the first word. Im using Visual Studio 2013. "Name|Phone Number|Account Number|Price|Tariff" Output is : Name Phone Number Account Number Price Tariff Name and my desired … | |
I have code that creates a PictureBox and I want it's background Image to change when I click it. My code: private void CreatImage() { Random LocationPicker = new Random(); for (int i = 0; i < 50; i++) { int X = LocationPicker.Next(0, 842); int Y = LocationPicker.Next(245, 433); … | |
tl;dr: Looking for a java library to solve equations. Suggestions welcome. I'm looking to write an app for the sake of writing an app. I figured that, as a firmware guy with minimal EE hardware training, a good practice app would be one that acts as a helper for EE … | |
I am importing event info from csv files and I'm having trouble with the event time. Event times are 12-hour time: hours:minutes am/pm. I converted the strings to datetime objects because the sort function wasn't working with the times as strings using `lambda`. Next, I drop the date info (that's … | |
i have a restaurant dropdown menulist, when sb clicks the one of the various meals i want a picture of it to <img id="menupic"src="picFold/actualPic.jpg" alt="Foto der Menüliste">. I only had partial success , who can help me finalize this task ? thx sofar : menu.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML … | |
Hello! I am using nebeans ide. I have made two jframes in my project, jframe1 and jframe2. One for login information and one for admin page. My project ran succesfuly i.e when i enter correct information on login page then admin page is displayed. But one problem is that after … | |
Hello i want to create a countdown with numbers for example 1. (some data from database) 2. (some data from database) 3. (some data from database) 4. (some data from database) 5. (some data from database) and so on.... I have done the ORDER BY and retreive the data i … | |
Urgently need a menu dropdown WITH IMAGES for a restaurant website for its food menu. Looked for jquery on the internet,couldnt find one, only complete wordpress themes or some without images , but i'm looking for javascript or jquery or anything else to implement since the website is not on … | |
Hi there, I have a login form.which contains two input parameters. login_id and password. login_id may be mobile or email. user may use mobile no or email as login id. my table structure is uid email mobile password status when i login through mobile no it is validating and showing … ![]() | |
I have a file set in this folder "C:...../users" (is not real) I want to change the file path with code to set at "D:...../users" how can I do that? | |
HI I need a information for the below, If i send a mail to ticket@domainname from gmail or other mail providers, it has to generate the ticket number and update in the ticket system. Please guide me on this. | |
hi, i would like to change the row color in a data grid view at runtime. i made this code but it didn't work [code] foreach (DataGridViewRow dgvr in dgvReservations.Rows) { string status = dgvr.Cells[10].Value.ToString() ; if (status == "Canceled") { dgvr.DefaultCellStyle.BackColor = Color.Red; } } [/code] not even this … | |
Please help me, I'm not really good in programming. I've done converting text file going to excel, and excel going to DataGridView. Here's my problem: I want to get the specific one or two numbers (maybe up to three). example: 98321 12345 67890 54321 09876 'this numbers in excel. (First … | |
Hi to all experts, i have a big problem here, i want to print data from my datagridview, when i select 1 row.. there is no problem, but when i try to print multiple row, just first selected row appear here is the code : private void button4_Click(object sender, EventArgs … | |
Hello I need some help to build a search form for a website, which should locate the nearest dealership based on either the location shared by the user (if the user is on a smartphone, then if the GPS is on the dealership/s is/are located by it, else the user … | |
Hi Guys, can someone explain me, the advantage using .html or .php Look i know exactly what each extension mean, what im trying to get is in term of website performance. I know that we use it every time but i thing no one ever think about it. Please some … | |
My head is starting to hurt just thinking about all the possabilities and impossabilities of mixing html and css with php and I'd like to understand how's this works. I did a php project for a guy one time and I came close to shooting myself in the face and … | |
[Linux] When using gcc and or g++ is there a way I can have two output files, one with and one without debugging symbols in one gcc/++ command? I don't want to have to write `g++ --Wall program.cpp -o program`, then have to immediately run `g++ --Wall -g program.cpp -o … | |
I am trying to calculate the angle between two vectors. Here is my relevant code: cout << "\n\nPoint1 "; Point1.dump(); cout << "Point2 "; Point2.dump(); cout << "\nanswer: " << Point1.dot(Point2) << endl; cout << "\nacos: " << acos(-1)<< endl; cout << "Problem: " << acos(Point1.dot(Point2)) << endl; cout << … | |
I am a computer hardware technician. And I want to create some programs to use in job. I think it would be more efficient in time. I can use C++ programming language but not perfectly. So I need some helps from you. I want to write some programs with C++ … | |
I recently came accross this code: Mat3D R_z(double RotAngle) { const double S = sin (RotAngle); const double C = cos (RotAngle); Mat3D U; U.m_Mat[0][0] = +C; U.m_Mat[0][1] = +S; U.m_Mat[0][2] = 0.0; U.m_Mat[1][0] = -S; U.m_Mat[1][1] = +C; U.m_Mat[1][2] = 0.0; U.m_Mat[2][0] = 0.0; U.m_Mat[2][1] = 0.0; U.m_Mat[2][2] = … | |
I'm working on exception handling. Here is my code, I need some help.. Requirements: => If the user push a value to stack when stack is full,it must throw an exception of type "cInvalidPush". => If the user pop a value from stack when stack is empty , it must … | |
Hello, I wonder how we can use lock objects between 2 different applications. In the example below we can use lock objects to let only one thread to execute the code inside the lock object at a time. This works fine within one application. Now I wonder how we can … | |
Hi j I have a question and I am wondering if it can be answered. the question is, how do you calculate a teaching allowance and nis from the hours of work and rate of pay in java. | |
Hi all! Whenever I am working with my code in my main.cpp file, I can call character-handling functions like * isdigit * isalpha * isspace * toupper without importing the `cctype` library. However, my C++ How to Program Book shows that the cctype library must be imported before the functions … | |
Hey guys, I am looking into xbrl files and I need to extract certain data from each of them however, I can't find much information on the existing python-xbrl library, perhaps someone in here has an experience with it? Here's an xbrl file example [Click Here](http://regnskaber.virk.dk/14502803/eGJybHN0b3JlOi8vWC1GMDk4RkNDNi0yMDE0MTIzMV8wOTE2MjFfMDk1L3hicmw.xml) Any ideas/solutions on how … | |
Hi to all. I am a newbie to PHP programming. In my project I'm having a student registration form. In that page I've populated checkboxes from database values for students who wants to enroll more than one classes. Everything got done. Now I need to give edit option to student … | |
As part of a class in Java, the constuctor is supposed to throw a java.lang.IllegalArgumentException exception when an integer that is a field in the class, let's call it int N, is set to a negative vale. How do I set this up? | |
In the last couple of threads people have used the Python class, but really don't seem to know how to use them properly, or why to use them. Hence my question: "Why would you use a class in Python?" I though only Java forces you to use OOP. | |
User will enter a date, for example "7/1/2015". Than I will check in database and return some result if match. Note in database there is data/Time but user will enter only date. Below I have a following database set up Table = "workStartTable" |----|------------------------| | ID | StartBy | |----|------------------------| … | |
Hey guys, I need some help with my code, I have a trouble with checking on two different strings as I want to check if the string in the variable `$program_times` are equal to `PM` and `$next_program_times` are equal to `AM`. When I try it, it will show nothing and … | |
Hi Everyone, I am a newbie to PHP programming. I just need to update the status when user click delete button. Here is the piece of code that I tried. When I echo the values of $mode and $id it prints properly. But the update query block doesn't working. <?php … | |
Hi Guys, As part of an online store, I have a dropdown box where the user selects a size. If the user selects size L then the 'add to cart' button needs to link to a page different than if the user selected size M. I figured out that I … | |
![]() | hello,everyone i am trying to access user id from database in session data but no success till now?? //Controller function upload() { $user_id = $this->session->userdata('user_id'); //set preferences $config['remove_spaces']=TRUE; $config['encrypt_name'] = TRUE; // for encrypting the name $config['upload_path'] = './upload/'; $config['allowed_types'] = 'jpg|png|gif'; $config['max_size'] = '10248'; //load upload class library $this->load->library('upload', … |
0 down vote favorite I am using Bootstrap 3 which it have Notification, I want that notification with a custom JS function in which I will pass message as a parameter then that message will display in the notification. Below is the sample notify example which will show message on … | |
Hello all! I am trying to take a string that has mixed uppercase and lowercase chars and then convert it to lowercase. I am doing the following line of C++ code: transform(theReadMessage.begin(),theReadMessage.end(),theReadMessage.begin(),theReadMessage.end(),::tolower); //theReadMessage is a string to convert to lowercase and my C++ xCode debugger gives me this message `Too … | |
I made an API request using AJAX request, I received JSON, I tried my best to use JavaScript to parse it, but to no avail. Instead I used jQuery which made it as painless as 2 lines of code. Now I have JSON array translated into array-ish object in JavaScript. … | |
Im having ap roblem with this.  after I press Save button that image show up it doesnt execute this code String te1 = tf1.getText(); String te2 = TA3.getText(); String te3 = TA2.getText(); String te4 = TA1.getText(); String te5 = tf2.getText(); String te6 = TL1.getText(); String sql = "UPDATE … | |
Hello, I am trying to create a picture gallery that can be sorted based on certain category. These are some examples or references on how to do it : http://isotope.metafizzy.co/sorting.html The only difference is that mine is using real picture instead of text which makes the sorting function does not … | |
I have a large piece of code : string num_to_text[] = { "", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen" }; string tens_to_text[] = { "", "", "twenty", "thirty", "forty", "fifty", "sixty", "seventy", "eighty", "ninety" }; string power_to_text[] … | |
Hello VB.net Programmers, Please help about delimited. I've been looking to the forum and other sites about this but can't find any. Here is my problem. 1. I need to put the text file to excel but this text file don't have comma and tab. This are separated only with … | |
Sorry, not sure how to even word the article title...it's been so long since I did HTML or PHP. I have a small web page that I wrote several years ago. It's all HTML/CSS with one segment of PHP that is used to call to my database to populate scores … | |
I'd like to create `/admin.php` page, which would have AJAX request, sent over to `/core/adm/index.php`, that's easy, basic AJAX request will do just that. But I don't want any direct access to `/core/adm/index.php`, I want it to be accessed only by AJAX request from `/admin.php`. Is there a way to … | |
$replacedString = str_replace(array_keys($array1), $array1, $externalVariableString); I have an entire array above that called `$championToIdConversionArray`, it has about 650 switches, it looks something like this $array1 = array( "1" => "Banana", "12" => "Monkey", "2" => "Apple", "121" => "Human" ); Now if I let script parse numbers "121", it won't … | |
All of my search attempts on here and the Internet at large have resulted in discussions on how to DISABLE parent form's while a particular child is open. But my project seems to be doing that itself just fine. I do not want it to and I am not sure … | |
#include <iostream> #include <stdlib.h> #include <cstring> #include <stack> using namespace std; #define MAX_CHARS 100 int main(int argc, char* argv[]) { char input_str[MAX_CHARS + 1], *p; stack<double> num_stack; int c; double a, b, n; cout << "Enter RPN string: "; cin.getline(input_str, MAX_CHARS); p = strtok(input_str, " "); while(p) { c = … | |
guys, I am implementing hash function in below code snippet but unfortunetly getting segmentation fault. Could you please help me to understand that what went wrong in this implementation. #include<stdio.h> #include<string.h> #include<stdlib.h> unsigned long hash(char** str ) { unsigned long hash_val = 5381; unsigned long sum=0; char* val ; int … | |
Hi folks. I'm having a problem with VS2010 where suddenly one of my projects is displaying the warning "The referenced component 'System.Data.SQLite' could not be found". All i can find about it in my search is a problem with building both x86 and x64 applications, but my project is only … | |
How to make pagination in slim framework? i have list of deals. I have to set pagination for deal listing. | |
everbody, pls i m working on android application with the side menu navigation drawer with fragment and webview but android back button key is not working. this my code Main Activity public class MainActivity extends Activity {String[] menutitles; TypedArray menuIcons; String[] pageUrl; // nav drawer title private CharSequence mDrawerTitle; private … |
The End.