Sometimes Dave comes up the strangest ideas, but there’s plenty of evidence to the contrary. Frontier indeed.. 🙂
Monthly Archives: May 2003
Linux to Symbian File Transfer – HOWTO
I finally got to see my phone’s filesystem from Linux this morning! I used p3nfs to connect my Nokia 7650 and Red Hat 9 Linux box. Here’s how.
- Login to your Linux box as root.
- Make sure you have the following rpms installed: bluez-libs-devel, bluez-libs, bluez-utils. They’re available from your local apt-rpm repository (just apt-get install them!) or from http://bluez.sf.net
- Copy the following lines to your /etc/modules.conf
# bluetooth stuff
alias net-pf-31 bluez
alias bt-proto-0 l2cap
alias bt-proto-2 sco
alias bt-proto-3 rfcomm - Start Bluetooth services:
/etc/init.d/bluetooth start
- Create the bluetooth device if it doesn’t exist:
mknod /dev/rfcomm0 c 216 0
- Create a directory for the mobile to be mounted on:
mkdir /mnt/psion
- Download p3nfs from the site above. Copy the nfsapp for your phone to your phone (you’ll have to mail it to your phone, wap, or bluetooth in Windows.)
- p3nfsd doesn’t compile on Red Hat 9, but it’s simple to fix that. cd into the nfsd directory, edit “mp_mount.c” and remove any mention of
extern int errno
from it and add#include <errno.h>
at the top of the file. Do the same in “mp_xmit.c” and compile usingmake clean;make
- Follow the instructions in README.bluetooth.linux (find the BDADDR, bind to the device, and start the nfs app and servers.
- cd into /mnt/psion and look around your phone!
This is in fact more useful than the Windows tools I have. I couldn’t send images from my phone to my desktop software, and there’s quite a few of them. Using this, I simply went into /mnt/psion/C:/Nokia/Images/ and “mv”ed the files onto my PC!
There’s an “Installs” directory there too so I presume that’s where the .sis and .jar files go to install applications. Will test later. /me’s happy!
This howto wouldn’t have been possible without the invaluable page Tom wrote about his own experiences. Thanks! And of course Google helped me compile p3nfsd!
test post
this is a test, you can ignore it!
$2 trillion fine for Microsoft security snafu?
Doubtful it’ll happen..
Microsoft’s latest security lapse with its Passport information service could trigger a $2.2 trillion fine on the company courtesy of the US government.
Microsoft on Thursday admitted that a flaw in the password reset tool of its Passport service could compromise the information stored on all 200 million users. It scampered to post a fix and is looking into potential exploits, but the damage to Microsoft may already have been done.
Palm XP?
These images look very cute do they not? ‘course they could be Palm Be too 😉
How To Make A Telemarketer Cry
This story is enlightening if you live in the States. Laws will change elsewhere though. This counterscript should help anyone when you’re talking to telemarketers though!
MVC, PHP and Smarty Caching…
Moving a purely procedural program to an OO design is a mammoth task, especially when that program is several years old and had bits added on over the while.
I’ve pruned out a lot of the extra features that are not needed now, and some that are simply silly, but now I’m coming to a stumbling block.
Smarty can cache content. The beauty of that is I can avoid a whole load of expensive operations like database queries, information lookups from remote sources, code loops, etc. In an MVC application, where should the check for cache freshness be?
- Should it be in the controller class so it can call the functions of the model to create the view?
- Should it be in the model, so the controller doesn’t have to know about the model? The model is where the expensive operations are anyway.
- Should it be in the view, because that’s the locality of freshness information? Isn’t caching an element of the display procedure?
If it’s in the controller, then the controller has to know about caching, is that bad?
If it’s in the model, then the controller is ignorant, and therefore not a controller.
If it’s in the view, the controller is ignorant, and the view is now “controlling” if functions are called in the model.
You can see where my reasoning is going with this..
The controller should probably have access to the cache information. It shouldn’t talk directly to the Smarty instance in the view however. It should talk to a function that takes data from the model, checks the cached views against that data and any timeouts and returns true or false.
For example:
class exampleController
{
function exampleController()
{
// skip unimportant bits.
// create model and view
if( $this->view->is_cached() == false )
{
// do some expensive operations in
// the model to create the view.
}
}
}
Or should that is_cached()
function be in the model? Please comment if you have any insights!
Synergy – The K_M out of KVM
Synergy looks very useful for sharing desktops!
Synergy lets you easily share a single mouse and keyboard between multiple computers with different operating systems, each with its own display, without special hardware. It’s intended for users with multiple computers on their desk since each system uses its own monitor(s).
Thank you ILUG for the link!
Where is Raed ?
MonMotha's IPTables Firewall
I’ve looked around for ages for a decent firewall generator script but I ran into problems with all of them. (No, I haven’t got time to learn about yet another firewall implementation! I gave up after ipfwadm!)
This script looks like it’ll do the business though! Just enter the network addresses of your internal lan(s), what ports you want to keep open, internal and external interfaces, and finally what networks to masquerade. Simple!
Update! Bah! Had to remove it again. It worked fine, except 2 users on our network had consistent problems connecting to our gateway for minutes at a time! Didn’t happen to anyone else though!