How to generate reference of web pages in the IEEE citation format with bibtex? From the IEEE Citation Reference, the reference for web page is like this: WWW Basic Format: [1] J. K. Author. (year, month day). Title (edition) [Type of medium]. Available: http://www.(URL) Example: [1] J. Jones. (1991, May 10). Networks (2nd ed.) [Online].
Read more
Tag: Web
How to convert a latex document with figures to a HTML file?
Posted onHow to convert a latex document with figures to a HTML file? htlatex (On Fedora, it is in the package texlive-tex4ht) can generate the html from a latex doc better than latex2html. From my experience, it can produce a better html file.
Add header footer in directory listing in Apache (httpd)
Posted onHow to add header footer in directory listing in Apache (httpd)? In the web directory’s .htaccess file: Options +Indexes IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8 HeaderName /header.html ReadmeName /footer.html IndexIgnore header.html footer.html .htaccess header.html and footer.html are under the website root directory (not the Linux root).
How to @import a css file only for wide screens
Posted onHow to @import a css file, such as for an open fonts hosted by Google, only for wide screens, such as with px of larger than 846? A piece of css that you can use: @import url(http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,300,400,700,900) (min-width:846px) This import Open Sans fonts for only screens of at least 846 px.
WordPress theme TwentyFourteen interfere with AddThis Welcome Bar
Posted onThe AddThis welcome bar will make a empty gap on top of the WordPress webpage with the TwentyFourteen wordpress theme. Is there a fix for it? You will find AddThis will add this div to the webpage: <div class=”addthis_bar_placeholder” style=”height: 46px;”></div> which cause the problem. A little trick that works is to set that div’s
Read more
Add via to the Tweet button of AddThis share
Posted onI use the AddThis share buttons on my sites. How to add the via @fclosedotcom to the Tweet button of AddThis share so that the tweets automatically @ my twitter handle? Change <a class=”addthis_button_tweet”></a> to <a class=”addthis_button_tweet” tw_via=”fclosedotcom”></a> Try it on this page with the Tweet button.
Domain registration coupons
Posted onThis page lists some domain registration coupons that users can use. The best that I can find currently the the $2.95 .com domain from godaddy: If you want to buy hosting from Godaddy at the same time, you can check this one which provides a free domain:
How to allow contributors to Upload Files in wordpress
Posted onHow to allow contributors to Upload Files in wordpress? I allow my wordpress site’s contributors to submit posts. But by default, WordPress contributors do not have the capability to upload files. How to allow them to upload files? The key to my solution to add the upload files capability to contributors in WordPress is the
Read more
How to replace gdm with lightdm on Fedora
Posted onCinnamon does not work well with gdm. And there is no meaning to use gdm when using Cinnamon. On Fedora, the default one id gdm. How to replace gdm with lightdm on Fedora? First, install lightdm if it is not installed yet: # yum install lightdm lightdm-gtk Then, disable gdm service and make the lightdm
Read more
How to delete multiple items from Kindle Library
Posted onThe Kindle Library Web interface only provide interface to delete items one by one. How to delete multiple items from my Kindle Library? This works on Chrome. First, browse deki.js to find the javascript for the “DeKi: Delete Kindle Items” plugin. Press “Ctrl + A” then “Ctrl + C” to copy all the javascript code.
Read more
C++ cout formatting output
Posted onHow to format outputs with cout in C++? You need IO Manipulators <iomanip>: Header providing parametric manipulators. There are also good tutorials on the Web: Output Formatting: http://arachnoid.com/cpptutor/student3.html Formatting Cout Output in C++ using iomanip: http://www.cprogramming.com/tutorial/iomanip.html
How to remove cookies for a certain site in Chrome?
Posted onHow to remove cookies for a specific site/domain in Chrome? I just want to delete the cookies by one site, not the whole cookies stored by my browser. In Chrome’s settings (open chrome://settings/ in the URL bar): Search for “cookie” and you will find “Privacy” -> “Content Settings”. Click the button “Content Settings”. In the
Read more
Installing WordPress in a sub directory while working for the whole site
Posted onHow to install WordPress in a sub directory while working for the whole site? Putting the WordPress files in the root directory seems messy. A method is introduced here: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory The process to move WordPress into its own directory is as follows: Create the new location for the core WordPress files to be stored (we
Read more
Broken links checker for sites
Posted onTools to check broken links for websites. This tool is great for broken link checking: http://www.brokenlinkcheck.com/ . It check all your site automatically. W3C also has a tool to check a single page: http://validator.w3.org/checklink There is also an open-source tool LinkChecker: http://wummel.github.io/linkchecker/ If you are using WordPress, a plugin is also available: http://wordpress.org/plugins/broken-link-checker/
How to host a domain registered in another account in a Dreamhost account
Posted onHow to host a domain name registered in another account in one Dreamhost account. Simply trying to add the new domain, it reports: Error! You can’t add that domain: already in our system You need to delete the domain from your hosting (DNS) from the account first. Don’t worry, the domain name is still there
Read more
How to install WordPress on Fedora 19
Posted onHow to install the latest WordPress on a newly installed Fedora 19? Thanks! First, install the LAMP (you already have ‘L’) stack: # yum install httpd php php-mysql mysql-server php-gd and start these services: # systemctl start mysqld.service httpd.service Then, install WordPress on the LAMP stack following the tutorials on the Web. Two good ones
Read more
MySQL at Facebook
Posted onFacebook uses lots MySQL databases. Any information about how Facebook scales MySQL? Some information on the Web: MySQL at Facebook’s page https://www.facebook.com/MySQLatFacebook?filter=1 A post by Ryan Thiessen, Database Operations at Facebook on Quora: http://www.quora.com/Facebook-Engineering/How-does-Facebook-structure-MySQL-so-that-it-is-robust-and-scalable And more: http://mashable.com/2011/12/15/facebook-timeline-mysql/ http://gigaom.com/2011/12/06/facebook-shares-some-secrets-on-making-mysql-scale/ http://www.wired.com/wiredenterprise/2011/12/facebook-timeline-anatomy “A lot of people are surprised that for this shiny new thing for Facebook, we’re using
Read more
How to print the text in a web page?
Posted onHow to efficiently print a webpage? E.g. I want to only print the text for some pages but with figures for some other pages. I tried to copy the webpage to a document, but the format turns to be just terrible. One good tool that I use is PrinterFriendly which can convert a webpage to
Read more
Q2A: making the main content div appear before the side panel
Posted onAfter checking the Question2Answer pages’ HTML code, I find that the main div comes after the side panel. How to revert the position of the main div and side panel div? Makes the main content come first in the HTML. You can change the displaying order by overwriting the body_content() function in the theme (that
Read more
Q2A: How to enable Sina Weibo and Tencent QQ account log in?
Posted onIn Question2Answer, how to enable Sina Weibo and Tencent QQ account log in? Use the Social Plugin for Sina Weibo and Tencent QQ (in Chinese): http://q2achina.sinaapp.com/blog/archives/22/ The websites to apply for the app: Weibo: http://open.weibo.com/ QQ: http://connect.qq.com/