JAVA AWS SDK InputStream Upload speed
Vote count: 0 i'm trying to store the images in AWS S3 to serve them as static content in future. I use Spring MVC, Spring Cloud AWS, AngularJS. Have a strange issue with File upload to Amazon S3 bucket. uploading a File is very fast 2016-07-17 12:43:11,927 INFO [http-apr-8080-exec-8] impl.S3FileSer...
android studio cant work with new sdk
Vote count: 0 i have android studio v1.2 with SDK API 15,18,23.i can make project with API15 but when i want to make a project with API 18 or 23 then i face with an error. i did: rebuild project sync gradle reopen android studio download latest sdk tools,api,... and error is: Error:A problem occurre...
Multiprocessing Pool method hanging but Process method working
Vote count: 0 I'm trying to get the multiprocessing.Pool method to work. It initiates and shows all the cores are active, although ends up just stalled without completing. To troubleshoot the problem, I first tried using a simple for loop and that worked (Method 1 below). I also tried using the mult...
How can I match/capture just the opening tag of an HTML element
Vote count: 0 I am trying to capture just the opening tag of an HTML element. I am using element.outerHTML to get the string of text to work with. It works when there is a new line after the opening tag: var div = document.querySelector('div'); console.log( div.outerHTML.match(/^<(.*)>/)[1] ); <div ...
Are there anything similar to "perl -pe" option in python?
Vote count: 0 TL;DR I want to know what is an option in Python, which might roughly correspond to the "-pe" option in Perl. I used to use PERL for some time, but these days, I have been switching to PYTHON for its easiness and simplicity. When I needed to do simple text processing on the shell promp...
Why isnt my delete inner joins not working?
Vote count: 0 I am trying to delete 2 tables using i er join. I have a modifier_category table which is the parent table and the modifier_items table which is the child. The way they relate is the modifier_categories table primary id which is stored in the cat_id column matches the cat_parent_id in ...
how to track progress in angular 2 service call
Vote count: 0 How do you track progress in Angular 2 services? I'm told that we use services to talk to the database or other data repository. while the query is in execution, I'd like to be able to put up a progress bar on the UI. My question. How do you tract percent complete? Thanks asked 32 secs...
BigDecimal vs Integer for financial app
Vote count: 0 We're starting a new java web application for tracking/reporting financial data. Normally I'd use BigDecimal to represent dollar amounts in memory, but I've read some approaches using int/Integer and treating all amounts as cents. I was wondering if anyone had thoughts on pros and cons...
Rails: ActiveRecord 4 Relation as an Array of hashes
Vote count: 0 I have the following ActiveRecord query that retu s a Relation: result = Trainee.select("users.name, start_date, count(users.id) AS reviews_completed") .where(user_id: user_ids) .joins(:user).joins(:reviewers) .where(reviewers: { completion_time: start_date..end_date.end_of_day }) .gro...
Different structs in one array in Swift
Vote count: 0 I have a struct called trip. struct trip { var name: String var description: String var elements: [Any] = [] mutating func addItemToElements(newValue: Any) { elements.append(newValue) } } As you can see, there is an array inside. I'm adding some other structs like element_flight into t...
Post with checkbox in mailing list
Vote count: 0 I need to send a mailing list and allow the receivers to check or not some input box. Im finding it difficult because every mail services/client work differently: some doesn't support the post method, some other do not display the submit button etc. Evwn with GET I'm encountering probl...
PHP not readin session id
Vote count: 0 On my webpage, I have a login form that creates a session - but PHP doesn't seem to be acknowledging it: require_once('globals.php'); require_once('header.php'); if(!isset($_SESSION) || session_id() == '') { $x = (isset($_SESSION)); var_dump($_SESSION['use ame']); ?><br><?PHP var_dump(...
Idea for adult themed app - unsure if it will be approved
Vote count: -1 I have an idea for app that is adult themed - im pretty confused over apple and Google's guidelines for mature content. It will be an "Truth or dare" kind of app with sexual objectives, ie. nothing explicit imagery inside the app or anything, it will be purely text, however the object...
C# Error - Does not implement interface member
Vote count: 0 I have an obfuscated code, written in C#, that I need to build and make an exe. However, I am getting error when build the project in VS 2012. The error says: Error: 'xf1555389a70c7d5a.x39b8e005139a3d89.xdd6080d77f5137d7' does not implement interface member 'System.Collections.IEnumera...