Re: Get URL anomaly

2018-03-05 Thread Charles Warwick via use-livecode
Hi Graham, > On 5 Mar 2018, at 10:56 pm, Graham Samuel via use-livecode > wrote: > > As in some of my previous mails, I’m talking about having to retrieve a tiny > text file from a server (and later put a modified version of it back, but > let’s get one

Re: [Completely OT] Withdrawal symptoms from Slashdot

2018-03-05 Thread Phil Davis via use-livecode
Or this: https://alternativeto.net/software/slashdot/ Phil Davis On 3/3/18 6:37 PM, Rick Harrison via use-livecode wrote: Hi Alex, Try.. https://news360.com You can choose a technical focus too. Enjoy! Rick On Mar 3, 2018, at 7:09 PM, Alex Tweedly via

Re: Rotating PNG images

2018-03-05 Thread Jim Lambert via use-livecode
With the added WAIT this is a bit more fun to look at. And it checks for angles > 32767. You get an error if you set the angle of an image to greater than 32767. local ang on spin repeat forever add 13 to ang if ang > 32767 then beep put 0 into ang end if

Trace_to_SVG

2018-03-05 Thread hh via use-livecode
Just uploaded "Trace_to_SVG" (MIT license from Potrace). The stack uses Potrace (by P. Seliger, the "lite" JavaScript version) in a browser widget with your input. It runs using LC 8/9 on Mac/ Win 7+10/ Ubuntu. I changed the JavaScript a little bit to use better the power of the "LC-GUI". You

Re: Rotating PNG images

2018-03-05 Thread hh via use-livecode
> Richmond M. wrote: > There's no "instead", I set the angle on PNG images and they deteriorate. Did you already try hhMockUp (from "sample stacks")? I just tried with the LCC 1024x1024 logo. Simply use the images menu there to import and then select it from that menu. Works fine: skewing,

Re: Reverse 'pixelcoloring' and total amount of colors

2018-03-05 Thread Mike Bonner via use-livecode
Hmm. In this case, you know the condition of failure, so if everything else is working as you need, i'd just check for that condition and act accordingly.. if char 1 of the last item of tInstructions is "W" and the number of items of tInstructions > 1 then.. Do you want tInstructions to be empty

Re: LC server and fonts

2018-03-05 Thread Mike Bonner via use-livecode
Hmm. Not sure what to do about loading a fontfile then. Out of curiosity, what is the error? On Mon, Mar 5, 2018 at 11:39 AM, jbv via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi Mike, > Thanks for your reply. > > Yes, I managed to set the textfont of a btn or fld to one of the

Re: Rotating PNG images

2018-03-05 Thread Richmond Mathewson via use-livecode
No. All fairly pedestrian stuff. On 5/3/2018 9:43 pm, Keith Martin via use-livecode wrote: On 5 Mar 2018, at 18:34, Richmond Mathewson via use-livecode wrote: I set the angle on PNG images and they deteriorate. For clarity, are you setting the angle to something other than 90/180/270

Re: Rotating PNG images

2018-03-05 Thread Jim Lambert via use-livecode
Richmond wrote: > LiveCode is incapable of rotating anything other than SVG images > without a bad case of the "jaggies". RichardG wrote: > have you tried setting the angle property instead? Richmond wrote: > I set the angle on PNG images and they deteriorate. I find that rotate

Re: Rotating PNG images

2018-03-05 Thread Keith Martin via use-livecode
On 5 Mar 2018, at 18:34, Richmond Mathewson via use-livecode wrote: I set the angle on PNG images and they deteriorate. For clarity, are you setting the angle to something other than 90/180/270 degrees? k ___ use-livecode mailing list

Re: Reverse 'pixelcoloring' and total amount of colors

2018-03-05 Thread William de Smet via use-livecode
Thanks Mike that helped a lot! I extended your script with this: repeat with x= 1 to the number of items of tInstructions put char 2 of item x of tInstructions into tChar put "v" into tNaam set the label of btn tNaam to tChar set the showname of btn tNaam to true put char 1 of item x of

Re: LC server and fonts

2018-03-05 Thread jbv via use-livecode
Hi Mike, Thanks for your reply. Yes, I managed to set the textfont of a btn or fld to one of the fonts available in the fontnames, but I still can't figure how to use any other ttf font... load font file "nameofyourfont.ttf" -> returns an error I tried load URL "nameofyourfont.ttf", it works, but

Re: Rotating PNG images

2018-03-05 Thread Richmond Mathewson via use-livecode
On 5/3/2018 6:33 pm, Richard Gaskin via use-livecode wrote: When testing here on Ubuntu 14.04 images rotated at 90, 180, or 270 look very good. How can I reproduce what you're seeing? Also, have you tried setting the angle property instead? There's no "instead", I set the angle on PNG

Re: Rotating PNG images

2018-03-05 Thread Richmond Mathewson via use-livecode
Erm . . . Yes: I trace the monochrome images in Inkscape and then import them into SVG widgets using my homegrown stack. On 5/3/2018 6:30 pm, hh via use-livecode wrote: Richmond M. wrote: Not much. Luckily I am building images where the part that needs rotating is monochrome so that can be

Re: Rotating PNG images

2018-03-05 Thread Richard Gaskin via use-livecode
When testing here on Ubuntu 14.04 images rotated at 90, 180, or 270 look very good. How can I reproduce what you're seeing? Also, have you tried setting the angle property instead? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web

Re: [Completely OT] Withdrawal symptoms from Slashdot

2018-03-05 Thread Mark Wieder via use-livecode
On 03/03/2018 08:16 PM, Rodney Somerstein via use-livecode wrote: Slashdot is definitely still there. Make sure you are going to https://slashdot.org . I suppose they may have been having a problem the last time you tried the site, but it is definitely up and running right now. Slashdot was

Re: Reverse 'pixelcoloring' and total amount of colors

2018-03-05 Thread Mike Bonner via use-livecode
Ah, I understand better now. Something like this should work. Its just a quicky, no time to really test before my doc appointment. on mouseup local tInstructions -- gotta have this cause a non declared isn't seen as empty repeat with i = 1 to 4 switch case the backgroundcolor

Re: Rotating PNG images

2018-03-05 Thread hh via use-livecode
> Richmond M. wrote: > Not much. > Luckily I am building images where the part that needs > rotating is monochrome so that can > be rendered as an SVG and imported into a widget. > This is, however, quite beside the point . . . > The inability of LiveCode to do something that nearly > every other

Re: LC server and fonts

2018-03-05 Thread Warren Samples via use-livecode
On 03/05/2018 08:59 AM, Mike Bonner via use-livecode wrote: If you create a directory called '.fonts' under your user name and install the fonts you want to use in your images in that directory, LiveCode will find them. A quick test shows this to be true using LC Server 8.1.4, but you may have

Re: Rotating PNG images

2018-03-05 Thread Richmond Mathewson via use-livecode
Not much. Luckily I am building images where the part that needs rotating is monochrome so that can be rendeered as an SVG and imported into a widget. This is, however, quite beside the point . . . The inability of LiveCode to do something that nearly every other program seems to manage

Re: Reverse 'pixelcoloring' and total amount of colors

2018-03-05 Thread William de Smet via use-livecode
Hi Mike, Thanks for your answer! The exercises are actually binary exercises but the children don't know. All they know is a 'puzzle' to solve with pixelcoloring. Funny I can solve it this way :-) Still figuring how to do it because the children instruction is not just binary writing as you

Re: Rotating PNG images

2018-03-05 Thread Mike Bonner via use-livecode
if you set the resizequality of your images to "best" prior to rotating, does it help? It should make quite a difference. On Sun, Mar 4, 2018 at 3:48 AM, Richmond Mathewson via use-livecode < use-livecode@lists.runrev.com> wrote: > I have just spent/wasted 60 minutes rotating 64 PNG images in

Re: Reverse 'pixelcoloring' and total amount of colors

2018-03-05 Thread Mike Bonner via use-livecode
If you want to know which "pixel" is on in a row, you could treat them as binary bits. Farthest right in a row is bit 1, next to the left is bit 2.. So your buttons could be 0 0 1 0 1 0 1 64 32 16 8 4 2 1 for a total of 21 which would

Re: LC server and fonts

2018-03-05 Thread Mike Bonner via use-livecode
With on-rev, I put up this script.. " & cr end repeat ?> And it works fine, with the exception of fonts with a - in the name. All of them are Hershey fonts, so not sure if its the font family that is broken, or the dashes causing the issue. If you have a ttf font file to use, you can probably

[ANN] This Week in LiveCode 119

2018-03-05 Thread panagiotis merakos via use-livecode
Hi all, Read about new developments in LiveCode open source and the open source community in today's edition of the "This Week in LiveCode" newsletter! Read issue #119 here: https://goo.gl/nHi73d This is a weekly newsletter about LiveCode, focussing on what's been going on in and around

Overwriting a file on a server

2018-03-05 Thread Graham Samuel via use-livecode
Another dumb question, I’m afraid. The dictionary says I can do put tdata into URL [some url] well, I want to put a file on my server (in this example, it’s a text file) to replace one of the same name. If I just try to steamroller it by ignoring the existing file, I get a ‘405’ error

Get URL anomaly

2018-03-05 Thread Graham Samuel via use-livecode
Thanks to Charles Warwick I now understand that when using LC Indy versions, tsNet is automatically included both in standalones and the IDE. So, there should be no real difference between doing some simple ‘getting’ in either environment. Perhaps there isn’t, but I have run into an anomaly

Re: tsNet or not tsNet?

2018-03-05 Thread Graham Samuel via use-livecode
Thanks, very clear explanation! I’m using Indy (i.e Commercial) versions, so now I understand. Graham > On 5 Mar 2018, at 12:27, Charles Warwick via use-livecode > wrote: > > Hi Graham, > > In commercial versions of LiveCode, the default behaviour of the

Re: Reverse 'pixelcoloring' and total amount of colors

2018-03-05 Thread William de Smet via use-livecode
Thanks for your reply! Your app is the same as what I did before and that's quit easy to do. For now I want to build instruction cards based upon a pixel drawing. First you makel your drawing and then it gives you your instruction card. The other way around. My question is how to do that?

Re: Reverse 'pixelcoloring' and total amount of colors

2018-03-05 Thread Jose Enrique Montero via use-livecode
I made a similar application, you can look, https://play.google.com/store/apps/details?id=com.kaikuse.babygrid=es best regards 2018-03-05 3:55 GMT-04:00 William de Smet via use-livecode < use-livecode@lists.runrev.com>: > Hi there, > > This is quite a challenge for me. > I an trying to build a

Rotating PNG images

2018-03-05 Thread Richmond Mathewson via use-livecode
I have just spent/wasted 60 minutes rotating 64 PNG images in GIMP because LiveCode is incapable of rotating anything other than SVG images without a bad case of the "jaggies". Now I will have to import those 64 images into a stack and store them somewhere unseen to present inwith graphic

Re: [Completely OT] Withdrawal symptoms from Slashdot

2018-03-05 Thread Dan Brown via use-livecode
Hacker News always has some interesting reading. The comments section for each submission can be insightful as a broad range of programmers/ engineers that work in the relevant fields share thoughts and knowledge on the topics at hand https://news.ycombinator.com/ "*Hacker News* is a social news

Re: tsNet or not tsNet?

2018-03-05 Thread Charles Warwick via use-livecode
Hi Graham, In commercial versions of LiveCode, the default behaviour of the Internet library (libUrl) is to include and use tsNet. It calls tsNetInit on startup so that you don’t need to do that separately. Hope that helps, Charles > On 5 Mar 2018, at 7:21 pm, Graham Samuel via use-livecode

Hyphenator

2018-03-05 Thread hh via use-livecode
Just uploaded a LiveCode Hyphenator. The stack uses Hyphenator.js (by M. Nater, MIT licensed) in a browser widget with your input. It runs using LC 8/9 on Mac/ Win 7+10/ Ubuntu. You get as plain text 1. The hyphenated text (using the selected language patterns) displayed in a browser widget, the

Re: [Completely OT] Withdrawal symptoms from Slashdot

2018-03-05 Thread Mark Wieder via use-livecode
On 03/03/2018 04:09 PM, Alex Tweedly via use-livecode wrote: Completely off topic, but I need help ;-) For many years now my standard "I have 30 seconds (or minutes) to fill in, what's happening in the world" web site has been slashdot, but it seems to be completely off the air for now. I'm

