199,114 Archived Topics
Remove Filter ![]() | |
I want to learn a programming(software developing) language which is easy!!! * I want to know which one is the **easiest** and where do i learn it from? I will be thankfull if you guys can help me out!!! | |
Hello I am having some trouble with something. As I read the contents of a file into an ifstream object I occassionally want to dump all its contents into a stringstream to analyse it. Example below. The problem I am having is that if I use ifstream.rdbuf() to dumpt the … | |
Having a hard time trying to wrap my head around why my grid system fails, I'm assuming my train of thought is stuck at the moment(akin to writers block). My understanding of grids is while the current cell isn't the last one in the column/row(w/e is horizontal) /*do stuff*/ then … | |
The following code, use to work, now it's not ? $("<selector>").animate({bottom:'-1200'}), -1300, 'easeOutBounce'); }); | |
Is it possible to stop the lets say for loop with a function : for(int i = 0;i<15;i++){ cin >> input; obj.add(input); } // and then have some add or some other function that checks if (x == max_size) check(){ if(counter == max_size) stop the foor loop and continue.. } | |
I cant seem to get this login form to work right I have the login form come up and i can use it to get to the form.php page that i try to access but my problem is that its not verifying any login information, it just goes on through … | |
This is driving me nuts. I'm writing a password program that reads from .txt file into an array of char arrays, and then allows the user to write a new password and then appends it to the end of the list. Everything SEEMS to be working except everytime I run … | |
i'm build a completed new code for properties: #include <iostream> #include <functional> using namespace std; template <typename T> class property { private: T PropertyValue; //i think these is ok, but something seems not std::function<T(void)> getf; std::function<void(T)> setf; public: property() { getf=NULL; setf=NULL; }; property(T value) { PropertyValue=value; }; property(std::function<void(void)> GetFunction=NULL,std::function<T(void)> … | |
am using XML RPC for webservices on localhost using simple example, but i got above error . //Client.php <html> <head> <title>XML-RPC PHP Demo</title> </head> <body> <h1>XML-RPC PHP Demo</h1> <?php include 'xmlrpc.inc'; // Make an object to represent our server. $server = new xmlrpc_client('http://localhost:81/xmlrpcDemo/sample.php'); // Send a message to the server. … | |
Hey. So I have a flowlayoutpanel populated with custom user controls. Now, after each fifth control I want to have a separation label, pushing the following controls in a new row. That works fine, except the distance between the label and the controls in the new row is way longer … | |
Is making font size bigger or smaller possible in C programs? If yes, what should I do? I am a beginner in C and have been using Turbo-C++ for programming. Thanks. | |
Hi, i am having problem with my vb project to clear all item in my form. Below is the code that i am using : Dim ctrl, obj as control For Each ctrl in Me.controls If typeof ctrl is GroupBox then For Each obj In ctrl.Controls If typeof obj is … | |
I have this code. Its not the entire code because its a Blender addon with many lines that are unrelated to sockets so I give here only the part that deals with the sockets which I kept isolated from the rest of the program. def create_thread(): global threadSocket,listening threadSocket = … | |
I am building a url shortner application in php and mysql and i am using the follwing logic to create short urls, pls tell me how is it First i fetch the last id from the database using select max(id) from urls then suppose if it returns 100 then i … | |
i put an image on form with WM_PAINT message. but the image is, only, showed after resize(for example) the form. why is that? did i forget any style\extended style? | |
Hello, I am trying to create a form like this: registration1.php <form name="registration1" action="registration2.php<?php //$_SERVER['PHP_SELF'] ?>" method="POST"> <tr> <td>First Name</td> <td><input style="width: 500px;" type="text" name="fname" size="80px"><br><br></td> </tr> <tr> <td>Last Name</td> <td><input style="width: 500px;" type="text" name="lname" size="80px"><br><br></td> </tr> <tr> <td>Email Address</td> <td><input style="width: 500px;" type="text" name="email" size="80px"><br><br></td> </tr> <tr> <td>Phone No</td> … | |
![]() | Hi Guys, I'm using Python 2.7.3, How can I ask the user to enter "from datetime" & "to datetime" then plot the graph For eg. when user from datetime: 21/7/2014 0:00 to datetime: 22/7/2014 23:57 from datetime import datetime import matplotlib.pyplot as plt import matplotlib.dates as mdates x = [] … |
I use this code for call JS function from codebehind. This is button click event. ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "myfunction", "testFunc();", true); This is the code of JS. function testFunc() { //alert("msg"); document.getElementById("Text1").value = "value change"; //Text1 is html a text box } It's not change the value of the text box. … | |
Hello i have array as Array ( [1] => Fedora [6] => Array ( [0] => Android [1] => Selenium ) [200] => Array ( [0] => hi there [1] => New ) ) how to print this in php using for loop because using normal forloop it says no … | |
I'm a little bit stuck at this moment. As of now, this is the code that I have: private void btnChangeImage_Click(object sender, EventArgs e) { using (OpenFileDialog openFileDialogForImgUser = new OpenFileDialog()) { string location = null; string fileName = null; openFileDialogForImgUser.Filter = "Image Files (*.jpg, *.png, *.gif, *.bmp)|*.jpg; *.png; *.gif; … | |
I want to convert this piece of code using this memory layout transformation : https://software.intel.com/en-us/articles/memory-layout-transformations (Array of Structures to Structure of Arrays) Here are the codes before and after applying the transformation and I want to know whether I'm doing it right or not? Before: typedef struct { double x; … | |
i want that when i click on detail button a small widnow open and data show from database with out refraesing the page in the same page i just want to show data i have already shown data on page but that is not in good way i just want … | |
I'm tring to move html element on run time. (1) Call function from code behind. (Button1_Click1 event) ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "myfunction", "testFunc(100,200);", true); (2) It redirect to JS function. (This function is used to change the location of html attribute) function testFunc(x,y) { document.getElementById('draggable').style.top = x; document.getElementById('draggable').style.left = y; } in … | |
This is what I was trying to do: The user enters an address, which is autocompleted by Google. Then when they press the submit button, an alert box pops up, telling them whether the address entered is within 5 miles of (42.352487, -71.079290). Then a confirm box pops up asking … | |
Hello guys I really need your help to save my job. i started to create and attendance system but I stucked up with time in button. I have created a time out button and working fine and great but the problem is that I am unsuccessfull for creating a time … | |
Hello programmers! I am working on a custom tree class [with the code example being copied from Dietl's C++ How to Program, 9th edition]. It is in my fashion to copy all the code examples in the book when reading it (for muscle memory), but the authors created a custom … | |
Im working on a code that loops through a folder break up the file names in it into specific parts and then reads off sertain parts of the broken name and writes it to a csv sile. The files ser formated as follows test_PAQT_B2H.csv, test_PAQT_B4.csv, and test_PINI_B1H.csv. when it jsut … | |
hi is there someone that can give me some hints on how to create excel file using data from my ms access database..because i haven't seen one in the net maybe someone might help me here..i would appreciate some hints or tutorials..:D thanks a lot... | |
how to show the data from 2 tables on selectedindexedchanged event | |
I am developing a project on PHP and MySQL. My problem is "I am unable to show a uniqueID in a textbox like 'GHY00001, GHY00002, etc' auto-incremented everytime i load the page and insert it into the database". I already tried some php tutorials but didn't find usuable to my … | |
Hi I have a problem with inserting into the database. This is my code : $insert = $db_con->query("INSERT INTO users (username,password,email,com-name,com-logo,com-phone,com-mobile) VALUES('".$username."','".$enc_pass."','".$email."','".$com_name."','".$profile_path."','".$com_phone."','".$com_mobile."')"); | |
Hi ppl, I am new to this grp and looking some friends. anyways, I am facing problems while usign UserControls in C#. the error says that the references might be missing etc. But, Ive used the same previously and it worked without any problems. I'll be thankful to anyone offering … | |
Anybody Plz tell me how I can update a Gridview Record.Kidly tell what is code in C# I am waiting for reponce for my this thred | |
Hi all, I need your help, I'm working on my python script to get the list of channels and programs when I pulled the data from sqlite3 database. I'm using the variable of channel_per_page to get the range from 0 to 7 for channels that I want to pull the … | |
Hi guys i need your help, i am trying to read an xmlfile which is on the listbox, after reading it i want to bind the data to GridView, i can read directly from the location where i have saved the XMLfiles but now i want to select it from … | |
database : mysql tool: phpmyadmin today my supervisor set up the web on the companies server. when its all settled, we try out the login page(`index.php`) but we get fatal error and the line its pointing at refers to the `connection.php` page which connects to the database. > Fatal error: … | |
Hello, Please I want to be a good Programmer atleast be able to do something on my own, I will like to know where to start learning from, Which lang. to learn first, what step should I take? Also I will be glad if I can know someone that can … | |
Hi i am facing error in below code not able to add rows could anyone help please <html> <head> <title>Row Added</title> </head> <script> function sample(){ var table='<table width="100" id="+sample+">'; table=table.concat("<tr>"); table=table.concat("<td>Add rows</td>"); table=table.concat("<td><input type="button" name="Add" value="Add"</td>"); table=table.concat("<td><input type="button" name="Delete" value="Delete"</td>"); table=table.concat("</tr>"); table=table.concat("</table>"); document.getElementById("sample").innerHTML+=table; } </script> <body> <table> <tr> <td>Enter the … | |
Hi all, I have a large txt file (3 Million lines). Ouside excel capacity. Thanks for your support... input file format: =================================================== .. ... ... 2014 Jul 23 08:15:16.675 ... .. Name = x Lastname = y . . Age = 5 height = 1 .. .. ... ... 2014 … | |
I am getting a NPE on `a`. I have no idea why the array would be null, but heres the relevent code for it. public void setAbility(Ability[] abilities) { for(Ability a : abilities) { sb.append(a.getName()); } pAbility.setText(sb.toString()); } Method called here: Pokemon sPokemon = Pokemon.getPokemon(sender.getValue()); ... pController.setAbility(sPokemon.getAbility()); Passed getAbility(): public … | |
hello sir i am beginner of this course. now i am doing a project where i want to print a page/part of the page from web browser without print window. may i do this? if yes then how i could do so? please help me to find out the solution … | |
In my Windows application, I want to create an automation software using C#.NET which works in two steps: 1. Select particular data and copy it from a page of a website. I have done it using web browser control for SelectAll. The data is not HTML data but databound data. … | |
It's a code to calculate age from today's current date. I know I'll have to use #include <ctime> But I have no idea what I would use for the rest. Here's my code: package practicing; import java.util.Calendar; import java.util.Date; import java.util.Scanner; public class FindRelativeAge { private static Calendar calendar = … | |
I have acode review checklist which I would like to automate, Could anyone suggest me how i could get started with this. I would like to create a tool which takes in java extensions and reviews based on custom review check. Would this be time consuming?? any insights on how … | |
Hi Everyone. I Really Need Urgent Help To Create A Paint Application In Java Using Applets Or The Swing. Its Really Urgent. I Have Been Trying To Code This For Like Week Now And I Am Just Left With Five Days To Submit It. Thsi Application Should Be Able To … | |
If cboSearchType.Text = "Accredited Month" Then If rs.State = 1 Then rs.Close SQL = "SELECT * FROM BusinessInfo WHERE " & " AccreditationDate " & " like '" & cboMonths.Text & "%'" rs.Open SQL, con While rs.EOF = False With grdSearchResults .Redraw = False .Rows = .Rows +1 .Row = … | |
'====================================================================================================== '====================================================================================================== Option Explicit 'For Log ID Public RUNNINGID As String Private Sub butBrand_Click() On Error GoTo ErrorHandler Dim colData As New Collection frmSearch.SQL_Statement = "SELECT ROW_NUMBER () OVER (ORDER BY brand_type_code) AS [NO.] , " & _ "[brand_type_code] AS [Brand Type] , " & _ "[brand_type_name] AS [Brand Name] … | |
![]() | hi guys below is my attempted code, how can i plot date and time(x-axis) versus a value (y-axis) import matplotlib.pyplot as plt from datetime import time, datetime x = [] y = [] t = [] fig = plt.figure() rect = fig.patch rect.set_facecolor('#31312e') readFile = open('data.txt', 'r') sepFile = readFile.read().split('\n') … ![]() |
I need help with my constructor that should call for all the user inputs, for example their first name, and the information gets checked to make sure it's valid. For example the name is all letters, and the identifier is actually 9 digits, etc. I can set the default constructor, … | |
i am trying to import data from excel to datagrid view. why instead of actuel data "System.__ComObject" is displayed in datagrid cell. Dim xl As New excel.Application Dim xlsheet As excel.Worksheet Dim xlwbook As excel.Workbook xlwbook = xl.Workbooks.Open("d:\PayableInput\InvoiceUpload.xlsx") xlsheet = xlwbook.Sheets.Item(1) Dim Rowst As Integer = 0 Dim RN As … |
The End.