Jump to content

Joe Sansalone

Members
  • Content Count

    107
  • Joined

  • Last visited

Posts posted by Joe Sansalone


  1. The Parallels "Best for external displays" does work.

     

    I showed someone, and they saw the same clearness with Light mode and Dark mode.

    It's my eyes on the Dark mode - I saw some "double" that made it look blurry .. but it's totally crisp as the Light mode.

    When I increase font size even a little (code editor) it looks super sharp.

     

    When it was set to "Retina Display" but had external monitor, there was a real blurriness because the resolution and scale (windows) 

    were not using the native setting of the monitor.

     

     


  2. Hi Patrick, I installed the driver in windows.  For some reason Parallels uses its own driver and it sets color to 8-bit.  I changed the setting in Parallels to use "External display" graphics and it helps.  Also, I noticed that in Light mode (Delphi IDE), the fonts are crisp and sharp.  But, in dark mode, it's a little more blurry.  My external monitor is not 4K .. it's 2560 x 1440.

     

    Seems like the color at 8-bits is not enough to make Dark mode look crisp.

    (I made sure to allocate 16GB to Parallels VM, hoping it would change display to at least 16-bit color).

     

    Thanks for the suggestions.

     


  3. Hi,

     

    I'm using Delphi 12 on a MacBook via Parallels (running Windows 11 ARM).

    It looks good on the 14 inch Retina MacBook display.

     

    But, when I connect to a 27 inch Dell monitor, the fonts look blurry.

     

    Anyone in this situation, what can be done? AND how to save settings so that I can swap between External monitor 

    and macbook?

     

    thanks,

    Joe


  4. Hi,

     

    I'm running Delphi 12.1 connected to macOS 14.5 with Xcode 15.4.

    SDK iOS 17.5

     

    I tried a simple app - compiling with Simulator ... launches simulator, app starts but never gets to form screen.

    I don't need a certificate for Simulator, right?  Anybody get Simulator to work?

     

    Same simple app ... couldn't get it to run on my iPhone (17.5).  (although I think I need to download a developer certificate and provisioning profile .. I thought it would keep from previous Xcode).

     

    Joe

     

     

     

     


  5. Hi,

     

    I know that Interbase works on the same machine with my Delphi IDE, for development purposes.

    Do I need a separate dev license to try Interbase on a machine without the Delphi IDE?

     

    If so, do I already have it because I purchased Delphi OR do I need to request it?

     

    Joe

     

     


  6. Hi,

     

    Has anyone used in-app for subscriptions?

    A client needs me to have the app free for a couple of weeks and then prompt to purchase subscription (in-app).

     

    Is this doable with TInAppPurchase?  if so, any examples out there?

     

    Joe


  7. Hi,

     

    I have Delphi 11.3 and Delphi 12.1 on the same machine.

    Interbase2020 Update 4 was there before 12.1.  Now there is Update 5 as well.

     

    But even though I change the shortcut to point to IBMgr.exe gds_db in the Delphi 12.1 directory,

    the server running shows the old Update 4.

     

    I made changes to the registry ... I don't know why update 4 is running??

     

    If I check the location of the running IBServer.exe in task manager it always shows 22.0 folder (Delphi 11.3).

     

     


  8. I'm simply doing a 

       aRequestInfo.PostStream.Position := 0;

       StringList.LoadFromStream(aRequestInfo.POstStream, TEncoding.UTF8);

     

    to get the content into a string list.

     

    Then, I'll be looping through each line of the stringlist looking for

    Content-Disposition: form-data; name="xxx" and getting the NAME of the parameter (i.e. xxx).

    Then skipping a line and taking every line until --XYzZY, to get the VALUE of the name parameter.

     

    I think it will work for anything without attachments.


  9. Hi,

     

    I have a Indy HTTP server application.

    Currently receiving requests in the format: application/x-www-form-urlencoded.

    (everything works fine, I use the parsed params).

     

    I'm now also receiving Posts from SendGrid: "the post will be multipart/form-data with the email content URL encoded, but the attachments will be in multipart/form-data".

     

    Using the TIdHTTPRequestInfo.PostStream, I'm able to view the payload that they are sending me.

     

    1. Do I need to URLDecode the email content or is it already decoded?

     

    2. Are there any functions/classes to help parse the form-data?

     it looks like this:

     

    --XYzZY

    Content-Disposition: form-data; name="from"

     

    Joe S. <joes1234@gmail.com>

    --XYzZY

    Content-Disposition: form-data; name="text"

     

    Hello,

     

    I'm testing this email.

    Joe

    --XYzZY

    Content-Disposition: form-data; name="to"

     

    mb12345@parsetest.projectone.ca

    --XYzZY

    Content-Disposition: form-data; name="subject"

     

    Subject123

     

     


  10. OK, I got it to work via:

     

    tempBody := 'Param1=' + value1 + '&' + 'Param2=' + value2 + '&' ... etc;  // build the parameters with & in-between each parameter

     

    RestRequest.Params.AddItem('Body1234', tempBody, pkREQUESTBODY, [poDoNotEncode]);

     

    // notice that there needs to be a unique name even for the entire body of parameters.  

     

     


  11. I'm trying to add the same parameter name multiple times with different values (using POST).

    It seems like separating values via semi-colon ; and using poFlatArray only works for a GET request.

     

    FRestRequest.Params.AddItem('MediaUrl', values , TRestRequestParameterKind.pkGETorPOST, [poFlatArray]);

     

    Simply doing multiple AddItem erases previous entry if the parameter name is the same.

    So, How do I add the same parameter multiple times?  

     

     

×