|
How do I give a specific user editing rights to a specific node?
I have a user role named "Student". Multiple users have that role, only a few of them can edit a node. How can I realise this?
Started by Paul on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
For this specific one, you could of a category of users can edit specific nodes Create a new role for that subset of users and grant them edit permissions on the....
Of different cases, which generally makes them sort of messy and confusing .
|
|
I often need to include little bits of native code in my C# apps, which I tend to do via C++/CLI. Usually I just need to use a C++ library for which there exists no good alternative for .NET; but sometimes performance is a factor too.
This is problematic...
Started by Eamon Nerbonne on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Then you prepare two projects for the addin....
When it runs on x64, it loads x64 version.
A possible approach is to use addin architecture so it works like this,
When your C# application runs on x86, it loads the x86 version of the addin .
My answer is YES.
|
|
I have two machines: Host1 and Host2 that are connected to the public internet but they are also connected through a private LAN (so both hosts have a public IP and a private IP).
- Host1 : 192.168.0.1
- Host2 : 192.168.0.2
I need to automate an SSH session...
Started by GetFree on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at serverfault):
See the section on Key....
Http://serverfault.com/questions/2429/how-do-you-setup-ssh-to-authenticate-using-keys-instead-of-a-username-password
You can limit the accteptable address from where a key-based login can be used .
This can be done using ssh keys.
|
Ask your Facebook Friends
How do you run a specific test with test/spec (not a specific file, but a spec within a given file)?
With Test::Unit, I can run:
ruby path/to/test.rb --name=test_name_that_i_want_to_run
Thus far, I have not been able to figure out how to do this with test/spec specifications. I am wondering if the way that specifications are automatically named does ...
Answer Snippets (Read the full thread at stackoverflow):
Take the following spec for example:
require 'rubygems' require 'spec' describe 'tests' do it 'should be true' do 1.should == 1 end it 'should be false' do 1.should_not == 2 end end
You can execute a single spec by using the -e flag and providing the ... .
|
|
I would like to route all traffic to 192.168.1.10 to hardware port 1 on my router and all traffic to 192.168.1.11 to hardware port 2 on my router. The issue here is that I have a network attached device (192.168.1.10) that claims to have the fastest route...
Started by Lance on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
If both the NAS device and....
However, it doesn't matter what the router thinks, because if a device feels it should send packet somewhere on the LAN, it going to do that, and it will never arrive at the router .
With a router you can give each port an IP .
|
|
We have a deployment system at my office where we can automatically deploy a given build of our code to a specified dev environment (dev01, dev02, etc.). These dev environments are generalized virtual machines, so our system has to configure them automatically...
Started by Ed Schwehm on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
@Haacked: So you're suggesting I create and copy a script to the dev... .
Perhaps just have your deployment script read in a config and run the appropriate CACLs commands .
If you can run scripts, it might be as simple as runing the CACLS command on the VM .
|
|
On a Drupal 6 site, I have a 'moderator' role, who worka with an 'article' content type.
I want the moderators to be able to see the list of published/unpublished articles, and have the option to edit the articles (and change their 'published' status)...
Started by Omer on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
That said unless the node type is one created by a specific.
Listings that will let them see the nodes.
|
|
Imagine I have a C# app sitting on a server somewhere that is creating instances of the Item class and publishing them on a messaging service.
class Item { public int ID1, ID2, ID3; public double Value1, Value2, Value3; }
Now I have another C# app on ...
Started by toasteroven on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
What you basically need is a tuple type (.NET 4.0 has this, but if you are not using that, you can create your own easily) where the members are nullable types of the id types that you want to match on... .
It's possible to do without giving up type safety.
|
|
In ~/my/path, I want to move all files that contain string "(J)" and have file type of ".foo" to ~/my/path/j
I'm trying:
[me ~/my/path]$ find -type f -name "*(J)*.foo" -print0 | xargs mv -0 j/
No luck :(
Started by smotchkkiss on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at superuser):
Find -type f -name "*(J)*.foo" -print0 | xargs -0 -I{} mv \{\} j/
By the way, posting an error message or other details instead of... .
How about
find ~/my/path -type f -name "*(J)*.foo" -exec mv {} ~/my/path/j \;
The -0 needs to go right after the xargs .
|
|
Given a class that is semantically supposed to be an object of a certain type, but also has multiple operations for operating on objects of its own type, what is the best way(pattern?) of organizing the class in this type of scenario? I find this to be...
Started by Dewayne on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
I would recommend creating a custom UserCollection that has these methods as instance methods or create them as... .
It's not very clear from your description, but it seems that the "KillAllUsers" and "MainAllUsers" methods are operating on a set of users .
|