Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #4K
~5K People Reached
Favorite Tags
Member Avatar for markfw

Hi I'm trying to use PySerial and I'm getting "Access Denied". I don't know if this is a bug from PySerial library or I'm doing something totally stupid :-) Specification: Windows XP pro SP3 PySerial-2.5.win32 (Installed from binary) Python 2.7.1 (I know it's a bit old :-)) [CODE] from serial …

Member Avatar for meistervision
0
3K
Member Avatar for markfw

Hi I have a code as follow: [CODE] template<class T> inline bool IsValidUnsignedLong(T n) { return (T)(unsigned long) n == n; } [/CODE] When I pass -l to that function, it returns TRUE which it shouldn't since its not unsigned. Can anyone explain to me the reason behind this? why …

Member Avatar for mike_2000_17
0
194
Member Avatar for Skrell

I can't seem to find this answer anywhere. All i want to do is write a list of numbers to a file using the file.write() method however i wanted to format the numbers as if i had been using a print statement. When you print you can use %0.2f for …

Member Avatar for markfw
0
223
Member Avatar for markfw

Hi Just a general question about PySide (menubar) and UI programming. I was thinking to add menubar to my program that has a "Setting" option which let people to change the setting of the program :-). Now the question is, what is a right/correct way of saving those settings? Should …

Member Avatar for Gribouillis
0
118
Member Avatar for markfw

Hi How can I run the function from function name? Here what I have and it gives me an ERROR. Can someone explain why and how to fix it. Thanks ContantsGlobal.py [CODE] CMD = ["02", "A0"] [/CODE] Test.py [CODE] import ConstantsGlobal as GCONST class Test(object): def __init__(self): self.__dic = dict(("0x"+f, …

Member Avatar for markfw
0
166
Member Avatar for markfw

Hi First of all I want to thank everyone in this forum who helped me to understand PySide. I have a question about QtCore.QProcess: Here how my program works: I have button (QtGui.QPushButton) when it gets clicked, my program should call my C compiler (GCC) and compile the source code. …

Member Avatar for markfw
0
333
Member Avatar for markfw

Hello Quick question: Does anyone know why my window doesn't show frame? Thank Mark [CODE] import sys from PySide import QtCore, QtGui class UI_CMDTester: def __init__(self): self.__app = None self.__win = None def init(self, \ w_title, \ w_width, \ w_height): self.__app = QtGui.QApplication(sys.argv) self.__create_win(w_title, w_width, w_height) sys.exit(self.__app.exec_()) def __create_win(self, w_title, …

Member Avatar for vegaseat
0
224
Member Avatar for markfw

Hi I have some questions: I'm getting segmentation fault on print_clauses(...) function and I really can't figure it out why. But the bigger question is, am I doing something wrong in build_clauses(...) function? Am I using double pointers in right way? because the second #if ... #endif gives me N …

Member Avatar for markfw
0
120
Member Avatar for markfw

Hi. When I was looking at the header files of c library such as malloc.h, I saw that it defines some functions inside the struct (Function Pointer) and other functions outside, so my question is, why sometimes people defining function inside the struct and sometimes outside? Thanks -- Mark

Member Avatar for rubberman
0
81
Member Avatar for markfw

Hi Is there a way that I can define read-only variable (Boolean, String, ...) in Javascript class? (I really don't want to use GET and SET method, basically defining them in Constructor, as every instance of my class wouldn't have the same SET and GET method) Maybe this would be …

Member Avatar for markfw
0
91
Member Avatar for markfw

Hi I really don't know where to post this question but I believe is related to JavaScript (Prove me wrong) Question: Let say my website is [url]www.site.com[/url]. another website ([url]www.example.com[/url]) uses iframe tag to load my website in their iframe using src="www.site.com" Now, how can I detect from [url]www.site.com[/url] that …

0
45