Reverse 'pixelcoloring' and total amount of colors

2018-03-05 Thread William de Smet via use-livecode
Hi there, This is quite a challenge for me. I an trying to build a template in which users (small children) can 'pixeldraw' something and based on the drawing the instruction will be made. The instruction is needed for other children to make the pixel drawing. The instruction is quite special.

Re: LC server and fonts

2018-03-05 Thread Warren Samples via use-livecode
On 03/02/2018 04:14 AM, jbv via use-livecode wrote: Hello list How can I load ttf font files with LC server, at least version 7.1 available on my on-rev account ? Neither "revFontLoad" nor "start using font file" seem to work... And the list of available fonts returned by "the fontNames" is

tsNet or not tsNet?

2018-03-05 Thread Graham Samuel via use-livecode
I’ve been executing this line of script in an app made on a Mac with LC 9.0.0 dp11 get URL “http://www.myserver.com/mytextfile .txt It works fine, but I also wanted to detect what happens when the connection can't be established, so I made the command fail

tsNet or not tsNet?

2018-03-05 Thread Graham Samuel via use-livecode
This message may be a repeat. If you see two copies on the list, I apologise. === I’ve been executing this line of script in an app made on a Mac with LC 9.0.0 dp11 get URL “http://www.myserver.com/mytextfile .txt It works fine, but I also wanted to detect

this is a test

2018-03-05 Thread Graham Samuel via use-livecode
Just a test, please ignore… (in case you were wondering, my mail client has just seen the first mail to this list since 3rd March, but I know that some are missing.) ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to

Re: [Completely OT] Withdrawal symptoms from Slashdot

2018-03-05 Thread Rodney Somerstein via use-livecode
Slashdot is definitely still there. Make sure you are going to https://slashdot.org . I suppose they may have been having a problem the last time you tried the site, but it is definitely up and running right now. Alex Tweedly via use-livecode March 3,