Latest posts of: ewemoa - DonationCoder.com
HOME | Blog | Software | Reviews and Features | Forum | Help | Donate
Click here to
donate and join now!
Welcome Guest.   Make a donation to an author on the site April 26, 2015, 12:11:44 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Read the full one-year retrospective report on DonationCoder.com.
   
  Forum Home Thread Marks Chat! Downloads Search Login Register  
  Show Posts
      View this member's profile 
      donate to someone Donate to this member 
Pages: Prev 1 ... 56 57 58 59 60 [61] 62 63 64 65 66 ... 100 Next
1501  Other Software / Developer's Corner / Re: Automated Snapshots with VirtualBox on: June 06, 2011, 12:10:56 AM
To give a taste of what it might be like to use Python to work with VirtualBox, below is a modified example from the SDK docs to start a virtual machine.  The code runs on a host and starts up an already configured guest.  It seemed to work ok with a locally installed VirtualBox 4.0.8.

Formatted for Python with the GeSHI Syntax Highlighter [copy or print]
  1. from vboxapi import VirtualBoxManager
  2. virtualBoxManager = VirtualBoxManager(None, None)
  3.  
  4. vbox = virtualBoxManager.vbox
  5. mgr = virtualBoxManager.mgr
  6. print "Version is", vbox.version
  7.  
  8. def machById(id):
  9.    mach = None
  10.    for m in virtualBoxManager.getArray(vbox, 'machines'):
  11.        if m.name == id or mach.id == id:
  12.            mach = m
  13.            break
  14.    return mach
  15.  
  16. name = "Windows XP SP3"
  17. mach = machById(name)
  18.  
  19. if mach is None:
  20.    print "cannot find machine", name
  21. else:
  22.    session = mgr.getSessionObject(vbox)
  23.    progress = mach.launchVMProcess(session, "gui", mach.id)
  24.    progress.waitForCompletion(-1)
  25.    session.close()
1502  Other Software / Developer's Corner / Re: Automated Snapshots with VirtualBox on: June 05, 2011, 09:33:50 PM
Thanks for the ideas and suggestions smiley

Am trying to digest the SDK Programming Guide ATM.  It looks pretty clear so far that using Python would make certain things easier than using some other alternatives.
1503  Other Software / Developer's Corner / Re: Automated Snapshots with VirtualBox on: June 04, 2011, 12:21:17 PM
Thanks for the link -- I'd just come across:

  http://www.virtualbox.org/manual/ch11.html

where I saw COM, XPCOM, and other things of potential interest mentioned.  This triggered some poking around the VirtualBox site's documentation section, where I noticed the SDK Programming Guide, but haven't really looked at it in any detail yet.

I'm not sure how nasty taking a snapshot becomes, so some real-world experience via a prototype using easy-to-develop scripts and some scheduling code as you suggested is a path that seems reasonable.  FWIW, it looks like the tool on the guest end, vboxcontrol, is headed in the direction of being able to initiate a snapshot.  In my locally installed version, I get some message about not implemented yet, so ATM it's looking like a host+guest idea.

On a related note, I started to use Workrave recently and got to thinking that if I was going to be taking breaks so frequently, may be snapshotting could happen during some of those times smiley

This idea seems pretty obvious in retrospect though, so I'm wondering if someone hasn't already done something similar.
1504  DonationCoder.com Software / Unfinished Requests / Re: UNANSWERED: Bookmarklet to replace 'user-scalable=0' with 'user-scalable=1' on: June 04, 2011, 08:42:26 AM
The following is something that I tried out via Firebug on http://en.m.wikipedia.org/:

Formatted for Javascript with the GeSHI Syntax Highlighter [copy or print]
  1. (function ()
  2.  {
  3.    var elts = document.getElementsByName("viewport");
  4.    var attrval = "";
  5.    /* XXX: this is not quite right */
  6.    var cntRe = /(user-scalable\s*=\s*0)/i;
  7.    var i = 0;
  8.    for (i = 0; i < elts.length; i++)
  9.    {
  10.      attrval = elts[i].getAttribute("content");
  11.      if (cntRe.test(attrval))
  12.      {
  13.        elts[i].setAttribute("content", attrval.replace(cntRe, "user-scalable=1"));
  14.      }
  15.    }
  16.  })();

