I'm interested in creating a system where the user can define the steps in a workflow.
Is there a gem that already handles this? I thought about one of the state machine gems, but they all seem to be for pre-defined states. I've been thinking maybe i can use state machine for the individual step types... An email step could have a few states [New, Assigned, Done], and the workflow could just be lists of these stateful steps. Are there other solutions out there?
My company have more 100 computer in used but boss want to change name of all of computer
but how to change them all about 100 computer?
And any body have programs for used or programing skill please hekp me
Exchange 2010 sp2.
I have a "C" level exec that wants to get his email on his android tablet. Easy enough. However, he doesn't want any Activesync policy applied to his device for remote wipe, etc. not even the default policy, and doesn't want to use OWA.
I thought I knew Exchange pretty well, but can't find a Powershell command or anything that will allow a device to connect without enforcing at least some kind of policy.
Is he out of luck using Activesync? I can set him up with POP3/IMAP, but would rather not.
We have a DataGridViewCheckBox column bound to a boolean property in our class.
The property setter has some logic which says that under certain conditions a True flag cannot be changed, ie, it stays checked forever. This is on a per record basis. So the entire column can't be readonly, only certain rows.
Pseudo code:
Public Property Foo() As Boolean
Get
Return _Foo
End Get
Set(ByVal value As Boolean)
If _Foo And Bar And value = False Then
//do nothing, in this scenario once you're true, you stay true
Else
_Foo = value
End If
End Set
End Property
Databinding is handling all of this fine, except that the checkbox is visibly cleared when it's clicked. Then, of course, when the binding / setter is fired (as you move off that cell) it is restored to its checked status per the underlying logic. Ultimately it doesn't matter too much but it's a clumsy bit of UI.
How can we intercept the user's click and keep it checked?
Given two TFS security groups
Admins: Contains a set of Windows users
Friends: Contains a Windows Security Group (which is also used as a mailing list)
However, the people listed as admins are also part of the security group. It appears that when I lock down the Friends group to certain directories in TFS, the people in Admin also lose their privileges.
Is there any way for users to receive the maximum security allowed between multiple groups they are included in? Or have I perhaps setup my TFS security groups incorrectly?
Hi,
I am trying to implement something done in almost any website out there : a 'ilike' button (like Facebook) that does not require user authetication to be used for any article of my website written in Grails.
I don't want to use any external solution, so I need to implement it myself (or use a grails plugin).
So my question is : What does it take to implement this 'ilike' button and prevent users from cheating? For instance, do I need to store local cookies (I suppose yes)? Do I need to check the session ID and IP of the HTTP request?
Any well-known implementation are welcomed.
Thank you very much for your help.
Hello Folks,
I am trying to develop a application where
The user 'X' has logged into Facebook
app has a set of email addresses (possible friends of user 'X')
app gets the list of friends of user 'X' (uids)
Want to check if user with email address [email protected] is a valid facebook user by using email address and is user X's friend (basically a uid to email mapping)
Thanks!
I have an entity Entity\User with avatar:
/**
* @ORM\OneToOne(targetEntity="Entity\Avatar", cascade={"remove"}, fetch="LAZY")
*/
protected $avatar;
And Entity\Message entity
/**
* @ORM\ManyToOne(targetEntity="Entity\User")
*/
protected $user;
When i try to load all messages with users and avatars. But not all user have avatar.
SELECT m, u, a
FROM Entity\Message m
JOIN m.user u
JOIN u.avatar a
ORDER BY m.id DESC
How to load all messages with user who avatars and who does not have?
I've been having trouble getting internet access through an ethernet connection since doing a fresh install of windows XP.
It appears that I'm missing the driver for the ethernet controller.
Looking in 'device manager' under the network adapters section there's an apparently working '1394 Net Adaptor' but under unknown devices there's the question-marked ethernet controller, which I believe is what I want the driver for.
I found an old cd that contains the driver for it (Realtek 8139 or some 81xx). There's no setup tool, but only 3 files (a .cat file, .inf file and .sys file).
I've tried right-clicking on the .inf file and using 'install' and also tried just copying the .sys file into the system32/drivers folder but neither have got me anywhere after restarting. The ethernet controller is still listed in 'unknown devices'.
EDIT: I've also tried updating the driver in the device manager, pointing it at the folder containing the driver, but this hasn't worked either.
Any ideas?
Thanks
I am working with a compromised Ubuntu 8.04 Plesk 9.5.4 server. It seems that a script on the server is continuously doing reverse lookups to random IPs on the Internet.
I first spotted it during by using top and then noticed flashes of this coming up continuously:
sh -c host -W 1 '198.204.241.10'
I wrote a this script to interrogate ps every 1 second to see how frequently this script happens:
#!/bin/bash
while :
do
ps -ef | egrep -i "sh -c host"
sleep 1
done
The results are that this script runs often, every few seconds:
www-data 17762 8332 1 10:07 ? 00:00:00 sh -c host -W 1 '59.58.139.134'
www-data 17772 8332 1 10:07 ? 00:00:00 sh -c host -W 1 '59.58.139.134'
www-data 17879 17869 0 10:07 ? 00:00:00 sh -c host -W 1 '198.204.241.10'
www-data 17879 17869 1 10:07 ? 00:00:00 sh -c host -W 1 '198.204.241.10'
www-data 17879 17869 0 10:07 ? 00:00:00 sh -c host -W 1 '198.204.241.10'
root 18031 17756 0 10:07 pts/2 00:00:00 egrep -i sh -c host
www-data 18078 16704 0 10:07 ? 00:00:00 sh -c host -W 1 '59.58.139.134'
www-data 18125 17996 0 10:07 ? 00:00:00 sh -c host -W 1 '91.124.51.65'
root 18131 17756 0 10:07 pts/2 00:00:00 egrep -i sh -c host
www-data 18137 17869 0 10:07 ? 00:00:00 sh -c host -W 1 '198.204.241.10'
www-data 18137 17869 1 10:07 ? 00:00:00 sh -c host -W 1 '198.204.241.10'
My theory is if I can see who is launching the sh process or form where it's launched I can isolate the problem further.
Can somebody please guide me using netstat or ps to identify from where sh is being run?
I might get many suggestions that the OS is out of date and so the Plesk, but please bear in mind there are some very concrete reasons why this server is running legacy software. My question is aimed at a advanced Linux systems administrators who have in depth experience with security compromises and using netstat and ps to get to the bottom of it.
Hi
I have an HTML page with a simple form.
When the user clicks "submit", I'd like a new window to open with the processed results of the form, AND to have the original page redirect somewhere else.
If I use a link with target="_blank", I can open the results window but not redirect the original page.
If I use Javascript to try and open the new window and then redirect the current page, the opening of the new window gets blocked (at least by my Firefox's default popup blocker).
Is there any way to get both a new window and run some Javascript in the original page?
Thanks!
Hello,
I was wondering what would be the best way to implement some kind of "drag n drop" user interface?
What i mean is that there would be one main page and every link click (eg. other sections like about, gallery, contact form) would open a new drag n drop element on top of that main page. Something like windows desktop where you can move your application windows around the screen.
Would it be best to call different functions with AJAX when a link is clicked? Like "gallery" link would call gallery-function and retrieve dynamically generated contents of that "window" with AJAX call and then just load that stuff on some div?
Or would some other type of approach suit better for this?
I hope I was able to explain this clearly enough. I'm looking for a proper "design pattern" to implement this. All suggestions are wellcome! :)
Its probably my stupidy here but i'm stuck on this and would appreciate the help.
I want my user to have full access to the local apache root folder, and i also want the apache to have full access to the same folder.
What i did was create a new group called DevGroup
and i added my username and www-data there.
also i changed the permissions to 770 to allow full group access
but now it wont allow me or the apache any kind of access to the folder.
here is what i get with ls
drwxrwx--- 12 root DevGroup 4096 Sep 27 17:34 testFolder
which seems perfect but when i try as a user to access the file i get this
var/www$ ls testFolder/
ls: cannot open directory testFolder/: Permission denied
also when i try to access the a page in the folder from browser
[Thu Sep 27 17:47:16 2012] [error] [client 127.0.0.1] PHP Fatal error:
Unknown: Failed opening required '/var/www/testFolder/foo.php'
(include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
Hello everyone, I have a GWT-FormPanel on my website, where people can upload pictures and answer some questions. It's working very well. The only problem is: I would like to provide a feedback to the user (for example: 0% to 100%) during the actual file process. But I have no idea how I can do that. I think that's a very common issue, that's why I would like to ask you guys if you know any tutorial or example that could help me to solve this problem.
I've already tried GWT-Upload, but it does not do what I want: I have a submit button at the end of the FormPanel and the GWTUpload has it's own "SEND" button, which I don't want to have.
Thanks in advance for helping and merry Christmas!
I have a Nagios server which monitors many servers, a number of the servers is used for QA matters.
I'd like to allow the QA team access to the Nagios UI and i want them to be able to view only monitors which are related to their work.
More than that, these servers which i want the QA team to monitor should be displayed for the admins group as well (as it is configured at the moment) in addition to the QA team.
Is that doable?
I am trying to manage an IIS7 installation remotely using the Microsoft.Web.Administration library.
I'm doing this in IronPython:
import Microsoft.Web.Administration
from Microsoft.Web.Administration import ServerManager
manager = ServerManager.OpenRemote("RemoteServerName")
for site in manager.Sites:
print "Site: %(site)s" % { 'site' : site.Name }
On the last line as it attempts to communicate with the remote server I get the following error:
Retrieving the COM class factory for
remote component with CLSID
{2B72133B-3F5B-4602-8952-803546CE3344}
from machine devdealernetsvr failed
due to the following error: 80070005.
My research into the error lead me to believe that I do not have the proper credentials against the remote machine and so I would like to impersonate a user that does.
I was hard pressed to find a way to do this with IronPython. Any help is much appreciated.
Here goes:
T1
[id] [desc]
1 lovely
2 ugly
3 slender
T2
[id] [userid] [vote]
1 1 3
1 2 5
1 3 2
2 1 1
2 2 4
2 3 4
In one query (if possible) I'd like to return:
T1.id, T1.desc, AVG(T2.vote), T2.vote (for user viewing the page)
I can get the first 3 items with:
SELECT T1.id, T1.desc, AVG(T2.vote)
FROM T1
LEFT JOIN T2 ON T1.id=T2.id
GROUP BY T1.id
and I can get the first, second, and fourth items with:
SELECT T1.id, T1.desc, T2.vote
FROM T1
LEFT JOIN T2 ON T1.id=T2.id
WHERE T2.userid='1'
GROUP BY T1.id
but I'm at a loss as to how to get all four items in one query. I tried inserting a select as the fourth term:
SELECT T1.id, T1.desc, AVG(T2.vote), (SELECT T2.vote FROM T2 WHERE T2.userid='1') AS userVote etc etc
but I get an error that the select returns more than one row...
Help?
My reason for wanting to do this in one query instead of two is that I want to be able to sort the data within MySQL rather than one it's been split into a number of arrays.
I am getting the following exception while trying to use transation in app engine datastore.
javax.jdo.JDOUserException: Transaction is still active. You should always close your transactions correctly using commit() or rollback().
FailedObject:org.datanucleus.store.appengine.jdo.DatastoreJDOPersistenceManager@12bbe6b
at org.datanucleus.jdo.JDOPersistenceManager.close(JDOPersistenceManager.java:277)
The following is the code snippet I used :
List<String> friendIds = getFriends(userId);
Date currentDate = new Date();
PersistenceManager manager = pmfInstance.getPersistenceManager();
try {
Transaction trans = manager.currentTransaction();
trans.begin();
for(String friendId : friendIds) {
User user = manager.getObjectById(User.class, friendId);
if(user != null) {
user.setRecoCount(user.getRecoCount() + 1);
user.setUpdatedDate(currentDate);
manager.makePersistent(user);
}
}
trans.commit();
} finally {
manager.close();
}
There are lots of articles and video lessons that describe how to create your unique user widget (graphical control) with WPF. There are tons of technical details what is behind the scene and I feel people enthusiasm with ability to customize widgets as never before.
I remember those days when VCL library (Delphi) appeared and there was the same enthusiasm in VCL widgets area. Ability to create VCL controls was nearly the must when you was applying for a job as Delphi developer. This situation continued for several years till professional sophisticated 3'd party UI libraries appeared. Hardly you'll have to create your own VCL widget nowadays.
Will WPF widgets enthusiasm die as VCL one?
Hey guys,
I'm using Zend_Auth to identify a user in my application.
This creates a session with the userobject.
My question is how do I make this object available to every Controller and action, so I don't have to pull it out of the session every time I need data from this object?
I'm guessing this should be done in bootstrap.php or index.php but I don't really know how to makte it available to every controller.. so any code examples would be appreciated!
Thanks!
I'm learning Rails, and the target of my experiments is to realize something similar to Zoho Creator, Flexlist or Mytaskhelper, i.e. an app where the user can create his own database schema and views. What's the best strategy to pursue this?
I saw something about the Entity-Attribute-Value but I'm not sure whether it's the best strategy or if there is some support in Rails for it.
If there was any tutorial in Rails about a similar project it would be great.
Probably it's not the easiest star for learning a new language and framework, but it would be something I really plan to do since a long time.
I have a User class in my web app that represents a user currently logged in.
Every time a user vists a page, a User instance is populated based on authentication data supplied in cookies.
A User instance is created even if an anonymous user logs in - and a corresponding new record is created in the User table in the database.
This approach allows me to save some state info for the current user regardless of its type.
The problem however with this approach is the Google bot, and other non-human web organisms crawling my pages. Every time a bot starts to walk around the site, thousands of useless records will be created in the database, each of them only to be used for a single page.
Question: what is the best trade off? How to support anonymous users, save their state, and don't get too much overhead because of cookieless bots?
I'm writing a test app using the twitter gem and I'd like to write an integration test but I can't figure out how to mock the objects in the Twitter namespace. Here's the function that I want to test:
def build_twitter(omniauth)
Twitter.configure do |config|
config.consumer_key = TWITTER_KEY
config.consumer_secret = TWITTER_SECRET
config.oauth_token = omniauth['credentials']['token']
config.oauth_token_secret = omniauth['credentials']['secret']
end
client = Twitter::Client.new
user = client.current_user
self.name = user.name
end
and here's the rspec test that I'm trying to write:
feature 'testing oauth' do
before(:each) do
@twitter = double("Twitter")
@twitter.stub!(:configure).and_return true
@client = double("Twitter::Client")
@client.stub!(:current_user).and_return(@user)
@user = double("Twitter::User")
@user.stub!(:name).and_return("Tester")
end
scenario 'twitter' do
visit root_path
login_with_oauth
page.should have_content("Pages#home")
end
end
But, I'm getting this error:
1) testing oauth twitter
Failure/Error: login_with_oauth
Twitter::Error::Unauthorized:
GET https://api.twitter.com/1/account/verify_credentials.json: 401: Invalid / expired Token
# ./app/models/user.rb:40:in `build_twitter'
# ./app/models/user.rb:16:in `build_authentication'
# ./app/controllers/authentications_controller.rb:47:in `create'
# ./spec/support/integration_spec_helper.rb:3:in `login_with_oauth'
# ./spec/integration/twit_test.rb:16:in `block (2 levels) in <top (required)>'
The mocks above are using rspec but I'm open to trying mocha too. Any help would be greatly appreciated.