DB2 Query optimization
Vote count: 0 All , Need help in optimizing a query : There are two tables with below fields: Table 1 AdminId Policy Locationid CreateTimestamp Table 2 AdminId Policy CreateTimestamp Detail1 Detail2 . Detail50 Table 2 is a big table will lots of data. For every rec in Table1 there can be thousands o...
Main Activity resets after opening another Activity
Vote count: 0 I've a newbie question about activities. I've a Main_Activity with some layout, options and graphics that I change and update. When I launch another Activity from my Main_Activity it opens, then when I want to back to my previous Main_Activity I've found that is resetted like I've just...
Count & Highlight Table Row Elements Dynamically
Vote count: 0 I want to be able to do two things. The first, is look at all "selected" items of a certain value. Say I have a, b, c ; I want to look for all items selected as "c" and highlight that table row as a different color. In addition, upon opening the form, I want the items counted, and be a...
Visual Studio 2015 Cannot add Reference to project
Vote count: 0 A large C# solution has a number of subprojects. It just compiled OK. Two projects each use dlls from the other. Projects A uses B.dll and B uses A.dll. I ran Clean on the entire solution and now A ca ot compile because I ca ot add B.dll because B.dll (debug) does not exist, so A.dll a...
Apply a share function on columns Python
Vote count: 0 I have the following df Array = np.array([[87, 70, 95], [52, 47, 44], [44, 97, 94], [79, 36, 2]]) df_test = pd.DataFrame(Array, columns=['Apple', 'Banana', 'Tomato'],index=[['Joe', 'Steve', 'Wes', 'Jim']]) Which looks like: Apple Banana Tomato Joe 87 70 95 Steve 52 47 44 Wes 44 97 94 J...
Elasticsearch take high score from multiple queries
Vote count: 0 I have multiple queries, each of them will retu own score. What i need to do is that if one specific query retu score i need to take this score. What i am doing now POST crawler/company/_search { "query": { "function_score": { "bool": { "should": [ { "term": { "SecondProperty": { "valu...
Only Play videos on visible cell
Vote count: 0 How can I only play video for visible cells? Stop the video once the cell is not visible ? I know it was something to do with indexPathsForVisibleRows but having issue figuring how to implement it Once Cell is visible at a time currently. ....... import UIKit import AVKit import AVFoun...
Splitting data - specific case
Vote count: 0 I'm trying to split some data, the data is in this form... ['20150406,34.4800,34.8100,34.2300,34.4200,21480500', '20150407,34.5400,34.8900,34.5100,34.6300,14331200'] The first item in each string in the list is a date, I am trying split the data at a chosen date. But have the whole str...
find all file modify after specific date (Centos)
Vote count: 0 i'm search some command in unix to find all file modify after a specific date: if i use this command i recive i get this error : ls -lt $(find .) | grep '16 feb' | grep -o './[^N]*' -bash: /bin/ls: Argument list too long and if i use this command i recive all file sorted by date. find ...
Jquery Highlight function not working
Vote count: 0 I am trying to find all the numeric values in a textbox text and highlight them but nothing is happening. The code is below. Can you please help identify what is that I am doing wrong? model Notes.Models.NotesModel <html> <head> <title>Notes</title> <style> .highlight {background-color...
Spring MVC: I want my controller to process/serve an image - it works fine in an tag, but can't display when referenced directly...
Vote count: 0 I've got a simple controller which processes and serves an image. @RequestMapping(method=RequestMethod.GET) @ResponseBody public byte[] GetProcessedImageResource(@RequestParam Long imageID) { Image image = someDAO.getImageById(imageID) someBusinessObject.processImage(image); retu image...
Retrieve AngularJS $http.post server data using PHP
Vote count: 0 I am calling a $http.post function but can not grab the data on the other side, the calls goes through successfully but can not retrieve the data in my PHP script AngularJS: var data = { firstname: $scope.first_name, lastname: $scope.last_name, email : 'test@fff.com', user : userID }; ...
mysqli_query(); when used in objects is not returning any value
Vote count: -1 the varible $coun is not retu ing any value when called enter code here $mysqli_user = 'merchant'; $mysqli_password = ''; $con = mysqli_co ect($mysqli_host, $mysqli_user, $mysqli_password); if(!mysqli_select_db($con, $mysqli_db)){ echo mysqli_co ect_er o() . PHP_EOL; mysqli_co ect_err...
Taking the natural log of a partly non numeric data set
Vote count: 0 Very new to programming and have started using R as a foot in the door. Apologies in advance for any possible lack of trivial knowledge. I hope that individuals that try to help me will be satisfied with how I'm coming across. The data set which I'm using is filled with irrational numb...
How to do push notification in android using GCM
Vote count: -1 I am very new to the world of android programming. In my project i have to do push notification using GCM. I have searched for it in inte et but haven't found any useful article. Could anyone suggest me any article related to implementing push notification in android. Thank you in adv...
Using Editors from Blend
Vote count: 0 I would like to use the Editors which blend uses. Like for Margin, Point3D, Brushes and so on. How can I use them? I googled and can't find anything helpfull. I also tried to snoop Blend but it also ended without result. asked 3 mins agoegse Let's block ads! (Why?)