I'm in a situation where I want to add the equivalent of the sql statement
SET QUERY_GOVERNOR_COST_LIMIT
to my query I created with linq to entities.
How would I go about that?
Hi,
I am doing a system that require a login page. The problem is I dont know how to set the user level. For an example : if admin, can access all the page and if user can access only certain page. How to do that?
I have a database in MS Access and within it I am holding dates for expirations for SSL's. I want to set a reminder for any SSL that is soon to expire. Anyone know the easiest way to go about this?
Hi All,
I want to set the starting slide manually for the cycle plugin without using pager. It is not working for me.
Code:
$('#divTrac').cycle({
fx: 'scrollHorz',
speed: 1500,
next: '#leftt',
prev: '#rightt',
startingSlide: 2,
timeout: 0, continuous: false,
pause: 1, sync: 1,
nowrap: 1,
slideExpr: '#myTrack'
});
I'm uploading images in a grails app I'm developing and I want to be able to have an environment variable the determines where these images are. So if I'm working locally it can just pull from /home/MyName/images but once it's in production it will pull from http://images.site.com. How would I do that? I'm assuming i can set up my config.groovy with the variables i'm just not sure how i switch between them or use them in code.
In the source code of the Perl module CGI.pm, in the submodule CGI::Cookies.pm, there is the following line:
$raw_cookie = $ENV{HTTP_COOKIE} || $ENV{COOKIE};
I'm interested in $ENV{COOKIE} here. Are there any web servers (obsolete or otherwise) which transmit cookie information using the COOKIE environment variable instead of the HTTP_COOKIE used by Apache? I've never seen COOKIE and other CGI libraries don't seem to support it.
I want to set up a global hotkey* in VB6 that listens to the keyboard shortcut Win + O.
I have found heaps of messy examples, but nothing which involves the Windows key.
What's the ideal way to setup hotkeys and how does one include the Windows key as a modifier?
* I'm after a global shortcut. That means I don't have to have the application in focus for it to work.
Hi,
I'm using Hibernate with Xml mappings. I have an entity that has two fields creationDate and updateDate of type timestamp, that have to be filled with the current UTC time when the entity is persisted and updated.
I know about the existence of the @PrePersist and @PreUpdate annotations, but i don't know how to use their equivalent in my Xml mappings.
Again, i was wondering if Hibernate somehow supports natively the update and creation time set.
Thanks
Hello,
As a paper saving drive throughout the organization, we plan to set 2 page printing(back to back) as default setting on all the windows machines. Is it possible to program this in .net / java ( or any scripting language ) ?, Can we change printer properties by a program ?
Thanks for your time
Hi,
Can any 1 please tell or show the difference in the behaviour of any program before and after I "set endian little" in gdb on solaris machine?
I want to know the effect of changing it.
Thanks!
I want to set label's value from popup.But label is in frame and I dont know how to achieve it from popup. From parent page,i get this label by following javascript function.
But when I use this function in popup page, I cant find topframe.Do u have any solution about how to success it?
if (window.parent.document.getElementById('lbl'))
{
window.parent.document.getElementById('lbl').innerText = sender.getSelectedItem().get_text();
}
else
{
window.parent.frames['topFrame'].document.getElementById('lbl').innerText = sender.getSelectedItem().get_text();
}
Is there a way to programmatically set the iPad to run the iPhone app at 2x as it is launched (yet keep the iPhone app native). I understand I can create NIB files for each hardware platform, but for ease, I just would rather the app launch as if the user had tapped the 2x on the iPad. Thanks...R.J.
I can't seem to find this on google anywhere. I am trying to move to emacs from eclipse but I can't for the life of me figure out how to set my svn author name so it doesn't default the author name OR save the password so I don't have to type it in any each time. I am Ubuntu 8.10 if that matters.
Any insight would be great. Thanks.
Hi there,
I have some styling based on the primary links active class. I would like to set the class of a link in the primary links to active (<a class="active"...>) based on either the content type or the path.
I have already done some research on this but haven't yet seen anything that seems to match my query.
Would be grateful for any help.
Ben
I have installed mysql and then mysql-server. Then i start the mysql demon and follow below steps,
# chkconfig --level 2345 mysqld on
# mysqladmin -u root password testpassword
But i can not set the password because it gives me the below error,
Access denied for user root@localhost (using password: no)
I logged in as root user and perform those steps.
I even uninstalled mysql server and reinstalled but same problem occurred.
I have a particular php class that I want to be able to upload identical copies to two different servers. Depending on the server though, the requires will be located in different places. (the constants and globals are slightly different as well) Can I conditionally set require_once, Globals, or constants at the beginning of the file?
Hi I am little new to SharePoint. Here is my question
How can we make different views for administrator VS logged in user. For instance I need to display the
quicklaunch only to admin and not for user. And user should not see site actions tab.
How can we set this. Please can anyone come up with solution or any blog that we can refer?
Thanks in advance.
Is it possible (using jQuery or otherwise) to set the style of a certain element to the :hover style defined in a stylesheet?
.regStyle {
background-color: #000;
}
.regStyle:hover {
background-color: #fff;
}
Trying it out
$("#differentButton").click(function(){
// this doesn't work
$("#someElement").addClass("regStyle:hover").remove("regStyle");
});
In ASP.Net is there a way to dynamically set a control adapter? The standard way to apply a contol adapter is via the ".browser" files. However, I have a situation where I would like to use the control adapter in some circumstances, but not in others - and i can not find a way to achieve this.
Any help appreciated.
Hi,
I have a GridView which has DataKey[0] as productId.
If i have for instance productId = 54, is there any way to search through all
GridView item and set as selected the one who has DataKEy[0] = 54?
In drop down list i have :
ddlProducts.Items.FindByValue(lblProduct.Text.ToString())).Selected = true
Is anything similar for GridView?
Thanks in advance.