199,114 Archived Topics
Remove Filter ![]() | |
How to make an app that fetch online data from different websites and update automatically updates. | |
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 { … | |
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 … | |
exception has been thrown by the target of an invocation please i need some help | |
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.) | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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.... … | |
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 … ![]() | |
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 … | |
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 } } ?> | |
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 … | |
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 | |
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 … | |
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 … | |
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:** … | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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"; … | |
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 … | |
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 … | |
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 … | |
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); … | |
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? … | |
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 | |
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 … | |
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.. | |
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 … | |
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. | |
![]() | 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 … ![]() |
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 … | |
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 … | |
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++ | |
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 … | |
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 … | |
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(); } } | |
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 … | |
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 … |
The End.