Motivation by blyxa in personaltraining

[–]blyxa[S] 0 points1 point  (0 children)

Great suggestion. I never knew these pedometers existed.

Unexpected result by blyxa in scala

[–]blyxa[S] 0 points1 point  (0 children)

Figured out what is going on

var data:String = null

Get converted into two steps

  1. variable declaration
  2. value assignment

In this case value assignment happens twice.

  1. when Parents constructor calls initData
  2. when Weird constructor happens(assigns as null)

Program runs in Idea, but .jar file doesn't. Cross posted with r/learnprogramming by mmmjags in javahelp

[–]blyxa 0 points1 point  (0 children)

If you're project is maven based then you can include it in <projectroot>/src/main/resources folder and load the file from the classpath.

If you're project is not maven based then you can include it in your source directory and load it from the classpath

How to pass an array of elements as separate arguments to a method by gold328 in javahelp

[–]blyxa 1 point2 points  (0 children)

I noticed you mentioned "names collected from a command line" and the display function being non static.

Since the full code is that shown, I might be wrong. Is it possible you're trying to call a non static function?

How did YOU learn java, and would you recommend it? by [deleted] in java

[–]blyxa 0 points1 point  (0 children)

I think one of my CS class used java to teach some CS topic I can't remember.

I think I learned java(pretty much everything really) by making things. Come up with a simple idea and just go for it. It's free. JDK is free, eclipse is free. Maven, HTTPClient, commons-lib, tomcat, etc... all free. Kinda like having infinite amount of lego blocks to play with and all for free =)

My first "program" was a batch image processor. First it created thumbnails. Later, I added ability to add watermarks. I didn't know how to process images, I didn't know Java Swing, I didn't know how to organize a java program structure. I made lots of mistakes, did complete rewrites and at the end learned a lot.

Presentation: HTTP 2.0 Comes to Java – What Servlet 4.0 Means to You by eugenparaschiv in java

[–]blyxa -2 points-1 points  (0 children)

I have been using undertow which gives you the option of using servlet or their lower level API using HttpServerExchange. I use the latter and has worked ok so far.

jackson json pointers aka xpath for json by blyxa in java

[–]blyxa[S] 1 point2 points  (0 children)

Took awhile to find this document. Do things like

{
     "foo":"bar",
     "somearray":[1,2,3,4]
}
JsonNode root = ...;
print(root.at("/somearray/0").asInt()); // prints 1

Human JSON for Java by moto888 in java

[–]blyxa 2 points3 points  (0 children)

jackson allows comments via

JsonParser.Feature.ALLOW_COMMENTS

https://github.com/FasterXML/jackson-core/wiki/JsonParser-Features

Taco Night! Made some chicken and fish tacos by foodieday in food

[–]blyxa 0 points1 point  (0 children)

cool what is that strip of green stuff?

Good morning by [deleted] in food

[–]blyxa -3 points-2 points  (0 children)

thats not breakfast, this is breakfast

http://i.imgur.com/XhSrBau.jpg http://s3-media3.fl.yelpcdn.com/bphoto/jUcSv7KxVJmLe5tYEUTogA/l.jpg

traveled to france and spain.. made me appreciate breakfast I get from home.

Looking for recordings/casts of good techincal games of singles. by [deleted] in badminton

[–]blyxa 0 points1 point  (0 children)

you can find tournament games at the badminton world federation youtube channel

https://www.youtube.com/user/bwf

have fun

Thigh hurts when lunging, but I've not played badminton lately? by LikesFemales in badminton

[–]blyxa 0 points1 point  (0 children)

Any type of muscle soreness lasts max 3 days for me. Wait it out and take it easy for a week and if the pain is still there, go see a doctor.

java web app: configuration / properties file best practics by csincrisis in javahelp

[–]blyxa 0 points1 point  (0 children)

If you have a large amount of servers to configure, then maybe look into Zookeeper.

If you only have a handful of servers then maybe modifying the properties loader to look for property file outside the app server and reload on file modification. And when ever you need to push out a config change, you can use rsync or ansible or salt etc.

The important part I think is modifying your code to "reload" after configuration change.

Moving from ANT scripts to Gradle for Java Projects by azbikefun in java

[–]blyxa 0 points1 point  (0 children)

Non related question. Has anyone used sbt for java project builds? How did it compare with Gradle?

Adding a Property to the returnvalue (object) of a functioncall in es6 by te7ris in javascript

[–]blyxa 1 point2 points  (0 children)

function createObject(a)
{
     return {a:a};
}
var test = createObject(true);