problem

Python bizarre class problem

Hi, I have the following piece of code where I try to override a method: import Queue class PriorityQueue(Queue.PriorityQueue): def put(self, item): super(PriorityQueue, self).put((item.priority, item)) However, when I run it I get TypeError exception: super() argument 1 must be type, not classobj What is the problem? ...

css dropdown menu appears at the first tab

I am staging my ongoing work here- http://www.22shrutiharmonium.com/version2/index.html Here, css dropdown menu appears at different menu tabs (and functions accurately as intended). However, once inside the "blog" section, notice the dropdown menu unnecessarily also appearing near the first menu tab, no matter where we hover the mouse ...

Problems with the Sensor API in J2ME

Hi. I have a problem with the JSR-256. It's working fine for most of the time but sometimes it just gets stuck. I have a SensorConnection, called sensor, and from time to time (i.e. from a TimerTask) I ask the sensor for some data like so: Data[] data = sensor.getData(1); However, as I said, sooner or later, the app calls the method a...

IE doesn't send POST data

IE 6 and any other version of IE stopped sending POST data since some undefined moment in the past. Reinstalling doesn't help. xdebug shows empty $_POST, profiler echoes empty array. FF and Opera work fine on the same PC at the same time. Case is WinXP, IE6, IE8, CodeIgniter 1.7.2, Apache 2, PHP 5.2.4 ...

Problem with Ajax.ActionLink

i am reading the professional asp.net mvc book and implement the nerd Dinner example and when start to use Ajax : <%: Ajax.ActionLink( "RSVP for this event", "Register", "RSVP", new { id=Model.DinnerID }, new AjaxOptions { UpdateTargetId="rsvpmsg" }...

Simple C scanf does not work?

If I try something such as: int anint; char achar; printf("\nEnter any integer:"); scanf("%d", &anint); printf("\nEnter any character:"); scanf("%c", &achar); printf("\nHello\n"); printf("\nThe integer entered is %d\n", anint); printf("\nThe char entered is %c\n", achar); It allows entering an integer, then skips the second scanf com...

cropzoom_container problem in IE

Image is not display in cropzoom_container in IE in CropZoom v1.0.4 ...

SD card does not mount on the HTC Hero, Android 1.6

I have an HTC Hero with Android 1.6 (don't ask me why I did not get the upgrade). Software version 1.66.590.1. When I connect to my PC, it stopped notifying me of "USB Connected" notification to mount my SD card. It used to work just fine before hand. I have tried three different PCs, changed USB cables and even tried different SD card...

scoring on a scale of 1-100

I have a data set having 2000 elements. I found the distribution of that data set as Gamma (0.4). I am trying to give scores to these numbers on 1-100 scale. but I think linear conversion formulas will not work since it has a statistical distribution. How can I solve this problem? Thanks ...

How to formulate such problem mathematicaly? (line continuation search)

I have an array of "lines" each defined by 2 points. I am working with only the line segments lying between those points. I need to search lines that could continue one another (relative to some angle) and lie on the same line (with some offset) I mean I had something like 3 lines I solved some mathematical problem (formulation of wh...

GUI update issue in J2ME

Let's say I have two forms: form1 and form2. After pressing a NEXT_COMMAND in form1, I need to change the value of the gauge in form2 and then show form2. Thus: public void commandAction(Command command, Displayable displayable) { .... else if (displayable == form1) { if (command == NEXT_COMMAND) { form2_gauge.setValue(valu...

OpenGL blend problem

I want to draw aquarium (container) standing on table. Walls of aquarium need to be blended. But, if I draw table first and then aquarium I get: - looking from the up of the table: ok - looking from the bottom of the table: wrong, I still see aquarium If I draw aquariun first and then table I get: - looking from the up of the table: ...

has_attribute? problem

I have an HTML document and I need to examine, whether some attribute is presented in element in question Suppose, that the attribute is not presented. When i say: elem.has_attribute? "data-attr" it returns nil instead of "false". When i say: elem["data-attr"].nil? it returns "true", that is what i need. But, when i say: !elem...

Cannot start, stop, enter VE using OpenVZ

I'm using Debian Unstable kernel 2.6.32-5-openvz-amd64 (But I don't think it's a problem). After install and run our VEs for several month, our hard disk is nearly full and we add 3 more hard drives to make new RAID 5 Array, format it as ext4 then mount with location /openvz I have a VE with ID 112, I desire to change its configuration ...

memory leak problem.

Hi friends, I am using kal calendar in my app. the things i have to show three different seprate calendar. When i run on instrument it puts lot of memory leaks on following codes. I am new to instruments and memory leaks. canbody suggest me what i have went wrong? Regards, sathish CalendarDetails.h @interface CalendarDetails : NSObje...

heavy problem while inserting contacts to zohocrm.

when i execute this code replacing the variable with dummy data then it is working but when i write the code in this way it's not working how can i solve? $xmldata ='https://crm.zoho.com/crm/private/xml/Contacts/insertRecords?apikey='.$api.'&amp;ticket='.$ticket.'&amp;newFormat=1&amp;xmlData= <Contacts> <row no="1"> <FL val="Salutation"...

Rake on Rails 3 problem

Hi, I moved a Rails 2.3 application to Rails 3. The application actually works perfectly, but I have issue with rake tasks. It looks like the config in the environment file is not initialized correctly. the error I get is: rake aborted! undefined method `cache_classes=' for #<Hash:0x3c3e850> /var/www/apps/nzar3/config/environments/devel...

MSMQ: Enterprise library msmq listener and private remote queues - cannot send message

Hi all, I have following problem: I am trying to log messages to the remote private message queue. To do this I am using Enterprise library 5.0 and msmq trace listener in my application. Unfortunately, I always end up with the following error: Exception Type: System.Messaging.MessageQueueException MessageQueueErrorCode: IllegalFo...

Same image displaying differently in different browsers

Here is an image: When I load this image in different browsers, it shows differently. Take a look at the result: I spent a lot of time on this, but I can't understand why it happens. I have only theories: something wrong with color profiles, or bad image structure, or something else - maybe special copyright measures? Why is this ...

webpage unable to load css file

Hello folks, this is a newbie question for you guys. In file /home/myhome/apache-tomcat-6.0.29/webapps/view/test.jsp I have <link rel="stylesheet" type="text/css" href="WEB-INF/resources/view.css"/> and the view.css file is located at /home/myhome/apache-tomcat-6.0.29/webapps/view/WEB-INF/resources/view.css For some reason, it's not...