Jump to content

Anders Melander

Members
  • Content Count

    2771
  • Joined

  • Last visited

  • Days Won

    147

Everything posted by Anders Melander

  1. Anders Melander

    Stratched image is wrong if bmp dimention >32767 (RAD2007)

    I don't think the problem is in the VCL. As far as I can see the calculations done by TImage, TBitmap & TCanvas are correct and should not overflow. It would help if you could show what the problem looks like.
  2. Anders Melander

    Few do-not in website

    I don't get this moaning about the captcha at signup. AFAIK it's an standard option in JIRA so it's easy to turn on or off. There's no effort involved. My physic powers are limited so I don't know why they chose to enable it but I'm guessing they had a good reason. Apparently others know better. I agree that it would be better to have the captcha above the input field but it isn't really something I can get upset about. Click another field, read the image, enter the text and move on.
  3. Anders Melander

    Few do-not in website

    It's Atlassian. If you want to customize the UI you will have to modify the source and probably recompile JIRA. I think Atlassian invented suckage. Embarcadero has customized it a bit but I'm guessing they did that by tweaking the CSS. Here's what the standard JIRA Server 7 (they're on v6) login looks like: So your browser is able to autocomplete captchas? Impressive! Must be that there new artificial intelligence thing I've been hearing about... 🙂
  4. Anders Melander

    Few do-not in website

    The login looks like the standard JIRA Server login page so it's probably designed by Atlassian. While they're not known for their usability skills I don't see a big problem with it. You can blame the autocomplete on your browser. As far as the tracking on the main site goes, yeah that sucks. Luckily Firefox blocks all of it.
  5. Anders Melander

    Stratched image is wrong if bmp dimention >32767 (RAD2007)

    Try Graphics32: Use a TBitmap32 with a memory backend (instead of a GDI backend) and display it with a TImage32/TImgView32 control. That of course requires that the bitmap is 32-bit or that it's feasible to convert it to 32-bit in order to display it.
  6. Anders Melander

    Structured Difference Viewer added to MMX Code Explorer

    What is is that makes is a structured difference viewer? Looking the screenshot in the first post I don't see much structure there. I mean, the diff tool I use would have picked up on the fact that two of the lines in the original file had been embedded into a block in the changed file.
  7. Anders Melander

    Structured Difference Viewer added to MMX Code Explorer

    Compile it with madExcept and run. Investigate bug report. Profit!
  8. Anders Melander

    Fail faster than calling Connected := True?

    It's been a while since I last wrote a briefcase enabled database client, but AFAIR TClientDataSet has all the required functionality and doesn't require (but can use) a middle tier.
  9. Anders Melander

    OleSetClipboardData and delayed rendering

    Yes, forget what I wrote. I got things confused.
  10. Anders Melander

    OleSetClipboardData and delayed rendering

    The clipboard will synthesize some formats from others (e.g. CF_TEXT from CF_UNICODETEXT) but only if the target asks for that format and only if the source hasn't already provided it. See Synthesized Clipboard Formats. Did you remember to specify zero for the hMem parameter of SetClipboardData? - and do you handle the WM_RENDERFORMAT and WM_RENDERALLFORMATS messages?
  11. Anders Melander

    OleSetClipboardData and delayed rendering

    Works for me. Here's what I'm seeing when I copy to the clipboard using the Drop Target Analyzer from the D&D Component Suite: I copied to the clipboard (blue bullets) and after a while (3.6 seconds) I pasted from the clipboard. The red bullets indicates the calls made from the drop target to the drop source. The list on the right are the data formats requested by the drop target. As you can see there are no calls made on the IDataObject until I paste from the clipboard. Here's the corresponding view from the drop target (the Drop Source Analyzer): Maybe you have an application running which monitors and reads from the clipboard?
  12. Anders Melander

    Fail faster than calling Connected := True?

    Why not just set the database connection timeout to the desired max. Connecting to the server with some other method fileshare/port 3050/whatever amounts to the same thing. The only reason they can get the result faster is that they have a smaller timeout defined.
  13. Anders Melander

    Fail faster than calling Connected := True?

    I think your only option is to lower the connection timeout if you want it to fail faster. The timeout is there for a reason so lowering it will also mean that you become less resistant against connection issues. Don't try to use the file system to verify the existence of the DB server. The server might not have the required ports open or the file sharing service available. Perfectly normal (and good sense) for a DB server. You could try to do a ping against the server but again, there's no guarantee that the ICMP service is available and you will still have the same problem of not knowing if lack of response means the server is down or if it's simply a transient connection issue.
  14. Anders Melander

    'as' operator??

    I think Pascal Analyser is wrong in this case. If PaPInAddr is a pointer type then 'is' and 'as' can't be used since these only operate on object types (i.e. object references/pointers).
  15. A memory mapped file can not be expanded. By design. Of course you can emulate expansion by closing the current view, expanding the file and then mapping the file again, but that is not a safe operation as any existing pointers to the old view will now be invalid.
  16. A search on my HD for TMemoryMappedStream found a few different implementations. The attached one, by Dmitry Streblechenko, looks to be the cleanest and it has no dependencies. dstreams.zip
  17. Anders Melander

    Love your competitor :-) ..... ?

    *cough* Visual J++ *cough*
  18. Anders Melander

    Love your competitor :-) ..... ?

    Anyone can file a lawsuit and if you have to resort to that in order to keep your employees then maybe the competitors isn't the problem you ought to focus on.
  19. Anders Melander

    Are there any experiences with www.experts-exchange.com ?

    Experts Exchange... the MySpace of QA sites
  20. Anders Melander

    Love your competitor :-) ..... ?

    BS indeed. Borland/Delphi was never any threat to Microsoft and certainly not to their Windows division. It would actually have been counter productive for the Windows division to sabotage any Windows application. - and they didn't "steal" Anders Hejlsberg or hire him to hurt Borland. They wanted his talent and he went by his own choice and for his own reasons. Borland didn't own him and if they got hurt by his departure that was their own fault.
  21. Anders Melander

    MAP2PDB - Profiling with VTune

    Nice! Any idea about who the author is?
  22. Anders Melander

    IDE search and regular expressions

    I don't think you can match a regex across lines as you'd either need to specify the /s regex option (. matches newline) or use the \n meta character and the IDE's regex doesn't support either. I do wish they would replace the IDE regex engine with something more complete.
  23. It's just data. Under the question "What do you do when you get stuck on a problem" I filled in "Masturbate". I hope they use that for a good cause 🙂
  24. The code you've shown is using VCL drag/drop. You can't use that to drag between applications. What kind of data are you transferring? If you just want to react to the action of dragging one label to another (in two different instances of the same application), then you can either register a custom clipboard format (see the CustomFormat examples) and drag that or you can just "misuse" the text format and drag some magic text string. It's really very simple: Put a drop target and a drop source component on the form. Register the label as a drop target and do what ever you need to do in the OnDrop handler. In the label OnMouseDown handler use DragDetectPlus to detect the start of a drag and then initiate the drag on the drop source. If you don't want the user to be able to drag from and drop on the same label, then disable the drop target when you start the drag and enable it again when the drag is done. If you can get 1-3 working within the application then it will also work between two different instances of that application.
×