User talk:This, that and the other/For the Common Good/Archive 1

Latest comment: 12 years ago by This, that and the other in topic sign up

Error

I'm trying it out, and it's working great! But I got an error message when I was told to select "only one, you mischievous child". ▫ JohnnyMrNinja 11:37, 23 December 2011 (UTC)

bug text

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

                            • Exception Text **************

System.ArgumentOutOfRangeException: InvalidArgument=Value of '0' is not valid for 'index'. Parameter name: index

  at System.Windows.Forms.ListView.SelectedListViewItemCollection.get_Item(Int32 index)
  at ForTheCommonGood.frmMain.SelectVersion(Object sender, EventArgs e)
  at System.Windows.Forms.Control.OnClick(EventArgs e)
  at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
  at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
  at System.Windows.Forms.Control.WndProc(Message& m)
  at System.Windows.Forms.ButtonBase.WndProc(Message& m)
  at System.Windows.Forms.Button.WndProc(Message& m)
  at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
  at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


                            • Loaded Assemblies **************

mscorlib

   Assembly Version: 2.0.0.0
   Win32 Version: 2.0.50727.5448 (Win7SP1GDR.050727-5400)
   CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll

ForTheCommonGood

   Assembly Version: 1.0.0.1
   Win32 Version: 1.0.0.1
   CodeBase: file:///C:/Users/Captain%20Bad%20Mutha'/Downloads/ForTheCommonGood_1.0.0.1.exe

System.Windows.Forms

   Assembly Version: 2.0.0.0
   Win32 Version: 2.0.50727.5446 (Win7SP1GDR.050727-5400)
   CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System

   Assembly Version: 2.0.0.0
   Win32 Version: 2.0.50727.5447 (Win7SP1GDR.050727-5400)
   CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

System.Drawing

   Assembly Version: 2.0.0.0
   Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
   CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System.Xml

   Assembly Version: 2.0.0.0
   Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
   CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll

System.Configuration

   Assembly Version: 2.0.0.0
   Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
   CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

                            • JIT Debugging **************

To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled.

For example:

<configuration>

   <system.windows.forms jitDebugging="true" />

</configuration>

When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.


Thanks for the comprehensive bug report; I'll fix it. Did the "select version" feature actually work for you when you actually selected a version from the list? — This, that, and the other (talk) 23:52, 23 December 2011 (UTC)
Yes, it seemed to work well. ▫ JohnnyMrNinja 12:13, 24 December 2011 (UTC)

Feature request + bug

What about ability to load lists of files, like this?

Show progress (now program locks for 20 seconds), allow handling next image during upload Bulwersator (talk) 12:18, 23 December 2011 (UTC)

The reason for the slow speed is because it has to download each file and them upload it (for files of several MB, this can take a while). I'm afraid this is unavoidable, until upload-by-URL is enabled on the servers. — This, that, and the other (talk) 23:59, 23 December 2011 (UTC)
But is it possible to show progress of download/upload or do it in the background (separate thread?) Bulwersator (talk) 07:20, 24 December 2011 (UTC)
It is being done in a separate thread. I will need to do some debugging, because async would be really nice. — This, that, and the other (talk) 08:33, 24 December 2011 (UTC)

Is it possible to recover categories? For example turning [[Category:Pottery]] into <!-- [[:en:Category:Pottery]] --> is useless, program should do it only with not existing categories.

I wasn't really sure what to do about categories. Most enwiki categories don't exist on commons. I can stop it from automatically adding ":en:" for categories, but I don't really want to stop the commenting-out, since otherwise you'd end up with redlinked categories on Commons. What do you suggest? — This, that, and the other (talk) 23:59, 23 December 2011 (UTC)
Check whatever category exists on commons and add :en: only to not existing Bulwersator (talk) 07:20, 24 December 2011 (UTC)
Keep in mind that any extra web request will result in longer waits. If I ever implement a new category infrastructure (i.e. a HotCat-like system built into the program), this feature will be part of it. But until them I will have to refuse this request. — This, that, and the other (talk) 08:33, 24 December 2011 (UTC)
It may be also better to keep all categories - it is easier to remove red category using HotCat than remove :en: (it requires manual editing) Bulwersator (talk) 13:09, 24 December 2011 (UTC)

Is it possible to show results from google and tineye image searches (or at least - add links)? I do it anyway.

Please explain. — This, that, and the other (talk) 23:59, 23 December 2011 (UTC)
I think they mean checking for copyrighted images by searching for them in Google and Tineye, it would be nice to do this from the program, instead of copy/pasting. ▫ JohnnyMrNinja 12:18, 24 December 2011 (UTC)
Now I am not sure is it really a good idea - I anyway check EXIF, talk page of uploader, talk page of file etc Bulwersator (talk) 13:04, 24 December 2011 (UTC)

I like that it is uploading using my account, rather than bot account - so I will be able to respond on deletion requests etc. Bulwersator (talk) 12:18, 23 December 2011 (UTC)

I like that too. — This, that, and the other (talk) 23:59, 23 December 2011 (UTC)

And bug: wrong date in now commons tag, also wrong, wrong Bulwersator (talk) 12:18, 23 December 2011 (UTC)

Oops. It's putting the current minute instead of the current month! Sorry about that! I'll fix it. — This, that, and the other (talk) 23:59, 23 December 2011 (UTC)
  Done in 1.0.0.2. — This, that, and the other (talk) 03:56, 24 December 2011 (UTC)

Is it possible to add ability to load images from arbitrary category (Category:NASA images) and/or skip images unused in articles? Bulwersator (talk) 12:23, 23 December 2011 (UTC)

Why would you want to skip unused images? And OK to the arbitrary category. — This, that, and the other (talk) 23:59, 23 December 2011 (UTC)
Arbitrary category   Done in 1.0.0.3 (the 1.0.0.2 implementation was broken). — This, that, and the other (talk) 03:56, 24 December 2011 (UTC)
I prefer to handle useful, interesting ones rather than create "orphaned, useless" deletion requests. It is also more useful to move used ones as it is very confusing to discover that image works on enwiki and not on plwiki (typical plwiki newbie translates article from enwiki) Bulwersator (talk) 07:20, 24 December 2011 (UTC)

Cache images - load next, during fixing description Bulwersator (talk) 12:23, 23 December 2011 (UTC)

I seem to have trouble with asynchronous loading. In theory, the program should never lock up at all - I don't know why it does. It would be nice to have a "pre-load" feature, though, and I'll see if I can do something to this effect. — This, that, and the other (talk) 23:59, 23 December 2011 (UTC)

BotMoveToCommons

Maybe this tool should add Template:BotMoveToCommons as default? Bulwersator (talk) 12:45, 23 December 2011 (UTC)

Why? It's not a bot. — This, that, and the other (talk) 00:02, 24 December 2011 (UTC)
It might be a good idea to at least link back to WP:FTCG, just in-case there is some crazy hole in the logic that isn't immediately evident. Also to get more attention for the tool. ▫ JohnnyMrNinja 00:12, 24 December 2011 (UTC)
  Done in 1.0.0.3, the tool links back to WP:FTCG in the sentence below the "Original upload log" header. — This, that, and the other (talk) 03:56, 24 December 2011 (UTC)

Is it possible to also autoedit Wikipedia:WikiProject Images and Media/Commons/Drives/Jan 2012/Logs during January 2012? Bulwersator (talk) 13:38, 23 December 2011 (UTC)

It would add an extra   seconds to the process, where   is a small, but annoying, length of time. A better idea would be to have it write a log on your hard disk, which you can then manually copy and paste onto the wiki at certain intervals. I'll look into this. — This, that, and the other (talk) 00:13, 24 December 2011 (UTC)
Logging  Y implemented in 1.0.0.3. Go to the "Settings" dialog to turn it on. — This, that, and the other (talk) 03:56, 24 December 2011 (UTC)
Thanks! Bulwersator (talk) 10:52, 25 December 2011 (UTC)

Security

