I want to create two grids in the WPF Page. One grid need scrollbar or scroll viewer. Another grid is static.The grids are placed one by one in the page. How to create and set the scroll in first grid.? plz explain me.
I tried to implement XOR sort in python.
x,y= 10,20
x,y,x = x^y,x^y,x^y
print('%s , %s'%(x,y))
OUTPUT:
30 , 30
I am not new to python but I am unable to explain this output. It should have been 20,10.
What is going on under the hood?
Hi all. I have created a C# DLL that has some forms in it. ( I needed it to be a DLL, not a Windows Application.)
How can I run it as a Windows App? Should I create another app and load it? How? What do I need to learn to do that?
please let me know if I should explain more about my question.
I'm writing SML programs, and I'd like a way to quickly see the output from running a program in the REPL without actually running the REPL (to quickly see if a program has syntax errors - I plan to use this as a make program for .sml files in vim to view the output inside vim).. Currently, I have this:
sml file.sml | echo -e "\004"
So it runs the program, and then echoes Ctrl-D to exit the REPL. The problem is that its too quick to send the Ctrl-D key, so there is no output. I tried this too:
sml file.sml | sleep 2 ; echo -e "\004"
But that isn't doing it either. Any ideas on how I can get a dump of the output from the REPL?
Is it possible to trick the GoGo Inflight WiFi on airlines into thinking that you have a mobile device instead of a laptop?
It seems like most airlines that offer in flight wireless these days use GoGo. They offer different pricing for mobile and laptops. It seems like they are checking the browser's user agent.
Out of curiosity, is it possible to use a Firefox extension like this one to spoof the user-agent and allow a laptop to access the internet under a GoGo mobile plan? How would GoGo handle something like an IMAP email client, like Thunderbird. Do IMAP clients have a user-agent field as well that would normally identify whether the mail client is running on a laptop or mobile device?
char *a[]={"diamonds","clubs","spades","hearts"};
char **p[]={a+3,a+2,a+1,a};
char ***ptr=p;
cout<<*ptr[2][2];
why does it display h and please explain how is the 2d array of ptr implementing and its elements
Hello guys, I'm stuck with some sort of error which i don't really understand in prolog. I get this error when calling a rule(which seems to work sometimes?) :
error(instantiation_error,Var0)
Can anyone explain to me what this means?
Thanks
So, I've been using Microsoft Security Essentials lately. And it usually takes a couple hours or more for it to full scan my hard drive. Because of that, I commonly leave it scanning while I go do something else. Problem is: 10 minutes later, windows 7 goes to sleep, and the scan is (obviously) paused. That's What I'd like to stop happening.
So far, the only way I've been able to avoid it was to create a power plan, and switch to it while away, to keep the PC from sleeping. Problem is that I have to keep switching power plans and I'd like the PC to be able to go to sleep in case MSE finishes scanning and I'm still not back.
Maybe I'm just asking for too much, but I've been surprised by the users here plenty of times already. So let me know if you know how to keep the PC from sleeping while MSE is scanning.
Thanks
Hi,
I have a Windows Hyper VPS plan with 1024 MB of RAM. After installing SQL Server 2008 Express, my memory usage went up to 75% without running my site yet. I know that SQL Server consumes a lot of memory, so I decided to host my DB on a shared server.
Which of the following is more scalable: install my DB on my VPS, or on a shared server ?
If the latter, then can you recommend me a good shared server?
Thanks.
I plan on moving the data I use for statistical analysis (100-ish Gb) onto an SSD. The data is either sqlite single-file db's, or postgresql-managed data. The SSD is 240 Gb, 550 MB/s read and 520 MB/s write.
Should I reserve that space for the data only, or would it be a good idea to install the operating system (Mac OS X) and the application directory (Adobe Suite, Microsoft Office and the like) on the SSD too?
And would it make a substantial speed difference whether I also install the postgresql binaries on the SSD?
I have plenty of other space (another 300Gb hard-drive, and a 1Tb one). Don't know the features of the non-SSD drives, though they're our standard equipment on all Macs, and they're definitely OK.
Thanks.
Hi,
guys could anyone explain to my like to a not very inteligent child what is declared here:
(this is taken from another post on this forum)
template<typename C> static char (&f(ChT<int Fallback::*, &C::x>*))[1];
how I read it is:
template of static function f called with (ChT*) but then I can't make sense why is there address of operator and why is there array?
When explaining please picture not very inteligent child and then try to make it clear to it.
Thanks for any help
Please explain me in simple terms (if possible simple example) the covariance and contravariance in c# .net .
I know many are available(even in stackoverflow) but my problem is in which scenario I should use that is not explained in the articles that I am refering to.
e.g.
Covariance and Contravariance in Delegates (C# Programming Guide)
Thanks
I'm planning to host a website where in the first phase I would target 30,000 users. It is in php and runs on Apache server.
I'm assuming 8,000 users can be online in worst case scenario and 1000 of them will be uploading photographs.
A photograph will be resized to around 1MB at client side and one HTTP request is uploading only one photograph.
My plan:
2 Small EC2 instances to run Apache httpd
2 Small EC2 instances to DB (Postgresql). I to write data and other its read replica.
EBS volumes for DBs
Last, Amazon S3 for uploaded photographs.
My question here
Is Small EC2 instance more than what I require. I mean should I go for micro
Is 8000 simultaneous user a right no. (to decide what EC2 instance to choose) for a new website
Or should I go for Small instance so to make it capable of spikes
I am new to powerbuilder and having a lot of trouble using datawindows. I can't get my head around the insert mechanism of it. Can someone explain it to me, or at least point me in the right direction(article, tips etc...) ?
I am unclear about the differences between international, national, regional and local ISPs. Please explain the differences and their importance, with examples. I am new to this site, so please forgive me if my question is not up to your expectations.
Ok, I read a while back that Quantum Computers can break most types of hashing and encryption in use today in a very short amount of time(I believe it was mere minutes). How is it possible? I've tried reading articles about it but I get lost at the a quantum bit can be 1, 0, or something else. Can someone explain how this relates to cracking such algorithms in plain English without all the fancy maths?
Hi,
I have made some screenshots of my website, and in internet explorer 6 my website looks crappy (see screenshot)
I have heard something about a PNG fix, is a PNG fix the way to solve the crappy look? and can someone explain me how to implement this?
Hi,
I am passing the email address as part of the url,
for ex. http://example.com/hello/[email protected]
but, when being passed to the application controller it is changed to " user%40hotmail.com ".
I can't seem to understand this special character escaping; confusion.
please help me explain the problem here, and also what can I do to fix it.
I am using python's "webapp" web application framework.
I have been search about SharePoint Governance for past few days, the more I search, more confused I am getting about this Topic.
Could anyone just explain in brief? What you know about it or are you using/implementing it?
A plan to look into hosting discussion forums related to our product, on our own servers, has arisen, and I can't seem to find any pure .NET or Windows-based discussion forums. Since we're a pure Windows-based company, installing something that requires MySQL or Linux is going to require administration knowledge we don't currently have.
What are our options?
Every site I find that shows how to set up discussion forums on IIS involves just taking one of the many LAMP-based ones and tweaking IIS to run PHP or similar to run it.
Isn't there a .NET-based discussion forum software?
Free or not doesn't matter at this stage, right now we're just looking for options.
I have two branches master and exp
i tried to cherry pick some of the commit in the exp to master.I am getting
the following error.
git cherry-pick 209c4b154d3c15fa8086d4cc15fa34e53b8a65a3
fatal: Dirty index: cannot cherry pick
Can anyone explain this error.
This a NP Complete problem. More info can be found here
http://en.wikipedia.org/wiki/Subgraph_isomorphism_problem
The most widely used algorithm is the one proposed by Ullman. Can someone please explain the algorithm to me. I read a paper by him and couldn't understand much.
Also what other algorithms for this problem. I am working on an image processing project.
I'm looking for a tool to rip DVD files to AVI files. VidCode looks cool, but it wants to convert the whole DVD (all files in the VIDEO_TS folder) to one AVI. I would like to pull each episode on the DVD to its own AVI. Is their a way to that with VidCode, or another ripper?
My Plan B for VidCode is to manually separate files for each episode into their own VIDEO_TS folders. Is this possible? Is there an easy, lazy way to automate this?
Can any one help with how to test sensor events like shake on Android Emulator.
I have found some posts pointing to openintents but can anyone explain how to use it in android 2.0 avd
http://code.google.com/p/openintents/wiki/SensorSimulator
This has some solution but while installing OpenIntents.apk on emulator gives missing library error.