Saturday, November 28, 2015
Why can outer Java classes access inner class private members? - Stack Overflow
Why can outer Java classes access inner class private members? - Stack Overflow: "Otherwise, if the member or constructor is declared private, then access is permitted if and only if it occurs within the body of the top level class (§7.6) that encloses the declaration of the member or constructor."
Wednesday, November 11, 2015
Tuesday, November 03, 2015
Friday, October 16, 2015
Blogface.org: Ctrl-down/up in emacs in Mac Terminal
Blogface.org: Ctrl-down/up in emacs in Mac Terminal: "From the terminal, go to "Preferences" "Settings" "Keyboard"
Look for and modify, or add actions for ctrl-up and ctrl-down:
ctrl-up = \033[1;5A
ctrl-down = \033[1;5B"
'via Blog this'
Look for and modify, or add actions for ctrl-up and ctrl-down:
ctrl-up = \033[1;5A
ctrl-down = \033[1;5B"
'via Blog this'
Saturday, August 08, 2015
Saturday, July 18, 2015
Carrying your Git settings around
Carrying your Git settings around:
export GIT_AUTHOR_NAME="Steven Ness"
export GIT_AUTHOR_EMAIL=foo@example.org
export GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"
export GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL"
export GIT_AUTHOR_NAME="Steven Ness"
export GIT_AUTHOR_EMAIL=foo@example.org
export GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"
export GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL"
Wednesday, June 10, 2015
Could someone explain the equation [math]\mathcal L = -\tfrac14 F_{\mu\nu}F^{\mu\nu} + iF \cancel D \psi + \text{h.c}[/math] [math]{} + \psi_i y_{ij} \psi_j \phi + \text{h.c} + |D_\mu\phi|^2 - V(\phi)[/math]? - Quora
Sunday, June 07, 2015
Remote-controlled genes trigger insulin production : Nature News & Comment
Remote-controlled genes trigger insulin production : Nature News & Comment: "Friedman and his colleagues coated iron oxide nanoparticles with antibodies that bind to a modified version of the temperature-sensitive ion channel TRPV1, which sits on the surface of cells. They injected these particles into tumours grown under the skins of mice, then used the magnetic field generated by a device similar to a miniature magnetic-resonance-imaging machine to heat the nanoparticles with low-frequency radio waves. In turn, the nanoparticles heated the ion channel to its activation temperature of 42 °C. Opening the channel allowed calcium to flow into cells, triggering secondary signals that switched on an engineered calcium-sensitive gene that produces insulin."
Activate your genes with radio waves (Wired UK)
Activate your genes with radio waves (Wired UK): "Sarah Stanley, a research associate at New York's Rockefeller University, was able to trigger a synthetic gene to produce insulin inside a mouse by shooting radio waves at it from a distance of 1cm. Stanley says that the method could be used to treat humans with rare protein deficiencies such as Tay-Sachs disease. "This would be an alternative way to make proteins in the right place, at the right time," she says.
"
"
Tuesday, June 02, 2015
Sunday, May 31, 2015
Git - git-fsck Documentation
Git - git-fsck Documentation: "git-fsck - Verifies the connectivity and validity of the objects in the database"
Saturday, May 30, 2015
ePlaya • View topic - Ideal materials for metal/conduit shade structure
ePlaya • View topic - Ideal materials for metal/conduit shade structure: "I've worked with a variety of heights, material thicknesses, and other aspects and here's what I like best. For fittings, I go with galvanized steel when possible. A bit more expensive, but worth it to keep them from rusting. For conduit size, I prefer 1 inch EMT conduit. 3/4 inch works, but in really windy years the pipes were more prone to being bent, and I when the dust was really raging I couldn't keep myself from worrying about how the structure was holding up. On a 1 inch EMT structure, once it's up that's never a question - the playa can do its worst, and not only can the structure take it but you barely feel it inside. You can do the roof in pretty much whatever size you want, it's a modular and flexible concept. I've done a few with angled roofs to accommodate larger structures (domes) inside, but if you're going with a flat roof it's easiest to work with 10' conduit lengths. For vertical height, I've been using a 6'8" vertical height which has worked out really well (though you can go with whatever height you like). I'm tall enough to be able to put it up without a stepladder or milk crate, and it's tall enough that there's at least a foot clearance above most tents. That foot is essential, since the roof tarp will radiate heat downwards and you don't want it radiating into the tent if you can avoid it."
Shade Cloth Fabric : DeWitt UV PE Knitted Shade Cloth - 90% Black (per sq.ft)
Shade Cloth Fabric : DeWitt UV PE Knitted Shade Cloth - 90% Black (per sq.ft): "DeWitt UV PE Knitted Shade Cloth - 90% Black (per sq.ft)"
'via Blog this'
'via Blog this'
Monday, May 25, 2015
Saturday, May 23, 2015
Java bytecode - Wikipedia, the free encyclopedia
Java bytecode - Wikipedia, the free encyclopedia: "Java bytecode is the instruction set of the Java virtual machine. Each bytecode is composed by one, or in some cases two, bytes that represent the instruction (opcode), along with zero or more bytes for passing parameters. "
Sunday, May 17, 2015
Wednesday, April 29, 2015
Tuesday, April 28, 2015
Friendlier unicode entry in rxvt-unicode
Friendlier unicode entry in rxvt-unicode: "I recently was hanging out on #rxvt-unicode where a fellow user mentioned that entering unicodes via the shift+ctrl+ method was inconvenient. He mentioned that some other program (which?) uses shift+ctrl+u followed by hex digits. So I wrote a perl plugin for rxvt-unicode that does just that."
'via Blog this'
'via Blog this'
Monday, April 27, 2015
Problems and Errors · senny/emacs-eclim Wiki
Problems and Errors · senny/emacs-eclim Wiki: "You can display a list of the current errors and warnings in the current project by calling eclim-problems. In the problems list you can switch between displaying only errors or errors/warnings by pressing “e” and “w” respectively, or jump to the source code for the current problem by pressing RET. Press “g” to refresh the display."
'via Blog this'
'via Blog this'
Thursday, April 02, 2015
Tuesday, March 31, 2015
Saturday, March 28, 2015
[HOWTO] Save Screenshots in Ubuntu Automatically when PrintScreen key is pressed | The _khAttAm_ blog
[HOWTO] Save Screenshots in Ubuntu Automatically when PrintScreen key is pressed | The _khAttAm_ blog:
scrot ~/screenshots/screenshot-`date +"%b%d%g" | sed -e 's/\(.*\)/\L\1/'`.png
[HOWTO] Save Screenshots in Ubuntu Automatically when PrintScreen key is pressed | The _khAttAm_ blog
[HOWTO] Save Screenshots in Ubuntu Automatically when PrintScreen key is pressed | The _khAttAm_ blog: "scrot ~/screenshots/`date|sed s/ /-/g|sed s/://g`.png"
Friday, March 27, 2015
rxvt-unicode hacking - Page 2
rxvt-unicode hacking - Page 2: "xmodmap can be used to show whether Super (actually Super_R and Super_L) are mapped to the "mod4" used in URxvt.keysym.Mod4-v"
config/Xdefaults at master · shicks/config
config/Xdefaults at master · shicks/config
Emacs.background: Black Emacs.foreground: White URxvt.geometry: 203x70 URxvt.saveLines: 8192 ! to match gnome-terminal "Linux console" scheme ! foreground/background URxvt*background: #000000 URxvt*foreground: #ffffff ! black URxvt.color0 : #000000 URxvt.color8 : #555555 ! red URxvt.color1 : #AA0000 URxvt.color9 : #FF5555 ! green URxvt.color2 : #00AA00 URxvt.color10 : #55FF55 ! yellow URxvt.color3 : #AA5500 URxvt.color11 : #FFFF55 ! blue URxvt.color4 : #0000AA URxvt.color12 : #5555FF ! magenta URxvt.color5 : #AA00AA URxvt.color13 : #FF55FF ! cyan URxvt.color6 : #00AAAA URxvt.color14 : #55FFFF ! white URxvt.color7 : #AAAAAA URxvt.color15 : #FFFFFF"
URxvt Customization and Optimization with Xresources
URxvt Customization and Optimization with Xresources
function aa_256 () { local o= i= x=`tput op` cols=`tput cols` y= oo= yy=; y=`printf %$(($cols-6))s`; yy=${y// /=}; for i in {0..256}; do o=00${i}; oo=`echo -en "setaf ${i}\nsetab ${i}\n"|tput -S`; echo -e "${o:${#o}-3:3} ${oo}${yy}${x}"; done }
Linux Console Color (the "\033[" way) - C++ Forum
Linux Console Color (the "\033[" way) - C++ Forum
\033[0m - is the default color for the console \033[0;#m - is the color of the text, where # is one of the codes mentioned above \033[1m - makes text bold \033[1;#m - makes colored text bold** \033[2;#m - colors text according to # but a bit darker \033[4;#m - colors text in # and underlines \033[7;#m - colors the background according to # \033[9;#m - colors text and strikes it \033[A - moves cursor one line above (carfull: it does not erase the previously written line) \033[B - moves cursor one line under \033[C - moves cursor one spacing to the right \033[D - moves cursor one spacing to the left"
Colours
Colours: "As mentioned before, non-printing escape sequences have to be enclosed in \[\033[ and \]. For colour escape sequences, they should also be followed by a lowercase m.
"
'via Blog this'
"
'via Blog this'
Thursday, March 26, 2015
Sunday, March 22, 2015
mikkoz/java8-quickstart-archetype
mikkoz/java8-quickstart-archetype: "A bloody simple Java 8 archetype. Has the following features:"
'via Blog this'
'via Blog this'
Standard Libraries
Standard Libraries: "Standard libraries. Below is a table of the input and output libraries that we use throughout the textbook and beyond."
'via Blog this'
'via Blog this'
Saturday, March 21, 2015
Urxvt - awesome
Urxvt - awesome: "In order to get the most out of urxvt, you will want to modify its X resources. You can configure them in your .Xdefaults file. "
'via Blog this'
'via Blog this'
[SOLVED] rxvt-unicode: disable iso 14755 / Applications & Desktop Environments / Arch Linux Forums
[SOLVED] rxvt-unicode: disable iso 14755 / Applications & Desktop Environments / Arch Linux Forums: "either compile with --disable-iso14755 or try URxvt* iso14755: False and URxvt* iso14755_52: False"
'via Blog this'
'via Blog this'
mikkoz/java8-quickstart-archetype
mikkoz/java8-quickstart-archetype: "A bloody simple Java 8 archetype. Has the following features:"
'via Blog this'
'via Blog this'
Thursday, March 19, 2015
[SOLVED] Chromium Shockwave Flash Crash After Update
[SOLVED] Chromium Shockwave Flash Crash After Update: "After running an upgrade Chromium browser Shockwave Flash Plugin crashed!
If you have the same problem I have a workaround.
firstly open Firefox goto a website that uses flash (not YouTube) I used BBC iPlayer, then right click and click on "settings..."
The left most tab shows the "Enable hardware acceleration" tickbox
Untick it
Then close and reopen Chromium and go back to a flash site e.g. YouTube and test it is working.
The reason this worked for me is that there is a bug in either Googles Chromium or the Unix/X11 build of Shockwave Flash or my graphics card drivers
"
'via Blog this'
If you have the same problem I have a workaround.
firstly open Firefox goto a website that uses flash (not YouTube) I used BBC iPlayer, then right click and click on "settings..."
The left most tab shows the "Enable hardware acceleration" tickbox
Untick it
Then close and reopen Chromium and go back to a flash site e.g. YouTube and test it is working.
The reason this worked for me is that there is a bug in either Googles Chromium or the Unix/X11 build of Shockwave Flash or my graphics card drivers
"
'via Blog this'
java - gettting JRE system library unbound error in build path - Stack Overflow
java - gettting JRE system library unbound error in build path - Stack Overflow: "Another option is:
Project > Properties > Java Build Path
Select Libraries tab
Select the troublesome JRE entry
Click Edit button
Choose an alternate JRE
Click Finish button
Pointing the project at your installed JRE might be a better choice than renaming your JRE to match the old project code."
'via Blog this'
Project > Properties > Java Build Path
Select Libraries tab
Select the troublesome JRE entry
Click Edit button
Choose an alternate JRE
Click Finish button
Pointing the project at your installed JRE might be a better choice than renaming your JRE to match the old project code."
'via Blog this'
Sunday, March 15, 2015
Example of how to use both JDK 7 and JDK 8 in one build.
Example of how to use both JDK 7 and JDK 8 in one build.:
<properties>
<maven.compiler.target>1.7</maven.compiler.target>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.testTarget>1.8</maven.compiler.testTarget>
<maven.compiler.testSource>1.8</maven.compiler.testSource>
</properties>
<properties>
<maven.compiler.target>1.7</maven.compiler.target>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.testTarget>1.8</maven.compiler.testTarget>
<maven.compiler.testSource>1.8</maven.compiler.testSource>
</properties>
Saturday, March 14, 2015
pm-utils - ArchWiki
pm-utils - ArchWiki: "Add the following lines, replacing username with your own user name, then save and exit visudo:
username ALL = NOPASSWD: /usr/sbin/pm-hibernate
username ALL = NOPASSWD: /usr/sbin/pm-suspend"
username ALL = NOPASSWD: /usr/sbin/pm-hibernate
username ALL = NOPASSWD: /usr/sbin/pm-suspend"
keyboard - Rebind Alt key to win using setxkbmap? - Ask Ubuntu
keyboard - Rebind Alt key to win using setxkbmap? - Ask Ubuntu: "setxkbmap -option altwin:swap_lalt_lwin"
'via Blog this'
'via Blog this'
13.10 - Permanently set keyboard layout options with setxkbmap in gnome/unity - Ask Ubuntu
13.10 - Permanently set keyboard layout options with setxkbmap in gnome/unity - Ask Ubuntu: "to prevent gnome resetting keyboard setting in X i use this command:
gsettings set org.gnome.settings-daemon.plugins.keyboard active false"
'via Blog this'
gsettings set org.gnome.settings-daemon.plugins.keyboard active false"
'via Blog this'
How can I suspend/hibernate from command line? - Ask Ubuntu
How can I suspend/hibernate from command line? - Ask Ubuntu: "I have also found the commands sudo pm-suspend and sudo pm-hibernate to work on my netbook."
'via Blog this'
'via Blog this'
Saturday, January 17, 2015
Subscribe to:
Posts (Atom)