199,114 Archived Topics
Remove Filter ![]() | |
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.. | |
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"); … | |
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 … | |
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 … | |
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 … | |
| |
Can someone help me about converting numbers to roman numeral 1-999 via switch statement ? please help me ! | |
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 … | |
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> … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
//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 = … | |
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 … | |
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 = … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
I usually use ASP.NET for web development but I haven't yet dived into any database stuff. So what database should I learn? | |
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); … | |
<?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']; … | |
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 | |
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 … | |
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 … | |
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 … | |
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 { … | |
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 … | |
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. | |
Does anybody know a good book, are a good website to learn perl. Anything is appreciated. | |
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 | |
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 … | |
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"; | |
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. | |
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 … | |
Kindly suggest to create a company presentations in c# window form | |
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 … | |
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. | |
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(),"#"); } |
The End.