Re: [Factor-talk] DOS Encoding

2016-10-26 Thread Jim Mack
Are you talking about the characters that used to be used in character
based windows apps?  LIke on this page from 179-218 or so?

https://en.wikipedia.org/wiki/Code_page_437



On Wed, Oct 26, 2016 at 3:52 PM, John Benediktsson  wrote:

> does it work to just use binary and then do ``>string``?
>
> On Wed, Oct 26, 2016 at 2:55 PM, Alexander Ilin  wrote:
>
>> Hello!
>>
>> I'd like to parse some log-files created by an old-style DOS program.
>> They contain pseudographics characters for drawing frames and tables.
>> Technically, that's not ASCII, but a superset with all 8 bits used.
>> Do we have an 8-bit encoding that would support that? I took a look at
>> the basis\io\encodings\8-bit\ folder, but among those latin1-latin10
>> encodings nothing screams "DOS Pseudographics".
>>
>> A little guidance here, anyone?
>>
>> ---=---
>> Александр
>>
>>
>> 
>> --
>> The Command Line: Reinvented for Modern Developers
>> Did the resurgence of CLI tooling catch you by surprise?
>> Reconnect with the command line and become more productive.
>> Learn the new .NET and ASP.NET CLI. Get your free copy!
>> http://sdm.link/telerik
>> ___
>> Factor-talk mailing list
>> Factor-talk@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/factor-talk
>>
>>
>
> 
> --
> The Command Line: Reinvented for Modern Developers
> Did the resurgence of CLI tooling catch you by surprise?
> Reconnect with the command line and become more productive.
> Learn the new .NET and ASP.NET CLI. Get your free copy!
> http://sdm.link/telerik
> ___
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
>
--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] DOS Encoding

2016-10-26 Thread John Benediktsson
does it work to just use binary and then do ``>string``?

On Wed, Oct 26, 2016 at 2:55 PM, Alexander Ilin  wrote:

> Hello!
>
> I'd like to parse some log-files created by an old-style DOS program.
> They contain pseudographics characters for drawing frames and tables.
> Technically, that's not ASCII, but a superset with all 8 bits used.
> Do we have an 8-bit encoding that would support that? I took a look at the
> basis\io\encodings\8-bit\ folder, but among those latin1-latin10 encodings
> nothing screams "DOS Pseudographics".
>
> A little guidance here, anyone?
>
> ---=---
> Александр
>
>
> 
> --
> The Command Line: Reinvented for Modern Developers
> Did the resurgence of CLI tooling catch you by surprise?
> Reconnect with the command line and become more productive.
> Learn the new .NET and ASP.NET CLI. Get your free copy!
> http://sdm.link/telerik
> ___
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
>
--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


[Factor-talk] DOS Encoding

2016-10-26 Thread Alexander Ilin
Hello! I'd like to parse some log-files created by an old-style DOS program.They contain pseudographics characters for drawing frames and tables.Technically, that's not ASCII, but a superset with all 8 bits used.Do we have an 8-bit encoding that would support that? I took a look at the basis\io\encodings\8-bit\ folder, but among those latin1-latin10 encodings nothing screams "DOS Pseudographics". A little guidance here, anyone? ---=---Александр 

--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] restricting ratio literals

2016-10-26 Thread Jon Harper
I think there is value in having such in important word (string>number)
have a documented behavior. Right now it's hard to document all the things
that are correctly parsed by this word...

Jon

On Wed, Oct 26, 2016 at 9:40 AM, Björn Lindqvist  wrote:

> Imho, choose based on what makes the implementation better. If the
> parser can be written in a simpler (and probably faster) way by
> dropping support for ratios in uncommon bases, then let's do it. Tbh,
> I don't think any ratios other than those on the format int1/int2
> needs to be supported.
>
> 2016-10-24 19:23 GMT+02:00 Jon Harper :
> > Hi list,
> > I'm reading the questions at https://github.com/factor/factor/pull/1362
> > again
> >
> > I think we should only allow ratio literals in base 10. Currently we
> support
> > 0xc+b/a or 0o4+7/3 or 0b1101+1101/110 but it looks ugly.
> >
> > What do you think ?
> >
> > Jon
> >
> > 
> --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> > ___
> > Factor-talk mailing list
> > Factor-talk@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/factor-talk
> >
>
>
>
> --
> mvh/best regards Björn Lindqvist
>
> 
> --
> The Command Line: Reinvented for Modern Developers
> Did the resurgence of CLI tooling catch you by surprise?
> Reconnect with the command line and become more productive.
> Learn the new .NET and ASP.NET CLI. Get your free copy!
> http://sdm.link/telerik
> ___
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] restricting ratio literals

