topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Friday April 19, 2024, 7:36 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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - phitsc [ switch to compact view ]

Pages: prev1 ... 38 39 40 41 42 [43] 44 45 46 47 48next
1051
Hi!

I'd like to use this, but I always get something like "Failed to generate authentication URL". Any ideas? Proxy settings maybe?

Cheers

Rico

Rico, or anyone else with the 'Failed to generate authentication URL' problem, would you mind downloading a little tool I made from here:

http://farrmilk.obje...nticationUrlTest.zip

then run it in a console window and send me the output.

If you need help with the Command Prompt application let me know. You can redirect the output to a file like so:

C:\AuthenticationUrlTest>AuthenticationUrlTest.exe > Output.txt

1052
Good to hear!  :Thmbsup:

1053
This was indeed what caused the exception error on my PC. TucknDar, would you mind checking if you can get FarrMilk to work if you remove your fscript based plugins?

(addendum)
To be more precise: The problem only happened when I had plugins with the newer jscript.dll (1.13.0.0) installed, but not with ones using the old jscript.dll (1.8.1).

1054
Hi!

I'd like to use this, but I always get something like "Failed to generate authentication URL". Any ideas? Proxy settings maybe?

Cheers

Rico
Hi Rico

Unfortunately, this is one of the unsolved FarrMilk mysteries. I still have no idea what the problem could be. But I'll investigate once more.

1055
There's something wrong with FARRMilk on my end... I keep getting the following error message, no matter which command I choose:


What I do, is I type RTM then get the list of options that I expect, but choosing one of these will throw an exception like the one above.

There may well be a conflict somewhere, so I guess I could go the long route trying to find it, but before I do, I'd like to know if there's something I can do to fix it.

I'm using the latest FARR and FarrMilk 0.4.5.
I'm having this too now on my PC at work. No idea what it could be. FarrMilk's running fine here at home.

1056
Developer's Corner / Re: Frustration with User Feedback
« on: March 18, 2009, 11:12 AM »
I can share with you my experience with YaRPNcalc, my free PocketPC calculator.

The first release was on 29th January 2006. The first user feedback was on 24th April 2006, a user reporting a (localisation) bug. The second was on 17th of December 2006, a user telling me that he likes YaRPNcalc but would prefer 4 stack lines (instead of 2). It follows about one user feedback every two months. All of them are either feature requests or bug reports (but all also mentioning that they like the SW :) ). I have no idea at all in what range the user base is. Could be 2 or 20 or 2000. I'm not sure how much download counts will tell you. People download SW just to try it out.

I've made a related comment here once by the way: https://www.donation....msg132179#msg132179

1057
In your example the decision I'd be trying to make is between you third example or a similar 2 line version where the result of the bind is stored in a tr1::function. It's the trade off between the evil of introducing a redundant variable versus the evil that the single line version is too long.
I agree, we often do this (as you can see in my 2nd code example). Temporary variables are not only good to shorten lines and make complicated looking code look less complicated, they can also make it easier to debug. On the other hand, we get ever wider screens ;)

1058
Thanks!

1059
Sorry mouser to come with this again:

Would it be very hard/risky for you to add the possibility for plugins to query the 'Max. entries to display' user settings?

I think it would enable certain features for plugins using the list view.

1060
Maybe this would do it for you: http://www.fastpictureviewer.com/

Never tried it myself though, just have the link lying around on my desktop for months.

