64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for valipour

Hi i created class a and b is it's child (a:b) public class a { string text = "class a"; public void alert() { MessageBox.Show(text); } } public class b : a { string text = "class b"; } b myb = new b(); myb.alert(); but when i call alert() …

Member Avatar for sepp2k
0
243
Member Avatar for OsaMasw

I want to create a login system with "**remember me**" option, but am afraid to use cookies because I don't know how to handle the security for it, so I prefer to use session instead, but all session will be destroyed after 30 minutes or when user close the browser, …

Member Avatar for OsaMasw
0
139
Member Avatar for yksrmc

Dear Experts, Thanks for your time. I have got stuck on following problem. I have one file with five column name Chr, Pos Qial GT1 and GT2. In file Column 4 Gt1 is with 01 value only. I like to do comparision between col GT1 and col GT2. I like …

Member Avatar for 2teez
0
170
Member Avatar for yksrmc

Dear Experts, Thanks for your time. I have got stuck on following problem. I have one file with five column name Chr, Pos Qial GT1 and GT2. In file Column 4 Gt1 is with 01 value only. I like to do comparision between col GT1 and col GT2. I like …

Member Avatar for 2teez
0
145
Member Avatar for shelexelex

This code doesnt get into the if statements to check the conditions. Please help me find what is wrong with it. <?php $info=""; if (isset($_POST['RegButton'])) { $FirstName= $_POST['Fname']; $LastName= $_POST['Lname']; $Email= $_POST['Email']; $Phone= $_POST['Phone']; $userPass= $_POST['password']; $repass= $_POST['repassword']; //For password encryption $slt= time(); $salt= $slt; $harshed= sha1($userPass.$salt); if (empty($_POST['Fname'])){ $info= …

Member Avatar for shelexelex
0
274
Member Avatar for MWEB

Hello everyone ! Here a question :D I have this code function validateName(){ if ( name.val().length <= 4 ){ name.removeClass('valid'); nameInfo.removeClass('valid'); name.addClass('error'); nameInfo.addClass('error'); nameInfo.text (" You need to have more than 4 letters "); state = false; }else{ var uname = name.val(); $.post('validateuser.php' , {names:uname} , function(data){ if (data != …

Member Avatar for MWEB
0
206
Member Avatar for rofln

Hello, I have to submit a makefile along with my source code for a project in my data structures class. I have never done this before, so I had to do a lot of Googling. Needless to say, I have successfully created a makefile and ran it, but I have …

Member Avatar for rofln
0
129
Member Avatar for wolf29

I want to create sqlite3 databases from within a python script. I am currently running this code which does not pass the right variable content to the sqlite3 command prompt, so I have one issue there. I also do not want to have the user have an sqlite3 command shell …

Member Avatar for james.lu.75491856
0
366
Member Avatar for pars99

Everytime I press the button, it's supposed to change the label, but it doesn't. It also doesn't see that I have made any connections. Please help. Thank you in advance. AppController.m: #import "AppController.h" @implementation AppController -(IBAction)sayHello:(id)sender{ [label setStringValue:@"Hello World!"]; } @end AppController.h: #import <Foundation/Foundation.h> @interface AppController : NSObject{ IBOutlet NSTextField …

Member Avatar for pars99
0
250
Member Avatar for Labdabeta

I quickly threw together a drawing program in SDL and I am having a couple of issues with lag. The program lags really hard when the size is larger than about 700x700 pixels, and I cannot find anything other than a couple of SDL_BlitSurface calls to the 'image' surface in …

Member Avatar for Labdabeta
0
208
Member Avatar for khiemkim.xuan

0 down vote favorite Does anyone know a simple way to get the attribute of an obsolete marked methods with NDepend? Obsolete["This is outdated"] //TODO, I want the string!! So any ideas on how to get the string using NDepend?

Member Avatar for Begginnerdev
-1
114
Member Avatar for ravinder yadav

i want to know whether can i configure visual studio web developer 2010 express edition to work with apache web server instead of ISS?

Member Avatar for ravinder yadav
0
2K
Member Avatar for kiail

Okay, so I've created an array that is defined by the user input, they enter a number to determine the amount of elements, then they put in the value of said elements. My program is supposed to remove duplicates from this array. This is what I have so far, it …

Member Avatar for kiail
0
226
Member Avatar for nathan.pavlovsky

Hello Programmers! I am making a program that demonstrates the difference between passing by value to a function and passing by reference. My code is below: #include <iostream> using namespace std; int squareByValue(int); void squareByReference(int&); int main() { int x=2; int z=4; cout << "x= "<<x<< " before squareByValue"<<endl; cout …

Member Avatar for nathan.pavlovsky
0
207
Member Avatar for mpc123

Hi I have an issue where by I have lots of products in a field which are comma delimited I want to replace those product words with a id number that I have in a different table. I currently use FIND INSET to replace a tab to the comma but …

Member Avatar for mpc123
0
216
Member Avatar for sanbhu2105

hello guys, i have 2 tables - tblproduct and tblretprod. prod_id is common in both. i am retrieving records from the tables to display with edit and delete options beside each record displayed. i created an update.php and updprod.php (for edit). update.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> …

Member Avatar for sanbhu2105
0
678
Member Avatar for eternalhour

Hi Daniwebbers, I've created a web form and code in order to reset/clear the form with a button. However, in a specific circumstance, the form only resets properly if I go to a separate page then come back to the form and reset it. It only happens directly after I …

Member Avatar for eternalhour
0
213
Member Avatar for adil.ghori

1. Display student id, student first name, student last name, the students’s faculty advisor id, advisor last name, advisor location and phone number. You will join uc_student and uc_faculty 2. Write a SELECT statement that will return the faculty last name, faculty first name and the room for faculty whose …

Member Avatar for adil.ghori
-4
635
Member Avatar for nexocentric

I have an interesting problem and have searched the internet, but haven't yet found an answer. Consider the following function: function get_setting_values_from_file( $parameter ) { exec("/usr/var/binary --options $parameter", $output, $return); $settings = file( $output[0] ); } I need to unit test a similar function. I am currently using phpUnit for …

Member Avatar for nexocentric
0
969
Member Avatar for Rahul47

I was reading through Javascript overview on a webiste that stated following: 1) JavaScript can not be used for Networking applications because there is no such support available. 2) JavaScript doesn't have any multithreading or multiprocess capabilities. My Questions: 1) Which kind of 'Networking Applications' are we talking about? 2) …

Member Avatar for Rahul47
0
234
Member Avatar for MasterHacker110

Every time I want to write an encryption program, say RSA algorithm. I have to re - invent the wheel and design the key generation and all those small things my self. Now latly I heard abou AES algorithm and that it is so secure and a lot more stuff. …

Member Avatar for MasterHacker110
0
234
Member Avatar for Wolfenstien

Hi! Im new to Java and iv been studying GUI's in it. Just started with swing and tried to make this giu for a calcularot. but it doesnt execute and gives me "java.lang.NoClassDefFoundError" error. im a total noob so i cant figure it out. i'd really appreciate it someone could …

Member Avatar for Wolfenstien
0
273
Member Avatar for MasterHacker110

I wrote a very simple encryption program, well the algorithm is simple but there is one thing I am strugling with. Basicly after the user's key is generated the program will write it to a file. Then when the user want to decrypt the encrypted file, the file with the …

Member Avatar for MasterHacker110
0
202
Member Avatar for london-G

Hello, I am storing an image in the database. I would like to know how can I resize the image before actually saving the image. I have a form with a label, a button and a text field to store the image path.Here is my code public void SaveImage() { …

Member Avatar for JamesCherrill
0
290
Member Avatar for sonicx2218

I'm trying to retrieve views from a select set of vimeo vids. The API documentation is lacking in my opinion and I am only provided with this as far as I can tell https://raw.github.com/vimeo/vimeo-api-examples/master/simple-api/simple/really-simple.html It retrieves thumbnails & titles from every video by that username, but I just want to …

Member Avatar for sonicx2218
0
696
Member Avatar for saleem.mukhtiar

Friends .. how my code working fine with two buttons (PDF and RTF) but the last portion for HTML converting its not working .. please help Imports CrystalDecisions.CrystalReports.Engine Imports CrystalDecisions.Shared Imports System.Diagnostics Imports System.IO Public Class Form1 Dim myReportDocument As New ReportDocument Private Sub Form1_Load(ByVal sender As System.Object, ByVal e …

Member Avatar for saleem.mukhtiar
0
1K
Member Avatar for grant.baker

Hi, I'm having trouble figuring out how to prevent the default tab action when using jquery ui catcomplete. It works perfectly until I add the catcomplete widget code. I'm using the catcomplete widget code found on jquery ui.com: $.widget( "custom.catcomplete", $.ui.autocomplete, { _renderMenu: function( ul, items ) { var that …

Member Avatar for grant.baker
0
629
Member Avatar for rb1234567

How do you create lists in an APEX form which allow many checkbox selections? How do you store these in database?

Member Avatar for LastMitch
0
171
Member Avatar for Lp_baez

If the program is being run the "cin>>answerBoss;" runs just fine but right after that input the program skips the next input that reads "cin>>overTime;" I can't figure out what is causing this to happen.

Member Avatar for Nutster
0
253
Member Avatar for GlenRogers

I have a page with list items (links) that I need to be able to hide/show from my admin page. <script type="text/javascript"> $(document).ready(function(){ $("button").click(function(){ $("li").css("display","none"); }); }); </script> How do I get it to work that if i press a button in my admin page, it hides list items that …

Member Avatar for BMXDad
0
297
Member Avatar for strongpot

Hello, I'm trying to send an email containing a variable. My variable ($to = $row_Recordset1['email'] ;) isn't working. When i echo it i get nothing and no email is received. When i put in a specific address rather than a variable it works just fine. Anyone know what I'm doing …

Member Avatar for strongpot
0
279
Member Avatar for sanbhu2105

i have the below code which is populating my drop down with the product names stored in tblproduct. the price of the products are stored in another table called tblretprod. the common field between the tables is the prod_id. when i am selecting the product name, the price related to …

Member Avatar for EvolutionFallen
0
336
Member Avatar for MWEB

Hello everyone :) I have this lines of codes and i get : > Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in D:\xampp22\htdocs\folder\index.php on line 52 ( 19 in the code below ) <form method="POST" action="index.php"> CODE : <input type="text" placeholder="Type the code" name="searchfor" /> <input type="submit" …

Member Avatar for Jan_2
0
943
Member Avatar for Violet_82

Hi all, I was wondering if anybody can enlighten me on when it is best to separate javascript code in different script. Let me give you a practical example. I have a script that I would like to run everytime the page is resized, so I am thinking to use …

Member Avatar for Violet_82
0
317
Member Avatar for mpc123

HI Have a field in database which has multiple of the same number in, I have got a query of which works with the field with 1 in but then want it to then go to ++ so if I limit 9 results they will show with this query for …

Member Avatar for pritaeas
0
144
Member Avatar for Thermalnuke

HEy guys, I got possible a stupied question but i was wondering... if you are useing microsoft runtime on all of your clients computer in a office of like 150 clients. If i put a package together with MS runtime and current databases will runtime be able to to automaticlly …

Member Avatar for Thermalnuke
0
165
Member Avatar for New-Reign

After looking around most of last night and all of this morning, I find myself here. I am looking to include a database connection within another class. From what I've read creating a connection within a class is bad? Can someone help me out or even point me in the …

Member Avatar for pritaeas
0
158
Member Avatar for code_rum

Below is my code.. $stmt->execute($params) is not getting executed $name = $_REQUEST['name2']; $surname = $_REQUEST['surname2']; $add = $_REQUEST['add2']; $pdo = new PDO( "mysql:host = localhost;dbname = employee", "xxx", ""); $stmt = $pdo->prepare( 'INSERT INTO test_differ VALUES( :name2 , :surname2 , :add2 )' ); $params = array( ':name2' => $name, ':surname2' …

Member Avatar for code_rum
0
176
Member Avatar for vedmack

Hi, I'm looking for an java api which can convert .doc file into .pdf file... i need this solution to work without any intervention of MS Office/Windows. If anyone have any idea about such api , please reply. Thanks ahead Daniel

Member Avatar for stultuske
0
3K
Member Avatar for PriteshP23

I would like to get name of Tilt and its value 30. I am not able to get the value of Tilt. Let me know if you have any idea. Thanks in advanced. XML File: <?xml version="1.0" encoding="UTF-8"?> -<Physical> <Catalog> </Catalog> -<Installed> -<Equipment> <Id>26</Id> <Ref>Tew12</Ref> -<Characteristic> <CharacteristicName>Height</CharacteristicName> <CharacteristicValue>160</CharacteristicValue> </Characteristic> -<Characteristic> …

Member Avatar for PriteshP23
0
2K
Member Avatar for mpc123

Hi im trying to random showing items from data base and when echoed the same ones appear? If anyone could help that would be great. This is the query SELECT * FROM TABLE1, TABLE2 WHERE FIND_IN_SET(TABLE2.FIELD1, TABLE1.FIELD1) and `FIELDNAME` >= RAND() LIMIT 10

Member Avatar for pritaeas
0
147
Member Avatar for didi00

Hi guys, I'm trying to set a database for a shopping cart. Here is some of the code: [code] CREATE TABLE `tbl_cart` ( `ct_id` INT( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT , `pd_id` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0', `ct_qty` MEDIUMINT( 8 ) UNSIGNED NOT NULL DEFAULT '1', …

Member Avatar for Jan_2
0
2K
Member Avatar for Phrren

I can't figure out why I'm getting this error, i've checked all the posts I can find here and they are all a method inside another method, which i'm pretty sure I don't have. This is the error message it gave me: Exception in thread "main" java.lang.RuntimeException: Uncompilable source code …

Member Avatar for stultuske
0
1K
Member Avatar for kartik_2
Member Avatar for patk570

There is two sections i need it to update. When they hover over the members name listed below, I need it to show their details. When the user(one who submitted the content) posts its going to have a hidden value to update the field in the form that i have …

Member Avatar for diafol
0
348
Member Avatar for kiail

Hello, I am currently making a program that sorts user input of age and name. If a user inputs their name and age, all out of order, how would I go about sorting this from oldest to youngest or youngest to oldest? I have this so far: Ages[] ages = …

Member Avatar for kiail
0
248
Member Avatar for wxflint

Hello all its been a while, I have a question on the script below. Here is what I would like to do. Take $file after fwrite has processed and add it to $dir. The Script creates the Directory and the file. I just need it to add the File to …

Member Avatar for wxflint
0
161
Member Avatar for layman114

I am trying to connect to the Ms access database using PHP. The database, that I created has '.accdb' as an extension. I tried the following steps. but I get this error "The specified DSN contains an architecture mismatch between the Driver and Application". Any ideas?? 1. Go to your …

Member Avatar for diafol
0
349
Member Avatar for kindofsudden

I have a combobox that is bound to a DB and works great. However, when the user adds a value to the table to which the combobox is bound, the combobox keeps the old value and adds the current items in the table. In this case the table originally held …

Member Avatar for kindofsudden
0
367
Member Avatar for GeekPlease

Hello folks, I'm currently studying how to use LinQ in VB.NET but I guess I'm stock. I'm using VS 2008 version (framework) 2.0 Anyone who can help me get through this??

Member Avatar for GeekPlease
0
288

The End.