I may have string like,
"""Hello, %(name)s,
how are you today,
here is amount needed: %(partner_id.account_id.debit_amount)d
"""
what would be the best solution for such template may i need to combine regular expression and eval, input string may differ like $partner_id.account_id.debit_amount$ - for the moment I've kept as python string format - just for testing.
Hello
I've two classes (Negotiator, Client), both has their own boost::asio::ip::tcp::socket. Is there a way to transfer socket object to Client after negotiation is finished. I'm looking forward to do something like that:
boost::asio::ip::tcp::socket sock1(io);
//...
boost::asio::ip::tcp::socket sock2;
sock2.assign(sock1);
This operation must guarantee that the connection won't be closed when sock1 is destroyed.
I get this error
object has no attribute 'im_func'
with this
class Test(object):
def __init__(self, f):
self.func = f
def __call__( self, *args ):
return self.func(*args)
pylons code:
class TestController(BaseController):
@Test
def index(self):
return 'hello world'
Hi
I am trying to create a plugin for dotCMS. My plugin stores data in database. i defined hibernate mapping file and put in my plugin folder's conf dir and i have no idea how to hibernate generate models based my mapping definition. I am using hello world plugin's mapping file for mysql
Any help or comment would be highly appreciated
Thanks in advance
Hello,
I've just listened to http://www.zend.com/webinar/PHP/70170000000bAuS-webinar-php-performance-principles-and-tools-20100218.flv (Zend webinar about PHP performance).
I can't understand what this phrase means "Try to make you architecture more horizontal rather than vertical" (see screenshot)
Thank you.
Hello~
It seems that android Menu doesn't work on SurfaceView. Menu cannot
render when the view is the SurfaceView.
Anybody have the same problems ?
Thank you~~
Hello everyone,
I created a manifest file with 1000 items. Safari, Mozilla browsers are saving the files offline successfully and even Android saves the files correctly offline.
On iPad and iPhone when I am trying to save more than 300 items in some point the applicationCache returns "error". When I am trying to save less (e.x.: 200) it saves the files correctly and the applicationCache returns "cached".
Any ideas?
Thank you.
Hello.
I am making my own crude MP3 player, and I now have a JList with which I have populated a number of files in the form of MP3 objects (displayed on frame using DefaultListModel).
I would now like to have the oppurtunity to save this JList to a file on disk. How would I go about doing this?
I'm very new with programming and Java, so help is greatly appreciated.
Hello All
I added shortcut key on my control using jquery.
$(function() {
shortcut.add("ctrl+r", function() { SomeFunctionHere(); });
});
how can i find that this key already added in my control?
Hello everyone,
I am using MacBook Pro Mac OS 10.5 with related version of XCode. I am new to this development environment. I am developing C++ console/terminal applications (File-New project, then from the list on the left "Command line utility", and on the right "C++ tool".).
For C++ source code file, I want to print source file content with line number. Any ideas how to do this?
thanks in advance,
George
Hello,
Is there a standard way to handle MFC Edit box defocus event? I mean if I click on the box enter something and then move on on the other component handling event gets fired? Thank you for any help!
Hello, I realize this is a painfully noob question but I just don't know what to do.
I'm trying to rotate my view in Interface Builder, and everyone refers to the rotate icon in the top right of the view.
My Interface Builder doesn't have this icon. See screenshot:
What am I doing wrong? Do I have to enable this in preferences or something? I'm using Interface Builder 3.2.2
Hello,
I have 13 quantitative variables in a data.frame (called 'UNCA').
The variables are named q01_a, q01_b, ...q01_m.
I want to create 13 new variables that have the same values but are coded as a factor.
I would like to name these 13 new variables q01_a.F, q01_b.F, ...q01_m.F.
Any help would be greatly appreciated!
Hello,
How would I pass a Python variable to the Bash shell? It should work like this:
foo="./RetVar.py 42"
Replace the double-quotes with `s
I have tried printing and sys.exiting the result, but to no avail. How would I accomplish my goal?
Hello,
I wanna count the words and spaces from a Word document and insert then in a header (or footer).. as numbers. I know i can SEE these statistics (from Tools menu), but how can i insert them in a header?
Thanks
Hello,
this should be pretty simple but I don't get it. How can I draw a single point in .Net? If I use g.DrawLine(Black,0,0,0,0) nothing is drawn and if I use g.DrawLine(Black,0,0,1,0) a line with 2 dots is used. The same happens with g.DrawRectangle. This has me intrigued.
Thanks in advance.
hello i have problem with receiving data from serial port in c# in am inserting a new line operator at the end of data buffer. then i send this data buffer on serial port, after this my c# GUI receiver will take this data via Readline() function but it always give me raw data not the actual one how to resolve this problem.
Hello,
I have a CSV file which is about 1GB big and contains about 50million rows of data, I am wondering is it better to keep it as a CSV file or store it as some form of a database. I don't know a great deal about MySQL to argue for why I should use it or another database framework over just keeping it as a CSV file. I am basically doing a Breadth-First Search with this dataset, so once I get the initial "seed" set the 50million I use this as the first values in my queue.
Thanks,
I've made a program in php where i got to call a dll function.. that dll contains some hashcode.. i call this dll's function from vb6 through this code:
Private Declare Function GetHash Lib "hashGen.dll" (ByVal tEncode As String) As Long
Private Sub get_Key()
MsgBox GetHash("hello world")
end sub
can anybody tell me how to call this function in PHP?
here's my dll file:
http://www.4shared.com/file/-hdichIS/hashGen.html
thnx..
Hello there,
I created a few styles into a CSSResource and it works well whether I use
GWT.<MyResources>create(MyResources.class).myStyles().ensureInjected();
or not.
Could anyone shed a light on this and explain when to use ensureInjected or not?
Thank you!
Daniel
Hello! cud anyone help me with a software which installs favourite softwares all at once but giving the option of specific location to be installed.I would like to make sure that my application is installed in the correct location on the hard drive or allow the user to determine the install location. How can I do that?
Thanq
Hello every body.
My current career is software testing, but I feel that iam wasting my time, may be because I dont know the future path of this carrer, and to where will I arrive in the future if I continue in this carrer. And I dont know how can I develop my self in this career. And can I have my own job in this field? Please give me good suggestions and openion.
Many thanks