The two things that annoy me most about FIV (which I'm still using though) are: no keyboard shortcut for 'remove red-eye' and the (feels like) dozens of times it asks me if I really want to overwrite that image after using 'remove red-eye' or rotate (which should be lossless anyway). And yes, I reported these as well.

1061
Concerning complicated code: we have a guideline that says if one thinks he needs to explain in a code comment what a certain piece of code is doing, he should consider rewriting the respective code to make it more self explanatory. For example, often refactoring a piece of code into its own function and giving that function a suitable name makes a comment obsolete. Obviously, this way functions make a one-liner out of a 20-line piece of code, i.e. it's useful to make a function even if that function is called only once.

While I think/agree that it is usually preferrable to write something 'simpler' (which often results in more lines of code) contrary to more clever (which often results in complicated one line statements) I tend to start making 'exceptions' to that rule myself. The questions that come up are: should one use 'advanced' language features of a programming language? Which features are considered to be advanced: the complicated ones?, or the seldom used ones?, or the new ones?, or even just the non-trivial (but still well-established) ones? How much knowledge about a programming language can you expect your collegues to have? How much can you expect them to learn?

My background is C++ programming. It's certainly not the easiest programming language to use or learn. And it's evolving. In an internal training, I was introducing my collegues to std::tr1::bind and std::tr1::mem_fn which will be part of the new C++0x standard (but are already available to us when using MSVC 2008 SP1 or the boost C++ library).

Let me show you an example to demonstrate my point:

I would expect a novice C++ programmer to understand the following piece of code. Assume _controls to be of type std::vector, which basically abstracts an array and which allows access to the items in the array via array[index].


void Controls::updateBay(IDeskPtr desk, IBayPtr selectedBay, ContainingBayInterface* containingBayInterface)
{
    const unsigned long controlCount = _controls.size();
    for(unsigned long index = 0; index < controlCount; ++index)
    {
        Control* control = _controls[index];
        control->updateBay(desk, selectedBay, containingBayInterface);
    }
}


Now our code usually looks like this:


void Controls::updateBay(IDeskPtr desk, IBayPtr selectedBay, ContainingBayInterface* containingBayInterface)
{
    ControlCollection::iterator it = _controls.begin();
    const ControlCollection::const_iterator end = _controls.end();
    for( ; it != end; ++it)
    {
        Control* control = *it;
        control->updateBay(desk, selectedBay, containingBayInterface);
    }
}


This makes the code more general (_controls could be any collection type supporting iterators) and is generally understood by all our engineers, but it already assumes you know what an iterator is.

Now the new std::tr1::bind lets me write this code like this:


void Controls::updateBay(IDeskPtr desk, IBayPtr selectedBay, ContainingBayInterface* containingBayInterface)
{
    std::for_each(_controls.begin(), _controls.end(), std::tr1::bind(&EmulationControl::updateBay, _1, desk, selectedBay, containingBayInterface));
}


Knowing about iterators is not enough any more. Now you need to know what for_each does and you need to know what bind does.

Everyone with a bit of programming experience understands what the first code example does. Some people claim the one-line for_each statement to be safer (or more efficient) but I'm not sure this is enough reason to prefer it over one of the hand-written loops. While I today prefer this kind of code, it's hard for me to explain why.

If someone wants to share her/his opinion, I would be very interested!

1062
Sorry for the late reply, I was on holiday last week.

Concerning your first question: FarrMilk supports overriding the alias. Actually, mouser added the possibility for plugins to query the alias because I wanted FarrMilk to support this. You're right that it doesn't work with "t" though (or with "y" for that matter). Maybe FARR plugin aliases have to be at least two characters long (I just tried "tt" and that works).

As for your other questions, let me think about these.

1063
Maybe ecaradec could offer a useful selection of WIN32 functions through the IFARR interface. He did do that in the old FScript plugin (exec and getIniValue).

1064
Hi daanvink

The readme.txt file should be in the download. You should also be able to open it from within FARR by going to the Options window, selecting the 'Plugins and Updates' category, pressing the 'Click to Examine and Configure Plugins..' button, selecting the FARR Most Recently Used plugin and finally pressing the 'View Plugin Readme/Help File'.

As an example look at the FarrMostRecentlyUsed.config file in the FarrMostRecentlyUsed plugin directory. Don't make changes in there but create a similar looking file called FarrMostRecentlyUsed.user with your configuration instead.

1065
Please fix this or maybe provide some settings where one can specify that the window should be centered and what size or even better which margins to the sides of the screen it should have. The last one would in fact be much better as FARR would nicely adjust itself to changing screen resolutions.
For centering you could use my FarrMultiMonitor (and center) plugin: https://www.donation....msg117762#msg117762

That wouldn't solve your other problem however...

Thanks for the pointer to the multimonitor plugin. Since I don't use multiple monitors I ignored this plugin. It's centering feature makes FARR's shrinking behavior bearable and the shrinking even seems to stop at some point. Very strange.

I was thinking about extending the FARR Multimonitor plugin to allow resizing the FARR window to some percentage of the screen's width. It turned out not to be very easy though and I haven't got much time to experiment at the moment. Obviously, it would only be fighting the symptoms.

1066
Well, I agree that you probably won't learn much about what makes a SW development project fail (or succeed) from 'Dreaming in Code'. Nevertheless, I found the book quite and interesting and enjoyable read. It reads and (feels) more like a novel than a technical book. Almost like a fiction book with well researched historical background. Only that it really is no fiction ;) An example of one thing that fascinated me (well, might not be that fascinating for the Americans in the DC community) was how people like Kapor, the main protagonist (speaking in novel terms) as well as some of the leading SW developers could spend their (working) lives doing almost whatever they pleased, without the pressure to make money to feed a family (well, most of them seem to only have dogs anyway ;) ). While Kapor had earned so much money in the beginning of his working career that he (alone) could fund a big multi-year SW project just out of ideological reasons, the others at least had made enough money in the first .com era to spend their lives doing what they liked most (programming) without actually getting money for it. Maybe the lack of pressure to actually succeed with what they were doing if only to make sure they could pay their bills at the end of the month was one of the reasons for the 'failure' of the Chandler project.

1067
Didn't see anyone mention yet that there is an interesting book called 'Dreaming in Code' which uses the Chandler project as its central theme. It's basically a case study that shows what can go wrong when developing a reasonably complex (open source) SW project, but also contains interesting historical information about SW development.

1068
FARR Plugins and Aliases / Re: FARR plugin: Akete
« on: January 21, 2009, 04:35 AM »
Thanks. Works perfectly now!

Can I disable the 'Failed to look up value for' popping up for non-configured file types somehow? (not all files want to be opened by Akete ;) )

