199,114 Archived Topics
Remove Filter ![]() | |
I am opening a tab-delimited file in Excel 2010; the delimited file displays correctly in Excel but when I do a save as, to save it as a native Excel 2010 format, the resulting saved file is empty. The resulting saved file generates no errors when debugging and saves with … | |
Hi, so I'm having a strange problem right now when I'm initializing an array that is a double pointer. The line that is causing me problems is lines->list = malloc(num_elements * sizeof(char *)) Lines is a struct, and list is a double pointer to a character. So char **line All … | |
Hi everyone I'm having a very annoying problem that I can't seem to find an answer to. I have a rather simple web app that basically retrieves some data from a database. I'm using Visual Studio 2010 Pro. I've developed the app and deployed it to my web server and … | |
here is the full page code sorry its bit long but i have no clue where i went wrong all i get when i run this is the page with its background and an empty text area basicly i am trying to get the info from a table in my … | |
I have created a custom control like below. public partial class TextBoxEx : TextBox { public TextBoxEx() { InitializeComponent(); Font = Utility.normalFont; } protected override void OnPaint(PaintEventArgs pe) { base.OnPaint(pe); } } //A utility class to initialize font. class Utility { internal static Font normalFont = new Font("Arial", 18); } … | |
Hello! I need some help with a stored procedure for insert. I know this might sound stupid but I'm a beginner and I know the answer is there but I just can't find it. I've searched the site but I couldn't find an answer to clear me out ...or maybe … | |
1. Create the HTML document using Notepad for Figure 1.1 (page 2) by following instructions: • Use the following DTD <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> • Just below the html opening tag, add the following details as comments using the eg. <!-- This is … | |
I have the following tables **tbl_cat** -- id(pk), category (PRODUCT CATEGORIES) **tbl_subcat** - id, catid, subcat (catid is a foregin key referencing id in **tbl_cat** ) - SUB CATEGORIES I want to prepopulate my tables with categories and sub-categories of products. it's quite straightforward to insert categories in **tbl_cat** but … | |
I am trying to search through a JSON file and display only the result matching the input form. When I click the 'Search' button, nothing happens. How can I resolve this? This is the code: <div id="search"> <form name="input" action="search()" method="get"> Search: <input id = "searchField" type="text" name="search"> <input type="button" … | |
I need a link in my project sothat if anybody click on that link ,he remain on same page and the link opened in new tab.for example i have a link <a href="http://www.google.com">google</a> on page mypage.php .when anybody click on google than he will remain on mypage.php and a new … | |
Hello everyone my name is andy... is anyone know how to make a simple data entry worksheet in excel 2007? i noticed that excel 2007 have a form control inside the developer tab i can add input text box and command button in sheet1 but i dont know what syntax … | |
hi all.... I'm hoping someone can shed some light onto a project I'm working on. I have an Mdrive 23 step motor that works with a serial terminal. The whole serial terminal is new to me and I'm confused by what it means. I have been able to make the … | |
Hi, When I try to save the form I wonder why location and description remains empty. I already fill the form with the necessary information. input_image.php <?php include('../includes/koneksi.php'); $id = isset($_POST['id']) ? $_POST['id'] : ''; $confirmation = isset($_POST['confirmation']) ? $_POST['confirmation'] : ''; $productname = isset($_POST['productname']) ? $_POST['productname'] : ''; $location … ![]() | |
Hi and thanks. I am wondering if there is a way to clear the screen before the program is loading. Lenny | |
Hello Lets say in the localStorage object I have the following: Apple = red Potato = brown Gum = blue And I want to search thru it for the word Potato and then get its value (brown). How could I do this? Im thinking: for (var i=0;i<localStorage.length();i++) { if (localStorage[i]=="Potato") … | |
.ConnectionString = "Driver=MySQL ODBC 5.2a Driver; SERVER=localhost; UID=asdsadafg; PWD=sadsadsJFKSKF9; DATABASE=SampleDB; PORT=3306; OPTION= 1 + 2 + 8 + 32 + 2048 + 16384 can anyone explain the OPTION, what this connetion string will do... i have no idea.. please explain | |
Hello Friend, i hope someone can help me to solve my problem, i already put my database on datagridview, but my boss dont want it in standard color, so now i dont now how to change it, can i change the color using datagridview or i need to use another … | |
Using Visual Basic 10, and I am trying to identify min/max statistics and display the results. My calculations are working, but the display is not (line 68 & 80). With the way the code is written now, I don't get the error but my results are displayed as "The minimum … | |
I am attempting to learn Python, to add to my collection of languages and to get at least one programming language under my belt. So far I've only done the basics, and to test what I've learnt I made an extremelly simple calculator: #PyCalc Version 1.0 Loop = 0 print("-------------------------------------") … | |
hey guys !! I am new to graphics in c++ . the question says that your code should facilitate the user to draw different shapes using a mouse . for example if i have to draw a circle then how should i get started ? | |
Chaps, sorry I have a silly question. I am not quite sure if this is right, but what is the differenct between the two below: public class myclass{ public static void main( String args[] ){ boolean variable1 = false; boolean variable2 = false; ... System.out.print(variable1 + " and " + … | |
I have a very simple class for date display: class timing { public $today; public $year; function __construct() { date_default_timezone_set('GMT'); } function now() { return $this->today = date("D j M Y"); } function year() { return $this->year = date("Y"); } } I am pulling in using: $x = new timing(); … | |
i'm trying to create a program that will run another program. but the program i want to run has a gui and i don't want the gui to be visible, i just want the program to run in the background. **But i have to do it without editing the gui … | |
it's me again i had a code that searches a record based on user option.And i had the idea of creating a single function that accepts a query statement and execute and return it to the caller but i can't come up with anything(not make the code bulky).i have 3 … | |
Hi, I need to have a form with multiple image and description fields, say 15. So if 15 are filled in then it adds then it adds the images to 2 dirs(thumb and images) and saves the image pathname and the descriptions to the 2 mysql tables. I have this … ![]() | |
Imports System.Data.OleDb Public Class Form3 Dim cmd As New OleDbCommand Dim rdr As OleDbDataReader Dim strmsg As String Dim db As New mydb1 Dim da As New OleDbDataAdapter Dim dset As New DataSet Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load db.dbconnection() strmsg = "select Class … | |
I am developing an application for a client. What i need is, send updates with changed records to clients where the email that needs to be used is extracted from the database. What is weird is that i cant send it to all email addresses... Note that i dont have … | |
I am trying to set "myimage" as the background for my GUI but having problems with self.canvas.create_image(myimage,750,450) def __init__(self): self.root=tk.Tk() # The number of times the GUI is updated self.ctr = 0 #creating the Canvas self.canvas = tk.Canvas(self.root, width=750, height=450, bg = "black") #Sets the background as an image myimage=PhotoImage(file='world.gif') … | |
hey i am working with python 3 and i am trying to set a gif file as my GUI background. The canvas.configure(bg=myimage) does not work. Any ideas? width, height = 800, 500 canvas = tkinter.Canvas(width=width, height=height, bg="black") canvas.pack(fill=None, expand=False) #Sets the backround image myimage = PhotoImage(file='world.gif') canvas.configure(bg=myimage) | |
Hi all: I'm trying to pull from a table all values of a specific row (accountids) and would like to iterate through each query result while perform a specified task with each value. Example: The following q-- $get_acctids="select accountid from company_info"; $result = mysql_query($get_acctids) or die(mysql_error()); while($row = mysql_fetch_array($result)){ $id_num= … | |
Hello Is there some kind of multiplatform library for Delphi (with its SDK) to access webcams while programming? The goal is to take still images but Ive only found ones that are compatible with Windows. | |
Hey Guys, I am working on a search that takes in a value via textfield. Once taken in it should display another Jframe with the info but the searchbox crashes the second I run it. Its some stupid mistake I have made or i have gone about it the wrong … | |
I'M wanting to write my own command/script for compiling my c++ files. I use g++ -g -Wall filename.cpp -o filename I'M trying to figure out how I can trip of the last four characters (.cpp) from a string. Any ideas? | |
It is possible send an e-mail from a remote .exe/.aspx through Outlook Web Access? | |
Hello Everyone, I need your help, can you please tell me how to create a text field for file upload with HTML ? I presently have this code in my form for file upload to the webserver; `<input name="userfile" type="file" size="50">`, this allows someone to browse file from their computer … | |
Hi, I know it's possible to add actions for elements that are not in DOM yet, like $(element).live('event',function() { //code here }); Is there any way to execute the code without the event, or give it an event like 'exists' ? Like, when object is added, the function executes automatically, … | |
#include <stdio.h> typedef struct { int stat1, stat2, stat3; } X_type; void createPlayer(char *X) { X_type X; } int main() { createPlayer("Foo"); createPlayer("Bar"); return 0; } I would like to create a structure ojject based on a string passed to a function. So the above code would create 2 X_type … | |
Hi guys,i just wanted to know how to export a record when ever a user clicks from a listview and export it to excel by adding a worksheet whenever the record is more than 3,basically excel offers 3wrk sheets. can u help?Thank You!!! | |
Hi all. I need to fix a bug in a code, it is not displaying properly (it appears in the upper-left corner and when I try to click on it, the page reloads). I cannot figure it out myself. Please help. <div class="btn_center" style="padding: 0 0 10px;"> <fieldset> <div class="edit_entry … | |
`**when we write a program in java main() will be executed first why?**` | |
why this program crashes?. what is the fix?. #include <iostream> typedef struct test { int array[10]; }test; static test *p; int main(int argc, char* argv[]) { p->array[0] = 10; std::cout << p->array[0] << std::endl; return 0; } | |
I am using sqlserver 2012. i want to convert nvarchar value from a table in to an integer. How can i do it? i am using it in a stored procedure. and nvarchar value only contains numbers. What i want to do is to multiple that nvarchar value and assign … | |
i created a testScores class which initialized an object with an array of scores and had an exception that if the score was <0 or >100 it would throw an IllegalArguementException. I got my main program to work it throws the exception for the array with the bad grade in … | |
Hi all, I'm writing a simple application in C# but I'm having an annoying ArgumentOutOfRangeException thrown by Invoke() saying "Text length must be less than 64 characters long.". Is this usual that strings passed through delegates have to be shorter than 64 characters? What's the usual neat way around it? … | |
Hello all, I am looking for a way to resize our newsletter automatically to mobile. We usually have our emails in tabled layout using slices in Photoshop (around 100+ image slices). I've read [this](http://mobile.smashingmagazine.com/2010/07/19/how-to-use-css3-media-queries-to-create-a-mobile-version-of-your-website/) and I kind of got the gist of the article, just that I can't find ones … | |
I want a search engine for my website. Just take one simple example, of dictionary websites like http://dictionary.reference.com when you search any word it searches that word and show you the meaning. just like that, my search engine will search my blog topic and also show me my blog. How … | |
/** Saadman's ISU **/ import java.io.*; import java.util.*; public class ISU { public static void main (String[]args) { //Keyboard Initialization Scanner kbin = new Scanner(System.in); //Variable Inititialization & Declaration; String list[] = new String [21]; int price1 = 30; int price2 = 20; int price3 = 25; int price4 = … | |
Group, I'm trying to write the commands to update a row within a SQL table. I've written the following: USE DATADESIGNSOLUTIONS SET IDENTITY_INSERT LocationID ON INSERT INTO LOCATIONS_SETUP(LocationID, LocationNumber, LocationName, LocationAddress1, LocationAddress2, LocationAddress3, LocationCity, LocationState, LocationZipCode, LocationZipCodeExt, PhoneNumber, FaxNumber, BillToAnswer, BillToLocation) VALUES(10, 1, 'Traditions in Tile / Buford RDC', '4325 … | |
hi all is there is a way to give an android application a root privilage so that it will be run as a system application | |
Hey everyone, I hate posting in forums asking people for help, and then searching for hours and wanting to throw my computer out the window because I can never seem to find the resources I need for programming. I feel that in vb 6 everything was well documented and now … |
The End.