How can I force Tor to use a new identity without using Vidalia?
I am using Tor in my project. How can I force Tor to use a new identity from my program? ...
I am using Tor in my project. How can I force Tor to use a new identity from my program? ...
I've been trying to define a generic, inheritable TSingleton class. Here's what I had in progress: TSingleton<RealClass, InheritsFrom : class> = class(InheritsFrom) strict private class var FInstance : RealClass; protected procedure InstanceInitialization;virtual; public destructor Destroy; override; class proced...
I'm trying to build a generic worker thread in Delphi, one that I can pass a function/procedure (doesn't matter) as an argument and let it execute. My guess is to add a field in the TThread class and call it from TThread.Execute. So the code outside the thread is gonna be: MyThread := TWorkerThread.Create(True); Mythread.CallBac...
I have been coding against a Delphi EXE (win32 desktop app) to access twitter and do certain functions. It used to use Basic authentication with the api limitation. I know I have to convert this to OAuth. I have been reading over the documentation trying to determine the best approach. I understand the best method is the Web browser...
I am trying to simulate the "new identity" button in Vidalia (the Tor GUI) from my program. I asked about that, based on Rob Kennedy's answer, I tried this in my application: IdTelnet1.Host:='127.0.0.1'; IdTelnet1.Port:=9051; IdTelnet1.Connect(-1); IdTelnet1.SendCmd('SIGNAL NEWNYM'); But it has not worked for me. Even after I send the...
I am trying to load a tframe inside a delphi package (bpl) to be shown in my main app please give me code for both package and application. ...
Is there a complete resource for debugging in Delphi that instructs on how to use all the IDE debugging tools? There used to be a guide from Marco Cantù but it was updated to Delphi 5 if I am not wrong. May you please redirect me to a complete resource updated at least to D2009 (better if XE). ...
I am developing a new module for a large Application in Delphi 2010. I have organized my sources in a project group of two projects, one to build the full application and one two launch my test suite (which shares some sourcecode with the main application). During the initalization of a unit, i need to act differently depending on whic...
Is there a way to access the text entered in a Devart (Core Lab) TCRDBGrid search bar? I tried implementing the OnKeyDown event but the event didn't happen during entry in the search fields, only when the grid itself was selected. There are no other events that look relevant. The text appears to go into a TEdit which is part of a TCRGr...
I am trying to use FullDebugMode(fastmm4) to have a detailed report of memory leaks. While I can get this work succesfully in a dummy application that creates and doesn't free a TStringList I cannot in another application. In both projects the dpr is like this: {$DEFINE FullDebugMode} {$DEFINE LogMemoryLeakDetailToFile} uses FastMM4...
Hi, This was continuation to my previous question. I dont want PARAMS CHANGE_LOG data in my XML file while saving the data in ClientDataSet using ClientDataSet1.SaveToFile() method. My code looks like this: ClientDataSet1.Insert; ClientDataSet1.FieldByName('Name').AsString:= 'AAA'; ClientDataSet1.Append; ClientDataSet1.SaveToFile('c...
I would like to draw a transparent TMetaFile on a Canvas, used for print watermark. The problem is AlphaBlend function won't recognize TMetaFile.Handle as source as it expects canvas handle. I created a 32bit bitmap with transparency but drawing on it will force white background thus on Canvas you can see an alpha blended rectangle. Ho...
hi, i want to set RegularExpressions for check string1. string1 can change to : string1:='D1413578;1038' string1:='D2;11' string1:='D16;01' ,.... in string1 only Character 'D' and semicolon is always exist. i set RegularExpressions1 := '\b(D#\;#)\b'; but RegularExpressions1 can't to check string1 correctly. in the vb6 this Regul...
Dear experts: In php and java there are explode and tokenizer function to convert a string into array without punctuations. Are are functions or some way in delphi to do the work. Suppose there is a large file " This is, a large file with punctuations,, and spaces and numbers 123..." How can we get array "This is a large file with punct...
Hello I would like to develop using delphi 7 programming language but I have some questions, firstly is there a lot of deferend delphi languages e.g. borland delphi delphi 7 e.t.c.? second are there any official page providing resources? I would like to use borland delphi 7 studio but I can't find it under www.borland.com site, is it ...
I have the following Delphi code: var Stream: TMemoryStream; StreamI: TStreamAdapter; OleStream: IStream; begin Stream:= TMemoryStream.Create; Stream.LoadFromFile(filename); StreamI:= TStreamAdapter.Create(Stream, soOwned); VSPDFViewer1.LoadStream(StreamI as IStream, ''); end; Which actually passes an IStream object to a COM c...
I am working on integrating tor to my Delphi application; the whole story is explained in this link After that I searched the internet then I found a code to switch new identity in PHP function tor_new_identity($tor_ip='127.0.0.1', $control_port='9051', $auth_code=''){ $fp = fsockopen($tor_ip, $control_port, $errno, $errstr, 30);...
I want to play a recorded movie as my webcam? How can i do this , i am a Delphi programmer it's necessary to write a device driver ? I am waiting for ideas on getting this task done.Thank you! ...
Hello This I think may be a silly question, but I have become quite confused on what I should do here for the best. When salting a password hash, should the salt also be hashed or left as plaintext? NOTE: I am hashing a password in SHA-256 and the Salt is a pre defined string as only one password will ever be stored at a time. TIA C...
Hi. I am trying to get the resolution of a JPEG image without decoding the file. I got several samples from internet but none is working properly. It seems to be this way because many JPEG files are not standard, though any graphic application (Irfan, PSP, Firefox etc) can open them. The header of a JPEG was supposed to be: typedef str...