When I examine the DOM before and afterwards, it looks like may be it's working.  Haven't converted it into a bookmarklet to test that way yet.  May be there are other folks who can join in to test smiley

Update: Changed comment // -> /* */ to facilitate bookmarklet conversion.
1505  Other Software / Developer's Corner / Re: Automated Snapshots with VirtualBox on: June 04, 2011, 08:07:57 AM
Err...

May be this wouldn't work so well for certain situations -- e.g. some involving a network.  But FWIW, it looks somewhat doable using VirtualBox's vboxmanage (host) and vboxcontrol (guest via guest additions) command line tools.

Sorry I didn't get the capitalization correct...
1506  Main Area and Open Discussion / Living Room / Re: Will Apple Tell You What You Can/Can't Take Pictures of? on: June 04, 2011, 03:42:05 AM
Apple's legendary 1984 advert told us everything we needed to know, we were just too dumb to realise they were Big Brother.
Ahhhhhh.  Now I get it smiley
1507  Other Software / Developer's Corner / Automated Snapshots with VirtualBox on: June 04, 2011, 01:59:25 AM
Those hard to reproduce bugs...sometimes we reproduce them, but then subsequently don't seem to be able to...

Perhaps we'd have a better chance if we could start from a snapshot of a virtual machine which was taken shortly before a successful reproduction -- may be also having frequent screenshots of the system.

So with disk space being on the cheaper side these days, may be automatically taking snapshots of one's system every X minutes would be practical (can delete stuff that older than some time for keeping the amount of used space manageable).

May be this wouldn't work so well for certain situations -- e.g. some involving a network.  But FWIW, it looks somewhat doable using VirtualBox's vboxmanage (host) and vboxcontrol (guest via guest additions) command line tools.

One way to do this would be to leverage the guestproperty (get, set, wait) and snapshot subcommands.

Has anyone seen anything that does this sort of thing already?
1508  Other Software / Developer's Corner / Re: SWF 2 EXE "open source" release help, please on: June 01, 2011, 10:15:25 PM
Don't know how much use it may be, but FWIW, I came across this article which brings up some potential pitfalls (in the opinion of the author of the article smiley ) for writing one's own license:

http://www.plagiarismtoda...t-write-your-own-license/
1509  Main Area and Open Discussion / General Software Discussion / Re: DVCS ? on: June 01, 2011, 07:37:35 AM
Found Git and Mercurial: Compare and Contrast from the comments of:

And there's this great blog article (also fairly recent -- recommended) :  Mercurial and Git: a technical comparison.

Understanding some of the nuts and bolts has really helped me in following (perhaps not completely) documentation and discussions -- for both Git and Mercurial.
1510  Other Software / Developer's Corner / Re: SWF 2 EXE "open source" release help, please on: June 01, 2011, 04:18:18 AM
May be take a look at some of the BSD licenses for inspiration and reference?
1511  DonationCoder.com Software / Find And Run Robot / Re: [Feature request/Plugin idea] add search in dictionary.com on: May 31, 2011, 07:05:00 AM
Did you try dosearchontrigger?

Quote
   dosearchontrigger STRING TO SEARCH FOR - doesn't change the editbox but causes FARR to display results as if user had typed the string.  very useful in conjunction with regular expression patterns.  like dosearch but only happens when user hits Enter.
1512  Main Area and Open Discussion / General Software Discussion / Re: DVCS ? on: May 31, 2011, 05:34:48 AM
Perhaps so smiley

...and give the gource developer more practice with OpenGL may be...
1513  Main Area and Open Discussion / General Software Discussion / Re: DVCS ? on: May 31, 2011, 04:28:42 AM
Came across gource -- "a software version control visualization tool" -- anyone tried it out?

Sample videos and screenshots smiley
1514  Main Area and Open Discussion / General Software Discussion / Re: DVCS ? on: May 31, 2011, 12:56:39 AM
Thanks for the additional links smiley

