Jump to content

TheDcoder

Active Members
  • Posts

    7,103
  • Joined

  • Days Won

    88

Everything posted by TheDcoder

  1. @guinness I was more focusing on data addition rather than data retrieval, I also tried to do a benchmark test on data addition here, though I was not able to complete it successfully as the test was somewhat unfair... I will try to benchmark on data retrieval now. TD
  2. Phew.... It took more than an hour to write Questions #3 & #4 I wonder what maps are capable of... gotta finish my project fast and start playing with them Enjoy, TD
  3. Maybe a Snippets Sub Forum for storing snippet threads?
  4. @AdmiralAlkex I know that its not a fair test as the Map is not made for these kind of tasks, I just wanted to see if its miraculous and is close to arrays even in a unfair test P.S I am not going to publish it anymore because the test failed.
  5. @BrewManNH , I don't understand scientific notation very well . I tried to Round the result down to five decimals but... Its still not calculating the scientific notation . Thanks!
  6. Hello everyone I am encountering a strange problem with timers... i.e wrong time difference . This is an test script made by me to compare Arrays & Maps in terms of speed, I wanted publish the results in my Maps topic, so I am hiding the question in the spoiler to prevent spoilage If you run the script(s), you can see that sometimes the time difference is >1 but the actual difference is almost instantaneous, I don't know what is causing the problem, I think the problem is in my end this time because I used both native and UDF functions and they return identical results... However I spotted something interesting in the documentation for TimerDiff: "Remarks: Some processors are known to cause the function to return incorrect result." Hmmm.... is my processor the culprit? Or is something wrong in my script... Thanks in Advance! TD P.S It was hard to write in the dark spoiler
  7. @MartinMarris I thinks its a yes... I am not familiar with the concept of dynamic arrays but a quick google search explained me about them, though I didn't use them, I can say that a Map is similar (not same) to dynamic arrays, Resizing a map (i.e adding or removing elements from it) is faster compared to arrays. Sorry for late reply, I was busy, TD
  8. @Malkey Hey, sorry for late reply , Nice example though, I am sure it will be helpful for me in the future
  9. I was referring to that, what is it called?.... uhhhh... .... Ah! Synthetic Sugar!, "in the script" is synthetic sugar for "in the memory" Busted , Yep, I wanted some help
  10. @BrewManNH Hmmm.... .... I find water's solution to read the data in chucks now the best. I might reconsider some things tomorrow
  11. @Danyfirex Did you forgot that you are not allowed to store the contents of the file in a variable?
  12. Tried some crazy solutions like passing empty string, Null, Binary 0x000000 to trim the contents, currently I just finished my dinner... I am writing additional information in the header, I tried it with a hex editor, It worked! I will consider it using if its the most reliable @Danyfirex Please wait, I am experimenting
  13. @UEZ Autually it was my problem which I am facing right now... Because I process *big* binary files (archives to be precise), I need to trim some stuff in it
  14. Hello, I have a simple task today, I am sure that I made a similar post a long time ago... I want trim (delete or remove or wipe) the contents of a file (text or binary) WITHOUT storing the contents of the file anywhere in the script. Here is a text file for the purpose of experimenting: (contents of text.txt) 1234567890The task is simple, remove "456" from the contents of text.txt WITHOUT storing the contents anywhere! I wanted to post some code but it seems impossible to provide any relevant code this time... Good luck with the challenge! TD
  15. You can use my Process UDF, it contains many useful tools (like get the exitcode and output of the command at the same time), The link is in my signature below... TD
  16. @minxomat ..uh... Thanks :ᴘ
  17. @minxomat Oh, sorry, miss it ... @water Strange it, it crashes for me when it exceeds 16,777,216 (No errors, nothing, just crash message)
  18. From here: 9e9 (9000000000) is wayyyyy more than 16,777,216
  19. Here is a live example which I use in my program: #include <GUIConstantsEx.au3> #include <MsgBoxConstants.au3> Global $g_hMainGUI = GUICreate("Test") Global $g_idMainGUI_YesDummy = GUICtrlCreateDummy() Global $g_idMainGUI_NoDummy = GUICtrlCreateDummy() Global $g_idMainGUI_TryAgainDummy = GUICtrlCreateDummy() Global $g_idMainGUI_AbortDummy = GUICtrlCreateDummy() Local $aAccelKeys[4][2] = [["y", $g_idMainGUI_YesDummy], ["n", $g_idMainGUI_NoDummy], ["t", $g_idMainGUI_TryAgainDummy], ["a", $g_idMainGUI_AbortDummy]] GUISetAccelerators($aAccelKeys, $g_hMainGUI) GUISetState() While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $g_idMainGUI_YesDummy MsgBox($MB_OK, "Test", "You pressed 'y' which means Yes!") Case $g_idMainGUI_NoDummy MsgBox($MB_OK, "Test", "You pressed 'n' which means No!") Case $g_idMainGUI_TryAgainDummy MsgBox($MB_OK, "Test", "You pressed 't' which means Try Again!") Case $g_idMainGUI_AbortDummy MsgBox($MB_OK, "Test", "You pressed 'a' which means Abort!") EndSwitch WEndTD
  20. @kcvinu $hInput is a input control, not a dummy control... They are created using: GUICtrlCreateDummy
×
×
  • Create New...