19.6.14

TPB live search

Make a bookmark for the string below in Firefox in order to search in the url bar for tpb items sorted by seeders.

http://thepiratebay.se/search/%s/0/7/0

Labels: ,

13.11.13

When the volume icon disappears from the system tray, get it back again

Windows often loses the volume icon from the system tray on my laptop. Sound still works, but forget opening up mixer and setting application-specific volume settings.

The solution: End the explorer.exe process and then restart it. Bam. Back to normal.

Labels: ,

18.7.13

So lazy

sean@potatocake:~$ps -e | grep deluge
sean@potatocake:~$deluged
sean@potatocake:~$man deluge-web
sean@potatocake:~$deluge-web -f -p 8999
So lazy. That computer was like... 3 meters away from me at the time.

Labels: ,

7.1.13

Auto-detect mobile device and set master page accordingly

 <script runat="server">  
   protected void Page_PreInit(object sender, EventArgs e)  
   {  
     if (Request.Browser.IsMobileDevice)  
       MasterPageFile = "~/Views/Shared/Site.tablet.Master";  
   }  
 </script>  

Labels: ,

Times in the day



#! C:\Perl\Perl.exe -w

my @myList;
for (my $t = 1; $t <= 12; $t++)
{
# body...

push (@myList, ($t . ":00am"));
push (@myList, ($t . ":15am"));
push (@myList, ($t . ":30am"));
push (@myList, ($t . ":45am"));
push (@myList, ($t . ":00pm"));
push (@myList, ($t . ":15pm"));
push (@myList, ($t . ":30pm"));
push (@myList, ($t . ":45pm"));
}

open F, ">myfile.txt" or die $!;

print F "[";
foreach my $t (@myList)
{
print F "\"$t\", ";
}
print F "]\n";


close F;

["1:00am", "1:15am", "1:30am", "1:45am", "1:00pm", "1:15pm", "1:30pm", "1:45pm", "2:00am", "2:15am", "2:30am", "2:45am", "2:00pm", "2:15pm", "2:30pm", "2:45pm", "3:00am", "3:15am", "3:30am", "3:45am", "3:00pm", "3:15pm", "3:30pm", "3:45pm", "4:00am", "4:15am", "4:30am", "4:45am", "4:00pm", "4:15pm", "4:30pm", "4:45pm", "5:00am", "5:15am", "5:30am", "5:45am", "5:00pm", "5:15pm", "5:30pm", "5:45pm", "6:00am", "6:15am", "6:30am", "6:45am", "6:00pm", "6:15pm", "6:30pm", "6:45pm", "7:00am", "7:15am", "7:30am", "7:45am", "7:00pm", "7:15pm", "7:30pm", "7:45pm", "8:00am", "8:15am", "8:30am", "8:45am", "8:00pm", "8:15pm", "8:30pm", "8:45pm", "9:00am", "9:15am", "9:30am", "9:45am", "9:00pm", "9:15pm", "9:30pm", "9:45pm", "10:00am", "10:15am", "10:30am", "10:45am", "10:00pm", "10:15pm", "10:30pm", "10:45pm", "11:00am", "11:15am", "11:30am", "11:45am", "11:00pm", "11:15pm", "11:30pm", "11:45pm", "12:00am", "12:15am", "12:30am", "12:45am", "12:00pm", "12:15pm", "12:30pm", "12:45pm" ]

Labels: ,

17.12.12

iPad user agent strings


iPad in "iPad mode":
Mozilla/5.0 (iPad; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B334b Safari/531.21.10

iPad in "iPhone mode":
Mozilla/5.0(iPad; U; CPU iPhone OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B314 Safari/531.21.10

Labels: ,

3.1.12

Thanks mencoder, you're not a piece of shit...

1 duplicate frame(s)!
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Pos:8557.1s 205169f (99%) 440.55fps Trem: 0min 1570mb A-V:-0.029 [0:1535]
Flushing video frames.
Filters have not been configured! Empty file?
Writing index...
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.

Video stream: 0.000 kbit/s (0 B/s) size: 0 bytes 8557.090 secs 205169 frames

Audio stream: 1536.000 kbit/s (191999 B/s) size: 1642995712 bytes 8557.270 secs
Segmentation fault

Labels: , ,

30.5.09

note to self: .part files

if downloads fuck up right at the end... remove the .part part of the filename and run a repair algorithm on it - 9/10 it repairs the file.

Labels: ,

17.9.07