Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by wilsontc

  1. wilsontc

    P2V a Linux boxen

    This is probably the fastest approach. You obviously can't do this on a Windows system, but for Unix it's great! Just be careful of /etc/fstab. Depending on how many virtual hard disks you're going to use, you may need to modify this file.
  2. wilsontc

    Hard drive caddy for HP N36L microserver

    You don't need to buy caddies for the Microserver, regular 3.5" SATA hard drives go in fine to the 4 plastic mounts it has. I'm just using regular Samsung drives with mine, other people have reported success with WD and Seagate drives.
  3. You can right click on any file or application and go to "Make Link". Then just drag that to your desktop. However, I don't think that really is the most effective way to navigate. If you press your Windows key on your keyboard, you get the Dash. It's probably faster to type the name of the application than to minimise windows to the desktop. As Unity and Ubuntu mature, we'll start to see more novel ways of using the Dash through the use of Lens's.
  4. From what I've been reading, I must be the only person who loves Unity (other than Canonical employees). Ubuntu is awesome. I love Ubuntu One, and will soon need a second 20GB pack (!). Quickly is really fun and interesting. DesktopCouch is awesome, I can't wait to see how that evolves in the next few years. AppIndicators are really sweet, and have reduced the clutter in the notification area. I think it's awesome that Ubuntu is daring to be different in a world of "me too!" Linux distros. Canonical has a lot of detractors. I think if people put the politics aside, they would see that Canonical is making some great software, and to do that, have to make some decisions that not every single community is going to like. My server will probably always run FreeBSD, but Ubuntu is a wonderful desktop distro which is getting better all the time.
  5. A better way is by using something like Process Monitor or Regmon, and watch what keys the application queries. I'm not convinced this is a better way, but it certainly is a good alternative.
  6. wilsontc

    Exchange 2003 SP2

    When you try to navigate to OWA, what error do you get in your browser?
  7. wilsontc

    Important recovery news from Japan

    More intensity!
  8. Are you able to reinitialise the disk from Disk Management in Windows? You may need to take the disk Offline first.
  9. wilsontc

    Scary earthquake?

    Heh, we were just packing to come home to Melbourne when the Earthquake struck. Thankfully we were able to change our flight to the next day (today), but although Narita airport is apparently open, all roads and trains are closed, so we can't physically get there. Instead, we've had to change our flight to depart from Osaka, but Jetstar has told us we can only change a maximum of two times - if an aftershock happens, or if we can no longer get to Osaka (we're going via Shinkansen naturally), we'll need to re-buy the air ticket.
  10. Hello guys, When I was using Exetel as my ISP, I had written a shell function to display my remaining Internet quota for the month. I recently updated it as I switched to Netspace, so I thought I might share this in case someone finds it useful. For the Exetel version, see here. function usage() { data="login=login&dest=%2Fusage-meter%2F&username=YourUsername&password=YourPassword" cookie_jar=/tmp/myCookies.txt url="https://my.netspace.net.au/logincheck" usage_page=/tmp/usage.html curl -s --cookie-jar $cookie_jar --cookie $cookie_jar -d $data --location $url -o $usage_page w3m -dump $usage_page | grep "Usage Remaining" -A 2 } I put this in my shell rc file, and then I can view my remaining usage: timothy@lear:~$ usage Period Usage Remaining Peak 24295 Mb Off Peak 25547 Mb timothy@lear:~$ I also have a function to backup my imap mailbox: function backupmail() { server1="mail.myDomain.com" server2="localhost" users=(timothy mina katherine) passwords1=(rempw1 rempw2 rempw3) passwords2=(localpw1 localpw2 localpw2) for ((i=1;i<${#users}+1;i++)) do ~/opt/local/bin/imapsync --host1 $server1 \ --port1 993 \ --host2 $server2 \ --port2 993 \ --ssl1 \ --ssl2 \ --noauthmd5 \ --user1 $users[$i]@myDomain.com \ --user2 $users[$i] \ --password1 $passwords1[$i] \ --password2 $passwords2[$i] \ --authmech2 plain done } Periodically I run this command which downloads the mail to a locally running instance of Dovecot on my machine. Finally, I have a small function to remove trailing "u1conflict" recursively from files in the current directory. If anyone uses Ubuntu One, you might find this handy! function nou1conflict() { zmv '(**/)(*).u1conflict' '$1$2' } What things do you guys have in your shell rc?
  11. I've done two Hyper-V hosts, and about 8 guests, no issues, but it takes a hell of a long time to install (several hours). Our VM hosts are fairly old though. To get Dynamic Memory working, both the host and the guests need to be updated. Once you've updated the host, be sure to update the integration drivers on the guest and do another restart for the Dynamic Memory goodness :D
  12. wilsontc

    Windows 8 Information ?

    It will be compatible with ARM processors. Other than that, I don't think there has been much confirmed...
  13. I'd love to see you work in a business environment. That sort of attitude would get you laughed out of a job. Compatibility with the most popular office suite (MS Office) Integration with document management systems (SharePoint and friends) Group calendaring (Outlook) Group editing (Office 2010 + SharePoint) Easy-to-use image tools (Office 2010) Rich form creation and management (InfoPath) Shared mailboxes and contact lists (Exchange + Outlook) There is probably more weight on the top three reasons than the others, and to be fair, email / "groupware" functionality is probably provided by other platforms, but Microsoft Office has excellent integration between the various programs in the suite, and this is improving with each release. I am not aware of any one open source solution that has complete feature parity with MS Office, but please enlighten me if this is the case (especially with point 1)
  14. Yup, OpenOffice / LibreOffice has really crap compatibility with Microsoft Office OpenXML files (not too sure about the older .doc, .xls files). If you create a basic document from the default.docx template, yeah, OOo / LO can read it, and you don't lose too much. If you have custom styles, tables, graphics and fields, then you're in for a world of frustration. OpenOffice might be capable of editing your basic uni assignment, but it's far from ready for the average corporate document if compatibility with Microsoft Office needs to be retained. *edit* I saw Dick Smith advertising Office Home and Student for $99 if you purchased a PC too - that doesn't strike me as an unreasonable amount to pay, and if it were available for Linux, I would gladly be using it!
  15. wilsontc

    What starts with your PC?

    Hmm... * UbuntuOne Sync Daemon * Gnome Keyring * GKrellm * Gnome Remote Desktop Server * Ubuntu update notifier * Various power, driver and networking utilities
  16. wilsontc

    Post Your Latest Real Life Purchase!

    How much did that set you back? Just under $90, including postage. http://www.singlemalt.com.au :)
  17. wilsontc

    Post Your Latest Real Life Purchase!

    Cardhu 12 year old.
  18. wilsontc

    So I'm using Linux...

    I bow down to Redhatter's superior ASCII skills!
  19. Hi guys, I have two public classes. I am trying to call a static method from one of the public classes, and am getting "An object reference is required for the non-static field, method or property <methodName>" when I try to build. Class with static method: public class Sku { /* Snip various getters and setters */ public static IEnumerable<Sku> FindByDynamic(string searchTerm) { OrderManagerEntities db = new OrderManagerEntities(); string escapedTerm = searchTerm.Replace("'", "''"); return (from s in db.Skus where s.manufacturer_code.Contains(escapedTerm) || s.name.Contains(escapedTerm) || s.vendor_code.Contains(escapedTerm) || s.description.Contains(escapedTerm) select s).ToList(); } } } I'm trying to call the above method like this: 1 public ActionResult Results(string query) 2 { 3 IEnumerable<Sku> skus = Sku.FindByDynamic(query); 4 return View(skus); 5 } I'm getting the error on line 3. I thought that by performing the Linq query within the static method the I could call FindByDynamic() like this, but clearly I can't. As an aside, is there a better way to query my DB? Is there a built-in method to escape my query string? I'm quite worried about it!
  20. Thanks Kikz! Implementing the guards did the trick. Seems like I have a few things to learn about the logical operators in .NET.
  21. SKU is not a partial class. What should I test for NULL? searchTerm will always be present, and escapedTerm shouldn't ever return NULL...? Sorry, I'm not sure what you mean Kikz! Is there a better way of accomplishing what I want to do? Should I employ a more sophisticated method of escaping the search query string?
  22. Thanks for the responses Kikz and Periander. So then...what would I need to do to make the above work? Basically, I'm trying to keep all the "find Sku" code in the Sku class. It seems like if I moved this to the controller, it would work fine! Not what I'm after :| (Yes, this is .NET MVC 3 as you seem to have gathered) Or do I need to implement Periander's "rant" pattern? ;)
  23. Ah yes, the "production POC"...:( You're right. I will be more careful.
  24. wilsontc

    Some mischievous fun

    It allows you to load a program or library which the program wasn't originally going to load. The security implications are enormous. In this case, anything that requires getpwuid() is going to use this function instead, and thus print usernames in reverse...
  25. wilsontc

    Some mischievous fun

    Sneaky! I had no idea about LD_PRELOAD. Is there a similar call back when a program exits, or would that require modifying exit()? Clearly your colleague hasn't needed to use ps much the last two years :)