Category Archives: Uncategorized

Show and Hide Backdrop in LiveCode with AppleScript

Sometimes, I need to make screenshots of LiveCode applications with a white background. Because LiveCode’s backdrop is black by default and I scripts may set the backdrop to a different colour, I often have to set the backdrop to white from the message box. To avoid the need for typing, I decided to make a simple AppleScript script to set the backdrop to white:

set myScript to “trynif the backdrop is not “none” then set the backdrop to none else set the backdrop to whitencatch myErrnreturn myErrnend try”
tell application “LiveCode 5.0.2”
    do script myScript
    return myScript
end tell

I have save the script and created a user scripts folder in the Scripts menu as shown in the picture below.

Screen_shot_2012-02-08_at_02

Now, whenever I select the script from the menu, the backdrop is set to none if a backdrop is currently visible and it is set to white of no backdrop is currently visible.

Strõm 1.2.1 is now available!

We have updated Strõm Flow Chart Software! This new version includes the possibility to add arrows to the connections between shapes!

Strõm is a programme to draw Strõm charts quickly and easily. Use it to create a visual representation of an organisation, a technical process, a production process, a management hierarchy, a mind map, or anything else that needs a systematic, structured view.

Download Strõm Flow Chart Software at http://flowproject.economy-x-talk.com/

Installer Maker Plugin 1.7 for LiveCode

I’m pleased to announce that after 6 months of hard work Economy-x-Talk is releasing Installer Maker 1.7.

Installer Maker is a plug-in for LiveCode, which allows you to wrap your standalones in an installer with only LiveCode itself –no additional software needed.

This version contains 16 new features, including pre- and post-installation scripts and addition of an icon to the Dock in Mac OS X. All new features are listed on the website.

Screenshot_vista

Installer Maker 1.7 is a free update for everyone who bought a license after 1 October 2011. If your license is more than 3 but less than 12 months old, then you get 50% discount on a new license.

Installer Maker 1.7 is available at http://qery.us/za where you also obtain a license.

Feel free to write any feature requests, bug reports or comments about Installer Maker in the comments below.

Laat MySQL and PHP met elkaar communiceren op Mac OS X 10.5 en 10.6

(This is a post in Dutch only)

Zojuist vond ik onderstaande instructies, die ik geruime tijd geleden voor een forum schreef. Wellicht is dit bruikbaar voor wie PHP en MySQL op zijn eigen Mac wil gebruiken. De instructies betreffen Mac OS X 10.5 en 10.6.

Bijna altijd wordt er met de term MAMP gegooid zo gauw mensen problemen hebben met PHP en MySQL op Mac OS X. Het is onzin om MAMP op een Mac te installeren omdat bijna alles al geïnstalleerd is. Waarom zou je alle serversoftware twee keer installeren? Dat neem alleen maar onnodige ruimte. Je hoeft MAMP echt niet te gebruiken. Je moet gewoon even weten hoe je PHP en MySQL moet configureren.

Voordat PHP met MySQL kan werken, dien je natuurlijk MySQL te installeren. Je kunt MySQL voor Mac OS X hier http://www.mysql.com/downloads/mysql/ downloaden. Installeer MySQL en vergeet niet ook het voorkeurenpaneel te installeren.

Nu kun je PHP activeren. Type command-shift-G en type /etc/apache2/ in het venstertje dat verschijnt. Klik op Ga (of Go) en zoek naar het bestand httpd.conf in die map. Kopieer dit bestand naar de desktop en maak een extra kopie met de naam httpd.conf.oud.
Open het bestand httpd.conf in TextEdit en zoek de regel met
#LoadModule php5_module libexec/httpd/libphp5.so

Verwijder de # en bewaar het bestand. Kopieer het gewijzigde bestand nu naar /etc/apache2/ en bevestig als je wordt gevraagd of je het reeds bestaande bestand wilt vervangen.

Als PHP probeert met MySQL te communiceren, gebruikt het een socket-bestand om contact met MySQL te maken. PHP verwacht dit bestand te vinden in /tmp/mysql.sock terwijl MySQL het bestand in /var/mysql/mysql.sock creëert. Dit is al jaren zo en ik begrijp niet waarom dit niet door de betreffende partijen wordt opgelost.

De “tijdelijke” oplossing is PHP of MySQL te vertellen dat het socket-bestand elders moet worden gecreëerd c.q. gevonden. De makkelijkste manier is de volgende.

1) open TextEdit en type de volgende vier regels:

[mysqld]
socket=/var/mysql/mysql.sock
[client]
socket=/var/mysql/mysql.sock

2) bewaar dit tekstbestand onder: /etc/my.cnf