To diverge a bit, I'm taking a look at etckeeper -- a tool to manage a *nix (hmm, not sure about the *BSDs) system's configuration info via a DVCS.  Looks like it's supposed to work with Git, Bazaar, Mercurial, and Darcs.  Perhaps for folks who are looking after certain types of systems, this kind of thing might be an entry point into learning to use one of the DVCS systems.
1515  Main Area and Open Discussion / General Software Discussion / Re: DVCS ? on: May 27, 2011, 07:25:28 AM

With all that said, I’ve considered creating a Mercurial extension that adds git’s index functionality to Mercurial, because I think it would make the transition to Mercurial easier for git users. I’ve had enough experience with Mercurial’s internals to know that such a thing is possible, but I simply don’t have the time to do it all myself. If you’re interested in helping out please let me know!

...  So maybe this index isn't that useless after all. smiley
BTW, have you seen the same author's post on Mercurial Queues?

  A Git User’s Guide to Mercurial Queues

Stacked Git and guilt look interesting too.
1516  Other Software / Developer's Corner / Re: Resources for learning git? on: May 25, 2011, 10:57:53 PM
I highly recommend the Pro Git book, but it may be a bit too deep as a first introduction.
Recently I came across a .epub version.  The online version seems a bit easier to read, but it's nice to be able to access the content offline.
1517  Main Area and Open Discussion / Living Room / Re: Daily Autohotkey on: May 25, 2011, 01:08:37 AM
I thought it's good idea to see what autohotkey apps are most of us are using on daily basis. Or apps made in autohotkey that you can't live without ?
Recently I've used the following on more than a few occasions:

sWeather
Video2MP3
SelectAll
DisablePortableAppSplashScreen
1518  Main Area and Open Discussion / General Software Discussion / Re: Alpha Search - In File Search Tool on: May 24, 2011, 10:51:07 PM
Thanks for posting smiley

I tried it out and initially wondered if I was going to use Notepad++ anyway, why not use its Search -> Find in Files... functionality.  Shortly after I realized that Alpha Search appears to display search results as it finds them and one can double-click on a result while the search is still in progress -- whereas with Notepad++ IIUC one must wait for the search to complete before seeing any results.
1519  DonationCoder.com Software / LaunchBar Commander / Re: Mouser - newest version of LBC installer was flagged as a trojan on: May 24, 2011, 09:49:17 PM
For reference, I tried uploading a zipped LBC folder with the NirCmd folder removed and got:

http://www.virustotal.com/file-scan/report.html?id=1a2facb8134f0d69c27dcb96890c2d3f58f7574a09cd576de08d9ca56ee26d61-1306291149

No VIPRE this time, and I didn't see any obvious mention of NirCmd (not surprisingly), but still 4 AV engines seemed to mention something...
1520  DonationCoder.com Software / LaunchBar Commander / Re: Mouser - newest version of LBC installer was flagged as a trojan on: May 24, 2011, 09:02:17 PM
FWIW, I tried uploading to virustotal and got:

http://www.virustotal.com...53d5046b371937-1306287846

In the case of Sophos, the result listed in red was "NirCmd" -- which I guess happens to be included in LBC's zip file.

The following is from a NirSoft FAQ list:

Quote
Q: The antivirus software on my computer reports that some of the your utilities are infected with a virus or trojan. What should I do ?

A: First of all, All the utilities in my Web site are clean, and they don't contain any virus or trojan. Unfortunately, Antivirus programs are not perfect, and in many times they detects innocent software as infected with trojan or virus. This problem is known as 'False Positive' or 'False Alert', and it's quite common in password-recovery tools. If your antivirus software reports that utilities you downloaded from this Web site are infected with a virus or trojan, I highly recommend you to contact your antivirus company and ask them to fix this 'False Positive' problem in the next update of your antivirus software. You can also contact NirSoft to report about 'False Positive' problems. Click here to view the latest 'False Positive' problems reported by users from around the world.

In the case of VIPRE, I saw:

