LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-04-2011, 05:01 PM   #16
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406

i would say LQ is about a community of people volunteering their time to answer questions, no questions asked (well with the exception of where it comes to telling someone how to do something illegal)
even homework questions are acceptable as long as the poster understands he/she might not get a direct answer but a reply that will help the poster understand how to find the answer or an answer that lead the poster to the solution, so why would a professional programmer who gets stuck be treated any differently? even if the code in question ends up in a proprietary program the answer to the question might help out someone else doing a similar open source project. That's what this forum is about, not discriminating why a question is being asked and by whom.
 
1 members found this post helpful.
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 01-04-2011, 05:13 PM   #17
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,
Quote:
Originally Posted by Kenny_Strawn View Post
This is LinuxQuestions.org, and people who post here are forced to give away their code anyway when they need help, and I agree with that trend. As such, programmers of proprietary software shouldn't be here unless they want their entire source code revealed to the public. Thanks LQ programming forum for doing its best to kill at least *new* proprietary software!
You are ridiculous with this one! People who write code for contract in no way should be required to adhere to such a ridiculous rule. Loads of Open Source programmers code and program snippets are developed by people who have day jobs or contracts to program for hire.

I have not contracted for a while but in no way would adhere to such an absurd rule.

"Wisdom is only found in truth."-Goethe

Grow up! When you get a job then the picture will change for you or the job will change you or else you won't have that job.

Politeness goes far, yet costs nothing.”- Samuel Smiles

 
Old 01-04-2011, 06:31 PM   #18
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Quote:
Originally Posted by Kenny_Strawn View Post
Well when people submit threads asking for help with their programming they are *forced* to post their entire source code, aren't they?
Enlighten me Kenny! Where do you come up with this or how do you base the requirement?
 
Old 01-04-2011, 07:05 PM   #19
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791

Original Poster
Blog Entries: 62

Rep: Reputation: 56
Sorry onebuck; apparently my question was already answered by dugan.
 
Old 01-04-2011, 08:27 PM   #20
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by onebuck View Post
When you get a job
If ...
 
1 members found this post helpful.
Old 01-04-2011, 08:28 PM   #21
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,
@kenny
Your questions may have been answered but what about direct queries to you. How do you justify this position.

Last edited by onebuck; 01-04-2011 at 08:35 PM. Reason: misdirected so direct to kenny
 
1 members found this post helpful.
Old 01-05-2011, 01:00 AM   #22
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,223

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
Originally Posted by onebuck View Post
Your questions may have been answered but what about direct queries to you. How do you justify this position.
Onebuck, one of Kenny Strawn's merits is that he knows when to quit. The position he took in his first post was indefensible, and he should be allowed to drop it quietly if he wants to. Personally, I think it was the result of partying too hard during the New Year celebrations.
 
Old 01-05-2011, 01:25 AM   #23
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Rep: Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191
Quote:
I think it was the result of partying too hard during the New Year celebrations
Well only the hypocrites here would argue against this one ... LOL
 
Old 01-05-2011, 09:51 AM   #24
resetreset
Senior Member
 
Registered: Mar 2008
Location: Cyberspace
Distribution: Dynebolic, Ubuntu 10.10
Posts: 1,340

Rep: Reputation: 62
Quote:
Originally Posted by dugan View Post
Yes, it's crazy.

If it's a password to get into your system, you store a hash and a salt. When the you get a password to verify, you apply the salt to the password, hash the combination, and compare what you get to the stored hash.

If it's a password to get into another system, you store it in a configuration file and have your source code read that file.

In neither case do you put the password in your source code.


No, I was talking about passwords for MYSQL databases in PHP code. OK, I'll have to read what you said again to understand it , but how do I do all that in PHP?
 
Old 01-05-2011, 10:19 AM   #25
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,223

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Put the MySQL password in a configuration file, separate from the PHP source. Have your PHP read that file when it needs to.
 
Old 01-05-2011, 10:20 AM   #26
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
Quote:
Originally Posted by resetreset View Post
No, I was talking about passwords for MYSQL databases in PHP code. OK, I'll have to read what you said again to understand it , but how do I do all that in PHP?
file config.inc
Code:
$user=user;
$pwd=password;
$database=dbname;
$dbhost=dbhost(often localhost except on hosting providors);
index.php
Code:
require_once('config.inc');
$sqli = new mysqli($dbhost,$user,$pwd,$database);
hope this helps
even if you don't do something like that you can still replace usernames/passwords with dummy usernames/passwords when posting, most everyone, myself included does that, i even do that with IP addresses in config files/scripts for routers as not to reveal the internal workings of a network, it's called Redaction

Last edited by frieza; 01-05-2011 at 10:25 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Declare your independence from proprietary software (Or how to break the habit of proprietary software) LXer Syndicated Linux News 0 07-05-2006 01:54 PM
LXer: Why non-programmers should use Free Software LXer Syndicated Linux News 0 05-03-2006 12:03 PM
Maybe it didn't belong in the software/games forum... JoshNelson Linux - Newbie 0 03-05-2004 11:39 PM
Looking for real software programmers (emplyeed that is) coolman0stress Programming 2 11-24-2003 12:39 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration