199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for programmer12

Hi, I am trying to write a code in php where I retrieve the DateTime from the database and find what time is it 15 minutes before the DateTime. Such as //Receiving the Start Time from the database. $time1 = "2012-03-17 15:00:00"; //Reformating time to get the date 1hr or …

Member Avatar for programmer12
0
170
Member Avatar for nicewave

Could someone tell me why when I start a project, it added a new Form1, I can rename this to something else but I can't seem to rename the Form1.Designer.cs? How do I change the default form name? Thanks in advance.

Member Avatar for Mitja Bonca
0
86
Member Avatar for Michael27

Can someone show me algorithm so i can sort array like this? [Picture](http://i.imgur.com/HhQ4I.jpg)

Member Avatar for Mitja Bonca
0
355
Member Avatar for theNORTH

Hi, I want to replace `$data['introhtml']` with some actual html, any ideas? I need to update a friends CMS database driven Website the content panel does not allow Div which I need to put a Calendar in so the only option is to change the PHP. The PHP code is …

Member Avatar for theNORTH
0
166
Member Avatar for Despairy

Hi, Im trying to parse a file which contains some random text. How can i match a case which seperates "garbage" (anything but digit/letter) char?? for e,g: 25.5.5 will produce . (the 2nd dot, because 25.5 is a number (rational)) another e.g: ----3.82 will produce --- (because -3.82 is a …

Member Avatar for nbaztec
0
155
Member Avatar for klemme

I have this function, which sends an email to the user and confirms an order. I cant figure out why I cant get to display the image IN the email, at the very top. I have tried with: `"Content-Disposition: attachment; filename=\"mail-top-img.gif\""` And `"Content-Disposition: inline; filename=\"mail-top-img.gif\""` Both sends the mail as …

Member Avatar for klemme
0
196
Member Avatar for jarograv

I am working on a java application that will display an image and play a sound. It finds the current month and displays the appropriate information. Below is the code that I have been testing (that's why santa is in april) it will not work when trying to play wav …

0
254
Member Avatar for bilibala

Hello everyone, I am thinking to create a vertical menu, which may contain sigle level or even multiple levels of submenus. While mouse is hover one main menu item (parent menu), the related submenu items will appear one by one on the right hand side. While click on one of …

Member Avatar for elbeato
0
151
Member Avatar for mallikaalokam

I have Oracle 8i installed in my PC And i Installed NetBeans7.0rc2 with glassfish server It shows an error that the glassfish server cannot be started SEVERE: Shutting down v3 due to startup exception : No free port within range: 8080=com.sun.enterprise.v3.services.impl.monitor.MonitorableSelectorHandler@187955b i want to chnage the default port number 8080 …

Member Avatar for Sadun89
0
239
Member Avatar for Andy90

Hi, I m using SetCursorPos() in my project! [DllImport("user32.dll")] static extern bool SetCursorPos(int X, int Y); I want to use double value in the function? I m getting error PinvokeStackImbalance was detected. How to solve this?

Member Avatar for thines01
0
115
Member Avatar for 4evrmrepylrning

So I have been told by various people on numerous occasions that you cannot parse XML by using regular expressions or any means other than a parser. So, here at work, I have LXML and that is what I have to use. At the moment I am trying to remove …

Member Avatar for 4evrmrepylrning
0
285
Member Avatar for rmbrown09

So I have completed my program thus far to take an array the user desingnates and breaks with any letter. After outputting what the array holds it sorts and re prints. I want to also include the time it takes this to happen. I am trying to use the gettimeofday …

Member Avatar for L7Sqr
0
1K
Member Avatar for rick.eavans

C# Query : When I login to my software I select the desired username using combobox. After I login, I want to see the username text in the main window on the toolstrip. I tried get and set method but something is going wrong. Can you please help me out? …

Member Avatar for Mitja Bonca
0
844
Member Avatar for nostalgia

Hi, I'm having trouble writing a prolog program which does the following: Say I'm given a map of 3 different points; Point A, point B and point C. Point A is connected to point B and point B is connected to point C, if you want to travel from point …

Member Avatar for nostalgia
0
122
Member Avatar for Sundown G

Hi people! I just want to get the sum, max number, average and multiplication of array with n numbers! I already make the sum, but I tried different operators, ways for others and I can't get the another task without errors! Any help! Im really noobie on this Look! #!/bin/bash …

Member Avatar for JeoSaurus
0
123
Member Avatar for sanket044

i want to add different javascript to different divs. Is it posible to set .js page's scope to specific <div> ?

Member Avatar for pzuurveen
0
177
Member Avatar for jojodeco

In straight-11 ping-pong, the first player to reach 11 points wins; the player need not be ahead by 2. Suppose that when Ada plays Blaise, Ada has a .56 probability of winning any given point. We want to write a program that simulates a game between Ada and Blaise, with …

Member Avatar for Eagletalon
0
570
Member Avatar for dineshswamy

Session is not working everytime,but when i restart my machine everthing works fine .Why this happens?

Member Avatar for CoursesWeb
0
101
Member Avatar for sugir1987
Member Avatar for NormR1
0
130
Member Avatar for sugir1987

How can i find the Euclidean distance of 2D matrix in java.is it possible like Math.pow(x,2)

Member Avatar for NormR1
0
167
Member Avatar for outout1234

I am using mysql server 2012 and visual studio 2012 C#, i created a database and i can read the data from my database. The problem is that i cannot insert data into my database. Although the return value of the execution is 1, i dont see any changes in …

Member Avatar for Mitja Bonca
0
231
Member Avatar for giri.pankaj

Is as way test out swing components without having to rely on Thread.sleep() to make sure that the components have realized completely. This problem with this approach is that it becomes difficult to guess how long it would take for components to realize under different environments of execution like vnc …

Member Avatar for peter_budo
0
286
Member Avatar for markjnj

Hey all, I'm working on a login screen and have an MSAccess database that stores the userName and password. I am currently using JtextField and String to access the username and password located in the MSAccess database, but now I want to hide the password when it is being typed …

Member Avatar for NewJavaLearner
0
584
Member Avatar for raviaaaa

Hi All can you pleased help me how to resolve applet load fail in IT link applet loading fine, but when i used same code and made a local setup while runnning applet is not loading please see the stack trace and com.scand.jtree classes are exists under applet folder under …

Member Avatar for NormR1
0
316
Member Avatar for cr7489

i have a db with 3 tables review, pos and neg words for a film review im trying to detect if the word 'not' appears before a positive or negative word then add 1 to the pos count if it appears before a neg word ie this was not bad, …

Member Avatar for cr7489
0
297
Member Avatar for Eagletalon

Hi There, I hope somebody can help me, I work with Visual C++ 2008 with QT libraries I am trying to include a Interop.Encore.dll file into my program to access our ERP system business objects and post new data to the ERP We have a Visual Basic program geared to …

Member Avatar for Eagletalon
0
3K
Member Avatar for erik216

<form method="POST"> first name <input type="text" name="ab" value="aadi"> <input type="text" name="bb" value="aadi"> <br> <hr> <input type="checkbox" name="same" onclick="this.form.zb.value=(this.checked)? this.form.ab.value: ''; this.form.zs.value=(this.checked)? this.form.as.value: ''; this.form.se.value=(this.checked)? this.form.sel.value: '';"> Same as first name<br> second name <input type="text" name="zb" value=""> <input type="text" name="yb" value=""> <br> </form> This coding can only when click the checkbox. …

Member Avatar for almostbob
0
113
Member Avatar for mikekandf

I am very new at web site creation. I have searched on google.com trying to figure out how to create url variables.... I have not been able to figure this out.... If its infront of my face... Please still help! lol Thanks in advance!!!!

Member Avatar for mikekandf
0
96
Member Avatar for chieny

<?php require ("includes/DBConnection.php"); ?> <?php $id =$_REQUEST['a_id']; // sending query //mysql_query("INSERT INTO audittrail(article.a_title,article.a_author,article.a_description,article.a_date, article.dept_id) //WHERE article.a_id='$id'") mysql_query("INSERT INTO audittrail SELECT * FROM article WHERE a_id='$id'") or die(mysql_error()); mysql_query("DELETE FROM article WHERE a_id = '$id'") header("Location: articlelist-a.php"); ?> Parse error: syntax error, unexpected T_STRING in C:\wamp_chieny\www\MULTI\ADMIN_MULTI\article-del.php on line 17 i try …

Member Avatar for chieny
0
126
Member Avatar for shawnv100

I am trying to use Java to detect signals from the serial port sent from an IR circuit. When the IR circuit detects an obstacle, it gives an output of 0 volts and otherwise the output is 5 volts. Can I read these voltage differences directly on the PC using …

Member Avatar for shawnv100
0
267
Member Avatar for Newbienoob

Hello.Got a problem with a binary tree again,i have made a visual printing but the problem is that it prints only completed tree,so if it is not full it crashes,is there a posibillity to add some extra print to value NULL,so after one right or left leave won't have value(NULL) …

Member Avatar for Newbienoob
0
180
Member Avatar for FraidaL

I wrote this code to sort 3 integers, but I can't figure out how to add the 4th integer. #include <iostream> using namespace std; int main () { cout << "Enter 4 integers: "; int a, b, c, d; cin >> a >> b >> c >> d; if (a<b) …

Member Avatar for TrustyTony
0
3K
Member Avatar for cryonize

I was asked to create a program that enters numbers and displays the before sorting order, and the sorted order displaying the previous node address and the next node address. I was told not to swap the data inside the nodes, but move the nodes themselves. I have a problem …

Member Avatar for TrustyTony
0
9K
Member Avatar for lotto91

Hi, Im been working with a project now, and have got stuck. Cant see what im doing wrong. Im supposed to make a Digital Thermometer. Right now im stuck on passing values from one class to another, been trying to use get methods.It seems like the value I get is …

Member Avatar for lotto91
0
82
Member Avatar for varunme

How can we convert a string to int without a standard lib the string termination can be '/r'

Member Avatar for Fiverivers
0
238
Member Avatar for newbie1234

I have div.js which is for popup in this i define 2 function getPageSize(); and getPageScroll(); and other file a.php and b.php in a.php as below <script language=Javascript src="/div.js"></script> <script language=Javascript> function divOn (aId_task) { var arrayPageSize = getPageSize(); var arrayPageScroll = getPageScroll(); //bgrnd4 = '<div style="position:absolute; top:0; left:0; width:100%; …

Member Avatar for newbie1234
0
12K
Member Avatar for DarkMonarch

doing this stuff in js and the css doesn't affect the tags in the js writeln js: `document.writeln("<table><tr><td>Nom</td><td>Pr&eacute;nom</td><td>Code Permanent</td><td>Login</td></tr></table>");` css: `table, td, tr{border:2px, double;}` i know this is simple, what am i missing ? oh yeah, it's an external js file, if that changes anything. thx Dark

Member Avatar for DarkMonarch
0
93
Member Avatar for DarkMonarch

what am i doing wrong ? i want to fetch what langugage of new users. i've tested and tried: navigator.userLanguage navigator.browserLanguage navigator.systemLanguage and so far it returns: undefined thx Dark

Member Avatar for DarkMonarch
0
115
Member Avatar for jamesr12

I know this seems to be a very basic questions but still want to clear my basic knowledge so i am asking this question What is String Pool in java? what is difference between String var="DANIWEB; and String var =new String("DANIWEB");

Member Avatar for jamesr12
0
146
Member Avatar for sugir1987
Member Avatar for Mushy-pea

Hi. I've been trying to get this simple function in Haskell to let me call it for many hours and come to a problem I can't find an answer for. The function is of type Float -> Float -> [Int] so I need to pass it two Float values. I've …

Member Avatar for TrustyTony
0
120
Member Avatar for bravo659

I been working on this login page for months, and to no avail can have the program working. I am using the MSAccess Database and using VB.Net. This is a windows application creating a login page. The following is the code that I been working on: Dim mypath = Application.StartupPath …

Member Avatar for renzlo
0
1K
Member Avatar for AndyPants

Ever scince I saved my project yesterday, when I try to debug my application I get this: > An error occurred creating the form. See Exception.InnerException for details. The error is: Value '0' is not a valid value for Interval. Interval must be greater than 0. > Parameter name: Interval …

Member Avatar for GeekByChoiCe
0
689
Member Avatar for ARKaMAN

Hi! I am just starting PHP. I am learning to sanitze my data. I found this exmaple from the web. It displays the sanitized data, but... it does not insert the sanitized data. :( What shouuld I do to make that happen? <?php $filters = array( "firstname" =>array("filter"=>FILTER_VALIDATE_INT, "flags"=>FILTER_FLAG_ARRAY|FILTER_NULL_ON_FAILURE, "options"=>array("min_range"=>0, …

Member Avatar for joshmac
0
139
Member Avatar for mortyBox

Hey all! I'm pulling my hair out trying to figure out this noodle scratcher. I have a form that takes a users first and last name, then posts that to process.php where it pulls all the info for that person from mySQL database. The DB connection is fine, and I …

Member Avatar for joshmac
0
4K
Member Avatar for Eternal Newbie

What I tried was using `My.Computer.Network.DownloadFile()`, and created a shared folder in the other computer to do downloading stuff. But, in fact I didn't know how to fill the path to the other computer, the error was: *"...path not supported..."* How about this: ServerName1 = cmbServerName1.Text.Trim() database = cmbDataBase1.Text If …

Member Avatar for Eternal Newbie
0
315
Member Avatar for twoclicks

Hello everyone, I've build a web project that could upload and resize image with the following script and i did minor change on it: http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop/ It works fine on desktop computers and samsung galaxy s froyo. But when i tried on android tablets such as samsung galaxy tab the upload …

Member Avatar for twoclicks
0
275
Member Avatar for mortyBox

elbeato Hi all again. I couldn't reply to my last post "Message Field Required"? Anyway props to "elbeato" for helping me out. My textarea is now indented on the first line. Is there any way to align the text in a textarea? <td align="right">Additional Training</td> <td colspan="5"> <textarea name='AdditionalTraining' rows=6 …

Member Avatar for diafol
0
407
Member Avatar for sparkles_links

I was working on a script before taking ill. I need urgent help with this. I have login form, and I can use http://phpeasystep.com login tutorial to do a single user login. But I need it for like 4 different users redirecting to diffrent pages after login/ The form code: …

Member Avatar for diafol
0
126
Member Avatar for kubiak

`Inline Code Example Here` class MainMenu extends JPanel { public MainMenu() { this.setLayout(null); JButton newGame = new JButton("New Game"); JButton loadGame = new JButton("Load Game"); JButton scoreGame = new JButton("High Score"); JButton exitGame = new JButton("Exit Game"); this.add(newGame); newGame.setBackground(Color.white); newGame.setPreferredSize(new Dimension(180, 50)); newGame.setFont(new Font("Fixedsys", 1, 25)); this.add(loadGame); loadGame.setBackground(Color.white); loadGame.setPreferredSize(new Dimension(180, …

Member Avatar for zeroliken
0
222

The End.