Now if only mouser could fix the 'wildcard matching not working anymore in alias result' problem...

1069
FARR Plugins and Aliases / Re: FARR plugin: Akete
« on: January 21, 2009, 02:23 AM »
I'm afraid it's a 'doesn't' for me. See attached screen shot.

Akete Error.jpg

1070
FARR Plugins and Aliases / Re: FARR plugin: Akete
« on: January 16, 2009, 02:24 AM »
I think I'll go with a default of "with" as the prefix, provide a way to change the prefix, and leverage any existing file extension association configuration so that it may be used with a keyword (e.g. if you have an association defined for 'html', then the plugin should recognize the keyword 'withhtml').
sounds good to me.

1071
FARR Plugins and Aliases / Re: FARR plugin: Akete
« on: January 14, 2009, 06:57 AM »
I agree with mouser, looks very good!

As to the keywords that begin with "openwith", I chose this based on phitsc's example and am not particularly attached to it -- except that if it's changed, I guess trying to maintain backward compatibility might be something to consider.
And neither am I. Wouldn't give me a lot of work if you changed it. I'm no big fan of abbreviations though, so I still think openwithnpp would be clearer than something like e.g. ownpp.

What about just using the same definition as used for extensions, e.g. if one specified something like:

txt=%PROGRAMFILES%\Windows NT\Accessories\wordpad.exe

then it would open .txt files with Wordpad, but one could also do this:

C:\boot.ini +txt

and it would also open with Wordpad.

I could then choose whatever definition I liked (even openwithnpp ;) ) and since there are no files with an extension of .openwithnpp it would just work with this C:\boot.ini +openwithnpp. You would have to check if it might give problems with other keywords though.

1072
Did you ever try deleting the FarrMilk.ini file?

This would be in: C:\Documents and Settings\user\Application Data\FarrMilk

and maybe you still have an old one in the FarrMilk plugin directory.

1073
Hi TucknDar

Did any version of FarrMilk ever work for you? When you say 'a list of options', do you mean you get as far as the screen shot on the first post shows?

1074
Still had a good laugh :). Sorry about misunderstanding you!

Well, I had a look at "Everything" now. It only indexes file and folder names (not the contents), which I guess is what you want and probably what makes it so fast. Now if it offered an API ...

1075
 ;D Very good! Probably my favourite donationcoder post so far.

You should maybe read this thread: https://www.donation...ex.php?topic=13421.0

But seriously, there are ways to get both FARR and indexing. One which is available right now is the Locate32 plugin, which I have never tried to be honest. Another one would be my Windows Search plugin. It's not available yet though and I'm still hesitant if I should put the extra work in to make it releasable.

Pages: prev1 ... 38 39 40 41 42 [43] 44 45 46 47 48next