how to use TODO comment personalization
◷
تاریخ انتشار: 1395/2/6 | ساعت: 20:39
Vote count: 0 can someone explain the patte at todo optional tab in intellij for example :if i type "todo" then i want the "todo" tag should be like this : //todo this is your code here what should I do? asked 5 mins ago小斌斌来也 Let's block ads! (Why?)
Passing value from Zend controller and fetching it in JS response
◷
تاریخ انتشار: 1395/2/6 | ساعت: 17:50
Vote count: 0 I have a Ajax call like following: $.post("/user/signindo",{'use ame':use ame,"password":password},function(data) { // this is what I would like to be able to have in my data object, to be able to access these properties and display them once response is there alert(data.id); alert(dat...
How to properly implement an execute-function-on-each-element with CUDA?
◷
تاریخ انتشار: 1395/2/6 | ساعت: 17:50
Vote count: 0 I have a class representing one or several containers of objects. The class offers a function to run a callback for each of the elements. A simple implementation could look like: struct MyData{ Foo* foo; void doForAllFoo(std::function<void(Foo)> fct){ for( /* all indices i in foo */){ ...
Back button issue in MVC 6 after login and logout
◷
تاریخ انتشار: 1395/2/6 | ساعت: 17:50
Vote count: 0 I am trying to restrict user to click back button after Login/Logout into the application. If the user is logged in into the application, then after clicking on back button Login view should not be displayed and if user is logged out from the application then clicking on back button Lo...
TFS 2015 on-prem licensing issue on REST API
◷
تاریخ انتشار: 1395/2/6 | ساعت: 15:10
Vote count: 0 We have recently upgraded our TFS 2012 to TFS 2015 Update 1 and I would like to use the new TFS REST API to retrieve tests cases/plans for instance. So I made a quick test with my browser using the following URL and everything went well : http://.../DefaultCollection/_apis/projects?api...
PHP - GetText not working
◷
تاریخ انتشار: 1395/2/6 | ساعت: 15:10
Vote count: 0 I'm trying to add translations to my webpage. Unfortunately my translation isn't being read. However, one translation is read (even though I ask for a different one). My php code looks like this: $language = "en_US"; //Hardcoded for debugging purposes define("FOLDER_SPECIFICATION", "./...
i am trying to execute a r script from asp.net page using c# but it's not executing
◷
تاریخ انتشار: 1395/2/6 | ساعت: 15:10
Vote count: 0 I have used Rscript ru er but its not working. public static string SetupPath(string Rversion = "R-3.2.3") { var oldPath = System.Environment.GetEnvironmentVariable("PATH"); var rPath = System.Environment.Is64BitProcess ? string.Format(@"C:Program FilesRR-3.2.3binx64", Rversion) : stri...
mongodb findAndModify update element in array
◷
تاریخ انتشار: 1395/2/6 | ساعت: 13:44
Vote count: 0 There is an bson document: { "_id" : ObjectId("5718441f5116a60b08000b8c"), "mails" : [ { "id" : 2, "a" : [ { "a" : 1 }, { "a" : 2 } ] }, { "id" : 1, "a" : [ { "a" : 1 }, { "a" : 2 } ] } ] } I need to retu and clear the array "a" which belong to "mails.id == x" for given document. So I ...
How can i get object key in a json-file with handlebars
◷
تاریخ انتشار: 1395/2/6 | ساعت: 13:44
Vote count: 0 in the following json file: { "students":[ { "timestamp": "1,45198E+12", "perso ummer": 1234567891011, "fo avn": "Some name" } ] } I'm using handlebars to make a table out of this information, how can i go about geting "timestamp","perso ummer" and so forth in to the tag. I have tried ...
Create a custom popup box in javascript
◷
تاریخ انتشار: 1395/2/6 | ساعت: 13:44
Vote count: 0 I am creating an application in which i want to create a custom popup box by using javascript. Please help me for getting this. I am totally unknown about this. Any help will be appreciated. asked 1 min agoNeha Purwar Let's block ads! (Why?)
Cannot download Vagrant box file
◷
تاریخ انتشار: 1395/2/6 | ساعت: 12:33
Vote count: 0 I tried to do the standard $ vagrant up and Vagrant give me An error occurred while downloading the remote file. The error message, if any, is reproduced below. Please fix this error and try again. transfer closed with 100 bytes remaining to read I tried to bypass this by manually down...
!empty goes back to the start of the page
◷
تاریخ انتشار: 1395/2/6 | ساعت: 12:33
Vote count: 0 I have this file where the user needs to provide a password to enter the directory of logs. Now it was suggested to add a "Change Password" functionality. Now the process that I want to do is to let the user type his current password first before showing the "type new password" input f...
last modified files only moved ansible
◷
تاریخ انتشار: 1395/2/6 | ساعت: 12:33
Vote count: 0 my requirement is moving files to remote host using ansible playbook. my ansible script --- - hosts: webservers remote_user: root tasks: - copy: src=/home/bu/Bilal/site dest=/tmp owner=root group=root mode=777 when run playbook it has moved the file to remote. when I have ran again it ...
Type of constant expressions in Java
◷
تاریخ انتشار: 1395/2/6 | ساعت: 11:29
Vote count: 0 Why the bar with int i signature is called? public class Test { public static void main(String[] args) { bar(5); // What type of the integer "5"? } public static void bar(short i) { System.out.println("short"); } public static void bar(int i) { System.out.println("int"); } public stati...
How to use youtube API?
◷
تاریخ انتشار: 1395/2/6 | ساعت: 11:29
Vote count: 0 My class: public class MainActivity_For_Youtube extend YouTubeBaseActivity implements YouTubePlayer.OnInitializedListener { private static final int RECOVERY_DIALOG_REQUEST = 1; private YouTubePlayerView playerView; String fbid=""; @Override protected void onCreate(Bundle savedInstance...
Search/ Output in Linked Lists
◷
تاریخ انتشار: 1395/2/6 | ساعت: 11:28
Vote count: 0 This code builds a simple linked list containing integers from 0 to 100. How do I implement a search that searches the list for the node that contains a particular value entered by the user and retu s the location in the linked list where the number was found? #include<stdio.h> #includ...
Absolute position of leaf node in NLTK tree
◷
تاریخ انتشار: 1395/2/6 | ساعت: 10:14
Vote count: 0 I am trying to find the span (start index, end index) of a noun phrase in a given sentence. The following is the code for extracting noun phrases sent=nltk.word_tokenize(a) sent_pos=nltk.pos_tag(sent) grammar = r""" NBAR: {<NN.*|JJ>*<NN.*>} # Nouns and Adjectives, terminated with Nouns...
File path with write.zoo
◷
تاریخ انتشار: 1395/2/6 | ساعت: 10:14
Vote count: 0 I'm using r on Mac OSX and following this guide to download and maintain a collection of CSVs with stock prices. http://www.thertrader.com/2015/12/13/maintaining-a-database-of-price-files-in-r/ library(quantmod) startDate = "2000-01-01" thePath = "" source(paste("listOfInstruments.R",s...
Need help in improving performance of SQL query
◷
تاریخ انتشار: 1395/2/6 | ساعت: 10:14
Vote count: 0 Take a look at this sqlfiddle i made http://sqlfiddle.com/#!9/4b903/2/0. This is the simplified version of my database. I have a million records now in the history and the problem is that the query seems too slow. Sometimes it takes a minute to get the result. I'm not really good in th...
Celery periodic task doesn't start
◷
تاریخ انتشار: 1395/2/6 | ساعت: 7:40
Vote count: 0 I am using celery in my django project to run periodic tasks. Following the standard tutorial from celery's website, here is my project structure project |_ settings.py |_ __init__.py |_ celery_app.py (instead of celery.py) |_ app |_ tasks.py Relevant parts in settings.py looks like th...