Re: [Jprogramming] Making Crayons

2014-03-25 Thread bill lam
Sorry, I still cannot see the problem is or is it related to J. Thanks. On Wed, Mar 26, 2014 at 3:39 AM, Linda Alvord wrote: > Photoshop inserts bmp images without the border and name. The border that > shows the image with its name is used extensively when writing text to show > examples of w

Re: [Jprogramming] datetime utc mod

2014-03-25 Thread Pascal Jasmin
as long as the program doesn't run across "Daylight savings" change days, or restarts on DST change, it should be ok.  I guess that is still problematic.   Getting a string time, and converting that to J date list, would seem expensive and so differently  problematic. __

Re: [Jprogramming] datetime utc mod

2014-03-25 Thread bill lam
conversion using utc bias is problematic because it changes every year by different governments. it can not work for a future date and will need a database to store previous years' timezone and daylight records. 26.03.2014, в 9:02, Pascal Jasmin написал(а): > oops I forgot to include the windo

Re: [Jprogramming] datetime utc mod

2014-03-25 Thread Pascal Jasmin
oops I forgot to include the windows dll call. this approach calculates the offset to utc once on load, and the uses the offset as an adjustment to 6!:0.  libc would be useful too, but would not be xplatform, and would lose J's time format, and access to other datetime functions. getTimeZoneI

Re: [Jprogramming] datetime utc mod

2014-03-25 Thread bill lam
there should be some api in libc or windows dll to get utc time directly IIRC. 26.03.2014, в 2:30, Pascal Jasmin написал(а): > Here are additions I've made to datetime.ijs (addons/type) > > utcnow_z_ '' returns utc time tested on mac and windows. > > a question about 6!:0 ... when DST changes,

Re: [Jprogramming] Making Crayons

2014-03-25 Thread Raul Miller
In some contexts, just giving the image is a desirable feature and not at all a problem. Is there some reason you can't use the "capture the window" approach when you want the window and not just the image it contains? Thanks, -- Raul On Tue, Mar 25, 2014 at 3:39 PM, Linda Alvord wrote: > Ph

Re: [Jprogramming] Making Crayons

2014-03-25 Thread Linda Alvord
Photoshop inserts bmp images without the border and name. The border that shows the image with its name is used extensively when writing text to show examples of what you are explaining. Linda -Original Message- From: programming-boun...@forums.jsoftware.com [mailto:programming-boun..

[Jprogramming] datetime utc mod

2014-03-25 Thread Pascal Jasmin
Here are additions I've made to datetime.ijs (addons/type) utcnow_z_ '' returns utc time tested on mac and windows. a question about 6!:0 ... when DST changes, will it report the changes without reloading J? Some OS change the time automatically, while others ask to change clock, or do they all

Re: [Jprogramming] Making Crayons

2014-03-25 Thread Linda Alvord
Paint or Outlook have the same behavior. 1. Go to paint and open or Outlook and insert a picture. Select j801 > addons > graphics > bmp > toucan.bmp (image has no border. 2 Run through the viewmat lab until the image of the toucan appears. Capture the window with the toucan in it with your c

Re: [Jprogramming] Making Crayons

2014-03-25 Thread bill lam
Sorry I don't understand your problem and I don't use word. Can you elaborate what was wrong with bmp from viewmat? Вт, 25 мар 2014, Linda Alvord писал(а): > "Box of Colors" in temp is different from a usual bmp. Find "toucan.bmp" in > J . Use word and insert the file from j801. > > Now run t

Re: [Jprogramming] Making Crayons

2014-03-25 Thread Linda Alvord
"Box of Colors" in temp is different from a usual bmp. Find "toucan.bmp" in J . Use word and insert the file from j801. Now run the viewmat lab until the toucan shows up. Copy and paste it into the word document and they are different. Linda -Original Message- From: programming-boun.

Re: [Jprogramming] Making Crayons

2014-03-25 Thread Linda Alvord
Thanks Bill, Please not his post and update! Linda -Original Message- From: programming-boun...@forums.jsoftware.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Linda Alvord Sent: Tuesday, March 25, 2014 11:35 AM To: programm...@jsoftware.com Subject: Re: [Jprogramming

Re: [Jprogramming] Making Crayons

2014-03-25 Thread Linda Alvord
Oops. The earlier version slipped away from me. Here are the 4 correct lines. require 'viewmat' ]P8=: 255* #:i.8 P8 viewmat (i.8);'Box of Crayons' P8 viewmat (i.5000);'Blend Colors' Open a new temp in jqt. Copy and paste 4 J lines below into the file. Use Run on each of the first three lin

Re: [Jprogramming] Making Crayons

2014-03-25 Thread bill lam
the latest veiwmat version 1.0.46 should already save with file name same as the title, in your example the names should be 'B b g.bmp' 'Colors 8 Blend.bmp' no "Paint" is needed. This should work in all desktop platforms with ctrl means cmd in Mac. Вт, 25 мар 2014, Linda

[Jprogramming] Making Crayons

2014-03-25 Thread Linda Alvord
Some short cuts I have learned: Open a new temp in jqt. Copy and paste 4 J lines below into the file. Use Run on each of the first three lines. You should have an image called 'Colors 8' Now place cursor on the image and press Ctrl and S . The image is now in your temp folder with th

Re: [Jprogramming] jhs webgl array_buffer

2014-03-25 Thread Brian Schott
Devon, You may be right, but I am unfamiliar with the sync/async terminology and practice, so I cannot comment intelligently. There is definitely the need to use a bundle-send-unbundle process. I just exhibited a blind spot, and the view was quite dark for a while, metaphorically. Ok? On Mon,