Node.js mocha testing: AssertionError: expected true to be false
◷
تاریخ انتشار: 1395/1/24 | ساعت: 18:58
Vote count: 0 I wrote a mocha script for testing my phonegap app. Here is the code: var AccountController = require('../controllers/account.js'), mongoose = require('mongoose'), should = require('should'), uuid = require('node-uuid'), crypto = require('crypto'), User = require('../models/user.js'), ...
listview object to custom dialog box
◷
تاریخ انتشار: 1395/1/24 | ساعت: 18:58
Vote count: -1 i have some data in listview from list view i want to send my one field to dialogbox ` l=(ListView) findViewById(android.R.id.list); l.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> arg0, View v,int position, long arg3) ...
Checking of REST connection before returning data from REST server
◷
تاریخ انتشار: 1395/1/24 | ساعت: 18:58
Vote count: 0 I use Spring framework for creating REST HTTP server. @RestController @RequestMapping("/message") public class MessageRequest { @RequestMapping(method = RequestMethod.POST) public @ResponseBody String doPost( @PathVariable String param ) { /*do something */ retu "answer"; } } I need to...
Internationalization inside html function of JQUERY
◷
تاریخ انتشار: 1395/1/24 | ساعت: 16:02
Vote count: 0 I'm doing the inte ationalization of a PHP project. in PHP I use the getttext() function and poedit program. example: <?php echo gettext("Hello world"); ?> Hello World will be the key with the associated translated words: It all works. I haven't any idea how to translate the .js file w...
How to i get Player page source playback URL
◷
تاریخ انتشار: 1395/1/24 | ساعت: 16:02
Vote count: 0 I'm Trying to get Playback URLs from player and i made this code please any one can help me about this its code ok or any other better Instead this code Here is my code: $url = 'http://www.dailymotion.com/embed/video/x2g61zo'; $data = file_get_contents($url); $tst = explode('qualities'...
How to split a JavaScript String by comma's and dots?
◷
تاریخ انتشار: 1395/1/24 | ساعت: 16:02
Vote count: -1 I want to split amounts with the split function in JavaScript. Possible inputs are: 10,256,326.26 10.269,69 100 What I want to achieve is by doing the split is getting the numeric values in an array, like: [10,256,326,26] [10,269,69] [100] Which regex can I use for this? asked 39 secs...
GetText() doesn't work for me on EditText
◷
تاریخ انتشار: 1395/1/24 | ساعت: 14:39
Vote count: -3 i am using xaamarin i want to get edit text text String us= ((EditText)findViewById(Resource.id.usr)).getText().toString(); String pw = ((EditText)findViewById(Resource.id.psw)).getText().toString(); String value1=us; String value2=pw when i use GetText() << it is erroring me 'Android...
Why does this recursive function work?
◷
تاریخ انتشار: 1395/1/24 | ساعت: 14:39
Vote count: 0 So a friend of mine is taking one of his first CS classes and mentions that he's using recursion in his very first program. He sends me the code below. Right off the bat I noticed that he isn’t catching the retu value of his recursive call and I assumed it wouldn’t work. But he insists...
WPF Binding on DependencyObject error
◷
تاریخ انتشار: 1395/1/24 | ساعت: 14:39
Vote count: 0 I want to pass an object as a parameter to a Converter. Since I can't do that using a ConverterParameter, I have used a DependencyProperty instead. Here is the code - public class FilteredColumnConverter : DependencyObject, IValueConverter { public DataGridFilter FilterObject { get { r...
get working working days from calendar Table in sql server
◷
تاریخ انتشار: 1395/1/24 | ساعت: 13:08
Vote count: 0 I have two tables One is list of holidays school wise of January Month 2010 I want to calculate data of working days of all three schools in Jan 2010. I took a just small example from real problem. Holidays Table SchoolID HolidayOn 1 01-01-2010 1 02-01-2010 2 01-01-2010 2 02-01-2010 3 ...
Mysql self joining on max id returned from first table using groupby
◷
تاریخ انتشار: 1395/1/24 | ساعت: 13:08
Vote count: 0 I need a sql that uses self join on max id from first table. Please look at the following image of table. I am grouping the table by service_id but I need the last message of each group. So For service group 5 message count should be 3 and last_message should be thirdMsg5. I wrote a sq...
Improving For Loop Efficiency VBA
◷
تاریخ انتشار: 1395/1/24 | ساعت: 13:08
Vote count: 0 Currently I have 10Kx15 Rows worth of raw data imported in an excel spreadsheet. I have a number of fields that are cleansed but the one of interest is a field called "Hazard". For every instance of Hazard encountered, we need to strip this out. This is the code I use to cleanse (parti...
Two input, one output Button
◷
تاریخ انتشار: 1395/1/24 | ساعت: 11:41
Vote count: 0 I am trying to make a button that takes in the state a person lives in and their race and outputs their life expectancy. I have a long list of data for all the states and various races. I also have my button set up, but need to find a way to use this data in an efficient way that allow...
Did not receive emails in console app (real-time) using streaming notifications (EWS C#)?
◷
تاریخ انتشار: 1395/1/24 | ساعت: 11:41
Vote count: 0 I am new to EWS and I am trying to run my email parser console app real-time where it receives new emails. Someone suggested Push notifications but then I stumbled upon Streaming Notifications which I find easier. I based my codes here: Set streaming notifications for applications prog...
Django: make a dynamic select form fields with 3 chains
◷
تاریخ انتشار: 1395/1/24 | ساعت: 10:19
Vote count: 0 how are you? (sorry for my bad english) (i'm not going to put code because i'm not in my own computer and the sintesis of the post is only a question, depends of the answer i'm going to start coding about) Well i'm trying to make a automated select form (i haven't idea about how to mak...
ListIterator swap current and next
◷
تاریخ انتشار: 1395/1/24 | ساعت: 10:19
Vote count: 0 I need to swap node and node.getNext() in the ListIterator "nodeListIterator" and I've been trying for hours if (node instanceof LdcInsnNode && (node.getNext() instanceof FieldInsnNode && node.getNext().getOpcode() == Opcodes.GETSTATIC) && node.getNext().getNext().getOpcode() == Opcode...
Angular json marshalling via $http
◷
تاریخ انتشار: 1395/1/24 | ساعت: 10:19
Vote count: 0 I am having a very weird problem. Using $http my response is not getting marshalled correctly into map/object. The data is a map of lists. The issue is that the element 100110150000000751 has a value from the raw data in the first log "1 group data[". but after its converted to json it...
get the list of functions used in a R script
◷
تاریخ انتشار: 1395/1/24 | ساعت: 9:13
Vote count: 0 I am looking for a nice way to get the list of functions used in a R script. Either using a dictionary or simply using R parser? Thank you asked 1 min agoRockScience Let's block ads! (Why?)
angular ui-router, change screen but controller not
◷
تاریخ انتشار: 1395/1/24 | ساعت: 9:13
Vote count: 0 I'm using angular 1.5.2 and angular ui router 0.2.5, i make a page transition, from a state to another state, only the screen changes, but the controller not change, i tried to do the transition by three different ways: $location.path('/home'); $state.go('home'); $state.transitionTo('h...
How do I print the square root symbol?
◷
تاریخ انتشار: 1395/1/24 | ساعت: 9:13
Vote count: 0 How to print the square root symbol like picture in wpf ? Please help me a solution ? asked 42 secs agoMR.LB Let's block ads! (Why?)