topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Sunday September 20, 2026, 11:05 pm
  • 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 ... 273 274 275 276 277 [278] 279 280 281 282 283 ... 1515next
6926
Developer's Corner / Experimenting with Other Programming Languages
« Last post by mouser on November 13, 2014, 01:15 AM »
I've spent most of my life coding C++, and dabbling in other languages (most recently Python).

But the list of programming languages that I've never written a line of code in is starting to get big, and I think it's time I put an end to that.

So I've decided I'm going to try to do a little experimenting with other programming languages, and wanted other coders here to join me, and post your updates here.



For my first stop on the tour, I spent today coding in Go.

I was inspired to write a program to solve a homework assignment given to the daughter of one of our fellow DC members.

The assignment is as follows:
"Given a set of numbers, and a target value, find an expression using + - * / and which uses each of the numbers exactly once, which reaches the target."

For example, given the numbers [2, 3, 6, 15] find a mathematical expression that uses all of the numbers and reaches the target value of 7.
Answer: 2+(15/(6-3))



Note that there may be multiple expressions that reach a given target value.  Rather than find a specific solution to a specific problem -- I was more interested in writing a program that would find ALL possible expressions given a set of n numbers, and then looking for particular targets which have few possible solutions, reasoning that these would be nice and hard puzzles to solve.



I started out by trying to calculate a formula for the # of possible expressions of n numbers.  That turned out to be a very fun mathematical journey, and I encourage the mathematically inclined among you to give it a try.  I'll share my formula later so as not to spoil the problem.



Anyway, so today I coded this program in Go.  Looks like about 400 lines of code, and definitely a non-trivial and interesting project.
Speed and memory seemed quite reasonable, no complaints there.  Error messages were reasonable.
I'll post the source code soon after I give anyone else a chance to have some fun.
However, I can't say I really enjoy Go after my day with it.  Some parts of it are ugly and unpleasant, and I don't approve of many of the language design decisions.
In fairness, this wasn't really something that made use of the real strengths of Go, so perhaps it wasn't the fairest of tests.



Here's a test for you if you decide to try coding this program.  I will give out a prize of a free DC mug for anyone who can solve this by writing their own version of this program before I post my source code at the end of the month.
Given the numbers [2 3 4 5 6 7 8], find TWO good, and fundamentally different, solutions that yield the target value of "2741"



Go source code for eqsolver attached.
6927
It's hard for me to understand the details but i'll just say that there is a lot to like about .net and the one thing that has always held me back from considering it too seriously is the fact that i don't want to get too committed to a language that is not truly first class across multiple platforms.  If at some point .net is really a viable cross platform solution I will take another long look at it.
6928
Clipboard Help+Spell / Re: Sorting - latest copy on top
« Last post by mouser on November 12, 2014, 10:58 AM »
dcwul,

I actually messed with some code recently in CHS to be better about not scrolling to the end of the clips unless it was appropriate.. 
That is, in past versions it was always scrolling to bottom when a new clip was added, etc., but not CHS will try to avoid doing that if it thinks you are somewhere other than at the bottom of the clip list when a new clip comes in.

But it sounds like you are describing a slightly different scenario.  Can you try to explain what's happening and what you think should happen?
Is it that you have your columns sorted to show new clips at the top (not the CHS default which puts new clips at the bottom), and that your problem is that when CHS *STARTS FOR THE FIRST TIME* the clip list is scrolled to the bottom?
Or are you saying that this clip sorting is always a problem every time you show the CHS window?
Or are you saying that CHS is not remembering which column you had sorted?
etc, etc. I need to understand the nature of the problem.
6929
Living Room / Re: Veteran's Day
« Last post by mouser on November 11, 2014, 05:29 PM »
There are lots of military veterans on this board.  A big thank you to all of them -- but especially those who sacrificed and served in unpleasant or scary circumstances.
6930
Living Room / Re: What books are you reading?
« Last post by mouser on November 11, 2014, 03:29 PM »
Faraday, Maxwell, and the Electromagnetic Field: How Two Men Revolutionized Physics Hardcover – by Nancy Forbes
Screenshot - 11_11_2014 , 3_28_31 PM.png

Finished it last week; quite good.
6931
Hi mindstormer.
First, thanks for letting me know that the FARR webpage has the wrong date for the last release -- as you note it was Nov 29, 2013.  I've updated the web page now.

Development on FARR has definitely not stopped, and will continue.
I have been updating some of my other apps more recently, and FARR is just waiting its place in line.

There will be an update before the end of the year for sure and I welcome any feature requests!! Sometimes what I need most to release a new version is some inspiration or feature request that catches my fancy.
6932
Living Room / Re: silly humor - post 'em here! [warning some NSFW and adult content]
« Last post by mouser on November 11, 2014, 10:51 AM »
J-Mac,   ;D
6933
Screenshot Captor / Re: Feature request: quickly switch between PNG und JPG
« Last post by mouser on November 10, 2014, 10:26 AM »
hmm, ill have to check into that -- it shouldn't do that.
6934
Screenshot Captor / Re: Making screenshots with ratio?!
« Last post by mouser on November 10, 2014, 10:13 AM »
I will try to add the alt key to preserve resizing in red box soon.

