199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for terryds

Please tell me the best way to hash password in CMS.. I've seen Crackstation's hashing : https://crackstation.net/hashing-security.htm And phpass : http://www.openwall.com/phpass/ Please tell me which one is the best or tell me if there is another good hash method for password..

Member Avatar for Taywin
0
188
Member Avatar for iConqueror

Why do we use interface references to call methods of an object? For example: class Program : Iabc, Idef { static void Main(string[] args) { Console.WriteLine("Hello interfaces"); Program refProgram = new Program(); Iabc refiabc = refProgram; refiabc.xyz(); Idef refidef = refProgram; refidef.pqr(); Console.ReadLine(); } public void pqr() { Console.WriteLine("In pqr"); …

Member Avatar for deceptikon
0
300
Member Avatar for mexabet

I have a user registration script that includes image upload. Everything works, but each time a user registers, the image he/she uploads replaces the image (userimage) of every other user. What I need is to only update the userimage of that user based on ID. Any help would be much …

0
123
Member Avatar for Stefce

Hey everyone i have a little problem with the navigation bar, i have created the design of the menu but i want to be in one file (menu.html) and to show on all pages in the website... here is my code for `menu.html` <html> <body> <meta http-equiv="content-type" content="text/html;charset=utf-8"/> <style> form.position-and-style …

Member Avatar for mattster
0
294
Member Avatar for wazz

i'm using the event below to change a default error message. so far i'm only using DuplicateUserName. my concern is the rest of the cases. i commented them all out so the errors would bubble up properly, then i uncommented them. i'm not sure what to do with them. leave …

Member Avatar for pritaeas
0
241
Member Avatar for elise01
Member Avatar for jwenting
0
181
Member Avatar for Reshiram27

Can someone help me about converting numbers to roman numeral 1-999 via switch statement ? please help me !

Member Avatar for jwenting
0
633
Member Avatar for red11

Uhmm. I need help! I need a code in our case study. And I don't know how to start it. Please, someone help. I need to pass this on thursday, August 21 2014. Huhu :'( I really don't know. I'm no IT/CompScie or whatever computer related courses but I have …

Member Avatar for Hiroshe
0
611
Member Avatar for TonyG_cyprus

Hi all, it's been awhile... my prob. I have a form to order drinks in a bar, as below. <div class="col_left"> <h2> Order Your Drinks And Food</h2><br /> <form action="process.php" method="post" name="orders"> <table border="1" class="trapezi"> <tr> <th>Drink</th><th>Qty</th> </tr> <tr> <td><input type="checkbox" name="drink[]" value="p/c">Carlsberg 50cl</td> <td><input type="text" name="drinkno[]" size="2"></td> </tr> <tr> …

Member Avatar for TonyG_cyprus
0
182
Member Avatar for chophouse

I've written this function to take a list and shift each member right by the number supplied as the offset. I want to preserve the supplied list and return the shifted list. My problem is that the function modifies the supplied input list itself as well as returning a new …

Member Avatar for chophouse
0
298
Member Avatar for Moaid

im using windows 7 64bit along with codeblocks and mingw and im trying to use non standard c++ libaries such as SDL , allegro and sfml but when i link them and try to compile the examples some work and some dont i wonder what i did wrong ? I …

Member Avatar for DeanMSands3
0
251
Member Avatar for coxxie

Develop class Polynomial. The internal representation of a Polynomial is an array of terms. Each term contains a coefficient and an exponent. The term 2x 4 has the coefficient 2 and the exponent 4. Develop a complete class containing proper constructor and destructor functions as well as set and get …

Member Avatar for NathanOliver
0
3K
Member Avatar for dennis254

Hi, I have been looking for several hours for code that automatically checks if Microsoft acess database engine is installed. If not it reinstalls the database driver by first detecting architechture(32/64 bit). It then automatically installs the driver. I am using Ms Access database 2007 as data source for my …

Member Avatar for cgeier
0
1K
Member Avatar for santunu23

hi in my project i am almost done for deployment but i am afraid about ppl who disabled cookies in there browser, what should i do if they disable cookies how we get there data(i mean user) i am think about if they disable cookies we use session function for …

Member Avatar for santunu23
0
197
Member Avatar for edamay.payay.9

//here's a singly linked list program with functions. However, I don't kbow how to add function #7 wherein //the position of the maximum number in the list should be displayed.. :( import java.util.Scanner; class Node { protected int data; protected Node link; protected int next_num; public Node() { link = …

Member Avatar for edamay.payay.9
0
470
Member Avatar for MasterHacker110

I hear that the new version of Java, Java 8, does not support a way to connect to MS Access database... I have a rather big problem in this case as I created all my databases with access (And im not porting them to SQL). I wanted to update my …

Member Avatar for Schol-R-LEA
0
617
Member Avatar for sujay anand

I have insert gridview datas into database using checkbox checked. My prob is when datas present in database checkbox should be checked. DataTable dt = new DataTable(); dt.Columns.AddRange(new DataColumn[2] { new DataColumn("adminname"), new DataColumn("projectname") }); for (int i = 0; i <= GridView1.Rows.Count - 1; i++) { GridViewRow row = …

Member Avatar for EddyC27
0
129
Member Avatar for saineshwar

I have a checkbox column, which has a OnCheckedChanged event. To avoid postbacks I have placed the checkbox control in UpdatePanel but still it is postbacking When i execute run the page, i see the postback is still happening. I dont know whats wrong with my code. <asp:TemplateField> <ItemTemplate> <asp:Literal …

Member Avatar for EddyC27
0
817
Member Avatar for momal

I'm making a student system with console based java. I'm trying to load a text file's content to an ArrayList and later on search with a student registration number and list down his/her name and program. I'm having a hard time loading the text file contents in an ArrayList so …

Member Avatar for JamesCherrill
0
5K
Member Avatar for sarvesh_1

Hi all, I need to change label text dynamically for two operations on webpage in asp.net. First,when file uploading is completed label should show 'upload completed'. After that it will perform validation process and later will show the message 'validation complete'. I have two methods that will be called one …

Member Avatar for EddyC27
0
444
Member Avatar for Wei_3

Runtime r = Runtime.getRuntime(); Process pr = r.exec(cmdString) I can get the prompt result when I try "cmd /c type f1.properties", however, when the size of file is larger the command will hang and no output I could get and no exception occurred. Is there any limitation for java to …

Member Avatar for JamesCherrill
0
677
Member Avatar for LONGWAY

when i try to call my joomla with localhost i get this: [b]Error displaying the error page: Application Instantiation Error[/b] my db name, my user and pass are correct, i dont see any problem in configuration page, they r correct

Member Avatar for LONGWAY
0
134
Member Avatar for new2code

I have an assignment that requires me to make a code to basically have the user input 5 letters into an array. The five letters then have to be checked against themselves for duplicates and they have to be letters. I am the worst at doing this, i will say …

Member Avatar for David W
0
377
Member Avatar for ianian944

I am trying to make a vehicle advertising website like autotrader or ebay. I am using html, css, jsp, java and mysql for the database.Basically I want the user to be able to search for a vehicle (advert) via a form, then they are directed to a results page after …

Member Avatar for peter_budo
0
2K
Member Avatar for Aish_14

hello.. I am trying to write a code which can ping multiple ip addresses and depending on the reply print whether the server is on. My approach is to save the addresses in an array, then ping them using a for loop. I am not sure about the data type …

Member Avatar for Aish_14
0
1K
Member Avatar for Sammys.Man

Hi guys, im working on a bit of code which for 2 days is sending me around in circles :/ what i want to do is split an array into variables, so i can dynamically create a text box. i'm trying various methods but think im chasing my tail now. …

Member Avatar for cereal
0
193
Member Avatar for missy_mi

HI ALL.. I HAVE A PROBLEM CONNECTING THE EXTERNAL LINKS OF MY FLASH PROJECT AFTER I PUBLISH SWF AND PUT IT IN INSIDE MY HTML. WHEN I PLAY THE FLASH ON THE BROWSER I CANNOT GO TO THE LINK.. BEFORE I PUBLISH, WHEN I TEST MOVIE..THE LINK WORKS FINE.. WHAT …

0
91
Member Avatar for bLuEmEzzy

I have Checkboxes, the last checkbox is OTHER if the user clicks it, a textbox will appear. I want to get the value of the textbox and pass it on my checkbox, I do not know how to do it. This is my code, I used loop to get the …

Member Avatar for minitauros
0
296
Member Avatar for asardeen

I want to export the excel data and show it in gridview. And I want to update the existing table i sql using Gridview data Below is my code for exporting from Excel protected void btnUpload_Click(object sender, EventArgs e) { //Coneection String by default empty string ConStr = ""; //Extantion …

Member Avatar for EddyC27
0
151
Member Avatar for Jack_9

I usually use ASP.NET for web development but I haven't yet dived into any database stuff. So what database should I learn?

Member Avatar for Jack_9
0
106
Member Avatar for javed.iqbal.3979

In an attempt to use selection lists in php ,i tried it for displaying date on a web page <?php echo"<html> <head><title>Select a Date </title></head> <body>"; $monthname=array(1=>"January","Februray","March","April","May","June","July","August","September","October","November","December"); $time=time(); $today_date=date("M-d-Y",$time); //returns the current date echo "<div style='text-align:center'>\n"; echo "<h3>Today is $today_date</h3><hr />\n"; echo "<form action='process_form_date.php' method='POST'>\n"; //selection list for month $todayMO=date("M",$time); …

Member Avatar for javed.iqbal.3979
0
277
Member Avatar for TruptiThik

<?php include("connect.php"); if(isset($_POST['add'])){ header("location:show_data.php"); $first=$_POST['fname']; $last=$_POST['lname']; $fulname=$first." ".$last; $gen=$_POST['gender']; $hob_array=$_POST['hob']; $status=$_POST['status']; foreach($hob_array as $one_hob){ $source .= $one_hob.", "; } $hobb = substr($source, 0, -2); //insert data $query_insert="INSERT INTO employee(name,gender,hobbies,status) VALUES('$fulname','$gen','$hobb','$status')"; if(mysqli_query($con,$query_insert)){ echo "inserted"; }else{ echo "no"; } } if(isset($_POST['show'])){ header("location:show_data.php"); } if(isset($_POST['insert'])){ header("location:insert.php"); } if(isset($_POST['update'])){ $fname=$_POST['fname']; $lname=$_POST['lname']; $fulname=$fname." ".$lname; $gen=$_POST['gender']; …

Member Avatar for UsMurshall
0
23K
Member Avatar for doreen.lata.14

A need a program that will ask the persons age , type of car needed and the number of days the car is needed. if the driver is <= 25 years of age than 20% surcharged

Member Avatar for Saboor880
0
207
Member Avatar for gajen007

I faced a NullPointerException for below code. What is the cause? import javax.swing.*; import java.awt.*; import java.awt.event.*; import net.sourceforge.jdatepicker.*; import net.sourceforge.jdatepicker.graphics.*; import net.sourceforge.jdatepicker.impl.*; import net.sourceforge.jdatepicker.util.*; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; public class selectDate extends JFrame implements ActionListener { JLabel CheckDate; JButton check; public UtilDateModel model; public JDatePanelImpl …

Member Avatar for raj.mscking
0
7K
Member Avatar for boyalexutzu

Hello guys, I'm new here and with C++ and i have a problem if you are kind to help me. Me and my friend have created a small program that download yt videos and upload them on specified yt accounts entered by us, when i hit run it opens 50 …

Member Avatar for boyalexutzu
0
239
Member Avatar for Blueie

Hello I am using the following try | catch to locate an error: Try Using conn As OleDbConnection = New OleDbConnection(System.Configuration.ConfigurationManager.ConnectionStrings("students").ConnectionString) Dim Sql As String = "INSERT INTO university (username,[password], strEmail) VALUES (@username,@password, @strEmail)" Dim cmd As New OleDbCommand(Sql, conn) conn.Open() cmd.Parameters.AddWithValue("@username", username.Text) cmd.Parameters.AddWithValue("@password", password.Text) cmd.Parameters.AddWithValue("@strEmail", strEmail.Text) cmd.ExecuteNonQuery() conn.Close() End …

Member Avatar for cgeier
0
199
Member Avatar for kamilacbe

hi,I have a classB which is in location "test\folder1\generics1" and Class2 which is generic class in another folder for eg test\folder2\ and when i create object for class2 which should be able to acces class1 method which is MethodA() please advise.Thanks in advance namespace generics1 { public class B { …

Member Avatar for AleMonteiro
0
175
Member Avatar for robert.knighton.79

I'm simply trying to keep a log list for my application events. I'm trying to send text to the log from a seperate thread with the following code: Imports System.Threading Public Class Main Private worker1 As Thread Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load worker1 = New …

Member Avatar for AleMonteiro
0
495
Member Avatar for Mad swift

Hi there I have a problem on my website and I don't if I will explain it right, but I want to remove the spacing around the table and not in between the tables. So I basically want to remove celspacing round the table.

Member Avatar for AleMonteiro
0
104
Member Avatar for aduragbemi.adebo
Member Avatar for Jack_9

Does anybody know a good book, are a good website to learn perl. Anything is appreciated.

Member Avatar for 2teez
0
122
Member Avatar for apaulogy

Guys help me out with a .py code that will enable a user to upload data(images,mp3,AVI etc) Your will be appreciated. thank you

Member Avatar for Jack_9
0
167
Member Avatar for tokick4

I have a question about how to set up a page in php to allow the user to create reports from a mysql database and display in a grid on the page. I want them to build the query and save it to the another table and list on their …

Member Avatar for Taywin
0
408
Member Avatar for can-mohan

Hi Guys, Any body knows what is the efficient way to create the map (key,value pair ) using linklist using c .Apart from this in this map one key can have multiple values and i need to display those values. I don't want implementation in c++. example string1->"james" string1->"mike" string1->"harry";

Member Avatar for Schol-R-LEA
0
2K
Member Avatar for devgit2810

Hello friends, I want to develop a video conferencing project in java.For that i have spent some time to try recording video in java.But i finally thought to get some help.I have tried using JMF.My system OS is Windows 8.1 pro 64 bit.Any Knowledge would be helpful. Regards.

Member Avatar for llaspina
0
1K
Member Avatar for murali2489

Hi Team, I have a piece of code like below which works correctly in Windows Xp (Ie 7) but when i try it in W7(IE 11) rendering is wrong, when the application first loads the select menu is rendered correctly but when i select an option and again try to …

Member Avatar for almostbob
0
269
Member Avatar for sanjeev_3
Member Avatar for JOSheaIV
0
76
Member Avatar for richard.vannoy.92

Last post 2008???!!! So, I guess I won't expect much in 2014... In VB, I would change the name of controls often. I'd start with textBox1 and later change it to txtInput or whatever. C# doesn't like this. When I do this, I get errors that the control with the …

Member Avatar for JOSheaIV
0
142
Member Avatar for restrictment

I accidentally posted a lower version of the game that had more flaws, and a few less features. This one has a few more minor bugs fixed, and a power attack instead of a normal attack.

Member Avatar for apkrieg
0
683
Member Avatar for Joemeister

I want to know how I can do this: 1. Find "sqrt" in a string 2. Replace "sqrt" with only "#" I have the following code but its not working. Why? size_t found = 0; found = modifiedExpr.find("sqrt"); if(found!=std::string::npos) { modifiedExpr.replace(modifiedExpr.find(sqrt),sqrt.length(),"#"); }

Member Avatar for L7Sqr
0
198

The End.