Category Archives: OSX

Busy Busy

Never fear. There is work going on for Shoes 3.3.2 – but it’s edge case things, and bug fixes for stuff most people don’t care about. Yet, it has to be done.

There are so many OSX issues to fix. Since I don’t know what I’m doing in Cocoa and Objective-C, it’s taking a lot time. That said, I have made progress. Presumably, I’ve learned a lot about OSX. It is better on OSX.

What Bridge?

You might be wondering about whether any thing is happening with Shoes 3.3. Is there going to be a 3.3.2? What’s in it? Is anyone awake?

We don’t have a list of what’s in the next Shoes (3.3.2). As always, when developers don’t get feature requests then they work on their own pet peeves and the recently introduced Shoes Console was pretty lame when developers look at. A hack. A Useful hack but it could be much more useful. One developer wants to use it output results from Shoes tests and wrote a nice Shoes app to run test scripts on the internals of Shoes but the output was no where close to what a real terminal would display.

The code was particularly poor – I can say that, I wrote it! Clever but ugly. Developers care about ugly code. The first ugly is the Window was titled “Shoes Console” and we already had a “Shoes Console” – they are not the same. This one will be called Shoes Terminal. Arguably, the other Shoes Console, the one you alt-/ to, could have been renamed “Shoes Log”. On the gripping hand, The Shoes Terminal will actually do terminal things.

Inside Shoes, in the C code we had repurchased some dead and forgotten C from another project and as things often do, it might not have been the best choice. But after examining other projects to borrow from – it was not completely bad. So we fixed it to do better on Linux and possibly work better on Windows and be less offensive to the sensibilities of future C developers. That took time, a lot of time and it’s still not what I’d like although Linux is usable for many escape sequence emitting code that expects an xterm. Even works on Windows if you run cshoes.exe from the Windows dos console or msys.

And then we have OSX. At first glance, you’d think it would be like any other Unix, an assumption I mad when I hacked the current Objective->C implementation. Turns out, that wasn’t a good assumption. Shoes and OSX have always had some special “doesn’t fit the mold” problems. Shoes Terminal really highlights that special OSX experience.

There’s are deep OS river gorges Shoes has been crossing over with just a rope bridge over the rivers, swaying in the turbulent wind anchored to some wooden posts in the shifting banks. We can’t fix the gorge but we might be able to run a steel cable and put the pylons in concrete anchors. Not as easy as Xena runs across rope bridges.

So, we have been busy, working on things you may never see or use. Until you do. If you’re developer looking for a challenging bridge to cross, Shoes will provide that. Consider adding your skills. Embedded C Ruby in GUI of, Gtk, Cocoa, C, Objective C, Linux, OSX, Windows – we’ll never run out of fun.

Shoes 3.3.1 (finally)

There’s only minor changes since the last beta. Let’s set this puppy loose and see what doesn’t happen! Download from here

Windows Users – you must uninstall earlier versions of Shoes before installing 3.3.1.

Changelog:
New with 3.3.1

  1. Video widget. If you have VLC installed, Shoes will find it (and
    you can tell Shoes where your VLC is). Once found, you can use it.
    You can not package VLC with you script however.
    Issue 133
    Caution: may not work on OSX < 10.10
  2. Secondary packaging. Use a Shoes installer script to install your app. Not
    for the casual. Too damn clever so there’s likely to
    be bugs and confusion.
    What it is
    Also read
    Issue 188
  3. Uses Ruby 2.2.4. If you have native Gems that were built by earlier
    versions, they may not work. – Uninstall and reinstall the gem.
  4. Windows: Shoes comes with win32-shortcut gem. Undocumented and the
    online docs you do find are not always up to date.

Fixed with 3.3.1

  1. start {} blocks on stacks and flows work much better.
  2. Windows: does not use FONTCONFIG_FILE env var.
    Issue 216
    Benefits: Faster install, multiple installs, enables merge packaging
  3. Linux: fixed edit_box bug with Gtk >= 3.16
    issue 217
  4. OSX: don’t duplicate Shoes.app windows. Nasty if it happens to you.
    Cshoes suffered from this bug too. That works better now for OSX.
    Issue 190
    Issue 175
  5. Windows: ask_color crashes.
    Issue 209
  6. updated wiki article on building Shoes with Linux.
  7. remote debugger issue with newer byebug versions
    Issue 231