I could possibly also add another kind of toggle to selection capture that might do what you want -- though I'd like to hear if others are interested in it..  It would work something like this:
Currently in selection mode you click for first corner and then drag or move and click again for end corner.
I could add a keypress that would let you toggle to a mode where you are MOVING the current selection box as a whole, instead of changing the size, and then add another hotkey to rotate through favorite sizes..
6935
Screenshot Captor / Re: Making screenshots with ratio?!
« Last post by mouser on November 10, 2014, 08:26 AM »
yes -- unless you switch to "When to use Red box: Objects *AND* Regions" on the "Selection Capture Options" tab, which would switch you to a different way of capturing regions.  Most people find that red box mode more cumbersome but it does let you move around a preset-sized box more easily.
6936
Screenshot Captor / Re: Feature request: quickly switch between PNG und JPG
« Last post by mouser on November 10, 2014, 08:20 AM »
only by restarting Screenshot Captor and not "silently" in the background?
no, it should work silently in the background on the currently running instance.
6937
Living Room / Re: Show us a photo of your mutt or other creatures..
« Last post by mouser on November 08, 2014, 11:55 PM »
CUTE!!
6938
Sorry for the delayed reply -- i'm not sure why its not working in the first case, let me look into it and try to make it work.
6939
this is an interesting idea.. is there an android app that will monitor an email address and perform actions based on received emails?  if so you could set up something where you EMAILED a designated mail account of yours, and your phone would receive the email that would instruct it to send an sms with the specified contents..
6940
Screenshot Captor / Re: Larger Toolbar buttons and OCR ?
« Last post by mouser on November 08, 2014, 03:19 AM »
I wonder, is it possible to adjust the right hand vertical toolbar?
Say, big buttons and with text ?

Not currently possible, though it has been requested before and is on my todo list.


Will there also be a text-capture (OCR like) in future?
i.e. a screenshot with text - the text is OCR'ed and then copy pasted into something else

Again not currently possible, though it has come up before.  You can easily add tools to SC menu to launch external processes, which should make it possible to use a 3rd-party OCR tool, but im not sure anyone has done this yet..


If I drag capture1 onto capture2 (as object) I can rotate capture1. The angle is fixed, 90 degr.
Is it possible to rotate it manually ?  If not, is it on the todo-list?

It's not currently possible.  My memory though is that this limitation is only because of the user interface not the internals.. so i could try to enable it if there is some need.
6941
TapTap / Re: <Esc> as Key2?
« Last post by mouser on November 08, 2014, 02:51 AM »
test version is ready..
6942
The first thing to check is if you have the Delay option engaged.  You can find that in the tray menu under "Capture Options..".

The second thing to check is if the delay only happens on the first capture in a long time.  That is, is the second capture fast if performed soon after the first one completes?

If you don't have the delay engaged and the second capture is fast, then the delay is due to Screenshot Captor being unloaded from memory by the operating system after a long period of disuse.  To combat this, you can go to the Startup Options for SC and choose the "Inactive Memory Use" option of "Stay in Memory Longer".
6943
Living Room / Re: silly humor - post 'em here! [warning some NSFW and adult content]
« Last post by mouser on November 07, 2014, 08:37 AM »
Too many cooks:


note: it gets a bit violent in the second half.
6944
DC Website Help and Extras / Re: Has forum code changed?
« Last post by mouser on November 07, 2014, 08:35 AM »
it must be the firefox addon, no code has changed on the forum.
6945
Living Room / Re: Need a hand with a laptop issue.
« Last post by mouser on November 06, 2014, 08:03 PM »
Shades guess is interesting.  Maybe a thing to do is keep it off mains, bring up Process List (ctrl+alt+del), sort by cpu use, and then when its running well, plug it into mains and see if any new processes start running or using cpu.
6946
Post New Requests Here / Re: customizable gui for cmd apps
« Last post by mouser on November 06, 2014, 10:08 AM »
Not at all -- in fact there are other free tools for doing what you are suggesting, which are more specifically focused on the task you are asking about -- I just can't remember them off-hand, so i hope others will chime in.

My Find and Run Robot program (FARR), which was suggested above, isn't quite meant for this purpose.  However my other program, Drag and Drop Robot, *was* made specifically to provide a simple GUI for executing commandline apps that you need to run in batch on a large number of target files.

Still, Drag and Drop Robot is not the ideal tool for creating custom GUIs for commandline tools as it doesn't have nice ways to set options, etc.

Again, I know there have been some attempts to make generic front ends for driving commandline tools -- I hope someone will post there experience with those here.
6947
Skwire Empire / Re: (Pre) Release: sChecklist
« Last post by mouser on November 05, 2014, 06:59 PM »
Written up on ILoveFreeSoftware today:
http://www.ilovefree...dows-schecklist.html
6948
Living Room / Re: Spliddit
« Last post by mouser on November 05, 2014, 06:49 PM »
The item that caught my attention was the algorithm for splitting a payment among multiple participants in a project, by trying to find a fair way to divide it based on participants assessment of others.  The website offers little explanation for the algorithm, but does link to a published paper on the algorithm (written by people other than those who made the website).
6949
Coding Snacks / Re: Disable right mouse button and enable only for specific program
« Last post by mouser on November 05, 2014, 12:00 PM »
Always great to see threads like this -- except to the extent that skwire makes the rest of us coders look like slackers.. :-\
6950
Screenshot Captor / Re: Can't Capture FTL Screenshot When Full Screen is On
« Last post by mouser on November 05, 2014, 09:59 AM »
Is there no built-in screen capture function for FTL?
If you are doing something temporary that requires lots of screenshots from FTL, one thing you could try is to temporarily disable hardware acceleration for the monitor; that might enable you to capture screenshots from it using SC.  But you probably wouldn't want to leave that setting since it would negatively impact game performance.
Pages: prev1 ... 273 274 275 276 277 [278] 279 280 281 282 283 ... 1515next