Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (549)
Games in Android Showcase (139)
games submitted by our members
Games in WIP (593)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: 1 ... 5 6 [7] 8 9 10
 on: 2015-01-30 09:35:16 
Started by BurntPizza - Last post by Roquen
I have 50 bars in the bar diagram. I simulate 50 coin flips and if for example 27 of those are heads, I count +1 for bar number 27. That I repeat 1 million times (that takes about 2 secs, inefficient code, sorry).

Binomial Distribution p=.5, t=50

bitCount(gen.nextLong() >>> 14);

 on: 2015-01-30 09:32:17 
Started by BurntPizza - Last post by pitbuller
Rewrote LibStruct to make it capable of addressing the full range of 64 bit address space.

Quite possibly the most complex code I've written to this day. Roll Eyes

Where we can see this as code?

 on: 2015-01-30 09:31:09 
Started by lcass - Last post by pitbuller

Let see how this pans out.

 on: 2015-01-30 09:27:02 
Started by lcass - Last post by divxdede
It's funny, my childrens ( 8 years old boy and 11 years old girl) wants to learn programming (seeing it's father to write code so often has an impact  Grin).
I will start to teach this week-end and i'm quite excited since i started programming when i was 7 years old in basic and i'm nostalgic ^^

I agree on one point, childrens construct their hobbies from which they can have access !!!.
If childrens are on an environnment (social, family, country, ...) that not help us to have discover the computer sciences, they can't discover they like it !!

But the problems occurs at a more general level ! when i see so many childrens and families around me without any contact with cultural things like arts, books, sports or even sciences, i'm very  afraid...


 on: 2015-01-30 09:25:39 
Started by Andre Lopes - Last post by Andre Lopes
Why its an ugly hack? Cheesy

 on: 2015-01-30 09:23:33 
Started by Andre Lopes - Last post by Roquen
Roquen, im not sure, it may be...

Riven, what are my options? MinGw instead?
If you were using GCC 3.x this problem wouldn't occur.  MinGw will have the same issue.  Depending on your perspective you could place the blame about anywhere.  Cygwin for using NewLib, GCC for changing behavior, the devs for their cmake script or option choices or for the fact that their using stdio in C++.  Undefining __STRICT_ANSI__ is a really ugly hack...but hey...if it works!

 on: 2015-01-30 09:20:22 
Started by roland - Last post by roland
Hey guys,

I'm trying to execute another jar file from inside my java program, like so:

String command = "java -jar filename.jar"

The issue is I want to be able to exit the parent java process without having to wait for the child process to complete.
This seems to work, however the child process won't print to the terminal, nor can I quit it (by ctrl+C). I have to go into the process manager and kill it manually.
I've tried ProcessBuilder.inheritIO() too but it only works for me on windows (not linux - I can see output but not do input to close the application etc.)

Do you guys have any ideas of how to fix this?


 on: 2015-01-30 08:53:46 
Started by lcass - Last post by Roquen
assignment in programming use the same = symbol but are quite different ideas, consider 'y = y+2', which makes no sense in maths but is perfectly acceptable in programming.
Depends on what field you're taking about.  It's obviously an invalid algebraic equality, but it's a perfectly valid map.  Sqrt[-1] is invalid for reals but perfectly valid in some other fields.

Pretty sure that's similar with all of STEM though. Maybe marginally worse in computer science.
CS has a problem WRT women.  Percentages peak in the late 80s and early 90s then rapidly dropped.  Don't believe that holds for other STEMs.  (saw a graph somewhere...trying to remember where).

 on: 2015-01-30 08:38:21 
Started by Ed_RockStarGuy - Last post by Roquen
If you want to brute-force shade, then:

length(max(abs(p)-e, 0.0));          // square or box (3d)
length(max(abs(p)-e, 0.0)) - r;     // rounded square or box

where 'p' is the logical sampling position, 'e' is the bound (positive extent) and 'r' the radius for rounding.  p & b are vec2 and r is float.  Logically these are axe aligned and centered around the origin.  Vertex shader handles making it arbitrary...see that ellipse thread.  And really the 'length' can be dropped and you can use dot instead since you really care about the sign of the distance.

 on: 2015-01-30 08:24:14 
Started by lcass - Last post by princec
It is. But I think a big part of the reason why this happens is because we steer young girls away from "technical" areas to begin with, and when it comes to racial disparities, we have a tendency to treat early struggles with learning (faced disproportionately by minorities because they are, on average, poorer and less advantaged than white children) as a statement about a person's "aptitude." This gets back to the point I made before about how computer programming is miscategorized at the institutional level. It's believed that you have to be some sort of genius, an overachiever experiencing wild success in regular Math classes, in order to even qualify as ready to learn programming. And honestly, that's just not the case. If we tore down this conception of the practice, and did a little work to demystify it, it would go a long way toward drawing a more diverse set of people to programming (not to mention other technical fields).
Fortunately where I came from all the white kids were poor too, and I was one of them (heh, still am). What struck me throughout my entire school education is that about half of my peers were barely able to hold a conversation, or read and write. Again it's easy to forget when you're in IT that most people are really not very bright at all. I mean, seriously not bright. It's hard to frame this in a politically correct way, but if you're using a computer now in a desk job, it's because you were already in the upper half of the IQ curve. I know it's not really all about intelligence and that nurture, teaching and opportunity are the other foundations of academic success but as teachers all well know, half of the kids they teach are never going to amount to more than a hill of beans no matter what they try. They can be great teachers, and the curriculum can drop a golden nugget of opportunity, but when half the kids can barely write, spell, or add up by the time they're 12... eeergh.

Cas Smiley

Pages: 1 ... 5 6 [7] 8 9 10

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Archive (23 views)
2015-01-29 04:26:08

theagentd (22 views)
2015-01-28 15:33:52

GamerIDGoesHere (31 views)
2015-01-27 01:23:23

GamerIDGoesHere (33 views)
2015-01-27 01:22:15

CopyableCougar4 (39 views)
2015-01-27 00:34:41

CopyableCougar4 (26 views)
2015-01-26 04:47:56

Olo (19 views)
2015-01-25 21:26:00

Olo (24 views)
2015-01-25 18:44:22

Robo11 (42 views)
2015-01-25 06:14:26

basil_ (34 views)
2015-01-17 22:29:32
2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21

Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!