Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
43% Quality Score
Upvotes Received
6
Posts with Upvotes
4
Upvoting Members
5
Downvotes Received
10
Posts with Downvotes
6
Downvoting Members
5
2 Commented Posts
~86.2K People Reached
Interests
Music , Guitar , Games
PC Specs
Pentium Core2Duo 2.93GhZ , OCZ Gold Edition 2 GB , 320 GB Seagate SATA , XFX GTS250 1 GB , Gigabyte…
Favorite Forums
Favorite Tags
Member Avatar for vegaseat

This simple isprime(number) function checks if the given integer number is a prime number and returns True or False. The function makes sure that the number is a positive integer, and that 1 is not considered a prime number. To find out if an integer n is odd one can …

Member Avatar for amir_19
3
24K
Member Avatar for arindam31

Here is a weird regular expression for emails . We can have various kind of email addresses [email]string1@somemail.com[/email] [email]string1@somemail.co.in[/email] [email]string1.string2@somemail.com[/email] [email]string1.string2@somemail.co.in[/email] The following regular expression can find any of the mails above email2="santa.banta@gmail.co.in" email1="arindam31@yahoo.co.in'" email="bogusemail123@sillymail.com" email3="santa.banta.manta@gmail.co.in" email4="santa.banta.manta@gmail.co.in.xv.fg.gh" email5="abc.dcf@ghj.org" email6="santa.banta.manta@gmail.co.in.org" [CODE]re.search('\w+[.|\w]\w+@\w+[.]\w+[.|\w+]\w+',email) >>> x=re.search('\w+[.|\w]\w+@\w+[.]\w+[.|\w+]\w+',email2) >>> x.group() 'santa.banta@gmail.co.in' >>> x=re.search('\w+[.|\w]\w+@\w+[.]\w+[.|\w+]\w+',email1) >>> x.group() 'arindam31@yahoo.co.in' …

Member Avatar for Syed Sulaiman
3
10K
Member Avatar for SpiritualMadMan

I have a form from which I can launch various Test Modules. The Form has 16 PushButtons, one for each of the possible Modules. I need to disable Button_2 through Button_11 until the Modules that are connected to Button_1 and Button_0 are succesfully completed. The Buttons are on a pyQT …

Member Avatar for Gribouillis
1
7K
Member Avatar for arindam31

I am trying to find out if a button is disabled....If it is , I want to enable it . For example : if button disabled: self.convertButton.setDisabled(False) So what can be button disabled be?

Member Avatar for Taywin
0
231
Member Avatar for arindam31

Hi, I have the a situation here . My motive : Hiding one panel and showing another. Whats Working :Layout wise , my app is behaving like i want it to . The Problem : After the I hide one panel and show another , the button in this panel …

Member Avatar for arindam31
0
190
Member Avatar for arindam31

Hi , I want to achieve something like this . Consider the example [CODE]>>> txt 'arin.thearc@gmail.com' if '@' or '.' in txt: do something[/CODE] I just want to know how can we nest ORs and ANDs inside the if or while loops...

Member Avatar for TrustyTony
0
215
Member Avatar for arindam31

Hi All . I am trying to make a Frame to which we add dynamically Add panels. Also I want to remove panel dynamically . The dynamic Addition is working perfect. Please see the code below: # panels.py #self.Fit() causes the whole frame to shrink.So we are using self.Layout instead …

Member Avatar for arindam31
0
303
Member Avatar for deeksha923