2016-10-26 Thread Björn Lindqvist
Imho, choose based on what makes the implementation better. If the
parser can be written in a simpler (and probably faster) way by
dropping support for ratios in uncommon bases, then let's do it. Tbh,
I don't think any ratios other than those on the format int1/int2
needs to be supported.

2016-10-24 19:23 GMT+02:00 Jon Harper :
> Hi list,
> I'm reading the questions at https://github.com/factor/factor/pull/1362
> again
>
> I think we should only allow ratio literals in base 10. Currently we support
> 0xc+b/a or 0o4+7/3 or 0b1101+1101/110 but it looks ugly.
>
> What do you think ?
>
> Jon
>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>



-- 
mvh/best regards Björn Lindqvist

--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] Factor As Scripting Language

2016-10-26 Thread Björn Lindqvist
A Factor version of the C function Beached is posting would be a nice
addition to the windows.privileges vocab.

2016-10-25 23:05 GMT+02:00 Doug Coleman :
> Take a look at basis/windows/privileges/privileges.factor and
> http://stackoverflow.com/questions/8046097/how-to-check-if-a-process-has-the-administrative-rights
>
> On Tue, Oct 25, 2016 at 1:49 PM Onorio Catenacci  wrote:
>>
>> This issue is that certain tasks require administrator privilege on
>> Windows and it's much more friendly to check the current user's
>> privileges and inform the user that he or she needs to elevate to
>> admin than simply fall over. :)
>>
>> Sadly before Windows 7 most users are on their machine as admins by
>> default (which is, truly, a large part of the reason that Windows was
>> such a fruitful hunting ground for people who liked to spread
>> trojans).  A lot of users still have admin privileges by default but a
>> few are smart enough to practice least-privilege.
>>
>> --
>> Onorio
>>
>> On Tue, Oct 25, 2016 at 4:35 PM, Alexander Ilin  wrote:
>> >
>> > 25.10.2016, 23:13, "Doug Coleman" :
>> >
>> > You should be able to call the Windows APIs directly (if you can figure
>> > out
>> > which ones!) and avoid using a script to call a binary.
>> >
>> >
>> > That's true. I'm simply having fun with that little task. Parsing the
>> > output
>> > and such.
>> > If I needed to solve that problem in a proper way, I would not mess with
>> > the
>> > whoami.exe, I'd look for WinAPI functions.
>> > I'm not familiar with those, so can't really help here.
>> >
>> > I have an issue with the formulation of the task, though. Why do we need
>> > to
>> > know if a user is an admin? Do we strictly want to check the
>> > Administrators
>> > group membership, or do we want to test for some specific access
>> > privileges?
>> > For instance, Power Users used to have some pretty big rights in their
>> > day,
>> > without being full admins.
>> > There is also the issue with elevation, which gives a user some rights
>> > without making him/her an admin.
>> >
>> >
>> > http://stackoverflow.com/questions/581204/how-do-i-check-if-a-user-has-local-admin-privileges-in-win32
>> >
>> > http://stackoverflow.com/questions/8046097/how-to-check-if-a-process-has-the-administrative-rights/8196291#8196291
>> > https://support.microsoft.com/en-us/kb/118626
>> >
>> > ---=---
>> > Александр
>> >
>> >
>> >
>> > --
>> > The Command Line: Reinvented for Modern Developers
>> > Did the resurgence of CLI tooling catch you by surprise?
>> > Reconnect with the command line and become more productive.
>> > Learn the new .NET and ASP.NET CLI. Get your free copy!
>> > http://sdm.link/telerik
>> > ___
>> > Factor-talk mailing list
>> > Factor-talk@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/factor-talk
>> >
>>
>>
>>
>> --
>> Onorio Catenacci
>>
>> http://onor.io
>> http://www.google.com/+OnorioCatenacci
>>
>>
>> --
>> The Command Line: Reinvented for Modern Developers
>> Did the resurgence of CLI tooling catch you by surprise?
>> Reconnect with the command line and become more productive.
>> Learn the new .NET and ASP.NET CLI. Get your free copy!
>> http://sdm.link/telerik
>> ___
>> Factor-talk mailing list
>> Factor-talk@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
>
> --
> The Command Line: Reinvented for Modern Developers
> Did the resurgence of CLI tooling catch you by surprise?
> Reconnect with the command line and become more productive.
> Learn the new .NET and ASP.NET CLI. Get your free copy!
> http://sdm.link/telerik
> ___
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>



-- 
mvh/best regards Björn Lindqvist

--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk