Word has it that channel ten is opening their HD channel today (a proper opening, rather than simply simulcasting all of their Standard Definition content). Tonight they’re gonna be broadcasting Black Hawk Down in HD =D.
Author Archive for brentp
I’ve implemented theming for the graph control. Cool, huh? Download link is the same as before.
Enjoy.
I wanted to get one thing working with the XMLTV viewer since the start: viewing the tv guide on a graph/timetable style thing. This essentially allows you to take a glance at whats on the channels at the current moment. Currently it does not allow you to click on a block and see the same extended information about the program as you would be able to in the other views, oh, and you cannot view stuff more than 2 days in advance (hardcoded limit, since the timetable thing is very resource taxing). One final thing that does not work with it: setting the grid/timetable view as the default view when loading. Thats mainly because the Timeline.BringToFront() method does not work very well. Not my fault. Anyway, without further ado:
The enhancements like extended info viewing will be implemented sometime on the holidays, but wont happen immediately since i’ve got the graph thing working and that was my primary goal.
Enjoy.
Alas, there is more XMLTV. There have been no changes in the actual program itself, just the ability to select a region to add a key in the registry to fetch http://guides.byremote.com.au guides. Pretty minor, but it took like 8 hours because Visual Studio doesn’t make it easy to make custom dialogs for setup and deployment projects. This meant that the .wid files that came with VS had to be manually edited to allow a custom design. I, for one, do not recommend MSI authoring (to be honest, I prefer NSIS but I didn’t feel like downloading it).
Enjoy.
I’ve just gotten around to compiling an MSI based installer for the XMLTV Viewer mentioned in the previous post. It has a barely functional scheduling system (you can schedule reminders for tv shows, but they aren’t persistent across sessions, so once you close the program, the schedule reminder is forgotten). You will also notice a reminder page in the options dialog. Currently, it lists all active reminders but doesn’t have the ability to delete them. I will also automatically create a working directory to store xmltv files in the next revision of the installer (it will save having to manually create the working directory and configure it).
Without further stalling:
Screenshot below:
Looks good, dun it?
Recently, i’ve been working on an application that allows you to view the data stored in XMLTV Guide files. Because i originally had no understanding of XML and how to parse it in C#, it was a good idea to fork off an existing product, so i found this. It is a lightweight application written by Ian Bishop, originally intended to parse radio times files. The additions that i have made are:
- Automatic XMLTV Guide Downloading
- Scheduled reminders of when tv shows are starting
- Removed all the UK specific stuff.
- Added other applicable fields that are given in Australian XMLTV Data (like the “Subtitle” which is the name of the show, the “Category” and the credits.
There’s going to be some more additions in the next few weeks, and i’ll post a link when all of the features are implemented, bugs removed and efficiency improved. Thats all for now.
Anyway, you can get the original from the link above or from here. Theres also an old pocketpc version for people that have PDA’s. You can also download the source code from there if you wish to make your own modifications.
1080i/AC3 rocks so hard.
Recently I bought a Western Digital Mybook World Edition II NAS, before i purchased it i was sure to find out whether it had an embedded linux distribution installed on it, and if there were hacks available to enable ssh access etc. Luckily, there were (one doesn’t even need physical access to work). So, ive been working to get the following going:
- LFTP
- PureFTPD
- Samba
- Screen
and after about 4 or 5 weeks of work, everything is working correctly with compilation problems cropping up every now and then. One of the WORST errors that was so goddamn annoying was the following (when compiling lftp):
./.libs/liblftp-jobs.a(commands.o): In function `cmd_chmod(CmdExec*)’:
commands.cc:(.text+0×5cb0): undefined reference to `mode_compile’
./.libs/liblftp-jobs.a(FileSetOutput.o): In function `FileSetOutput::print(FileSet&, OutputJob*) const’:
FileSetOutput.cc:(.text+0xc4): undefined reference to `rpl_fnmatch’
FileSetOutput.cc:(.text+0×268): undefined reference to `human_readable’
FileSetOutput.cc:(.text+0×4e0): undefined reference to `strmode’
./.libs/liblftp-jobs.a(QueueFeeder.o): In function `QueueFeeder::get_next_match(char const*, QueueFeeder::QueueJob*)’:
QueueFeeder.cc:(.text+0×7f0): undefined reference to `rpl_fnmatch’
./.libs/liblftp-jobs.a(QueueFeeder.o): In function `QueueFeeder::MoveJob(char const*, int, int)’:
QueueFeeder.cc:(.text+0×8c8): undefined reference to `rpl_fnmatch’
./.libs/liblftp-jobs.a(FindJobDu.o): In function `FinderJob_Du::print_size(long long, char const*)’:
FindJobDu.cc:(.text+0×6f8): undefined reference to `human_readable’
./.libs/liblftp-jobs.a(ChmodJob.o): In function `ChmodJob::GetMode(FileInfo const*) const’:
ChmodJob.cc:(.text+0×230): undefined reference to `mode_adjust’
./.libs/liblftp-jobs.a(ChmodJob.o): In function `ChmodJob::CurrentFinished(char const*, FileInfo const*)’:
ChmodJob.cc:(.text+0×2c0): undefined reference to `strmode’
/root/lftp-3.5.12/src/.libs/liblftp-tasks.a(ResMgr.o): In function `ResMgr::Resource::ClosureMatch(char const*)’:
ResMgr.cc:(.text+0×99c): undefined reference to `rpl_fnmatch’
/root/lftp-3.5.12/src/.libs/liblftp-tasks.a(FileSet.o): In function `fnmatch_dir(char const*, FileInfo const*)’:
FileSet.cc:(.text+0×20f0): undefined reference to `rpl_fnmatch’
/root/lftp-3.5.12/src/.libs/liblftp-tasks.a(FileGlob.o): In function `Glob::add(FileInfo const*)’:
FileGlob.cc:(.text+0×264): undefined reference to `rpl_fnmatch’
/root/lftp-3.5.12/src/.libs/liblftp-tasks.a(PatternSet.o): In function `PatternSet::Glob::Match(char const*)’:
PatternSet.cc:(.text+0×314): undefined reference to `rpl_fnmatch’
/root/lftp-3.5.12/src/.libs/proto-http.a(Http.o): In function `Http::CookieClosureMatch(char const*, char const*, char const*)’:
Http.cc:(.text+0×1f60): undefined reference to `rpl_fnmatch’
collect2: ld returned 1 exit status
make[1]: *** [lftp] Error 1
make[1]: Leaving directory `/root/lftp-3.5.12/src’
make: *** [all-recursive] Error 1
and that was fixed by installing gnu-findutils. Some other stuff also cropped up, which was mainly caused by western digital opting to use ‘ucLibC’ over GlibC (uclibc is a portable c library made for use on portable devices, whereas the latter is made for fullsize linux distributions. One of the drawbacks is that it doesnt support streams. Some specs of the device are:
[root@storage lftp-3.5.12]# df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 2.8G 981M 1.7G 37% /
/dev/root 2.8G 981M 1.7G 37% /
/dev/md3 950M 20M 883M 3% /var
/dev/md4 455G 111G 344G 25% /shares/internal
[root@storage lftp-3.5.12]# cat /proc/cpuinfo
Processor : ARM926EJ-Sid(wb) rev 5 (v5l)
BogoMIPS : 99.73
Features : swp half thumb fastmult edsp java
CPU implementer : 0×41
CPU architecture: 5TEJ
CPU variant : 0×0
CPU part : 0×926
CPU revision : 5
Cache type : write-back
Cache clean : cp15 c7 ops
Cache lockdown : format C
Cache format : Harvard
I size : 32768
I assoc : 4
I line length : 32
I sets : 256
D size : 32768
D assoc : 4
D line length : 32
D sets : 256
One drawback is that by default, the NAS has a bunch of java crap installed on it (its called mionet, its generally used for ‘worldwide sharing’ which can also be accomplished with an ftp server), and as everyone would know, java chews a hell of a lot of cpu and memory, so the first task was getting rid of that.
Anyway, by this point you’ve noticed that this post is almost nonsensical. One great resource for the mybook is http://martin.hinner.info/mybook/
Enjoy.
Heres a chain email i received the other day about the aforementioned topic:
Bcc:
Subject: ATTENTION
Date: Fri, 06 Apr 2007 18:22:47 +1030
Mime-Version: 1.0
Content-Type: text/plain; format=flowed
X-OriginalArrivalTime: 06 Apr 2007 07:52:51.0574 (UTC) FILETIME=[93B4E160:01C77820]
HI guys
Sorry to break the news, but looks like all of those warnings were real!
The use of msn and mail will cost money from summer 2007. If you send this
message to 18 different people from your list your little msn icon will
become blue and that will make it free for you. If you dont believe me go on
(www.msn.com) and see it yourself. Dont foward this message, copy paste it
so people will actually read it.> Hey it is Andy and john the directors of
MSN, sorry for the interruption but
msn is closing down. this is because too many inconsiderate people are
taking up all the name (eg making up lots of different accounts for just one
person), we only have 578 names left. If you would like to close your
account, DO NOT SEND THIS MESSAGE ON. If you would like to keep your
account, then SEND THIS
MESSAGE
TO EVERYONE ON YOUR CONTACT LIST. This is no
joke, we will be shutting down the servers. Send it on, thanks.
WHO EVER DOES NOT SEND THIS MESSEAGE, YOUR ACCOUNT WILL BE CLOSED AND YOU
WILL COST £10.00 A MONTH TO USE. SEND THIS TO EVERYONE ON YOUR CONTACT LIST.
NOW YOU KNOW WHAT TO DO. PLEASE DO NOT FORWARD THIS or REPLAY. COPY THE
WHOLE EMAIL. GO BACK TO YOUR INBOX AND CLICK ON NEW. AND PASTE THANK YOU FOR
YOUR ATTENTION
hey everyone, i dont normally send this sort of stuff out but had a look on
the internet and its
actually true . On the 30th of november , we will have
to pay for the use of our MSN and email accounts unless we send this message
to at least 18 contacts on your contact list. It’s no joke if you don’t
believe me then go to the site
(http://news.bbc.co.uk/1/hi/business/1189119.stm) and see for yourself.
Anyways once you’ve sent this message to at least 18 contacts, your msn dude
will become blue. please copy and paste don’t forward cos people won’t take
notice of it
My rebuttal:
1) You neglected to read the date on that article. MSN CHAT was the
item to close down in 2001 (it was due to people flooding their chat
rooms and such).
2) MSN is ran by a fucking multinational corporation which makes
BILLIONS of dollars of profit per year and has almost unlimited
computing resources.
3) That parent company makes the worlds most popular operating system
and web browser.
4) There is over 40 billion combinations of email addresses for ONE
domain. So multiply that by four or five, then its simply infinite.
(@live.com, @hotmail.com, @msn.com)
5) Microsoft makes more profit from msn than it costs them to run it.
MSN is also the most popular IM system on the internet.
6) If it really was closing down, there would be a huge fucking
uproar. Go to http://mess.be Is msn closing down? No.
7) Once again, http://chat.msn.com/ was what closed down, not Windows
Live Messenger.
Dont forward this shit to me again.
Regards,Brent
Alls well that ends well.
Okay, the source for the program/website was in the last post, and a lot has changed since then. I’ve fixed a lot of bugs and added a ’singular’ url download form and a ‘force complete’ button. For some reason BITS doesn’t like to call .Complete() when you have forty or so jobs going. So, it looks like this is going to be an uphill battle. As a temporary fix, i’ve made a button that forces .Complete() to be called if BytesTransferred == BytesTotal. It’s helped a lot recently, but, its only a halfassed hack. I’ll upload the updated file in the next few hours, since i’m incredibly lazy atm. But, the remote dl thing is working great for what i need it for. I need ideas for stuff** to code in ASP.NET.