How do i get access to an element in a set ?
vector<int> myvec (4,100);
int first = myvec.at(0);
set<int> myset;
myset.insert(100);
int setint = ????
Can anybody help ?
hi , i am popualte the data from MS access To Excel Using VBA during the population excel sheet it automatically set random width for thier cells. it is possible to set width equally for all cells using VBA thanks in advance
I have computers to deploy and want to apply changes to the default user policy on these PCs automatically. What's the best way to do this?
Our current procedure is:
Create the computer account in an OU called "Deployment" on our server
Unbox the PC
Login as the user who will be receiving the PC
Change settings (pre-configure outlook, authorize Office, etc.) move computer account to correct OU
Place the PC on the users desk.
I would like to make as many of the changes in step #4 with Group Policies applied to the Deployment OU if possible since they're largely repeated for every computer. There are a dozen policies created and the computer ones apply correctly but the user policies do not.
I understand this is because the end user is not in our "Deployment" OU. I don't want to apply these settings to the user at their current station just the new PC I'm working on.
I believe I have the desired effect with Group Policy Loopback Replace enabled on policies that need user policies changed but this just feels wrong/inefficient/complicated to maintain.
Am I doing this correctly?
Is Group Policy Loopback the only way to change user accounts on one computer? What do you do to setup a user on a new PC?
Is there a way to set visual studio to publish all pdf files?
I know that you can set each indivdual pdf file in a project with the
"Copy to Outpub Directory" property.
But that means doing the same thing 100's of times for my current project, is there a way to change a global setting to do the same thing?
All I am trying to do is run a three monitor setup, two widescreens on the good card at high res and a third smaller monitor at 1024x768 that I watch continuously updating info in.
I have a Dell Vostro 200 with an HIS Radeon HD 4670 video card in the PCI-e slot. I need an additional video card that will work in an available PCI slot. I Had a Nvidia GeForce 5200 that was installed but due to what I'm assuming was a compatible driver issue (because it was
Nvidia not ATI) it wouldn't run at more than 640x480 4bit color when installed simultaneously with the HIS card. Previously I used the Nvidia with the onboard Intel video to run a third monitor, but now that the HSI uses PCI-e the onboard has to be disabled. I tried a Radeon 9200 PCI card that I found (microsoft made I think) with it and only that or the HIS card could be enabled at the same time. When both were in the HIS card said "The device cannot start".
SO, based on the fact that I got the Nvidia to work (although very poorly) with the new HIS Radeon HD 4670 PCI-e I know it's possible, just don't know what type of card I need to use. Any ideas?
I am build a bar chart in Excel with data values ranging from e.g. 10 to 20. I want the X axis limits to be automatic, but although the right limit (near 20) works correctly, the left limit always defaults to 0.
I'd like the left limit to be near 10, instead of zero, without having to have the limit fixed. Is there any way to do this?
When I SSH into a linux box, I want to have the /etc/profile file save the results of the whoami command to a global environment variable. if I were to go root with the command sudo su -, I do not want that command to run again when gonig root, I want it to stick with the result of whoami as my regular username from before I went root, and I need to access that variable as the root user even though it will run the /etc/profile file again when I go root. What can I do to only run that command once in the /etc/profile command?
In my project I observed that in a FormClosed method (that handles FormClosed event)
is set MdiParent = Nothing (null).
This code makes (? no idea why) that OnLoad(method) on some child panels is raised.
Is there any sense to set MdiParent to null (Nothing) in FormClosed?
I have two applications, one of which is a store and is located under the virtual directory "store", while the main "application" is the parent website/application. However, when visiting the the top-level website address, I would like to start people in /store/default.aspx (technically "/store/home") but this is not allowed in the entry box in IIS.
Currently I am doing the redirect manually in code, but was wondering if there was a way to do this in IIS or something. Thanks for any help.
I've installed English Windows 8 x64 on my notebook and selected Slovenian as locale during installation.
The problem I'm having now is that my tiles on start screen display in Slovenian even though my installation is English. I've also edited languages, adding English (British) on the list and putting it on top of Slovenian, but tiles still use Slovenian...
All previous Windows versions were able to have English UI with a particular locale for input, time, dates, currency etc.
How can I do the same in Windows 8?
I want to do following things:
If recipient address not exist in exchange ,redirect to [email protected]
If recipient address meet specific pattern , redirect to [email protected]
Thank in advance!
Hi
dispite some posts on this forum and others i cannot find something that tells me how to set the focus on a text box.
I have a userControl with many labels and textBoxes.When the form is loaded I want the a particular textBox to have the focus.
I have set the tabIndex but that didnt seem to work.
Any suggestions
Configuration:
windows 8 (desktop)
firefox (latest version)
I've been trying to figure out how to enable the checkbox to "always open with ... application for file type", for quite a while without any luck.
Can anybody explain to me how I can enable the checkbox (see red rectangle). It's in Dutch, but I hope you recognize the dialog.
Tried so far:
- default programs (control panel)
- HKCU/Microsoft/.../FileExts: remove the UserChoice (but it was already removed, so no luck there either)
Thanks a lot in advance
I am trying to set a variable in an 'if' statement so that only when the 'if' statement is true, the variable will be set and will be able to be used somewhere else on the page.
Here's what I have tried:
if ($row[8] == 1) {
echo 'Message here';
ob_start();
include('F164.php');
$f164 = ob_get_clean();
}
as well as:
if ($row[8] == 1) {
echo 'Message here';
$f164 = include('F164.php');
}
I have a little $PATH problem: I just reinstalled MacPorts, and my path contains the MacPorts directories as it should at the beginning of $PATH. However, despite me having no such setting in my ~/.bashrc, ~/.bash_profile or ~/.profile, /Library/Frameworks/Python.framework/Versions/2.6/bin is somehow getting appended to the beginning of my $PATH:
0 07:15:11pm ~ $ echo $PATH
/Library/Frameworks/Python.framework/Versions/2.6/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
I'd like to remove it as the MacPorts version of Python is newer. This must be appended after all the above-listed files are read, but I can't think of where. There is no mention of this in /etc/profile, /etc/bashrc or /etc/paths. Any assistance would be greatly appreciated. Thanks!
Hi,
I want to set the width and height of alert box ,i tried it by fixing the width and height but showing error ,and also i want to set the width and height as 100%
Thank's in advance
Hi all,
I want to write an application that will monitor the content of all open tabs in IE / FireFox and trigger event once particular data is displayed in the tab.
I would like to know if there is an API for IE/FF to set focus on particular TAB, so that once event is triggered I set focus on a relevant tab.
Thanks in advance
Hello,
I have a table containing last_updated_1 and last_updated_2 columns, used respectively for text and images update time on a post.
I wish I could get a result set of 10 rows based on all time last updated records contained in the 2 columns, ex. row 1 = last_updated_1 record, row 2 = last_updated_2 record, row 3 = last_updated_1 record, etc.
How could I compare inside a MySQL query the both columns values, to get unique & mixed result set ?
Thank you in advance for your help
I have a managed server (unable to control apache settings) with the default document root of: /var/www
I have a web app running in: /var/www/subdomains/app/webroot
I have a dedicated domain managed by the host that has the aforementioned webroot which works perfectly. I would like to allow externally provisioned domains to point to the server/web app via A Record config. If I access the site via IP, it takes me to the index located in /var/www.
I would like to configure the .htaccess in my /var/www directory to rewrite requests from the external subdomain to the /var/www/subdomains/app/webroot directory. I've done so using the following rules:
RewriteCond %{HTTP_HOST} external\.domain\.com$ [NC]
RewriteRule ^(.*)$ /var/www/subdomains/app/webroot/index.php?url=$1 [L,QSA]
When accessing external.domain.com, the app loads properly, but the paths to things like CSS files, images, etc. are prefixed with "/subdomains/app/", causing broken links.
I've tried changing the RewriteBase (both in /var/www and /var/www/subdomains/app/webroot), as I believe that's what it's designed for - but no luck.
Any ideas?
FYI the app is built on CakePHP.
Thanks
Assume we have 3 physical servers and let's say we are only interested in performance, and not reliability. Is it better to give each server a specific function or make them all duplicates and split the traffic between them?
In other words dedicate 1 as DB server, 1 as web server, and 1 as reporting server/data warehouse, or better to put all three services on each server and use them as web farm?
I'm working with the Windows Server 2008 (a godaddy Windows dedicated server).
My problem is that .htaccess is not working in the server. And I just figured out that apache
is not installed.
I would like to know how to run the apache with the plesk (with existing php setup).
And how to run the apache with the current site directory C:\inetpub\vhosts.
My goal is to make .htaccess work on the server with plesk and with the directory C:\inetpub\vhosts.
I am using a enum
public enum WatchUsageMode
{
Watch = 1,
EmailPreferences = 2
}
i want to set the property of that enum in my view state in such a way that whenever view state is null return Watch else EmailPreference.how can i set the property?
Can any one please let me know, that, i need to fetch last 4 rows from a result-set using mysql. The result-set returns totally 6 records.
but, i need the records to be fetch from last4...i.e,
Record-3
Record-4
Record-5
Record-6
For a Console app, I need to know how to wait at set amount of time (about 10 seconds), for a user to input a key or set of keys, before proceeding with an 'auto run' portion of the application.
This is bugging me because I can't quite figure out how the timer works, or threading.sleep, what should I use? Been googling all day.
I have the following data in Excel where I want a formula that will give me the sum of all of the total rows:
A B
australia 10
australia total 10
china 1
china 5
china 7
china total 13
I have tried formulae along the lines of
=sumif(A:A,"search("total",A:A)>0",B:B)
but I cannot get the condition to work.
What is the correct way to write this contains condition?
Is there also specific a grammar for the condition language? I've been unable to find anything.