I have a page rendering a ng-repeat from data requested via an http.get, however it's not loading the data from the get request. What am I missing here? HTML: <div class="container-fluid" ng-show="isLoggedIn()"> <div class="row images"> <div class="col-md-8 col-md-offset-2"> <div cl...
I have an entityClass that I wish to serialize as a clone. But this class has a reference assembly from a custom framework which I dont have the access to the code. Whenever I try to serialize entityClass object, it throw the exception, "Type ... in Assembly '..., Version=4.1.0.0, Culture=neutral...
I have tested epoll in case of network cable unplugged: server opens port 3000 create epoll and add server_fd into epoll accept client (client use telnet) and add client_fd into epoll send data to client after unplugging cable, epoll_wait does not get any event related to client_fd forever I ...
There is a queue to be shared, what i want to do is only one thread can own the lock of the method everytime, only when the thread releasing the lcok, can other threads have the chance to own the lock, here is my code block import time import queue import threading class testQueue(): '测试队列'...
i'm making a website for a Japanese company. Everything is ok except one: some (not all) Japanese text display wrong (look like a square) on Safari on IPhone while other web browsers and devices display exactly including Ipad. Here are these characters: "・" , "〜". My header: !DOCTYPE html> <!--...
I am trying to get the author information from the website "pixiv". The code is here from the website: <meta property="og:title" content="ラララ | かるは [pixiv]"> I want to get that "かるは" and I use the regex: [\u0800-\u9fa5_a-zA-Z0-9_]+(?=\s\[pixiv\]) However, in Python, I cannot get anything ...
In unix : I want to insert a string at particular position of line in file. for example my file has content file1: abcd efg hi xxx yy zzccc xx 7777 Now in each line where first character is x. I want to write na at 11 position output of file should be file1: abcd efg hi xxx yy na zzcc...
I am trying to parse json file and display on view .I am using Ionic framework with angularjs .I am able to parse the json file .But I am facing one issue that page is not refresh after click of button .I will explain the problem in other words .I have four or 4 tabs ("A","RE","d","N") in my main...
I have a java architecture which accepts linux command as a string, which run on a remote linux machine and returns the output. The command as a string is working for these single commands such as cat filename grep <string> filename But the command is not executing properly when I pass it a w...
I am looking at using Firebase in my SAAS application. Each account on the product has there own ECO system that is separate from all the other accounts so there will be no need to do shard walking outside of a "migration". I have been wondering what would be best practice for or if there are oth...
I have this really strange bug after recording video with audio. Upon completion of recording, I go into a different viewController where I play the video, I can get the video to stop(pause) just fine but the audio continues to loop and loop. Even when I go into background mode and come back into...
Passing a mutex reference to a thread causes compile errors. Why is it not possible (I have multiple threads using the same shared variable), and how do I fix it? #include<iostream> #include<thread> #include<mutex> void myf(std::mutex& mtx) { while(true) { // lock // do...
I have the following code in my Backbone Collection loadMore: function() { this.offset += 1; this.fetch({ data: { limit: 50, skip: this.offset }, remove: false, success: function(collection) { ...
import java.awt.*; public class Project2 { public static final int PATROL_Y = 250; public static final int PATROL_SIZE = 20; public static final int ENEMY_Y = 20; public static final int ENEMY_SIZE = 30; public static final int RIGHT_ARROW = 39; public static final int LEFT_ARROW = ...
In my visual studio, this code int *a, *b; b = a; Will receive a run-time check failure:variable being used without being initialized. So if a pointer is not allocated memory then the assignment is nonsense and forbidden? In my old opinion, a pointer is a 4 byte number in my development enviro...
im working on this app which basically needs to obtain street names (roads/blv..etc) and reverse geocode the latitude and longitude to readable values. However, I have no clue, how can i predict the latitude and longitude of the next up coming up street, i can only reverse geo code the street im...
First of all, apologies if this has been answered already. I've been searching for this for a couple of hours already but I wasn't able to get any answers from the web or just because I've been using the wrong keywords. I'm currently creating an android app and I just want to know if there is a ...
I'm using gtk+-3.0 to create my simple ui and I want to send an fake event to GTKEntry via g_signal_emit(...). Actually I don't know, what pramaters should I pass to this function.
I am trying to read excel sheet and put it in datatable then add it to data set. The problem is that after adding the datatable to dataSet, the dataset.Tables.Count is just 1 when I just added 4 datatables. public void ExcelScanIntenal(ReportProperties report, Excel.Workbook workBookIn) ...
I try to code a program cutting a text file between a character and another. To illustrate, example.txt that i want to cut includes numbers and some characters such as '[[[' and ']]]' (they may chance as type and count of charters). This characters are starter or ender of the cutting process. Thi...
My code looks like this: ex3.2=read.table("ex3_2.csv", header=T, sep=",") ex3.2 # X Y # 1 2 4 # 2 3 5 # 3 4 6 # 4 6 8 # 5 8 8 # 6 9 10 # 7 10 10 # 8 10 11 # 9 11 12 # 10 12 12 Then, when I want to get the mean of every column, it doesn't work. mean(ex3.2[,1:2]) [1] NA...
I am creating a login system hosted on Godaddy and following this tutorial: http://cleartuts.blogspot.com/2015/01/user-registration-and-login-script-using-php-mysql.html. When I run the code below in phpadmin as specified by the tutorial, I get this error: #1044 - Access denied for user 'cpses_cr...
I have this project in windows Azure cloud. when i wanted to deploy the project in Staging, it threw me an error as "The file '/Views/Home/Index.cshtml' has not been pre-compiled, and cannot be requested". But it works fine in development machine. before i had this error there were few errors wit...
Consider this Rust program: fn main() { let mut z : Vec<Vec<(bool,f64)>> = Vec::with_capacity(10); unsafe { z.set_len(10); } z[0] = vec!((true,1.)); println!("{:?}", z[0]); } https://play.rust-lang.org/?gist=ccf387ed66a0d8b832ed&version=stable Rust should attempt to drop z[0] ...
I have two machines that encode/decode packets as follows: they are read and encoded on the first machine, sent to the second machine, then decoded there. This is to prevent loss. I would like to demo the code by testing it with video: ideally, video is recorded live with webcam, dynamically en...
With Windows, I followed everything here, also set Path for downloaded android SDK. However, it just stopped at platform add. The screenshot of cmd
A Rails app I'm maintaining has a bitmask field for features on an Event model. I'm trying to query the Event model to return all Events that have a certain feature (or combination of features). Is this possible? class Event FEATURES = %w[invite_only dress_code food.......] def features=...
I'm having a problem in my datagridview. There is an excess data that wont remove even i tried to change the property 'ReadOnly' to false. See the picture below. http://i.stack.imgur.com/f1S5g.png
I'm having a difficult time understanding how to have some JS to run when the chrome extension icon has been clicked. I'd like to for example, read some properties from the document, when the icon has been clicked. "browser_action": { "default_title": "Mark this position!", "default_icon...
am new to javascript and php however i want to populate a datalist from mysql table but have some difficulties the relevant codes are presented below.I am able to fetch data from the database but not able to display them in the datalist element. the HTML code <form class="form" action="ins...
UPDATE wpcurrate SET usd = (SELECT (mo.price * wpcurrate.midprice) as USD FROM mo,wpcurrate where wpcurrate.symbol=mo.symbol) WHERE mo.curdatetime between '2015-07-01 12:00:00 AM' and '2015-07-31 11:59:59 PM' IT shows following error Msg 410...
So I have this function (below) and it is supposed to get the amount of users in a table that I have. I know there's 5 users and they all have an ID. However whenever I use the function to display it on a webpage it does not return a result. This is the function function user_count(){ mysql...
I have the following scenario in cucumber: Scenario: As sysadmin I delete an user used for testing Given I in selfservice at the page Manage user When I search for an existing user | users | ORGADMINUSER_LASTNAME | | users | ORGADMINUSER_LASTNAME | The string ORGADMINUSE...
I want to simulate data from Multilevel Logistic Distribution 1000 time and each time estimating parameter and compute the average of the estimates . But it seems , in glmer() function results cannot be extracted like lm() function , say , lm(y~x)$coef . How can I extract the results from glmer()...
given this command: prefix dm: <http://one.example/> SELECT ?pID WHERE { ?pID dm:hasDName "xxxvvvII" . } The arq engine outputs the following: ------------------- | pID | =================== | dm:C002172 | ------------------- The fuseki server outputs the following: { "he...
I’m trying to solve a problem of keeping stock of items of a dynamic / generic kind. Specifically I want to be able to store information corresponding to a combination of rows in a table. An example: A Shoe entity has some properties. Some of these properties are determining the stock of that ki...
Newish to PHP/MySQL, I have been trying to copy the check random string from a few of the other posts and have not had much luck any input would be helpful. The goal to make a random 8 digit pin that is not in the DB. function generateQuickPin($length = 8) { define ("DB_HOST", "localho...
How can i get the multiple checkbox selected value and save into database? When i choose and submit into database; it shows TRUE / FALSE instead of selected value. Please guide me on this. Thank you!! Example checkbox generated in view: [x] a [x] b [ ] c Current able to save database in XML: <...
i have installed openvswitch-2.3.2 in Amazon EC2 CentOS 6.5, and want to use openvswitch to build a gre tunnel with other PCs. this is the ifconfig output [root@ip-172-31-30-157 openvswitch]# ifconfig eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 9001 inet 172.31.30.157 netmask...
I have a page view controller consisting of several view controllers. I want to achieve that when it comes to the last page of the page view controller and the user slides it, it can go to another view controller. Below is my code in method viewControllerAfterViewController: -(UIViewController ...
My goal was to copy the "play music" app search function. From what I can gather, when I press the search button, a new activity is created, and the searchview is automatically expanded. When the arrow or back button, to close the search widget, is pressed, the activity closes. Everything works, ...
I have a php script where I need to make sure a pre-set "future" time has not passed. When the time is originally logged (or passed and needs relogged), I am taking: $newTime = time() + 15000; // 2.5 minutes from "now" The system is tossing this in the DB no problem and the numbers appear to ...
I want to debug my phonegap app by desktop chrome. I find a github page about it https://github.com/phonegap/phonegap/wiki/Debugging-in-PhoneGap
This is a simple code to create a list of dictionaries in Python, however the append function in the loop is creating a list instead of the list of dictionaries. How can I append a dictionary in the list? data = [] d = { "item1": None, "item2": None } for i in range(3): d["item1"...
just going over javascript and I am looking at foreach and okay, I am guessing name variable is coming from the array(I can verify that from console.log). I can also verify(although I have no idea where it's coming from) that i is 0,1,2. Can someone please point me to right direction of where thi...
I'm new to python, and I'm trying to solve for the upper limit of integration: def integrand(t): return (Dou)*np.exp((-Eau)/(8.314*(996.74 + (1037.1*np.exp(-0.2696*t))))) def func(x): y, err=quad(integrand, 0, x) return y sol=fsolve(func, 1.0) print (sol[b]) Where Dou, Eau, and b a...
I'm trying to populate a 10 row array such that each column contains a "1", a "2", a "3" and seven "0" s. Does anyone have any idea how to do this? I tried constraining the column total to equal 6 but that returned columns with six ones, two threes etc. Is there a 'count' function that I am u...
My outlook apps (pre-installed ones, ones from the app store, and my own custom app) work fine in the Web client, but will not load (app error) in the windows client unless I start outlook as administrator. This is a major issue as my company wants to enable apps for certain users, but the users...
I have a scrolling list in my mobile app which I build using ionic 1.0.1. The list is quite choppy when scrolling. The text blurs a little when scrolling. I checked Facebook's app on my phone and it scrolls very nicely, no chopping and blur. I have created a code pen and was wondering if there is...
I am using Maven for managing dependencies and i have add several dependent jars as provided, But for some test purposes , i have written some main method in some classes and manually run them for testing some methods. In this case, classpath not consist with jars which marked as provided. I tri...
I have a challenging requirement. The requirement is as follows. We are designing a UI today with 10 UI elements. Users are creating few records. After a month, a new release comes and it has 12 UI elements on screen. When the user creates new records, he should see 12 UI elements, when he open...
My current application poll using MEAN stack and in controller I have a function vote() and API route defined as follow: "/api/polls/pollID/pollChoiceID" (ex. http://localhost:3001/api/polls/5587ad060a9e110816f9f1a8/5587ad060a9e110816f9f1a9) I have the app working fine as it's but now I'm look...
I was trying to make my crystal report run in internet explorer and google chrome and I found a solution from the online resources and its throw me an error. I add in the codes below to my web.config <configSections> <sectionGroup name="businessObjects"> <sectionGroup name="crystal...
Normally in Linux PCI drivers may expose a control interface to user-land via a character device, e.g. /dev/drv_ctl, and a user application can read/write I/O control commands with ioctl() on the open file descriptor. In Linux we create this with register_chrdev() kernel API. I would like to ha...
Few days ago, my apps work fine when button image clicked and select any photo from gallery. But when i copy something xml and class from my friends (because i working app with my 3 friend), the apps close when i choose photo from gallery. This is my code for open gallery: iv_poto.setOnClickLis...
I have a code block which checks whether an entity is being tracked by my context. If it is, I need to detach it. This works for a given T type. public virtual async Task<bool> InsertOrUpdate(TE entity) { if (entity.Id == 0 || entity.Id == ModelState.New) { // attach new entity ...
I have built a website that uses a css zoom effect to adapt to screen sizes, and it works pretty well in Chrome, IE and FF. However, when zooming out in Safari, the page creates huge margins on left and right, which can be seen on screenshots here. (As seen on the OSX screenshots). How can I avo...
i am trying to validate the following form <form method="post" action="#" name="register"> Name <input type="text" name="name"/><br><br> Age <input type="text" name="age"/><br><br> Gender <input type="checkbox" name="gender" value="male"/> M <input type="checkbox" name="gender" value="fema...
Hello friends I'm trying to complete an application that it's on youtube. Some things have changed in Xcode. The problem is the follow: I created two variables of type array and I initialized them into a viewDidLoad var names : [String]? var colors : [UIColor]? override func viewDidLoad() ...
I'm running into a problem including this function from another file function sendRes($s_attachment) //this is line 3 { /*Snip : processing message details..*/ try { mail($to, $subject, $message, $headers); } catch (Exception $e) { logMessage("An error occured Sending...
Suppose I have thousands of columns in mydf. How can I cbind "new" column next to specific column name in "mydf". For example, I want to cbind it next to column "C" (by column name and not by number) and get the "Result". mydf A B C D 1 3 4 5 1 3 3 2 2 4 4 6 3 4 6 7 new 3 3 3 4 Result A B ...
Here's an invalid Rust program (Rust version 1.1) with a function that does an HTTP client request and returns only the headers, dropping all other fields in the response. extern crate hyper; fn just_the_headers() -> Result<hyper::header::Headers, hyper::error::Error> { let c = hyper::clien...
I have a string with this format abc-123-def I want to replace first "-" with "_" and second "-" with "." We cannot predict the value of "123" part and "def" part. What is the most efficient way to achieve this ?
I need an in-page editor to take notes when reading a web page, so I write a little javascript snippet: document.body.innerHTML+="<div style='position:fixed;\ top:10px;right:10px;width:300px;height:50%;background:#ccffcc;\ z-index:9999'><p contenteditable='true' style='font-size:150%;\ width:10...
Good day, Here is my query: update JSNumber set runningNo=(select runningNo +1 from JSNumber where paymentDate= '2015-07-09 00:00:00.0' ) where paymentDate = '2015-07-09 00:00:00.0' This is working fine when I set it to a StringBuilder sb, and run as follow: Query query = getSession( ).creat...
So I've gone to a person who is familiar in programing for help but couldn't find the solution, I've searched how to try and do it but i couldn't understand what they meant, I'm making a little program where it teaches simple addition and subtraction and I'm quite new to python. So how do i get t...
I'm using cellLocation=telephonyManager.getCellLocation(); if(cellLocation instanceof GsmCellLocation) { //get cid }else if(cellLocation instanceof CDMACellLocation){ //get cid } to get cell info for gsm and cdma. I'm not sure what will happen on lte and wcdma phones? Sinc...
I have some data which looks like: (*** is some junk) ***abc*** ***1*** ***2*** ***3*** ***bcd*** ***2*** ***3*** ***4*** ... ... Based on it, what I want is to construct a data structure like: {'abc':[1,2,3]} {'bcd':[2,3,4]} ... Is regular expression a good choice to do that? If so, how to...
I am trying to create a sample circle to test the pixel per meter. My PPM is set to 100. Height and width was set to 320 and 480 Do you why It won't center in y axis but it will center in x axis. also when I set the radius to 50 it doens't draw anything. Am I missing something here? this.wor...
I use attr('style') and able to get below's value, background-image: url(http://example.com/img/123456-bg.jpg); background-size: cover; but how to proceed to get 123456-bg
My understanding regarding virtual table is , whenever compiler find virtual function in a class it creates a virtual table for the class and all the function pointer for virtual function will be placed in that table. But when it comes to pure virtual function we are not going to call that func...
The functions below don't type check. test1 :: forall x. (Show x => x) -> String test1 = show test2 :: (forall x. Show x => x) -> String test2 = show This is because the last -> doesn't have access to the constraint. (This probably isn't the proper terminology, but hopefully it makes sense.)...
I have a datepicker from Angular UI datepicker and my output in the texbox is correct but when I passed the data using Ajax process what I got is this format: Thu Jul 09 2015 11:32:25 GMT+0800 (Malay Peninsula Standard Time) In my datepicker JS I have this: //DATEPICKER FUNCTION $scope.today ...
I am trying to create navs with shadow on the right side that overlap on the next one. Then I want to stick them in the bottom of its containing div. For the overlapping part, I found solutio that using pseudo elements: How to create Curved & Overlapping Menu Tabs in CSS But as I give ::after e...
I am using Splash to render a site's Javascript in HTML. Splash displays the results on a locally hosted page, which I then want to grab with Requests. The problem is that Splash takes a few seconds to render the page, so when Requests downloads the response, the HTML is just the default Splash ...
I am making a float-tip div when mouse move the pointer go after the div. but in ie ,I was trying to move from left to right side ,in 2 places on that div,I found the mousemove event can not be fired.the setted css style can not be attached into the element.why? codes here I heard someone sai...
I am having a spot of trouble with my printf statements. I cannot get them to accurately. This is the code snippet that I am having trouble with. while(choice != 4){ if(choice == 1){ System.out.println("NAME ID GPA\n"); for(j = 0; j < i ;j++){ ...
So I'm using moment.js to get my local date. And it's working. In the view and in the angular model I have my local time. But when I'm sending POST to my php script, date is returning to GMT time (checked in request payload). To be sure, just before the request I'm writing date from the model to...
I was trying out the code here http://javascriptissexy.com/javascript-apply-call-and-bind-methods-are-essential-for-javascript-professionals/ for the bind method var data = [ {name:"Samantha", age:12}, {name:"Alexis", age:14} ] var user = { // local data variable data :[ ...
If I have a table called 'invitation' like this: |invitation_id|sender |recipient | |1 |Josh |James, Hendry, Max | |2 |Steave |James, Gerrard, Ramon| |3 |Steave |Gerrard, Max | How to show ...
Using Angular 1.4: I set a variable in my Controller called $scope.sentence. I have my directive reference $scope.sentence I change $scope.sentence in the Controller. Expected: I expect my directive, to also update to the new value. Actual: The directive doesn't fire again. It never up...
when i use spring boot,the aop couldn't effective with annotation controller , how can i best do it ? @Aspect @Component @Configuration public class MethodStatisticsPointcutAspect { @Resource private CounterService counterService; // aop defined @Around("@annotation(com.xxx.xxx...
i have write the cording for the button click using onclicklistner and but i wont when the finger move on the screen button need to click and play a audio file //button click event Button speakButton = (Button) findViewById(R.id.bt1); speakButton.setOnClickListener(this); tts = new T...
I'm having trouble getting the UIkit upload component working in my web application. I've included the upload component JS, placeholder css and form-file css. The code straight from the examples in the docs doesn't even work for me.(With some minor alterations) HTML <div id="upload-drop" class...
I have a series of elements I wish to resize dynamically. I have a small StackPane set within a larger AnchorPane. The AnchorPane resizes based on the window size changing. I am trying to resize the StackPane to stay the same size relative to the size it was before the AnchorPane resized. Basic...
I can make a single css dashed border, as shown below, but how would the top and side borders be made? html: <div class="box"></div> css: .box { height:95px; margin-top:6px; padding-top:10px; } .box:hover { color:#2200dd; height:101px; margin-top:0px; background:...
For example, I have a class called Length. class Length { public: static const float METER_TO_FLOAT_RATIO; Length(); void setValue(float valueInMeter); operator const float(); private: float valueInMeter_; }; const float METER_TO_FLOAT_RATIO= 10; Length::Length() {} Leng...
I am trying to add checkbox value through add_post_meta but getting no luck..! It is saved in database...but when I open the post in wordpress the checkbox isn't checked..! So please take a look over my code and let me know if I am doing anything wrong : require_once("../rabotavbaku/wp-load.php...
Google SwipeRefreshLayout only have onRefresh() listener. but recyclerView listView also have to onLoadMore(), i know can set onScrollListener,but don't have pull up event .not perfect! github have many pullToRefresh view,but load more so sad. Which expert help Google achieve this function for th...
Am running a Primary App Processing App. However, I have encountered this issue of a NullPointerException. I have managed to identify where the source of the error is coming from, however, I am clueless on rectifying it. Could I get some help please. Thank you. Error Log: 07-09 11:40:26.318 ...
I'm running a mysql query and the resulting array is something like this, that changes every month: Array( [0] => Array ( [day] => 2 [count] => 10 ) [1] => Array ( [day] => 4 [count] => 39 ) [2] => Array ( [day] => 5 [coun...
Ok so, I was doing a puzzle on coderbyte, and here is what the puzzle stated: Have the function SimpleMode(arr) take the array of numbers stored in arr and return the number that appears most frequently (the mode). For example: if arr contains [10, 4, 5, 2, 4] the output should be 4. If there is...
I have checked apparmor and gave permissions to the file: LOAD DATA LOCAL INFILE '/home/toUpload.txt' INTO TABLE table_name (value0,value1,value2); will return: ERROR 2 (HY000): File '/home/toUpload.txt' not found (Errcode: 2) I am running on an aws with Ubuntu 14.04 LTS
I have an enum State and a class Neighborhood that uses them as data. I'm new to C#, so I'm not sure if this is idiomatic or could be more concise (or just plain wrong). public enum State : byte { zero = 0, one = 1, two = 2 } public class Neighborhood { private State _left, _c...
I have the following string of the format: http://www.somesomesome.com/ShowProduct.aspx?ID=232 http://www.somesomesome.com/showproduct.aspx?ID=233 http://www.somesomesome.com/showproduct.aspx?ID=272 http://www.somesomesome.com/ShowProduct.aspx?ID=253 I want to extract "ShowProduct.aspx?ID=232"...
when the EffectBox component mounted, add a show class to this component. But css transition not works. This is js code: var EffectBox = React.createClass({ componentDidMount: function () { this.show(); // setTimeout(this.show, 100); }, show: function () { $(React.fi...
As per this document we should be able to view JAmon metrics in JConsole. However I just can't find anything about JAmon in my JConsole session: The session is connected to a local Catalina (tomcat 7) instance running an application with JAMon dependencies (jamon-2.80.jar). I have the followin...
In Mobile Safari IOS 8,when I have Auto Fill enabled for Credit Card, in checkout, when I try to add a new card, safari prompts to save the card or not, and if I click on any of the options Safari Crashes. As per my research, please find below few links to discussion on same topic on apple forum...
I want to find the maximal subset of an array which is sorted Say I have a = [2, 1, 4, 6, 7] a_max_subset = [1, 4, 6, 7] b = [4, 1, 2] b_max_subset = [1, 2] Is there an efficient way to do this ?
I want to login to Facebook using ruby on rails. I have registered my app to Facebook as web app. And then I configured my project as following. 1) config/initializers/omniauth.rb provider :facebook, '12345', '1a2b3c4d', { :scope => "email,user_photos,publish_actions", provider_ignores_state: t...
I connected to local KepServerEX and now I am trying to connect to remote KepServerEX using c#. I found the discussion on the internet, I have configured DCOM for my computer to connect to remote Server, but unfortunately I still can not connect to remote KepServerEx. I used this command: KepServ...
All: I am learnig SQL now, but stuck at #7 of http://sqlzoo.net/wiki/SELECT_names Bahamas has three a - who else? Find the countries that have three or more a in the name Thanks
I am creating a wrapper around CLLocationManager but am struggling to initialize the wrapper LocationManager in my view controller. My view controller does the following: class MyVC: UIViewController, CLLocationManagerDelegate { var locationManager: LocationManager? { get { ...
I have two functions where i read the tooltip display values and it was not showing proper tooltips when i place the mouse over. It throws Uncaught TypeError: Cannot read property 'length' of undefined function addurlPoints(resultDataset) { var pointOptions = { name : resultDat...
I recently stated to wonder what is the best way to organize javascript files. Example: Let's say I have a HTML with input fields. Then I want to validate those fields before they are submitted. Where do I call these type of functions document.getElementById() in the external javascript file o...
I added one text field on the top screen where in the user can type the files and folders to search in Skydrive. Now I am not getting how to implement search functionality to search for files and folders. In skydrive we have get_skydrive_object_by_id by which we can search for the id of the folde...
I have the following code in Swift. I'm trying to implement the exact logic on objective-c and it doesn't seem to work. May I know what needs to be changed? CustomNavigationController.swift import UIKit protocol TraitCollectionOverridable { func preferredTraitCollection() -> UITraitCollect...
I have a label whose bottom I'm trying to anchor to the bottom of my custom nav bar (navBar). I'm trying to use this code: var label = UILabel(frame: CGRectMake(0, navBar.bounds.minY, 200, 21)) label.center = self.view.center label.textAlignment = NSTextAlignment.Center l...
I have an issue when developing my android application. I created an preference activity for my app and everything is fine. But when I create a preference screen to get the path of image in device but my code is not work. With the same code in different project it still work with no problem. Her...
Hi i write single stored procedure in insert update and delete but error is comming " incorrect syntax CREATE PROCEDURE must be the only statement in the batch" once see my stored procedure create Procedure EmployeeSingle( @EmployeeID int,@EmployeeName varchar(20),@Salary money,@Gender varchar...
In the below select filed populating values from mysqlDB. By default i am hiding the next two read only fields. I need to show the hided 2 fields when the value changes in the select field(irrespective of the value). I am not familiar with java script, i have tried with one script, but it is not ...
I am new to website creation and recently set up my Google domain with Github Pages. I read about the new Material Design Lite and want to apply the template to my website. Right now, all I have in the Github Pages directory is an index.html and a CNAME file. I downloaded the zip folder for the A...
I am new to javascript and I am writing a simple site, I having a problem changing the content of a div when user click any of the menu link. So far I've tried the following code below: When user click the menu the div text content will change. For example when user click the NEWS menu "<div cl...
I want to have my script open a webpage and click on the video to play it. All I have so far is: import webbrowser webbrowser.open("https://vimeo.com/95250540") Which will open the webpage but now I need to click on the video. I've looked at urllib and selenium but am quite lost. Anything i...
I have a console app which calls a command line program: var commandArgs = String.Format(@"/C """"{0}"" /user:""{1}"" /password:""{2}"" /report:""{3}"" /paramfile:params.xml /Quiet """" ", PathToExe, Username, Password, name); The app runs perfectly when I run it from the command prompt. How...
I have a simple function that filters a datatable based on the user's selected string values in combo boxes. If the checkboxes are checked, then the selected string in the combo box is match criteria for the where clause. The problem I'm having is I'm only getting back one record, the first reco...
I was going through the WSDL specification 1.1 where I encountered the following lines: "Note that a request-response operation is an abstract notion; a particular binding must be consulted to determine how the messages are actually sent: within a single communication (such as a HTTP request/res...
I am newbie to Android development So how can I make an mp3 stream player from specific URLs with play pause button, seek bar with buffering , I tried so many codes (some from internet and some of mine) Last result Is mp3 player with play pause but without seek bar I tried with try catch ,set on...
Seems like my server is being attacked by someone, normally I can see the IP of the attacker so my service can add that IP to firewall But this event log show only the name but no IP, what is the meaning of this?
I am curretly creating a simple website. In the contact information section, I am adding this html entry ☎ for phone (right before the phone number), and this html entry ✉ for email address (right before the email address). The idea is to display those two characters as solid black ch...
I would like input form to the database. after i want click the submit button the data that has been typed into the database but through google validation captcha. if successful, displays alerts successfully save the data but if the validation does not succeed alerts press captcha. could please h...
I have a shopping cart and when i click on the button["Add to Cart"], it highlights into color blue and changes its name to ["Added to Cart"]. However i want it to be unhighlighted and change the name back to "Add to Cart". The code is quite long but Im hoping you guys can help me. here is my add...
I've looked for the answer but couldn't find it on stackoverflow, so I ask it here. Let's assume I have some local changes since the last commit(and push) and I want to git diff of a file between a specific commit(several commits ago) and my current local version. I mean, for example, I can see t...
So as I need to upgrade my app to newer iOS i came across the issue with sizeWithFont command being depreciated. Can someone please help me out on how to replace it with the new Function. Here is my code: // Add label if label text was set if (nil != self.labelText) { // Get size of label...
I am creating a Rest based webservice using spring boot,while deploying in tomcat am not getting error.But when i'm trying to hit the RestController's method which is annotated with @RequestMapping and trying to print a string in the browser. Am getting the error: type Exception report messag...
I can't find a reliable way to find when the page has finished loading. My current code looks like this: function pageLoaded(callback) { function completed() { document.removeEventListener("DOMContentLoaded", completed); callback(); } if (document.readyState === 'com...
Python newbie here, so I'm sure this is a trivial challenge... Using Requests module to make a POST request to the Instagram API in order to obtain a code which is used later in the OAuth process to get an access token. The code is usually accessed on the client-side as it's provided at the end ...
I am implementing Location Updates on iOS 8 and using both Standard location services (startLocationUpdates) and Significant Location Change (startMonitoringSignificantLocationChanges). Does iOS automatically change the mode(from standard to significant and vice versa) of location updates if i ma...
Trying to follow the tutorial here https://code.google.com/p/svg-android/wiki/Tutorial However, when I try the line SVG svg = SVGParser.getSVGFromResource(getResources(), R.raw.android); the getSVGFromResource appears red and shows: Cannot resolve symbol 'getSVGFromResource' The import stat...
I'm trying to write a program (a single Java file) that will take an integer number in as input via the command line, and print out the digits in reverse order. Therefore, if the program is called “ReverseDigits”, I would call it in the following way: ReverseDigits 837562 as an exa...
I am unable to remove the empty space between treegridview and splitercontainer panel. What i want is if we resize the panel the gridview should also be resized and there should not any empty space between them. Please see the attached file Please suggest how we can remove this space .
i have installed tuleap, and created the project when i tried to checkout repo from Tortoise SVN cleint it gives the error Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, root@...
I've had a chrome extension on the web store for awhile now that uses screen scraping to grab and store data. Recently the website changed its interface and screen scraping is no longer viable for the use case. I believe the only option to get the same data is by intercepting and reading the body...
I'm trying to add a context menu to my Firefox plugin which will be used to get file links on webpages and send them to another function. The menu entries correspond to which, say a person the link has to be sent, so is a dynamic menu which is subject to get added or reduced in entries. I have ma...
I think i have read all topics on this issue but could not find (understand?) the solution. In a nutshell, I am trying to implement a dynamic cell height based on several inputs (like UILabels) and including an UIImageView. I have a cell for simple posts and a cell for posts with image (two cell...
I have a parent div and inside that there are child divs which are animating left to right. How to detect if any of the child div is animated. The child divs are moving and the left position in the child div styles are changing continuously because they are moving left to right. <div id="products">
I am attempting to make the last row in a UITableView visible, after it has been added. Right now, when I add a row and call reloadData, the table goes to the top. I figure if I get the indexPath for the last row, that I can select that row and it should appear in the list. I am unsure of how ...
I have two questions for database handling using Entity Framework. I am using SQL Server 2012/14 web api 2 (VS 2012/13) but it doesn't matter because my question is regarding code first approach for EF6. In code first approach if the table does not exist that EF creates it for you (EF's awesome f...
I would like to read/decode pdf417 barcode from my web app targeted to run only on mobile browsers. I have seen many barcode reader javascript libs online but none of them supporting reading of pdf417 barcode(one of the most popular barcode type) off-course creation of pdf417 was supported by the...
Can you please share what is the size of the address range, 0x 0000 0000 - 0x 0001 BFFF. I Can use a calculator to find, I need a method to calculate any range. Ex. 0x 0020 CD00 - 0x 002C BCFF, How can i know the size of this address range.
I have multiple lists of dictionaries in Python in the format [dic1, dic2, dic3,..., dicx] I'm trying to insert these dictionaries as a batch insert in mongodb: (pseudocode) db.batch.insert(dic1, dic2,...,dicx) but because each of the arrays are of variable length, I think I need to a for loo...
Hi I need filters such as brands,price from magento Data Base, to filter products by brand and price etc. From which table I will get these. And what php code I need to write in customized api to get these filters.
I am trying to get images to upload as flyers for events. I do have the parameters configured in the controller. No error is being shown, but the actual image is not rendering in the view (all you see is the filename). When I upload an image file in production (hosting with Heroku) it saves prop...
Is there a code, script or server that can be used to communicate between different programs written in different languages. For example there is a Server in C# and a client that is in php.
I'm using mysql-server 5.5 and had created a server instance. After created I try to open the instance editor and select Options File in CONFIGURATION but it says Configuration file '' can not be found. New file will be created on apply of changes and then Configuration file did not...
I am using the Google play services to fetch the users current location and try to display it in a TextView but for some reason nothing is happening. None of logs are printing out and the activity still says "hello world" rather that the coordinates. The app complies and runs without errors as we...
I'm attempting to run a web app remotely off my Ubuntu machine, but I keep getting an error telling me that Webpack cannot find the module Wavesurfer.js. This is in spite of it easily finding Fluxxor, which is within the same folder as Wavesurfer.js. Here's the message I keep getting. var Fluxx...
I have an e-book that I would like to integrate in wordpress. I would have to get a page listing the books from a custom post "books". When clicking on a book, I would display the different chapter of the book. Finally when clicking on a chapter i would like to display it. Knowing that chapters ...
Alright so I know this question has been answered for those asking in several other languages but it doesn't seem as though anyone has asked for Swift yet. I'm creating a sprite kit game and I need to spawn my enemies at random times (within a 0-2 sec range). Right now I have them spawning every...
I am writing an OS X SpriteKit app. I am transitioning from my main menu scene to the main scene, but the transition takes about 3 seconds to start. In my main scene, I have an onscreen piano that is generated programmatically. There are about 55 sprites that need to be loaded. Is there any way t...
Problem: I have Horizontal scroller, where images were of dynamic width and height. In my demo, its working like what I want. but while cheeking in Chrome and IE, image dimension is too small and I dono why images were adjusting its width according to outer container width. Expected Output: If I...
I am getting the following error when I install the Connector for Microsoft Dynamics from setup wizard . I have created a service account for this purpose and gave Administrator access in the VM and also in SQL(sysadmin,securityadmin,dbcreator). I have run the connectorHelper class in AX too. But...
In the below program I am trying to append and remove child nodes to/from a parent node in html document. I am trying to do this: Once Node 1 button is clicked, check if parent has child node2. If yes, remove node2 child from parent. Then append node1. My program works fine if node2 is alread...
I am working on a barcode scanning project. I use a barcode scanner to scan barcodes and the scanner communicates with my laptop via bluetooth. The bluetooth connection is emulated as the serial port communication. I have developed a Java desktop application to retrieve the barcodes scanned and ...
How to write a regex that says that given pattern is present ONLY once? for e.g.. if am searching for pattern 'file', 123file345 --> Match asdffile12 --> match file12file --> does not match
Does anyone know of an ad server with an SDK that will look clean in native iPhone 6/6+ for bottom banner ads? Currently i've been using Flurry and it looks terrible on 6/6+. I'm integrating Admob right now, but it doesn't seem that i'm getting anywhere. Any suggestions would be appreciated.
I am using Spring Framework I have jsp page , have upload button , i was able to select the image and upload it successfully in my Controller of SPRING I have uploaded the image using multipart image and I have saved it in folder successfully. but at the same time I want to show the same imag...
select wi.MOBILE,hb.TXN_TYPE from pbxhbl.WORK_ITEMS wi inner join pbxhbl.HBL_TRANSACTIONS hb on wi.MOBILE=hb.PAYER_MSVA or wi.MOBILE=hb.PAYEE_MSVA where wi.SOURCE_MODULE=2 or wi.SOURCE_MODULE=15 and wi.status=1 and wi.MOBILE select wi.MOBILE,hb.T...
How can we read & then stream content from a live site url - which has streaming Stock Quotes. I think we can use sse / sockets to send data - ie can stream them, but can we simultaneously read streaming data and them restream it in PHP Url is http://www.moneycontrol.com/terminal/index_v1.php ...
I often see code like along the lines of the following (which is similar to examples in aiohttp docs). @asyncio.coroutine def init(loop): srv = yield from loop.create_server(web.Application().make_handler(), '0.0.0.0', 8080) return srv Are there any advantages/disadvantages to doing it...
I have task that creating a in-house generic JSON parser using java platform. I need a code for list out all the objects and arrays that presented in a JSON file. Can any one help on this please?
100..toString() // "100" 100 . toString() // "100" Not able to understand why it doesn't fail? What is happening here?
I've been trying to move the date before the title in the List Category Posts wordpress plugin but no luck. I've searched every where with no luck. this is the code in the template php: //Show date $lcp_display_output .= ' ' . $this->get_date($single); //Show the title and link to the post ...
Okay I have this var URL = "http://stackoverflow.com/questions/10767815/remove-everything-before-the-last-occurrence-of-a-character"; console.log(URL.substring(URL.lastIndexOf("/"))); Gives you "/remove-everything-before-the-last-occurrence-of-a-character" How do I get "http://stackoverflow.c...
I want to go to my homepage with a username and password already registered in my database. I tested my registration page... works perfect... but at the moment that I enter the recorded data, my page is not redirected. My code is this: <form class="formlog" method="POST" action=""/> <pre> <span>...
I created 2 table as follows Table ForgeRock: id status amount Name date 1 0 4500 ram 04/02/2012 2 0 2000 shyam 05/09/2013 4 0 1500 ghanshyam 08/06/2015 Table ForgeRock1: id status amount Name date 3...
What I have: An sql db with employee data , along with the date on which the entry was made. A visual c# form which lets me do various things , such as add , edit and delete from and to the sql db. What I need to do: Have a Crystal report showing only the results of the employees(from ...
Think of HTML5 server sent event(I am using php in server side). To get server sent data I have this code: if(typeof(EventSource) !== "undefined") { var source = new EventSource("chat.php"); source.onmessage = function(event) { $(document).click(function(){ alert(event.d...
I am trying to solve this http://www.spoj.com/problems/CARD/ on SPOJ. But can't understand the statement. I have searched for editorials on Google, Spoj forum etc but all in vain. Please help me with a brief editorial to this problem.
Its possible change logic of collectionView: attributedTextForCellTopLabelAtIndexPath: delegate method for show date timestamp not by indexPath.item % 4 == 0? how like in SOMessaging day by day? or whatever? this coding is for displaying timestamp. - (CGFloat)collectionView:(JSQMessagesCollecti...
Code: typedef long Align; union header { struct { union header *ptr; unsigned size; } s; Align x; }; typedef union header Header; ................ ................ ................ static Header *morecore(unsigned nu) { char *cp,...
In our web application there is a div with several "items" in it. Some items of this div are images. These images are loaded dynamically. On the "loaded" event of the image loading I start calculating the dimensions of every item (I also log the dimensions with console.log). In some situat...
I Could not find the findAndModify() in mongoosejs. Does mongoosejs support it ? What is the function name if it supports ?
How do you convert a Doubly Linked List to an ArrayList? I have a doubly linked list called list, and need to convert each of its String elements to add them to an ArrayList, but I am not sure how to do this... Any help would be appreciated thank you!
I'm using PrimeFaces 5.1.In dataTable column outputText value get and display value in alert using jquery. <script> jQuery(document).ready(function() { alert($('#myForm:myTable:0:myText').text()); }); </script> <p:dataTable id="mytable" value="#{myList.value} var="myVar" rowIndexVar="rowIndex">
I am trying to make a shopping cart android app and i want to show the cart with number of items. attaching the screenshot of app below . When clicking on the cart icon its does not going any where.. :(. here is my code. MainActivity.java public class PandaActivity extends ActionBarActivity {...
I created a function to modify the default order status when an order is complete in my woocommerce site and hooked it to the "woocommerce_order_status_completed" hook of woocommerce. Here's my code function change_default_order_status( $order_id ) { global $woocommerce; if ( !$order_id ) ...
i AM TRYING TO OPEN ANDROID ACTIVITY ON HTML BUTTON CLICK. THIS IS NOT HAPPENING PROPERLY. I WAS USING JAVASCRIPT FOR THAT.WHICH IS NOT WORKING.MY JAVASCRIPT IS NOT GETTING CALLED . public class WebViewActivity extends CordovaActivity{ JavaScriptInterface JSInterface; @SuppressLint("...
my app takes a photo and tries to send the byte array from the last PictureCallback. The byte array from camera is okay, i tried to save to a file and did it successfully. my server code to send byte array: try { System.out.println("Sending the photo..."); // photo -> byte array from pi...
i want to generate all the Pixel distance from the sensor kinect, and display in array value. but the problem is when i try that in flat thing i got diffrent distance in corner n and in the middle. it's like kinect sensor take the distance diagonal value to the corner object. Is this how kinect s...
I have a service called "myService" for which I want to write test cases using Karma: (function () { angular.module('myApp').factory('myService', myService); myService.$inject = ['$http', 'UrlsFactory']; function myService($http, UrlsFactory) { var service = { ge...
Any one Please solve this error. I am getting error in the Select Query it seems,but i am not getting and one more error is missing braces in the following code.As i need to fetch the details from another jsp page by taking username as primary key enter code here <%@page import ="java.sql.*" %>...
I am having trouble bypassing the $this->form_validation->set_rules("blah") even when i'm writing the correct inputs. (Using data exisiting in the databases). What happens is that whatever input i do, the form_validation->run() seems to always return false. Please Help Me :( The View Part (The F...
Need to create a carousel for 3 divs containing different information, the carousel should show the current active element and should also show the beginning of the next slide,please suggest a solution to do this is the proper way. Thanks in advance.
So a situation: I type out this expresion $items.fe, autocomplete it with TAB. and i end up like this: foreach ($items as $item/*CARET HERE*/) { } Anyway to jump from current caret location, to within the braces? As well it is requirement at my work to not have any brackets if only one stat...
I wanted to query a sqlite, for each of row being processed. Take up some element as params, then query a sqlite. Is it ok or bad practice?
For some reason, I cannot get my Label Objects(TermLabel,DefinitionLabel) to line up with my text fields, which is weird because I'm using BoxLayout and that should line every component up. Is there something that I'm missing? import java.awt.BorderLayout; import java.awt.Dimension; import java....
after formatting my laptop I installed Android sdk and I work with that properly and the emulator is worked. but after installed the Visual studio 2013, now when I'm going to run the emulator it gives a error message emulator: ERROR: x86 emulation currently requires hardware acceleration! Pleas...
Given a model : class Model(Base): __tablename__ = 'dummy' insert_date = Column(Date()) pk = Column(Integer()) ... I need to replicated the following sql query: select a.* from (select * from dummy where insert_date = TODAY) a left join (select distinct pk from dummy where i...
I'm working on soap webservices. i want to know how to display response xml with empty elements when the data is null. Eg: My XSD: <?xml version="1.0" encoding="utf-8"?> <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <x...
I want to send the username of a user when he enter the best username and password using a form on the client browser to the server. On my app.js I have : var port=process.env.PORT||3000; var server = app.listen(port, function(err) { if(err) throw err; console.log('Server is running @ h...
I have my projects in github and I want it to import it to my fresh installed OS Pc. How to do this?
We are making a administrator business website. I and my colleague discuss about what will happen when session timeout. IMO, the popup appears and required user fill password to authenticate, if authenticated, the current page don't change. But my colleague said: "Why do many site redirect user ...
How can I make a scale that has increments different than 1? In the following example (edited from https://developer.gnome.org/gtkmm-tutorial/stable/sec-range-example.html.en ) I would like the adjustment scale bar to have increments of 5 (for example it should never have a value of 6). However...
I am getting current date using below code : <#assign aDateTime = .now> <#assign aDate = aDateTime?date> current date: ${aDate?iso_utc} How to 'get 30 days ago' and 'one year ago' date using freemarker ?
In our Rails 4 app, there are four models: class User < ActiveRecord::Base has_many :administrations, dependent: :destroy has_many :calendars, through: :administrations end class Administration < ActiveRecord::Base belongs_to :user belongs_to :calendar end class Calendar < ActiveRecord...
i just want to pass the array returning from a http.get() to an variable, to filter them in the factory. (similar to the chats-example from ionic) Here is my factory: .factory('pizzaService', function($http) { return { all: function() { // Return promise (async callback) retur...
I am trying to use the Ardiuno Uno with the LMT86LP temperature sensor, but I am getting strange output voltages from the sensor. I have the pins(from left to right, flat side facing forward) as VDD, OUT, and GND. VDD is connected to 5V, GND to GND, and Vout to A0(analog pin 0). The readings fro...
I am new to AngularJS and was trying to get a basic code running. I want to use nodejs as my server. My nodejs server file looks like this: var express = require('express'); var app = express(); app.listen(8080); console.log("App listening on port 8080"); app.get('*', function(req, ...
I want to run cpplint on my whole project not for single file to get a report for all C/C++ files in the project. How to do this on OSx and Windows?
I need to set value returned from jQuery Success function to the variable in PHP page. $(document).ready(function(){ $('#form').submit(function(){ $.ajax({ url : 'test.php', type : 'POST', data : $('form').serialize(), success: function...
I am trying to run this code of nlp . import nltk from nltk import load_parser cp = load_parser('grammars/book_grammars/sql0.fcfg') query = 'What cities are located in China' trees = cp.nbest_parse(query.split()) answer = trees[0].node['sem'] q = ' '.join(answer) print(q) But i am getting co...
I have a C# script, called A. A are many variable. I put it on a gameobject also called A and init all the variable in the Inspector. Now, I have another gameobject B, I want to pass the A script to the gameobject B without init the variable in another script. I tried AddComponent(), But it just ...
There seems to be a svg issue in ie with displaying background image from an assets folder. Some svg portions work while other parts don't. It works fine in all other browsers except ie. The css background is similar to the following: .mark--title { background: url(/assets/img/icon_sprite.svg)...
Math gurus please help! I'm using numpy.polyfit to get the "slope" of a line from a python list. I need to act on the data if it's a negative slope, but I'm getting very slightly negative/positive values instead of a zero (horizontal) slope, and am unsure why. eg. [206, 206, 206, 206, 206, 206...
I'm planning to make a project in Python with my brother. We both have our own laptop. After doing some research about pair programming, I searched for tools that can help us with our project and saw Floobits. We tried it and it was great! But we had one problem. The plugin caused a lot of data u...
Hi I am trying to access zookeeper running on port 2181 on machines A,B and C from kafka client running in machine A. I have set zookeeper.connect parameter in config/server.properties in kafka folder in machine A like this: zookeeper.connect=A:2181,B:2181,C:2181 But the problem is that afte...
I go through following links How can I make JavaScript make (produce) new page? Create and append dynamically I want to add html elements dynamically with JavaScript inside a div but I donot want to follow 2nd link because my javascript code will become very big and complex. Is there a way s...
How to configure Rprofile in 'library\base\R' so that default charset is UTF-8 rather than native. The encoding configured as line options(encoding = "native.enc") I suppose in place of native.enc, we need to put UTF-8 relevant value.
How do I get a keystone list objects value? I just want a simple clear example about how to use a keystone list object to populate a jade template.
I am creating a web api using TORNADO and python. I am a beginner in python programming. My code works fine but when I use the 'yield' key word to find the user entered data in mongodb I get error. My error is 'NoneType' object has no attribute 'split' And when I remove the 'yield' keyword it g...
I am currently taking a C++ codebase and writing managed C++/CLI wrappers to enable C# bridging. One of my managed classes contains an unmanaged block of malloced memory: public ref class ManagedFoo { public: ManagedFoo() { m_fooData = malloc(AmountNeeded); } ~ManagedFoo() { free(m_fooDat...
I'm creating piano app but I got problem when i click on the button to play sound many times i can't hear sound when i click on the button again. After i click on the button many times all the sounds are not heard how to solve this problem? public class Music_piano extends Activity { Button ...
I am working on qt to develop a socket programming.i am posting the code here. "mainwindow.h" #ifndef MAINWINDOW_H #define MAINWINDOW_H namespace Ui { class MainWindow; } static void handler(int sig, siginfo_t *si, void *uc); class MainWindow : public QMainWindow { Q_OBJECT public: exp...
Android Sdk will not run in Visual Studio 2012 (aapt.exe not found) ???? Error List visual Studio 2012 and Xamarin Visual Studio 3.11.446: Error 1 Cannot find aapt.exe. Please install the Android SDK Build-tools package with the C:\Users\goldpower\AppData\Local\Android\android-sdk\tools\and...
Hi, I am using this code: $curl_handle=curl_init(); curl_setopt($curl_handle, CURLOPT_URL, SITE_PATH . '../../blog/index.php'); $xml_file = curl_exec($curl_handle); preg_match("/<title>(.*)<\/title>/i", $xml_file, $matches); $title= $matches[1]; curl_close($curl_handle); $title= $matches[1]; ...
I'm trying to return data set in oracle-sql developer using following SP. CREATE OR REPLACE PROCEDURE RPT_TIMESHEET (p_recordset OUT SYS_REFCURSOR) AS BEGIN OPEN p_recordset FOR SELECT DISTINCT E.EMPID,E.FIRSTNAME,E.SIRNAME, TO_CHAR(T.CHECKTIME,'DD/MM/YYYY')AS LOGDATE, ( SELECT TO_CHAR(MIN(K.C...
I am new to android development and i was getting a list of item from server and it works.I was wondering if there is a way to store the list after app exit so that app can show previously displayed data on new instantiation of app,just like gmail app does.
I wast just reading Gmail go-to actions (view actions) and following https://developers.google.com/gmail/markup/registering-with-google to get the approval. The registration form asks for From what email address are these emails sent? * Please enter the full email address (e.g. noreply@my...
I am building a C++ prject using cmake on windows. I have an option which is OFF by default and I'm overriding it to ON using cmake command line arguments. I build my project using the following commands: cmake.exe --config "Release" . -DANALYSIS=ON cmake.exe --build ./ -- /p:configuration=Releas...
So I have a pretty simple problem here. When I run a str_replace function on a comma separated list to remove a value with a comma infront of it, the function removes ALL of the commas in the list. What am I doing wrong here? The objects in question: $tags = "16, 17, 18, 20, 21, 22" $tag_id...
In shell, cat filename | grep -i error would return content from the file having the string 'error' . What is the Python equivalent of this ?
I am writing a C# program, which uses the UI Automation via Com interop. However, I am having a problem adding/removing an event handler from within another event handler: My program starts up a new MTA thread, and on that thread, calls AddFocusChangedEventHandler(). I want to monitor for prope...
Here is my code: void funct(carl& c){ std::cout<<"test"<<std::endl; } int main(int argc, char** argv) { carl c; auto f = std::bind(funct,&c); std::packaged_task<void()> task1( f ); // error //std::packaged_task<void()> task1( std::bind(funct,carl()) ); this one worked ...
I have a simple bootbox / javascript confirm window at: https://www.guard-gate.com/test2/index.html When Success is clicked, the user is taken to google.com, how do i also ensure a brief email with a custom message is sent when the button is clicked?
I want to create a Depth Map in order to obtain the 3D position of each pixels so that I can have 3D position of some selected Item on my picture. In order to see if my depth data is correct, I visualize it with MeshLab. I use the stereo data of KITTI dataset so the images are rectified and the ...
I'm not an expert in networking so i ask guidance regarding the matter. I've develop a simple program that would write and read data files (.txt files), i wanted to use our Local Area Network (LAN) so that I could write and read files from another computer stations. What I did is install my pro...
I've one requirement in which i want to create a dummy xml file for all the mandatory elements in the xsd. How exactly i can identify that the element is optional or mandatory in the code it may be either java or tibco bw?? Thanks, Sushma S N
Here is scenario. I have below pojo Property { String name; String value; } I want to pass an array of above pojo as query param. How do i do that. Something like http://myservice.com?property:name=n1&property:value=v1&property:name=n2&property:value=v2 And I want to figure out at se...
I register the registerNib method in viewWillAppear() and when I use presentViewController(viewController, animated: true, completion: nil), it works fine. But when I use presentViewController(viewController, animated: false, completion: nil), it doesn't work. Error message is following. Do...
I have an oracle.sql procedure with 3 parameters (1 in, 2 out). All of these are customs recordset (Type Object) My problem is to get the struct attributes in an object[]. If I try this I will get the following exception. java.sql.SQLException: Interner Fehler: Image is a collection image,...
Suppose I have a list of layer-2 switches that do not support LLDP (Link Layer Discovery Protocol) but support SNMP. I have the management IP addresses of these switches, but I don't know how they are connected to each other. I am able to get the forwarding table of each switch via SNMP, which i...
I'm testing cakephp 3.0.8 and I have a problem. I'm trying to add new ingredients in multiple languages at the same time and for that I need my form to have an array inside the "name" and the "slug" field containing the language and the value in that language for the i18n table in the database. B...
I am using Zend Framework to implement the website. For example I have an array $shadow contain somes ID of people. The $shadow query is executed in Model and call out in Controller without problems. Now I want to show the data in a HTML table in View using Ajax because of some issues, i can not ...
I'm getting this when calling UserMananger.FindByEmailAsync Exception thrown: 'System.MissingMethodException' in EntityFramework.Core.dll Additional information: Method not found: 'Remotion.Linq.Parsing.ExpressionVisitors.TreeEvaluation.PartialEvaluationInfo Remotion.Linq.Parsing.ExpressionVisi...
So I have 10 checkbox fields, more then 1 can be selected, but at least 1 has to be selected at a minimum. I had it working use the name="" attribute but that was not the case anymore as the name has to be unique to integrate with our CRM. So I added the rule to use the class instead using addC...
How do I access IBOutlets that have been created in another class? here is my code... Class one .h #import <UIKit/UIKit.h> @interface ViewController : UIViewController @property (retain, readwrite) IBOutlet UIView *myView; @end .m #import "ViewController.h" @interface ViewController (...
I am executing the tasks in GuideTour Playground for Swift. And there is a function for sum: func sumOf(numbers: Int...) -> Int { var sum = 0 for number in numbers { sum += number } return sum } And after that there a task: Write a function that calculates the average o...
I'm trying to use Glide instead of Picasso, but can't find the way to do a couple things I was able to do with Picasso. It may just be me, so if someone can help, I will be really thankful. I'm trying to create a "gallery" with pictures from a json file. I'm using a RecyclerView to show a grid ...
We are using Facebook Authentication in IdeaCellular.com web site. It is working fine up to the Last July 6th 2015. After that it was showing the below message.When ever i'm clicking on Facebook icon on our website it is showing the below message "Defined URL unauthorized configurations from thi...
Is there a way to check if a property exists on a model? var self = model.get("users."+userId); if (! self.name.firstName){ //do something }
I wish to read a file in a chrome app. But, I don't want to prompt user to choose file using file dialog. Instead, I wish to hardcode the file path in the app itself. Can anyone suggest me how I can declare a file object with a filepath in the system. I want to use FileReader API later on. Than...
I want to implement search & pagination as easily as possible using default angular features as Angular 1.4 now has begin parameter in limitTo filter. Desired functionality : Search from all items in array implement pagination using limitTo filter Issue : if we add begin in limitTo i.e. lim...
i wrote this controller: [HttpPost] public JsonResult GetTrackList(POS_model item) { //item.item_code //item.track_type if (item.track_type != "Regular") { POS pos = new POS(); DataTable dt = pos.GetTrackList(item.item_code, Convert...
I made task table through the ng-repeat, Each task in table can can be modify. Task table will have to updated with updated task. So for this we need to access particular ng-repeat element. I want to know how to access particular ng-repeat element and update this with new task ng-click=editTask(...
guys. Please help me. I have problem as follow: At the localhost everything ok. But, at hosting after model save method, controller redirect method return blank page without any error. my code here: public function actionCreate() { $model = new Project(); $file = UploadedFile::getInstance($mod...
So I have been trying to use only html on my page because I have no idea on how to use or set up a Jquery, and i'm barely understanding js. So if there is a way to close a popup window without using any of those let me know. If not, then show me the easiest way how to do it. And please act like i...
casperjs is not work by cron.. so, I maked test shell script test.sh file .......... #!/bin/sh casperjs --version /etc/crontab file.. 40 17 * * * root /home/test/html/run/test.sh >> /home/test/html/run/test.sh.log .bash_profile file ....... export PHANTOMJS_EXECUTABLE=/usr/local/bin/ph...
I'm trying to adapt this userscript for other site i'm browsing , but without any succes . http://pastebin.com/eU8HDHX0 I only need the var EndlessScroll part from line 580, but i seem to break it when removing all the other functions . The site i plan to use it on seems to have the same pagi...
I have two variables as such: $variables2007 = "item1;Item2;Item3;item4" -split ';' $data2007 = "Data1;data2;data3;data4" -split ';' I am trying to get these into a table so that the contents of Variables2007 matches side by side the values of Data2007. I've tried a customPsobject as such: $Pr...
I am using ng-repeat to display a property of an array. and i need further details to share with other elements to from this array. but the element not nested inside of the ng-repeat. In this case is it possible to set the array object as a model to share the details to other elements? here is ...
I have a csv file (csvlist.csv) that contains the X/paths of the XML elements I need to change in the first column. The texts I need to change original node values to are given in columns 2 on wards. Path Edit1 Edit2 Edit3 E...
I have asset.asset there i have added place1 many2one fields i will create some records through this form . my requirement is that when i select any location in calendar.event at place the my next field should get only those records which are related to same location suppose i have created ...
I am trying to upload a file via REST using GRAILS curl -X POST -H "Cache-Control: no-cache" -H "Postman-Token: d5d7aef8-3964-311b-8b64-4a7a82c52323" -H "Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW" -F "file1=myfile.jpg" -F "fname=swateek" -F "lname=jena" '...
I can't make this .py .exe help me. i have python34 installed on windows 7 - 32 bits This is a Snake.py simple game and i can't convert it using py2exe. i looked in google and stackoverflow and everywhere else but couldn't fix it. i get this error when trying to convert the script. The error: h...
I have a dialog box where the user can enter a phone no. and click add to add it to the user account.However, there is a problem now and it doesn't work. There is a javascript function called add_phone and a php function called add_phone in 2 different files. The one pasted below is a javascript...
I am currently facing 3 issues: Col-sm for top right-hand corner icons (job seek and employer buttons) cause col-lg settings to be messed up. I am trying to make them look like the image attached below. Logo on the top left hand corner causes header to hear vertical scrollbar in mozilla firefox...
Hello Everyone, I have developed a mobile app using ionic framework and cordova. In my backend mysql. and storing data using php code. Any way to integrate Interswitch payment Gateway using ionic and cordova or any other for hybrid mobile app.
<ListView Grid.Row="1" SelectionMode="Single" x:Name="RElatedArticlelistBox" ItemsSource="{Binding ArticleDetails.RelatedArticles}" Margin="0,8,0,0" Height="Auto" HorizontalContentAlignment="Stretch" SelectionChanged="RelatedArticle_selectionChanged"></ListView> In My windows phone 8.1(WinR...
I have never experienced this before, but from a thread I am running gdk_window_get_origin and it is giving me errno of 11 which means EAGAIN has anyone ever experienced this? Were they able to fix? The pointers I passed to it were instatiated at random numbers, and it does get updated to 0, is ...
I have been trying to solve this bug for days. I made a generic array class, from which I used generic inheritance to create a numeric array. Everything works perfect; however, I am having trouble with multiplication/scaling of the numeric array. I overloaded the operator* in the following standa...
I am using Intent ACTION_SEND to share a content in different social media. Now, disregarding other apps in there leaving twitter, facebook, instagram, How will I know if the shares have been successfully posted? Is there some kind of listener for it? Or are there intent for result features for...
I'm trying to write a create method that collects the ID of the profile the user is currently viewing, along with some other information that is irrelevant to this question. However, because the create method POSTs rather than GETs (as I understand it), the value of params[:id] doesn't exist so i...
I have one store which is getting date in dd-MM-yyyy format .I want to sort this date in my extjs grid in such way that all the date of same month should display one after the other and next other month date should be displayed.But What is happening is that in extjs all the date are treated as s...
I found my device crash, then export coredump file from my device and parse the files. below are the result of parsing the files #0 0x2d925864 in ?? () from /home/wht/program_file/arm-none-gcc/fsl-linaro-toolchain/arm-fsl-linux-gnueabi/multi-libs/lib/libc.so.6 #1 0x2d8f2288 in ?? () from /home/...
I have a switch built in to set variables based on a $_POST['x']; my echo test works on all the variables but one, and i cannot seem to find out why: switch ($jobType) { case "pp": $jobType = "Pick Pocket"; //echo works 'Pick Pocket' $success = rand(1,100); //echo works - ra...
what library do I need to use to be able to use the Put class? Tons of research done but cant get the query right on my search engine... Code: String[] values = line.split("\t"); Put row = new Put(Bytes.toBytes(values[1])); thanks in advance.
I am intending to call same function for all columns. I tried many different way to call function. None did work. I am sure i did something silly. If someone can correct me. $scope.gridOptions = { enableSorting: true, columnDefs: [ { field: 'name', //cellClass: howCanIhaveCommonFunction(...
When I try to post data from AngularJS, I am getting the below error. XMLHttpRequest cannot load https://localhost:8089/services/auth/login. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access. He...
parameter 'CV_1': OracleType.Cursor parameters may only be ParameterDirection.Output parameters. cv_1 IN OUT SYS_REFCURSOR, i passing output parameter for cv_1 SYS_REFCURSOR like ('_').but showing above error but actually its work correctly in my other code. please give my solution on that it's...
I set up my App according to the Android Parse.com tutorial. I am using the Picasso Image Loader library to load the images from a URL. For some reason, it stops working when the Push Notification is setup.
I need to disable the back button of browser in my single page application. I tried using methods like onhashchange or window.history.forward but they don't work (reason may be that url doesn't get changed here) Please help! Thanks.
I have problem with android implementation one-to-many relationship in Parse.com. I am trying to save relation between Category and Questions using pointers. I can get pointers (IDs of Question) but I don't know how to get the data they are pointing to. Is there any method to get them or do I hav...
SELECT EXTRACT(DAYS FROM date - first_value(date) over (ORDER BY DATE)) + 1 days I had this code working fine but after switching the date column from timestamp to date, it's erring: ERROR: function pg_catalog.date_part(unknown, integer) does not exist LINE 1: SELECT id, EXTRACT(DAYS FROM dat...
I use a web app at work and I would like to script process of copying text which is generated randomly each time opened. I wanted to copy this string and be able to paste it to an external program. More specific- I am using an web app ticketing system at work and when I create a new ticket I nee...
I am working on project where i have come across situation where i want to fetch the url (Eg : http://stackoverflow.com/questions/ask) and when user visits same page with dynamically changed variable only , i want to find whether url is similar or different. Eg: url 1 : mysite/students/view u...
I am new to Activiti and am working on Activiti mail task in eclipse. I want to make an application to send emails using Activiti mail task. I have looked up in the web but couldn't find much help. I have looked up in the Activiti user guide but couldn't figure out from there. Could you help me w...
Hi I am building one application in which I am facing one issue for crop intent. My crop intent not returning any data for crop result on android 5.1.1. On older device its working fine.I tried this in following ways Intent cropIntent = new Intent("com.android.camera.action.CROP"); crop...
I am trying to connect port 2181 on a machine 10.10.10.11. I have tried telnet 10.10.10.11 2181 but it is giving connection timeout. Then I went to the machine 10.10.10.11 and checked iptables by iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination ...
I've run into a situation which I think is beyond what you can do with custom format strings. But the code I've written is so gross I thought I would ask anyway. What I need is for a decimal to be displayed as either a 6 or 7 digit string, like so: number = 12345.67M (optional) tenthousands th...
I have date in this format 2015-06-23T00:05:00+00:00 in string and Now I want to convert it in 2015-06-23 format and save that format in string.
i Want to add days to a date and then increment that date over a time span. i Have the same time span issue lock down but i am having a issue with trying to make the date increment properly i know that getDate() + 7 is wrong and i would not like to use a plugin. Any Ideas? the main issue is if t...
I got a new project from the client, it's about enterprise app. My question is, is it possible to create an app is a container application that rules/hold all the modules? What I mean is the container application is the native app itself but the modules can be native or hybrid. Below is the sampl...
How can i show the grid information in ouput document for processmaker? I have used enter code here @>GRID-NAME @#FIELD-1 @#FIELD-2 @#FIELD-3 @<GRID-NAME but is not working``
When i trying to use ionic build android in cli and it returns Exception in thread "main" java.lang.RuntimeException: java.net.ConnectException : Connection timed out: connect at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAcc essManager.java:78) at org....
There is a specific gem that comes with an executable, that we would like placed in usr/bin, but we would not like all executables placed there. This would allow us to forego the bundle exec on a regular basis. Is this possible?
How can i get the ID's of user ,who are login with my apps? I have two activity.First one is login activity and second one is registration activity.I am also using json.If user is successfully registered then it create a id.I need that id at my login page. thanks in advanced
What I want to do I want to add the possibility for a user existing on a 3rd party API with OAuth2 to logon to my Django app using their user / password from that 3rd party API. This 3rd party API is using only the grant: password type so I would just retrieve a token from it (http://3rd-party-...
I have the data: Distance Average Standard.error CI -300 0.9338864 0.01409078 0.02761792 -150 0.9339457 0.02097350 0.04110805 -50 0.9495119 0.01359277 0.02664183 50 0.8588988 0.03599673 0.07055359 150 0.8531203 0.03047781 0.05973651 ...
I have this teiid.groovy script to execute an SQL querry on a Teiid VDB: sql=connect(${jdbc:teiid:PREVIEW_d3cd3bd1-7b0a-4ca0-94f9-84e37ce7b106_iCare_P5_project.1@mm://localhost:31000}, {$user1}, ${user2014!}); sql.execute("select * from ( exec "iCare_P5_Resident_Model"."iCare_P5_Resident_Proc"...
Here is my mssql query: SELECT ROW_NUMBER() OVER(ORDER BY item_items.item_id ASC) AS Row, item_items.item_id, item_items.item_description, item_items.item_function_id, item_brands.brand_name, item_function.name, item_part_relationship.pa...
I have a bash statement to test a command line argument. If the argument passed to the script is "clean", then the script removes all .o files. Otherwise, it builds a program. However, not matter what is passed (if anything), the script still thinks that the argument "clean" is being passed. #!/...
I have a USB device but I'm not able to use it. Partitioning fails each time. [20150709 07:35:45] root@lz:~$ fdisk -l -u /dev/sdb Disk /dev/sdb: 4194 MB, 4194304000 bytes 130 heads, 62 sectors/track, 1016 cylinders, total 8192000 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logic...
Is there an elegant way to force the execution of a function and return a NA consistent with its normal output type if any error is encountered? For example, to have lm batch process data in R, and pick just a single estimate, avoiding stop on errors using tryCatch: lmCoeff <- function(beta, ....
i have a page where there is an asp:fileupload then by the time a picture has been uploaded, it will be stored to an image folder. i also made another webpage which has a gridview and that gets the images from the destination folder. however my problem is that i want to download the uploaded ima...
http://www.springframework.org/schema/context/spring-context.xsd"> <context:component-scan base-package="com.PMC.hellocontroller" /> <bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver" > <property name="prefix"> <value>/...
following basic wxpython program that draw dashed lines with both device context (dc) and GraphicsContext (gc). dc draw the dashed lines successfully, while gc fail to draw the dashed lines. I need the gc since I have to play with alpha blending import wx class DrawPanel(wx.Frame): """Draw...
I want to create a rails project in which I won't need a database. I like to do things in a clean way, without leaving traces behing, so I thought I'd remove all db-like gems from the project. I started my app with rails new test_app --skip-activerecord Then I went on to remove the gems asso...
SpriteKit Game: printing : calling -display has no effect. It's being printed I guess when the view is loaded but also when rotating the device which obviously rotates the view. What is this? Why is this happening? Is this something to do with why the game lags in the simulator ?
I'm working on a project to learn Python that parses out my messages.htm file I downloaded from Facebook. My goal is to parse this file, and store the messages such that I can output fun information: # of messages, most common words, etc. I need a way to store each message thread individually, ...
** i am looking for a code in java regarding the orientation of a tiff image. I want the tiff image to be uploaded or browsed from the computer (i have done that) but it is not uploading to the database . then i want to check if the tiff image is correctly oriented or not (lan...
@Html.TextBoxFor(m => m.SourceCurrencyValue, new { @onchange = "convertCurrency()", id = "_sourceCurrencyValue", decimalfield = "18:3" }) How can I set decimalfield = "18:3" from code behind. Requirement is because decimal field value changes according to conditions.
I have a couple of questions regarding transfer encoding. -> Our backend scripts currently are taking ~ 500 ms, the HTML is generated in various parts/sections. So now if send data via chunks my page should by more responsive, is that reasoning correct? -> Now from this "Transfer-Encoding: chunked
I am trying to find the record using recordId in Filemaker but getting exception as Field is missing Here is the query I have used $query->addFindCriterion('recordId', 12); Any other alternate way to query the record using record id
I'm doing my first big ReactJS/Flux project and I'm using react-router to specify the app routing. I have a Sidebar which list different queues, a cases component which lists all my cases and then I have a detailed view of a case. My problem is that whenever I click on a specific case which l...
« first day (617 days earlier) ← previous day next day → last day (457 days later) »