topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Saturday June 28, 2025, 2:15 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Recent Posts

Pages: prev1 ... 68 69 70 71 72 [73] 74 75 76 77 78 ... 113next
1801
Finished Programs / Re: DONE: On Screen Button That Sends Keyboard Commands
« Last post by ewemoa on June 10, 2011, 02:26 AM »
Re: WinButtonEdit

Wow, nice  :Thmbsup:  Was this a lot of work?

I think examining some of the bundled ini files using the editor will help me to experiment and learn how to use WinButton better.  Seems like it should lower the barrier-to-entry.
1802
Ah, too bad :(

On a related note, I am looking at the technique described in:

  http://code.google.com/p/bookmarklets/issues/detail?id=1#c6

Not quite there yet, but at least I've managed to get Dolphin and the Android default browser to execute some kind of code -- I wasn't even seeing the result of alert before.

There seems to be something going on with the use of yes / no -- not just 1 / 0 for user-scalable -- even if a page seems to use 1 / 0 in their source.  Haven't pinned it down yet...
1803
Fennec didn't succeed in installing here.  May be on a future device...

BTW, I read that some versions of Opera might work with bookmarklets:

  http://blog.wapreview.com/7176/

I got the feeling that the author of that post has been into Bookmarklets for some time -- perhaps there's some stuff worth investigating there...
1804
Am trying it via VirtualBox.

Some nice backgrounds indeed.  Chose what looks to be the following for the moment:

  http://frankhong.deviantart.com/art/Garden-of-Zen-156885520

Thanks for posting, zridling :)
1805
Are you aware that your Adblock extension is not from the same folks who made the wonderful Adblock Plus for Firefox?

For that one you need to go here: Adblock Plus for Google Chrome (Beta)
Thanks for this tip :)

There was a nice tidbit on a page for Adblock Plus for Google Chrome extension regarding the initially mentioned Adblock extension, FWIW:

Please note that there is another extension called "AdBlock", which is not related to the Adblock Plus movement but also works great.
1806
Living Room / Re: DoCo Banner - Animated!
« Last post by ewemoa on June 06, 2011, 08:41 PM »
Cody has a twin?  Or is that some kind of ninja-projection?
1807
Thanks for the example URLs.

I had also started noticing the use of 'yes' / 'no'.
1808
Hmmm...thanks for trying.

FWIW, I noticed that one bookmarklet I tested in Chrome didn't end up with %20 where there were spaces...perhaps it can work with both.  Also I was able to get Dolphin to save a bookmarklet without ending up with %20s, though haven't had any luck telling if it actually executes anything.

BTW, do you have some sites (specifically URLs) you wouldn't mind sharing for testing that are relevant to this bookmarklet?
1809
I haven't had much luck so far with the default browser, nor with Dolphin.

BTW, %20 seems to be something that was added by Firefox (at least for the desktop).  I would try things without them (i.e. use spaces) initially.

May be others might have some better ideas.

FWIW, I've temporarily placed the text of the bookmarklet (what I pasted in to FF 4.0.1) at:

  http://ewemoa.dcmembers.com/tmp/andbkmklt.txt

This might be helpful in getting the bookmarklet content on to the Android device.
1810
General Software Discussion / Re: Dropbox....without dropbox?
« Last post by ewemoa on June 06, 2011, 02:59 AM »
Saw something that could tickle the interest from several DC members regarding the creation of their own cloud backup solution.
The following bit of text under "What's Next?" looked interesting:

Transferring via SFTP.
1811
I pasted the following as the content of the Location field in a bookmark in Firefox 4.0.1:

Code: Javascript [Select]
  1. javascript:(function () { var elts = document.getElementsByName("viewport"); var attrval = ""; var cntRe = /(user-scalable\s*=\s*0)/i; var i = 0; for (i = 0; i < elts.length; i++) { attrval = elts[i].getAttribute("content"); if (cntRe.test(attrval)) { elts[i].setAttribute("content", attrval.replace(cntRe, "user-scalable=1")); } } })();

Firefox appeared to transform the content as follows (I think this was a simple replacement of spaces with %20):

Code: Javascript [Select]
  1. javascript:(function%20()%20{%20var%20elts%20=%20document.getElementsByName("viewport");%20var%20attrval%20=%20"";%20var%20cntRe%20=%20/(user-scalable\s*=\s*0)/i;%20var%20i%20=%200;%20for%20(i%20=%200;%20i%20<%20elts.length;%20i++)%20{%20attrval%20=%20elts[i].getAttribute("content");%20if%20(cntRe.test(attrval))%20{%20elts[i].setAttribute("content",%20attrval.replace(cntRe,%20"user-scalable=1"));%20}%20}%20})();

This appeared to work on http://en.m.wikipedia.org/.

Note: the regular expression used could probably use some improvement.
1812
Developer's Corner / Re: Automated Snapshots with VirtualBox
« Last post by ewemoa on June 06, 2011, 12:10 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.

Code: Python [Select]
  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()
1813
Developer's Corner / Re: Automated Snapshots with VirtualBox
« Last post by ewemoa on June 05, 2011, 09:33 PM »
Thanks for the ideas and suggestions :)

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.
1814
Developer's Corner / Re: Automated Snapshots with VirtualBox
« Last post by ewemoa on June 04, 2011, 12:21 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 :)

This idea seems pretty obvious in retrospect though, so I'm wondering if someone hasn't already done something similar.
1815
The following is something that I tried out via Firebug on http://en.m.wikipedia.org/:

Code: Javascript [Select]
  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 :)

Update: Changed comment // -> /* */ to facilitate bookmarklet conversion.
1816
Developer's Corner / Re: Automated Snapshots with VirtualBox
« Last post by ewemoa on June 04, 2011, 08:07 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...
1817
Living Room / Re: Will Apple Tell You What You Can/Can't Take Pictures of?
« Last post by ewemoa on June 04, 2011, 03:42 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 :)
1818
Developer's Corner / Automated Snapshots with VirtualBox
« Last post by ewemoa on June 04, 2011, 01:59 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?
1819
Developer's Corner / Re: SWF 2 EXE "open source" release help, please
« Last post by ewemoa on June 01, 2011, 10:15 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 :) ) for writing one's own license:

http://www.plagiaris...te-your-own-license/
1820
General Software Discussion / Re: DVCS ?
« Last post by ewemoa on June 01, 2011, 07:37 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.
1821
Developer's Corner / Re: SWF 2 EXE "open source" release help, please
« Last post by ewemoa on June 01, 2011, 04:18 AM »
May be take a look at some of the BSD licenses for inspiration and reference?
1822
Did you try dosearchontrigger?

   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.
1823
General Software Discussion / Re: DVCS ?
« Last post by ewemoa on May 31, 2011, 05:34 AM »
Perhaps so :)

...and give the gource developer more practice with OpenGL may be...
1824
General Software Discussion / Re: DVCS ?
« Last post by ewemoa on May 31, 2011, 04:28 AM »
Came across gource -- "a software version control visualization tool" -- anyone tried it out?

Sample videos and screenshots :)
1825
General Software Discussion / Re: DVCS ?
« Last post by ewemoa on May 31, 2011, 12:56 AM »
Thanks for the additional links :)

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.
Pages: prev1 ... 68 69 70 71 72 [73] 74 75 76 77 78 ... 113next