Options->Preferences: General->Audio->Max. Amplification
Set that to 200 or so to allow further amplification in software.
Audio->Filters->Volume Normalization
is another way to help boost sound.
Code, computers, and other nonsense. All powered by iguanas, of course.
Options->Preferences: General->Audio->Max. Amplification
Audio->Filters->Volume Normalization
is another way to help boost sound.
<a href="http://www.blogger.com/tv/How%20I%20Met%20Your%20Mother/05/how.i.met.your.mother.s05e11.720p.hdtv.x264-ctu.mkv">Season 5 Episode 11</a>;
latest how
, latest -n 2 dollhouse
)
param(
[switch]$switch = $false,
[string]$query = $(Read-Host -prompt "Keyword"),
[int]$num = $(if ($switch) {Read-Host -prompt "Number"} else {1})
)
$player = "C:\Program Files\SMPlayer\smplayer.exe"
$client = New-Object System.Net.WebClient
$data = $client.DownloadData("http://spot/")
$page = [System.Text.Encoding]::ASCII.GetString($data)
# They are displayed on the page with newest on top, but we want to play them in order (oldest to newest)
$matches = [regex]::Matches($page, "href=`"([^\<\>]*?$query[^\<\>]*?\.[^\<\>]*?)`"", "IgnoreCase") | Select-Object -first $num | Sort-Object
$files = ""
foreach ($m in $matches) {
$files += "'http://spot/$($m.groups[1])' "
}
if ($files.Length -gt 0) {
echo $files
Start-Process $player $files
}
else { echo "Could not find anything matching '$query'" }
import urllib2
import re
import os
import sys
url = "http://www.phdcomics.com/comics/archive.php?comicid="
for id in range(int(sys.argv[1]), int(sys.argv[2])):
print `id`+"..."
try:
page = urllib2.urlopen(url+`id`).read()
img = re.search('img src=(http://www.phdcomics.com/comics/archive/.+?.gif)', page).group(1)
os.system('wget -nc '+img)
except urllib2.HTTPError:
print "No page_id " + `id`
iptables -I INPUT -p udp --sport 67 --dport 68 -j ACCEPT
rundll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351
applicationDidFinishLaunching
method:application.statusBarOrientation = UIInterfaceOrientationLandscapeRight;
application.statusBarOrientation = UIInterfaceOrientationLandscapeLeft;
NSDate *now = [NSDate date];
NSDate *since = [[NSDate alloc] initWithTimeInterval:0 sinceDate:someOtherDate];
float4x4 getRotateMatrix(float theta, float3 axis) {
float x = axis.x, y = axis.y, z = axis.z, c = cos(theta), s = sin(theta);
float4x4 matrix = float4x4(
x*x*(1-c)+c, x*y*(1-c)-z*s, x*z*(1-c)+y*s, 0,
y*x*(1-c)+z*s, y*y*(1-c)+c, y*z*(1-c)-x*s, 0,
x*z*(1-c)-y*s, y*z*(1-c)+x*s, z*z*(1-c)+c, 0,
0, 0, 0, 1
);
return matrix;
}
float4x4 getLookAt(float3 eye, float3 center, float3 up) {
float3 forward = normalize(center - eye);
float3 side = normalize(cross(forward, up)); /* Side = forward x up */
up = cross(side, forward); /* Recompute up as: up = side x forward */
return float4x4(
side.x, up.x, -forward.x, -eye.x,
side.y, up.y, -forward.y, -eye.y,
side.z, up.z, -forward.z, -eye.z,
0, 0, 0, 1
);
}
glut32.dll
to %WinDir%\System
glut32.lib
to $(VSDir)\VC\lib
glut.h
to $(VSDir)\include\GL
$(VSDir)
is something like C:\Program Files\Microsoft Visual Studio 9.0\VC
File->New Project->Visual C++->Win32->Win32 Console Application
Application type
is Console Application
and Empty project
(under Additional options
) is checked.Project->(project name) Settings
Configuration
to All Configurations
Configuration Properties
C/C++->General
, add $(CG_INC_PATH)
to Additional Include Directories
Linker->General
, add $(CG_LIB_PATH)
to Additional Library Directories
Linker->Input
, add opengl32.lib glu32.lib glut32.lib cg.lib cgGL.lib
to Additional Dependencies
glBegin(GL_TRIANGLE_STRIP); {
for (int v = 0; v < 4; v ++) { cgGLBindProgram(vert_main); glVertex3fv(VERTS[FACES[f][v]].xyz); cgGLBindProgram(vert_shadow); glVertex3fv(VERTS[FACES[f][v]].xyz); } } glEnd();
do shell script "/Applications/SleepDisplay.app/Contents/MacOS/sleepdisplay"
do shell script "/System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -module 'Computer Name'"
# This brings up "switch users", but doesn't keep the display killed
do shell script "/System/Library/CoreServices/Menu\\ Extras/User.menu/Contents/Resources/CGSession -suspend"
# Get topmost app
tell application "System Events" to set frntProc to name of every process whose frontmost is true and visible is true
tell application named (item 1 of frntProc) to set currBounds to the bounds of the front window
# Get desktop bounds
tell application "Finder" to set desk to the bounds of the window of the desktop
tell application "Terminal"
activate (do script with command "")
set newBounds to the bounds of the front window
# Get the distances we're working with
set onLeft to (item 1 of currBounds)
set onTop to (item 2 of currBounds)
set onRight to ((item 3 of desk) - (item 3 of currBounds))
set onBottom to ((item 4 of desk) - (item 4 of currBounds))
set newW to ((item 3 of newBounds) - (item 1 of newBounds))
set newH to ((item 4 of newBounds) - (item 2 of newBounds))
if (onRight > newW) then
set the bounds of the front window to {item 3 of currBounds, (item 2 of currBounds) + newH, (item 3 of currBounds) + newW, (item 2 of currBounds) + newH * 2}
else if (onBottom > newH) then
set the bounds of the front window to {item 1 of currBounds, (item 4 of currBounds) + newH, (item 1 of currBounds) + newW, (item 4 of currBounds) + newH * 2}
else if (onLeft > newW) then
set the bounds of the front window to {(item 1 of currBounds) - newW, (item 2 of currBounds) + newH, item 1 of currBounds, (item 2 of currBounds) + newH * 2}
else if (onTop > newH) then
set the bounds of the front window to {item 1 of currBounds, item 2 of currBounds, (item 1 of currBounds) + newW, (item 2 of currBounds) + newH}
end if
end tell
for i in $(seq --format="%02.f" 1 17); do
echo "wget http://archive.leasticoulddo.com/strips/200904$i.gif";
done
Style * MinOverlapPlacement
Style "*panel" NotTitle, !Borders, NoHandles, Icon, Sticky, WindowListSkip, CirculateSkip
Style * MinOverlapPlacementPenalties 1 5 9999999 1 0.05 9999999
CREATE TABLE recipes_new LIKE production.recipes;
INSERT recipes_new SELECT * FROM production.recipes;
The first command creates the new table recipes_new by duplicating the structure of the existing table. The second command copies the data from old to new.
#!/usr/bin/ruby
require 'rss'
require 'open-uri'
$BOLD = "\e[1m"
$NORMAL = "\e[m"
num = ARGV.length > 0 ? ARGV[0].to_i : 1
# Read cls_status twitter RSS feed
source = "http://twitter.com/statuses/user_timeline/19618428.rss"
content = ""
open(source) do |s| content = s.read end
rss = RSS::Parser.parse(content, false)
(0..(num-1)).each do |i|
diff = Time.now - rss.items[i].date
days = diff.to_i / 86400
hrs = (diff % 86400).to_i / 3600
mins,secs = *((diff % 3600).divmod(60))
print "#{$BOLD}"
print "#{days} days " if (days > 0)
print "#{hrs} hrs " if (hrs > 0)
print "#{mins} mins " if (days == 0 and mins > 0)
print "#{mins} secs " if (mins == 0)
puts "ago"
#puts "#{$BOLD}#{rss.items[i].date}"
puts "#{$NORMAL}#{rss.items[i].title}"
#puts rss.items[i].description
#puts rss.items[i].link
end
0,10,20,30,40,50 * * * * ruby /home/iggames/bin/upcheck.rb >> /home/iggames/bin/upcheck.log
Key K A M Direction North (CurrentDesk) FlipFocus
Key J A M Direction South (CurrentDesk) FlipFocus
Key H A M Direction West (CurrentDesk) FlipFocus
Key L A M Direction East (CurrentDesk) FlipFocus
FlipFocus
does vs just Focus
, but it works the way I'd expect. (Selects relative to current window, choosing only among windows on the current desktop)
float getDepth(float dist) {
float zNear = 0.1, zFar = 1000; // from main.cpp
float a = zFar / (zFar - zNear);
float b = zFar * zNear / (zNear - zFar);
float z = dist;
return a + b / z;
}
for f in *.txt; do mv ./"$f" "$f.newname"; done
for f in *.mine; do mv $f `echo $f | sed 's/\(.*\).newname/\1/'`; done
Window->Preferences->General->Editors->Text Editors->Annotations->(C/C++) Occurrences
error C1019: scalar Boolean expression expected
. Weirdly, it only threw this error on the machines at school (the Cg shader code is compiled at run-time). Though the line numbers don't make this clear, the problem code appears to be this:
float4 val = readFloat4FromTexture();
if (val != float4(1,1,1,1)) {
...
}
...
if (val.x != 1 && val.y != 1 && val.z != 1 && val.w != 1) {
...
}
void MyErrorCallback(void) {
CGerror error = cgGetError();
const char* errorString = cgGetErrorString(cgGetError());
printf("Cg error: %s\n", errorString);
// check for compiler errors
if (error == CG_COMPILER_ERROR)
printf("%s\n", cgGetLastListing(context));
}
cgSetErrorCallback(MyErrorCallback);
int arr[] = {2, 1, 3};
for (int i = 1; i < arr[0]; i ++) {
doStuff(arr[i]);
}
frag.cg(71) : error C5013: profile does not support "for" statements and "for" could not be unrolled.
int arr[] = {2, 1, 3};
for (int i = 1; i < MAX_LEN; i ++) {
doStuff(arr[i]);
if (i == arr[0])
break;
}
int arr[] = {2, 1, 3};
for (int i = 1; i < MAX_LEN && i < arr[0]; i ++) {
doStuff(arr[i]);
if (i == arr[0])
break;
}
arr[0]
before MAX_LEN
).
/apps/metacity/global_keybindings/run_command_1
. The associated keybinding is set with /apps/metacity/keybinding_commands/command_1
.