Quote
VIPRE 9381 2011.05.25 Trojan.Win32.Generic!BT

FWIW, the MD5 and SHA1 checksums of the file uploaded (requested a re-analysis) were:

MD5   : 9cb3a38088807f54e7f89ac30e09c030
SHA1  : d3578d56c6ec1c23179520a01309a79ccb38324b

1521  Main Area and Open Discussion / General Software Discussion / Re: DVCS ? on: May 24, 2011, 08:30:05 PM
To confirm, do you mean something like the following?

1. Before "Stage" (HEAD vs. Working Tree) - focus is on right side (Working Tree)
[attachimg=1]

2. After "Stage" (HEAD vs. Index) - focus is on left side (HEAD)
[attachimg=2]

3. After "Unstage" (HEAD vs. Working Tree) - focus is on left side (HEAD) and cursor has moved up to the top-leftmost position.
[attachimg=3]
On a separate note, does the right side content look "stale"?  Or may be the label of "HEAD vs. Working Tree" should be "HEAD vs. Index"?

4. After "Reload the previewed file contents" (HEAD vs. Working Tree) - focus is on left side and the cursor is at the beginning of the first difference in text(?)
[attachimg=4]

FWIW, I got similar results with the cursor starting in an area of the content which didn't change.

OS: Windows XP SP3
SmartGit Version: 2.0.4
Build Date: 2011-04-05
Java Version: 1.6.0_24-b07
1522  DonationCoder.com Software / LaunchBar Commander / Re: Middle mouse button for showing LBC on: May 24, 2011, 09:39:53 AM
Attached is a quick hack to get pressing the middle mouse button to lead to a configurable key sequence being generated.

The attached settings.ini file makes the generated key sequence Control+Shift+B.

  • Place the settings.ini file and exe file in the same directory and launch the exe.
  • Configure LBC to show or come up as a pop up menu via Control+Shift+B.
  • Try invoking Control+Shift+B.

For more info on configuration of hotkeys see:

  http://www.autohotkey.com/docs/Hotkeys.htm
  http://www.autohotkey.com/docs/commands/Send.htm
1523  Other Software / Announce Your Software/Service/Product / Re: [Freeware] FadeTop - a visual break reminder that fades the desktop on: May 23, 2011, 05:19:54 AM
Try this:

First set a low Max opacity value (say 40) via Options dialog, then click the program icon to invoke the fader. Now do anything as if the fader is not there.
Thanks for the suggestion.

I have been trying with mixed results.  I find that I often don't stop -- will keep trying though.
1524  Other Software / Developer's Corner / Re: Allowed Characters in Windows Environment Variable Names on: May 23, 2011, 03:34:39 AM
Thanks for the response.

I'm trying to write a small wrapper program to launch other programs and would like to be able to configure it via some simple settings file.  I'd like to be able to specify environment variable name and value pairs in the settings file and as a part of that I'd like to check the specific name, value pairs -- I'd prefer not to blindly take what's been specified and pass them on to a function to modify environment variables...

I tend to stick to alphanumeric plus underscore, but I notice via experimentation that other things seem to work.  Perhaps for initial versions I'll stay on the strict side.
1525  Other Software / Announce Your Software/Service/Product / Re: [Freeware] FadeTop - a visual break reminder that fades the desktop on: May 21, 2011, 07:22:41 AM
Alarm before "warning"? Why bother?
I'm not confident I explained very well so I'll make another attempt.

With a notification/warning [1] of some small number of minutes before fading occurs, I think I can prepare to pull away and have an easier time at halting work once fading begins.  If I'm in the midst of something that I'm concentrating on, not really aware of the time, and I suddenly have to stop, I find that can be difficult.  My guess is that this type of thing is not entirely uncommon, but perhaps not...

BTW, thanks for the "Block fader when a full-screen program is running" option  Thmbsup


[1] I'm not sure just sound would always work out here due to not having sound on all of the time...
Pages: Prev 1 ... 56 57 58 59 60 [61] 62 63 64 65 66 ... 100 Next
DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.078s | Server load: 0.14 ]


Share on Facebook
submit to reddit