Posts
 
Reputation
Joined
Last Seen
Ranked #395
Strength to Increase Rep
+6
Strength to Decrease Rep
-1
59% Quality Score
Upvotes Received
39
Posts with Upvotes
36
Upvoting Members
18
Downvotes Received
30
Posts with Downvotes
25
Downvoting Members
13
13 Commented Posts
~143.40K People Reached
Interests
Programming, Security, Electronics, Chemistry, Biology
PC Specs
Primary: Void Linux, Intel Pentium 4 HT 3.5GHz, 3.5GB DDR2, Galaxy GeForce GT430
Member Avatar for kyronsaif

hey I'm here, I just want to mention I didn't force my friend to ask for me or anything if anyone gets that idea ;) he fully offered because he's getting impatient my primary workstation has been offline for so long, mainly because figuring this out could take years (which …

Member Avatar for Tcll
0
699
Member Avatar for Tcll

Truthfully it isn't really that special, but it is a bit cancerous as I only have `atan()` and not `atan2()`... What's special about it is every other function I see seems to be intrinsic with 1 axis needing a `sqrt()` to manage singularities, where what I'm looking to achieve is …

Member Avatar for rproffitt
0
300
Member Avatar for Tcll

Sorry for the lousy title, "InterProcess Communication" was too long Basically, I'm looking to use the native `_winapi` and `msvcrt` modules to launch an integrated python interpreter and communicate with it over pipes I can't find anything on Google or DDG, and I've been searching for days, but nobody uses …

Member Avatar for Tcll
0
2K
Member Avatar for Tcll

This actually started (in a convo with Dani) as a simple idea of just upvoting comments made to posts, buuut I quickly got ideas for turning comments into a sort-of Reddit-style thread system, where comments could be collapsed so the original general idea of the forum thread could be viewed. …

Member Avatar for Dani
1
867
Member Avatar for Tcll

So I've successfully written a metaclass that gives python the functionality of private attributes in classes. Q: But what about `inst.__private`? A: >>> class A(object): __slots__ = ['__private'] def __new__(cls): inst = object.__new__(cls) inst.__private = 10 return inst def showprivate(inst): return inst.__private >>> inst = A() >>> inst.showprivate() 10 >>> …

Member Avatar for Tcll
0
2K
Member Avatar for Tcll

class foo(object): __slots__ = ['__base__'] What's expected is for `foo.__base__` to be a member_descriptor object but instead what you get is: >>> foo.__base__ <class 'object'> >>> foo.__base__ is object True I guess something happens within the magic of class construction that makes use of `__base__` as an object. I stumbled …

Member Avatar for Tcll
0
925
Member Avatar for pato wlmc

IK this question has been solved already, but here's my input for noobs: I prefer Portable Python 2.7 with PyOpenGL and PyGLFW using GLSL (GL 4.0 preferred) for code simplicity. (use GLSL and make the GPU do most of the work (especially for the draw-code) or otherwize you'll choke your …

Member Avatar for Reverend Jim
0
10K
Member Avatar for Tcll

If you're in one of those predicaments where `cls.__private` attributes just aren't enough since they can easily be accessed through `inst._cls__private`, and you need something a little more secure, here's a method I've been playing with for a while that fills that gap. Note that this uses `__slots__`, more info …

Member Avatar for Tcll
0
844
Member Avatar for United_2

I prefer the use of the sorted() iterator (yes, this is procedural O(1\*n)) for n in sorted(numbers):

Member Avatar for Tcll
0
458
Member Avatar for Tcll

so I'm working on a class for a vector which I want to hash like a tuple, and to do so, a vector instance needs acess to it's properties. here's the constructor for the performative properties I'm using, and the vector class: def newProp(): newdict = {} getter = newdict.get …

Member Avatar for Tcll
0
449
Member Avatar for Tcll

I have an automated API with a secure frontend/backend structure where backend object attributes are hidden with frontend proxy classes. basically, when accessing an object from the frontend, you get a proxy object disguised as the backend object with all it's explicitly "public" functionality. what I'm dealing with right now …

Member Avatar for Tcll
0
455
Member Avatar for Tcll

I've been working with my own system using CPU-managed hitdefs (rectangles for mouse-events) since I didn't want to redraw everything for the gl feedback buffer... (basically I can do all the hitdef position management once during the frame loop) now that modern gl has come into play, I would like …

Member Avatar for Tcll
0
727
Member Avatar for Tcll

**Usage:** Provides a secure frontend object with restricted access to attributes of the backend object.

Member Avatar for Gribouillis
0
437
Member Avatar for Tcll

now I know your first thought is going to be rotation matrices, but take a moment to think about how they're applied... I'm wondering if there isn't something more efficient, or if there really needs to be that many operations per bone and vertex. I'm looking for the smallest data …

Member Avatar for Tcll
0
592
Member Avatar for Tcll

Basically, I'm working with zipimport to load plugins. These plugins contain binary modules which can only be loaded via retrieving their data. Copying them to a temporary directory is stupid, so how can I get a handle to a dynamic process which I can inject the stream into before it's …

