How can I store my users' passwords safely?

How can I store my users' passwords safely?

How much more safe is this than plain MD5? I've just started looking into password security. I'm pretty new to PHP.$salt = 'csdnfgksdgojnmfnb';$password = md5($salt.$_POST['password']);$result = mysql_query("SELECT id FROM users

What causes and what are the differences between NoClassDefFoundError and ClassNotFoundException?

What causes and what are the differences between NoClassDefFoundError and ClassNotFoundException?

What is the difference between NoClassDefFoundError and ClassNotFoundException?What causes them to be thrown? How can they be resolved?I often encounter these throwables when modifying existing code to include new jar files.I have hit them

What is the best way to implement “remember me” for a website? [closed]

What is the best way to implement “remember me” for a website? [closed]

I want my website to have a checkbox that users can click so that they will not have to log in each time they visit my website. I know I will need to store a cookie on their computer to implement this, but what should be contained in that c

The application may be doing too much work on its main thread

The application may be doing too much work on its main thread

I am new to Android SDK/API environment. It's the first I am trying to draw a plot/chart. I tried running different kinds of sample codes the emulator using 3 different free libraries, nothing is showing in the layout screen. The logcat is

How to 'insert if not exists' in MySQL?

How to 'insert if not exists' in MySQL?

I started by googling, and found this article which talks about mutex tables.I have a table with ~14 million records. If I want to add more data in the same format, is there a way to ensure the record I want to insert does not already exist

ORA-00979 not a group by expression

ORA-00979 not a group by expression

I am getting ORA-00979 with the following query:SELECT cr.review_sk, cr.cs_sk, cr.full_name,tolist(to_char(cf.fact_date, 'mm/dd/yyyy')) "appt",cs.cs_id, cr.tracking_numberfrom review cr, cs, fact cfwhere cr.cs_sk = cs.cs_skand UPPER(cs.cs_i

Syntax error due to using a reserved word as a table or column name in MySQL

Syntax error due to using a reserved word as a table or column name in MySQL

I'm trying to execute a simple MySQL query as below:INSERT INTO user_details (username, location, key)VALUES ('Tim', 'Florida', 42)But I'm getting the following error: You have an error in your SQL syntax; check the manual that corresponds

Python 3.3 Mysql Connector [duplicate]

Python 3.3 Mysql Connector [duplicate]

Possible Duplicate: MySQL-db lib for Python 3.0? I use python3.3 and can't connect to MySQL, because I don't find module for MySQL connector.How do I connect to MySQL with python3.3? 1:There is a module called Pymysql which you may lik

Android NDK overflows dalvik JNI local reference table

Android NDK overflows dalvik JNI local reference table

I have the following problem, from c++ I send huge string[] to java. huge = at most 20 rows; I am doing the following jint jtype = 2;jstring emptyString = env->NewStringUTF("");jobjectArray data = (jobjectArray)env->NewObjectArray(7, env->F

Problems filtering django datetime field by month and day

Problems filtering django datetime field by month and day

Can someone explain to me why the following filters are not working at the month and day level? Filtering by year seems to work, but not the other two.>>> clicks.count()36>>> date = clicks[0].created>>> date.month2>>> date.year2014>>> date

Left Join outperforming Inner Join?

Left Join outperforming Inner Join?

I've been profiling some queries in an application I'm working on, and I came across a query that was retrieving more rows than necessary, the result set being trimmed down in the application code.Changing a LEFT JOIN to an INNER JOIN trimm

Can I generate script of a migration with EF code first and .net core

Can I generate script of a migration with EF code first and .net core

I'm building a MVC application with .Net Core and I need to generate the script of a migration.With EF6 I did run the command update-database -scriptbut when I try to do the same with .net Core is throwing the next exception: Update-Databa

MySQL Workbench - Connect to a Localhost

MySQL Workbench - Connect to a Localhost

I just installed MySQL Workbench and there are no connections available for my localhost server. When I try to make one, I get an error popup. Has anyone experienced something like this before and would be able to help me out?Here is what

How to generate unique object id in mongodb

How to generate unique object id in mongodb

When I use Mongodb with Java, I want to generate Object id at clients. Before I insert a record, however, I have to query mongodb first to make sure that the id generated by ObjectId() method is unique. Is there any way that I can generate

How can I create a SQLite3 database file using a SQL command file?

How can I create a SQLite3 database file using a SQL command file?

I have a file which contains some SQL commands, something that looks like this:CREATE DATABASE IF NOT EXISTS `db_name`;USE `db_name`;CREATE TABLE IF NOT EXISTS `customers` ( `id` int(10) unsigned NOT NULL, `f_name` varchar(50) DEFAULT NUL

Best way to store an array in MySQL database?

Best way to store an array in MySQL database?

Part of my app includes volume automation for songs.The volume automation is described in the following format:[[0,50],[20,62],[48,92]] I consider each item in this array a 'data point' with the first value containing the position in the so

The “X” property on “Y” could not be set to a 'null' value. You must set this property to

The “X” property on “Y” could not be set to a 'null' value. You must set this property to

When I run my application and I click a specific button I get the error:"The "X" property on "Y" could not be set to a 'null' value. You must set this property to a non-null value of type 'Int32'."Cool so I go to my Entity project, go to Y

Django ORM, group by day

Django ORM, group by day

I am trying to group products by DAY, however date_created is a datetime field.Product.objects.values('date_created') \ .annotate(available=Count('available_quantity'))returns:[ {'date_created': datetime.datetime(2012, 4, 1

SQLite database scheme as Entity Relationship Model [closed]

SQLite database scheme as Entity Relationship Model [closed]

Is there a tool to display the database scheme for SQLite 3 database like with MySQL Workbench and Reverse Engineering? I mean a graphical representation like 1:Try DbVisualizer, it works for any database and I particularly like the way

Does column order matter in your MySQL tables?

Does column order matter in your MySQL tables?

While learning mysql, I read that you can perform the following statement when adding a column to a mysql table:ALTER TABLE contacts ADD email VARCHAR(60) AFTER name;orALTER TABLE contacts ADD email VARCHAR(60) FIRST;When would you want to

Mysql: latin1-> utf8. Convert characters to their multibyte equivalents

Mysql: latin1-> utf8. Convert characters to their multibyte equivalents

There was a table in latin1 and site in cp1252 I want to have table in utf8 and site in utf-8I've done:1) on web page: Content-Type: text/html;charset=utf-82) Mysql: ALTER TABLE XXX CONVERT TO CHARACTER SET utf8_This SQL doesn't work as I w

get client machine timezone in asp.net mvc

get client machine timezone in asp.net mvc

How to get the time zone id (ex.: Central Standard Time) of the client machine in asp.net mvc? 1:It will have to be done on the Javascript side, and post that value in a hidden field back to the server. Look into the Date.getTimezoneOff

MySQL InnoDB tables corrupt — how to fix?

MySQL InnoDB tables corrupt — how to fix?

While performing a conditional DELETE operation in one of my InnoDB tables, which apparently required some temporary table to be created in ibdata1, the hard disk filled up and mysql crashed. I couldn't get it to start again until I deleted

JQuery UI Autocomplete with Zend Framework

JQuery UI Autocomplete with Zend Framework

I was wondering about how to add the autocomplete JQuery UI widget to a form I'm developing in the Zend Framework without using ZendX. The folders for the website are set up per the framework, but I'm not using Zend_Form.So I stripped every

How I separate logic from presentation?

How I separate logic from presentation?

Normally I am developing website and coding PHP and HTML something like this - while (mysqli_stmt_fetch($stmt)) { // Create Table Body $html .= "\n"; $html .= " $title\n"; $html .= " $date";