Archive

Intention of my program is to group all the comments based on the author name. I would like to show all the comments from one author together. I am trying to perform this in Python. is there a way to simply collect the list of a person's comment based on name property? All the persons who comment has an unique name ID in the database and hence i can use that data. People cannot comment if they do not have the ID. It simply implies they have to first register and then comment. How to do this in cool...

Read more

I am trying to run an application in Java for a small project. As a start, i have to identify the position of the mouse pointer. how to detect the X location and Y location (X,Y) of the mouse pointer in Java ? This project will be a sub project later for a major project on which my team is working on. The user need not move the mouse, still the location of the mouse has to be identified and sent as a parameter to say a function Current_mouse_loc(). How to get the mouse pointer position? Which is the...

Read more

I am facing this problem when I am trying to edit a record. My requirement is simple, as soon as the user enters his or her name I have to check the field user_name and confirm the user that there is no matching name in database if there is no matching database. If it matches, I have to inform him or her the same. I am trying to use contract.exists?params([:user_name]) but it always return false irrespective of the value entered. I am using Ruby on rails for the above. I need simple code to check the database so that...

Read more

I am getting multiple errors and all in Tkinter basically. I am a newbie in this and have no clues what are these errors. Hence i started on reading on Tkinter first. The error messages starts with "Exception in Tkinter call-back" and pops so many errors which i do not know about. What is Tkinter function? How to use that function? How to avoid errors in Tkinter function? I am creating a project for learning colours for children using python. Thank you for your great help.

Read more

I have a total of two hard disks in my desktop PC. All the personal data are in second hard drive. First hard drive has two operating system installed. Windows 7 and Ubuntu. In both the operating system I was able to work normally. I used to access second harddisk in Windows and I use Linux for learning purpose alone. Recently I formatted one of the partition in second hard disk in etx3 format thinking that i can use it in Linux. But after system restart I am unable to see the second hard disk itself in Windows! I...

Read more

I am using ruby on rails and I would like to know if it is possible to implement a form where user can register if it is first time visit, and login if he has already registered. The user will enter username and password and send a POST. It will be verified in the back ground and will allow the user to login if it is validated successfully. Currently i am facing error in authgem. I am trying to use JSON request and response to achieve my objective. So, this is basically a login page for the user to...

Read more

I want to make use of any feature available in browsers such as incognito window or private window etc to be able to login into multiple accounts of yahoo at the same time? I am taking yahoo website as just an example. It is required for my project here to simulate and test a few features on my html page. It is an intranet page with option for multiple people logon and share ideas across. Is it really possible to have multiple accounts logged in at the same time in multiple tabs or windows? I can do with three...

Read more

I had various sticky notes on my desktop and thought of cleaning up a little. I deleted some of the sticky notes which were not required. But, accidentally I have deleted one sticky notes which had crucial data of a few parcels and their tracking numbers. I do not have any other copy too. I am very much scared and trying to restore the notes since then. Where do the deleted sticky notes go? Is it possible to do undo delete? How to recover sticky notes back? Please help.

Read more

I am trying to create a count down timer in Ruby which displays time in the following format 00 : 30: 28, 00 : 30: 27, 00 : 30: 26, 00 : 30: 25... And so on. What is the way to achieve this? If I use Time.now , load the value to a variable and display it, I still cannot achieve the above requirement format of count down. I want to display only the time remaining but not the entire date and time which I am getting now with the use of Time.now feature in a on Rails. Can any beautiful...

Read more

I am a newbie for Django but have good experience in creating webpages, adding contents and live tweets and other stuffs like that. I am adding a registration form for the users of my website to aid in registration of my website users. I want to perform the entire registration process in plain HTML, display errors to the users when they enter wrong details such as space in the email ID or not matching passwords. is it possible to generate the registration form with out using any readymade forms? Thank you for your reply. I am looking forward to...

Read more