Recent

Author Topic: Online Package Manager  (Read 835910 times)

cpicanco

  • Hero Member
  • *****
  • Posts: 618
  • Behavioral Scientist and Programmer
    • Portfolio
Re: Online Package Manager
« Reply #900 on: August 11, 2017, 06:37:37 pm »
Be mindful and excellent with each other.
https://github.com/cpicanco/

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: Online Package Manager
« Reply #901 on: August 11, 2017, 07:07:03 pm »
Fixed in r. 55649. Thanks.

I can't find a way to update OPM inside OPM. Isn't that a rather obvious feature?

You're patching trunk. That's fine, but 1.8 is what people will be using, not trunk, so they need to be able to see that an update for OPM is available.

In the Create repository package dialog, there's something wrong with the focus. If I click in the lower (blank) panel, then I can click the folder button only once to bring up the selection dialog. I use this all the time, so it works fine on Mac, just not in OPM.

Also, in the dialog, the Cancel button should not be at the far right. See Apple guidelines for the default button placement.




cpicanco

  • Hero Member
  • *****
  • Posts: 618
  • Behavioral Scientist and Programmer
    • Portfolio
Re: Online Package Manager
« Reply #902 on: August 13, 2017, 02:13:03 am »
Hi,

Thanks to Juha Manninen finally lazarus is fully package happy with me. One should use "startlazarus" and not "lazarus-ide" to start the ide.

May I ask how many time it take to a package be included in the OPM list? Is there any addition protocol out there?

Thanks
Be mindful and excellent with each other.
https://github.com/cpicanco/

cpicanco

  • Hero Member
  • *****
  • Posts: 618
  • Behavioral Scientist and Programmer
    • Portfolio
Re: Online Package Manager
« Reply #903 on: August 13, 2017, 02:15:28 am »
Also, is it a bug? Damn dark theme.
Be mindful and excellent with each other.
https://github.com/cpicanco/

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #904 on: August 13, 2017, 08:54:35 am »
Hi guys,

Sorry for the late response, I was out from the office for a few days.

@Phil
Quote
I can't find a way to update OPM inside OPM. Isn't that a rather obvious feature?
Yes and no. It was possible in the past to update OPM inside OPM, but sometimes trunk development breaks code. I will add the feature again.
Quote
In the Create repository package dialog, there's something wrong with the focus. If I click in the lower (blank) panel, then I can click the folder button only once to bring up the selection dialog. I use this all the time, so it works fine on Mac, just not in OPM.
Also, in the dialog, the Cancel button should not be at the far right. See Apple guidelines for the default button placement.
I will address those issues next week. What about the other ones? Can you see the Authors, Descriptions? Is it a bug?


@cpicanco
Quote
Thanks to Juha Manninen finally lazarus is fully package happy with me. One should use "startlazarus" and not "lazarus-ide" to start the ide.
Ok. I'm glad it's working.  :)
Quote
May I ask how many time it take to a package be included in the OPM list? Is there any addition protocol out there?
Usually 24 h. max. Just create a repository package and send it via OPM. Please read more here: http://wiki.freepascal.org/Online_Package_Manager#Create_repository_package

Quote
Also, is it a bug? Damn dark theme.
Do you use some kind of theme manager? I never saw OPM that ugly  :D. Next week, I will add a new dialog where the user can choose colors.  Can you please post a few screenshot with other lazarus dialogs? Options for example, or Install/Uninstall packages.

cpicanco

  • Hero Member
  • *****
  • Posts: 618
  • Behavioral Scientist and Programmer
    • Portfolio
Re: Online Package Manager
« Reply #905 on: August 14, 2017, 01:57:00 am »
Quote
Do you use some kind of theme manager?

I am using the default openbox theme of BunsenLabs Hydrogen distro + a custom Monokai userscheme for lazarus.

Quote
I never saw OPM that ugly  :D. Next week, I will add a new dialog where the user can choose colors.  Can you please post a few screenshot with other lazarus dialogs? Options for example, or Install/Uninstall packages.

Here it is.
Be mindful and excellent with each other.
https://github.com/cpicanco/

cpicanco

  • Hero Member
  • *****
  • Posts: 618
  • Behavioral Scientist and Programmer
    • Portfolio
Re: Online Package Manager
« Reply #906 on: August 14, 2017, 01:57:52 am »
Some more:
Be mindful and excellent with each other.
https://github.com/cpicanco/

Xor-el

  • Sr. Member
  • ****
  • Posts: 404
Re: Online Package Manager
« Reply #907 on: August 14, 2017, 09:01:07 am »
Hello getmem, nice work you are doing with OPM, it is very well appreciated.
I did submit an update to an existing package in OPM through the OPM interface over 48 hrs ago but it has not been updated on the package list.
Just wanted to inform you incase you are not aware.
The package name is HashLib.
Regards.

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #908 on: August 14, 2017, 09:38:12 am »
Hi Xor-el,

Quote
I did submit an update to an existing package in OPM through the OPM interface over 48 hrs ago but it has not been updated on the package list.
Just wanted to inform you incase you are not aware.
The package name is HashLib.
Done.  Please test. Sorry for the delay.

Quote
nice work you are doing with OPM, it is very well appreciated.
Thank you!

Thaddy

  • Hero Member
  • *****
  • Posts: 14200
  • Probably until I exterminate Putin.
