Archive for the ‘Tips’ Category

Fine Control of FreeBSD port

Saturday, August 2nd, 2008

MASTER_SITES controls where the port fetches its source from. By setting MASTER_SITE to the site of a known good source code tarball, you can control where the port downloads from. For example, if you use the command make MASTER_SITE=ftp://ftp2.freebsd.org/pub/FreeBSD/distfiles, then fetch will attempt to pull the distfile directly from that site.

If you want to pull the distfile directly from a FreeBSD repository, you can specify MASTER_SITE_FREEBSD=YES. The distfile probably exists there. Most FreeBSD mirrors are already heavily loaded, so please avoid this.

Probably the most useful option for maintainers of large FreeBSD networks is MASTER_SITE_OVERRIDE. The network administrator can build a central repository of important distfiles on a local server. The site listed in MASTER_SITE_OVERRIDE is checked for distfiles before any remote sites are contacted. This saves on exterior bandwidth and makes fetching distfiles more reliable.

For more details go here.

MySql first time installation

Saturday, August 2nd, 2008

This is what you have to do after your mysql binary installed on your FreeBSD or Linux machine.

freebsd02# mysql_install_db –user=mysql

WARNING: The host ‘freebsd02.acskl.com’ could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
Installing MySQL system tables…
OK
Filling help tables…
OKTo start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your systemPLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/usr/local/bin/mysqladmin -u root password ‘new-password’
/usr/local/bin/mysqladmin -u root -h freebsd02.acskl.com password ‘new-password’

See the manual for more instructions.
You can start the MySQL daemon with:
cd /usr/local ; /usr/local/bin/mysqld_safe &You can test the MySQL daemon with mysql-test-run.pl

For FreeBSD, do not forget to add the following to your /etc/rc.conf :

mysql_enable=”YES”

cd mysql-test ; perl mysql-test-run.plPlease report any problems with the /usr/local/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com

Howto setup FreeBSD behind a http proxy

Friday, August 1st, 2008

If you are installing some package using FreeBSD port, it is going to download the package from the internet using fetch. If you machine is behind a proxy, you have to set the environment for HTTP_PROXY :

setenv HTTP_PROXY http://your_proxy_server:port

or add the line to your .cshrc

If the proxy need authentication, add HTTP_PROXY_AUTH :

setenv HTTP_PROXY_AUTH ‘basic:*:<username>:<password>’

then reboot your machine.

How to send email with attachment using unix command line

Tuesday, July 29th, 2008

You need a third party package called mpack. Then, at the command line:

mpack -s ‘the subject’ -c application/octet-stream filename_to_attach  destination@domain.com

The 5 W’s Of Persuasive PROPOSAL Writing

Saturday, April 5th, 2008

As with a verbal sales presentation, your written sales presentation should have a beginning, a middle and an end.The beginning addresses the prospect’s situation, thanks them for the opportunity and identifies with their specific needs.

The middle includes all the selling information about your product/service and company and …

The end includes the “move forward” strategy including an action plan and “the next step”.

It should also address the 6 questions of selling:

“Who, What, When, Why, Where and How”

.. or more specifically:

What products and services do you sell?

Who is your target market?

Read the rest »

How to become a good sales person

Monday, March 24th, 2008

Today’s customers are more fastidious than ever before. Not only are customers now more demanding, but they are also less forgiving as well, which means that a sales person has only one shot at making a good impression the first time around. In this fast paced high tech world where decisions are based on snap second judgments, the importance of a good sales person cannot be denied. The job of a sale person is now tougher than it has ever been. So the question now arises how does one become a good sales person? How does one become a better seller? The answer to these questions is actually quite simple. Be proactive.

Being proactive means that you as the seller, need to take the first step. You need to initiate the deal, you need to help the customer choose and you need to help the customer make a decision. However by being proactive, we do not mean being pushy. Being proactive means that you take the first step only, it does not mean enforcing your opinions on your customers, because no customer would ever like that. A good seller is one who understands the psyche of his clients and knows what to say when. Good sales is therefore all about ‘being judged by what you do and not by what you say.”

So then how do you become a good sales person? Well, read the following tips and find out: Read the rest »

How to create a favicon (Favourite Icon)?

Wednesday, August 29th, 2007

A favicon is a small icon that appear next to a website url in the browser. The size is just 16×16 pixel. Very small. I was wondering how to create that. Then I start searching and found a few tutorials on how to create a favicon. You can use Adobe Photoshop with plugin from Telegraphics installed. I used this one to create mine.

There are many websites that offer the service to create this favicon from image file, and the one that I like is dynamic drive favicon generator. Search engine is great.

Yahoo's Favicon

How to search mp3 files effectively

Thursday, August 23rd, 2007

mp3

Google (and many other search engines) has the ability not only to search on keywords, but also using a more advance query language to really narrow down your search results.

If we know the technic, we can search faster. For example, you are a fan of Shakira and want to find one of her songs, let say Hips Dont Lie. Try enter this query to google search box:

intitle:index.of “mp3″ +”shakira” -htm -html -php -asp “Last Modified”

or

intitle:index.of “mp3″ +”hips dont lie” -htm -html -php -asp “Last Modified”

If you’re lucky, from the google’s first few results you can download your MP3.Just change the format from mp3 to ram,ra or whatever , even video format such as avi,mp4 etc.

I’ve created a tool to skip those unfriendly query. For sure there’re a lot of similar tool out there, but using tool that I created myself just feel nothing but good.

Try the MP3 Search Tool.

Software Blogs - BlogCatalog Blog Directory