You said on my page "I have considered the fact that, since there are no built-in checks, it is open to abuse; if you can suggest a way of doing this, I would welcome it."

I have a simple but tedious solution: Make a whitelist. Since you're not an admin (although you should be) so you could store it on google docs or something, and give a few people write access to the list. Alternatively you could make the list in a .js page under your username, allowing yourself and any other admins to edit it, keeping it on Wikipedia.

An equally simple, less tedious, but less effective solution would be to force the edit summary to identify the tool, allowing people to fix the abuse quickly after it's found.

That being said, if no one but the file gnomes knows about this, it's pretty secure. Sven Manguard Wha? 13:54, 23 December 2011 (UTC)

  • Security? This tool is editing from account of the user, so there is no problem with using this as vandalbot. Mindless hitting "transfer, transfer" may be stopped by adding this template as default to new files on the commons Bulwersator (talk) 14:12, 23 December 2011 (UTC)
    • I am willing to use my mop to do anything that is needed for this tool --Merry Christmas from Guerillero 07:50, 25 December 2011 (UTC)

FtCG unable to write to file

bug text

Szczegółowe informacje na temat wywoływania debugowania w trybie JIT (just in time) zamiast tego okna dialogowego znajdują się na końcu tego komunikatu.

                            • Tekst wyjątku **************

System.UnauthorizedAccessException: Odmowa dostępu do ścieżki 'C:\Program Files\Mozilla Firefox\CommonsTransfers.log'.

  w System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
  w System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
  w System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
  w System.IO.StreamWriter.CreateFile(String path, Boolean append)
  w System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)
  w System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding)
  w System.IO.File.AppendAllText(String path, String contents, Encoding encoding)
  w ForTheCommonGood.frmMain.<DoTransfer>b__21(XmlDocument innerDoc)
  w ForTheCommonGood.MorebitsDotNet.<>c__DisplayClassa.<UploadFile>b__9(IAsyncResult innerResult)
  w System.Net.LazyAsyncResult.Complete(IntPtr userToken)
  w System.Net.ContextAwareResult.CaptureOrComplete(ExecutionContext& cachedContext, Boolean returnContext)
  w System.Net.ContextAwareResult.FinishPostingAsyncOp()
  w System.Net.HttpWebRequest.BeginGetResponse(AsyncCallback callback, Object state)
  w ForTheCommonGood.MorebitsDotNet.UploadFile(Wiki wiki, StringDictionary query, Byte[] file, String fileName, String fileParamName, Action`1 onSuccess, Action`1 onError)
  w ForTheCommonGood.MorebitsDotNet.UploadFile(Wiki wiki, StringDictionary query, Byte[] file, String fileName, String fileParamName, Action`1 onSuccess)
  w ForTheCommonGood.frmMain.<DoTransfer>b__20(XmlDocument doc)
  w ForTheCommonGood.MorebitsDotNet.<>c__DisplayClass7.<PostApi>b__6(IAsyncResult innerResult)
  w System.Net.LazyAsyncResult.Complete(IntPtr userToken)
  w System.Net.ContextAwareResult.CaptureOrComplete(ExecutionContext& cachedContext, Boolean returnContext)
  w System.Net.ContextAwareResult.FinishPostingAsyncOp()
  w System.Net.HttpWebRequest.BeginGetResponse(AsyncCallback callback, Object state)
  w ForTheCommonGood.MorebitsDotNet.PostApi(Wiki wiki, StringDictionary query, Action`1 onSuccess, Action`1 onError, Boolean loggingIn)
  w ForTheCommonGood.MorebitsDotNet.PostApi(Wiki wiki, StringDictionary query, Action`1 onSuccess)
  w ForTheCommonGood.frmMain.DoTransfer(Object sender, EventArgs e)
  w System.Windows.Forms.Control.OnClick(EventArgs e)
  w System.Windows.Forms.Button.OnClick(EventArgs e)
  w System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
  w System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
  w System.Windows.Forms.Control.WndProc(Message& m)
  w System.Windows.Forms.ButtonBase.WndProc(Message& m)
  w System.Windows.Forms.Button.WndProc(Message& m)
  w System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
  w System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
  w System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


                            • Zestawy załadowane **************

mscorlib

   Wersja zestawu: 2.0.0.0
   Wersja Win32: 2.0.50727.5448 (Win7SP1GDR.050727-5400)
   CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

ForTheCommonGood

   Wersja zestawu: 1.0.0.3
   Wersja Win32: 1.0.0.3
   CodeBase: file:///C:/Users/Username/Downloads/ForTheCommonGood_1.0.0.3.exe

System.Windows.Forms

   Wersja zestawu: 2.0.0.0
   Wersja Win32: 2.0.50727.5446 (Win7SP1GDR.050727-5400)
   CodeBase: file:///C:/windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System

   Wersja zestawu: 2.0.0.0
   Wersja Win32: 2.0.50727.5447 (Win7SP1GDR.050727-5400)
   CodeBase: file:///C:/windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

System.Drawing

   Wersja zestawu: 2.0.0.0
   Wersja Win32: 2.0.50727.5420 (Win7SP1.050727-5400)
   CodeBase: file:///C:/windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

mscorlib.resources

   Wersja zestawu: 2.0.0.0
   Wersja Win32: 2.0.50727.5448 (Win7SP1GDR.050727-5400)
   CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

Accessibility

   Wersja zestawu: 2.0.0.0
   Wersja Win32: 2.0.50727.4927 (NetFXspW7.050727-4900)
   CodeBase: file:///C:/windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll

System.Xml

   Wersja zestawu: 2.0.0.0
   Wersja Win32: 2.0.50727.5420 (Win7SP1.050727-5400)
   CodeBase: file:///C:/windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll

System.Configuration

   Wersja zestawu: 2.0.0.0
   Wersja Win32: 2.0.50727.5420 (Win7SP1.050727-5400)
   CodeBase: file:///C:/windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

Microsoft.JScript

   Wersja zestawu: 8.0.0.0
   Wersja Win32: 8.0.50727.4927
   CodeBase: file:///C:/windows/assembly/GAC_MSIL/Microsoft.JScript/8.0.0.0__b03f5f7f11d50a3a/Microsoft.JScript.dll

System.resources

   Wersja zestawu: 2.0.0.0
   Wersja Win32: 2.0.50727.5420 (Win7SP1.050727-5400)
   CodeBase: file:///C:/windows/assembly/GAC_MSIL/System.resources/2.0.0.0_pl_b77a5c561934e089/System.resources.dll

System.Windows.Forms.resources

   Wersja zestawu: 2.0.0.0
   Wersja Win32: 2.0.50727.5420 (Win7SP1.050727-5400)
   CodeBase: file:///C:/windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_pl_b77a5c561934e089/System.Windows.Forms.resources.dll

                            • Debugowanie w trybie JIT **************

Aby włączyć debugowanie w trybie JIT (just-in-time), plik .config tej aplikacji lub komputera (machine.config) musi mieć wartość jitDebugging ustawioną w sekcji system.windows.forms. Aplikacja musi być również skompilowana z włączonym debugowaniem.

Na przykład:

<configuration>

   <system.windows.forms jitDebugging="true" />

</configuration>

Gdy debugowanie JIT jest włączone, wszystkie nieobsługiwane wyjątki są wysyłane do debugera JIT zarejestrowanego na komputerze i nie są obsługiwane w tym oknie dialogowym.

Why it attempted to write to C:\Program Files\Mozilla Firefox\CommonsTransfers.log? Bulwersator (talk) 07:47, 24 December 2011 (UTC)

PS And it is unable to save my login data Bulwersator (talk) 08:07, 24 December 2011 (UTC)
Apparently because you opened the program from within Firefox. Instead, open the program by double-clicking its icon. Finding the directory in which the program currently resides is not easy, from a programmer's perspective: I'll see if I can implement this in future, but it is simplest for now to simply open the program from where it resides. — This, that, and the other (talk) 08:33, 24 December 2011 (UTC)
Thanks, now it works Bulwersator (talk) 13:04, 24 December 2011 (UTC)

