Hi, in spite of having so many efficient data structures, why is only linked list used
so heavily in systems programming? Is it because it allows least usage of heap/less buggy code?
Regards,
Pwn
I was going to ask this on superuser.com but there were only 5 perforce tags so I came here...
How can I get a list of workspaces on a specific machine with p4?
I can run p4 workspaces, but that gives me all of them, ever.
How can I filter it down to a specific machine(client) name.
I'm trying to parse a yaml file like this:
a:
a1:
a2:
b:
b1:
b11:
b2:
i get a hash like this:
{"a"=>{"a1"=>nil, "a2"=>nil}, "b"=>{"b1"=>{"b11"=>nil}, "b2"=>nil}}
and i want to turn it to a list:
%ul
%li a
%ul
%li a1
%li a2
%li b
%ul
%li b1
%ul
%li b11
%li b2
I'm trying to search the most efficent way doesn't matter how deep is the hash
I have a dropdown list (FK) which I would like to set and display a default value based on a login userid. Can you please tell me how to do it? I only want to affect the dropdown filter that appear at the top above the Gridview.
Thanks
Nikos
Say you have two lists in Sharepoint, let's call them "house" and "region".
Each house is assigned to a region via a lookup field.
List item permissions are set on regions.
Now I want the users only to only see the houses which belong to the regions they have read access to. I reckon it should be relatively simple I see no easy way of doing this. Am I over looking something.
My jCarousel (on the left) randomly scrolls to the next one, but only halfway, leaving all the others out of sync.
Does anyone know how to fix this? It just started happening randomly (though I do get my list items dynamically).
I've tried margins, paddings, heights, etc.
I have a list with lists of all the certificates being used in my project.
I want to setup a notification (email) if certification expires (or say a week before expiration).
I would like to know solutions with and without code deployment (feature).
[WebMethod]
public List<DictionaryClass<string,string>> GetDataByModuleDictionary(string ModuleName)
{
return BAL_GeneralService.GetDataByModuleDictionary(ModuleName);
}
here i m getting the following error...
The type DictionaryClass`2[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] is not supported because it implements IDictionary.
Hello friends..
colNames: ['A','B','C','D'],
colModel: [
{ name: 'A', index: 'A', width: 90 },
{ name: 'B', index: 'B', width: 100 },
{ name: 'C', index: 'C', width: 70 },
{ name: 'D', index: 'D', edittype: 'select', width: 100, editoptions: { value: { 1: 'Yes', 2: 'No'}} }
],
My concersn here is.. I am displying A B C D values from db2... for Last Column D I need to put defalut drop down list for all the rows.
Thanks can any body help me out..
thanks
How can one put components into an advanced data grid?
I wish to have a standard row with string items,
in this row there is a date selector I want to put in,
and in another cell of the row I want to put a drop down list box containing text "40" and "20" or you can manually edit the cell so that it displays what ever input you decide (other than 40 and 20)
thanks so much
I need to list the authors and their emails alternatively. For example:
user1
email_of_user1
user2
email_of_user2
Also, the user1, user2 should be links to pages where posts are filtered by author. I can use wp_list_authors() function but I can't figure out how to do the alternate user, email thing.
I have created a progress bar custom control and would like to embed this into a list which can be sorted and placed on a windows form using .Net 2.0.
What is the best approach for this?
Is it possible to just add it to a ListView as a subitem? Is there a better way to achieve this? I want it to be as lightweight as possible.
How can I efficiently and easily sort a list of tuples without being sensitive to case?
For example this:
[('a', 'c'), ('A', 'b'), ('a', 'a'), ('a', 5)]
Should look like this once sorted:
[('a', 5), ('a', 'a'), ('A', 'b'), ('a', 'c')]
The regular lexicographic sort will put 'A' before 'a' and yield this:
[('A', 'b'), ('a', 5), ('a', 'a'), ('a', 'c')]
I'm new to Android development and I'm currently going through some tutorials. When I setup a new Android Project in Eclipse, and select Windows - Android SDK and AVD Manager, in Virtual Devices, the list of existing Android Virtual Devices is empty. Is it supposed to be?
From the pictures in the tutorial, it's pre-populated. Can I download these AVDs from somewhere, am I missing something here? Also, I'm developing this on my Macbook Pro.
Is there a consolidated list of GUIDs for well known VSS writers available somewhere? At least the Microsoft ones like System State, Exchange, SQL, Sharepoint etc.
How do list the symbols being exported from a .so file. If possible, I'd also like to know their source (e.g. if they are pulled in from a static library).
I'm using gcc 4.0.2, if that makes a difference
What's the best way to organise my personal TODO list?
and what tools are available for organising team TODO lists?
Should I still be thinking in terms of TODO or are there better ways to manage my time and projects?
See also this question on Organization which is similar
hi i need to populate a drop down list when i select a certain value ,
and the options need to be queried from the database ..
can i achieve this from jquery ?
if i can then please i would appreciate any help..
I'm trying to find the proper command in subversion to see a list of all the files that have changed (don't need to see the changes really) between branch/tag A and branch/tag B, etc.
Let's say you're away from your computer and all you've got is a web browser. You'd still like to run a piece of code (e.g. to check an answer on SO). What are your options?
Let's create a list of on-line interpreters of various programming languages. Here are some examples:
Python: http://try-python.mired.org/
Haskell: http://tryhaskell.org/
Scala: http://www.simplyscala.com/
Many languages: http://ideone.com/
Many languages: http://codepad.org/
Hi,
I'm using facebook connect for my iphone app. It is able to authenticate the user and also publish a comment on the user's wall. But I'm not sure how to retrieve the user's friends list. A sample code will be highly appreciated.
Thanks in advance,
-Chandni
I have a class MyClass with a method MyMethod. For every MyClass instance in a list of MyClass instances i want to invoke MyMethod and have them run in a separate thread. I am using .NET 4.0 and the Parallel extensions.
Is there any way I can get a list of all the classes in a particular package?
I know getDefinitionByName, getQualifiedClassName, and getQualifiedSuperclassName in flash.utils can find me a class, but I can't find anyway to find all the classes in a package at runtime.
I am using this animation class to create the animation when i shrink and expand the list on some click event
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.Transformation;
import android.widget.LinearLayout.LayoutParams;
public class ExpandAnimation extends Animation{
private View mAnimatedView;
private LayoutParams mViewLayoutParams;
private int mMarginStart, mMarginEnd;
private boolean mIsVisibleAfter = false;
private boolean mWasEndedAlready = false;
public ExpandAnimation(View view, int duration){
setDuration(duration);
mAnimatedView = view;
System.out.println(view.getVisibility());
mViewLayoutParams = (LayoutParams)view.getLayoutParams();
mIsVisibleAfter = (view.getVisibility() == View.VISIBLE);
System.out.println("mIsVisibleAfter:- "+ mIsVisibleAfter);
mMarginStart = mViewLayoutParams.bottomMargin;
System.out.println("mMarginStart:- "+ mMarginStart);
mMarginEnd = (mMarginStart == 0 ?(0 - view.getHeight()):0);
System.out.println("mMarginEnd:- "+mMarginEnd);
view.setVisibility(View.VISIBLE);
}
@Override
protected void applyTransformation(float interpolatedTime, Transformation t){
super.applyTransformation(interpolatedTime, t);
System.out.println("mMarginEnd:- "+interpolatedTime);
if(interpolatedTime<1.0f){
System.out.println("Inside if true");
mViewLayoutParams.bottomMargin = mMarginStart + (int) ((mMarginEnd - mMarginStart)*interpolatedTime);
System.out.println("mViewLayoutParams.bottomMargin:- "+mViewLayoutParams.bottomMargin);
mAnimatedView.requestLayout();
}else if(!mWasEndedAlready){
mViewLayoutParams.bottomMargin = mMarginEnd;
mAnimatedView.requestLayout();
System.out.println("mIsVisibleAfter:- "+mIsVisibleAfter);
if(mIsVisibleAfter){
mAnimatedView.setVisibility(View.GONE);
}
mWasEndedAlready = true;
}
}
}
i am using following lines on some click event in my activity class to create the object of my animation class
View toolbar = (View) findViewById(R.id.toolbar1);
ExpandAnimation expandani = new ExpandAnimation(toolbar,500);
toolbar.startAnimation(expandani);
My probem is that when click event occurs, my list expand and then shrink but it must stop when it grows completely and shrink when i click on up image.
please let me know that how my animation class is working. i have also tried myself by using SOP statements which you can see in my animation class.