If I want to search for some tag, and I have not any so tagged post in front of me, how I open posts with that tag? I know that if I have one similarly tagged I can only click the tag.

Member Avatar
Member Avatar
+0 forum 3

I am looking for alternatives to setup a server in work place which does not allow to setup new software to computers to check and reserve rooms for meetings both through local network computers or possible from home / on the move. I of course would like to have thy UI in Webserver using one of the Python frameworks (mayby web2py) for dealing with management of reservations. I have idea of this kind of UI ROOM xxx DAY X-Y-Z +-----------------------------------+ | Description | +-----------------------------------+ Reserved | | | | | | |X| |X|X| | | | | | | | …

Member Avatar
Member Avatar
+0 forum 4

To continue[ my quiz series](http://www.daniweb.com/search/query/0?q=%22quiz+of+the%22+pytony#gsc.tab=0&gsc.q=%22quiz%20of%20the%22%20pytony&gsc.page=1), explain what happens with this code (how you would name this action and is there other way to get same result), why, and what is actually the value of `a` at end. a = ['a', 'b','e'] a[2:2] = ['c', 'd']

Member Avatar
Member Avatar
+0 forum 3

Notice that if you negate a boolean value with `not` in comparison with other boolean value or similar, you should put it inside a pair of parenthesis, otherwise you get syntax error: >>> 0 == not 1 SyntaxError: invalid syntax >>> 0 == (not 1) True >>>

Member Avatar
Member Avatar
+2 forum 4

I posted one Scheme code to Legacy Languages, and noticed that the formating for Lisp style quoting (single single quote or back quote before) does not function. I know you have more urgent things to consider, but you could put it in your list, Dani.

Member Avatar
Member Avatar
+0 forum 3

This example program of using the multiprocessing is crashing my i7 4 core windows7 64 bit computer (32 bit enthought Python 2.7), but is running fine in virtual machine Ubuntu with 4 cores assigned. Can anyone run it in their commputer in Windows7. My system memory (8 GB) is totally eaten by the program and mouse moves but I can not do anything with computer, even ctrl-alt-del to get to task manager. # -*- coding: utf-8 -*- from numpy import arange,sqrt, random, linalg from multiprocessing import Pool global counter counter = 0 def cb(r): global counter print counter, r counter …

Member Avatar
Member Avatar
+0 forum 2

I have a friend laptop, which shortly recovered running without battery by cold treatment in freezer for two hours, but got symptoms back after trying to charge the battery overnight. Now it again tries to start, accesses the DVD drive and lights up some leads, but not by Power switch which does nothing, but by touch quick start panel push. I tried removing and reinserting memory chips and the hard disk. I noticed by trying to boot without memory inserted that booting behaviour did not change. When the laptop was running one evening, it overheated and switched off itself after …

Member Avatar
Member Avatar
+0 forum 4

Now finally you warn discarding the post in the middle by leaving to other Internet page, thank you!

Member Avatar
Member Avatar
+0 forum 2

What is the status of Code Snippet Competition?

Member Avatar
Member Avatar
+0 forum 5

Details and download from http://python.org/download/releases/3.3.0/#download

Member Avatar
Member Avatar
+0 forum 1

Thank you for voting for the code snippet competition! pyTony

Member Avatar
+0 forum 0

The forum does not seem to accept url with () http://www.daniweb.com/software-development/python/threads/434692/python-launcher-doesnt-work#post1866059

Member Avatar
Member Avatar
+0 forum 1

My snippet for code snippet competition http://www.daniweb.com/software-development/python/code/426990/split-string-except-inside-brackets-or-quotes is completely messed up. System clitch?

Member Avatar
Member Avatar
+0 forum 15

Because of [the course](https://www.edx.org/courses/BerkeleyX/CS169.1x/2012_Fall/about) I think to take to improve employment changes by SaaS, Ruby and Rails and basic agile techniques, I looked little the Ruby forum. Unfortunately it seemed in quite a sorry state some months old questions unanswered. Even there was a related article from one of them but it concluded better to take Python/Django than Ruby on Rails, so I hope it will be worth the one month effort to take this course. Actually only for Agile technology experience it should be worth it as I have not practised those technologies myself. How is the situation here, …

Member Avatar
+0 forum 0

Here are instructions for voting for winner of the code snippet competition! http://www.daniweb.com/community-center/threads/429756/code-snippet-contest-...-cast-your-vote

Member Avatar
Member Avatar
+0 forum 2

What this produces and why? >>> a = 2 >>> b = 5 >>> exec "print(a+b)" in dict(a=6, b=9)

Member Avatar
Member Avatar
+1 forum 2

Do not miss http://www.daniweb.com/community-center/geeks-lounge/threads/424660/code-snippet-contest

Member Avatar
Member Avatar
+0 forum 1

What is prefered version on handling 'serialized' code snippets, with features added to previous post? I have posted a [polynomial expression snippet](http://www.daniweb.com/software-development/python/code/425151/class-based-polynomials-with-magic-methods#post1817526) to which I could not include the division part because original poster whose thread inspired me to start, have not proved finding his solution to the problem. Should I post new thread and include all code, considering that parts of earlier functionality has also changed in this version? Should I post the new version as answer to my earlier snippet, or just include link to the more limited version posted earlier. I also refered my earlier snippet in …

Member Avatar
Member Avatar
+0 forum 3

Do you get content of oper right before trying it out? oper = ['plus', 'minus', 'times'] oper.extend('divide') How about do you know what happens when you run this? Big bang? ;) print('a' 'b' 'c') And this is same, isn't it`? c = 'c' print('a' 'b' c)

Member Avatar
Member Avatar
+1 forum 3

I am trying to write safyfied evaluator class, and get unexpected `__builtins__` added to dictionary after evaluation. Can somebody explain why/how it happens? import math def echo(n): print n return n def nothing(n): return n debug = nothing class MathParser(object): ''' Mathematical Expression Evaluator class. call evaluate() function that will return you the result of the mathematical expression given as a string when initializing. math library functions allowed, no __ allowed ''' __slots__ = 'expression', 'variables', 'math' def __init__(self, expression, variables=None): self.math = dict((a,b) for a,b in math.__dict__.items() if not a.startswith('__') and '__' not in str(b)) assert '__builtins__' not in …

Member Avatar
Member Avatar
+0 forum 3

**_Greetings, dear Python forum users, from newly appointed moderator pyTony!_** There have been some development lock up of the Forum database occuring due to debugging process of current transition process to new Forum software. I have today been appointed as moderator and I have started to learn the processes involved by little clean up of some recent threads in this my **'Home Forum'**. I hope I can do my duties well, and sorry that English not being my native language, my language may not allways be flawless. If you have not done so, click the [_Formatting Help_](http://www.daniweb.com/community/syntax) link found in …

Member Avatar
Member Avatar
+1 forum 11

I would like to take string argument for class BalancedTrinary intializer, but the string type of argument is processed before it enters the init function. I guess I must override any class method which deals with those for int/long? def val(number_sequence, base): """ produce integer value of number_sequence as base number """ print number_sequence return sum(int(n) * base ** p for p, n in enumerate(reversed(number_sequence))) def balanced_ternary_value(number): """ produce integer value of balanced ternary number """ #print 'balanced_ternary_value', number, type(number) return val([(-1 if c == '-' else (1 if c == '+' else 0)) for c in str(number)], 3) def …

Member Avatar
Member Avatar
+0 forum 1

As I looked through the rules I did not find direct reference of not bumping messages, like this http://www.daniweb.com/software-development/python/threads/420770/pygame-quick-help#post1796253 I can of course down vote, as it does not require breaking the rules, but would be nice to get few comments about the unwritten law ##Thou shalt not bump your threads!

Member Avatar
Member Avatar
+0 forum 9

New Daniweb way to copy the code from posts with indentation is to double click (not too quickly) to select the code region and use normal copy paste as you like (second mouse button or ctrl-c). Easier than before but little not obvious!

Member Avatar
Member Avatar
+1 forum 2

The vanity pages to look how good and active you are compared to others is back from member's #Community Contributions part underlined links. Thank you Dani, now we know again how good we are! *P.S. How many activity points worth is giving a spammer infraction? ;)*

Member Avatar
+0 forum 0

Here is an amazing article. Peter Norvig does not let small detail, that the language was never implemented in it's time, disturb his debugging the code written without implementation, but single handedly implements it with Python parser. Frustration warning, this is frustratingly amazing stuff: [Prescient but Not Perfect: A Look Back at a 1966 Scientific American Article on Systems Analysis By Peter Norvig | August 23, 2011](http://blogs.scientificamerican.com/at-scientific-american/2011/08/23/systems-analysis-look-back-1966-scientific-american-article/)

Member Avatar
+0 forum 0

Here is my take as code tag police in new era of Daniweb: http://www.daniweb.com/software-development/python/threads/418619/generate-page-using-python Reposted here: Could you repost with new code markup, which is indention by at least 4 spaces, after empty line, so you could do in your python editor: ctrl-A, indent, ctrl-C, undo (or close without saving) and paste it to your post. Or make empty line, paste code, select it by mouse and clic the **Code** from menu ribbon. *Is there way to directly link this text as link in my new signature?*

Member Avatar
Member Avatar
+0 forum 1

While looking into [URL="http://www.had2know.com/academics/gaussian-prime-factorization-calculator.html?blankone=2&result="]Gaussian primes [/URL]I came to think additional ways to check for is number integer or not, what you think is best way? [CODE]epsilon = 1e-11 def is_integer(n): """ traditional abs, epsilon check for near integer """ return abs(n-round(n)) < epsilon def is_integer2(n): return (float(n)- int(n)).as_integer_ratio()[1] == 1 def is_integer3(n): s = str(float(n)) return 'e-' not in s and '.' not in s.rstrip('0.') for number in (.00001, .000001, 1 + .000001 * .000001, 1.0000000001, 2.99999999999, 123123342345.000001, 3423141+0j, 123123 + 2342.001j, 263812638621836812736182631872361): print 'Number to test = %s' % number for fun in is_integer2, is_integer3, is_integer: try: print fun.__name__, …

Member Avatar
Member Avatar
+0 forum 2

I would like to ask you to share with us your experiences in situations, where you suddenly realized that your approach to solution was stupid. And by taking other angle to problem it became easy. Or you thought one question and realized later that actually you should have asked another question ie "You were barking the wrong tree.".

Member Avatar
Member Avatar
+0 forum 3

I participated discussion about complex numbers and did some experiments in Python. I do not understand this behaviour (same behavious in 2.7.2 and 3.2.2): [CODE] >>> -(0+1j) (-0-1j) >>> -(0+1j)==-1j True >>> -(0+1j)+0 -1j >>> -(0+1j)-0 (-0-1j) >>>[/CODE] EDIT: Further investigation shows that there is -0.0 in Python, is this property of IEEE floating point arithmetic? [CODE]>>> -(1j) (-0-1j) >>> -(1j).real -0.0 >>> -0.0 -0.0 >>> -0.0==0 True >>> -0.0 is 0.0 False >>> 0.0 is 0.0 True >>> -0 is 0 True >>> [/CODE] And further it's id seems to change in each instance unlike 0.0: [CODE]>>> id(-0.0) 12428376 …

Member Avatar
Member Avatar
+0 forum 1

The End.