Date format

I am not sure why, but FtCG is using Polish date format - see [1]. It is strange as I use this format only on the plwiki, here and on the commons I see rather "07:51, 24 December 2011" Bulwersator (talk) 07:56, 24 December 2011 (UTC)

It's because your computer uses Polish language: FtCG is using your system's default date converter to process the dates. I will fix it to always use English month names, rather than Polish ones. — This, that, and the other (talk) 08:33, 24 December 2011 (UTC)
It may be also nice to use ISOdate template Bulwersator (talk) 09:28, 24 December 2011 (UTC)
I  Y fixed the month name problem in 1.0.0.4. I don't really see the added benefit of ISOdate - since FtCG can handle month names, etc, we don't need to rely on a template to generate them for us.. — This, that, and the other (talk) 10:57, 24 December 2011 (UTC)
Thanks! Bulwersator (talk) 10:52, 25 December 2011 (UTC)
I was the one who complained of this to Bulwersator. I'm not sure what you want, but now all new uploads will show English month names in the original upload log regardless of the user's preferences [2] (Other transfer tools use the YYYY-MM-DD format, which should be a little more widely understood.) —innotata 17:43, 26 December 2011 (UTC)
Yes. If you use {{ISOdate|2011-12-27}}, the date will become any of "27 December 2011", "2011年12月27日" or "27 décembre 2011" depending on settings, but your tool forces an English date, which is bad. --Stefan2 (talk) 23:55, 26 December 2011 (UTC)
OK, I'll change it to use ISOdate. My only "pet peeve" with the template is that for English, it shows the time after the date, while Commons' in-built upload log, as well as signatures, place the time before the date. Is there a reason for this? — This, that, and the other (talk) 00:55, 27 December 2011 (UTC)
I believe that commons:Template:ISOdate just passes the date to commons:Template:Date (which produces a localised date) and appends ", " at the end, followed by the time as-is. This gives a wrong syntax in many languages. --Stefan2 (talk) 01:10, 27 December 2011 (UTC)

Many things

  1. Logging
    Could there be timestamps, to know when it was moved?
    OK - I had a look at your MtC Jan 2012 drive page, and it contained mo information on how log entries should be formatted. I'll fix this tonight, after celebrating Christmas.
    " # {{Moved to Commons}} [[:File:]]" or " # {{Moved to Commons}} [[:File:]] → [[:File:]]"
    I've made it add a timestamp in 1.0.0.5, but it still uses a "*" instead of a "#". For the moment, you could do a find/replace on "*"->"#" in the log file, and I'll fix this in the next update. — This, that, and the other (talk) 11:23, 25 December 2011 (UTC)
    Good! ~~Ebe123~~ → report on my contribs. 12:41, 25 December 2011 (UTC)
  2. Files
    Where is stored the files? How could we delete them after?
    In the same directory as the program, so long as you launch the program by double-clicking on its icon.
    Thanks.
  3. Lists
    Could we import lists to move, and manage it within the program?
    A perennial suggestion. I'll do it tonight very soon also.
    Awesome. ~~Ebe123~~ → report on my contribs. 00:59, 25 December 2011 (UTC)

~~Ebe123~~ → report on my contribs. 14:58, 24 December 2011 (UTC)

Thanks for your suggestions. — This, that, and the other (talk) 23:24, 24 December 2011 (UTC)
Replied again. ~~Ebe123~~ → report on my contribs. 00:59, 25 December 2011 (UTC)

Now Commons

Is it possible to skip images with "Now Commons" template? Bulwersator (talk) 08:16, 25 December 2011 (UTC)

I might add it as a "potential problem". Skipping is not in the logic process at this moment, but it might appear later.This, that, and the other (talk) 09:26, 25 December 2011 (UTC)
I think I've rigged this up. It only skips when traversing via "Random file", though. So far I haven't come across an image tagged with nowcommons, so I can't really test it. — This, that, and the other (talk) 11:16, 25 December 2011 (UTC)
 Y I suppose it works, but not sure. — This, that, and the other (talk) 23:13, 25 December 2011 (UTC)

change this if not own work comment

<!-- change this if not own work --> - is it possible to not add this comment or add option to disable this function? Bulwersator (talk) 08:34, 25 December 2011 (UTC)

Hmm, good point. 90% of the time, {{own}} is the correct entry for this field. What I will do is have the program silently remove the comment before uploading the text to Commons. — This, that, and the other (talk) 09:26, 25 December 2011 (UTC)
  Done in 1.0.0.5 — This, that, and the other (talk) 23:13, 25 December 2011 (UTC)

Successful.

Is it possible to rather load next image from selected category than create "successful." pop-up? Bulwersator (talk) 08:38, 25 December 2011 (UTC)

  • Limited version: is it possible to disable this pop-up? Bulwersator (talk) 08:43, 25 December 2011 (UTC)
I won't have it load the next image automatically, since you need time to click the "View file page on Wikimedia Commons" and do whatever needs to be done (for me, using HotCat to add categories). I think it is easy enough to quickly hit the "enter" key to dismiss the reassuring "success" message. — This, that, and the other (talk) 09:26, 25 December 2011 (UTC)
pop-up is quite irritating as I use two instances of FtCG due to upload lag. As it probably OK in typical FtCG use it may be better to share source code + compiling instructions (disabling single pop-up should be easy). Bulwersator (talk) 10:35, 25 December 2011 (UTC)
It's as simple as commenting out a line of code. I'll look into providing the source tomorrow. — This, that, and the other (talk) 11:19, 25 December 2011 (UTC)

Permission field

Is it possible to fill it with "see below"? Bulwersator (talk) 08:41, 25 December 2011 (UTC)

The {{information}} template on Commons already does that. Personally, I just leave the permission parameter blank in all instances. Very rarely, I suppose there is a reason to fill it in. — This, that, and the other (talk) 09:26, 25 December 2011 (UTC)
"The {{information}} template on Commons already does that" -   Facepalm Bulwersator (talk) 10:35, 25 December 2011 (UTC)

Now FtCG changes [[foo]] to [[:en:foo]]. [[:en:foo|foo]] may be better Bulwersator (talk) 13:04, 25 December 2011 (UTC)

I'm unsure on this one. Personally, I prefer to know that a link will take me to enwiki instead of internally on Commons. However I can see the benefit of piping out the link. I can't decide what to do. — This, that, and the other (talk) 23:13, 25 December 2011 (UTC)
Now people are changing descriptions of moved files to hide :en Bulwersator (talk) 21:30, 26 December 2011 (UTC)
OK, will fix it. Thanks. — This, that, and the other (talk) 00:55, 27 December 2011 (UTC)
  Done in 1.0.1.0. — This, that, and the other (talk) 11:26, 27 December 2011 (UTC)

Warning

This tool raises warning for certain templates (for example Template:Keep local or something similar). It probably should also warn about Template:Puf and Template:Now commons. Bulwersator (talk) 15:55, 25 December 2011 (UTC)

It already warns about {{now commons}} (or skips the file, as I discussed above - or at least it ought to!). I will add {{puf}}. — This, that, and the other (talk) 23:13, 25 December 2011 (UTC)
  Done in 1.0.1.0. — This, that, and the other (talk) 11:26, 27 December 2011 (UTC)


Timeout result in unresponding FtCG

Bulwersator (talk) 13:38, 26 December 2011 (UTC)

