Portable - small api with similar functionality to httpclient?

Title pretty much says it all, I have worked with httpclient for a while and now I need to find a portable replacement which should be ideally less than 50k. Any clues there? No need for https no need for authentication protocols, plain http. Else I'll just go an implement it myself.
Regards.

Hi Leonard,
Thanks for the quick reply! Let me break down the areas I'm still unclear on into a couple of questions:
(1) What is the best way to allow the user to draw a rectangular selection? Are there some callback functions I should implement to allow the user to click and drag a marquee, or do I have to handle the code to draw the rectangle myself? I'm wondering, for example, if I need to implement the drawing code as part of a custom AVTool DoClickProcType callback, or if there is a better, built in way to get a rectangular area that a user has drawn (given that this operation is common to many tools).
(2) Once I have the rectangular selection coordinates from #1 above, how do I render it to an offscreen bitmap as you suggested? Is there a function in the API that allows me to do this?
Thanks again!
Steve

Similar Messages

  • I don't use Photoshop - looking for software with similar functionality to Photoshop's Pixelbender / Oil Painting.  Any suggestions?

    I don't use Photoshop, I'm an Aperture guy.
    I'm looking for software with similar functionality to Photoshop's Pixelbender / Oil Painting. 
    I'm especially interested in the bending of the pixels, along the lines of impressionist paintings - think van Gogh.
    Any suggestions?

    If you are interested in computer simulated drawing and painting effects, have a look at the "ToonIt!" plug-in for Aperture. This will do some of the basic work for you, but you will have to do quite a lot of editing afterwards, to turn the image into a piece of art.
    It might be easier, to do most of the drwing and painting yourself in the first place - ArtRage Deluxe is very versatile, if you have a large trackpad and pen.
    For example: Applying a light ToonIt! effect "Impressionist2": The diagonal
    cross-pattern is due to "Demo" mode - I have not yet bought the plug-in - it is rather expensive:
    The original:

  • T codes with similar functions in AP and AR process

    Hi,
    I need  list of T codes which has similar functions in entire AP and AR process.
    Thanks
    SM

    Hi,
      From the menu  Extras > Settings >   Tick "Show Technical Names".
    The look through the standard menu for AP & AR . Items with similar descriptions = Similar T-Code.
    regards

  • Plugin with similar functionality to snapshot tool

    I would like to develop a plugin with functionality similar to the Acrobat snapshot tool. I'd like to provide a method for the user to select a rectangular region, and capture an image of that region to the clipboard, which is exactly what the snapshot tool does (I also want to add some features not provided by the snapshot tool once this is working). I've reviewed the SDK samples, and I'm not sure how to get started. Is this a special case of a Selection Server? Which API methods allow me to get the image of the rectangular selection, rather than iterating through PDF elements contained within?
    Thanks!

    Hi Leonard,
    Thanks for the quick reply! Let me break down the areas I'm still unclear on into a couple of questions:
    (1) What is the best way to allow the user to draw a rectangular selection? Are there some callback functions I should implement to allow the user to click and drag a marquee, or do I have to handle the code to draw the rectangle myself? I'm wondering, for example, if I need to implement the drawing code as part of a custom AVTool DoClickProcType callback, or if there is a better, built in way to get a rectangular area that a user has drawn (given that this operation is common to many tools).
    (2) Once I have the rectangular selection coordinates from #1 above, how do I render it to an offscreen bitmap as you suggested? Is there a function in the API that allows me to do this?
    Thanks again!
    Steve

  • Actionlistener - for multiple buttons with similar functionality

    Hi, all:
    I'm working on a calculator program and want to know how to go about making a generic ActionListener for all the functions (i.e. +,-,*,/) so that I don't have to write separate inner classes for each function (i.e. + button, - button, etc.).
    I think this generic class should be created within a method that takes parameters. The parameters are then used within the inner class.
    What I need to know specifically is whether it's possible to pass a string operator symbol (e.g. "+" or "-") as a parameter in the following context:
    class buttonListener implements ActionListener
    public void actionPerformed(ActionEvent e)
    intField1Val + intFieldVal2;
    in this case, the "+" would be the parameter that would change depending on the values provided to the method.
    Can this be done??
    I'd also appreciate any other feedback you can give m,e on this problem (i.e. how to set up the method...basic structure??)
    Thanks!!

    Hi there,
    One way to do this is as follows:
    Button plus = new Button("+");
    Button minus = new Button("-");
    public void actionPerformed(ActionEvent e) {
    String componentHit = e.getActionCommand();
    if (componentHit == "+") {
    doAddMeth(); // implemented elsewhere
    else
    if (componentHit == "-") {
    doSubMeth(); // implemented elsewhere
    ~Bill

  • Berkley db java api with replication

    I'm a java programmer/ .NET programmer and consider using berkley db with replication
    my question is two fold :
    1. Basic understanding of berkley db with java api : how exactly does it work ? Is it a single process or multiple process ? this intrigues me since since both java code ( with probably requireds JVM and a dedicated process ) and both c code run together.
    2. when using java api with replication - does each client code in java has to be complied with the berkley db code and run in the same process or can be separate and the database function as a standalone service.
    3. Regarding .NET - what are the possibilities of using berkley db with replication with .NET ?
    Thanks

    Dear Anonymous, :)
    Berkeley DB (the version written in C) can run multi-process and/or multi-threaded when configured to do so (see the docs and look for information on concurrency, locking, and transactions). The Berkeley DB library calls can be wrapped into various languages, the Java Native Interface (JNI) for Java is one. Almost all other languages that I can think of have done something similar. We even use a toolkit called SWIG which helps in the process of wrapping an API for use in another language (nifty stuff). The result is that you can run a Java JVM using the Berkeley DB Java JAR/JNI interface concurrently with any number of other languages (C, Python, Ruby, Perl, TCL, you name it) because they are all simply separate processes using the same Berkeley DB dynamic library at runtime to access the same data. That's it, not much magic just good code. :)
    As to your other two questions:
    2. Berkeley DB HA (aka Replication) allows for two things; read scalability across multiple independent computers, and durability in the face of system failure (if a system dies, another one takes over until it can return to the replication group). Clients in a replication group can run using any language they want, they don't all have to be the same (for the same reasons as before). When running HA each system will manage a complete copy of the database environment (data files, log files, and locking/caching files). One system will be the master (read/write) and the others will be replicas (read only). If a master dies an election is held to determine the new master and then that system (or process) is promoted to master.
    3. There are two answers to your .NET/C# issue. First, were working on an API for 4.8 which will be out soon. Second we just spotted this person's blog entry and found it to be very interesting, you might give it a try with Berkeley DB Java/JNI and see if it works.
    http://maxtoroq.wordpress.com/2008/12/25/hello-berkeley-db-xml-on-net/
    I hope that was helpful and answered your questions,
    -greg

  • Not able to copying files/folders from one Document Library to another Document Library using Open with Browser functionality

    Hi All, 
    We have SharePoint Production server 2013 where users are complaining that they are not able to copy or move files from one document library to another document library using “Open with Explorer” functionality.
    We tried to activate publishing features on production server but it did not work. We users reported following errors:  
    Copying files from one document library to another document library:
    Tried to map the document libraries and still not get the error to copy files: 
    In our UAT environment we are able to copy and move folders from using “Open with Explorer” though.
    We have tried to simulate in the UAT environment but could not reproduce the production environment.  
    Any pointers about this issue would be highly appertained.
    Thanks in advance
    Regards,
    Aroh  
    Aroh Shukla

    Hi John and all,
    One the newly created web applications that we created few days back and navigated to document library, clicked on “Open with Explorer”, we get this error.
    We're having a problem opening this location in file explorer. Add this website to your trusted and try again.
    We added to the trusted site in Internet Explorer for this web application, cleared the cache and open the site with same document library but still get the same above error.
    However, another existing web application (In same the Farm) that we are troubleshooting at the moment, we are able click on “Open with Explorer”,  login in credentials opens and we entered the details we are able to open the document
    library and tried to follow these steps:
    From Windows Explorer (using with Open with Explorer), tried to copy or move a files to
    source document library.
    From Windows Explorer moved this file to another destination document library and we got this error.
    What we have to achieve is users should be able to copy files and folders using
    Open with Explorer functionality. We don’t know why Open with Explorer
    functionality not work working for our environment.  
    Are we doing something wrong? 
    We have referred to following websites.
    we hope concepts of copying / Moving files are similar as SharePoint 2010. Our production environment is SharePoint 2013.   
    http://www.mcstech.net/blog/index.cfm/2012/1/4/SharePoint-2010-Moving-Documents-Between-Libraries https://andreakalli.wordpress.com/2014/01/28/moving-or-copying-files-and-folders-in-sharepoint/
    Please advise us. Thank you.
    Regards,
    Aroh
    Aroh Shukla

  • Error with getAttribute( ) function, while navigating from parent to child

    Hi,
    I have been trying to develop a small project with two task flow(TF).
    Both the TF contains only one page.
    Both of my pages are made from different VO,s.
    from the Parent page (P1) if i select a row and navigate to Child Page (P2), i need to filter the result in P2 using the selected row in P1.
    From P1 when i selected a row and navigate to P2 by clicking a button, i have used a Bean to get the parameters from the selected row and Passed the same to TF2.
    I made an AMImpl method and binded it to P2, such that whenever my P2 render this AMImpl method will be executed.
    Inside the AMImpl method i am trying to run the VO query of P2 with new selected criteria from TF1 ie.P1.
    i also have few more functionalites in P2 like when i select a row and clicks on a button i will some some info on a pop-up for the corresponding selected row.
    When i run the page P2 individually,all works fine. But when i navigate from P1 to P2 none of the functions are working, i.e when i click on the button on P2 to see popup its showing that Attribute is Null in the selected row, even though the attribute is not null. After navigation in P2 this function getAttribute( ) is returning null. but when i run P2 individually the same function is returning all required fields without error.
    Actual AMimpl.java method code :
    RowKeySet selectedRows =
    Table.getSelectedRowKeys(); //Table is a "Rich Table" i declared outside the method and binded to my actual table on P2
    Iterator selectedRowsIterator =
    selectedRows.iterator();
    DCBindingContainer dc =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding iterBinding =
    dc.findIteratorBinding("P2Iterator");
    RowSetIterator rowSetIterator = iterBinding.getRowSetIterator();
    Key selectedRowkey =
    (Key)((List)(selectedRowsIterator.next())).get(0);
    Row selectedRow = rowSetIterator.getRow(selectedRowkey);
    String parameter1ForCurrentRow =
    selectedRow.getAttribute("parameter1").toString(); // -->this particular line is returning null while navigating from P1 to P2, but the same line returns actual value if the run P2 individually
    Kindly guide me how to achieve this.
    Regards
    Siva

    Hi Timo
    thanks for your reply.
    The reason I am doing this is to avoid the numerous instances of VO2 (Child VO) that will get created for every row of VO1. (eg: 100 rows of Vo1 means 100 instances of VO2 created & executed ).
    I am trying to avoid that by Binding and executing the params to a single child VO instance, only on the click of a button.
    Please advise if my assumption about as many child instances of VO2 being created and executed is incorrect and ADFBC does some kind of Lazy instantiation / loading of the child VO until the point of execution of the UI code where it is bound to ?

  • When trying to view a pdf from IE10 I get a small square with an X and not the document.

    When trying to view a pdf from IE10 I get a small square with an X and not the document. I have removed reader completely from the control panel and reinstalled version 11.0.4. I have IE 10 10.0.9200.16721. Need assitance in getting Reader XI setup.

    Hi,
    We have heard few users having similar issue as yours and found out the problem for one of the users is this: http://support.microsoft.com/kb/2716529 .
    I was able to reporduce this problem(square with a 'X') by changing the TabProcGrowth registry entry to 0.
    This tool provided by Microsoft is for Win 8, to run this on Win 7 you can manually change the registry setting : please see " Let me fix it myself" in above url.
    Before running these steps please make sure yours indeed is the same problem.
    Please be very careful as some registry settings (not this one) can create serious problems on a Windows system including causing it to no longer boo
    Let me know how it goes.
    Thank You.

  • How to merge rows with similar values in alv grid display in webdynpro

    Hi experts,
                   i want to know about how to merge rows with similar values in alv grid display of webdynpro.grouping rows is possible in table display in webdynpro but i am not able to do row grouping in the alv grid display in webdynpro.
    kindly suggest.
    thanks ,
    Anita.

    Hi Anita,
    did you find a solution for this? I have opened a Thread, if you know the answer maybe you could help me out:
    Is there an ALV function similar to the TABLE Row grouping?
    Thanx in advanced!!!
    Kind Regards,
    Gerardo J

  • Labview Executable with VISA functions in Run Time Engine

    Hi Everybody
    I designed a gui to communicate using VISA GPIB. I created an executable for the gui. I also installed LabView Run Time Engine on the desired machine. I recieved couple of errors, for which I copied the files visa32.dll, NIVISV32.dll and serpdrv to the folder with the executable.
    I recieved the following error, ' Initialization of NIVISV32.dll failed. The process interminating abnormally.'
    Are there any drivers I should install in addition to the Run Time Engine? If so, where can I find these drivers?
    Thank you
    Jackie

    I installed NI-VISA with similar version as my development installation, and LV runtime engine. Labview still crashed.
    I noticed certain library functions in full labview that is not present in the NI-VISA + LV run time directory, such as _visa.llb etc.
    Do I need to copy these additional library functions too? Will Run Time Engine read these library functions?

  • How to encrypt password with hash function in Java?

    Hello, everybody!
    I will need to store user passwords in a database, but for stronger security I want to store these passwords hashed, so I know I will need a column for the password and for the salt value.
    So, I'd like that you indicate me a very good article or tutorial (preferable from Sun) that shows me how to use Java to encrypt and decrypt passwords with hash. It doesn't necessarily need to deal with database. I can implement this part myself after seeing how Java manage encryption with hash functions.
    Thank you very much.
    Marcos

    I will tell you more precisely what I want to get better for you to help me.
    As I said I implemented in .NET what I need to implement in Java now. In my
    database I have a table with this structure (I omitted that columns that are not
    necessary to our discussion):
    CREATE TABLE EMPLOYEES
    ID NOT NULL PRIMARY KEY,
    PASSWORD VARCHAR(40), -- password encrypted
    HASH_SALT VARCHAR(10) -- salt value used to encrypt password
    So, in the table I have a column to store the password encrypted and a column to
    store the salt value.
    Below is a little utility class (in C#) that I use to generate the salt and
    the hashed password.
    public static class PasswordUtilities
        public static string GenerateSalt()
            RNGCryptoServiceProvider encoder = new RNGCryptoServiceProvider();
            byte[] buffer = new byte[5];
            encoder.GetBytes(buffer);
            return Convert.ToBase64String(buffer);
        public static string EncryptPassword(string password, string salt)
            string encryptedPassword =
                FormsAuthentication.HashPasswordForStoringInConfigFile(
                password + salt, "SHA1");
            return encryptedPassword;
    }As you can see, the class is fairly simple. It only has two methods: one to
    generate the salt value that will be used to encrypt the password and another
    one to encrypt the password. The method HashPasswordForStoringInConfigFile of
    the FormsAuthentication class is what really hash the password with the salt
    value. This class belongs to the .NET library, so we can't see its source code,
    but it doesn't matter for our discussion as I know that we can implement
    something similar in Java.
    Below is a little sample code showing the use of the utility class above to
    encrypt a password.
    public class Encrypt
        public static void Main(string args[])
            string password = "Secret";
            string salt = PasswordUtilities.GenerateSalt();
            string encryptedPassword = PasswordUtilities.EncryptPassword(password, salt);
            // now I store 'encryptedPassword' in the PASSWORD column and 'salt'
            // in the HASH_SALT column in the EMPLOYEES table.
    }To verify if a password is correct I can use the code below:
    public class VerifyPassword
        public static void Main(string args[])
            string password = GetPasswordFromUser();
            // Let's assume that employee is an instance that corresponds to a row
            // in the database and the properties HashSalt and Password correspond
            // to the HASH_SALT and PASSWORD columns respectively.
            Employee employee = GetEmployeeFromDatabase(1);
            string salt = employee.HashSalt;
            string encryptedPassword = PasswordUtilities.EncryptPassword(password, salt);
            bool passwordMatch = employee.Password.Equals(encryptedPassword);
            System.Console.WriteLine(passwordMatch);
    }The only thing that interest me in this discussion is the PasswordUtilities class.
    As you saw its code is in C#, using the .NET framework libraries.
    What I want is to have this same little class coded in Java, to generate the salt
    value and to encrypt the password passed in using salt value generated. If you could
    help me to do that with articles that have what I want or with code that already do
    that I would really appreciate.
    Thank you in advance.
    Marcos

  • Problem with 'GetType' Function calling in MSVC++

    Hello
    I have problem with the function in TestStand API .
    When I call the function " GetType " with the following statements in
    a DLL called from TestStand (NI) implemented in MS VC ++
    , it does not work and this exception is caught by the ONLY ' try catch ' block
    to catch exceptions in TestStand API giving the error message
    " Unexpected operating system error".
    VARIANT_BOOL ok;
    VARIANT_BOOL hi;
    BSTR Name;
    PropertyObject *property = (*step_)->AsPropertyObject();
    ( *step_ is a STEP Object of type Step* *step_ )
    property = property->GetPropertyObject( "TS.SData", 0);
    enum TS:ropertyValueTypes i = property->GetType( "" , 0 , &hi , &ok
    , &Name);//Problem
    Please solve my problem.
    You can email me at [email protected]
    Thankyou very much.
    Best regards
    Fahad Ejaz

    Hello,
    The problem is that the Name is not initialized (the BSTR is defined as OLECHAR*). Thus, replace the
    BSTR Name;
    declaration with the following lines:
    char buf[1024];
    BSTR Name = _bstr_t(buf);
    This should solve the problem.
    Best Regards,
    Silvius
    Silvius Iancu

  • Variant of expect command having similar functionality in Solaris OS??

    Hi All,
    I am using one shell script in Linux with “expect 5.38” command utility, this script contain ssh and sftp. Now same shell script I need to use in Solaris (SunOS eupr0016 5.9 Generic_118558-05 sun4u sparc SUNW,Sun-Fire-V440) but issue is that the Solaris OS doesn’t have expect utility.
    Please let me know, is there any other variant of expect command/utility having similar functionality to use on Solaris OS.
    Thanks
    Jiten Mistry

    JitenMistry wrote:
    But we have Solaris 5.9 OS installed5.9 and 9 are the same version of solaris (actually I think it is SunOS 5.9 and Solaris 9, but whatever). So my advice is to install the package SFWexpct that should be on the companion CD.

  • Using KM APIs with Anonymous user

    Dear SDNites,
    I have gone thorough one of the SAP notes on possible CM scenarios with anonymous users. It says the the supported scenarios are Search, browse and download.
    My question is that can we use KM apis in these areas with anonymous users?  I got some documentation on KM Indexmanagement APIs for searching with TREX, which requires authenticated user. I am wondering is there any way to use those APIs with anonymous user access.
    Thanks a lot in advance.
    Regards
    Pavan

    Hi Pavan,
    if you access the KM via Web Service you'll find parameters in each service to send username and password.
    If you browse the KM reposiroties via http you may need to do an authentication first. If your portal accepts basic authentication (as it does by default) you may call the KM explorer iView with some URL like:
    http://<username>:<password>@<hostname>.<domain>:<port>/<path to KM iView>
    If this does not work, maybe you need to use a client that supports basic authentication (digest). This may be e.g. the OpenSourcer library [HttpClient|http://hc.apache.org/] from the Apache project.
    See [RFC2617|http://www.faqs.org/rfcs/rfc2617.html] for more details on Basic Authentication and Basic Authentication (digest).
    If you have some more questions, please come back.
    Carsten

Maybe you are looking for

  • Remote Desktop and Brother MFC-6490CW not working

    I have installed a Brother MFC-6490CW on my iMac 20" Intel with Leopard 10.5.6 and have had no problems getting to work using local mac programs printing through the USB cable. I cannot get it to work correctly when I log into my Windows 2003 Termina

  • IMac 17" G4 (Flat Panel) - Which Airport Card

    I have an iMac 17" G4 Flat Panel computer. The processor is 1.0 Ghz. I looked up on Apple's site which card it takes. This link is a bit confusing. It says the iMac G4 17" Flat Panel uses an original AirPort card, but then the next line says iMac 17"

  • What the hell is thi

    I?had my Zen Sleek in my pocket at school (to listen to on the bus ride home). When?I took out and turned it on, I noticed a dark black spot on the lower right quadrant of the screen. It's always there, even when the player is off! It really is getti

  • Overstock shopping cart trick not working?

    Some brief hints about getting the SCT to work: It will not work if you did the opt out of prescreen offers.   If you need to opt in, then do so and wait 4 or 5 days. Try using the 'private' or 'incognito' or 'stealth' mode of your browser,  or clear

  • Making field invisible on screen shifts rest of the fields Up..

    Hi All, I am facing a problem that when i make one of my screen fields invisible the rest of the fields shifts up and fill up the space. Can this be avoided... please suggest thanks in advance, kushagra sharma