I am wondering how to make a download server more robust. For now, I have a server, on https, storing zip files, named with a random hash, indexed by my database. The directory containing does not permit listing (htaccess) to avoid manual download directly browsing the directory on the server. The Java app displays the description of the files, and
Tag: java
RSA Encryption in Java / Decryption in PHP Fails
I have a PHP script that I have been using do decrypt a session key that I encrypted from iOS. The encryption is done on the client using a 1024-bit public key. Decryption on the server side is done with the corresponding private key. Now I’m trying to write an encryption method for Android. Unfortunately, the decryption continues to fail,
get word document count and number of slides count in PPT
Is it possible to get the number of pages in word document or number of slides in a ppt? I have done a lot of research on it and I am desperately looking for solution. I saw that it is very difficult to get it done in PHP on linux server. I would be ok with Java also, but is
Making first letter capital using regex like in ucwords
I need to convert a String value in to Upper case (First letter to upper in every word). This can be done in php by using ucwords() method. Ex : Thanks with hi5 Answer Undermentioned will work great in all your situation How to use :: Try defining this code n your super class ( Best code practice ) Now
Where can I find unit tests for regular expressions in multiple languages?
I’m building a regex helper at http://www.debuggex.com. The amount of detail I want to show requires me to write my own parser and matcher. To make sure my parser and matcher work correctly, I’ve …
How can i secure this API in an APK file
I am currently developing an api for a website i run. The api will be used in a number of places, and one of those places is an Android app. It’s purpose is to allow users to login, and and download files. I have the api build, and it will be using HTTPS so all of the data is fine
Does PHP allow *.properties file as in Java?
Is there a way to use a *.properties file in PHP as you do in Java? I’d like to store some application-level constants in a properties or XML file and easily call them from throughout my code. Your …
SSL Connection Reset
I am attempting to connect to an HTTPS endpoint in Java. Every method I have tried (more details below) ends up generating this stack trace: I have tried: Connecting with the javax SOAP libs and a new URL(“https://…”) Connecting with new URL(“https://…”).openConnection() Creating an SSL connection by hand: A few more details: Every method I have tried has worked against
How can I get stock quotes using Google Finance API?
I’m looking for access to financial data from Google services. I found this URL that gets the stock data for Microsoft. What are all the possible parameters that Google allows for this kind of HTTP request? I’d like to see all the different information that I could get. Answer There’s a whole API for managing portfolios. *Link removed. Google no