How to set Google Chrome’s proxy settings in command line on Linux? I am using Google Chrome on Linux and start it by google-chrome. How can I set the proxy using the command line? It tell me that my desktop is not supported but I can set the proxy in command line. Use the –proxy-server
Read more
Tag: Tutorial
Consistency models for distributed systems
Posted onWhich are the consistency models used for distributed systems? Papers that survey the consistency models Robert C. Steinke and Gary J. Nutt. 2004. A unified theory of shared memory consistency. J. ACM 51, 5 (September 2004), 800-849. DOI=10.1145/1017460.1017464 http://doi.acm.org/10.1145/1017460.1017464 David Mosberger. 1993. Memory consistency models. SIGOPS Oper. Syst. Rev. 27, 1 (January 1993), 18-26. DOI=10.1145/160551.160553
Read more
How to restore a Gnome 3 session?
Posted onHow to restore a Gnome 3 session? Which means: opening all the programs running last time when I log out in Gnome 3. If your purpose is to automatically start programs after logging in Gnome, another possible method is using the autostart script: https://www.systutorials.com/qa/119/how-to-write-a-autostart-script-for-gnome Run gnome-session-properties. In the “Options” tab, select “Automatically remember running applications
Read more
How to add Google Custom Search to Question2answer?
Posted onHow to add Google Custom Search to Question2answer? I do not want to create / edit / use a advanced theme. What I prefer is a plugin to replace the default search module with Google Custom Search. Thanks! Check out the Google Custom Search plugin: Google Custom Search plugin This site use it and it
Read more
How to Sync the Contacts in My iPhone with Google Gmail Account
Posted onHow to Sync the Contacts in My iPhone with Google Gmail Account? To sync your Google contacts, one good method is using CardDAV. You’ll be able to edit, add, and remove contacts from your device and keep them in sync with your Google Gmail account. It is straightforward: Open the Settings application on your device.
Read more
How to restart Gnome 3 without closing the programs running?
Posted onWhat I want is to just restart Gnome 3 only and not to close and reopen the programs running. Thanks a lot! Just run r in Gnome 3’s “Run command” Box: Alt + F2, then enter r and hit Enter. Gnome 3 will restarts itself only.
How to install .deb packages on Fedora?
Posted onI come across some closed source software that only provides .deb packages. Fedora manages packages with rpm/yum. How to install the .deb packages on Fedora? Alien is a tool to convert .deb package to .rpm package: http://joeyh.name/code/alien/ In latest Fedora, the tool alien is in Fedora’s repository. You can use dnf to install the package.
Read more
How to turn my iPhone to a mouse?
Posted oniPhone has the touch screen. Is is possible to turn my iPhone to a wireless mouse on Linux? Use the WiFi Mouse app/server: http://wifimouse.necta.us/ First, install the WiFi Mouse app on you iPhone: https://itunes.apple.com/app/id591076411?mt=8 Second, install the WiFi Mouse server downloaded from http://wifimouse.necta.us/ If you are using Fedora Linux, you need to convert the .deb
Read more
How To Find Out When Photos in The iPhone Were Taken
Posted onHow To Find Out When Photos in The iPhone Were Taken? The default viewer in iPhone seems do not show these information. The iPhone has no native mechanism to see the photo taken date information. However there is the information. You need a 3’rd party application to view the EXIF data (time taken, GPS coordinates,
Read more
How to add an existing user to an existing group?
Posted onHow to add an existing user to an existing group in Linux? We can use usermod to change/add user group for users. # usermod -a -G group_name user_name -a, –append Add the user to the supplementary group(s). Use only with the -G option. -G, –groups GROUP1[,GROUP2,…[,GROUPN]]] A list of supplementary groups which the user is
Read more
Statically linking C and C++ programs
Posted onHow to statically compile C and C++ projects? The compiled executable should lead no dynamical library during execution. I use gcc/g++ to compile the projects. Check this post: Statically Linking C and C++ Programs on Linux with gcc.
How to add social icons to Q2A?
Posted onHow to add the social share icons to q2a as shown in this site? This site uses the Question2Answer Share plugin: https://github.com/NoahY/q2a-share After installing the plugin by downloading and copying the directory for the plugin to the qa-plugin directory, you can select the networks to share to in ‘Admin -> Plugins’. I see. Thanks!
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/
WordPress: How to use Markdown for writing posts
Posted onI like the Markdown editor whick is widely used (e.g. This site) and very convenient to use. How to add a Markdown editor for WordPress? I tried some plugins and find they have their strengthens and disadvantages. Here are my requirements: Compatible with my existing posts. They should still display well. I can accept minimum
Read more
How to activate or deactivate a Linux host with Gnome remotely?
Posted onI have a Fedora Linux server with Gnome 3. I want to lock / unlock the remote Gnome desktop remotely. How to activate or deactivate it remotely through SSH? Use gnome-screensaver-command. It is not specific to Gnome 3. Turn the screensaver on (blank the screen): $ gnome-screensaver-command -a If the screensaver is active then deactivate
Read more
Single sign-in for social accounts for question2answer?
Posted onHow to enable single sign-in for social accounts for question2answer? These servers are required: Google, Facebook, Twitter, OpenID. This site moved from Loginza to Question2Answer Open Login which works like a charm. I use the Loginza and it works very well. For Q2A, SLonoed wrote a nice plugin for loginza. How to use it: Download
Read more
How to change the audio track for .mkv files in mplayer?
Posted onHow to change the audio track for .mkv files in mplayer? Key shortcut: # (dvd, mpeg, matroska, avi and libavformat only) cycle through the available audio tracks. tab (mpeg-ts and libavformat only) More: https://www.systutorials.com/b/linux/663/mostly-used-mplayer-keyboard-control/
Chrome reports “Adobe Flash Player was blocked because it is out of date.”
Posted onOn Linux (Fedora 17 x86-64), Chrome keeps reporting “Adobe Flash Player was blocked because it is out of date.” every time I browse a page that contains Flash. How to fix this? I did this and it turned to be working for me: Disable the libpepflashplayer in Chrome by run chrome://plugins/ in the URL bar.
Read more
How to merge a commit from another branch to my current branch in git?
Posted onI have 2 branches: dev and master. I have commits in dev like this: c0–>c1–>c2–>c3–>c4 Commits in master like this: c0–>c5–>c6 c2 and c3 fix a bug. Now, I want to merge commit c2 and c3 that fix the bug to the master branch, but I do not want to merge all the commits (e.g.
Read more