Posts

Showing posts with the label Tips

Add Read More Link When Someone Copy Paste Your Content

Image
Few days before when i was surfing for the latest news and I noticed(you may have also noticed that) if you copy and paste any text from the site a reference link is added at the bottom of the copied content,indicating the source from where you have copied that.  I was surprised and was sure that i have copied only content then how that link also copied and then tried to figure out how it happened and how to do it. I figured out that they use a service called " Tynt ". Ya its cool but who wanted to use it.After all we are developers so i just wanted to see if we could make it happen by using JavaScript and hurray it was possible.  One function needs to grab the copied selection, tack on a copyright notice and then add the two to the clipboard.  <script type="text/javascript"> function addLink() {      var body_element = document.getElementsByTagName('body')[0];      var selection;      selection = window.getSelection(); v...

Decrease Page Loading Time

Image
Today we are going to talk about how to improve web page speed or how to decrease the loading time. Generally Users are enamored with speedy websites, and if  any  site responds very  slowly, visitors lose their patience and are less likely to come back. Improvement in page loading speed is not only useful for the site users but also for the search engine rankings as well. Google announced that from now website speed will also be included in their search ranking algorithms. So below are some of the solutions which help you in decreasing web page load time. 1. Website’s  Current Speed Analysis The very first thing that is required  is to analyze your current web  page speed. This will allow you to track improvements and ensure that changes mae by you improves page load times. So many free tools are available to check how much time your site takes to load.Below are a few of them: • Pingdom :  provide an easy  site speed test that which shows the wa...

How to mount LVM partition in Debian/Ubuntu

How to mount LVM partition that just appended into system? Just follow below steps and get it! Install package:lvm2 if you did not enable it. $ sudo apt-get install lvm2 Load the necessary module: dm-mod. $ sudo modprobe dm-mod Scan LVM volumes in your system. $ sudo vgscan or $ sudo pvs Activate the LVM volume. $ sudo vgchange -a y [LVM Group] Find the logical volume. $ sudo lvs or $ sudo lvdisplay /dev/[LVM_group_name] Mount the logical volume you want access it. $ sudo mount /dev/mapper/[LVM_group_name]-[LVM-logical-volume-name] /mnt -o ro,user You can access the LVM partition now in /mnt. Enjoy it. :-)

Battery Saver Apps for Android Phones

Image
Do you want to find a solution for saving battery of your Android phone? Looking for a perfect solution? I also wanted to find the solution for the same.So,I searched for the battery saver apps for android phones and I found many solutions, but among them the best that I liked are given below. These are the apps that saves your battery by intelligently and extends your battery life. JuiceDefender – Battery Saver It is a powerful and easy to use power manager app that also extends the battery life of your android device. Battery Defender – Battery Saver It is very easy to use. A battery saver app that extends your battery life. Easy Battery Saver It is a powerful and easy to use power manager app that saves your battery by intelligently and extends your battery life. One Touch Battery Saver It provides “power saving” mode to activate the mode if the power is insufficient in your device. Battery Dr saver + a task killer It will improve and max your battery life. GreenPower Battery Saver ...

Apache X-Forward-For settings for behinding reverse proxy

Add following settings into your httpd.conf or the configuration file in sites-available that linked to sites-enabled. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy  SetEnvIf X-Forwarded-For "^.*\..*\..*\..*" forwarded  CustomLog "logs/access_log" combined env=!forwarded CustomLog "logs/access_log" proxy env=forwarded After saving the settings, restart your httpd and you should see the real client IP in access log.

Keep updated yourself with business executives

Image
Do you want to keep in touch with the business biggies? If yes, then ExecTweets is the right place for you. It is a great source that collects & provides the tweets of top business executives and IT professionals. Its  very easy way to keep in touch with the business biggies.You will get all at one place. Contains 1) Tweets of top business execs. 2) Hot IT topics. 3) Very Nice Executives Communities 4) Get in touch with all execs at one place Keep in touch with ExecTweets Find & follow top business execs on twitter Website URL :     ExecTweets Follow it    :   @exectweets

Sending Mail from Localhost

Image
For this solution you requires sendmail.exe (Its a CLI executable  which accepts email from PHP, connects to an SMTP server and sends email). Download the sendmail.zip and follow the steps given below: Step:1 Configuration of sendmail file First of all create a folder named “sendmail” in “C:\wamp\”. Now extract these 4 files: “sendmail.exe”, “libeay32.dll”, “ssleay32.dll” and “sendmail.ini” in the newly created folder. Open the “sendmail.ini” file and you have to configure it as following smtp_server=smtp.gmail.com smtp_port=465 smtp_ssl=ssl default_domain=localhost error_logfile=error.log debug_logfile=debug.log auth_username=[your_gmail_account_username]@gmail.com auth_password=[your_gmail_account_password] pop3_server= pop3_username= pop3_password= force_sender= force_recipient= hostname=localhost Here, no need to specify values for these properties:pop3_server, pop3_username, pop3_password, force_sender, force_recipient. Step:2   Gmail Account Setting Now what y...

How to Disable Notification Sounds on Facebook?

Image
Facebook notifications.They  are the best way to alert you on the latest updating on your Facebook profile.It includes all the things means posts, status messages, comments, chat and all. But it would be annoying and sometime  distracting too if you are continuously receiving notification sounds on Facebook. But luckily there is a option in the ‘Account settings’ that will allow you to disable all the notification sounds on Facebook. STEPS TO FOLLOW :  1. Look at the top-right corner of the page, you will find the ‘wheel icon’ . Now click on it and then choose ‘Account Settings’ from the drop-down. 2. Now, on the left hand side, click on the ‘Notification’ option. 3. Next, in the sub-section, you will find ‘How you Get Notifications’ menu.Here you  will see different options like      • On Facebook: All notifications, sounds on     • Email: Only important notifications     • Push notifications: Some notifications ...

