« first day (617 days earlier)      last day (457 days later) » 

3:04 AM
0
Q: ng repeat not rendering on load

pdotsaniI 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...

0
Q: Type in assembly is not marked as serializable

bhan_92I 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...

0
Q: Detect network cable unplugged errors with epoll

thanhtvI 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 ...

0
Q: how to share a queue when there are more than one thread

GGGThere 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(): '测试队列'...

0
Q: Some Japanese texts display wrong on safari mobile

methisi'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> <!--...

0
Q: Why the Python regex does not match for (?=) here?

HarutatsuAkiyamaI 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 ...

-1
Q: In unix : Inserting a string at particular position of line

Mayank 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...

0
Q: how to refresh page in angularjs?

user944513I 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...

0
Q: Pipe character is being skipped in java string

kairavI 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...

0
Q: Firebase to power SAAS APP

WojonsTechI 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...

0
Q: My AVPlayer won't pause audio even when I explicitly tell it to pause?

Vlad BahtjakI 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...

0
Q: Why is passing mutex to thread not possible?

BobPassing 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...

0
Q: Backbone.js Collection Size - Don't display if limit reached

dennismonsewiczI 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) { ...

0
Q: IF statement not executing for graphics (Space invader game, dr java)

ohheyautimport 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 = ...

0
Q: pointer without allocating memory assignment

Ray  LeeIn 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...

0
Q: Reverse Geocoding to picking up names of street names in google maps(android)

user3676224im 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...

0
Q: Disallow an android device to turn off?

JonFirst 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 ...

0
Q: sending fake event to GTKEntry

Danial AlihosseinyI'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.

0
Q: Adding DataTable to DataSet in C#

Michael Joshua RamosI 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) ...

0
Q: In C, how should I cut a text file between a chat and another?

bdllhtlgnI 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...

0
Q: Occurence of warning (argument is not numeric or logical)

matx yhatxzMy 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...

-1
Q: Building a login system using sql, php, etc

Sarah MarkersI 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...

0
Q: The file '/Views/Home/Index.cshtml' has not been pre-compiled, and cannot be requested

silk routeI 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...

0
Q: Why doesn't this Rust program crash?

yongConsider 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] ...

0
Q: Stream Video in C++?

AshkayI 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...

0
Q: Cordova platform add android got stuck

ChenerWith Windows, I followed everything here, also set Path for downloaded android SDK. However, it just stopped at platform add. The screenshot of cmd

0
Q: How to query on bitmask fields?

Andy HarveyA 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=...

0
Q: How to remove excess data on datagridview?

Gil CristopherI'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

0
Q: Chrome Extension's Icon on click

Farhad GhayourI'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...

0
Q: Populate Datalist from the Database

faisal abdulaiam 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...

0
Q: I Im trying update multiple values from another table by multiple the two colums of two table on th basis of date and symbol

Asif GanaieUPDATE 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...

0
Q: PHP MySQL get amount of rows + display

md_5So 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...

0
Q: How can I pass a variable into a datatable in cucumber to a stepdefinition in java?

Esteban Balvin RuizI 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...

0
Q: Extracting result of glmer() function in R

CynderellaI 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()...

0
Q: output format in Jena Fuseki server

Monalizzagiven 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...

0
Q: Saving dynamic data as a combination of generic rows - store stock count

ThakhisisI’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...

0
Q: Random string not in DB

exilepcNewish 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...

0
Q: Get Multiple CheckBox value instead of true/false?

Edward.KHow 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: <...

0
Q: configure openvswitch in Amazon EC2

zhaojun12i 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...

0
Q: the last page of the page view controller not stable

Jenny CheungI 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 ...

0
Q: SearchManager.OnDismissListener never called

HaloMediazMy 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, ...

0
Q: calculating time remaining using php time()

jpgerbI 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 ...

0
Q: what's different between GapDebug and jsHybugger?

吴毅凡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

0
Q: Python: appending dictionaries in a list

Rakesh DhoteThis 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"...

0
Q: javascript foreach with mysterious variable

user3502374just 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...

