topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Friday June 27, 2025, 7:26 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 ... 60 61 62 63 64 [65] 66 67 68 69 70 ... 113next
1601
Developer's Corner / Re: Code Koans
« Last post by ewemoa on December 09, 2011, 03:19 AM »
Somehow I'm finding the colors too dark on my screen and the line numbers hard to see.  Didn't figure out anything for the former point, but made a quick hack to make (some?) line numbers stand out.

Attached are a patch and patched file including the earlier win32console color-enabling along with  "line numbers standing out" behavior.  The rest of a colored line with a line number turns white, but that doesn't seem to be a problem visually to me.

* koans-color-and-line-number-color.zip (0.77 kB - downloaded 290 times.)
* edgecase.zip (3.98 kB - downloaded 322 times.)
1602
Find And Run Robot / Re: Display FARR Near Pointer
« Last post by ewemoa on December 07, 2011, 05:17 PM »
Thanks a lot for the tip, Nod5  :)

Think I'll update the original post.
1603
Developer's Corner / Re: Code Koans
« Last post by ewemoa on December 07, 2011, 04:08 PM »
Color output for the locally installed (2010-12-23) Ruby Koans seems to work now.  The following steps were performed toward this end:

1. Install the win32console gem (adapted instructions from: https://github.com/o...wiki/development-kit):

gem install win32console --platform=ruby

2. Apply the following changes to edgecase.rb:

  https://github.com/edgecase/ruby_koans/commit/a53c815da0af5974cd5bcd8bb38bc3f66742715b

Attached is an updated version of edgecase.rb.

* edgecase.rb.zip (3.86 kB - downloaded 306 times.)

Ruby Version
This was all for a Ruby (1.9.3) .7z-based installation + DevKit obtained via:

  http://rubyinstaller.org/downloads/

1604
Find And Run Robot / Display FARR Near Pointer
« Last post by ewemoa on December 07, 2011, 02:54 AM »
The following AHK_L script should display FARR's main window and then move it close to the pointer.  I use this when there's something near the pointer I want to drop in FARR's main window (reduce dragging distance and hence risk of mis-drop).

May want to tweak the full path to FARR's exe (see FarrFullPath in code) and/or the hotkey (see KeySequence in code).

Tested on XP SP3 and 7 Pro SP1.

promotion
The script may end up as part of Nea.


Code: Autohotkey [Select]
  1.  
  2. ; change this as desired
  3. KeySequence := "^+p"
  4.  
  5. ; XXX: may need to change this
  6. FarrFullPath := A_ProgramFiles . "\FindAndRunRobot\FindAndRunRobot.exe"
  7.  
  8. CoordMode, Mouse, Screen
  9.  
  10. ShowFARRAtPointer()
  11. {
  12.   global FarrFullPath
  13.   SplitPath, FarrFullPath, FarrExe
  14.   Process, Exist, % FarrExe
  15.   If (ErrorLevel != 0) ; yes FARR
  16.   {
  17.     MouseGetPos, X, Y
  18.     Run, % FarrFullPath . " -show"
  19.     WinWaitActive, % "Find and Run Robot 2 ahk_class TMainForm"
  20.     If (ErrorLevel == 1)
  21.     {
  22.       OutputDebug, % "WinWaitActive timed out waiting for FARR"
  23.       Return
  24.     }
  25.     ; XXX: will this work for multi-display set-ups?
  26.     WinMove, % "Find and Run Robot 2 ahk_class TMainForm", , % X, % Y
  27.   }
  28.   Else ; no FARR
  29.   {
  30.     ; OK/Cancel - esc dismisses dialog
  31.     MsgBox, 1, % "Did Not Find Running FARR"
  32.           , % "FARR doesn't seem to be running.`n`nOk to start FARR?"
  33.     IfMsgBox, OK
  34.     {
  35.       Run, % FarrFullPath
  36.     }
  37.   }
  38.   Return
  39. }
  40.  
  41. Hotkey, % KeySequence, DoShowFARRAtPointer
  42.  
  43. Return
  44.  
  45. DoShowFARRAtPointer:
  46. {
  47.   ShowFARRAtPointer()
  48.   Return
  49. }

Updated: as per Nod5's suggestion to use A_ProgramFiles
1605
Thanks for the link :)  

I noticed a few ebooks in the list:

The Complete Windows 7 Shortcuts eBook includes a lot of new keyboard shortcuts that are unknown to a new user. This eBook comprises of more than 200 keyboard shortcuts containing almost all the keyboard shortcuts that are available in Windows 7 and its default programs like Paint, WordPad, MS Office, Calculator, Help, Media Player, Media Center, Windows Journal, Internet Explorer, etc.

Windows 7 for Beginners eBook which covers topics which would typically interest a novice wanting to start using Windows 7 or a beginner trying to get his hands wet on Windows 7.

...

C# Tips, Tricks for Beginners eBook will help you learn the basics of C sharp programming, tips, tricks tutorials the easy way.
1606
General Software Discussion / Re: change image dimensions
« Last post by ewemoa on December 04, 2011, 01:17 AM »
I'm not sure about preserving DPI, but if it's scaling while preserving aspect ratio, one thing I might use is the GIMP's scale image feature:

  http://www.simplehelp.net/2007/08/13/how-to-resize-images-using-the-gimp/
1607
Developer's Corner / Re: Code Koans
« Last post by ewemoa on December 04, 2011, 12:21 AM »
Found some Python ones.

There's a version for Python 2.x (python 2 folder) and one for Python 3.x (python 3 folder).

I used the "get source" near the top right of the aforementioned page to get an archive of the relevant files.

about color
Seems to work fine on Windows :)

1608
N.A.N.Y. 2012 / Re: NANY 2012 Pledge: Nea
« Last post by ewemoa on December 03, 2011, 03:14 AM »
Added the following to goodies:
  TabAsDirection.ahk (skwire)
    Modified so that Ctrl+Tab goes up
    https://www.donation....msg255471#msg255471
Changed the following in scripts:
  FARRHere.ahk
    Modified so that it may work with 7-Zip and Notepad++ as well
Haven't uploaded yet.
1609
Living Room / Re: When you make your 100'th Post
« Last post by ewemoa on December 03, 2011, 03:02 AM »
Ah, Mr. Ath, if only the version number had been a bit higher...

Ath-1111a.PNG
1610
Developer's Corner / Code Koans
« Last post by ewemoa on December 03, 2011, 01:53 AM »
Summary List




Trying out the Ruby Koans:

  http://rubykoans.com/

Short video mentioning them and similar approaches for Clojure, Scala, and JavaScript:

  http://www.youtube.com/watch?v=mG6NsCIRKAk

Some bits from the video to get a sense of the flow:

1. Download, extract, run tests (assuming Ruby is installed):
1. download-unzip-run-tests.png

2. Look at test results:
2. first-results.png

3. Examine relevant code:
3. examine-code.png

4. Change code appropriately (trying things in irb and reading docs first if necessary):
4. change-code.png

5. Run tests again and look at results:
5. run-test-again.png

6. Repeat...

Link from the video with some details of the four:

  https://bit.ly/code_koans
1611
Living Room / Re: Building XP SP4 !
« Last post by ewemoa on December 03, 2011, 12:43 AM »
Hmm...apart from multiple drives (including backups online), I don't have any good ideas about how to keep stuff safer (apart from not keeping anything...).
1612
Find And Run Robot / Re: Some shortcut keys don't work anymore.
« Last post by ewemoa on December 02, 2011, 09:58 PM »
Consider adding this old request to the list:
Ctrl+Enter - launch selected (or first result if inputbox has focus) and stay open.
https://www.donation...ex.php?topic=11791.0

As a recent convert to using Ctrl+# on a keyboard with no numeric key pad, I can appreciate this feature request more.

+1
1613
Developer's Corner / Re: Ribbon UI - is it really THAT good?
« Last post by ewemoa on December 02, 2011, 08:44 PM »
I don't suppose a whole lot survives that list these days...

As a side note, +1 for PMI :)
1614
Living Room / Re: Building XP SP4 !
« Last post by ewemoa on December 02, 2011, 12:54 PM »
Reallocated sector count is the only S.M.A.R.T stat I've ever seen any use from, and that count doesn't go up until your drive is quite into the danger zone. Also, for most drives I've had failing, that count has been 0.

Thanks for sharing your experience.  I guess you learned about your drive failures by other means -- presumably through observing odd / errant behavior, is that right?
1615
Living Room / Re: Building XP SP4 !
« Last post by ewemoa on December 02, 2011, 12:18 PM »
I usually just do a parallel install, it saves the copy time and ensures I won't get stuck trying to DL a NIC driver...Without a NIC driver (I hate when that happens).

Appreciate having more than one machine around or a live cd / usb when this happens to me :)
1616
Living Room / Re: Building XP SP4 !
« Last post by ewemoa on December 02, 2011, 12:15 PM »
Sorry if the following is too much of a digression...

How have folks here found SMART test results for their drives?  I read that it may be problematic to get SMART results for some/many(?) USB drives [1].  Now if looking for drives in enclosures, I try to check the chipset of the controller or try to get an enclosure I can open without voiding the warranty.  Recently I've gotten an external SATA dock, so I've also been more likely to get bare drives -- of course, it is much less convenient to transport! 

I've also read that SMART test results often leave much to be desired, but it seems to be better than nothing -- and apparently there are certain attributes that are worth paying more attention to than others (e.g. reallocated sector count seems to be important).  I didn't use to pay attention to such things, but with multiple drives failing over the past 5 years or so with data loss...

Recently, I managed to save data from a few drives after noticing some suspicious-looking reports via HDDScan, so I think it has been worth periodically checking.  Also being aware of how old the drives are seems worth noting too.


[1] http://sourceforge.n...BandSATAdiskssystems
1617
Developer's Corner / Re: Ribbon UI - is it really THAT good?
« Last post by ewemoa on December 02, 2011, 03:37 AM »
Side seems nicer for screens that are not so tall.
1618
N.A.N.Y. 2012 / Re: NANY 2012 Pledge: Nea
« Last post by ewemoa on December 01, 2011, 09:45 PM »
Thanks.

FWIW, the archive comes with some of the AHK code that's been posted to the forums.  Things enabled by default live in the scripts folder, while other bits live in the goodies folder.

scripts (enabled by default) currently has:
  FARRHere.ahk
    When a suitable Windows Explorer window (full path in title bar) is active, bring up FARR with the corr. path

  SelectionToFARR.ahk
    Send a single selection in a Windows Explorer window to FARR

  ReclaimWindowSpaceForFARR (based on suggestion from skjafes)
    https://www.donation....msg249373#msg249373

  MayBeRunFARR
    Upon invocation, tries to see if FARR is running, if so, offers to stop it, if not, offers to start it

goodies (not enabled by default) currently has content from the following threads/posts:
  AutoCenterFARR.ahk (uries62)
    https://www.donation...ex.php?topic=16725.0

  RemoveStatusBarFromFARR.ahk (Nod5)
    https://www.donation....msg172845#msg172845

  Sean-TrayIcon-Farr-Mod.ahk (lanux128)
    https://www.donation...ex.php?topic=12191.0

  ToggleFARRSize.ahk (Nod5)
    https://www.donation...ex.php?topic=16506.0

  ToggleSallFARR.ahk (lanux128, Nod5)
    https://www.donation....msg108631#msg108631

  WindowsKeyOnlyForFARR.ahk (TucknDar)
    https://www.donation....msg199049#msg199049

Full credits included in app's help + source code.
1619
N.A.N.Y. 2012 / NANY 2012 Release: Nea
« Last post by ewemoa on December 01, 2011, 05:04 AM »
NANY 2012 Entry Information

Application NameNea
Short DescriptionA Helper App for FARR
Supported OSes Windows XP
Setup Filezip, MD5: 49f35a7ac5b2d29ac384d481a3270894
DescriptionNea starts and stops certain AHK_L scripts -- though the current intent is for FARR-focused scripts.  Over the years a variety of FARR-related AHK scripts and snippets have been posted to the DC forums and this app might make it convenient to manage a collection of these.
FeaturesStart, stop, reload, or view/edit individual FARR-related AHK(_L) scripts via a single menu.
ScreenshotsNea-0.9.9.5.png
InstallationUncompress the archive to a suitable location.  See the app's help information.
Using the applicationAfter start-up, there should be a tray icon visible.  Nea can be used via its tray menu or a hotkey.  See the app's help information for more details.
UninstallingAfter ensuring the app is not running, delete the folder containing Nea.exe.
1620
N.A.N.Y. 2012 / Re: P-FANCI: Petition For A New Cody Image! POST HERE!!
« Last post by ewemoa on December 01, 2011, 03:33 AM »
plea2.jpg
1621
N.A.N.Y. 2012 / Re: Topic: NANY 2012 Pledge: Quicksilver Like launcher
« Last post by ewemoa on November 30, 2011, 06:55 AM »
What to do with the tab key does seem tricky.

I'm not sure how much like QS you want to make this and don't know how much of the original docs are left [1], but if you're interested in checking out something that has inherited a lot of QS-ness, there is kupfer for *nix.


[1] Howard Melman's Quicksilver User Manual still seems available.
1622
Developer's Corner / Re: Ribbon UI - is it really THAT good?
« Last post by ewemoa on November 30, 2011, 06:49 AM »
FWIW, at around 1:18:40 in the video, there is a question regarding when is it good / not good to use the Ribbon UI, followed by the speaker's answer.
1623
N.A.N.Y. 2012 / Re: Topic: NANY 2012 Pledge: Quicksilver Like launcher
« Last post by ewemoa on November 30, 2011, 03:18 AM »
Tried using it with Windows 7 Professional 64-bit and it seems to work much better -- no crashing so far.

I keep expecting . to enter text mode and tab to move focus to the second pane ;)
1624
Developer's Corner / Re: Ribbon UI - is it really THAT good?
« Last post by ewemoa on November 30, 2011, 03:11 AM »
Thanks for the link :)
1625
Developer's Corner / Re: Ribbon UI - is it really THAT good?
« Last post by ewemoa on November 29, 2011, 07:33 AM »
I also find the Ribbon UI to be confusing -- in the few places I've seen it, I felt there was too much to sort through at once.  What I didn't know until today is that an appropriate double-click will minimize it :)
Pages: prev1 ... 60 61 62 63 64 [65] 66 67 68 69 70 ... 113next