199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for savedlema

Hi friends! I'm looking for an easy way to enable a user of my app to print the contet of a GridView.However, I think an easy way will be to convert it into a Crystal Report or pdf (many people say to pdf is terrible), so, I'd like to convert …

0
118
Member Avatar for navi17

Hello friends, I have a background image in body. What i want to achive is that 1)- calculate the visitor screen resolution. 2)- based on that resolution i want to resize my background image. Can anyone help? Looking for quick response. Thanks and regards navi

Member Avatar for vasile.manda
0
2K
Member Avatar for SAM2012

I have a queue class code is given below: struct ListNode { ListNode(int value); int value; ListNode* next; }; ListNode::ListNode(int value): value(value), next(nullptr) {} public class queue { public: queue(); ~queue(); bool Empty() const; int Next() const; void Enqueue(int value); void Dequeue(); void DisplayAll() const; int getP() const; private: // …

Member Avatar for SAM2012
0
288
Member Avatar for otttt

Hi Thgin i seek is to create a connection (android) to the latest postgresql 9.2 database. Theat is running on a distant server. Can i Do it? Is postgre 9.2 JDBC driver fro andoid out? & little bit distant question. If the prevous is doable. How i an write tet …

Member Avatar for peter_budo
0
170
Member Avatar for k-nat
Member Avatar for PeteB247

Hi, I am currently undertaking an assignment for university. I've having quite a bit of trouble with this seemingly simple task, which is to import the data from 2 .txt files into 2 tables within an sql database via python. Here is what I've done so far. This subject is …

Member Avatar for woooee
0
2K
Member Avatar for kRaeTwin

Hi, I've just started learning Python and for my first script I wanted to make something that would make life easier and that I would actually use, so starting small I've began working on a Torrent Search script that uses the ISOHunt API. However I've ran into a problem in …

Member Avatar for woooee
0
1K
Member Avatar for rrn8

hello, iam a newbie to python, i am trying to execute a shell command within python code and need the output of the shell command to be passed to the same python code for subsequent use. Here i need the value of the string "ListenPort" from the text file /tmp/file.txt …

Member Avatar for rrn8
0
322
Member Avatar for myk45

Hello All! i just created an executable in Windows(xp) and opened it up on Notepad++ and saw some strange comments: > Stack memory around _alloca was corrupted > A local variable was used before it was initialized > cast to a smaller data type has caused a loss of data. …

Member Avatar for myk45
0
138
Member Avatar for BrackishWater

I've been using Ruby and Rails and other ancillary technologies for a few weeks now. I've gone through many articles, blogs, tutorials, et al. However, I've rarely found any downloadable "working examples" or "real-world applications". Everything is very basic and it's proven difficult to learn beyond the basics. It could …

Member Avatar for Taywin
0
117
Member Avatar for Evil Genius

Hello, I'm working on a project who's basic idea is that people register as a manager and upload a file to their account, then they invite users to view their documents (online) or download them, or allow the users to share more files with the parent who invited them. The …

Member Avatar for LastMitch
0
207
Member Avatar for mobility42

i am trying to load up my ObjectQueue variable objQueue with a task to run some operations on, and there i have a NullPointerException error. the error happens at: `objQueue[0].insert(Task);` I have declared the ObjectQueue variable in a similar fashion on other programs and have had no problem. sort of …

Member Avatar for mobility42
0
304
Member Avatar for jlego

MVC is something being sugested to us for use in vb .net (by someone who doesnt use vb.net, uses php etc.) i did research on it, and it seems to be more of an asp .net tool and not so much a vb .net tool.. for asp it states: You …

Member Avatar for Reverend Jim
0
321
Member Avatar for Jwthais

Hi Everyone, I am new to this forum. I am in the process of learning VB.net and have been assigned a project to be written in VB.net using MVC Patterns. I am trying to understand more about MVC Patterns. Can anyone tell me about any articles or preferrably a text …

Member Avatar for Reverend Jim
0
104
Member Avatar for sapure
Member Avatar for sapure
0
249
Member Avatar for mmonclair

I have a form handling component I'm working on where I want to set up a SELECT statement that will take, in its WHERE clause, a line of text entered from a form and check it against a table with records of regular expressions. The regular expression contains a stub …

Member Avatar for pritaeas
0
266
Member Avatar for HunainHafeez

i have imagepath stored in database , now i want to show on asp.net page via datalist , so how to do it , i tried by best and binded textual data from database bt not able to bind or show image on asp.net page via datalist ? i am …

Member Avatar for HunainHafeez
0
157
Member Avatar for JWarren1996

All I'm tryin to do is set this up to show the array in the command prompt screen. everything looks good to me, > C:\Users\Work Time\Desktop>javac SearchSource.java but I keep getting this: SearchSource.java:7: error: <identifier> expected System.out.print(); ^ 1 error Heres the program: public class SearchSource { public static void …

Member Avatar for JWarren1996
0
2K
Member Avatar for godaged

Write a method setRating that reads a rating from the keyboard, insisting that the rating supplied by the user be valid. rating should be 1 to 5; public void setRating(){ System.out.println("enter rating "); int myRating = keyboard.nextInt(); } is this correct? or need to include like this public void setRating(){ …

Member Avatar for godaged
0
198
Member Avatar for nitin1

#include<stdio.h> int dp[20]; int lis(int a[],int n) { int i,j,sum=0; dp[0]=1; for(i=0;i<6;i++) { for(j=i+1;j<n;j++) { if(a[j]>=a[i]) { dp[j]=dp[j-1]+1; } else dp[j]=dp[j-1]; } } } int main() { int a[]={ 5, 3, 4, 8, 6, 7}; int i=0; lis(a,6); for(i=0;i<6;i++) printf("%d ",dp[i]); getch(); return 0; } hi , this is the …

Member Avatar for nitin1
0
282
Member Avatar for mukororokudo

Can anyone help me on this problem, i really have no idea how to do it since i'm new to these stuffs. So please be easy on me. Thanks ! Create the algorithm based on the following requirements: Input: Four grades per student are entered by the user. HINT: accept grade1, grade2, grade3, grade4 …

Member Avatar for Taywin
0
209
Member Avatar for esparkinfo

Hello, i have problem with an alert event to show the current link id. but that is not working... click the generated links... function addLinks () { for (var i=0, link; i<5; i++) { link = document.createElement("a"); link.innerHTML = "Link " + i; link.onclick = function () { alert(i); }; …

Member Avatar for Taywin
0
228
Member Avatar for hiyatran

I would like to put all my coordinates into an array and have a loop display each one but with a Google function. Here's the code, which draws the points on google map: var flightPlanCoordinates = [ new google.maps.LatLng(37.772323, -122.214897), new google.maps.LatLng(21.291982, -157.821856), new google.maps.LatLng(-18.142599, 178.431), new google.maps.LatLng(-27.46758, 153.027892) ]; …

Member Avatar for Taywin
0
107
Member Avatar for Stuugie

Hi all, I have a table called tblCPI that holds approximately 160,000 records that have to do with Canadian CPI. I have created a process that did the initial data load into it and now I need help figuring out how to update it according to date values. For instance, …

Member Avatar for Stuugie
0
202
Member Avatar for goldentuna

Forum Member - UzuNarU posted this ajax solution to pull content from an outside page and placing it in a <div> tag in this forum [(His code post)](http://goo.gl/PP4ma)... and it's working great for us... with one big exception... We sometimes have javascript code coming back using this ajax process - …

Member Avatar for Taywin
0
399
Member Avatar for double_cola

Hello, I am using a php function to merge 2 pdfs and it works great. <?php include 'PDFMerger.php'; $pdf = new PDFMerger; $pdf->addPDF('testFile5.pdf', 'all') ->addPDF('testFile57.pdf', 'all') ->merge('download', 'samplepdfs/TEST2.pdf'); ?> I get a merged pdf as soon as the page loads. I need the ability to make this merge happen when …

Member Avatar for adam.adamski.96155
0
2K
Member Avatar for davy_yg

Hello, I am trying to create a page with link like such: page.php <a href="#1">pic1</a> <a href="#2">pic2</a> the first page willbe page.php#1 and the second one will be page.php#2 In order to activate page 2 what file name should I create for page.php#2? It has to be a different page …

Member Avatar for Bachu
0
119
Member Avatar for ratanji

when new row inserting into mysql, then i want to dislplay some popup notification for few seconds in some page. so pls help me anyone ? thanx in advance :)

Member Avatar for rayidi
0
703
Member Avatar for lkallas

Hello! I am developing an application for my employer. I am not a programmer but I do it as a hobby. The story is as follows: we have a store that sells lawn tractors and riders. Every lawn tractor has a serial number, product code etc. I am trying to …

Member Avatar for Reverend Jim
0
179
Member Avatar for HunainHafeez

i have field (advDetails) in database with datatype TEXT, and i am trying to insert text from asp.net detailsview into database but it isn't working. here is my code. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="advertisementSubmission.aspx.cs" Inherits="advertisementSubmission" %> <!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 runat="server"> <title>Untitled Page</title> …

Member Avatar for JorgeM
0
247
Member Avatar for hwoarang69

i am useing java xml to make android apps. in my xml file i have a 2 edittext where user will enter 2 numbers. <EditText android:id="@+id/ET_FIRST" android:layout_width="300dp" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_marginTop="50dp" android:hint="Enter 1st number hint" android:inputType="numberDecimal" android:textColor="#ffffff" android:textSize="25dp" android:textStyle="bold" /> <EditText android:id="@+id/ET_SECOND" android:layout_width="300dp" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_marginTop="100dp" android:hint="Enter 2nd number hint" android:inputType="numberDecimal" …

Member Avatar for Wisestepp
0
275
Member Avatar for pendo826

i need to restrict the user from inputting an integer and string when inputting a char. I have a method for an integer i just need to adapt it for a char. Can anyone help me with this. char getChar() { char myChar; std::cout << "Enter a single char: "; …

Member Avatar for Lucaci Andrew
0
198
Member Avatar for honeybee2090

i want to add items from webbrowser to listview i had use these codes to add in text1.text text1.text = WebBrowser1.Document.Body.InnerText now i want to use listview i try this LV.ListItems = WebBrowser1.Document.Body.InnerText but its wrong need lil Help with this code

Member Avatar for AndreRet
0
117
Member Avatar for nishad_forums

Hi, I have googled but found nothing about this. I am trying to generate a random number from a given array. But how do i do it? **Suppose:** I have an array `int arr[]={3,89,99,4,55};` and i want to generate a random number among these numbers. thanks in advance.

Member Avatar for nishad_forums
0
314
Member Avatar for challarao

Hi all, I came to know that in Java or c++, constructor is executed only after the allocation of space.... Then what does an implicit default constructor(in c++) or default constructor in Java does....? If we explicitly define our constructor then the initialization will be done according to our needs! …

Member Avatar for JamesCherrill
0
302
Member Avatar for andutzicus

Hello, i have a problem with my. I'm a beginner in C# so take me easy. I need to use an integer wich varies from 0 to 255 (trackbar). I don't know how to match the integer with the address of respective char (actually serialPort1 uses string to send) in …

Member Avatar for andutzicus
0
106
Member Avatar for danikabhai

Hello evryone I want to access the **key** of a **particular edge**(for example edge (1,2)) in a **multigraph**, but I am unable to do so. Please help me out here. Any help will be greatly appreciated. Thanks

Member Avatar for danikabhai
0
114
Member Avatar for vishu.bhavsar

Hi, I have 1 jframe containing 1 panel. This panel shows data using JTable. I want to put button at the bottom of the panel to print that data in PDF. Can I reduce the size of the JTable? Currently it takes the size as that of the panel. Thanks

Member Avatar for mKorbel
0
1K
Member Avatar for zido85

Hi,i have an xml files that looks like this [code] <?xml version="1.0" encoding="utf-8"?> <photogallery ID="8" name="Residential"> <album ID="5" name="Leb" photogallery="Residential" date="29/10/2008" location="Lebanon" architecture="Roman" img="thumbnail_1245677486.jpg"> <picture ID="Leb" path="thumbnail_1245670921"/> </album> <album ID="6" name="Leb" photogallery="Residential" date="29/10/2008" location="Lebanon" architecture="Roman" img="thumbnail_1245677486.jpg"/> <picture ID="Leb" path="thumbnail_1245670921"/> <picture ID="Leb" path="thumbnail_1245670921"/> </album> <album ID="7" name="Leb" photogallery="Residential" date="29/10/2008" location="Lebanon" architecture="Roman"/> …

Member Avatar for redblue35
0
3K
Member Avatar for peter_budo

I'm creating a jar file of my game to make it smaller and easier to transfer. I was able to created jar file out of my classes and include there images. Question is - how do I include txt file which is used for reading and writing?

Member Avatar for peter_budo
0
8K
Member Avatar for requimrar

Hello, I want to ask if there is any way to play an mp3 file in C# without the use of P/Invoke or winmp dll and the like. I can use external libraries too. It would also be nice if I could "include" the mp3 in the C# project, as …

Member Avatar for asad_dani
0
40K
Member Avatar for Khav

Hi I am developing my own image hosting script and i want to add api image upload.However i have no idea of how to create API support at this moment.I particularly like the tinyurl api . How can i create a similar api so that users can upload images to …

Member Avatar for pritaeas
0
217
Member Avatar for bappi1987

I have three combo boxes in my program... look like this --> box1 number letter box2 1 - 2 - 3 - 4 - 5 - box3 1 - 2 - 3 - 4 - 5 - How can i do it work in this solution ? such as... in …

Member Avatar for Bachu
0
203
Member Avatar for Yoink

Hi, I'm haveing trouble turing an array of Card objects into an ArrayList. The main reason I would like to use an array list is because I can then use the get/remove/add methods associated with an array list which is much harder to do with a normal java array. Heres …

Member Avatar for JamesCherrill
0
869
Member Avatar for Dendei

public string[] LandsKodComboBox(string[] dendei1, string[] dendei2) { string[] dendei1 = new string[5]; string[] dendei2 = new string[7]; //assign the array dendei1[2]="hello"; //etc etc.... return dendei1, dendei2; } why cant i return both of them? or how do you write? thank you Dendei.

Member Avatar for Dendei
0
222
Member Avatar for c_program_user

I am trying to create a C struct with a member that points to a 2d array. The compiler generates error messages, and I am unable to find out the root cause. I am basically trying to access a struct member to obtain the value of an element in a …

Member Avatar for marathe19
0
128
Member Avatar for groma1

hi, am recieving an undefined offset error for $month and $year line after the explode function. This happens only when the form is blank and submitted. $dob="dd/mm/yyyy"; $dob= $_POST['dob']; function icPrintINPUTbirth($label,$name,$maxlth,$size,$value) { print '<label>'.$label.':<input type="text" name="'.$name.'" maxlength="'.$maxlth.'" size="'.$size.'" value="'.$value.'"/></label>'.''; } icPrintINPUTbirth("Date of Birth (dd/mm/yyyy) ","dob",10,10,$dob); $arr=explode("/","$dob"); $day=$arr[0]; $month=$arr[1]; $year=$arr[2]; if(@checkdate($month, …

Member Avatar for pritaeas
0
1K
Member Avatar for happygeek

Samsung has fixed the Unstructured Supplementary Service Data (USSD) exploit that could remotely wipe data from a Galaxy S III smartphone, but that doesn't mean the USSD threat is over: far from it in fact. According to some security researchers, 400 million Android device users are at risk from having …

Member Avatar for solutionsinfini
0
670
Member Avatar for prince.chindah

hello pls i need a kind person to teach me any programming language, any! but i prefer c++, or java. pls i need ur help!!! yes u that is reading this now. thanks

Member Avatar for MandrewP
0
181
Member Avatar for TexasJr

This is the code I have right now : cout << "==============================\n"; cout << setprecision(2) << fixed; cout << "Shelby" << setw(24) << shelby << endl; And this is the output: ============================== Shelby 25.81 But what I'm trying to do is add a "$" sign before the amount while keeping …

Member Avatar for vijayan121
0
188

The End.