private static void getCorners(out float Wx, out float Wy, out float Vx, out float Vy)
{
// note-- I don't know how to flip the Y axis using this method... this is not a "graphics" method
// In other words, I should use something like:
// flipY(object sender, System.EventArgs e); // but don't know the…
Here is the situation dealing with a vb.net website, I have students who will be enrolled into a course. The student grid view has many columns like client_no, student_name, date_of_birth, address, etc.
There are over 100000 students so I will need to filter the student grid view to find the correct student to enroll in the course. Once they…
In c it would be:
while(1){
i++;
printf("%d \r",i);
}
I assume the textview and the variable and the timer get created in oncreate, then there is a timer handler with an increment and a settext and a sleep? Seeing how to do this in androidese would really clarify things I think. Thanks.
At the beginning of a makefile I have this line :
PATH := $(PATH):/other/dir
and this gives this error: Recursive variable 'PATH' references itself. What do I have to do so it works?
I am going to write a C# WinForms application which will run a long data-crunching task in a BackgroundWorker, show progress in a ProgressBar and have buttons to start, pause, resume and cancel the operation. I'd like to write the calculation in F#. Do you know of any good examples or readings available in the Web which can help me?
I do not understand how to use enumeration types. I understand what they are, but I don't quite get their purpose. I have made a program that inputs three sides of a triangle and outputs whether or not they are isosceles, scalene, or equilateral. I'm suppose to incorporate the enumeration type somewhere, but don't get where and how to use…
If you can tell me the magic google term that instantly gives me clarification, that would be helpful.
Here's the part that's throwing an issue when I try to manually deserialize from a string:
xsi:type="ns1:errorObject" xmlns:ns1="http://www.example.org/Version_3.0"
xsi:type="ns2:errorObject"…
Lets say I have the following MySQL structure:
CREATE TABLE `domains` (
`id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`domain` CHAR(50) NOT NULL,
`parent` INT(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MYISAM AUTO_INCREMENT=10 DEFAULT CHARSET=latin1
insert into…
I am designing a REST API where some resources can be filtered through query parameters. In some cases, these filter values would be resources from the same REST API. This makes for longish and pretty unreadable URIs. While this is not too much of a problem in itself…
I have a drupal site with clean urls, the pages load correctly, but then the URL is rewritten, which I really don't to happen.
My .htaccess is:
<IfModule mod_rewrite.c>
RewriteEngine on
# If your site can be accessed both with and without the 'www.'…
I have seen many websites supporting multiple forms of the same URL. For example consider www.example.com/question1/ OR www.example.com/Question1/ OR www.example.com/QUESTION1/ etc. all lead to one page with say
<link rel="canonical"…
When users enter my website example.com, their "preferred" language is detected and they are redirected (using a 301 Moved Permanently redirection) to example.com/en/ (for english), example.com/it/ (for italian), etc.
It works perfectly,…
I've recently been battling spam issues on our mail server. One account in particular was getting hammered with incoming spam. SpamAssassin's memory use is one of our concerns.
What I've done is enable RBLs in Exim. I now see many…
I have a tracking code that I use on my main site and my blog, which is on a subdomain:
www.example.com
blog.example.com
I have a single profile in Google Analytics. I use advanced segments to look at traffic to the main site…
I have a site www.example.com for which i purchased SSL cert and installed.
And it was working fine, I also have a subdomain with app.example.com which was not on SSL.
Both www.example.com and app.example.com are on same IP…
I am trying to use curl to connect to a site using HTTPS. But curl is failing to verify the SSL cert.
$ curl --verbose --capath ./certs/ --head https://example.com/
* About to connect() to example.com port 443 (#0)
* …
First time here :)
We have a page on the site which ranks well for an SEO term (top 5) but contains old information. We have added a new page but Google doesn't rank it that well. Information on these pages is time…
I have a php template which has one index.php and all the different pages (content1.html, content2.html etc) are shown on the index.phppage. So for example I can open www.example.com/index.php?content1 and it will…
I am having an e-commerce site and current URL structure is like this:
www.example.com/category1 [Category landing page]
www.example.com/category1/sub-category [sub-category listing page]…
We have a page on the site which ranks well for an SEO term (top 5) but contains old information. We have added a new page but Google doesn't rank it that well. Information on these pages…