199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for umair jameel

How to make an app that fetch online data from different websites and update automatically updates.

Member Avatar for peter_budo
0
88
Member Avatar for COKEDUDE

I am trying to cast an int value in a struct to a double. I am guessing I am screwing up the parenthesis somehow. I wasn't able to find anything useful in the forum or in google. struct START { int x; int y; double heuristic; }; struct SHAPES { …

Member Avatar for COKEDUDE
0
166
Member Avatar for moaz.amin.37

Hello to all first look this code class Square1 implements Runnable{ int a; public void run(){ a=10; } } class Square2 implements Runnable{ Square1 ob=new Square1(); public void run(){ System.out.println("Square Of this number is = "+(ob.a*ob.a)); } } class SquareThread{ public static void main(String args[]){ Thread t1=new Thread(new Square1()); Thread …

Member Avatar for moaz.amin.37
0
1K
Member Avatar for Hassan_9

exception has been thrown by the target of an invocation please i need some help

Member Avatar for Hassan_9
0
401
Member Avatar for Jake.20

Greetings pros :D. I am having problem with creating a directory on my linux server. When i download a file it display that error. (I migrated my php project from windows to linux using WinSCP.)

Member Avatar for Jake.20
0
1K
Member Avatar for ernesto22

i'm having a problem with parsing variables from previous page and saving to database on the next page. i have two pages . first page is where i view my data. i do a select sum, and it works. now on my second page i want to take the total …

Member Avatar for milil
0
117
Member Avatar for harry.suren

Hi Guys, I'm a newbie to ROR.and I'm developing a sample app for practising. My app is for Quiz game qith time constrains. But, I don't know how to set a timer control for questions. I'm seeking for a solution for that to add timer control. I hope you will …

0
268
Member Avatar for koneill

All, I'm trying to pass a hidden value into my php mail script - the img1 isn't displaying - in the e-mail it's coming across with just http://www.mysite.com/custom_clock/sills/ and not the img1 value The html form is here: <form name="customemail" action="mail.php" onsubmit="return SubMail_Validator(this)" method="POST"> <b>E-mail</b><br/> <input type="text" name="from" size="25"><br> <input …

Member Avatar for koneill
0
347
Member Avatar for HuePig

Hi, to my understanding, `isset()` checks is the variable exist and have a value. But when I try the code below, _randNum() keeps on getting new values when it should already have a value because it already exist and have a value. <?php session_start(); if(!isset($_randNum)){ //Check if the variable dont …

Member Avatar for hericles
0
479
Member Avatar for psmb

I need a C++ program to implement a heap based priority queue which accepts job ID, priority number and submitter name as inputs. the program should heap sort whenever a new job ID or priority or submitter name is entered. The jobs that have maximum priority should be extracted (along …

Member Avatar for mike_2000_17
0
194
Member Avatar for Iana264

Hello! Can you help me please. I am a student and i have some problems with one task. I had to write a program for an embedded system which will have 8 buttons and will show on 7-segment display the number of the button pressed last. I wrote the program …

Member Avatar for Edward_3
0
159
Member Avatar for StephenopolousINC

Hello I am trying to learn the differences from Java and JavaScript so I am trying to take a working simple program in Java and make it work in JavaScript. I keep getting undefined. Here is the JavaScript I am trying: <script type="text/javascript"> function _(x) { return document.getElementById(x); } function …

Member Avatar for StephenopolousINC
0
343
Member Avatar for Benny_1

I've been working on a project I found on the Java Projects for learners thread. I've created a pokedex simulator that keeps track of pokemon. So far you can view a list of recorded pokemon, get more detailed info, add a pokemon, and it's all saved to files. However it's …

Member Avatar for Benny_1
0
306
Member Avatar for Shofahi

Hello! I want to make an array[4][4] board and print two random characters("*" and "-" ) on it. Can you please help me? Thanks in advance.

Member Avatar for Shofahi
0
80
Member Avatar for priya.ch

Hi All, I have a application , which onclick of submit takes content in textarea and do some back end stuff and finally opens a .html in a iframe. My problem is, the .html in iframe should change on each submit button in coresponding to the content in the textarea.... …

Member Avatar for LesF
0
2K
Member Avatar for manchurianCEO

Hi all, I'm quite rusty at this but volunteered to build a site. Although this will be a momentary quick fix to have a site running, I'd like to have the menu fetched from a different html file which I already created but somehow it doesn't show. The menu lays …

Member Avatar for diafol
0
272
Member Avatar for lewashby

In the following program, where is pt1 getting it's values (1, 0)? I get pt3's values (5, 10) because I can see them in the code. #include <iostream> using namespace std; class Point { private: int x, y; public: Point() {} Point(int new_x, int new_y) { set(new_x, new_y); } void …

Member Avatar for AndrisP
0
127
Member Avatar for ignnniter

Please help me. thanks <?php if ( wt_get_option( 'wt_show_post_img' ) == 1 ){ if (has_post_thumbnail() ) { ?> <div class="thumbnail single-post-thumbnail"><?php the_post_thumbnail( 'wt840_420' ); ?></div><?php } } ?>

Member Avatar for gabrielcastillo
0
141
Member Avatar for ceelos1974

I need help combining the file name with the filepath my code: WIN32_FIND_DATA FindData; HANDLE hFind; hFind = FindFirstFile(L"../art/*.dds", &FindData ); if( hFind == INVALID_HANDLE_VALUE ) { PrintCharS("Error searching directory"); return; } do { char ch[260]; char DefChar = ' '; WideCharToMultiByte(CP_ACP, 0, FindData.cFileName, -1, ch, 260, &DefChar, NULL); string …

Member Avatar for vijayan121
0
326
Member Avatar for paulablanca

Can someone tell me / post some codes here on how could I validate my datagridview? I mean, a certain column on my datagridview should accept integers only, otherwise, it will return a messagebox. Kindly include on which event it should be posted. Thank you very much. God Bless. :D

Member Avatar for valeriduss
0
6K
Member Avatar for somjit{}

The below post is just something i thought of contributing here for young( or old ) members starting out in C. In (effectively) 3 lines of code , i hope to give an intro about pointer arithmetic and how endian-ness in windows affects the output. #include<stdio.h> int main(void){ int a …

Member Avatar for somjit{}
0
429
Member Avatar for kidkardel

hi its me again, i have this scenario where i need to search my datagridview using the textbox i have, i have tried copying other sites but what it gives me is errors, new columns and more errors, my codes goes like this for loading my datas from the database …

Member Avatar for ddanbe
0
366
Member Avatar for waqar60655

I read a bit around here, but as I'm a newbie I couldn't configure what to change the description to on my own, can someone help me? I get this error: ` Warning: Illegal string offset 'members_seo_name' in F:\Server\xampp\htdocs\ipbwaqar\admin\sources\classes\output\publicOutput.php(3526) : eval()'d code on line 12` **publicOutput.php looks something like this:** …

Member Avatar for XSSalpa
0
2K
Member Avatar for dannie.duxug.5
Member Avatar for nicole.c.quintana.3
0
83
Member Avatar for gajen007

Gentlemen, I have a problem in entering a "DATE" in to MySQL table via a Java SWING interface. I used 'jdatepicker' to select a date & I use XAMPP server for MySQL database. Earlier I converted the selected date in to String values & feed as VARCHAR in mysql table. …

0
107
Member Avatar for RonKevinT.Manuela

So basically, I want to require the user to select from the checkbox Here is addpost.php <form action='' method='post'> <p><label>Title</label><br /> <input class= "form-control" type='text' name='postTitle' value='<?php if(isset($error)){ echo $_POST['postTitle'];}?>'></p> <p><label>Description</label><br /> <textarea name='postDesc' cols='60' rows='10'><?php if(isset($error)){ echo $_POST['postDesc'];}?></textarea></p> <p><label>Content</label><br /> <textarea name='postCont' cols='60' rows='10'><?php if(isset($error)){ echo $_POST['postCont'];}?></textarea></p> <!--For textarea's …

0
104
Member Avatar for chrishea

The scenario is like this: * I am using a CMS that uses FCKEditor (that's what came with it not CKEditor). * I use this CMS a lot, I'm pretty familiar with it and I have never had a problem on my machine or anyone else's using the Admin facility …

Member Avatar for chrishea
0
130
Member Avatar for gemni7

Hi all, For my project I have to send data from dos computer to a IP address ( i.e 216.152.xx.xxx port 57. I have no idea how to accomplish this task. PC is connected to internet. I can do this using microsoft windows. But i dont know how to do …

Member Avatar for dhanupatil
0
669
Member Avatar for necrovore

Hi all, i am working on pulling out text and its properties from a pdf file. iTextSharp library is used for this purpose. Initially i took the fontsize property directly from the tf operator. but then i stumbled on a scenario where tf said font size was 1. So i …

Member Avatar for necrovore
0
1K
Member Avatar for themaj

A question for VB.NET - Access DB folks here, although some might consider a strictly DB question. Is there an order of operation when a SQL query 'does its' thing' relating to the 'WHERE" clause with multiple parameters? In other words, could you rearrange the elements [filters] of the WHERE …

Member Avatar for pritaeas
0
239
Member Avatar for surya55

Hi all, consider below code: public class Bertha { static String s = ""; public static void main(String[] args) { int x=4; Boolean y = true; short[] sa = {1,2,3}; doStuff(x,y); doStuff(x); doStuff(sa,sa); System.out.println(s); } static void doStuff(Object o){ s += "1"; } static void doStuff(Object... o){ s += "2"; …

Member Avatar for JamesCherrill
0
283
Member Avatar for FazeLessWhite

Hey guys, I'm trying to make an app where if I press a button an audio plays *I use android studio* The code compiles and all but, if I press the play button then the audio does not play..What am I doing wrong? Thanks! MyActivity.java package com.example.hayzam.bb; import android.app.Activity; import …

Member Avatar for FazeLessWhite
0
224
Member Avatar for Sophia_1

Hi everyone...have this table as header and i want to display it in all 2 tabs ie Quarter tabs.Currently, the header detail is only displayed in Quater 1 tab...and eventhough i've use include (header.php) in Quarter 2 tab, the header detail is not displayed.Please advise how to display the same …

0
114
Member Avatar for kidkardel

Hello again, I am creating a Datagridview with 3 columns, product_id, product_name and quantity. but in my database i have 4 columns namely prod_id, prod_name, quantity and item_status. What i want to do is , if my item_status is texted "PHASE OUT" or "INACTIVE", i will skip that row while …

Member Avatar for Santanu.Das
0
273
Member Avatar for mridul.ahuja

Came across a code that's working but cannot figure out why #include<stdio.h> #include<stdarg.h> void fun(char *msg, ...); int main() { fun("ABCDEFG", 1, 4, 7, 11, 0); return 0; } void fun(char *msg, ...) { va_list ptr; int num; va_start(ptr, msg); num = va_arg(ptr, int); num = va_arg(ptr, int); printf("%d", num); …

Member Avatar for cgeier
0
129
Member Avatar for shammi.khan.73

So I spent an hour on GoDaddy and Google and didn't get a definitive answer. Does GoDaddy's shared Windows Hosting plan support .NET 4.5.1? I found a page in their support section that mentions that the shared hosting plan supports .NET 4.5. But is that enough to run my website? …

Member Avatar for Mark_28
0
215
Member Avatar for ankit1122

hello, how could i create a timestamp or time_of_posting column in my site such that there is no sync problem bw server time and visitor's time... also that column will be used for finding if diff bw time_of_posting and current time is >11months and less than 12 months

Member Avatar for ankit1122
0
78
Member Avatar for chubbyy.putto

Hello, Everything in code when well there is a small problem on display output: when I run the file this is the output i got 69 6E 74 20 6D 61 69 6E 20 28 29 20 7B 7D 0A my teacher have 0000 : 69 6E 74 20 6D …

Member Avatar for chubbyy.putto
0
337
Member Avatar for Keyra Lee

hi guys..can guys tell me how to make a display for checkbox after checked. the checkbox is checked and i want to display that checkbox? i'm not good in any statement..:'( hopefully u guys can help me..sory for bad english..

Member Avatar for Keyra Lee
0
224
Member Avatar for jjones0150

I need a form that accepts scores from the user, displays the total, count, and average of the scores, and displays a dialog box that lists the scores. Operation The user enters a score. If the user clicks the Add button or presses the Enter key the application calculates and …

Member Avatar for jjones0150
0
810
Member Avatar for alaad

Good evening Please, can I waste just little of your time ? I have to produce an Web page in ASP.net and this is my first experience at C# and Web application.. kindly I would like an idea for this project.

Member Avatar for alaad
0
133
Member Avatar for lithium112

Would anybody know of a way to take a text file and break it up on specific lines? For example, let's say I have a text file such as "This is my text file". I want to split it up like "This is" "my text" "file". Therefore I want to …

Member Avatar for lithium112
0
174
Member Avatar for learner001

I have a form that has two parameters amenities and attributes. The amenities parameter has a dropdown menu that whose value gets populated from a separate table. The second parameter is attribute whose value will be entered by the user and will get saved in a database. View of database …

Member Avatar for pritaeas
0
256
Member Avatar for mridul.ahuja

I made a program in C# and added it to startup(by modifying registry) . When I run msconfig , the program shows under Startup tab , but it doesn't start when I log on. It requires Admin previlages and uses some unmanaged DLL's Can someone temme what might be the …

Member Avatar for mridul.ahuja
0
446
Member Avatar for rk1993

For instance, ABBA is a palindrome, but ABCBB is not. You are given a string s. Return the length of the longest substring of s that is a palindrome..program in c++

Member Avatar for gtcorwin
0
186
Member Avatar for RikTelner

Hey, is there a magical way to shorten variables in Visual C# as in PHP? For example in place of `$user_nickname`, `$user_email`, `$user_rank`. They could use `$user["nickname"]`, `$user["email"];`, `$user["rank"]`. Now if you ask me, I think the second row looks much more organized. Is such thing possible in C#? I …

Member Avatar for ddanbe
0
231
Member Avatar for ShamirSuhaimi

Create a class named Person that includes fields for last name, first name, and zip code. Include a default constructor that initialize last name, first name and zip code to ‘X’ if no arguments are supplied. Also include a display method, displayPerson() to display Person details. Create a test class …

Member Avatar for Slavi
0
143
Member Avatar for lilita

setDirty(); SaveFileDialog saveFileDialog1 = new SaveFileDialog(); saveFileDialog1.Title = ""; saveFileDialog1.OverwritePrompt = true; var dialogResult = saveFileDialog1.ShowDialog(); if (dialogResult == DialogResult.OK) { StringBuilder sb = new StringBuilder(); sb.AppendFormat("CheckLoggin = {0}", chkLoggin.Checked).AppendLine(); sb.AppendFormat("LogFilePath = {0}", txtFilePath.Text).AppendLine(); sb.AppendFormat("NumberOfThreads = {0}", txtNumOfThreads.Text).AppendLine(); File.WriteAllText(saveFileDialog1.FileName, sb.ToString()); saveFileDialog1.Close(); } }

Member Avatar for ChrisHunter
0
163
Member Avatar for andruluchko

Hello. I have a following verse: >A swarm of bees in May >Is worth a load hey; >A swarm of bees in June >Is worth a silver spoon; >A swarm of bees in July >Is hot a worth a fly. And I have to modify this text so that all …

Member Avatar for L7Sqr
0
182
Member Avatar for Daniel_30

I am a student in Computer Science, and am writing a small guide for my fellow students. It will contain a large list of the most commonly used and studied functions in C++ (e.g. Bubble Sort, linear search, file writing, etc.) and the code used to perform each function. I …

Member Avatar for Daniel_30
0
111

The End.