Adam Teg

Ranch Hand
+ Follow
since Jul 10, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Adam Teg

I need to convert MS word document to PDF.

I am attempting to use itext library with no luck. Any help will be appreciated.

I would also like to keep the word document formatting

8 years ago
Say you are developing a Java based web app in an MVC architecture using struts, spring whatever, what is the most efficient way of implementing role-based-access to a page? Important factors to me are:

1) Not having 100 files to implement
2) Scalability - more users could be added in the future with minimal effort

Thanks
15 years ago
I am using DailyRollingFileAppender but archiving does not work because the file is being used all over the place in the application. What I would like to know is, I want to close all file usage before the DailyRollingFileAppender class tries to archive it. Is there a method that I can override before the rollOver() method is called?

Thanks
15 years ago
It is actully working. My unit test had a winter date in it. Either way I get a calander instance; set the gmt timezone since that is timezone I am getting; do an offset with "Europe/Paris".

Thanks for your response
15 years ago
Not sure if my question qualifies as intermediate but here goes -

I want to get a time zone that will return CET or CEST. When I do the code below today I get CET but it should have given me CEST. What is up?

TimeZone.getTimeZone("Europe/Paris")

I want a time zone that knows if the time is CET or CEST

Thanks
15 years ago
Anyone anyone!!
15 years ago
Assume a user has access to windows registry HKEY_LOCAL_MACHINE. Is there a possibility that Preferences.systemRoot() for a particular key not be accessiable based on System.getSecurityManager()? Is there an intermitant access issue i.e. sometimes the user has access other times not.

Thanks
15 years ago
Thanks Charles and Jesper.

I already have an installer and it is not in the list you guys suggested that handles JRE's. The major issue is that the jre installed does not have the JCE and a seperate JCE download is needed. Is there a way I can package the JCE by itself?
15 years ago
So I can't just jar the JRE and bundle it with my application and point to the JRE from my app? This has got to be possible. Is there some documentation on how to do this? The problem I am having is that when users install the my app, they don't have the right version of java. I don't want to ask them to install this but rather have my own.

-Adam
15 years ago
I am building a standalone java application and want to package my own jre. What is the best way to do this? How to test my app to make sure it is using the packaged jre beause I also have one installed?

Thanks in advance
15 years ago
I installed a lic file using Bouncy Castle. The first day it works fine encrypting files but the next day, I get an error saying it . Does anyone know of an issue where a lic file name (length of file name) or the date is causing this issue?

Thanks
15 years ago
I wish it was a school project. I will definitly look up some crypto methodology and best practices after this project.

Thanks again.
16 years ago
Thanks to all. I am definitely looking for some beginnersih encryption to make my BA's happy where the given sample code works. My requirement says the userid and password shall be encrypted.

Do you know if what the given code uses for encryption, 128 bit etc?
16 years ago
Say I have a string and want to do some simple encryption -- scramble them whatever but I want the original version when I give it the scrambled string. Is there some java utility that does this?

Thanks
16 years ago
Thanks to all. But to answer Pat's question, I can't read the file in chunks because I need to pass the entire file to the vendor code so that it can do some minipulations on it. But 2 GB should be fine. I was just running some tests and woundered how much will blow things up.

-Thanks again
16 years ago