Duh, if unresponding, timeout is inevitable. More details? ~~Ebe123~~ → report on my contribs. 20:14, 26 December 2011 (UTC)
Timeout happens, user gets error message "blah blah timeout blah blah", user closes message, FtCG is unresponding - after timeout Bulwersator (talk) 21:08, 26 December 2011 (UTC)
My mistake. ~~Ebe123~~ → report on my contribs. 22:32, 26 December 2011 (UTC)
A known bug. You must have a really slow Internet connection... I'll (attempt to) fix it. — This, that, and the other (talk) 00:55, 27 December 2011 (UTC)
(Sort of) fixed. You can actually close the program now if it hangs like that. (But it shouldn't hang any more.) — This, that, and the other (talk) 11:26, 27 December 2011 (UTC)

svg problem

Broken image Bulwersator (talk) 13:41, 26 December 2011 (UTC)

When there's a broken image, the transferrer is responsible for fixing the file. You may move and re-upload without For the Common Good when it happens. Thanks for reporting this. This seems weird as what would change the name and change it to what seems like a icon for a file editor. If this happens again, you should be replacing {{Now Commons}} by {{Not moved to Commons}}. ~~Ebe123~~ → report on my contribs. 20:13, 26 December 2011 (UTC)
Really weird. This is one of the main complaints about CommonsHelper1/2 - they sometimes break SVGs. I'll look into this very closely. — This, that, and the other (talk) 00:55, 27 December 2011 (UTC)
Also, Ebe123, I don't understand what you're talking about. Bulwersator fixed this error manually, so you need not tell him that he must fix it himself. The file itself is not corrupt - I suspect there is an encoding issue here, which I will look into. — This, that, and the other (talk) 01:07, 27 December 2011 (UTC)
If you see the timestamps, I replied hours before he fixed it. ~~Ebe123~~ → report on my contribs. 01:21, 27 December 2011 (UTC)
Ah, sorry.
Apparently this is an intermittent MediaWiki bug: see mediazilla:31719. So there's really not a lot I can do about it at the moment. — This, that, and the other (talk) 02:37, 27 December 2011 (UTC)
I am not sure - my first manual upload was also broken - so what about hack while(size_x_on_commons == 0 && size_y_on_commons == 0)reupload();? Bulwersator (talk) 07:59, 27 December 2011 (UTC)
The latest upload (the one that works) appears to have been edited somehow (either manually, or by opening and re-saving in a SVG editing program) to resolve the problem. FtCG isn't nearly smart enough to do that sort of thing (and I'm not smart enough to code it!). — This, that, and the other (talk) 08:33, 27 December 2011 (UTC)

File name

For the file name, could it have: (Without "File:"). Just so that no one gets confused? ~~Ebe123~~ → report on my contribs. 15:39, 26 December 2011 (UTC)

It can be with or without File:. — This, that, and the other (talk) 00:55, 27 December 2011 (UTC)
But filling it without "file:" results is linking to wrong page from "View file page on the Wikimedia Commons" Bulwersator (talk) 12:58, 27 December 2011 (UTC)
As in the new file name? Yes, that must start with "File:" – it says so just above the box. The old file name can be with or without. — This, that, and the other (talk) 06:22, 28 December 2011 (UTC)

question

Does this tool download locally and then upload the file to commons or directly without local storage(like Commonshelper)? Gauravjuvekar (talk) 15:47, 26 December 2011 (UTC)

  • Yes Bulwersator (talk) 15:50, 26 December 2011 (UTC)
    • Sorry, yes it downloads locally and then uploads the file to commons Bulwersator (talk) 21:10, 26 December 2011 (UTC)
Unfortunately, this is unavioudable until such time as upload-by-URL is enabled on Commons. Even then, direct-URL upload is likely to be restricted to Commons admins only. — This, that, and the other (talk) 00:55, 27 December 2011 (UTC)
If they restrict that to admins, I would be starting a proposal for a new usergroup (on commons). ~~Ebe123~~ → report on my contribs. 01:25, 27 December 2011 (UTC)

Autoopen page of transfered file

It may be really useful as option, now I constantly click on "open file page on English..." Bulwersator (talk) 15:51, 26 December 2011 (UTC)

  Done (sort of) in 1.0.1.0 - you can set it to open the Commons page (also, the same option hides that "successful" alert) - please try it and see if it is enough for you. — This, that, and the other (talk) 11:26, 27 December 2011 (UTC)
Really nice, but autoopening file page on enwiki, before transfer would be also really useful for me Bulwersator (talk) 12:34, 27 December 2011 (UTC)

Template:Copy to Wikimedia Commons

"Copy to Commons: via CommonsHelper · via CommonsHelper 2" - I think that mentioning also this tool may be a good idea Bulwersator (talk) 21:32, 26 December 2011 (UTC)

I think that this should be "at the back" for now. Just until this tool has way more funtionality. Think of this as a "test". Also, those links were like "direct links" not to open a program to do it. ~~Ebe123~~ → report on my contribs. 22:29, 26 December 2011 (UTC)

Wine

It says that this program works under Wine, but I can't get it to work myself. I tried "winetricks mono28" and then "wine ForTheCommonGood_1.0.0.5.exe". I can enter user names and passwords, but once I click on "Random file", the program crashes with some output to the standard output:

System.Net.WebException: Error writing request: The authentication or decryption has failed.
 at System.Net.WebConnectionStream.WriteHeaders () [0x00000] in <filename unknown>:0
 at System.Net.WebConnectionStream.SetHeaders (System.Byte[] buffer) [0x00000] in <filename unknown>:0
 at (wrapper remoting-invoke-with-check) System.Net.WebConnectionStream:SetHeaders (byte[])
 at System.Net.HttpWebRequest.SendRequestHeaders (Boolean propagate_error) [0x00000] in <filename unknown>:0

The formulation on the description page suggests that someone has got this to work under Wine. How did that person manage to run the program? --Stefan2 (talk) 00:16, 27 December 2011 (UTC)

Ebe123 added that to the description page. Ask them for assistance with Wine. — This, that, and the other (talk) 00:55, 27 December 2011 (UTC)
I forgot how, as I started using my Windows Vista for it. ~~Ebe123~~ → report on my contribs. 01:23, 27 December 2011 (UTC)

New version

1.0.1.0 includes: a limited sort of asynchronicity; loading a text file; opening file page on Commons automatically after transfer (if desired); piping of [[:en:....]] links (as requested).

Still no ISOdate yet - the template looks as though it needs a bit of work.

GFDL-user|user problem

example - is it possible to convert also {{GFDL-user|user|migration=not-eligible}} template? Probably it should be based on the first file uploader Bulwersator (talk) 09:47, 28 December 2011 (UTC)

Well, I've never seen anyone put "user" as the first parameter. Presumably that is a one-off (or at least, fairly rare) error; I think it is easier to change it on an individual basis. — This, that, and the other (talk) 23:19, 28 December 2011 (UTC)
 Y - as it was unpredictable user error Bulwersator (talk) 10:21, 29 December 2011 (UTC)

Loading list from the file

Load, save changes, load - first entry from the list will be deleted Bulwersator (talk) 18:08, 28 December 2011 (UTC)

I didn't see that. ~~Ebe123~~ → report on my contribs. 22:22, 28 December 2011 (UTC)
It removes them from the (cached) list as soon as you load each file, regardless of whether you transfer or not. I suggest you keep a backup copy of the text file, since removed files are indeed removed!
Actually, Bulwersator, when you load a text file, then exit immediately (without clicking "Next file"), the text file is wiped clean! I'll have to fix that. In the meantime, don't save changes unless you've actually clicked "Next file" at least once. — This, that, and the other (talk) 23:23, 28 December 2011 (UTC)

Category:Move to Commons Priority Candidates

It may be a good idea to use it as a default category Bulwersator (talk) 09:41, 29 December 2011 (UTC)