How to Compress PNG Images without Loss of Quality?

Image
PNG ( P ortable N etwork G raphics) files are famous for their lossless image format. But there is one disadvantage to having .png image files,say for example, the resulting file size of PNG files can sometimes be larger than the JPEG files.I was dealing with PNG images for reducing their size but I didn’t want to compromise with their quality.While searching for this,found one amazing tool named “ PNGGauntlet ” -  a free Windows utility that helps in reducing the size of PNG files without affecting its quality. How to use PNGGauntlet ? • You must have Microsoft .NET framework 4.0 or higher on your system in order to use PNGGauntlet. • Once both of them get installed, simply launch the tool and add the PNG files that you want to compress. Batch compressing is also supported. • Next, select the output directory (where the compressed PNG files should be saved) • Click ‘Optimize’ button. When I was searching for the solution to accomplish my requirement,I found one Online tool  t...

Private Browsing

Image
  Before explaining this topic in detail , let me tell you something which is related  and really needed to understand the importance of this topic. You are reading this post it means at least you know how to browse internet, but here i am going to introduce new thing which is very useful in terms of security. When you browse the web, following details are stored either  in the browser cache or in your hard-disk: • History of Browsing. • Cache memory items • Cookies • Login Details You may have solution for this like “Clearing all the History”. But when you are accessing internet from insecure places like others computers, using  public Wi-Fi, cyber cafés , making transaction etc.,there is always risk of leaving trace of the websites you visit. In such cases the ‘Private Browsing ’ comes into the picture. Private Browsing allows you to browse the Internet without saving any information about which sites and pages you’ve visited. What does Private Browsing not save? •...

Delete all trailing whitespace in VIM

Delete all trailing whitespace (at the end of each line) :%s/\s\+$//

[Note] Useful shortcuts for Awesome window manager

mod + shift + tag-number: move window to specified tag number. mod + ctrl + shift + tag-number: duplicate window to specified tag number. mod + shift + ,: move window to left/previous tag number. mod + shift + .: move window to right/next tag number.

Tips And Tricks To Get A Web Design Job And Various Online Job Alternatives

Are you hoping to have a job in web design or web development? If that's the case, I bet you will agree that it's quite effortless to get hung up on the title of the job you happen to be seeking out. Let us take for instance, most of the time web design companies just like website designer Louisville, get requests from people who wished to become "web designers" or "web developers". The tricky part is that they may already be established to acquire a job in the industry of website design, yet for the reason that wouldn't consider anything which doesn't have the title "Web Designer", they cannot or may find it difficult to get a job. Seeing that there are a lot of jobs found in the web industry, a person simply would need to figure out how to look for them. Here are several tricks to finding a great web jobs. The initial thing that you will need to examine is the job titles. Certainly, in the event that the word "web" is in the tit...

Top 10 Tips for Choosing a Web Designer for Your Business Web Site

How to Choose a Web Design Firm Simple. You do your homework on them. Then, you start asking questions and taking notes. There are plenty of web designers available. You want to go with the best because, in fact, your web designer is in essence your partner. You want to choose a designer that takes YOUR business seriously. What questions do you ask? There are several important questions to ask when choosing a web designer for your business web site. Creating your web site can be a tricky process. Choosing the best web design firm for your business web site is a very important decision. And if your company is like most small businesses, you probably do not have web design experience. Building your web site will take time and work. And working with a web designer is no easy task. So choose the right web design company from the start and avoid do-over's, which can be costly and time consuming. 1. What kind of web experience do you have? For starters, find out what kind of design exper...

Take screenshot with ImageMagick (CLI)

Take full screen screenshot with 3 seconds delay # import -pause 3 -window root screenshot.jpg Take selected area screenshot # import screenshot.jpg

[Note] rxvt-unicode settings in .Xdefaults

URxvt.buffered: true URxvt.geometry: 80x24 URxvt.background: black URxvt.foreground: lightgray URxvt.font: xft:Terminus:pixelsize=10 URxvt.inputMethon: scim URxvt.imLocale: zh_TW.UTF-8 URxvt.perl-ext: default, matcher URxvt.urlLauncher: /usr/local/bin/firefox URxvt.matcher.button: 1 URxvt.cursorUnderline: True URxvt.cursorBlink: True

Debian can not restart/reboot properly on Acer Aspire One D257

You have to make some changes with following steps $ sudo vim /etc/default/grub Replace GRUB_CMD_LINUX="" with GRUB_CMD_LINUX="reboot=eif" sudo update-grub You may restart your aod257 and it works properly now.

[筆記] 電費公式

(瓦數 * 24) / (1000 * 每度費用) = 每天耗用的電費

[筆記] 電的公式

W (瓦) = V (伏特:電壓) * A (安培:電流)

Optimization for Mac OS X with SSD

To reduce disk writing, I have made some changes after Google the solution. Sleeping mode Check default value $ sudo pmset -g | grep hibernatemode hibernatemode 3 Change value $ sudo pmset -a hibernatemode 0 Remove sleep image $ sudo rm /var/vm/sleepimage Sudden Motion Sensor $ sudo pmset -a sms 0 Spotlight $ sudo mdutil -a -i off Hard drive sleep Go to "System Preferences" -> "Energy Saver" uncheck "Let disk fail sleep when possible" Hope that could helpful.