Member Avatar for Tcll
0
322
Member Avatar for khess

I only complain about the dependencies and stability. I'm using Xubuntu right now and have all kinds of useless programs installed as they're required by more useful programs... alot of wasted space here. as for stability, nearly every kernel update I get gives me a new thing that no longer …

Member Avatar for Andrew_29
4
4K
Member Avatar for Tcll

so what I'm doing is building my own python IDE using PyQt. nothing can do what I need it to without a loss of something else, let alone properly. so I'm using a QPainter and getting the best results yet. however I'm having a problem trying to build indent guides …

Member Avatar for Tcll
0
487
Member Avatar for Tcll

basically, I have some code defined to be executed in a restricted namespace: code = ''' def func(): print 'success' ''' NS = {} NS.update(__builtins__) exec code in NS try: f = NS['func'] print f # should print a function object f() except KeyError: print 'failure' as you can guess... …

Member Avatar for Tcll
0
531
Member Avatar for jey1234

> This article has been dead for over six months <<< so what, I have a reason for necro-posting in that the info provided here is not very good. (threads don't disappear or I wouldn't have stumbled upon this one just now) ___ Pyglet is like PyQt4 when it comes …

Member Avatar for Tcll
0
1K
Member Avatar for Tcll

ok, so if you know me well, this gets a little complex... what I'm trying to do is execute a function from a script that requires 2 arguments where the names varry depending on the script. but I'd like that function to be executed in a namespace where I can …

Member Avatar for Gribouillis
0
310
Member Avatar for Tcll

this applies to 3D vertex coordinates if I was planing to lower the quality and byte size to a bu16, bs16, bu8, or bs8 mantissa, how would I calculate the exponent I'd need to restore them when the data is needed?? some help understanding, here's the code that reads the …

Member Avatar for Tcll
0
294
Member Avatar for Tcll

been scouring google for nearly a month now trying to find something. now as the requirement grows, I need more help tryingto find something. Portable Python is what I'm currently using, but alot of my developers (including myself) don't like the Wine wrapper... Pyzo supports linux mac and win, but …

Member Avatar for Tcll
0
754
Member Avatar for happygeek

I like hacking my OS to make it even cooler, 7 won't allow me do that. that said, it still has the same problem as Vista which had the 95 to XP support removed. (meaning my drivers for my GCN/PS2/XBox controller converter don't work on 7) UAC still sucks, Active …

Member Avatar for XP78USER
6
10K
Member Avatar for vegaseat

this is very nice, I'm probably one of the biggest fans of 1-liners out there, so yah, good job :) just to note, you could always invert instead of index ;) and do we really need a lambda?? >>> def fact(n): return (n>1)^1 or fact(n-1)*n >>> fact(53) 4274883284060025564298013753389399649690343788366813724672000000000000L ^now we're …

Member Avatar for vegaseat
0
4K
Member Avatar for happygeek

this is why I moved off windows... hearing about stuff like this P's me off knowing how easy it is to steal private data, and how far idiots will go to do it mainly just to get a quick buck. is it possible to detect these attacks and redirect them …

Member Avatar for Tcll
1
511
Member Avatar for Tcll

I've been here before but I'm looking to find a single-pass method to input the LRS `[[0,0,0],[0,0,0],[1,1,1]]` and get a basic 3x4 (at least) matrix in return: [ [1,0,0,0], [0,1,0,0], [0,0,1,0] ] ^ matrix is NOT transposed (I'll never understand why we use column-major) anyone got anything on this?? > …

Member Avatar for Tcll
0
493
Member Avatar for Tcll

ok, so I'm trying to basically load a dll that can be under multiple names: - freetype6 - libfreetype-6 and more I don't want it to find freetype.dll (I want it to search for 'freetype' and '6') how can I load a dll with a regex from the system paths?? …

Member Avatar for Tcll
0
166
Member Avatar for Tcll

ok, so this is a bit complex, I'm writing a bit-field function using a template, which can consist of: field( Template, Value ) field( [1,7,15] ,255 ) #int representation... field( ['1','3','4'] ,255 ) #bit representation... #>>> [1,7,15] field( [1,7,15] ,[1,7,15] ) field( ['1','3','4'] ,[1,7,15] ) #>>> 255 so what I'm …

Member Avatar for Gribouillis
0
515
Member Avatar for BustACode

not bad :) I'm actually working on a similar implementation for my program's extendable scripts: current normal statement: (what I already have) switch( 'FF' ) if case( '80' ): pass elif case( '88' ): pass elif case( '98' ): pass elif case( 'FF' ): pass improved future stuff: switch( 'FF' …

Member Avatar for Mark_37
0
593
Member Avatar for Tcll

basically, what I want to do is add a function name to an outside reference in a safe sys.modules reference without copying the name... best idea I got is to call a 3rd party function: def myfunc(args): x = None return x addname() # add 'myfunc' to sys.modules['/safe_ref/'] anyone got …

Member Avatar for Tcll
0
205