Showing posts with label howto. Show all posts
Showing posts with label howto. Show all posts

Friday, February 07, 2014

Smart Passive Income #233 - eHow et al ... continued

This blog moved to a new location, please visit us at http://ramble.m2m.at.
 
Pat revisits the "eHow" topic ... writing for revenue sharing web sites ...

Why should you write for others when you could use your own blog?

  • You are not limited to a certain topic ... your own blog should target a certain topic and not cover everything from knitting to quantum physics ...
  • You only have to provide the content ... the rest like maintaining the blog, adding affiliate links, advertisements, is covered by the provider ...
  • You are not alone ... there is a community which might be able to provide some support, and the site will already have traffic to send visitors to your articles ...

Pat has also some advise on what to consider when choosing a site:

  • Check the website traffic (amount and trend) ... it's useless to write for a site nobody is reading ... that would be no different than starting a completely new blog ...
  • Check the revenue sharing model ... what do you earn when for doing what ...
  • Check the analytics provided by the provider ;) ... does the provide tell you what you earn when for which content, which article performs best, ...
  • Check the copy right model ... do you retain the rights to your articles?
  • Are you allowed to place your own affiliate links?
  • Are you allowed to place backlinks to your own sites?
  • What's the community and the stuff like?


Saturday, December 14, 2013

Smart Passive Income #146 - Reasons to use Passive Income

This blog moved to a new location, please visit us at http://ramble.m2m.at.
 
But recaps how passive income works in a video presentation (Remember: Setup a product once using an automated process to sell it ...) and he stresses why it's the proper business model for him:
  • It's cheap and easy to setup
  • It's low risk
  • You do not have to add additional work once the process is setup
  • It works parallel to a nine-to-five job
  • It works 24/7
  • It's easy to test new strategies
  • You can use multiple passive income streams
  • You get more time and freedom 
... and he provides his #1 Adsense tip: Not to use Adsense, but search for people willing to advertise on your site for yourself ...

Tuesday, October 01, 2013

Smart Passive Income #25 - Revelation - The One and Only Secrete Behind Passive Income

This blog moved to a new location, please visit us at http://ramble.m2m.at.

What's passive income?
You create a product. You setup a process to let customers consume that very product without intervention from your end. You earn money without needing to do anything else.

What's the big secret behind?
!!!Automation!!! The essential part is that your process is automated, and you do not have to intervene. If you have to handle every product for every single customer yourself, it is not passive any more.

If your process is automated, you do not be part of the actual selling process any more, and it does not matter if you have a single customer or 100.000 ... AUTOMATION ...

Friday, September 27, 2013

Smart Passive Income #20 - Delegating

This blog moved to a new location, please visit us at http://ramble.m2m.at.

Doing everything yourself and trying to know everything is bad, ... Pad says so ... I believe him ... but ... actually I like to know everything - or at least to find out how something works - that's the reason why I became self-employed ...

Of course time is money, if you spend time doing something, which somebody else could do faster and cheaper for you ... and you could actually do something else - earning more money - instead ... that's reasonable ...

... however ... (there seems to be always an however, if you just don't want to acknowledge that somebody else is right) ... how are you able to trust this other people that they will do the work like you want it ... how to know that they would actually be more efficient ... .... all these trust issues ... and when you have "no" money at the beginning of our entrepreneurial carrier (or even when you have started already some time ago) ... well, this will take some introspection ...

How-To Update phpList

This blog moved to a new location, please visit us at http://ramble.m2m.at.

phpList an open-source newsletter manager, with lots of features - the best of them: it's free ...

... like with Tiny Tiny RSS, when install phpList on your own server, you need to keep the software up to date.

How you are going to updated depends strongly, on how you have installed the software. For this how-to I assume the source code is installed outside the web root and is symbolically linked to.

e.g.
lists -> ../phplist-3.0.3/public_html/lists/
How to update phpList?
First backup your current installation as well as the database.

Let's say your current installation version 3.0.3 is at phplist-3.0.3, you do not need to create a copy because we will not change this installation at all.
To create a backup of your current database use your favorite tool, e.g. phpMyAdmin

or by command line
mysqldump -u [db-username] -p phplist > phplist-3.0.3.sql 
 Download the new version and unzip it:
tar -zxf phplist-3.0.4.tgz
If you did any changes on the old source code compare the old and new versions to see which changes you need to apply to the new version:
diff -rq phplist-3.0.3 phplist-3.0.4 > diff.txt
Most likely you will have changed (repaired?) the styles and language files. Copy your "old" configuration file to the new version:
cp phplist-3.0.3/public_html/lists/config/config.php phplist-3.0.4/public_html/lists/config
Checkout if there are new settings you might want to include.

Next, create a dummy sym-link in your web folder to see if everything works fine, e.g.:
ln -s ../phplist-3.0.4/public_html/lists newlists
Enter the admin interface and click on "upgrade" ... if there are no further problems with the layout, etc. link also your working directory to the new version, e.g.:
rm lists; ln -s ../phplist-3.0.4/public_html/lists lists
... and done ...

Sunday, July 15, 2007

Apache with Security Enhanced Linux

This blog moved to a new location, please visit us at http://ramble.m2m.at.

From Quick HOWTO : Ch20 : The Apache Web Server:
Fedora Core 3 introduced the concept of security contexts as part of the Security Enhanced Linux (SELinux) definition. A Web page may have the right permissions, but the Apache httpd daemon won't be able to read it unless you assign it the correct security context or daemon access permissions. Context-related configuration errors will give "403 Forbidden" browser messages, and in some cases, you will get the default Fedora Apache page where your expected Web page should be.
... to view the security context:
ls -Z
... to set web context for the current folder and it's sub folders:
chcon -R -h -t httpd_sys_content_t .

Friday, July 13, 2007

Controlling Access to Services

This blog moved to a new location, please visit us at http://ramble.m2m.at.

ntsysv

This is a text-based application that allows you to configure which services are started at boot time for each runlevel. Non-xinetd services can not be started, stopped, or restarted using this program.

chkconfig

This is a command line utility that allows you to turn services on and off for the different runlevels. Non-xinetd services can not be started, stopped, or restarted using this utility.

[excerpt from Red Hat Enterprise Linux Deployment Guide]

Tuesday, January 09, 2007

Wonders of Typo3

This blog moved to a new location, please visit us at http://ramble.m2m.at. 

A lot of people complain about Typo3. They say it is too heavy for a CMS. Perhaps they are right - it is not for script kiddies. It takes some time to get used to it. But it pays!

Today a customer complained, that one of his pages in Typo3 was missing completely. He was right, it was not there any more. What happened, was that one of his employees accidentally deleted the wrong page. No problem for Typo3.

Unfortunately there was no content versioning enabled, which made it a little bit more work:
- open the database
- find the page (write down the pid)
- change deleted from 1 to 0
- do the same for all content entries for that pid
- open the administrator of Typo3
- move the page to its correct location
- reposition the content inside the page
... done in 5 minutes

Monday, January 08, 2007

Howto shutdown Linux box automatically?

This blog moved to a new location, please visit us at http://ramble.m2m.at.

Do it once:
e.g. shutdown your linux box at 7:30 January 10th:
at 7:30 jan 10
> shutdown -h now
> CTRL-D
... make sure the at daemon is running:
/etc/init.d/atd start or rcatd start for SuSE
... and check your at queue:
atq
Do it regularly:
e.g. kill your computer every day at midnight (to make sure you get enough sleep):
crontab -e -u root
> 0 0 * * * /sbin/shutdown -h now
... save and exit ...

Typo3 Sitemap Hacks

This blog moved to a new location, please visit us at http://ramble.m2m.at.

The creation of site maps in typo3 is pretty straight forward. You can either use the built-in site-map function or the extension fl_seo_sitemap. The later has the advantage to be adjustable using CSS.

Have a look at en example for a human readable site map.

For the automatic creation of a site map for google in XML format, there exists another nice extension mc_googlesitemap. It provides functions not only to create site maps for the pages inside the typo3 CMS but also for database content such as news items. At our system, the site maps for content items did not work at first. A look at the source code showed the problem. We did not have the news items assigned to a news category. After doing so the site map worked.

Here are examples for a google site map for pages, a google site map for content items, and finally a google site map which links the other two together.

Saturday, January 06, 2007

MediaWiki Hacks III

This blog moved to a new location, please visit us at http://ramble.m2m.at.

To integrate RSS feeds there are a couple extensions for MediaWiki. The most up to date extension seems to be GISWiki/RSS which uses Magpie RSS as back end to fetch the RSS feeds.

To enable blogger atom feeds some tweaks are necessary to match the different formats:

Find the comment "# Bild items" and enter the following lines into the following foreach loop:
if (isset($item['atom_content'])) {
 $item['description'] =& $item['atom_content'];
 $item['date_timestamp'] = parse_w3cdtf($item['published']);
}
Above the "# Bild items" comment there is another foreach loop. Place the following lines inside that loop right after the if statement.
if (isset($item['atom_content']) && $item['atom_content']) {
 $description = true; break;
}
Because we did not want to show the complete description we added the following function to truncate the text:
function mTruncate($string, $length = 200, $etc = ' ...') {
 if ($length == 0) return '';
 $string = strip_tags($string);
 if (strlen($string) <= $length) return $string;       
 $length -= strlen($etc);       
 return substr(preg_replace('/\s+?(\S+)?$/', '',     
   substr($string, 0, $length+1)), 0, $length).$etc; 
}
To activate the truncate function we changed the following line
if ($text) $output.="\n$text";
to
if ($text) $output .= "\n" . mTruncate($text);
multilang breaks NOSECTIONEDIT magic word
To fix this we had to add the following line:
  $parser->mOptions->mEditSection = false; 

Thursday, January 04, 2007

vi - goto line n

This blog moved to a new location, please visit us at http://ramble.m2m.at.

To go to a certain line in vi enter the line number and then G ...

Wednesday, January 03, 2007

MediaWiki Hacks

This blog moved to a new location, please visit us at http://ramble.m2m.at.

New Start Page with $wgUseDatabaseMessages = true
Go to MediaWiki:Mainpage and enter your new star page.

New Start Page with $wgUseDatabaseMessages = false
Add the follwing code to your LocalSettings.php file:

if (empty($_GET['title'])) $_REQUEST['title'] = 'NewStartPage';

Multi-Language Extension for MediaWiki
http://www.mediawiki.org/wiki/Extension:Multilang

Change Sidebar with $wgUseDatabaseMessages = true
Go to MediaWiki:Sidebar and enter your changes.

Change Sidebar with $wgUseDatabaseMessages = false
Add your changes in Messages.php and all MessagesXX.php you use.

Saturday, December 09, 2006

mark messages as unread

This blog moved to a new location, please visit us at http://ramble.m2m.at.

Found at a FAQ at the University of Michigan:

How can I mark messages as unread in Pine?
  • First you must set the flag command option. From Pine's main menu:
  • Type s (Setup).
  • Type c (Config).
  • Move the cursor down to highlight the enable-flag-cmd option, and type x to enable it if it is not already.
  • Type e to exit the configuration screen.
  • Go to your INBOX, highlight the message you want to mark, and type *
  • Type n to mark the message as new.

Tuesday, November 14, 2006

Find Files

This blog moved to a new location, please visit us at http://ramble.m2m.at.

To look for files older than a day:
find . -mtime +1
To look for files NOT older than a day:
find . -mtime -1
"." -> this folder and its sub folders
"-mtime" -> modification date
"+/-" -> older or newer
"1" -> number of days

Monday, November 13, 2006

44 Rules for Server Administration

This blog moved to a new location, please visit us at http://ramble.m2m.at.

The recent German Linux Magazin had a nice article about rules for server administration.

basics:
  1. use different machines for services which need the same performance resources
  2. monitor your services
  3. limit your swap processes
  4. do not waste memory installing unneeded applications
  5. separate partitions for system, logs and data
  6. log everything
  7. save the configuration before any change
  8. keep static content in the cache
  9. stop intruders at the firewall
  10. use port knocking
web server:
  1. choose the multi-processing module which fits your CPUs
  2. use caching
  3. limit usage of .htaccess
  4. do not use symbolic links
  5. do not use lookups
  6. optimize MaxClients
  7. do not log everything
  8. use sendfile
  9. use MMAP
  10. switch of server-status
mail server:
  1. limit the number of instances
  2. use the spam filter enabled RAM disk
  3. cache DNS requests
  4. use postfix only once per mail
  5. use reject_unkown_sender_domain
  6. only use local data for postfix lookups
  7. use rate limiting for clients
  8. kick problematic mails
database server:
  1. use the correct index type
  2. delete an unneeded index
  3. optimize your tables
  4. optimize your SQL statements
  5. use soft parsing
  6. limit the size of your tables
  7. separate OLTP and DSS
  8. use persistent connections
  9. be careful with the timing of batch jobs
  10. monitor the number of connections
samba:
  1. do not touch your configuration
  2. provide enough RAM
  3. monitor the network
  4. activate Oplocks
  5. use Winbind
  6. deactivate "case sensitive"
Read the article it is really nice.

Sunday, November 12, 2006

File Scrubber for iLiad

Copying files from Mac OS X to the iRex iLiad reader creates .DS_Store files and ._ files on the iLiad. Sometimes this seems to be a problem - some PDFs could not be opened any more. Unfortunately those files are not visible in the OS X finder. Connecting the iLiad to an WinXP computer allows to remove them but it is really clumsy having to use multiple computers.

Matt Jadud, wrote an OS X a application called iliad-scrub which runs through the iLiad folder and cleans the files automatically. Thanks Matt!

Friday, November 10, 2006

chm to pdf

CHM - Microsoft Compressed HTML Help - is a proprietary format for online help files, developed by Microsoft. Viewing CHM files using other operating systems is sometimes a little bit difficult.
Recently a CHM plug-in appeared for firefox which should be some help.
Sometimes it is still necessary to convert CHM files into other formats. While there are quite a lot of applications which could do that easily on Windows, it is still tricky for non-Windows systems.

e.g. for Mac OS X or other UNIX based OS

First you have to unpack the html files.
  1. Download the chmtools package.
  2. Unzip it: tar -zxf chmtools.tar.gz
  3. Go to the chmtools folder: cd chmtools
  4. Compile it: make
  5. Move the new command somewhere you can easily access it (you might have to become root to be able to do that), eg: su; cp chmdump /usr/bin
Step 1. to 5. you have to do only once.
  1. Now it is time to unpack the CHM file, eg: chmdump file.chm newFolder
Now we have to install two software packages which will do the actual html to pdf conversion.
  1. Download the fltk source (should be version 1.1 or above)
  2. Unzip it, eg: tar -yxf fltk-1.1.7-source.tar.bz2
  3. Go to the fltk folder, eg: cd fltk-1.1.7
  4. Compile it: make
  5. It could be you need to configure the compile process for your system - have a look at their manual.
  6. Install the new commands (you have to become root to be able to do that), eg: su; make install
  7. Download the htmldoc source
  8. Unzip it, eg: tar -yxf htmldoc-1.8.27-source.tar.bz2
  9. Go to the fltk folder, eg: cd htmldoc-1.8.27
  10. Compile it: make
  11. It could be you need to configure the compile process for your system - have a look at their manual.
  12. Install the new commands (you have to become root to be able to do that), eg: su; make install
Step 7. to 18. you have to do only once.
  1. Now look for the html files in the folder chmdump created.
  2. Go there, eg: cd newFolder
  3. Now you have to create a batch file containing all the html files you want to have in your pdf. Eg: ls *.thml > test.book
  4. Sometimes the files are not in the order you like. Use your favorite text editor to adjust that.
  5. Add the following two lines at the top of test.book to adjust the layout the pdf. The given format is best if you want to use the pdf file on your iLiad reader.
#HTMLDOC
-t pdf --webpage --size 12x15cm --pscommands --gray --jpeg -f test.pdf
  1. Run the batch file: htmldoc --batch test.book
  2. The result should be a pdf file called test.pdf.
Have fun

Monday, October 16, 2006

The Power of Touch

This blog moved to a new location, please visit us at http://ramble.m2m.at.

If you are using Linux or some kind of Unix you properly have noticed the command touch.
touch [-acm] [-r file] [-t [[CC]YY]MMDDhhmm[.SS]] file [...]
Mostly it is used to create empty files, e.g. to create an empty file called new.txt:
touch new.txt
But it can much more. Originally it was build to manipulate the modification and access times of files. E.g. if you want to trick make to recompile a project just touch a file:
touch project.c
Sometimes if you work with NFS drives of servers with asynchronous time stamps, some applications do not recognize updated files and will work with a cached version for some time. Then you can use touch as dirty work around, e.g.:
touch -m 209901018000 cachedfile.txt
Or give a whole folder identical timestamps.

Have a look at the man page for more information.