Het kan zijn dat je dit bestand niet zomaar kunt opslaan in /etc. In dat geval kun je het bestand eerst op de desktop opslaan. Vervolgens type je command-shift-G. Er verschijnt een dialoogvenstertje, waarin je /etc typt. Als je op Go (of Ga) klikt, zie je een Finder-venster met de inhoud van de map /etc verschijnen. Nu kun je het bestand my.cnf naar deze map kopiëren. Eventueel moet je nog een beheerdersnaam en -wachtwoord invullen.

Nu dien je web sharing in de Systeemvoorkeuren uit te schakelen en weer in te schakelen. Ok MySQL kun je middels het geïnstalleerde voorkeurenpaneel uit- en weer inschakelen.

PHP zou nu van MySQL gebruik moeten kunnen maken.

Free Christmas Gift from Apple

Apple has a little tradition of offering iOS customers free music and apps around Christmas. To get the goodies, you’ll need the “12 Days of Christmas” app, which was just released in the App Store today. An additional download comes available every day and every download is available for 24 hours.

The 12 Days of Christmas app sends push notifications. From : “To receive daily notifications, please activate Push Notifications when prompted (or enable them in Settings > Notifications). Some free content cannot be downloaded over the cellular network. If that is the case, please connect using WiFi and try again. If you are still experiencing issues with the iTunes 12 Days app please send an email with as much relevant detail to: 12days@group.apple.com“.

Get it here.

Color Converter User Manual

Convert Colour Spaces

Convert

Converting a colour value from one colour space to another is fairly easy. A colour value usuallylooks like a series of numbers separated by a comma. Arbitrary examples are: 123,234,21 (for RGB)or 34,23,1,67 (for CMYK) or 120,12,18 (for HSL). Colour values can also be hexadecimal, e.g. #12E19Fand may also be given a name (“MediumSpringGreen”).

To convert a colour value, you need to know the colour space. Choose the correct colour space fromthe option menu on the Convert tab and enter the value in the field next to the option menu. Pressthe enter key or the return key and all values appear in the list.

If you don’t know the name or value of the colour, then you can choose a colour from the Color Picker.The Color Picker can be accessed by clicking the little button at the bottom of the window. Thisbutton is labelled “Color Picker”.

When you click on the Color Picker button, the color chooser of your operating system appears onthe screen. Choose any colour you like and close the color chooser.

After the Color Picker closes, the Convert tab shows the values for the selected colour in all colourspaces.

To use one of the colour values in your website or software, you need to copy the colour value andpaste it in its destination. You can copy every colour value by selecting it with the mouse andchoosing Copy from the Edit menu or by pressing Control-C (Command-C on the Mac).

Colour Names

At the top of the Color Names tab, there is a filter field. Color Converter will search for all colours that contain the string in the filter field. For example, if you type “light”, Color Converter displays all colours containing “light”, from LightBlue until LightYellow4. If you enter “blue”, it will find AliceBlue, but also Blue, BlueViolet, PowderBlue and DeepSkyBlue4.

Clicking on a colour name sets the colour of the Color Picker to that colour. This means that the Convert tab will also display the value of that colour in all colour spaces. From there, you can copy the colour name.

Naturally, you can also copy the colour name from the Convert tab and paste it into the filter field on the Color Names tab.

The Color Names list follows a standard, which adheres to an old Unix tradition. These color names are used by the X11 window system and have been adopted by many Linux flavours and their window systems. You can find more about it on Wikipedia.

Create and Use the Histogram

To create a histogram, drag a picture file into the Histogram tab of Color Converter. The histogramwill be created automatically.

You can also click on the Select button and select any area of your main screen.

Histogram

The histogram is created by examining a sample of the pixels of a picture. The RGB values are projectedin the cube below. Since RGB values contain three values, one for red, one for green and one forblue, the pixels can be ordered along the axes of the cube. The result is a cloud of points insidethe cube.

The cube is divided into 8 areas. Each area is tangent with one of the following colours: black,red, green, blue, cyan, magenta, yellow, and white. Now we count the number of points in each area.The resulting numbers are depicted in the histogram.

Cube

From the histogram, you can read which colours dominate your picture. Sometimes, a picture may seemmostly yellow but actually appears to be more green. This can have many causes, such as the colourprofile being used, your screen settings, or a form of visual deception. Colour blindness may havean effect too –not all forms of colour blindness are always recognised as such!

When you know which colours dominate your picture, you can decide which pictures may match the pictureto create a collection that’s pleasing to the eye, or you can decide on the colours for your webdesign.

Resizing Pictures

To resize a picture, drag your picture file into the Resize tab of Color Converter. Be careful toavoid the text fields. The file will be created automatically, next to the original file, with “resized”in the name. You can also drop multiple picture files or even an entire folder onto the Resize tab.

Resize

You can also use the Resize… button to select on or more files or a folder. To determine whetherthe Resize… button lets you select a file or a folder, you need to choose the correct option inthe option menu button labelled Input. Optionally, you can choose a particular format from the Outputoption menu button.

