I'm working on a social website that uses upload of Images for Display Picture and Banner ( as FB Cover)
I am using AngularJs on frontend and Play Framework (JAVA) on backend.
However, I am not able to find best way to process uploaded image (cropping, resizing, etc).
Should I do it on client side in Javascript or Upload to server and do it in Java ? and which libs, i should use.
Veeery wide question, so we can just give you tips, not an answer...
Anyway last time we completed similar task with GraphicsMagick + gm4java + Jcrop quite nice, of course there is still some coding for you, but IMHO it's good start.
Related
I'm a newbie android developer and we have a website that sells some stuff (using a payment gateway), you can also login on the site using credentials, facebook, or google+ login. Now we have a need for an android and iOS app. What is the best approach to port the site functionalities to Android or iOS app? What are the issues I need to consider when I choose one approach? What would be the best approach: native, hybrid (phonegap, xamarine etc.) or using wrapped (using webview as far as I know)? I'm especially interested in the user login part (because I want the user to be able to login to his account if it exists and if not to create it using the website API endpoint - this is how I imagine it), how to solve that when choosing between these approaches? Any suggestions (answers, comments, links, books) would be helpful.
Thanks
My sugestion is to do native, always can reach more performance in multi thread ,high concurrency transactions and heavy applications.
For android, you can build from source an application, and export the html/css content to the smartphone using android.webkit.WebView. Take a look:
https://developer.android.com/reference/android/webkit/WebView.html
I think is a excellent solution for your problem.
I am writing a cross platform app(PC, iOS, Android) in Java. I would like to integrate facebook into this app. I have been trying to find a uniform method to login, since it is a cross-platform applicaiton. So I have been following Facebook's manual login to try an approach that will work on each platform. I am using restFB to handle the interaction with Facebook after I get the access token from the user. That last bit is causing difficulties. It seems the only way for me to get the users access token is to have them sign in from an embedded browser.
Now I have looked at this similar question, but the problem is that Libgdx is not compatible with JavaFX. So my question is: Is there a relatively simple way to embed a web browser into an app that is built via Libgdx?
So my question is: Is there a relatively simple way to embed a web browser into an app that is built via Libgdx?
Nop
I need a captcha solution for GAE in Java. My clients only have access to the IP in where my application is hosted so they can't rely on re-captcha or solutions of this kinds.
Since awt image classes are blocked. Do you know any easy solution for image generation ?
I 've found a text-to-image library which works on GAE:
Litetext
But it's not secure enough for a captcha.
You could build your own CAPTCHA images using the Images API. Preload one or more image per alphabet character into the Blobstore, then use a combination of the available transformations. These include resize, rotate, flip, crop, and composite, which will get you pretty far. The result probably won't be very resistant to concerted automated attack, but is better than nothing.
Hello I am new to android programming, I haven't started writing the code for my app idea yet but I am in planning and learning the Android OS. I was wondering if there is a way that I could pull data from a site such as a wiki from wikia.com and format it in an android app and how would I go about doing this?
I want to pull data such as the information under the different sections, for example take a band history such as The Beatles, I want to pull the History section, Discography, stuff like that and format it to look good in my app. Is there a way to do this? Thank you in advance.
You have a few options.
APIs
Scraping/reformatting the site
If a website has an API you can simply use that to query the website and get the data you need. If not you'll be forced to download the html and scrape out the relevant information.
Scraping is considered a legal gray and most websites don't appreciate it, especially if you plan on redistributing the content of the site.
I have this new requirement to develop a software which is a large scale image up loader in a web application. I was able to do the same using swing contains several feature like drag and drop, progress bar, remove file / files , modify, limit file size, verify file information, timer, verify at run time ..and its a very powerful tool which uploads images.
I would like to do the same in web based app, like user selects 200 images process it and click upload and it should start uploading, like to know any feasible frameworks or any API's which help me do this faster and achieve the same kind of functionality. Please point me in correct direction.
-PD
You can do upload apps, but not fancy stuff like drag and drop with run of the mill HTML. HTML5 on google chrome maybe, but I doubt you want code that only works on chrome.
Have you looked into turning your image uploader app into a java applet? Applets generally have a bad rep, but this is one of the very (in my opinion) valid uses of one...
Either turn your uploader into an applet or use a 3rd party image upload applet, such as JumpLoader. You then just embed this applet in your webpage. Turning your uploader into an applet should actually be a piece of cake since you've the UI apparently already ready. You can make use of deployJava.js script to reliably deploy an applet.