Developer issues for 3.3.1

  1. deleted gtk2 code. Video code is included.
    Some rakefiles were modified and are slightly less confusing.
  2. Windows: dependencies have changed – using Gtk 3.10.9
    Read more.
    Download from here if you need them – it’s a huge file!

Shoes runs on feedback and good intentions. Without feedback, we’ll do what we think is fun for us. Register your bugs or requests.

OSX Merge packaging

Now we are complete. I guess. Maybe. OSX users can build an installer (a dmg) that
packages their script dir with their Shoes. In theory they, don’t need Xcode to do it. Here’s my Ytm demo app installer on OSX. First we have to click through the license.
osx-uela
and then we can drag my app to Applicationsosx-install

If your first reaction is “that is one butt ugly installer!”, then I agree with you. It’s butt ugly. for a purpose. Like exe-shoes and linux-shoes You, not me have to make it pretty because it’s your code and your users. All I did was give you some structure to work with to build your own installers for your own app for your own users.

I’m not going to do much more on Merge packaging for any platform because it’s not something I care deeply about. That’s your task if you accept it.

Take away:
You don’t have to build Shoes from source and install the dev tools to build a ‘Real app’ and an custom native installer for it that hides Shoes. You have been empowered!

Shock! Another 3.3.1 Beta

Early release aficionados rejoice! There is a new beta (dated 2016-03-20) here which fixes a crash in some situations in the video handling. (memory pointer free at the wrong place in time)

Speaking of video, we’ve slightly simplified the use. Now, only require 'shoes/videoffi' is required so delete Vlc.load_lib in your scripts after installing the new beta. There are code attempts in there to not do it twice but why tease the Gods?

A problem has been reported for Video on OSX 10.9.5 (Mavericks) but seems to be localized to that OSX version. The audio plays, but no video is shown, just the black box. OSX 10.10 doesn’t have that problem.

LASTLY, as stated before, using 3.3.1 BETA to package is just asking for confusion. I’ll also note that packaging is now 100% ruby code, albeit very confusing code which you can read for yourself to see what’s going on. It’s just scripts included in every Shoes.

Beta or Release 3.3.1

What is the difference? For Shoes, not much. It’s pretty arbitrary. In the case of 3.3.1 there are a few bugs/features that we want to fix before we say done. But there’s some features we think you want to look at so, 3.3.1 is available for beta download.

Features:

  1. Video Widgets. You must have a recent VLC downloaded and installed in it default location, versions 2.1.x or 2.2.x. If Shoes finds it, it enables you to use the new code. Please try the sample/expert-video-play.rb for a great example of what it can do. Since its Shoes/Ruby code you’ll want to study it before you write your own.
  2. Secondary Packaging – This is too odd to describe here so read the wiki
    articles This one and this too.
  3. For Windows, a better way of dealing with Fonts. This needs some more testing so you can help. Aside from a faster install it will be easier/faster to test packaged scripts on the same box. This is a precursor to a way to package apps and pretend to hides Shoes from the user. As always, uninstall older Shoes first before installing 3.3.1
  4. Ruby 2.2.4 – Beware this may require you to update binary gems that you installed into Shoes.

The Changelog is always the last thing to get updated. Or is it the manual? One of them is the last.