No! Just put it after the two others. Then, people could choose whether or not to take files from there. ~~Ebe123~~ → report on my contribs. 12:17, 29 December 2011 (UTC)
I will put out a new version very soon, which has a automatic update check built-in (able to be disabled if wanted, but I don't know why you would want to). It will include the new category as an option. — This, that, and the other (talk) 00:34, 30 December 2011 (UTC)

Crash on decline transfer

File:Moelwyn Bach.jpg (load, decline with "test" text, crash) Bulwersator (talk) 09:43, 29 December 2011 (UTC)

This seems to be an internal .NET Framework bug... I'll try to fix it on my end, but I might not be able to. — This, that, and the other (talk) 00:24, 30 December 2011 (UTC)

Author field

It is sometimes possible to fill it, based on templates - (Template:GFDL-user, template:PD-self) Bulwersator (talk) 08:47, 25 December 2011 (UTC)

It is. When using the tool myself, I have been manually copy-pasting the {{uv}} template which appears into the original upload log into this field. Perhaps if the self templates are applied, it could place the name of the original uploader in the author field.
I must thank you for the comprehensive feedback. It is clear that you are enjoying using the tool! — This, that, and the other (talk) 09:26, 25 December 2011 (UTC)
I also think about adding link to FtCG on the Template:Copy to Wikimedia Commons Bulwersator (talk) 10:38, 25 December 2011 (UTC)
Feel free to do that if you think it is appropriate.
I have rigged up a new version (1.0.0.5) - I have lots more ideas (loading a text file containing filenames to transfer; skipping unused files (I now understand why you want this); saving all this setup to the config file; new settings code (the current code is really bad); , but no time to implement them. I will do some work over the coming days. — This, that, and the other (talk) 11:16, 25 December 2011 (UTC)
Not moving unused files should be in another option as I, for one move random files, regardless of use. ~~Ebe123~~ → report on my contribs. 15:14, 25 December 2011 (UTC)
I agree, it would be an option, able to be turned off if not wanted. — This, that, and the other (talk) 23:13, 25 December 2011 (UTC)

2 things

  1. Status on Wikimedia projects
    I suggest that we require autoconfirmed status at commons and at the wiki to transfer files. This is to prevent some bad transfers.
  2. Other projects
    I know that some people move files from other wikis to commons, so how about letting them use this? Like me, I am planning to cut down the backlog at fr.wiki and it.wiki.

Thanks, ~~Ebe123~~ → report on my contribs. 17:34, 30 December 2011 (UTC)

I am just about to upload version 1.0.1.1, which should set you up nicely for the January 2012 Move to Commons drive. After that, I will certainly implement use on other wikis.
Re autoconfirmed check, any extra web request adds overhead (in Twinkle, for example, I can just read the wgUserGroups array, but when writing a standalone program, I have to ask the server especially for the information). The potential for abuse exists, but is minimal - and any user (confirmed or not) who is using the tool inappropriately should be warned and/or blocked. — This, that, and the other (talk) 00:38, 31 December 2011 (UTC)

another 2 things

Hi, I love your new tool and luckily it is released before the new backlog drive. I have another two possible fixes which I would like to see:

  • Move the license tag to the permission-parameter of the information template

or

  • add headlines like at (a random file I helped with the upload): File:Amlibrarylogo.jpg (The summary headline is in my eyes a must!)

Regards, mabdul 20:07, 30 December 2011 (UTC)

I think putting the license tag in the information parameter is too much overhead (would need a lot more code). And it looks ugly on the file description pages, too. So not now for that one.
Also, I thought that Commons files generally did not use "Summary" and "Licensing" headings, like we do here. That is why FtCG removes those headers. But, per commons:Commons:File description pages, it seems that {{int:filedesc}} and {{int:license}} should be used as headers. I will fix this for 1.0.1.1. Thanks for letting me know. — This, that, and the other (talk) 00:43, 31 December 2011 (UTC)
Actually it does say on that page that "these [headers] are optional". I really would prefer not to add them. Does anyone else have an opinion? — This, that, and the other (talk) 00:48, 31 December 2011 (UTC)
I don't care much of them, but for commons standardization, there should be a header. ~~Ebe123~~ → report on my contribs. 01:50, 31 December 2011 (UTC)

Latest version available

I have just uploaded Version 1.0.1.1 to http://atlight.github.com/. It now has a built-in check for updates, so you will no longer have to check this page to keep track of new versions. The feedback you have been giving me has been greatly appreciated, and I welcome it - keep it up! — This, that, and the other (talk) 01:16, 31 December 2011 (UTC)

I like the addition of the boxes! ~~Ebe123~~ → report on my contribs. 01:51, 31 December 2011 (UTC)
Yes, I put my "graphic designer" hat on - I thought there needed to be some sort of aesthetic "link" between filespace and FtCG, and the distinctive {{imbox}} style was the best way of doing this. — This, that, and the other (talk) 06:35, 31 December 2011 (UTC)

Ogg files

It may be good idea to skip audio files Bulwersator (talk) 13:16, 26 December 2011 (UTC)

Why? ~~Ebe123~~ → report on my contribs. 20:02, 26 December 2011 (UTC)
Maybe as option Bulwersator (talk) 21:09, 26 December 2011 (UTC)
Yes, why? I don't understand. — This, that, and the other (talk) 00:55, 27 December 2011 (UTC)
Hmm... is this perhaps because of "spoken articles"? — This, that, and the other (talk) 06:43, 27 December 2011 (UTC)
They can be moved too. ~~Ebe123~~ → report on my contribs. 15:15, 27 December 2011 (UTC)
I'm currently moving lots of music-related images: PNG files of chords and MID files with the same chords. The MID files work fine for me, so I see no reason to exclude them. --Stefan2 (talk) 15:44, 1 January 2012 (UTC)

A few thoughts

This program is shaping up rather nicely, and it is especially impressive given the amount of time it has taken to code. Thank you very much for this. I have a some suggestions from using it a few times:

Preferably, I'd like to not have to click on the "Successful" message every time. Perhaps this can appear above or below the "File description on English Wikipedia", something like "File:Bannanztime234324.jpg successfully transferred to File:Churchill and Hitler share a banana.jpg". One less click, and it might help prevent transferring the same image twice (in case you transfer, click ok, get distracted, and forgot you transferred already). ▫ JohnnyMrNinja 07:36, 31 December 2011 (UTC)

  • In settings you can replace it with opening new file page on commons Bulwersator (talk) 08:35, 31 December 2011 (UTC)
  • I could change the "potential problems" box (even if hidden) into a "successful" message when it's done. I don't want to (for example) gray out the "Transfer" button, since you might want to transfer another revision to a different filename on Commons. — This, that, and the other (talk) 09:51, 31 December 2011 (UTC)

When moving quickly, it is hard to notice the "One earlier version". Tiny thumbnails would be great, and make it obvious when one is a totally different image. They don't need to be functional, but small thumbnails would catch the eye and ensure that no image is lost in a deleted revision. ▫ JohnnyMrNinja 07:36, 31 December 2011 (UTC)

  • And where to put them? I am working at a modest minimum size (to support those with small monitors, etc.), and there is really no room left in the application window. — This, that, and the other (talk) 09:51, 31 December 2011 (UTC)

I would love to work from a queue, like in AWB (also a .NET program). Also I'd like to choose my own categories. ▫ JohnnyMrNinja 07:36, 31 December 2011 (UTC)

  • See "other source" radio button Bulwersator (talk) 08:35, 31 December 2011 (UTC)

If there is loose text on the page it might be preferable to the "Description" field, if this isn't too complicated. A lot of old images were uploaded before these templates existed. ▫ JohnnyMrNinja 07:36, 31 December 2011 (UTC)

  • Unfortunately it is a little more complicated than it might seem... It's easy enough (I find) to cut and paste loose text into the {{en}} template. — This, that, and the other (talk) 09:51, 31 December 2011 (UTC)

Date should be taken from the metadata, if possible. ▫ JohnnyMrNinja 07:36, 31 December 2011 (UTC)

  • Date of earliest upload? OK; I was assuming it was meant to be the date the work was created, which for the vast majority of works is not specified. — This, that, and the other (talk) 09:51, 31 December 2011 (UTC)
    • No, sorry, the photo often contains the date it was created in the photo meta-data (which is displayed at the bottom of the page). People don't remember when they took the photos, but the photos do. ▫ JohnnyMrNinja 10:38, 31 December 2011 (UTC)

Maybe I'm alone in this, but I think that the default should be to upload all versions of an image, for clear attribution history. On articles, we have detail the revisions, no reason not to do that with images. Also, a lot of "improvements" people make to images for one purpose make them less useful for other purposes. ▫ JohnnyMrNinja 07:36, 31 December 2011 (UTC)

  • It can/is solved by admins deleting images under F8 (example, see file history). Bulwersator (talk) 08:40, 31 December 2011 (UTC)
  • The only way to do this would be to upload each revision, one at a time, so obviously timestamp and uploader data would be lost. I do sort of agree that it would be helpful, but it is specifically stated that it is not required, and there is not really a proper technical way of accomplishing this (other than the slow and cumbersome "brute force" approach). — This, that, and the other (talk) 09:51, 31 December 2011 (UTC)
    • Ooh, hadn't noticed OgreBot. Well, we might as well let it do its thing, I suppose. — This, that, and the other (talk) 09:52, 31 December 2011 (UTC)

Every time I run this program my computer says that I shouldn't trust it (publisher cannot be verified). I don't listen to all the nasty things my computer says, but perhaps there is something that can be done to avoid this message? ▫ JohnnyMrNinja 08:04, 31 December 2011 (UTC)

  • Win7? There is small checkbox in the bottom of the message to stop this message for this file Bulwersator (talk) 08:35, 31 December 2011 (UTC)
  • Or you can right-click on the file, go to "Properties", and click "Unblock". Same thing, really. — This, that, and the other (talk) 09:51, 31 December 2011 (UTC)
    • My thinking was for new users, it might scare some. ▫ JohnnyMrNinja 10:38, 31 December 2011 (UTC)
      • Windows Vista too. So there is a radio button on the bottom to press. But that could be used as a "child-proof" seal, by that I mean newcomers just so that they know what they are doing with the tool. ~~Ebe123~~ → report on my contribs. 13:19, 31 December 2011 (UTC)
      • There's nothing I can do about it - it's part of Windows' built-in internet security mechanism. — This, that, and the other (talk) 23:58, 31 December 2011 (UTC)

new feature request (version 1.0.1.1)

  1. Please check while downloading the actual image, if at commons is already a file with the same name (make the new filename box red or something)
  2. display somewhere (maybe with an extra button) the EXIF data of the actual image. (if no EXIF data existent, make the button red!)

mabdul 21:31, 1 January 2012 (UTC)

  1. It warns you when you click Transfer ("an image of this name already exists on Commons"). Then you can go back and give it a unique name. Isn't that enough?
  2. EXIF data added. It's in a machine-readable format, not the nice friendly format you get on-wiki, but it's all there.
Thanks for the input. — This, that, and the other (talk) 10:10, 2 January 2012 (UTC)
Because I uploaded a file that was already on commons under the same name -_- Yes, I should have checked the file, but it is always: click transfer, oh click ok, new name, oh any oter error... XD It simply costs additional time. mabdul 11:31, 2 January 2012 (UTC)

New version check is broken

I updated to 1.0.2, but new version (1.0.2) on start asked about updating to 1.0.2 Bulwersator (talk) 10:37, 2 January 2012 (UTC)

Whoops!! Fixed. Thanks for that. You won't need to redownload :) — This, that, and the other (talk) 11:01, 2 January 2012 (UTC)

Timeouting on slightly larger file

FtCG is unable to transfer bigger files (more than 5Mb) - it results in "An Internet request failed". There is no problem with manual transfer. Example: File:Olow entrance.jpg Bulwersator (talk) 11:40, 2 January 2012 (UTC)

Okay, will fix - clearly 45 seconds is too short for timeout! — This, that, and the other (talk) 06:53, 3 January 2012 (UTC)
Yes, my uploading speed to commons is sooooooooo slooooooooooow (downloading image from enwiki - 2 seconds. uploading to commons - 2 minutes) Bulwersator (talk) 09:14, 3 January 2012 (UTC)
What a nuisance... sounds like you need a faster internet connection. Bring on upload-by-URL, I say! — This, that, and the other (talk) 09:28, 3 January 2012 (UTC)

System32

It gives me a message stating something close to 'access to c:\windows\system32\ForTheCommonGood.cfg is was denied' (I forget the exact wording). What does this mean, and how does it impact me?

Also, where does it store my password so that I don't have to keep logging in. I want to delete that when I'm done using the tool. Sven Manguard Wha? 17:14, 2 January 2012 (UTC)

The password is stored in the denied file. It means nothing, the warning, as the second time, it will be there. ~~Ebe123~~ → report on my contribs. 18:17, 2 January 2012 (UTC)
You need to open FtCG by double-clicking on its icon, rather than by clicking "Open" through a web browser. The password etc. is stored in the same folder as the FtCG application, in a file called "ForTheCommonGood.cfg". You can delete it if you like, but FtCG will recreate the file after every session. — This, that, and the other (talk) 00:09, 3 January 2012 (UTC)
I don't have an icon for it. I run it from the .exe in the downloads section every time. Sven Manguard Wha? 19:52, 3 January 2012 (UTC)
By "icon" I mean "the actual program file sitting ina folder, or a shortcut to it". If you're opening it by double-clicking the icon in your downloads folder, that should work fine. But if you're opening it through your web browser's "downloads" window, that could cause trouble. I suggest you save the program to your desktop, etc. and double-click it directly. — This, that, and the other (talk) 00:48, 4 January 2012 (UTC)
"Access to file denied" probably means that you are not allowed to create files in that directory. Usually, only the Administrator user can create or change files in that directory. If you tell your browser to run the EXE file instead of saving it somewhere, the configuration files may end up at strange places (e.g. a Windows system directory or a directory belonging to your web browser). It is better to save the EXE file somewhere and then double-click on the file. (If you, like me, like to start programs from the command-line, make sure to cd to the directory where you want the config files before starting the program.) --Stefan2 (talk) 22:21, 4 January 2012 (UTC)

Version 1.0.2.2

Version 1.0.2.2 (and a source ZIP) is available at http://atlight.github.com. I won't change the "current version" for autoupdate, since this is a pretty minor update with mainly bug fixes (thanks to Guerillero and Bulwersator in particular) and logic improvements (thanks to Bulwersator again). More to come. — This, that, and the other (talk) 10:46, 4 January 2012 (UTC)

Feature removal request

Is it possible to remove/add option to hide "disable tagging local file with Now commons template"? I see no reason for this and it is possible to enable it by mistake Bulwersator (talk) 20:07, 4 January 2012 (UTC)

If there's a keeplocal on it, it can still be transferred to commons, but shouldn't have a nowcommons, which functions as a deletion template. Maybe a pop up "Are you sure" would be good, but certainly not a total removal. Sven Manguard Wha? 23:59, 4 January 2012 (UTC)
I don't want to remove it, but I could make it automatically re-enable after each transfer, in case it is accidentally cleared. (I think you have the states the wrong way around in your description.) How would that be? — This, that, and the other (talk) 05:14, 5 January 2012 (UTC)
  • So keeplocal is the only reason to use this? Maybe this option should be hidden and FtCG should not tag with nowcommons files with keeplocal? (But is should replace {{Keep local}} with {{Keep local|new filename}} Bulwersator (talk) 08:00, 5 January 2012 (UTC)
I'm not really sure why you want this removed. If you keep clicking the check-box by accident, I suggest you use the access key (Alt+T for the Transfer button - obviously use Left Alt on a Polish system). It's a good point you make about {{keep local}}, though. I'll look into that. — This, that, and the other (talk) 08:48, 5 January 2012 (UTC)

Headlines

Could you make the program put == {{int:filedesc}} == and == {{int:license}} == headlines at appropriate places? I've noticed that I'm spending quite a lot of time adding those myself when transferring files and it would go faster if they were added automatically by the software. --Stefan2 (talk) 14:08, 1 January 2012 (UTC)

Atlight (TT&O) would prefer not to add the headers, but how about in a option? ~~Ebe123~~ → report on my contribs. 14:39, 1 January 2012 (UTC)
It's just that the code is not straightforward. I'll look into it shortly. — This, that, and the other (talk) 00:06, 2 January 2012 (UTC)
Not as bad as I thought. See below. — This, that, and the other (talk) 10:10, 2 January 2012 (UTC)
  DoneThis, that, and the other (talk) 10:30, 7 January 2012 (UTC)

Version 1.0.2

New features:

  • A "lightbox" feature (click the image preview, and the image will zoom to fill the whole window)
  • Ability to view EXIF data for any revision of an image
  • Automatic handling of {{int:filedesc}} and {{int:license}} headers (old Summary/Licensing headers are replaced, or if they are not found, new headers are inserted. Occasionally some manual fixing is needed... but not very often.)
  • Automatic insertion of the EXIF (camera) date of the oldest revision into the {{information}} template (followed by the disclaimer (from metadata), since it can often be wrong, especially when camera clocks aren't set)
  • Display of a list of the first 20 pages on which a file is used, to help in putting together a description if the file lacks one (or to help with creating a new file name)
  • Addition of keyboard shortcuts (access keys) for almost all features in the main window

The idea is that you should no longer have to view the local file page in the browser - all the info (except MIME type and duplicate files, and perhaps some audio metadata?) is there for you.

Enjoy. — This, that, and the other (talk) 10:10, 2 January 2012 (UTC)

  • Thanks for EXIF loading! Unfortunately it is still needed to check for copyvios using tineye/google for images with PD-self Bulwersator (talk) 10:35, 2 January 2012 (UTC)
    • How does one do that? (I'm asking mainly for personal interest, but I might add it to FtCG if I like it.) — This, that, and the other (talk) 11:01, 2 January 2012 (UTC)
      • image: google and tineye. There are firefox addons to add "search image on google/tineye" or right-click. It is something new, but sometimes it is possible to catch copyvio this way. Bulwersator (talk) 11:18, 2 January 2012 (UTC)
Unfortunately, it seems that the Tineye API is only available if one is willing to part with dollarz. -FASTILY Happy 2012!! 09:26, 3 January 2012 (UTC)
Google seems to make theirs available free-of-charge. If you think it's worth having I'm most happy to add it. In fact, I will do so, in 1.0.2.1 - which I will finish shortly. — This, that, and the other (talk) 10:39, 3 January 2012 (UTC)
  DoneThis, that, and the other (talk) 10:30, 7 January 2012 (UTC)

Pages using this file

Is it possible to make this list clickable? (it should be possible as there are links to filepage on enwiki & commons) Bulwersator (talk) 10:39, 2 January 2012 (UTC)

I thought the same thing. It's more difficult than it might seem, so I decided to put out the new version before I'd added this feature.
I'm continuing to work on it. — This, that, and the other (talk) 11:01, 2 January 2012 (UTC)
  DoneThis, that, and the other (talk) 10:30, 7 January 2012 (UTC)

Bug

I got this warning and text print out. What should I do?

gory details
The following discussion has been closed. Please do not modify it.


See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at ForTheCommonGood.frmMain.<>c__DisplayClass28.<DeleteLocal>b__26(XmlDocument doc)
   at ForTheCommonGood.MorebitsDotNet.<>c__DisplayClass7.<PostApi>b__6(IAsyncResult innerResult)
   at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
   at System.Net.ContextAwareResult.CaptureOrComplete(ExecutionContext& cachedContext, Boolean returnContext)
   at System.Net.ContextAwareResult.FinishPostingAsyncOp()
   at System.Net.HttpWebRequest.BeginGetResponse(AsyncCallback callback, Object state)
   at ForTheCommonGood.MorebitsDotNet.PostApi(Wiki wiki, StringDictionary query, Action`1 onSuccess, Action`1 onError, Boolean loggingIn)
   at ForTheCommonGood.frmMain.DeleteLocal()
   at ForTheCommonGood.MorebitsDotNet.<>c__DisplayClassa.<UploadFile>b__9(IAsyncResult innerResult)
   at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
   at System.Net.ContextAwareResult.CaptureOrComplete(ExecutionContext& cachedContext, Boolean returnContext)
   at System.Net.ContextAwareResult.FinishPostingAsyncOp()
   at System.Net.HttpWebRequest.BeginGetResponse(AsyncCallback callback, Object state)
   at ForTheCommonGood.MorebitsDotNet.UploadFile(Wiki wiki, StringDictionary query, Byte[] file, String fileName, String fileParamName, Action`1 onSuccess, Action`1 onError)
   at ForTheCommonGood.frmMain.<DoTransfer>b__20(XmlDocument doc)
   at ForTheCommonGood.MorebitsDotNet.<>c__DisplayClass7.<PostApi>b__6(IAsyncResult innerResult)
   at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
   at System.Net.ContextAwareResult.CaptureOrComplete(ExecutionContext& cachedContext, Boolean returnContext)
   at System.Net.ContextAwareResult.FinishPostingAsyncOp()
   at System.Net.HttpWebRequest.BeginGetResponse(AsyncCallback callback, Object state)
   at ForTheCommonGood.MorebitsDotNet.PostApi(Wiki wiki, StringDictionary query, Action`1 onSuccess, Action`1 onError, Boolean loggingIn)
   at ForTheCommonGood.frmMain.DoTransfer(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5448 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
ForTheCommonGood
    Assembly Version: 1.0.0.4
    Win32 Version: 1.0.0.4
    CodeBase: file:///C:/Program%20Files%20(x86)/Wikipedia/Common%20good/ForTheCommonGood_1.0.0.4.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5446 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5447 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Accessibility
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

--Guerillero | My Talk 05:57, 3 January 2012 (UTC)

Thank you for that essay. I was in the middle of transferring a file. I had all of the test lined up and I pressed the transfer button. A long error message that started out with "Unhandeled exception has occurred in your application" popped up. The gory code was found under a details drop down. --Guerillero | My Talk 06:26, 3 January 2012 (UTC)
Ahhh... you must be the first admin to try out the deletion code. I have never tested it, simply because I am not an admin.
It would appear that the transfer went ahead as intended - this crash was in the deletion code. For the time being, turn off the check box just above the "Transfer" button, which will prevent FtCG from attempting to delete images. (You will have to do this manually.)
Thanks for the report; I will try to fix it shortly. — This, that, and the other (talk) 06:53, 3 January 2012 (UTC)
BTW Bulwersator, I (hopefully) fixed decline transfer :) — This, that, and the other (talk) 08:55, 3 January 2012 (UTC)
<?xml version="1.0"?><api><query><pages><page pageid="6193913" ns="6" title="File:WA9 2.JPG" touched="2012-01-03T19:45:19Z" lastrevid="468377295" counter="" length="291" starttimestamp="2012-01-03T20:31:15Z" deletetoken="a8bce2c78c40f39961966be8b166dd45+\" /></pages></query></api>

There you are. It failed to delete the image I was moving File:WA9 2.JPG --Guerillero | My Talk 20:40, 3 January 2012 (UTC)

!!! A silly logic error is at fault here. (I'm quite annoyed at not spotting it earlier.) Easily fixed. Thanks very much for your assistance with testing this feature. — This, that, and the other (talk) 00:16, 4 January 2012 (UTC)
  DoneThis, that, and the other (talk) 10:30, 7 January 2012 (UTC)

Recreate Information template

Recreate Information template for files tagged with it on enwiki (example) - for example Description field text may be moved into {{en commons template Bulwersator (talk) 09:12, 3 January 2012 (UTC)

Yes, {{en}} should be added. I don't know if there is really anything else to do, since enwiki information templates for ownwork files usually have the fields filled automatically. — This, that, and the other (talk) 09:19, 3 January 2012 (UTC)
Well, if information template exists in enwiki file description metadata based data is never added (due to " if (!Regex.IsMatch(text, "{{Information", RegexOptions.IgnoreCase))") Bulwersator (talk) 11:29, 3 January 2012 (UTC)
That's right, the information template is left as is. Usually it is filled out adequately, I find. Do you agree? — This, that, and the other (talk) 00:08, 4 January 2012 (UTC)
But {{en}} is never used (and automatic adding date based on metada is also useful). Bulwersator (talk) 08:49, 4 January 2012 (UTC)
I've moved maybe a few hundred files using Commons Helper and FTCG and {{en}} has only been filled in on English Wikipedia maybe five times. On the other hand, it is always wanted at Commons. It would be nice if you could add {{en}} to {{Information}} templates from English Wikipedia. --Stefan2 (talk) 22:08, 4 January 2012 (UTC)
It is   Done in 1.0.2.2. Sorry if my last comment was unclear. — This, that, and the other (talk) 23:19, 4 January 2012 (UTC)

Template:Self

Warning & feature request - files tagged with this template require similar edit It should be quite easy to include this in FtCG Bulwersator (talk) 14:30, 3 January 2012 (UTC)

+1 --Guerillero | My Talk 16:47, 3 January 2012 (UTC)
Will do. — This, that, and the other (talk) 00:09, 4 January 2012 (UTC)
  DoneThis, that, and the other (talk) 10:30, 7 January 2012 (UTC)

Logging bug

Enable logging, transfer file, close FtCG, transfer file.

Expected format:

  1. 20:17, 3 January 2012 (UTC): File:Quintupletclust.jpgFile:Quintuplet cluster.jpg
  2. 20:20, 3 January 2012 (UTC): File:M45map.jpg

Format:

  1. 20:17, 3 January 2012 (UTC): File:Quintupletclust.jpgFile:Quintuplet cluster.jpg# 20:20, 3 January 2012 (UTC): File:M45map.jpg

Bulwersator (talk) 21:15, 3 January 2012 (UTC)

You have removed the empty line at the bottom (while copying probably). Just put it back and it's fixed. ~~Ebe123~~ → report on my contribs. 23:11, 3 January 2012 (UTC)
No, this looks like a bug. I will try to fix it.
Also, Ebe123, re logging, see my comment here. — This, that, and the other (talk) 00:10, 4 January 2012 (UTC)
  DoneThis, that, and the other (talk) 10:30, 7 January 2012 (UTC)

Bug removing deletion template along with {{Copy to Commons}}

See diff to see the bug. --Ankit Maity Talkcontribs 08:09, 4 January 2012 (UTC)

Since the admin deleted the file before you all here saw the bug I requested Fastily to restore the diffs for me, somehow. Sob...sob....sob..sob--Ankit Maity Talkcontribs 08:19, 4 January 2012 (UTC)
Which deletion template was it? I can imagine a case like {{copy to Commons}}{{di-no permission|...}} might cause issues... am I right? — This, that, and the other (talk) 10:17, 4 January 2012 (UTC)
Got the screenshot. It was under CSD F3.File:FTCGBugTemporary.png--Ankit Maity Talkcontribs 10:48, 4 January 2012 (UTC)
It was a kind of "edit conflict". FtCG is lazy, and uses the text in the left side of the window when submitting the "decline transfer" edit. So FtCG didn't know about your CSD tagging. I will fix this in the next update, so the text is loaded fresh from the server. Thanks for the bug report. — This, that, and the other (talk) 11:02, 4 January 2012 (UTC)
I don't think that {{Copy to Commons}}{{di-no permission}} would cause any serious problems. FTCG warns if anyone wants to move a file with specific templates and Commons Helper refuses to move them. If I find that an image isn't eligible for Commons, I just click on "random file" in FTCG to get a new file. It might still cause problems if someone else tries to edit the same file information page at the same time, though. --Stefan2 (talk) 22:04, 4 January 2012 (UTC)
Original problem  Y fixed. Also, Stefan2, my reason for suspecting that was that some regexes used to test for {{Copy to Commons___________}} (obviously that isn't a regex, just pseudocode), without checking the intervening text, so it could "eat up" two templates in one in some instances. — This, that, and the other (talk) 10:30, 7 January 2012 (UTC)

Bug in en (duplicate of my own bug)

Sometimes files on enwiki are using {{en}}, FtCG will change {{en|1=description}} into {{en|1={{en|1=description}}}}. See File:Oregon 2008 Measure 51.svg. Bulwersator (talk) 22:18, 5 January 2012 (UTC)

OK. Easily fixed. — This, that, and the other (talk) 00:26, 6 January 2012 (UTC)
  DoneThis, that, and the other (talk) 10:30, 7 January 2012 (UTC)

Don't save password

Could we get a checkmark option to save the password to disk (so that we can decline to check it)? I am willing to enter my password (and even username, if it's blank) when I start the program and/or the first time I hit one of the modification (Transfer / Decline) buttons, as long as it doesn't save the password to disk. (By the way, I'm using 1.0.3, which apparently has appeared without being announced here yet.) --Closeapple (talk) 08:52, 6 January 2012 (UTC)

It seems that a lot of wiki users are paranoid about their password being saved to disk. I'm not... but perhaps it's because I'm the only one who uses my machine. Sven Manguard created an alternate account to use with FtCG, which is what I suggest you do until FtCG has such an option. (And I don't announce all versions on this page - only when there's a lot of new good stuff, as there was in 1.0.2.) — This, that, and the other (talk) 09:44, 6 January 2012 (UTC)
You could solve it by creating a batch file:

cd \wherever\you\have\the\program
start /wait name-of-exe-file.exe
del ForTheCommonGood.cfg

Anyway, storing your password in a text file isn't very different from storing your login credentials in an HTTP cookie, is it? Stefan2 (talk) 14:14, 6 January 2012 (UTC)

  Done. Now you can choose to not save your password, and enter it every time you load FtCG. Available from "Settings", top-right corner. — This, that, and the other (talk) 10:30, 7 January 2012 (UTC)

Minor bug: clipboard has extra blank lines

This is my first time using FtCG; I just got 1.0.3. It appears that copying text from the FtCG edit window to another program (say, a text editor) appears to insert extra blank lines into the clipboard results. It might only be for the Information template boxes that FtCG creates itself; it does not have have them in the license or upload log section. For example: The Information section (which FtCG created because the Wikipedia text didn't have one) looks more or less normal in FtCG to begin with, but if I select all the text in FtCG, then right-click, Copy, then I go to, for example, Notepad++, and Paste, it has blank lines in, and just after, the Information section in Notepad++. If I then Select All, Copy in Notepad++, and Paste back into FtCG, now the extra blank lines show up, even though all I did was a pair of copy-and-paste operations to one program and back with no intervening edits. I haven't yet tried doing a copy-and-paste from FtCG to itself. --Closeapple (talk) 09:04, 6 January 2012 (UTC)

Something is afoot here. Will look into it. Thanks for the report. — This, that, and the other (talk) 11:11, 6 January 2012 (UTC)
I had the same problem a few days ago. I filled in the text box with all relevant information, but when I clicked on "Transfer", it turned out that someone had already transferred the image although without remembering to mark it with {{NowCommons}} on English Wikipedia. The person who had transferred it hadn't cleaned up the information on Commons (it still contained a mess from Commons Helper), so I pasted my cleaned up text from FTCG into the Commons edit box instead, and noticed this double line break problem. I think it might have occurred on every line and not just in the {{Information}} template, although I don't remember exactly. --Stefan2 (talk) 15:23, 6 January 2012 (UTC)
  Done in 1.0.3.1 - easily fixed, although I can't see what the problem is here. Some issue re communication between WinForms and the native controls, I'd say. — This, that, and the other (talk) 10:30, 7 January 2012 (UTC)

sign up

So if we leave the Wikimedia Commons log in empty, then could it use the enwiki information. It would be very useful for me. ~~Ebe123~~ → report on my contribs. 21:37, 6 January 2012 (UTC)

  Done in 1.0.3.1 — This, that, and the other (talk) 10:30, 7 January 2012 (UTC)