This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For this to work you may need to install dosfstools and unetbootin if they are not already installed. | |
# Plug in the pen drive, close any auto-opened windows and open a shell aka console or terminal. | |
# Type in following commands (everything bevor #) and replace <device> with the proper device name. | |
sudo -s # or su | |
# find the usb device: its usually the last scsi-device | |
ls /dev/sd* # take eg /dev/sdc1 | |
mount | grep /media # you can additionally look, which one is mounted in /media (may be saver than guessing) | |
umount /dev/<device> # or /media/<devicename> or some clicking inside the file browser | |
mkfs.vfat /dev/<device> # create the FAT file system |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p.text a | |
/*definitionen*/ | |
&:hover | |
/*definitionen*/ | |
&:visited | |
/*definitionen*/ | |
/*etc*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def capitalize_each s, sep | |
l = s.capitalize.split('') # capitalize here for the first letter | |
l = l.each_with_index do |c,i| | |
l[i+1].upcase! if sep.include?(c) | |
end | |
new_s = l.join() | |
end | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data = aaData: [ | |
["foo1", "bar1", "baz1"] | |
["foo2", "bar2", "baz2"] | |
["foo3", "bar", "baz3"] | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://erasedtapes.com/livingroomfiles/day4-UVC7726235.zip && unzip *zip && mv day4/*mp3 . && rm -r __MAC* day4 day4*.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Rufus = { | |
Mnemo: { | |
/** CONSTANTS **/ | |
V: [ 'a', 'e', 'i', 'o', 'u' ], | |
C: [ 'b', 'd', 'g', 'h', 'j', 'k', 'm', 'n', 'p', 'r', 's', 't', 'z' ], | |
SYL: [], // This is populated later on. [1] | |
SPECIAL: [ | |
[ "hu", "fu" ], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%w(account event request_template).each do |model| | |
json = File.open("#{model}s.backup.json", "r") {|f| f.read} | |
data = JSON.parse(json) | |
data.each {|datum| model.classify.constantize.create(datum).save} | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Schwerwiegend: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main] | |
com.jme3.renderer.RendererException: Image format 'DXT1' is unsupported by the video hardware | |
at com.jme3.renderer.lwjgl.TextureUtil.checkFormatSupported(TextureUtil.java:91) | |
at com.jme3.renderer.lwjgl.TextureUtil.uploadTexture(TextureUtil.java:175) | |
at com.jme3.renderer.lwjgl.LwjglRenderer.updateTexImageData(LwjglRenderer.java:1879) | |
at com.jme3.renderer.lwjgl.LwjglRenderer.setTexture(LwjglRenderer.java:1901) | |
at com.jme3.material.MatParamTexture.apply(MatParamTexture.java:46) | |
at com.jme3.material.Material.render(Material.java:1009) | |
at com.jme3.renderer.RenderManager.renderGeometry(RenderManager.java:649) | |
at com.jme3.post.FilterPostProcessor.renderProcessing(FilterPostProcessor.java:192) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e = Event.first | |
e.exhibitor_ids.each do |e_id| | |
emi = ExhibitorMetaInformation.new(:exhibitor_id => e_id) | |
e.exhibitors << emi | |
e.save | |
end | |
e.exhibitor_ids = nil | |
e.save |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <time.h> | |
int main(void) { | |
srand(time(0)); | |
return (rand()%5)+1; | |
} |
OlderNewer