Al Hobbs

Rancher
+ Follow
since Aug 30, 2017
Al likes ...
IntelliJ IDE Spring Fedora
Cows and Likes
Cows
Total received
6
In last 30 days
0
Total given
0
Likes
Total received
44
Received in last 30 days
0
Total given
86
Given in last 30 days
3
Forums and Threads
Scavenger Hunt
expand Rancher Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Al Hobbs

shouldn't you set the label background in fxml?
1 week ago
i changed the method a little bit. It wasn't working as is.

1 month ago
The file I was using was saved in UTF-8 using notepad. So the fix is to remove the initial BOM? Is there something I can do to get rid of it simply?
1 month ago
Hello all,


I am reading a simple csv and putting the values into a map with using nio and a stream.


Looking at the debugger all of the values are in the map.
The odd thing is that the first value at the top of the file is in the map but it returns false for containsKey.
If I add an empty line at the top it returns true.  

This return false for 김:


This return true for 김:





What is going on here?  I was thinking maybe there's some control character at the beginning of the file but there isn't.
If I put a different line there, the problem will happen with that value.
I can add the line but that seems hacky.


Thank you.




1 month ago
Probably a dependency.  when you install java you should put the -devel at the end
I think pair programming would be ideally used to help junior developers.  The only time senior developers would do that is for fun or they have a long time to finish.  Two developers doing pair programming makes development slower than one developer alone.
4 months ago
Actually I found an example online:


Can anyone explain the difference?
4 months ago
I want to assign a callback that is declared in the parent class.
I can just put the callback inline but I'd rather not for readability.

The typescript compiles fine but  this is undefined.
The debugger shows the object I want to use but under the 'Closure' tab instead of 'Local.'

I'm guessing that the function is being called doesn't know about the object that it was called in.
Maybe I should declare the function differently?

Here the this is fine because the function is being declared inside of it.


Here the this is undefined


4 months ago
Hi All,

I am planning out how I will make an app.  It will handle all main interactions over websockets / polling.  

My question is about securing the websocket connection endpoints.
I will use other providers for authentication, like google. I was planning on using 2 different providers.


The client apps ( web and native mobile) will login and get a token from the provider of their choosing.
My idea is that the clients will send the outside authentication provider tokens to custom endpoints on the server side that will verify them.
The custom endpoints will return an access token generated by the server, that will be put in the header when they connect to the websocket endpoint.
The reason for generating my own token is so that I don't have to figure out where the token came from when the client tries to get a socket connection.

Another idea is instead of generating tokens, the server will just use the google / whatever tokens as it's own.  
I am leaning heavily toward the second idea because it would simplify the token system since I don't have to do anything except check if they are valid.

Is there any flaw with this?  Is there maybe something it looks like I don't understand?


Thank you

1 year ago
Hi All,

I've been reading about node js lately.  
When I search for why somebody would use node js for server side rather than java or asp, it really seems like they are saying things that java and c# can already do easily.  
Also, when they mention downfalls like it's not multi threaded it's not a bad thing but a feature.
Writing the server side in javascript because the frontend is also javascript doesn't really make sense. You can use json with java and c# easily.
You would be basically giving up all the better stuff that java or c# has just so you can write in javascript.
If there is a really good javascript developer I'm sure learning java or c# would not be hard at all.

Is node js faster?  Setting up a web project for spring boot or asp core is just as fast if not faster if you have an ide.

I would imagine the more complicated your project gets, the easier it would be in java or c#.  
Java and c# frameworks also scale well.

Is it because it's cheaper?  Is that the real selling point?

You shouldn't really expect to learn something in-depth by watching videos.  You can't get around reading books if you want your understanding to be more than shallow.
1 year ago
https://awesomeopensource.com/project/grzesiek-galezowski/tdd-ebook
This is a free ebook. Don't know if it's any good.
I will read it myself, since I haven't read any thing about tdd yet.  It seems good.
1 year ago

Junilu Lacar wrote:
A bunch of grunts right out of boot camp or a team of highly skilled and well-equipped operators?


I like the comparison between doing a project well and potentially killing people efficiently.
1 year ago
Have you been given a specific format for the invoices to be in? You could make the template in excel and then add the data with your program.  Then have it export to pdf and print it. You could have the locations of the details configurable just in case the template changes.
1 year ago