philfrei
|
 |
«
Reply #5670 - Posted
2017-09-14 19:10:54 » |
|
So easy for projects to get derailed, for me. My last post was about the Theremin. It's so far out of mind that I can't recall why it got back-burnered again. Ah--probably the "macro recording" feature proved too tricky to just kick out and I put it aside for that reason. I really need to get better at follow-through!! Mostly am focused on JavaScript/VR for startup: downloaded 95 sets of 6 jpgs that form boxes that can be used as 360-degree photos, of a US WWII Navy battleship interior and deck. These could be really cool for a game, but permissions issues. Also, the photographers didn't have navigation through the space in mind. So maybe only a third have clear connections to each other. Lots of knowledge holes to fill: finished w3schools section on HTML and am progressing through CSS. Also working through book on JavaScript after finishing the basic w3schools section. Had to take a break to work on a bit of music! (I was a music major, after all.) I think the recent remix on this tune (was posted a couple years ago?) has helped a lot. Had avoided using limiters before this for no good reason, but it turns out Audacity's limiter was great at squashing the 'gong' and allowing the overall volume to be boosted to something reasonable. Needs a title. It is a quiet piece, possibly works as background music for coding. Maybe it is strong enough to put up for sale for $1? Have been kind of scared to take that step.
|
|
|
|
Icecore
|
 |
«
Reply #5671 - Posted
2017-09-14 22:30:24 » |
|
Ah--probably the "macro recording" feature proved too tricky to just kick out and I put it aside for that reason.
Capturing Events and reproduce them can be tricky here some raw example 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| long Start_Time; Start_Recording(){ Start_Time = cur_Time_Ms }
ArrayList Events java_Mouse_event(){ long time_Trig = cur_Time_Ms - Start_Time Events.add(event, time_Trig) java_Mouse_event_Proc(ev) }
java_Mouse_event_Proc()
Thread_Load_Events{ Events_Load int proc_List_Pos = 0; int size = Events_Load.size; while(proc_List_Pos < size){ long cur_Time_Ms_Macro = cur_Time_Ms - Start_Time_Macro int i = proc_List_Pos for(; i < size; i++){ if(ev.time_Trig <= cur_Time_Ms_Macro){ java_Mouse_event_Proc(ev); }else{ break; } } proc_List_Pos = i; Sleap(15) } } |
all be fine and smooth if application don't have Lags =) if you have after some event let say 100ms lag -additional event align needed - to compensate multithreading desync ^^ (or don't care if events don't need perfect time accuracy)
|
Last known State: Reassembled in Cyberspace End Transmission.... .. . Journey began Now)
|
|
|
Slyth2727
|
 |
«
Reply #5672 - Posted
2017-09-15 05:40:22 » |
|
So I got a little side tracked from the original project and wrote some code to move the mouse with my hand. In the first portion of the video I demonstrate that and in the second bit I show how the model can discriminate between three different hand postures. That parts a WIP but it's getting there. It can only get accurate when my hand is in the center of the image. Hope you like my 20+ hour sleep deprived face in the background. Mouse movement uses a very simple algorithm of getting the average position of all those white pixels. Which is why I have to have my sleeve up. But it works decently. edit: trained it a bit better, now it's much better at detecting posture no matter the position and angle. Now I can click by putting a finger up! I also coded it to 'press' space so I could play that little chrome dinosaur game. Jumping when I put one finger up. http://www.youtube.com/v/JnQu0nlchKM?version=3&hl=en_US&start=
|
|
|
|
Games published by our own members! Check 'em out!
|
|
J0
|
 |
«
Reply #5673 - Posted
2017-09-15 17:21:33 » |
|
 Been designing this character, for a short-ish story I have in mind. I quite like the way that turned out, so I might make it into either a game or webcomic  Let me hear your thoughts on the design!
|
|
|
|
Icecore
|
 |
«
Reply #5674 - Posted
2017-09-18 11:32:06 » |
|
Look what i found) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| static public void main(String[] args){ B b = (B) new B().Call(); B b_E = new B().Call_E(); C c = new C().Call_E(); C c_Er = new A().Call_E(); } static public class A{ public A Call(){ return this; } public <E extends A> E Call_E(){ return (E) this; } } static public class B extends A{} static public class C extends B{} |
|
Last known State: Reassembled in Cyberspace End Transmission.... .. . Journey began Now)
|
|
|
princec
|
 |
«
Reply #5675 - Posted
2017-09-18 12:26:53 » |
|
What sort of sick puppy says "static public"!? <edit>Aha, the same sort of sick puppy that names method calls with capital letters! Cas 
|
|
|
|
Icecore
|
 |
«
Reply #5676 - Posted
2017-09-18 14:54:46 » |
|
What sort of sick puppy says "static public"!? Cas  static is more important for me then public / protected ^^ I also have 1 2 3
| Object ar[] Object ar[][] Object[] ar[] |
(when many ppl use ) =)
|
Last known State: Reassembled in Cyberspace End Transmission.... .. . Journey began Now)
|
|
|
princec
|
 |
«
Reply #5677 - Posted
2017-09-18 15:03:06 » |
|
You need therapy, at once! Cas 
|
|
|
|
Icecore
|
 |
«
Reply #5678 - Posted
2017-09-18 15:19:20 » |
|
You need therapy, at once!
Maybe) (or use Auto Formatter before post code somewhere XD) ED:I use lower Case only for function arguments, in function variable and RAW code 1 2 3 4 5
| int W; public Win(int w){ W = w; int x = 10; } |
I don't like this type of style: 1 2 3 4
| int w; public Win(int w){ this.w = w; } |
For static and final – I have different Font style(color) in IDE so I don’t care ) up: ps. this preference only for my own projects - if i write for 3rd party project I use their formatting style 
|
Last known State: Reassembled in Cyberspace End Transmission.... .. . Journey began Now)
|
|
|
Roquen
|
 |
