Welcome Guest.   Make a donation to an author on the site October 23, 2014, 06:48:32 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2014! Download dozens of custom programs!
   
  Forum Home Thread Marks Chat! Downloads Search Login Register  
  Show Posts
      View this member's profile 
      donate to someone Donate to this member 
Pages: Prev 1 2 3 4 5 6 [7] 8 9 10 11 12 ... 76 Next
151  Main Area and Open Discussion / Living Room / Re: Employers asking job seekers for Facebook passwords on: March 22, 2012, 04:23:27 AM
Give it, then change the password when you walk out. Pointless.
"Oh maybe you typed it in wrong"
152  News and Reviews / Official Announcements / Re: So we gave up the March Ad Experiment Idea - What about a 7day mini fundraiser? on: March 21, 2012, 11:42:15 AM
What's involved? Do you need sponsors or what's a fundraiser for those who haven't paid attention cheesy
153  Main Area and Open Discussion / General Software Discussion / Tips / AMP / Virtual Sites on: March 21, 2012, 08:58:30 AM
The following assumes that you have a working SSH connection (alternatively use the terminal app)

You will need the following software:
HostEditor7 or HostMan (http://www.donationcoder....m/index.php?topic=27355.0)


TIPS

First, a nice tip: create a place for future shell scripts and add it to your local path
[copy or print]
mkdir ~/bin
sudo echo "export PATH=$PATH:~/bin" >> ~/.bashrc

I find it handy to install the following:
* support for unzipping archives
* lynx text browser for troubleshooting browsing via shell
[copy or print]
sudo apt-get install  lynx unzip



INSTALL APACHE & PHP

Install the  Apache Webserver with documentation, and PHP including secure suhosin 'advanced protection system'
[copy or print]
sudo apt-get install apache2 apache2-doc apache2-utils
sudo apt-get install libapache2-mod-php5 php5 php-pear php5-xcache php5-suhosin

MYSQL

Next up is mysql server and hooks for php
[copy or print]
sudo apt-get install mysql-server php5-mysql

You will be prompted for a root password, make sure to note it.
Test the configuration, then exit, and ensure you can login:
[copy or print]
mysql -u root -p

After installing MySQL, it's recommended that you run mysql_secure_installation in order to help secure MySQL. It is recommended that you accept the program's default answers. If you are prompted to reload privileges, select "yes." Run the following command to execute the program. After running mysql_secure_installation, MySQL is secure and can be restarted:
[copy or print]
sudo mysql_secure_installation && sudo restart mysql


APACHE - SETUP VIRTUAL SITES FOR YOUR WEB PROJECTS

I've created the following script that will make it really easy to setup a new website:

Formatted for Generic Code with the GeSHI Syntax Highlighter [copy or print]
  1. #!/bin/bash
  2. # version 1.0.0 - 21 march 2012
  3. echo "Specify hostname:"
  4. read AVS_HOSTNAME
  5. echo "Specify webmaster email for '${AVS_HOSTNAME}':"
  6. read AVS_WEBMASTER
  7.  
  8. echo "Generating directories in ${HOME}/projects/${AVS_HOSTNAME}..."
  9. mkdir $HOME/projects/$AVS_HOSTNAME/public_html -p
  10. mkdir $HOME/projects/$AVS_HOSTNAME/logs
  11. echo "Hello World! Another site saved." | tee $HOME/projects/$AVS_HOSTNAME/public_html/index.html
  12.  
  13. echo "Generating virtual host file:"
  14. <VirtualHost *:80>
  15.    ServerAdmin ${AVS_WEBMASTER}
  16.    ServerName ${AVS_HOSTNAME}
  17.    DocumentRoot ${HOME}/projects/${AVS_HOSTNAME}/public_html/
  18.    ErrorLog ${HOME}/projects/${AVS_HOSTNAME}/logs/error.log
  19.    CustomLog ${HOME}/projects/${AVS_HOSTNAME}/logs/access.log combined
  20. </VirtualHost>
  21. " | sudo tee /etc/apache2/sites-available/$AVS_HOSTNAME
  22. echo "Virtual Host file saved to /etc/apache2/sites-available/${AVS_HOSTNAME}"
  23.  
  24. echo "Enabling site and reloading apache..."
  25. sudo a2ensite $AVS_HOSTNAME
  26. sudo service apache2 reload

It performs the following tasks:
* asks you for the hostname and webmaster email
* creates the required directories in your home www folder
* generates a working basic virtual hosts file and saves it in the correct location
* enables the new site
* reloads apache with the configuration changes

open nano again and copy and paste the script into the file, then ctrl-x, y to save changes :
[copy or print]
nano ~/bin/addvirtualsite.sh

You can now run the following command to setup a new site (mind the spacing and dot):
[copy or print]
. ~/bin/addvirtualsite.sh

To make Windows aware of the new hostname add a line to your hosts file using HostEditor7. At the end of the file add the ip address of your VM followed by a space and the hostname/virtual site you created.

Open a browser and navigate to the hostname (http://test.devvy in my case). Congratulations!
[attachimg=#]
154  Main Area and Open Discussion / General Software Discussion / Configuring The System A Bit on: March 20, 2012, 08:50:53 AM
CONFIGURING THE SYSTEM A BIT

You will need the following software:
Putty (http://www.chiark.greenend.org.uk/~sgtatham/putty/)

I noticed the clock was set incorrectly, so I searched for Time and opened the Time & Date settings, and selected the correct location.

Open a terminal. We will make a backup folder in your home directory where we will copy configuration files to before we edit them:
[copy or print]
mkdir ~/backup

You will want to change the hostname  of the VM to something nicer, I choose 'devvy'
[copy or print]
echo "devvy" | sudo tee /etc/hostname

You will also need to run the following command and change the hostname on the second line from ubuntu to your name.
[copy or print]
cp /etc/hosts  ~/backup
sudo nano /etc/hosts

Apply the changes with the following command (you will see the change next time you open a terminal)
[copy or print]
sudo hostname -F /etc/hostname

Now that is out of the way, we can setup openssh in order to connect via ssh from your windows pc.
[copy or print]
sudo apt-get install openssh-server fail2ban byobu

Fail2ban bans people when they are trying to guess your logins, and does not need to be configured.
Byobu is a very helpful way to display system stats such as your ip in your terminal, and also improves on screen by allowing you to resume previous sessions.

The default setup of openssh is not as secure as we would like however:

[copy or print]
cp /etc/ssh/sshd_config ~/backup
sudo nano /etc/ssh/sshd_config

It's good practice to change the port number (line 5) to something higher like 2222 as this twarts some automated attacks, in case your VM is ever connected directly to the internet. Also we dont want the root user to login remotely:

Search (ctrl-w) for PermitRootLogin and set this to no:
[copy or print]
PermitRootLogin no

We will revisit this file at a later date to setup passwordless login using ssh keys, but for now Restart ssh with:
[copy or print]
sudo service ssh restart

Start Byobu and note your ip address (type exit to end it):

Press F9 and choose "Byobu currently launches at login (toggle on)" to enable this handy program for your remote connections. Press escape to exit.

Back in windows, start putty, type in that ip address and change the port to whatever you decided above. Under Connection > Data  you can enter the auto login username so you will only have to type the password. Navigate back to Session and type your hostname in the Saved Sessions box and press Save to save this session for reuse. Then click Open and login.
You will see your session again in byobu! Note that when you type in the putty session the characters show up on your ubuntu desktop.

That will do for now, next time we will setup apache, configure it for a multi-site setup, and setup other web software required for many websites.

Well done!
[attachthumb=#]
155  Main Area and Open Discussion / General Software Discussion / Installing Ubuntu on: March 20, 2012, 07:32:00 AM
INSTALLING UBUNTU

You will need:
Vmware player (http://www.vmware.com/products/player/ or if you don't want to register: http://filehippo.com/search?q=vmware+player)
Ubuntu (http://www.ubuntu.com/download/ubuntu/download)
A Notetaker - I use Evernote - http://www.evernote.com/)

Install VMware player (VMP). Restart the pc if necessary.

I'm installing the virtual machine on my USB harddisk, this way I can take my whole development with me on the go (home/work) - this is great because you only have to set all this up once, instead of on every machine you plan to use it on.

Start VMP and "Create a New Virtual Machine" and browse to the downloaded .iso. As part of the Easy Install Information write down the login:

username:
password:

Store the VM on your removable drive.

On the Specify Disk Capacity screen you will want to go higher than the recommended disk size, I chose double (40GB). Make sure you have enough free space available, check this before continueing. I went for double the recommended amount as I want to avoid to repartition later. Accept the other defaults and Ubuntu will start. Keep waiting as Easy Install is installing Ubuntu on your behalf.

If you are a chmod 777 user (jackpot settings), this is a great time to read up on file system permissions by reading the article series starting with "Linux File Permission Concepts" (click next in the summary, there are 5 articles in total):
http://articles.slicehost...-file-permission-concepts

After a restart the login screen appear and after a successful login you will see the desktop. Because we are going to install a bunch of software let's make sure everything we already have is up to date. Start the update manager > Settings > Ubuntu Software > Other > Select Best Server. This will speed up downloads. Check again and install updates.

Time to read some more, btw have you created a new tag for all these bookmarks yet?
When you are finished reading the above articles, here are some really good resources to read later:

http://articles.slicehost.com/sitemap
http://library.linode.com/
http://askubuntu.com/questions?sort=votes

You should now have a running Ubuntu system.
156  Main Area and Open Discussion / General Software Discussion / Setting up static blog (based on movable type) / vm / local development system on: March 20, 2012, 06:48:08 AM
I'm in the process of setting up a static blog, where all blogging takes place on a local development server running Movable Type, with the resulting static site being pushed to my shared hosting. This has all the benefits of a static blogging system (security, speed,), plus the benefits of Movable Type (robust, easier to theme than wordpress from my initial impresions, power of complete CMS, open source version available / pro version free for individuals).

I'm choosing to do this on a ubuntu 11.10 virtual machine running on VMware player. I thought it would be interesting to document the process and instructions so that it will be useful to others, and you can follow along / correct / improve this guide. Apart from a working static blogging system you will end up with a complete LAMP local development system for other web projects.

Feedback is welcome.
157  Main Area and Open Discussion / Living Room / Re: On Change Run Task - My first Windows desktop application on: March 19, 2012, 02:27:20 PM
Right click on the file and choose set action, you will be asked to browse to an executable. Sorry!
158  Main Area and Open Discussion / Living Room / On Change Run Task - My first Windows desktop application on: March 19, 2012, 11:52:22 AM
If you are the 1% of people that always wanted to run a program / batch file / autohotkey script when the contents of a file/script/text document/htm/css file changes, and you haven't found a program for it, then you might benefit of the program i've put together today: On Change Run Task.

OCRT is the smallest program that would still be useful for me that I could write using Visual Studio C# 2010 Express. (as it is my first one) I hope you find it useful. Thanks to kyrathaba for making the tutorials that finally got me started smiley)

Possible use cases:
* run your build batch file to compile and create a installation package whenever your auto hotkey script is updated. (reason why I made this)
* run a script to refresh your browser whenever your CSS changes.
* 1000 possible other obscure uses.

Future development will depend on my continued use and any interest from you. I managed to disable ClickOnce but it still requires .NET Framework 4 Client Profile, which you probably have already installed.
159  Main Area and Open Discussion / General Software Discussion / Re: Need help with server 2008 r2 website file permissions on: March 19, 2012, 05:21:55 AM
I've no experience with gpeasy but AFAIK the uploaded image will get the permissions of the owner of the process the cms is run under (well the upload process technically). So, for example, if gpeasy is run as through CGI then you need to look up what the user is that runs cgi apps under IIS. Maybe that will help?

Quote
gpEasy is very easy to install on many different servers. The requirements are PHP [...]
So how is php setup?
160  Other Software / C# / Re: Some nice C# tutorials by dc member kyrathaba on: March 16, 2012, 10:22:38 PM
Wanted to say thanks for these useful c# tutorials smiley
161  Main Area and Open Discussion / Living Room / Re: App Store fraud on: March 16, 2012, 09:07:54 PM
On your itunes store receipt you can "report a problem", that's how I got a refund before. Works fine you get a personal reply etc.
162  Main Area and Open Discussion / Living Room / Re: Download appears malicious - Google Chrome on: March 16, 2012, 04:03:51 AM
Update.
Still not sure how it happened. However, a solution is to join Google Webmaster Tools. After a few days the warning is no longer shown:
http://stackoverflow.com/a/9727960/997
163  Main Area and Open Discussion / Living Room / Re: Quickly see if DoCo is up or down on: March 13, 2012, 11:22:03 AM
http://www.isup.me/
164  Main Area and Open Discussion / Living Room / Re: Download appears malicious - Google Chrome on: March 13, 2012, 09:20:23 AM
I made sure my executables are not compressed at all, in this case it maybe has to do with the innosetup executable not being signed with a level 2 object code signing certificate?
http://stackoverflow.com/...s-malicious-file-warning/
165  Main Area and Open Discussion / Living Room / Re: Premium Number To Local Rate Number! *(UK)* on: March 12, 2012, 09:43:51 AM
I'm sure it's fine but you don't want to think you are calling your bank and instead call a fraudster and give out personal information. That's why I was asking. smiley Just research the phone number before you call it.
166  Main Area and Open Discussion / Living Room / Re: Premium Number To Local Rate Number! *(UK)* on: March 12, 2012, 07:14:45 AM
How do you find out when calling an 0870 number what the equivalent local one is? AFAIK it doesn't show up on your phone. So if it is not possible how are these phone numbers added / verified?
167  Main Area and Open Discussion / Living Room / Re: Download appears malicious - Google Chrome on: March 12, 2012, 07:06:45 AM
I've found an explanation of the 'feature', but no solution:
http://chrome.blogspot.co...1/speed-and-security.html
Quote
To help protect you against malicious downloads, Chrome now includes expanded functionality to analyze executable files (such as “.exe” and “.msi” files) that you download. If a file you download is known to be bad, or is hosted on a website that hosts a relatively high percentage of malicious downloads, Chrome will warn you that the file appears to be malicious and that you should discard it. We’re starting small with this initial Beta release, but we’ll be ramping up coverage for more and more malicious files in the coming months. Remember, no technical mechanism can ever protect you completely from malicious downloads. You should always be careful about which files you download and consider the reputation of their source.
Emphasis added. Excuse me.

I'm now verifying my site with mywot.com and google webmaster tools, will see if Google flagged any downloads. If not, clearly they should use a blacklist approach not whitelist.

update: ok done: Google has not detected any malware on this site. Guess they're just flagging for the hell of it. Guess  You should always be careful about which browser you download and consider the reputation of their source.
168  Main Area and Open Discussion / Living Room / Download appears malicious - Google Chrome on: March 12, 2012, 05:33:15 AM
Anyone seen this before?
[attachimg=#]

It's just an autohotkey compiled script (no executable packer) inside an innosetup executable. Jotti tells me there are no viruses found, so why is Google Chrome not happy?

Chrome's learn more links goes to http://support.google.com...hl=en-GB&answer=99020 but it's typically unhelpful. Any ideas?
If now we have to petition the browsers as well as the virusscanners I will have to switch platforms..
169  Main Area and Open Discussion / Living Room / Re: Moar lightsabers plz on: February 27, 2012, 03:30:53 AM
Need moar lightsabers smiley
170  Main Area and Open Discussion / Living Room / Re: Steve Jobs is not dead... Minimalistic UI Madness Never dies. on: February 22, 2012, 06:14:03 AM
I always thought that steve's minimalistic approach towards UI is going to live forever.
Where did get that from? Steve Job hasn't been minimalist towards UI design for the last decade.
171  News and Reviews / Official Announcements / Re: I want to try an experiment on the site for March 2012 on: February 17, 2012, 08:35:40 AM
I think that your success will depend a lot on where you put the ads. Do you have an example of an textad and where were you thinking of placing them?
For example put them on the right hand side and people will probably ignore them.
Put them in between the opening post and any comments could work very well but is a lot more noticable.
Put them after the thread but before the comment box and that might be a good balance to have eyeballs but not interrupt the reading.

If you want to discuss also similar ideas, you could think about dc member sponsoring a form board using their donation coder credits.
172  Main Area and Open Discussion / General Software Discussion / Re: Fork webpages? on: February 17, 2012, 07:34:09 AM
I guess you can capture it with onenote, evernote etc, diigo. But if there was a webservice where you could see everyone's comments/updates on the pages that would rock. usually someone will have done the work.
173  Main Area and Open Discussion / General Software Discussion / Fork webpages? on: February 17, 2012, 05:23:33 AM
I’m looking for something a bit unusual. Say you are following the instructions for installing a software package (rl example: http://library.linode.com.../webmin/installing-webmin). Now you find out the instructions are outdated, or incomplete.

How do you keep your notes/additional instructions together with the original? Now you have two problems, your instructions and the original can be updated independently. What happens when the original is updated, or a new version of the software is released?

Wouldn’t it be great if you could fork the webpage and update it (or even submit a pull request to the maintainer)?

Is there any practical way of working this way – or will I be stuck with a notetaker / blog / bunch of outdated textfiles?

A lot of questions – maybe one of you has the answer.
174  DonationCoder.com Software / Post New Requests Here / Re: Level - Copy files from various sources into one flat folder on: February 16, 2012, 02:43:08 AM
If you want to play with the latest source, you can now fork from Bitbucket:
https://bitbucket.org/svandragt/level

I'll keep posting executable releases in this topic when they're available.
175  DonationCoder.com Software / Coding Snacks / Re: Svn Conflicts Backup - Redo your subversion conflict resolves on: February 15, 2012, 02:55:31 AM
If you want to play with the latest source, you can now fork from Bitbucket:
https://bitbucket.org/svandragt/svnconflictsbackup

I'll keep posting executable releases in this topic when they're available.
Pages: Prev 1 2 3 4 5 6 [7] 8 9 10 11 12 ... 76 Next
DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.065s | Server load: 0 ]