name

Android: Retrieve contact name from phone number

I would like to retrieve the name of a contact associated with an incoming telephone number. As I process the incoming number in the broascastreceiver having a String with the name of the incoming caller would help my project greatly. I would think this involves a query using the sql WHERE clause as a filter, but do I need to sort the c...

MATLAB weird output

I wonder if matlab has set restriction on variable's name. fixnb21=0; for fix=1:200 if fixdur(fix)>MIN_FIX_DUR && fixdur(fix)<MAX_FIX_DUR fixnb21 =fixnb21+1 fixdur21(fixnb21) =fixdur(fix) % I wonder if we are not allowed to add 21 at the end of variables or array name ... end end The fi...

Naming points of a R graphic

Hello, I would like to name some points of a R graphic, got from the basic function plot(). More precisely I have a 2-dimensional parametric function t -> (a(t),b(t)), and I plot the points (a(t),b(t)). I would like to print the value of t corresponding to each point. Thank you ...

Get Model Field Name in Template

In a template for a view I would like to use the name of a field and not just the value. So for example if I have this: class Test(models.Model): name = models.CharField(max_length=2, verbose_name = 'Your name') age = models.PositiveSmallIntegerField(max_length=3) I would like to be able to do {{ name.get_field_name_display }} which...

Unix directory structure: managing file name collision

Usually every time `make install' is run, files are not put in a specific directory like /usr/prog1. Instead, the files are put in directories where files from other programs are already in like /usr/lib and /usr/bin. I believe this has been a common practice since long time ago. This practice surely increases the probability of file nam...

NHibernate - Name Primary key constraint?

Hi, We're starting to using NHibernate at my workplace, including generating the schema from the mappings. One thing our DBAs want is consistent names for the primary and foreign key relationships. I've been able to set the FK constraint name, but looking at the documentation for <id> it doesn't look like there's a way to name the pri...

Does it have a name? Grouping objects by collections they belong to

There are some collections - let's say each collection is set of programming languages a developer knows. {"Alice" => Set["Java", "Python", "C++"], "Bob" => Set["Ruby"], "Charlie" => Set["Ruby", "C++"]}. I want to group these objects by collections they belong to - in this case getting a mapping from sets of developers sharing knowledg...

HTML form input tag name element array with JavaScript

This is a two part question. Someone answered a similar question the other day (which also contained info about this type of array in PHP), but I cannot find it. 1.) First off, what is the correct terminology for an array created on the end of the name element of an input tag in a form? <form> <input name="p_id[]" value="0"/> ...

iPhone Product Name

I have an App already live on the App Store and I am now releasing an update for it. But I added the In-App feature to the app and realized my app name in iTunes Connect and the product name in XCode were different and the in-app didn't work. So I changed the product name in XCode to match iTunes Connect and the in-app purchase works. My...

Protecting assembly from hacker

I have a console application references assembly A. I want to ensure that the application will not run if A.dll is tampered or replaced. One option is to use strong-name signing. But do I need to worry about strong name bypass? Are there any other good options? Thanks ...

WindowsMobile CAB file I can't change the appname!!

I have a Windows mobile professional 6.1 application and I created a CAB file for that..when I am installing the cab in the phone in some place of installation I see a wrong app name which I don't even remember when and where I have setted it! SO I checked the _system.xml file in the CAB archive and saw the problemetic line; <parm n...

Perl and NLP, parse Names out of Biographies

I'm pretty new to NLP in general, but getting really good at Perl, and I was wondering what kind of powerful NLP modules are out there. Basically, I have a file with a bunch of paragraphs, and some of them are people's biographies. So, first I need to look for a person's name, and that helps with the rest of the process later. So I was ...

XAML build error on VB.NET project with controls from external DLL

I'm trying to migrate a WPF Application based on C# to identical project but based writed in VB.NET. I have some problem with XAML Window. The Window have some reference from external dll controls. For example: <Window x:Class="Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas...

Difference between title and name in html href element

Hey, in an href in html, whats the difference between using <a href="http://www.somesite.com/" name="The Name"> and <a href="http://www.somesite.com/" title="The Name"> Is there any advantage to using one over the other? Thanks ...

Ruby: How to get a local's and/or a instance varialble's by them self?

From example: local_var = "Thanks!" @instance_var = "Thank you ,too" Then how can I get the local_var and instance_var part by them self. I mean weather there is a method maybe called get_self_name to get the name of himself: local_var.get_self_name # => 'local_var' @instance_var.get_self_name # => '@instance_var' or => 'instance_var...

Give a name to a boost thread?

Is it possible to give a name to a boost::thread so that the debuggers tables and the crash logs can be more readable? How? ...

Help building a random name generator

Hi all, As a teacher I am looking to create a random name generator to use with my classes. I don't know much but I am willing to learn. I want my random name generator to be able to load class lists from an external csv or txt file - I want the random name generator to be able to recognise the time and load the pre-defined class for tha...

sorting array of names in php

I have an array of people's names: Array ( [1] => A. Aitken [2] => A. C. Skinner [3] => A. Chen [4] => R. Baxter ) What's the quickest way to sort the array in (alphabetical) order of the surname in php? i.e. to give Array ( [1] => A. Aitken [4] => R. Baxter [3] => A. Chen [2] => A. C. Skinner ) ...

How can I programmatically access elements defined in a ContentTemplate?

Hello all, Let's say I've created a UserControl with the following ContentTemplate defined in XAML: <UserControl.ContentTemplate> <DataTemplate> <Ellipse Name="myEllipse" Stroke="White"/> <ContentPresenter Content="{TemplateBinding Content}"/> </DataTemplate> </UserControl.ContentTemplate> How would I access ...

android get contact's name and phonenumber for android 1.5

So far I have this code from examples I have seen on here: public class testLayout extends Activity { final int PICK_CONTACT = 0; ImageView image = null; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main);...