0
Q: numerically solve for limit of integration python

gumpyI'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...

0
Q: Minizinc - How can I constrain each column of an array to contain one of a list of integers?

fuzzy_logic_77I'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...

0
Q: Apps only run in outlook windows client when client is run as administrator

mandrakeMy 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...

0
Q: This is slow on my android device

user2924127I 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...

-1
Q: Add provided dependencies to Intellij IDEA Classpath in run configuration

Tharinda_tpwI 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...

0
Q: Render dynamic UI with HTML versioning in Angular JS

naga1990I 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...

0
Q: implementing socket.io on existing application

andyMy 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...

0
Q: HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid

Lst PatrickI 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...

0
Q: OracleSolaris 11.2 -- character device in /dev/*

MarkNormally 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...

0
Q: After open gallery, the apps close

Xenix Putra SasongkoFew 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...

0
Q: Check if entity is being tracked by Entity Framework context

FaNIXI 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 ...

0
Q: How to avoid Safari css zoom margins?

DogeI 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...

0
Q: Check all elements are empty in form with Javascript

parvathy sajii 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...

0
Q: Array index out of range in tableView

Sergio NovoaHello 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() ...

0
Q: Cannot redeclare function previously declared, declared only once

Wahib MkadmiI'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...

1
Q: R programming: cbind to specific column by column name

user277653Suppose 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 ...

0
Q: How to move one field out of a struct that implements Drop trait?

Craig M. BrandenburgHere'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...

0
Q: Replace multiple occurence of one character with diferent characters in java

GrantI 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 ?

0
Q: Why are all styles lost when the js snippet is executed from a bookmark?

NeoWangI 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...

0
Q: hql select from an update statement

Panadol ChongGood 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...

0
Q: Python - Getting User input equalling answer and displaying correct or incorrect

JAA FEEELSo 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...

0
Q: does TelephonyManager.getCellLocation() work on lte and wcdma phones?

rdf1356I'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...

0
Q: python regex to construct a structured data structure

BinI 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...

0
Q: Box2d bodys not working as expected when implementing Pixel per ratio

SnippetI 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...

0
Q: get background image url using attr()

Alice XuI 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

0
Q: Why an entry of pure virtual function in virtual table is required

NiharMy 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...

0
Q: Constraints within RankNTypes

Mike IzbickiThe 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.)...

0
Q: Whats the equivalent to Swift 2.0's "guard" in Python?

sirvonWhat is the equivalent Python command or methodology to Swift 2.0's "guard"?

0
Q: How to format Angular Bootstrap datepciker value to valid Mysql date?

JerielleI 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 ...

0
Q: Preventing css boxshadow overlapping on border of its parent div

Sangwoo HanI 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...

0
Q: Create a delay between making a request and downloading the response in Python

andymayersI 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 ...

0
Q: jquery mousemove event could not be fired in IE in some position?

Youku KMSFanI 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...

0
Q: I cannot get my printf statements to align in java

Caleb HoffmanI 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++){ ...

0
Q: Diffrent date in view and model than in POST

user1974566So 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...

0
Q: How and when does the bind function work?

AnkitI 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 :[ ...

0
Q: PHP MySQL select data where in column array

user3206703If 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 ...

0
Q: Updating $scope in Controller does not update Directive?

kidcapitalUsing 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...

0
Q: spring boot problems with aop and controller

zhangzhidewhen 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...

0
Q: read button while dragging the mobile phone touch screen

Samira Jayasinghai 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...

0
Q: UIkit CSS Drag/Drop file upload component

MatthewI'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...

0
Q: I'm having a hard time getting some elements to resize in JavaFX

capncoolioI 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...

0
Q: How to Create css Dashed Border?

GuessedI 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:...

0
Q: Convert implicitly float to other type

Dlean JeansFor 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...

0
Q: Can't save checkbox value in meta with wp insert post?

Umair ShahI 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...

0
Q: Custom ViewGroup refer google SwipeRefreshLayout load more

tosslifeGoogle 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...

0
Q: NullPointerException Error

developerAm 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 ...

0
Q: Fill array with zeros

EdgarI'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...

0
Q: Why is my program faster than the one using a python built in function?

ChillBruhOk 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...

0
Q: mysql LOAD DATA LOCAL INFILE not finding file

MehranI 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

0
Q: What is the most concise form of an immutable data class in C#?

kdbanmanI 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...

0
Q: Extract exact string within a string and append

IWantToLearnI 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"...

0
Q: ReactJS: css transition not work in componentDidMount

Wang Wendywhen 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...

0
Q: How can I get JAMon metrics in JConsole (via JMX)

greenAs 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...

0
Q: iOS Native credit card autofill function conflicts with mobile checkout

gupta120In 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...

0
Q: Given an array, find maximal sorted subset

vinI 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 ?

0
Q: How to login to Facebook in rails?

Anthony DiPrizioI 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...

0
Q: Connect to remote KepServer using OPCAutomation.dll (c#)

Tuan NguyenI 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...

0
Q: How to solve # 7 in SQLZOO select names section

KuanAll: 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

0
Q: Endless loop with when passing self as delegate

KomboI 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 { ...

0
Q: tooltip reading from function using highcharts

rakeeeeI 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...

0
Q: Organizing External Javascript Files

GacciI 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...

0
Q: How to implement search functionality for Skydrive in Rails application

neha88I 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...

0
Q: UITraitCollection implementation - Swift to objective C

DesperateLearnerI 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...

0
Q: Position view relative to another view in Swift

dperkI 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...

0
Q: Android get image from gallery in preference activity

nchvI 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...

0
Q: incorrect syntax CREATE PROCEDURE must be the only statement in the batch"

Rajashekhar MHi 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...

0
Q: remove css class on change, irrespective of the value in the select field using javascript

Prajith A SIn 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 ...

0
Q: How do I apply a Google Template to my Site?

AndrewI 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...

0
Q: How to correctly write a javascript code that change the text of a div via onClick event

Alex NewbieI 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...

0
Q: SWT editable text field on canvas

AnimatedRNGIs it possible to have an editable text field within a canvas, and if so, how? I'd prefer if the users could edit the text field directly by selecting it and inputting text in. They should also be able to edit the text.

0
Q: Python Script to play a Vimeo Video

Conner LeverettI 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...

0
Q: Console App not working in Task Scheduler

graysonI 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...

0
Q: Simple Linq Query Not Working

Bernie HuntI 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...

0
Q: WSDL1.1: request-response is an abstract notion

ravikumarI 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...

-1
Q: How can I make an mp3 stream player android

ALLOMI RajI 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...

0
Q: RDP Brute force attack event log no IP

Ann AnnSeems 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?

0
Q: Emoji and browsers

GreesoI am curretly creating a simple website. In the contact information section, I am adding this html entry &#9742; for phone (right before the phone number), and this html entry &#9993; for email address (right before the email address). The idea is to display those two characters as solid black ch...

0
Q: how make me validation captcha google

burnburnI 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...

0
Q: How to remove the chosen product after clicking the button again?

Paolo DuhaylungsodI 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...

0
Q: git diff between specific commit and local file

Chan KimI'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...

0
Q: Problems through the sizeWithFont depreciated in iOS7.0 in my code. Don't understand how to replace it with boundingRectWithSize

JoelisticSo 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...

0
Q: Issue while creating spring boot maven application

Sumit RanjanI 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...

0
Q: Javascript: Run function when page has finished loading, script is loading async

joshhuntI 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...

0
Q: Retrieve redirect URL that's provided as POST response

GillBatesPython 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 ...

0
Q: iOS Location : Switch between Standard & Significant Location Updates

Vishvas GouthamI 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...

0
Q: svg-android import not working?

MetallorTrying 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...

0
Q: Recursively Reverse An Int In Java

MicahKEI'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...

0
Q: How to Remove Empty Space between tree grid view and splitcontainer in vb.net?

suduku solverI 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 .

0
Q: Not able to access Tuleap SVN repo

chiranjeevibmsei 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@...

0
Q: Intercepting HTTP response in chrome extension?

ejfrancisI'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...

0
Q: Firefox Addon sdk context menu Dupplicating

Nowa ConcordiaI'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...

0
Q: Dynamic Constraint In UITableViewCell for Auto-Layout in iOS 8

gotyeI 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...

0
Q: Detecting child element animation

CoderI 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">

0
Q: UITableView indexPath of last row

Scott KilbournI 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 ...

0
Q: Database handling using Entity Framework

Sunny ProI 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...

0
Q: pdf417 barcode reader/decoder in javascript?

vrsI 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...

0
Q: what is the size of this range 0x 0000 0000 - 0x 0001 BFFF?

prabhumanoj5Can 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.

0
Q: Variable inputs into a function in Python

SLeeI 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...

0
Q: get filter options from magento Db

GururajHi 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.

0
Q: Images not showing - Rails 4 (using Paperclip gem)

Michael LawrenceI 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...

-2
Q: Client with different language than server

Nasir IqbalIs 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.

0
Q: Configuration file '' can not be found

user3422401I'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...

0
Q: Google Location api not displaying coordinates

AlexI 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...

0
Q: Webpack fails to find Wavesurfer, but can easily find all other modules

David1989I'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...

0
Q: Wordpress, custom post type relationship to many post

snake91I 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 ...

0
Q: Swift: spawn enemies at random times within a range?

skyguyAlright 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...

0
Q: SKTransitions from scene to scene slow

02fentymI 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...

0
Q: Cross browser Horizontal scroller for images

G.L.PProblem: 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...

0
Q: Error while installing Connector for AX in R3 RTM

Tejaswini KomaragiriI 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...

0
Q: html node is not getting appended

spsIn 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...

0
Q: JavaFX+JSSC(Java Simple Serial Connector) thread communication

Java guyI 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 ...

0
Q: Regext to match only ONE occurance of a pattern

LPDHow 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

-2
Q: Ad Server for all iOS screen sizes

Sonny WestmorelandDoes 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.

0
Q: how to display uploaded image on same jsp in Spring framework

Sudhakar KI 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...

0
Q: Not a group by clause in oracle

Qadeer Hussain 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...

0
Q: Reading & Streaming a live site url - Stock Quotes in php

AjmalHow 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 ...

0
Q: Pros and cons of using return (yield from some_function())

neRokI 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...

-2
Q: how to getting json headers list using java?

user1472191I 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?

0
Q: In Javascript - Why this doesn't fail?

user2178385100..toString() // "100" 100 . toString() // "100" Not able to understand why it doesn't fail? What is happening here?

0
Q: List Category Posts Wordpress plugin date in before title

Joseph ZammitI'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 ...

0
Q: JS remove everything after the last occurrence of a character

user2238083Okay 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...

0
Q: How to enter in a login page in php using my registered accounts

TwoDentI 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>...

0
Q: Sqlite Query to Update

Lalit JadiyaI 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...

0
Q: Sorting and grouping a Crystal report by a specific date-parameter using visual C#

yesterdayWhat 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 ...

0
Q: Facing Javascript bubbling in case of server sent event

parthoThink 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...

0
Q: SPOJ Cardsharper: What is the logic behind this?

userI 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.

0
Q: Change a timestamp logic in JSQMessagesViewController

ppsheinIts 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...

0
Q: sbrk function and pointers in C program

mohan rajCode: 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,...

0
Q: Problems when calculating the dimensions of images after they have been loaded

Wolfgang AdamecIn 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...

0
Q: Does mongoosejs have findAndModify ?

Sanjit RoyI Could not find the findAndModify() in mongoosejs. Does mongoosejs support it ? What is the function name if it supports ?

0
Q: Doubly Linked List to ArrayList

1938How 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!

0
Q: Primefaces dataTable get Id value using jquery

Ananad MsI'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">

-1
Q: Click event not working in android action bar item

Jishad PI 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 {...

0
Q: woocommerce changing the order status from the admin side doesn't take effect

Junior MalabananI 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 ) ...

0
Q: JavaScript Not Woking inside Cordova Webview

Loren 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("...

0
Q: Transfering a bitmap (byte array) by bluetooth on Android always come null

648trindademy 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...

0
Q: Measuring pixel distance with kincet Sensor

Fachrim Irhamnah Rachmani 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...

0
Q: Karma-Jasmine: How to mock a service in angularJS that utilizes other services/factories/constants?

user3500989I 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...

0
Q: Syntax error in JSP

NagarjunAny 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.*" %>...

0
Q: Form inputs cannot bypass the form validation in codeigniter version 3.0.0

GMkazerFuryI 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...

0
Q: Angular carousel for 3 or more div tags

basil babyNeed 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.

0
Q: Jumping to brackets from foreach/if declaration after postfix autocompletion

galdikasSo 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...

0
Q: Is it ok if query a sqlite inside recyclerview.adapter?

MiGI 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?

0
Q: Aligning Labels with TextFields

igknightonFor 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....

-2
Q: Android emulator not working correctly

dileepa chandimaafter 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...

0
Q: Plython reference attribute when assigning attribute

artdvGiven 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...

0
Q: XSD Display empty elements for null data

user3492471I'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...

-1
Q: Connection between server and client using soket.io on nodejs

Slim HmidiI 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...

-1
Q: Importing projects from github to your pc

Ethyl CasinI have my projects in github and I want it to import it to my fresh installed OS Pc. How to do this?

0
Q: Why do many site redirect user to login page when session timeout?

phuong haWe 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 ...

0
Q: Gtkmm adjustment with increment different than 1

ValeHow 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...

0
Q: 'Get 30 days ago' and 'one year ago' date in freemarker

Vishwajeet HolI 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 ?

0
Q: Rails 4: how to find all rows where a certain attributes equals a certain value and change that value?

Thibaud ClementIn 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...

0
Q: Angular.js - get http.get(array) to variable for filter

AnDoDrii 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...

0
Q: Arduino UNO with LMT86LP temperature sensor

user1982824I 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...

0
Q: SyntaxError: expected expression, got '<' while running angularJs and node

user1692342I 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, ...

0
Q: Running CPPlint on whole project

TM_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?

0
Q: SET jQuery returned value to PHP variable

SandyI 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...

0
Q: AttributeError: 'FeatureChartParser' object has no attribute 'nbest_parse'

Mitu VinciI 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...

0
Q: how can I pass a C# component from one gameobject to another in Unity3d

shuitianI 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 ...

0
Q: background svg issue in ie10 & 11

Scott CarltonThere 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)...

0
Q: Why does numpy.polyfit return non-zero values for straight line data?

Nick JDMath 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...

0
Q: Sublime Text 2/3 - real-time refreshing/updating file whenever someone edited it

Austin ImperialI'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...

0
Q: Issues in connecting to zookeeper cluster

JoyHi 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...

0
Q: Make Html page using javascript dynamically

JunaidI 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...

0
Q: R default encoding to UTF-8

Raja Nagendra KumarHow 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.

0
Q: How do I get a keystonejs list objects value?

Quinn KeaveneyHow 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.

0
Q: TORNADO api error with yield

Tony RoczzI 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...

0
Q: Preventing garbage collection when bridging C++/CLI to C#

StilesCrisisI 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...

0
Q: When click the button sound many times the all the sound are disable

user3063814I'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 ...

0
Q: declaring qtcpsocket class object as global

Raj SekharI 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...

0
Q: Android Sdk will not run in Visual Studio 2012 (aapt.exe not found)?

G0ldP0w3rAndroid 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...

0
Q: Cant get a local file opened with cURL

Cain NukeHi, 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]; ...

0
Q: REturn dataset from SP Oracle-SQL developer

TomI'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...

0
Q: Keep Android Lists after app exit

Peter MuchiriI 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.

0
Q: Is it possible to add Gmail Go-to actions if we have multiple from addresses

Pankaj GargI 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...

0
Q: Cmake set option back to default

RopeI 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...

0
Q: str replace removing all commas

TaphaSo 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...

0
Q: search a word in a file using python

user3227785In shell, cat filename | grep -i error would return content from the file having the string 'error' . What is the Python equivalent of this ?

0
Q: Windows UI Automation: thread blocking when adding event handlers

SaqibI 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...

0
Q: functional error when trying to bind function with an object reference

Carlo BrewHere 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 ...

0
Q: Bootbox/ Bootstrap/ jQuery/ javascript confirm window

Sharline SivanathanI 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?

0
Q: C++ / OpenCV - Depth map issue: Items in the Point Cloud have some distortions

lilouchI 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 ...

0
Q: Does saving data to another computer by changing path safe?

Miguel JamesI'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...

-1
Q: How to identify the mandatory elements in XSD in java code?

SushmaI'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

0
Q: Passing an array of object having name and value attribute as query param

user3386493Here 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...

0
Q: registerNib for UICollectionElementKindCell does't work when using presentViewController animated: false

naohideI 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...

1
Q: getAttributes() from a oracle.sql.struct

Frederik WagenerI 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,...

-1
Q: How to get the topology of a layer-2 switch network with the switches' forwarding tables?

F32Suppose 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...

0
Q: Cakephp 3.0.8: array inside "name" field disappears after patchEntity

Martin Gagné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...

0
Q: show array data in table using ajax

user2986673I 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 ...

0
Q: .NET vNext, EF7 beta6 - Missing Method exception when calling UserMananger.FindByEmailAsync

Marcelo MasonI'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...

0
Q: addClassRules() to multiple fields but only allow 1 at a minimum

c.had1990So 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...

0
Q: accessing IBOutlet properties from another class

FabioHow 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 (...

0
Q: How to convert [Int] to Int... in Swift?

Mikhail GasanovI 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...

0
Q: Downloading high res pictures with Glide Library

Jahir FiquitivaI'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 ...

-1
Q: Facebook Open Authentication Login Issue

Idea CellularWe 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...

0
Q: Check if model contains key derbyjs

msj121Is there a way to check if a property exists on a model? var self = model.get("users."+userId); if (! self.name.firstName){ //do something }

0
Q: Adding hardcoded file path in chrome app

arpitgoyal2008I 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...

0
Q: use filter, limitTo with begin in ng-repeat

js_coderI 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...

0
Q: Date string from Controller to JS using ajax

Bienvenido Omosurai 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...

0
Q: How to update particular ng-repeat element in angularjs?

Neelabh SinghI 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(...

0
Q: yii2 blank page issue in all crud create and update actions

user3906603guys. 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...

0
Q: How to close a popup window, when clicking onto a button in html only

auburnSo 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...

-1
Q: casperjs not working by cron

Kancasperjs 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...

0
Q: Endless Scroll for Greasemoney

AlexI'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...

0
Q: PowerShell expand contents of Psobject

bundyfxI 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...

0
Q: Can I set `ng-repeat` object as `model` to share the details?

user2024080I 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 ...

0
Q: Update XML text content based on path and text values stored in csv

MiaI 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...

0
Q: how to get execute sql statement for following case in odoo?

Shridhar IvaniI 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 ...

0
Q: Unable to upload file via REST request in GRAILS

SwatI 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" '...

0
Q: Python, pygame, py2exe

TechProI 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...

-2
Q: Want to discover the meaning of this piece of javascript code

Know MeI 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...

0
Q: col-sm-push affects col-lg setting

user3803747I 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...

0
Q: Interswitch payment Gateway Integration using ionic and cordova

SaravananHello 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.

0
Q: unable to navigate from listview selection changed event to another page on second time click in Winrt List View(WP8.1), Why?)

Ajith V<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...

0
Q: gdk_window_get_origin giving errno 11

NoitidartI 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 ...

0
Q: Numeric Array Class: Multiplication using friend functions

Ryan 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...

0
Q: How do I listen/catch success events of social media sharing using Android Share Intent Chooser (ACTION_SEND)?

SheychanI 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...

0
Q: Passing params[:id] to create method in Rails?

WillI'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...

0
Q: Is it possible for custom sorting in extjs 3.2 for date

user1577535I 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...

-1
Q: What may cause the crash in c++ library?

gongjl kevinI 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/...

1
Q: Integer not echoing via php

jpgerbI 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...

-2
Q: What library contains the Put class?

treesandlakewhat 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.

0
Q: Calling common function for cellClass Function in UI-Grid

RajulI 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(...

0
Q: Using AngularJS to connect to Splunk's REST API, how do I resolve CORS issue?

Murali MohanWhen 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...

0
Q: Sys_refcursor input parameter not matching with output parameter in vb.net?

vikas khadeparameter '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...

0
Q: Android - Parse.com Push Notifcation not working with Image URL loading

Pauras SwamiI 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.

1
Q: Disable browser back button for one page application

Bhumika107I 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.

0
Q: Parse.com one-to-many relationship in Android

United121I 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...

0
Q: Difference between row dates, in days, from the first entry to the current row entry

dittoSELECT 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...

0
Q: How to copy textfield from web app and paste to external program

davidI 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...

0
Q: Url Mapping / Grouping similar url with different changing variables

AnonymousI 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...

0
Q: Activiti diagram mail task deployment in eclipse

Abhishek UpdI 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...

0
Q: Android crop intent not working properly on version 5.1.1

nilkashHi 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...

0
Q: Issue with iptables

JoyI 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 ...

0
Q: decimal custom format string with fixed precision and no period

CoxyI'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...

-1
Q: How to change the date Format in android

user3881947I 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.

0
Q: Add days to a date over years slow increments

CodeGameri 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...

0
Q: Container application that rules all the modules

Dato' Mohammad NurdinI 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...

0
Q: How to show grid information in output document for process maker

rakupHow 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``

0
Q: ionic build android command returns an error at gradle.wrapper

Yusuf ÇakmakWhen 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....

0
Q: Is it possible to set BUNDLE_BIN for a single gem?

BorromakotThere 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?

0
Q: How can i get the ID's of user ,who are login with my apps?

johnHow 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

0
Q: Django - Authentication again 3rd party API (OAuth2 with user / password)

Val OzWhat 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-...

0
Q: object disappearing when geom_rect is added

tom91I 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 ...

0
Q: Error on groovy script (Admin Shell) for Teiid.

MardwanI 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"...

0
Q: Please help me optimize this crazy MSSQL query

acestaHere 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...

0
Q: Bash if statement not working properly

KookerusI 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. #!/...

0
Q: Unable to create partitions & format a USB device. Partitions doesn't stick

LazaoI 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...

0
Q: How to substitute function errors with NA output in R?

seligIs 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, ....

0
Q: how can i download the image that i have uploaded?

Paolo Duhaylungsodi 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...

0
Q: WARNING: No mapping found for HTTP request with URI [/PMC/] in DispatcherServlet with name 'spring-dispatcher'

user3930050http://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>/...

0
Q: wxpython GraphicsContext fail to draw dashed lines

elkavfollowing 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...

0
Q: Error generating controller on rails app with no database

gaudi_brI 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...

0
Q: SpriteKit Game: printing <CAEAGLLayer: 0x145bdca0>: calling -display has no effect. What is this? Why is this happening?

LeethalSpriteKit 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 ?

0
Q: Python - Database/Data Structure to store timestamped messages?

ShaneOHI'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, ...

0
Q: Orientation of Tiff image

abc** 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...

0
Q: How to set decimalfield value of @Html.TextBoxFor?

Sandy@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.

0
Q: Transfer-encoding in apache

nitI 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

0
Q: Filemaker php api addFindCriterion with record id

overflowI 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

0
Q: Why is react-router nested routing rerendering app?

IsmailpI'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...

0
Q: Updating R in Windows

CynderellaFollowing this post and also this link , I tried to update my R version . sessionInfo() R version 2.14.0 (2011-10-31) Platform: i386-pc-mingw32/i386 (32-bit) locale: [1] LC_COLLATE=English_United States.1252 [2] LC_CTYPE=English_United States.1252 [3] LC_MONETARY=English_United State...

 

« first day (617 days earlier)      last day (457 days later) »