Clear Facebook Share Cache

March 27th, 2014 / No Comments » / by admin

Very annoying if you want to change the description or title of the page that you want to share, and facebook didn’t update the new one automatically.

Here is i share the link from facebook to clear the cache.
http://developers.facebook.com/tools/debug

What you should do is paste the link into “Open Graph Object Debugger” and click “Debug” button. And you should share the link with new title and description successfully.

 

Pin It

Tricking your Mac into creating a new user account

February 13th, 2014 / No Comments » / by admin

This method is effective also if you forgot your administrator password.

  1. Power on or restart your Mac (should work for any Mac OS X system).
  2. At the chime (or grey screen if your chime is turned off), hold down Command+S on your keyboard to enter single-user mode.
  3. This step is optional, but it’s a good idea because it checks the consistency of the hard disk before moving on. At the prompt, type fsck -fy and press Enter/Return. Wait for the checks to complete before going to the next step.
  4. Type mount -uw / and press Enter.
  5. Type rm /var/db/.AppleSetupDone and press Enter.
  6. Type shutdown -h now and press Enter.

 

Pin It

Cron / Crontab

February 6th, 2014 / No Comments » / by admin

Here is the syntax:

string         meaning
------         -------
@reboot        Run once, at startup.
@yearly        Run once a year, "0 0 1 1 *"
@annually      (same as @yearly)
@monthly       Run once a month, "0 0 1 * *"
@weekly        Run once a week, "0 0 * * 0"
@daily         Run once a day, "0 0 * * *"
@midnight      (same as @daily)
@hourly        Run once an hour, "0 * * * *"
# Minute   Hour   Day of Month       Month          Day of Week        Command    
# (0-59)  (0-23)     (1-31)    (1-12 or Jan-Dec)  (0-6 or Sun-Sat)

Ex: 0 * * * * lynx -dump http://www.semenit.com/crontab.php
Meaning: execute http://www.semenit.com/crontab.php every 1 hour.

Ex: 0 */2 * * * lynx -dump http://www.semenit.com/crontab.php
Meaning: execute http://www.semenit.com/crontab.php every 2 hour.

Ex: */5 * * * * lynx -dump http://www.semenit.com/crontab.php
Meaning: execute http://www.semenit.com/crontab.php every 5 minute.

Ex: 0 1 14 * * lynx -dump http://www.semenit.com/crontab.php
Meaning: execute http://www.semenit.com/crontab.php 1AM on the 14th every month.

Pin It

without www and with www

January 9th, 2014 / No Comments » / by admin

Google will consider double content if you didn’t make a difference ex: http://semenit.com and http://www.semenit.com
To avoid this, you can write this code in your .htaccess file

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

Pin It

firefox font face not working cross domain

January 6th, 2014 / No Comments » / by admin

Font Face not working in Firefox but OK in safari and chrome

@font-face {
font-family:’FontSiteSansCondensed’;
src:url(http://www.semenit.com/fonts/fontsitesans_condensed_macroman/FontSiteSans-Cond-webfont.eot);
src:local(‘☺’),url(http://www.semenit.com/fonts/fontsitesans_condensed_macroman/FontSiteSans-Cond-webfont.woff) format(‘woff’),url(http://www.semenit.com/fonts/fontsitesans_condensed_macroman/FontSiteSans-Cond-webfont.ttf) format(‘truetype’),url(http://www.semenit.com/fonts/fontsitesans_condensed_macroman/FontSiteSans-Cond-webfont.svg#webfontYkbWDHlk) format(‘svg’);font-weight:normal;font-style:normal; }

body {
text-decoration:none;font-family:’FontSiteSansCondensed’,'Helvetica Neue’,Helvetica,Arial,sans-serif;font-size:13px; }

 

If you want to use the font using the link (url) from your website, you will get a problem in Firefox browser.
The solution is you have to add this code into .htaccess in http://www.semenit.com

# BEGIN REQUIRED FOR WEBFONTS

AddType application/vnd.ms-fontobject .eot
AddType font/ttf .ttf
AddType font/eot .eot
AddType font/otf .otf
AddType font/woff .woff

<FilesMatch “\.(ttf|otf|eot|woff)$”>
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin “*”
</IfModule>
</FilesMatch>
# END REQUIRED FOR WEBFONTS

Pin It

MTA’s poor reputation

January 4th, 2014 / No Comments » / by admin

Your access to this mail system has been rejected due to the sending MTA’s poor reputation.

How to check if your Mail Server Listed in Anti Spam Database?
you can use this tools:

http://whatismyipaddress.com/blacklist-check

http://www.rbl-check.com/

http://mxtoolbox.com/blacklists.aspx
or you can check your ip
http://www.senderbase.org/

You can see good article here:

http://forum.spamcop.net/scwik/SenderBaseReputationScore

http://forum.spamcop.net/forums/index.php?showtopic=11512

Pin It

Favicon Generator

January 3rd, 2014 / No Comments » / by admin

Still confusing how to save as an image into ico?

There is a website that could generate your image into *.ico file
http://favicon-generator.org/

or you can download a plug-in for photoshop in here http://www.telegraphics.com.au/sw/

 

Location of the photoshop plug-in

 

ICO Extension added

ICO Extension

 

 

 

Pin It

iMessage on Mac OSX not working

September 3rd, 2013 / No Comments » / by admin

Suddenly my iMessage on Mac OSX stop working.
iMessage asks me to fill the password, but i got an error even if i fill the real password.

Here is the error:

The registering device does not have appropriate credentials

So i am browsing to get an answer and i got a website that fix my problem.

What you have to do is, open a terminal, and add this:
/System/Library/PrivateFrameworks/IMCore.framework/imagent.app/Contents/MacOS/imagent
killall imagent

Source: http://porkrind.org/missives/imessage-on-mac-os-x-not-working/

and some people suggest to reset PRAM.

Pin It

Tag Function in YouTube

May 3rd, 2012 / No Comments » / by admin

You need to read this, if you have a problem with a YouTube size after uploading the videos.
Note: The YouTube Tags is not like WordPress Tags.

First, you have to login into your YouTube account, click the videos that have a size problem, and then click edit button, and do the following that suits you.

  • Tag: yt:crop=16:9
    (zooms in on the 16:9 area, removes windowboxing)
  • Tag: yt:stretch=16:9
    (fixes anamorphic content by scaling to 16:9)
  • Tag: yt:stretch=4:3
    (fixes 720×480 content that is the wrong aspect ratio by scaling to 4:3)
  • Tag: yt:quality=high
    (default to a high quality stream, depending on availability)

Source: http://support.google.com/youtube/bin/answer.py?hl=en&answer=146402

Pin It

Setting Autoresize iFrame in Facebook (no scroll down)

March 16th, 2012 / No Comments » / by admin

Do this script below to eliminate scrolling in iFrame tab Facebook

<script type=”text/javascript”>
window.fbAsyncInit = function() {
//Your app details here
FB.init({appId: ‘Your APP ID’, status: true, cookie: true, xfbml: true});
//Resize the iframe when needed
FB.Canvas.setAutoResize();
};
 
 
//Load the SDK asynchronously
(function() {
var e = document.createElement(‘script’); e.async = true;
e.src = document.location.protocol +
‘//connect.facebook.net/en_US/all.js’;
document.getElementById(‘fb-root’).appendChild(e);
}());
</script>
Pin It

Tags: