Hi,
Does anyone has Exchange Trader server design.
I want to understand how does it work, does it required queues, to handle multiple trades
how to add various observers to the each request .
I have a few straightforward questions:-
Is the following correct according to a normal c++ compiler?
int arr[3][4];
void func(int *a, int m, int n)
{
int i,j;
cin>>i>>j;
cout<< a[i*n + j]; //is this way of addressing correct provided 0<=i<m and 0<=j<n
}
int main()
{
func((int*)arr, 3,4);
}
If the bounds of an array strictly has to be a constant expression, why doesn't the following generate compiler errors?
int func(int m, int n)
{
int arr[m][n]; //m and n are not known until run time
}
How does server management software works?
I was reading about those software and I found that they can monitor CPU speed/temptature.
How one can do this in C++
I want to read following file in C++.
000001011100110
100000010101100
001001001001100
110110000000011
000000010110011
011000110101110
111010011011110
011001010010000
I know already how many rows and columns is there in the file. I want to read each integer and store it in a 2-D matrix of ints.
Each integers here means 0 is one entry and 1 is another entry. So in this example above there are 15 0's and 1s.
This is my code.
if(in_array("1", $mod)){
$res=array('First Name','Insertion','Last Name','Lead Country');}
if(in_array("2", $mod)){
$res=array('Landline No:','Mobile No:','Lead Country');}
if(in_array("3", $mod)){
$res=array('City','State','Country','Lead Country');}
if(in_array("4", $mod)){
$res=array('Email','Lead Country');}
return $res;
Upto this it works fine. But if the array contains more than one value say (1,3)
I need to return both results of 1 and 3.
eg: if the array is like this
array([0]=>1 [1]=>3)
then
$res=array('First Name','Insertion','Last Name','City','State','Country','Lead Country')
But if there are 2 lead country only one should be displayed how to do this?
Pls help me.
Hi.
I am trying to set up nginx as reverse proxy for a tomcat server using SSL connection.
I want the client's browser to load my tomcat application when nginx reverse proxy's IP is called from client's browser.
My tomcat application's address is 192.168.25.25 and nginx proxy's address is 192.168.25.50
In my nginx.conf file i have added these lines
#
location / {
proxy_pass https://192.168.25.25:443/myapp/;
proxy_redirect https://192.168.25.25/myapp/ https://192.168.25.25/;
}
#
Some of the images in my application is stored at 192.168.25.25/images/ .
Now these directories cant be accessed as the proxy_pass is set to 192.168.25.25:443/myapp.
Is there way to access images directory also without changing proxy_pass ?
Thanks in advance.
I have been using Virtual DJ on my machine. The setup is where I want audio to play over the headphones and use a USB sound card to play audio into my headphones so I can listen to music before I play it for everybody.
However, the last time I tried, I got an error message saying "Error in the sound driver of Core Audio. Your sound card is probably not connected, or the settings are incorrect".
If I use the headphone by themselves, the USB sound card by itself, or my speakers by themselves, they all work individually.
How do I go about figuring out what's wrong here?
I have the iPhone 3G with OS 3.1 3.0.1 on it.
Every time I type a text message that includes the word "me", it gets auto corrected to "mr". So my friends get a text that says
"call mr when you get done"
or
"jack told mr about it yesterday"
how do i change this autocorrect so it stops changing my "me" to a "mr"?
My product uses oracle 9 database in its backend. every week the new release of the product is launched which will want to fire some DML, DDL queries to the database.
I usually test the product release in a dummy database before applying it in the main database.
I create a database dump using exp command, then import them into dummy database using imp. then i test the product in the dummy database and checks if there are any errors.
This exp and imp takes about 3 hours to complete. Is there any alternative as : instant snapshot of the live database (which will be independent of the live one)?
or is there any option to keep dummydatabase in sync with the originl database always. Yhis can be done by making the product firing DML&DDL queries to both the databases.. but this will be a HUGE performance problem.. how can i overcome this?
I am unable to add/remove any packages in ubuntu karmic
I keep getting the following
Errors were encountered while processing:
crossplatfromui
E: Sub-process /usr/bin/dpkg returned an error code (1)
What do I do to completely remove this package ?
We use Group / community systems like http://GoogleGroups.com and http://YahooGroups.com
Is there a similar facility for Text messaging group / cell phone groups?
I did ll on one of my directories, what does 999 means here,
drwxr-xr-x 9 git mysql 4096 Nov 12 14:41 gitlab/
drwxr-xr-x 6 gitlab_ci 999 4096 Jun 28 13:36 gitlabci/
could these directories be fully owned like
gitlab is owned by git
and gitlabci to be owned by gitlab_ci
I want something like this
drwxr-xr-x 9 git git 4096 Nov 12 14:41 gitlab/
drwxr-xr-x 6 gitlab_ci gitlab_ci 4096 Jun 28 13:36 gitlabci/
We are a small comany about 20 employees. We have some off site some i houser servers.
Where should I install CA? On a domain controller or VM?
can I obtain my own certificate for MS VPN?
Where should I install MS vpn server? can I install on VM CA server?
Do I need to open any ports on Firewall?
Please send me or direct me to a web site where I can get setip by step installation instructions. Thanks.
How do i delete database manually. Is tehre any commands for deleting a database? I usually connect through VNC but its better if there is any command line tool.
I have always been a Windows user.
I have a laptop that originally had Windows XP on it and it is currently unused.
I want to install a different OS on it.
What OS can I try, and from where do I get one?
I am creating a NAT with iptables:
Computer A: eth0 (dhcp) + eth1 (static ip 192.168.0.1 - gateway)
Computer B: eth1 (static ip 192.168.0.2, using Computer A as gateway)
I know how to block ICMP outgoing requests (-A OUTPUT -p icmp --icmp-type echo-request -j DROP), but that would block ICMP requests from Computer A, but not from Computer B (in fact, only for Computer A - Computer B can keep doing those).
I tried with the same command, but adding -o eth1, but that does not block at all. Any idea?
hi
(1)
i saw in one of your posts that it is possible to get different outputs in windows 7. i am eager to know more. Is there any way i can create a 2 or more virtual cable between two softwares simultaneously. so that simultaneously, two or more audio inputs will be routed to equal no of audio analysers receivers, and then the audio analysers send back a filtered audio back to respective audio inputs...
Please reply to email id: [email protected]
I created a database link using database link.
create public database link REMOTEDB connect to REMOTEUSER identified by REMOTEPWD using 'REMOTEDB';
then i create a table in remote db like,
create table MYTABLE@REMOTEDB (name varchar2(20)));
It says, ORA-02021 DDL operations are not allowed on| a remote database..
Will this Not work on any cost, or am i just missing some permissions to create ?
I enabled autologin in my system (CentOS 6.2)
for that I edited this file /etc/gdm/custom.conf
In that I entered this code
[daemon]
AutomaticLoginEnable=true
AutomaticLogin=test
Here test means one account name, for that account autologin is working but the problem is not possible to logout. That is because everytime while I logout it will go to gdm(graphical display manager) and there it Again checks for account test. It is available right so it will again login to same account.
Here I want add delay, that means it should wait for sometime, If no one login to any other account, then only test account will log.
how to add delay?
Is it possible to use MySQL cluster for Magento DB? I have Web app developed in Magento E-commerce platform and I want to make DB highly available using the MySQL cluster. Magento supports only InnoDB database engine and MySQL HA uses it's own engine NDB.
The Percona XtraDB Cluster, Does it change the InnoDB storage engine to XtraDB? Can I rollback to the MySQL native replication from Percona XtraDB Cluster?
New wifiadapter that is able to identify the router but connection cannot be established?
OS Win 7
Another laptop with wifi is able to connect to internet through the router but not using this wifi adapter.
I just want to know what are all the public IPv6 ranges which ISPs or other users can use?
Also need a list of addresses which can be used in private networks and also the list of addresses which never can be used in any network. I have been searching through different web sites. But none gives a reliable answer.
Actually we are developing an application which allows user to plan their IP address(create supernets, subnets, hosts, assign host to ports etc). So my application should be able to distinguish between all kinds of address ranges, whether it is reserved, public, private, multicast etc