Haggis Veteran Posted January 21, 2014 Veteran Share Posted January 21, 2014 Hey Guys over the last few weeks i have had a few things happen in my life that have gotten me a bit down in the dumps I need a project to get my teeth into to get my mind working again The last time i did this is when i created the stats script I am still working on that in th background but its slowed a little as i am not sure what else i can add So cmon give me your ideas... Link to comment Share on other sites More sharing options...
ichi Posted January 21, 2014 Share Posted January 21, 2014 Well I can tell you a (rather stupid) idea I had some weeks ago: sort of an external device alarm. I say it's stupid because it'd be a bit annoying, but rather than it's usefulness I was interested in the fact that it could be easily done. Anyway, it'd go like this: say you brough your laptop to some customer's office or someone else's house, and aren't all that confident about your stuff (phone, pendrives, mouse, the whole laptop) not disappearing as soon you walk away. What if you could set it up so whenever anything is disconnected (usb stuff and even the power plug) it activated some action like ringing an alarm, taking a picture with the webcam or maybe sending an email with the event and the pictures? For usb devices you can set up udev events on plug and unplug, and then use some graphical frontend to let the user decide which devices will raise the alert. For the power plug IIRC you can check that on /proc You would also have to rise the volume when the alarm fires, and I found back then an article somewhere about a way to override the mic and phones plugs' settings, so you could disable the phones plug so it goes through the speakers no matter what. As I said it might not be all that usefull anyway, but it's easy enough to keep you entertained for a while without much headache, if you feel like it :laugh: the different pieces can be done in a matter of minutes, the actual work is putting it all together and packaging it nicely. Link to comment Share on other sites More sharing options...
firey Posted January 21, 2014 Share Posted January 21, 2014 ^ That's actually a really good idea. Could even add some option to like shutdown the computer or something. So that if your computer has a password, and you are logged in, it will alarm/send email/etc but you could also have the option of shutting it down. That way if someone does take it and they shouldn't it will automatically log off/shutdown/etc. Would also be cool to have something where it remembers the last IP address it was connected to. And if you connect with a different IP/ISP (you could specify a range for dynamic ip) it prompts you for a password. If no password/incorrect password is written, it could go through and clean up all personal information/wipe the drive/something. Link to comment Share on other sites More sharing options...
Kreuger Posted January 21, 2014 Share Posted January 21, 2014 What about a gui for your script? Link to comment Share on other sites More sharing options...
Yorak Posted January 21, 2014 Share Posted January 21, 2014 This week I have been looking at different window managers again out of boredom. Mostly tiling ones. Perhaps you could find one that looks interesting to you and try to master the keyboard shortcuts? People can be very efficient on them. I have experimented with them plenty of times but could never stick with them for too long. I recommend bspwm. The only reason I say that instead of working on a script is because there are scripts for nearly everything. Link to comment Share on other sites More sharing options...
Haggis Veteran Posted January 21, 2014 Author Veteran Share Posted January 21, 2014 Some good ideas :D Kreuger you mean so you could display its the dialog for people that dont want to use the cli version? Link to comment Share on other sites More sharing options...
firey Posted January 21, 2014 Share Posted January 21, 2014 Some good ideas :D Kreuger you mean so you could display its the dialog for people that dont want to use the cli version? Yea, Basically have something akin to the Windows One, that shows Version, Memory, Cpu, etc. Link to comment Share on other sites More sharing options...
Haggis Veteran Posted January 22, 2014 Author Veteran Share Posted January 22, 2014 lol i hate to disappoint but i dont think i am that good :( looking at perltk u think this is best for the dialog? Link to comment Share on other sites More sharing options...
snaphat (Myles Landwehr) Member Posted January 22, 2014 Member Share Posted January 22, 2014 lol i hate to disappoint but i dont think i am that good :( looking at perltk u think this is best for the dialog? Maybe not the best (in terms of looks), but if you did your stat script in perl, then go for it. Learning isn't about doing it the best at first anyway, it's about learning something new, in this case learning a bit about gui toolkits (tk is supposedly easier than other gui toolkits so that's a plus for starting out btw). Note: After thinking about it, I'd imagine that tk is probably the most widely distributed perl gui toolkit. So in terms of compatibility it probably is best. Link to comment Share on other sites More sharing options...
Haggis Veteran Posted January 22, 2014 Author Veteran Share Posted January 22, 2014 Cool i had a look at it last night managed to get some labels and some text boxes on it so will keep plugging away at it :) always good to learn something new snaphat (Myles Landwehr) 1 Share Link to comment Share on other sites More sharing options...
firey Posted January 22, 2014 Share Posted January 22, 2014 Could always look into .NET (Mono) and do it with monodevelop. Link to comment Share on other sites More sharing options...
Recommended Posts