«
Reply #5679 - Posted
2017-09-21 19:42:01 » |
|
I downloaded java 9. Go me.
|
|
|
|
Games published by our own members! Check 'em out!
|
|
princec
|
 |
«
Reply #5680 - Posted
2017-09-21 20:35:59 » |
|
Likewise. Intrigued by this release. Cas 
|
|
|
|
ra4king
|
 |
«
Reply #5681 - Posted
2017-09-22 09:09:46 » |
|
The JAR is dead! Long live modules!
|
|
|
|
princec
|
 |
«
Reply #5682 - Posted
2017-09-22 09:21:22 » |
|
Of all the things in Java 9, the modules thing is probably the least useful to the most people. Cas 
|
|
|
|
kappa
|
 |
«
Reply #5683 - Posted
2017-09-22 09:28:33 » |
|
Rather annoying that module files no longer open with zip software, jar's had this advantage in that you could easily open them and have a look inside (and even modify them) using any program that supports zip files.
|
|
|
|
princec
|
 |
«
Reply #5684 - Posted
2017-09-22 09:34:27 » |
|
A bit of a shame yes, but then again zip is a pretty poor format for speedy access... are modules any better in that regard? Cas 
|
|
|
|
CoDi^R
|
 |
«
Reply #5685 - Posted
2017-09-22 12:10:44 » |
|
It's still ZIP files. I can rename them to *.zip, then use the 'unzip' cli to unpack. It warns about "4 extra bytes at..." though, so they probably just customized (obfuscated) the header a little. Just enough to irritate the OS X Archive Utility... 
|
|
|
|
abcdef
|
 |
«
Reply #5686 - Posted
2017-09-23 05:31:24 » |
|
Of all the things in Java 9, the modules thing is probably the least useful to the most people. Cas  What do you think is the most useful? I can't see modules catching on any time soon because so much is invested in jars.its also interesting that oracle is handing a lot of java back to the community (openjdk is now the standard and j2ee moving to eclipse I think)
|
|
|
|
J0
|
 |
«
Reply #5687 - Posted
2017-09-23 10:54:02 » |
|
I'm so happyHighlight of my day: Herjan here on JGO sent me the nicest private message about my first webcomic! Well, actually it was sent like 20 days ago but only now did I see it. Anyway, if just to receive that kind of positiveness every once in a while, I want to keep drawing and keep telling stories through webcomics! Herjan: I privately replied but thank you so much again. If it's okay with you, could you share your initial message either here or directly in the comments section of my website? I love you 
|
|
|
|
princec
|
 |
«
Reply #5688 - Posted
2017-09-26 08:43:01 » |
|
What do you think is the most useful? Actually now you actually ask me... this does seem to be a bit of a lame duck of a release features-wise. The module system solved a problem we didn't exactly have as such though especially as OpenJDK can be chopped down as much as we like. A few of the new static Collections methods will cut out a bit of irritating boilerplate and it paves the way for actual lexical syntax to support them in a future release which would be nice (in the same way as, say, "" quotes and the + are specially handled to cope with the String class, we could get syntax for lists, sets and maps eh?) I wonder if the new renderer for JavaFX is any faster. API improvements creep onwards but it's still sort of in the early days yet. Cas 
|
|
|
|
J0
|
 |
«
Reply #5689 - Posted
2017-09-26 10:10:59 » |
|
in the same way as, say, "" quotes and the + are specially handled to cope with the String class, we could get syntax for lists, sets and maps eh?
I really think one of the things Java lacks most is operator overloading. Because it's so fancy.
|
|
|
|
CoDi^R
|
 |
«
Reply #5690 - Posted
2017-09-26 10:26:15 » |
|
I really think one of the things Java lacks most is operator overloading. Because it's so fancy.

|
|
|
|
princec
|
 |
«
Reply #5691 - Posted
2017-09-26 10:28:35 » |
|
Interestingly most of the things Java really lacks are present in Ceylon. Which is looking veeeeeeeery interesting. Cas 
|
|
|
|
h.pernpeintner
|
 |
«
Reply #5692 - Posted
2017-09-26 10:38:54 » |
|
Interestingly most of the things Java really lacks are present in Ceylon. Which is looking veeeeeeeery interesting. Cas  Yey, union and intersection types! Although I heard that this concept is one of those that worsen your codebase because modeling types is neglected piece for piece.
|
|
|
|
Oskuro
|
 |
«
Reply #5693 - Posted
2017-09-26 11:02:52 » |
|
@CoDi^R: You say it like the Dark Side is a bad thing 
|
|
|
|
CoDi^R
|
 |
«
Reply #5694 - Posted
2017-09-26 11:18:04 » |
|
@CoDi^R: You say it like the Dark Side is a bad thing  Not at all! But as every Sith lord knows: it's a fine line between ruling the galaxy and going nuts. 
|
|
|
|
Opiop
|
 |
«
Reply #5695 - Posted
2017-09-27 19:38:47 » |
|
I'm starting a new job at a popular software development bootcamp! I'll be helping to teach Java and C# to people all over the US  I really like teaching so this is an exciting change. Crazy to go back to my first posts and see how far I've come... I've been on this forum for so long now!
|
|
|
|
|
Slyth2727
|
 |
«
Reply #5697 - Posted
2017-10-11 07:26:59 » |
|
|
|
|
|
h.pernpeintner
|
 |
«
Reply #5698 - Posted
2017-10-12 12:16:22 » |
|
VERY NICE!
|
|
|
|
|
|