listview object to custom dialog box
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) ...
Internationalization inside html function of JQUERY
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
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?
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
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?
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
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
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 ...
Improving For Loop Efficiency VBA
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
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...
Django: make a dynamic select form fields with 3 chains
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
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
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...
angular ui-router, change screen but controller not
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...