There is one gotcha with betas. If you package a Shoes app or script with the beta, it’s going use the older 3.3.0 unless you know how to change it (you can but then have to remember to undo that when you get the real Release.

It happens

I got busy chasing Shiny Things like new bug reports and then went even deeper into some long standing ‘if only you knew’ arcane things and I forgot I’m supposed to release 3.3.1. In my defense, I am becoming more Windows knowledgeable and some of those arcane bugs are really hard. None of which would actually matter to getting Shoes 3.3.1 out of the door, usable for most people.

That’s a personal failing. I was trying to make it perfect and get some other bugs fixed. That and the new features like Video and secondary packaging are not so easy to understand, document or debug. But it is documented in the manual (thanks to passenger94) and at the wiki and I’m always going to get lost chasing shiny things.

With a whimper. Shoes 3.3.0

It’s released. For better or worse. I think better. Look at the changelog

Walkabout – Shoes 3.3

The name reflects back to when Shoes creator why_the_lucky_stiff disappeared
from the internet. He went walkabout! We changed some icons and backgrounds
to reflect that whimsical theme.

Walkabout (3.3) will be less compatible with the unmaintained 3.1 and not really released yet 4.0 (jRuby), We have interesting ideas of we what we do with Shoes that maybe very difficult to implement in Shoes 4.

New with 3.3.0

  • Uses Gtk3 (not gtk2) for Linux and Windows. This will change visuals on both platorms.
  • add font and wrap styles for list_box. A popular request – we are limited to what Gtk3 can do, however. The default behaviour for long strings in the list box is now to
    ellipize … in the middle. THIS could effect your current apps.
    Issue 109 https://github.com/Shoes3/shoes3/issues/109
  • A new Svg widget to display svg images – similar to Image but
    NOT really the same. Has aspect scaling options based on the svg internals. See samples/good-svgview.rb. samples/good-flip.rb and the manual. We also include a svg deck of playing cards. It’s a bit fragile so please file bug reports and ask for feature requests.

    • Very verbose Issue 54 – https://github.com/Shoes3/shoes3/issues/54
    • Pay attention to the OSX workaround #178 https://github.com/Shoes3/shoes3/is
      sues/178
    • Preliminary save and export methods:
      Issue #177 https://github.com/Shoes3/shoes3/issues/177
  • add a refresh slot method
    Issue 152 https://github.com/Shoes3/shoes3/issues/152
  • Uses ruby 2.1.7 or 2.1.8 and rubygems 2.4.7+
    Issue 164 https://github.com/Shoes3/shoes3/issues/164
  • New splash screen (no animation).
  • Added samples/good-image-rotate.rb because it’s fun to watch.
    Issue 157 – https://github.com/Shoes3/shoes3/issues/157

Fixed with 3.3.0

  • OSX – do not use home brew to manage dependecies.
    wiki: https://github.com/Shoes3/shoes3/wiki/OSX-10.9-Dependencies15
    wiki: https://github.com/Shoes3/shoes3/wiki/OSX-10.6-Dependencies
  • Remove pango-querymodules from OSX. Yay!
    Issue 156 – https://github.com/Shoes3/shoes3/issues/156
  • Uninstall Shoes menu item for Linux (for some window managers)
    Issue 31 – https://github.com/Shoes3/shoes3/issues/31
  • repaint after slot remove
    Issue 151 – https://github.com/Shoes3/shoes3/issues/151
  • Windows: 256×256 icons failed when packaging.
    Issue 10 – https://github.com/Shoes3/shoes3/issues/10
  • developer name and RVM and linker info gets embedded in
    binary libraries. No solution worth the effort.
    Issue 66 – https://github.com/Shoes3/shoes3/issues/66
  • Windows: fontconfig problems if you build shoes and download shoes
    Issue 141 – https://github.com/Shoes3/shoes3/issues/141

Yes, we have been busy beavers. Next up is Shoes 3.3.1. It will be Amazing Too! You’ll get tired of how awesome Shoe 3.3 will be. Shoes will be great Again!

Getting closer – Shoes 3.3.0

There’s just a few more things to finish before Shoes 3.3.0 (WalkAbout) is finished. In fact its good enough for folks who like to poke at new things and leave some feedback. So, there are beta downloads.

There are numerous big fixes and a couple of new features. One popular request is to do something that can shrink long strings in list_box. OSX does a wonderful job at this but Linux and Windows don’t. In 3.3.0 you can set the font for a list_box and you can create a two line entry if you specify a wrap: option which shows two lines of the string with some control on wrapping. The default without wrap is show the first part an ellipsis … and the last part of the long string. That effects existing Shoes programs visually. If long strings is a problem for you, try the beta and let us know if it’s good enough or unsatisfactory. Of course you’ll have to read the manual for what the options details are.

The other new feature is the ability to load and display Svg files and keep them in vector format. You also get some Svg unique methods for managing aspect and drawing a (sub)group in an Svg file. This is actually a brand new widget for Shoes 3.3.0 which took us a long time do correctly. It only looks like an Image. We also included two good sample programs and a deck of playing cards so after reading the manual, you can read the sample code and get familiar with what could be done. If you study the samples you’ll notice an OSX work around. It’s only a beta! We know that bug exists.

And the artwork has changed and – that’s enough for now.