Author Topic: Java  (Read 9607 times)

Offline Harry page

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1458
    • http://www.harrysastroshed.com
Java
« on: 2010 May 08 03:25:06 »
Hi

I have no script skills / knowledge what so ever  ???, but there are things I would like to do and could anybody point me in the direction of where I
could learn  :D

Don't forget it has to be for dumbo's  :'(

Harry
« Last Edit: 2010 May 08 03:43:54 by Harry page »
Harry Page

Offline budguinn

  • PixInsight Addict
  • ***
  • Posts: 106
Re: Java
« Reply #1 on: 2010 May 08 07:01:57 »
this is a good idea.......so, I'll piggyback on your request.....incognito, of course. 
I am a "dumbo" also, but this way I won't have to admit it.......and no one would have ever guessed by my questions and confusion.

best regards,

Earl

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: Java
« Reply #2 on: 2010 May 08 08:19:47 »
The first thing you need to do is define a goal. No one will write a comprehensive tutorial about everything :)

When I wrote my first javascript for PI I simply took one of the examples and modified it for my evil purposes.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline mmirot

  • PixInsight Padawan
  • ****
  • Posts: 881
Re: Java
« Reply #3 on: 2010 May 08 08:50:28 »
Where do you get started ?

Max

Offline Harry page

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1458
    • http://www.harrysastroshed.com
Re: Java
« Reply #4 on: 2010 May 08 08:54:11 »
Hi

I have been looking at other people code , but if you have no idea of the syntax or grammar its a bit like Chinese to me


Harry
Harry Page

Offline budguinn

  • PixInsight Addict
  • ***
  • Posts: 106
Re: Java
« Reply #5 on: 2010 May 08 09:19:13 »
Harry,

If you google "java tutorial" you will get pages and pages of sites that give tutorials....snippets of code...and tons of how to's.

bud

Offline NKV

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 677
Re: Java
« Reply #6 on: 2010 May 08 09:44:48 »
Hi Harry,
1) you have to understand logic of simplest operator: for(;;){}, while(){}, do{}while() and of course if(){}else{}, ect.
2) Just try to write something to output log via console.writeln("result: ", x, y).
3) Edit one of script and see what's happen. For example try to DrowSignature.js ( try change x,y position of signature at your image or something else ).

I hope it's help.

Offline Harry page

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1458
    • http://www.harrysastroshed.com
Re: Java
« Reply #7 on: 2010 May 08 09:55:41 »
Hi

Will look at that , Its only japanese now  ;D

Harry
Harry Page

Offline NKV

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 677
Re: Java
« Reply #8 on: 2010 May 08 10:18:10 »
Will look at that , Its only japanese now  ;D
OK. Step by step.
if(){}else{} - what is it?
Translated from japanese it is:
if ( black is black) do { that } else do { that }

Offline Harry page

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1458
    • http://www.harrysastroshed.com
Re: Java
« Reply #9 on: 2010 May 08 10:21:12 »
Ok

Starting to get the idea --Pity its not zx spectrum basic I might remember how to do that ( god I am old )  :D



Harry
Harry Page

Offline NKV

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 677
Re: Java
« Reply #10 on: 2010 May 08 10:53:00 »
Starting to get the idea --Pity its not zx spectrum basic I might remember how to do that ( god I am old )  :D
Z80 - it's my love.
My first ZXSpectrum was soldered by me personally. Unfortunately 70% of the chips were originally dead. But I have had experience with the oscilloscope. The keyboard has been collected from 2 calculators and had no inscriptions. This did not prevent me to learn ZXSpectrum BASIC, assembler and then in the end I knew by heart all the machine code Z80, including the undocumented. I knew absolutely everything that happened in the Z80. What were the days are cool! Now I understand what is happening within 0.0% of those wise boxes. So I picked up PxiInsight JS. It's fun.

Offline Harry page

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1458
    • http://www.harrysastroshed.com
Re: Java
« Reply #11 on: 2010 May 08 11:00:58 »


I still have my ZX 81 with 1k of memory and my 48k spectrum and all the software ,modems ,tape  drives :-\

Keep it for another 100 years and it will be worth something :moneyinmouth:

but back to ps JS and get a bit upto date


Harry
Harry Page

Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
Re: Java
« Reply #12 on: 2010 May 08 11:42:08 »
...
If you google "java tutorial" you will get pages and pages of sites that give tutorials....snippets of code...and tons of how to's.
.

Note that JavaScript and Java are quite different things. Stick to the JavaScript tutorials....
Georg (6 inch Newton, unmodified Canon EOS40D+80D, unguided EQ5 mount)

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: Java
« Reply #13 on: 2010 May 08 14:22:55 »
I'll repeat my earlier advise: figure out what you want to achieve first, preferably something reasonable :)

Generally if you're not a programmer I think PI is not the place to start. Nothing is impossible with enough effort so don't let me stop you but let's be realistic here. PSJR and PCL aren't really easy stepping stones.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Harry page

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1458
    • http://www.harrysastroshed.com
Re: Java
« Reply #14 on: 2010 May 08 14:31:11 »
Hi Sander

See I believed other people who said I must be a genius as I can work in pixinsight 8) and of course this has turned out not to be true  :'(

Oh well , I will grinding away at it till the old brain accepts what I am trying to jam in it  O0


Harry
Harry Page