Hey ppl im a student and i just started studying robot framework using python.Can anyone pls help me out with the submissions. It is really important for me. I just cant get the whole thing how much ever i try.I have come up with the following code for fibonacci series(given …

0
90
Member Avatar for arindam31

Hi Guys , this questioned has been asked before , but the answers haven helped me . I want to seperate lines when i am appending the text control. But "\n" is simply not working . I am using Python 2.7 , on Windows 7. Please help. I want to …

Member Avatar for arindam31
0
34K
Member Avatar for arindam31

Hi Everyone, I am trying to call a function after every T secs . When i use time.wait() , the app hangs, i do not have control over the app. For now , this programs will do the process once , and then after T secs . But i do …

Member Avatar for arindam31
0
281
Member Avatar for arindam31

Hi Guys, I am trying to make a text box that will accept a password from user.The password should be masked while typing. [CODE]def MyFunc2(self,event): box2=wx.TextEntryDialog(None,"Enter Password","PASSWORD","Waiting",style=wx.TE_PASSWORD) if box2.ShowModal()==wx.ID_OK: global pwd1 pwd1=box2.GetValue()[/CODE] The code is a piece of a program . The above code when run , shows the text …

Member Avatar for arindam31
0
232
Member Avatar for arindam31

Hi , I am trying to save the output of "help('tkinter')" in a text file. But i get error. I want to know if there is a Way to get the output of help file redirected to a file , or save in a variable. By the way , the …

Member Avatar for Gribouillis
0
381
Member Avatar for arindam31

Hi guys, My intention is to find all possible words starting with any letter of my choice example 'p' from a paragraph.I want all the possible results . How can i do that . Take the example : 'This rule says that any match that begins earlier in the string …

Member Avatar for arindam31
0
241
Member Avatar for techy23

Hi ! everyone. I can write small [B][I]"C" Language[/I][/B] programs, compile them in an IDE like Turbo C. But how to make a complete [B][I]Working Software Application[/I][/B] . Do i need only one .c file or many others. How to make a complete large piece of software system as opposed …

Member Avatar for asitmahato
0
1K
Member Avatar for arindam31

Regular Expression (RE) They can be used with string operations. Using this, we specify the rules for the set of possible strings that we want to match (Searching for patterns in another string). Note : its finds FIRST instance of that pattern We can also use REs to modify a …

Member Avatar for arindam31
-1
233
Member Avatar for Altaf Zia

[COLOR="Green"]I got a pc re-assembled from used parts. The computer is P4. The computer works for about a week time. When computer is started (on) it does not give any display although it had been properly shut down last time. The computer assembler changes the ram and it works again …

Member Avatar for venicerajan
0
253
Member Avatar for vincenzorm117

In the code below I am attempting to establish a method of inputing a year with digits (only digits) into the character array of year. It works, but now if the inputed non-digits are 4 or more (i.e. "abcd") the program runs the printf command more than once. I recommend …

Member Avatar for Narue
0
200
Member Avatar for arindam31

[CODE]struct marks{ int p:3; int c:3; int m:2; }; void main() { struct marks s={2,-6,5}; printf("%d %d %d",s.p,s.c,s.m); }[/CODE] Output 2 2 1

Member Avatar for arindam31
0
4K
Member Avatar for ari$av3s

If I have the following code [CODE]#include <stdio.h> #include <ctype.h> #include <string.h> int main(void) { char prose[] = "to be or not to be that is the question"; int i, len; len = strlen(prose); puts (prose); return 0; }[/CODE] where would I insert the function Cap to capitalize the first …

Member Avatar for arindam31
0
164
Member Avatar for SWEngineer

What does it mean when we [B]select [/B]a RAM by assigning [CODE]select = 1[/CODE]? Thanks.

Member Avatar for arindam31
-2
110
Member Avatar for Teelnaw

Wondering if someone could guide me in the right direction. I think this code is right but can't figure out why my switch loop won't access my char array of grades and add it to an int array. [code] #include <stdio.h> int main (void) { char grade[32] = { 'A', …

Member Avatar for ari$av3s
0
266
Member Avatar for anjoz

My problem is that i want to get the 1st part only of the string ive done based on my code i can get the audio/x-aiff by finding the space but want i want to do is i want to is get or print the .aif is there any way …

Member Avatar for arindam31
0
111
Member Avatar for clarence_cool03
Member Avatar for arindam31
0
3K
Member Avatar for kagotsky

[B]Can anyone know what program what's the best for this problem?[/B] -->Create a program that will compute for the sum of all even numbers among the ten integers inputted and print them out. Thanks in advance!:)

Member Avatar for arindam31
0
103
Member Avatar for harikrishna439

int a[3]={1,2,3}; printf("%d",a[3]); While I'm executing this snippet, I'm getting the output as 2. Is 2 a garbage value here? I don't think so... Can anyone explain how 2 comes instead of a garbage value? Any answer could be appreaciated.

Member Avatar for arindam31
0
151