hi, i am having a dropdown box showing list of roles, i used Roles.GetAllroles() for showin' all roles in dropdown box but i dn't wanna show a role named "Admin" in the dropdown box.
In Perforce, is it possible to rename a depot?
I would imagine that you could integrate across different named depots, but I do not think that would carry over the full depot's history.
I have seen this Renaming Depot Directories article, but this applies only to directories under a depot (and not the depot itself).
How to copy a folder from one one path and paste it to another path using c# ?
The copied original folder should be pasted inside folder named with today's date like "220310"
Like.....
Orginal folder : c://Org/AbcFolder
Destination folder : D://Dest/220310/AbcFolder
Please help..
I am creating a domain class named HOLIDAY in grails.I need to have a year dropdown in my Holiday year field. Hear is my domain:-
class Holiday extends CategoryMaster {
String holidayName
Date startDate
int year
Date dateCreated
static constraints = {
holidayName(blank:false,nullable:false)
}
}
I need to a year dropdown in year field, Should it come dynamically from a domain method that will discard the month & day and reflect only year in that dropdown adding +50 -50 to that?... How can I get it?
I have loaded an Excel worksheet inside a WebBrowser component. Now I need to do some calculation and insert the result of the calculation into a named cell in the active worksheet. Could someone please help me with this.
Thank you.
example: Person has_many Comments. Comments has named_scope :approved. And I need to serialize Person with all approved comments to JSON. So it should look like this:
person.to_json(:include => :comments)
but how can I add there that named scope? To serialize just that approved ones?
I'm trying to write a function named median that takes a list as an input and returns the median value of the list.
I'm working with Python 2.7.2
The list can be of any size and the numbers are not guaranteed to be in any particular order.
If the list contains an even number of elements, the function should return the average of the middle two.
This is the code I'm starting with:
def median(list):
print(median([7,12,3,1,6,9]))
I want to incorporate the CallLog feature in my Android project means I want to track Incoming, Missed and Received Calls and their details like Time and Duration of the call.......So kindly If any one has.....help me with the Code in android.............
I also found the built in application named PHONE in the emulator, but don't know how to use/call it in my application....Can I have its source code..so that it can be used in my application....
Thanks...
Am I allowed to have a directory named 'import' containing Python code? Or will the import command fail to parse it as a result? Is there any way around that?
I have figured out how to remove bad files in my folders but I am wanting to know how to add certain named files to that folder.
I want to add something like address.xml
I have this and can remove the bad files.
for addxml in $(find $DIRECTORY/$directoryname -name address.xml); do
rm -v $addxml
done
I am trying to learn how later down the code I can add a file from another folder no where near the folders that are being edited.
Are they same ?
Came across this line when reading about Java's main method's signature
"String args[ ] declares a parameter named args, which is an array of instances of the class String. Objects of type String store character strings."
I've made no changes to the django project after running django-admin.py startproject Twingle
When I run the local web server using python manage.py runserver, I can view the splash page telling me everything is working fine. But when I try to visit that project through apache, it fails. You can see the error at
http://djaffry.selfip.com:8080/
The exception:
Exception Value: No module named Twingle.urls
(the project is Twingle)
I want to select data from one table (T1, in DB1) in one server (Data.Old.S1) into data in another table (T2, in DB2) in another server (Data.Latest.S2). How can I do this ?
Please note the way the servers are named. The query should take care of that too. That is,
SQL server should not be confused about fully qualified table names. For example - this could confuse SQL server - Data.Old.S1.DB1.dbo.T1.
Let's say that on the C++ side my function takes a variable of type jstring named myString. I can convert it to an ANSI string as follows:
const char* ansiString = env-GetStringUTFChars(myString, 0);
is there a way of getting
const wchar_t* unicodeString = ...
I'm having an issue with the treeview control from the silverlight 4 toolkit. I can't get it to view to display my data correctly, the toplevel items are shown but the childnodes are nowhere to be seen.
More info:
I have a wcf service that delivers a list of Categories with nested subcategories to my viewmodel (I made sure to explicitly include my subcategory data). My viewmodel has an observable list property (wich is named Categories) with this data from my WCF service.
My ViewModel: _http://pastebin.com/0TpMW3mR
My XAML: http://pastebin.com/QCwVeyYu
I have a custom treeview which i create programmatically as there is a need of specific layout which is not achievable using asp.net treeview.It is on a master page.When i click on treenodes the content area refreshes after a postback.There is a page category.aspx which is a content page of this master page.I have a user control in that content area named products.aspx.Now i want to use ajax to prevent the postback which happens when i click on treenode.I tried putting user control in updatepanel and treeview as well in updatepanel but to no awail.
How to use updatepanel in this scenerio.
Consider the following method:
+(void) myMethod:(int)arg1 **argument2**(int)arg2 **argument3**(int) arg3;
See how the first argument, unlike the 2nd and 3rd, doesn't have a description, giving it an impression of bad symmetry. Also you would expect the extra typing will provide named argument as you pass it in, but you still have to pass them in the correct order.
Can anyone help me make sense of this?
Say I have a model called Book. I have a controller named books and related views for this model. Is it possible if I have another controller work with the model Book?
Thanks all. :)
sorry if this is a repeat, i looked around some and didnt find what i was after so here goes
SELECT * FROM trees WHERE trees.`title` LIKE '%elm%'
this works fine, but not if the tree is named Elm or ELM ect... how do i make sql case insensitive for this wild-card search?
again apologies if this is repeated.
oh, using MySql 5 on apache
In my SVN repository tags are listed by version where name contains dots. e.g. 0.10 or 0.12.1
branches are named like proj-0.24-rc
In the same time, for example in Mono project branches has not dots.
Is it some practice to avoid dots? Could it be treated like extension delimiter (by web server where repository is been served), etc?
How can I prevent Visual Studio from naming the classes for new pages that are in folders from being named with the folder name? Does this method not set "right" with anyone else?
I would like to know if the following steps are possible and how fast this is:
Create a partition named part1 in Table A
Drop partition part1 in Table B
Import the Table A partition part1 into Table B
Can you provide me with an example if it is possible indeed? Or any resources I can look at?
Hey Everyone,
I need to search a bunch of files for anything that contains either "tblPayment" or "tblInvoice"
I also want to match any tables named "tblPaymentMethod", "tblInvoiceItem", "tblInvoicePayment"
Anybody care to help me out with how to write a regular expression for this?
Thanks again!
I would like to have a shell script that copies some logs from a part of my system to the hudson workspace so I can archive them.
So right now I have
#!/bin/bash -ex
cp /directory/structure/*.log .
This is kind enough to be changed to
cp '/directory/structure/*.log' .
Which of course is not found since I don't have a file named *.log.
So how do I get this script to work?