Re: Online Package Manager
« Reply #909 on: August 14, 2017, 09:56:25 am »
I see I can install the Online Package Manager on arm-linux now? Can I safely do it? Otherwise it needs to be disabled for arm-linux because of the virtual treeview intel assembler used....

That (the virtual treeview) is a silly piece of code when less than ~1000 packages are available, so either disable the package for anything else than intel or FIX it... >:D >:(

OTOH I really like OPM (on windows that is....) O:-)
« Last Edit: August 14, 2017, 10:22:56 am by Thaddy »
Specialize a type, not a var.

Xor-el

  • Sr. Member
  • ****
  • Posts: 404
Re: Online Package Manager
« Reply #910 on: August 14, 2017, 10:19:12 am »
Hi Xor-el,
Done.  Please test. Sorry for the delay.

Thanks.  :)

Thaddy

  • Hero Member
  • *****
  • Posts: 14200
  • Probably until I exterminate Putin.
Re: Online Package Manager
« Reply #911 on: August 14, 2017, 10:30:34 am »
@GetMem
This somewhat works, but is not fully correct... Test for not intel instruction set e.g. CPU386/X64 should be false. Haven't time today to make a complete fix.
Suggest to reverse the logic and it should look ok.
Code: Pascal  [Select][+][-]
  1. {$else}
  2.  
  3. function HasMMX: Boolean;
  4.  
  5. // Helper method to determine whether the current processor supports MMX.
  6. {$if defined(CPUARM) }
  7. result := false;
  8. {$else}
  9. asm
  10.         PUSH    EBX
  11.         XOR     EAX, EAX     // Result := False
  12.         PUSHFD               // determine if the processor supports the CPUID command
  13.         POP     EDX
  14.         MOV     ECX, EDX
  15.         XOR     EDX, $200000
  16.         PUSH    EDX
  17.         POPFD
  18.         PUSHFD
  19.         POP     EDX
  20.         XOR     ECX, EDX
  21.         JZ      @1           // no CPUID support so we can't even get to the feature information
  22.         PUSH    EDX
  23.         POPFD
  24.  
  25.         MOV     EAX, 1
  26.         DW      $A20F        // CPUID, EAX contains now version info and EDX feature information
  27.         MOV     EBX, EAX     // free EAX to get the result value
  28.         XOR     EAX, EAX     // Result := False
  29.         CMP     EBX, $50
  30.         JB      @1           // if processor family is < 5 then it is not a Pentium class processor
  31.         TEST    EDX, $800000
  32.         JZ      @1           // if the MMX bit is not set then we don't have MMX
  33.         INC     EAX          // Result := True
  34. @1:
  35.         POP     EBX
  36. {$endif}
  37. end;
« Last Edit: August 14, 2017, 10:37:58 am by Thaddy »
Specialize a type, not a var.

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #912 on: August 14, 2017, 10:38:42 am »
@Thaddy
The main problem is I don't have ARM-linux to test. Maybe a virtual machine? You should remove any HasMMX reference(like you did in the above example with ifdef) and build OPM. VirtualStringTree should work without MMX. Send me a patch and I will more then happy to apply it.

PS: The number of tasks I have it's overwhelming.

Thaddy

  • Hero Member
  • *****
  • Posts: 14200
  • Probably until I exterminate Putin.
Re: Online Package Manager
« Reply #913 on: August 14, 2017, 10:44:23 am »
@Thaddy
The main problem is I don't have ARM-linux to test. Maybe a virtual machine? You should remove any HasMMX reference(like you did in the above example) and build OPM. VirtualStringTree should work without MMX. Send me a patch and I will more then happy to apply it.
Ok.
This patch is half... but it works... I'll create a better one later, but people can at least test on arm: works!
Code: Pascal  [Select][+][-]
  1. Index: components/onlinepackagemanager/vst/opkman_VirtualTrees.pas
  2. ===================================================================
  3. --- components/onlinepackagemanager/vst/opkman_VirtualTrees.pas (revision 55654)
  4. +++ components/onlinepackagemanager/vst/opkman_VirtualTrees.pas (working copy)
  5. @@ -2,6 +2,9 @@
  6.  
  7.  {$mode delphi}{$H+}
  8.  {$packset 1}
  9. +{$if defined(CPUARM)}
  10. +{$define PACKARRAYPASCAL}
  11. +{$endif}
  12.  
  13.  // Version 4.8.7
  14.  //
  15. @@ -4918,7 +4921,10 @@
  16.  function HasMMX: Boolean;
  17.  
  18.  // Helper method to determine whether the current processor supports MMX.
  19. -
  20. +{$if defined(CPUARM)}
  21. +begin
  22. +  result := false;
  23. +{$else}
  24.  asm
  25.          PUSH    EBX
  26.          XOR     EAX, EAX     // Result := False
  27. @@ -4946,7 +4952,9 @@
  28.          INC     EAX          // Result := True
  29.  @1:
  30.          POP     EBX
  31. +{$endif}
  32.  end;
  33. +
  34.  {$endif}
  35.  //----------------------------------------------------------------------------------------------------------------------
  36.  {$ifdef EnablePrint}
« Last Edit: August 14, 2017, 11:02:43 am by Thaddy »
Specialize a type, not a var.

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #914 on: August 14, 2017, 11:20:44 am »
@Thaddy

Please attach the patch file, because my tortoise svn don't like copy/paste.  You can zip-it if you like.
« Last Edit: August 14, 2017, 11:24:25 am by GetMem »

 

TinyPortal © 2005-2018