The height and width values are the dimensions of the rectangle within which you want to fit yourpicture. If you have a picture of 1000 pixels wide and 700 pixels high and you want to fit it ina rectangle of 500×500, then your new picture will be 500 pixels wide and 350 pixels high. ColorConverter makes sure that the relative dimensions (also called aspect ratio) of your picture stayunchanged.

Colour Channel Separation

To separate the colour channels of a picture or to convert the picture to grayscale, drag your picturefile into the Filter tab of Color Converter. Press the Convert button to start the conversion. Thiswill take a few seconds and progress is displayed in the progress bar at the bottom of the window.

Filter

If you choose a colour from the Filter menu button, Color Converter will take the RGB values ofthe picture, copy the relevant value (either red, green or blue) and set the other values to 0.If you choose the gray filter, Color Converter will calculate the average brightness from the threecolour values and set all three RGB values to the same average value.

To speed up conversion if you want to convert many files at once, you can turn of the Preview option.Without this option, the previews will not load, which saves some time. If you are going to dropmany pictures onto the Color Converter window one by one, then you probably will want to turn onAutomatically, which saves you the trouble of clicking on the Convert button.

Magnifying Glass

Magnifier_tool

The magnifying glass is simple to use. As soon as you open the Magnifier tab, Color Converter willshow a magnified version of the area around the mouse cursor. The cross-hair marker is always exactlywhere the mouse cursor is (except when you are near the edges of your screen).

This feature is useful for those programmes that allow for pixel-level editing. You may find yourselfswitching between normal and magnified views all the time. If this is the case, then Color Converterprovides you with a persistent magnifiying glass, while you can continue to use your photo editingsoftware in normal view.

Use the slider below the magnifying glass to increase or decrease the magnifying level. If the slideris moved to the extreme left, then the magnifying glass shows a one-to-one image. If the slideris moved to the extreme right, the picture is magnified 8 times (i.e. 8 times as large as the original).

The magnifying glass uses quite a lot of processing power. Therfore you might want to show a differenttab while you’re not using the magnifying glass.

You can download Color Converter here.

ExtFreeDiscSpace External for LiveCode 5 iOS

ExtFreeDiskSpace is a LiveCode external for iOS, which contains two functions to read the total and freedisk space and returns these values as integers measured in kilobytes.

Example

This script calls the external. It returns the number of available gigabytes in new style (1000kilobytes in a megabyte):

function freeDiskSpace00

  put 1000^2 into mySq1000

  set the numberFormat to “#.00”

  put extFreeDiskSpace()/mySq1000 into myGBs

  return myGBs && “GB”

end freeDiskSpace00

More information is included in the Read Me file.

Note: the current version works with Arm7 processors only.

You can download the external from Economy-x-Talk’s website.

Installer Maker 1.7b04

Currently we are at the 4th beta version of Installer Maker Plugin 1.7. With Installer Maker you can create installers for your standalone applications directly in LiveCode. Version 1.7 now counts 16 new features and bug fixes, each requested by one or more customers.

If you want to find out more about Installer Maker, please check out the website at http://rrinstallermaker.economy-x-talk.com where you can also download the latest beta version as well as the current official release.

Screenshot_vista

Apparently, there was some confusion about the current special offer, prices and discounts. Let me take the opportunity to explain something.

• Everyone who has bought or buys a license after 1 October 2011 will receive a license for Installer Maker 1.7, regardless of the final release date.
• If you already bought a license in the past three months but before 1 October 2011, you can use the beta versions but may be unable to use the final version of 1.7, depending on the final release date. You might want to renew your license now or when Installer Maker 1.7 is ready for release. When you renew your license, you will receive a big discount (€16.95 instead of €39). You need to enter your old license key on the website to apply for the discount.

• If you bought a license less than a year ago, you can buy a new license with a big discount (€16.95 instead of €39). You need to enter your old license key on the website to apply for the discount.

•If you don’t have a license yet or if you bought Installer Maker longer than a year ago, then the price is €39.

Hopefully this clears it all up.

I would like to urge all current license holders and everyone who submitted a feature request to download and test the beta version. If I don’t hear back from you, I assume that your requested feature was implemented correctly.

Only Today Color Converter Costs $9 Instead of $11

Edit: We extended this offer by 24 hours! You can still get $2 discount until Monday evening 21 November 2011!

We have a nice offer for everyone who has been thinking to buy Color Converter some time but hasn’t done so yet (and for everyone else too).

Just today, 20 November 2011, we are offering our newly released Color Converter 4.0 at the discounted price of $9. That’s 2 dollars less than the normal price.

Go to http://qery.us/16s and enter the coupon code JUST2DAY. The 2 dollar discount will be applied to the price right-away. Easy. Simple.

Cc_anim

What else is there to say about this offer? Just go to http://www.color-converter.com and check out our products there. Color Converter 4.0 is available for Mac OS X, Windows and Linux.

Oh… and make sure to share this with your friends! They might blame you if they find out you didn’t tell them about it!