Accéder au contenu principal

Python Pickler saving live assembly instruction... Pickler can save anything even Virus if you intended to do so...

This following artifact, from Numpy module called np_inline can generate static inline code and it's well known module... Such utility can ( demonstrated thru PDF example to multiply Matrix with a couple of line of Ansi C )...

Despite finding a way to Proove we can use big number Library to insert into a development from my github, fibonacci_offset start to work in a correct way, but crafting the original class FibonacciOffset-> ComputeLevel can compute really big number and can also generated such number it easy overflow after converting a number into C-type from module ctypes...

But after reading the module-pdf from np_inline, it show the function working after compilation ( can not be seen with idle, you need to open a terminal and calling python2.7 ) version I actually work with...

So are doing in this way:
from np_inline import inline_debug as inline

code=r'printf("Program #%i: Hello world.\n",i)
inline('hello_word_example', args=(1,),py_types=((int,'i'),),code=code )

### Showing on terminal, the compilation and finally:
--------------------------------------------------
Program #1: Hello world.
--------------------------------------------------

### This is not bad... but calling it back:
>>>import hello_word_example
### As the name you mention inside inline(...)
### and this time just using Number 2 

>>>hello_word_example.function( 2 )

--------------------------------------------------
Program #2: Hello world.
--------------------------------------------------

### -- Still Correct...
### And saving them... after all it's an object and can possibly stored... Why-not !!!

>>>import cPickle
>>>from cPickle import Pickler, Unpickler
>>>import tempfile

### I am using tempfile because it will always have space for temporary file
### being a standard in Computer-administration, almost all application 
### requires free-space

>>>atemp=tempfile.NamedTemporaryFile()
>>>aPickler=cPickle.Pickler( atemp, -1 )
>>>aPickler.dump( hello_word_example.function )
>>>AFH=open( '/home/maxiste/obj_mem.pkl', 'w+')
>>>atemp.seek(0)
>>>AFH.write( atemp.read() ) 
>>>AFH.close()
>>>del hello_word_example

### The delete operation is really important to remove the module to 
### reload it from Unpickler...

>>> hello_word_example.function( 2 )

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'hello_word_example' is not defined


### Recovering Object with Unpickler
>>>BFH=open( '/home/maxiste/obj_mem.pkl', 'r' )
>>> Dpickler=cPickle.Unpickler( BFH )
>>>hello_word_example=Dpickler.load()
### Now Module is in memory and we can load back
>>>from hello_word_example import *
### Now using Number 3 
>>>function( 3 )

--------------------------------------------------
Program #3: Hello world.
-------------------------------------------------- 
Telling it's important to keep in mind creating a new package and using setuptools directive data([...]) to store any data can store indefinitely your object compiled for your station... Might be problematic if we move toward another kernel version or simply different architecture... But the remaining story is my original New on Zero-install project with autoinstall module can freely transform and Egg out of the Web and installing it like np_inline function inline can compile it and create a module inside Tempfile and be directly Ansi-C code and directly create Assembly code ready to be executed... I do not have direct example like sending a shutdown-signal in Windows as example, but unfortunately the ctype tutorial explain how to load the windll.kernel32 and msvcrt dll too, leaving you unbreath when it's time to load Development back-end to do Administration task while Operator or Administrator had blocked such Entry over Windows Policy Group...

But unfortunately, developping a cluster, and using autoinstall and call a module being available in your personal File-Server can be spreaded fast and allow sometimes application to operate like lightning ...

And I'm working at home under Linux Environment wich is a personal pain creating virus under a ELF structure... Windows I do not own any personal knowledge of how hijacking a program running and today Virus are mostly look like to TSR and are not efficient like virus from 90' to mid-90 which was probably the end of a wage carrying their knowledge out of today technology...



XText may contains errors, syntax errors or lexical error...
XNow with SpellChecking and Editable text. Up to you to get something correct.


  • 1No Interest
  • 2Somewhat good
  • 3Good
  • 4Special.

Posts les plus consultés de ce blog

I am developper and Network Administrator and I respond to does Won’t Teach to theirs Kids to Code.

 And not yet music composer. But I made A.T.R. with Netracker in the 1990, and i am satisfied to say it's also programming while as simple reality to result it's whats sound producing from this MIDI translation of music sample into note. It's not because it take 20 years to achieve another part of a dream consist to understand code being sound plugin where some L.A.D.S.P.A. teach me howto drive the information and eventually re-create the plugin that turn the electricity down but from plugins activity. But I can say, my case involving having and partner that did the homework job in database to complete code where in a script alike Perl and I did learn from my same example I am showing online and about to expose because the first part is done. In fact it's having the plenty design and the code for 25 year in head since I did this homework in 1999-2000. The worst, I can give demonstration of a complex problem in users need, to have a system that does everything, and some ...

OpenAI devrait porter le nom de "OpenCrate with Rust" surtout si c'est le projet d'un GrandPère de l'AI qui gage sur IDF slint.

  Crate Cargo Rust...  À ma découverte de vouloir, ne par utilisé un MacIntosh, un Apple ou une paire de lunette de Apple pour voir foirer en beauté Rust avec son CARGO de "CRATE", et surtout de n'avoir pas réussi à laisser le "Rust Playground" ouvert plus de 5 minutes sur ma machine en Firefox et voir l'interface planter après avoir testé un projet de "base64", celle d'affiché un menu en mode texte.  IDF tient de l'acronyme ( Intel Developpers Framework ). Et personnellement voir un projet Rust tenir avec des clamps( appelé mitaine dans mon cas ) avec IDF reste un jeu d'équilibre. Facile à briser et relate des thèses et des manipulations qui demandent apparemment d'augmenter l'index mémoire, de la pile si vôtre projet slint plante une fois sur vôtre puce esp32s3.    Côté Arduino  À ma découverte j'ai installé IDF 5.1.5 qui est proche du développement Arduino esp32 (version 3.0.5 et utilise IDF 5.1.33-d... ). Et oui suite à ...

Hottest Snapshoot from my ThF4_LaFe Hard-State Nuclear Holdrum

This is my ThF 4 + LaFe (α-Fe) Nuclear Holdrum ( more than quantic-one ), for it's hard-state design. It's the revealed reproduction from 1980, after seeing the images with my tiny eyes from M.Villeneuve having a snapshoot from the Psychiatric hives, or vault. It was forbidden to stole because it was not yet made at this moment... To reproduce the image on the picture, they use white paint on the Xenon tube on external side of the holdrum... In fact this is PTFE thread used and it have it's property... Ionisation from PTFE thread is mildly-helper driving photo-source like filter-to-filter of a « ridicule » quater-plate effect side of using Fluor in light filtering, while in high-energy and high velocity light it en-lighting prior to filter... In This case  it's good, we are dealing with Ultra-violet led PaInSe ( also know as Hard-state gamma-ray pulse led from Praseodymium/Indium with filter to throw down wavelength to UV region...   ). I can conclude it's 5 xeno...