public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] terminal spreadsheet - sc fork
@ 2014-11-02 23:16 Andrés Martinelli
  2014-11-03  8:57 ` Wang Xuerui
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Andrés Martinelli @ 2014-11-02 23:16 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 254 bytes --]

Hello there!!
I am working on a terminal spreadsheet based on "sc", but with some adds
like undo/redo..
you can find it here:

https://github.com/andmarti1424/scim

Any new ideas and/or contribution is always welcome!
Thanks!

-- 
Andrés M.

[-- Attachment #2: Type: text/html, Size: 469 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] terminal spreadsheet - sc fork
  2014-11-02 23:16 [gentoo-user] terminal spreadsheet - sc fork Andrés Martinelli
@ 2014-11-03  8:57 ` Wang Xuerui
  2014-11-04 11:36 ` Walter Dnes
  2014-11-04 13:23 ` Alec Ten Harmsel
  2 siblings, 0 replies; 11+ messages in thread
From: Wang Xuerui @ 2014-11-03  8:57 UTC (permalink / raw
  To: gentoo-user

2014-11-03 7:16 GMT+08:00 Andrés Martinelli <andmarti@gmail.com>:
> Hello there!!
> I am working on a terminal spreadsheet based on "sc", but with some adds
> like undo/redo..
> you can find it here:
>
> https://github.com/andmarti1424/scim
>
> Any new ideas and/or contribution is always welcome!
> Thanks!

FYI: the package name collides with an IME framework (albeit largely
displaced by ibus and fcitx in recent years). I, as a Chinese user,
briefly wondered how you can transform an IME library into a
spreadsheet app! :-D


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] terminal spreadsheet - sc fork
  2014-11-02 23:16 [gentoo-user] terminal spreadsheet - sc fork Andrés Martinelli
  2014-11-03  8:57 ` Wang Xuerui
@ 2014-11-04 11:36 ` Walter Dnes
  2014-11-04 11:39   ` Andrés Martinelli
                     ` (2 more replies)
  2014-11-04 13:23 ` Alec Ten Harmsel
  2 siblings, 3 replies; 11+ messages in thread
From: Walter Dnes @ 2014-11-04 11:36 UTC (permalink / raw
  To: gentoo-user

On Sun, Nov 02, 2014 at 08:16:30PM -0300, Andrés Martinelli wrote
> Hello there!!
> I am working on a terminal spreadsheet based on "sc", but with some adds
> like undo/redo..
> you can find it here:
> 
> https://github.com/andmarti1424/scim
> 
> Any new ideas and/or contribution is always welcome!
> Thanks!

  git newbie alert.  I'm not a programmer.  I Googled for instructions,
built git, cloned the scim repo, read the instructions, changed one line
in Makefile...

prefix=/home/waltdnes/.local

...so that if things went wrong, it wouldn't clobber root.  I ran "make".
I got the familiar gcc screens of text output.  But there's nothing
installed in ~/.local.  Should there be a "make install" command somewhere?

-- 
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] terminal spreadsheet - sc fork
  2014-11-04 11:36 ` Walter Dnes
@ 2014-11-04 11:39   ` Andrés Martinelli
  2014-11-05  1:13     ` Walter Dnes
  2014-11-04 12:57   ` Alec Ten Harmsel
  2014-11-04 16:30   ` Henrique Lengler
  2 siblings, 1 reply; 11+ messages in thread
From: Andrés Martinelli @ 2014-11-04 11:39 UTC (permalink / raw
  To: gentoo-user@lists.gentoo.org

Hello! Could you please attach the complete make output??

> El 04/11/2014, a las 08:36, "Walter Dnes" <waltdnes@waltdnes.org> escribió:
> 
> On Sun, Nov 02, 2014 at 08:16:30PM -0300, Andrés Martinelli wrote
>> Hello there!!
>> I am working on a terminal spreadsheet based on "sc", but with some adds
>> like undo/redo..
>> you can find it here:
>> 
>> https://github.com/andmarti1424/scim
>> 
>> Any new ideas and/or contribution is always welcome!
>> Thanks!
> 
>  git newbie alert.  I'm not a programmer.  I Googled for instructions,
> built git, cloned the scim repo, read the instructions, changed one line
> in Makefile...
> 
> prefix=/home/waltdnes/.local
> 
> ...so that if things went wrong, it wouldn't clobber root.  I ran "make".
> I got the familiar gcc screens of text output.  But there's nothing
> installed in ~/.local.  Should there be a "make install" command somewhere?
> 
> -- 
> Walter Dnes <waltdnes@waltdnes.org>
> I don't run "desktop environments"; I run useful applications
> 


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] terminal spreadsheet - sc fork
  2014-11-04 11:36 ` Walter Dnes
  2014-11-04 11:39   ` Andrés Martinelli
@ 2014-11-04 12:57   ` Alec Ten Harmsel
  2014-11-05  0:47     ` Walter Dnes
  2014-11-04 16:30   ` Henrique Lengler
  2 siblings, 1 reply; 11+ messages in thread
From: Alec Ten Harmsel @ 2014-11-04 12:57 UTC (permalink / raw
  To: gentoo-user


On 11/04/2014 06:36 AM, Walter Dnes wrote:
> On Sun, Nov 02, 2014 at 08:16:30PM -0300, Andrés Martinelli wrote
>> Hello there!!
>> I am working on a terminal spreadsheet based on "sc", but with some adds
>> like undo/redo..
>> you can find it here:
>>
>> https://github.com/andmarti1424/scim
>>
>> Any new ideas and/or contribution is always welcome!
>> Thanks!
>   git newbie alert.  I'm not a programmer.  I Googled for instructions,
> built git, cloned the scim repo, read the instructions, changed one line
> in Makefile...
>
> prefix=/home/waltdnes/.local
>
> ...so that if things went wrong, it wouldn't clobber root.  I ran "make".
> I got the familiar gcc screens of text output.  But there's nothing
> installed in ~/.local.  Should there be a "make install" command somewhere?
>

There's actually no 'install' command in the Makefile. You should be
able to run it by executing the 'scim' binary in src/. It doesn't create
any of its own libraries or anything, so you should be able to run the
standalone binary anywhere without needing to install; if you would like
to install it to your ~/.local, a simple

    cp src/scim ~/.local/bin/scim

should suffice.

Alec


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] terminal spreadsheet - sc fork
  2014-11-02 23:16 [gentoo-user] terminal spreadsheet - sc fork Andrés Martinelli
  2014-11-03  8:57 ` Wang Xuerui
  2014-11-04 11:36 ` Walter Dnes
@ 2014-11-04 13:23 ` Alec Ten Harmsel
  2014-11-04 13:39   ` Andrés Martinelli
  2 siblings, 1 reply; 11+ messages in thread
From: Alec Ten Harmsel @ 2014-11-04 13:23 UTC (permalink / raw
  To: gentoo-user


On 11/02/2014 06:16 PM, Andrés Martinelli wrote:
> Hello there!!
> I am working on a terminal spreadsheet based on "sc", but with some
> adds like undo/redo..
> you can find it here:
>
> https://github.com/andmarti1424/scim
>
> Any new ideas and/or contribution is always welcome!
> Thanks!
>
> -- 
> Andrés M.

If I can offer some constructive criticism based on my short experience
helping Walter:

* Your build process could use some work; you shouldn't be hard-coding
variable values like LN and CC in a Makefile, these are handled by make.
Your Makefile could be shortened by ~150 lines by relying on built-in
rules and using some built-in make expressions to list your source files
as well.
* A bunch of your .c or .h files are marked as executable... why?
* No install command. Not really a huge deal as only one important file
is produced (src/scim), but would be nice to have

If you're unfamiliar with make and have no immediate plans to switch to
either the autotools or cmake, I would be more than willing to make some
changes to your Makefile and open a pull request. If you would like to
email me personally with questions about make, feel free to do that as well.

There are a couple things I saw in the code as well:

* system("echo -n 'Press enter to return.'")
* Lot of ignored return values on functions that you should check, like
write() and fgets()

If these were in the sc code and you know about them but just haven't
gotten to fixing them yet, no worries.

Alec


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] terminal spreadsheet - sc fork
  2014-11-04 13:23 ` Alec Ten Harmsel
@ 2014-11-04 13:39   ` Andrés Martinelli
  0 siblings, 0 replies; 11+ messages in thread
From: Andrés Martinelli @ 2014-11-04 13:39 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1981 bytes --]

Hello! Please feel free to modify the Makefile and open a pull request!
What you mention about return values not checked, I believe they are part
of sc, but
please specify them if you can, since there's still a lot of sc for modify.
Thanks!

Andrés M.

2014-11-04 10:23 GMT-03:00 Alec Ten Harmsel <alec@alectenharmsel.com>:

>
> On 11/02/2014 06:16 PM, Andrés Martinelli wrote:
> > Hello there!!
> > I am working on a terminal spreadsheet based on "sc", but with some
> > adds like undo/redo..
> > you can find it here:
> >
> > https://github.com/andmarti1424/scim
> >
> > Any new ideas and/or contribution is always welcome!
> > Thanks!
> >
> > --
> > Andrés M.
>
> If I can offer some constructive criticism based on my short experience
> helping Walter:
>
> * Your build process could use some work; you shouldn't be hard-coding
> variable values like LN and CC in a Makefile, these are handled by make.
> Your Makefile could be shortened by ~150 lines by relying on built-in
> rules and using some built-in make expressions to list your source files
> as well.
> * A bunch of your .c or .h files are marked as executable... why?
> * No install command. Not really a huge deal as only one important file
> is produced (src/scim), but would be nice to have
>
> If you're unfamiliar with make and have no immediate plans to switch to
> either the autotools or cmake, I would be more than willing to make some
> changes to your Makefile and open a pull request. If you would like to
> email me personally with questions about make, feel free to do that as
> well.
>
> There are a couple things I saw in the code as well:
>
> * system("echo -n 'Press enter to return.'")
> * Lot of ignored return values on functions that you should check, like
> write() and fgets()
>
> If these were in the sc code and you know about them but just haven't
> gotten to fixing them yet, no worries.
>
> Alec
>
>


-- 
Andrés Martinelli

[-- Attachment #2: Type: text/html, Size: 2638 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] terminal spreadsheet - sc fork
  2014-11-04 11:36 ` Walter Dnes
  2014-11-04 11:39   ` Andrés Martinelli
  2014-11-04 12:57   ` Alec Ten Harmsel
@ 2014-11-04 16:30   ` Henrique Lengler
  2014-11-04 16:41     ` Andrés Martinelli
  2 siblings, 1 reply; 11+ messages in thread
From: Henrique Lengler @ 2014-11-04 16:30 UTC (permalink / raw
  To: gentoo-user

Hi,

I'm interested in this project, so I have some considerations:

I found that already exist a project called scim
(wikipedia.org/wiki/Smart_Common_Input_Method)
so you might have problems in the future related to the name.

And second, something I care, is about file formats. I never used sc,
so I don't know wich file format it saves. But I would like to see SCIM 
(if it doesn't already) saving files in a way I can open in other softwares.
Wikipedia showed me that CSV is the most accepted format, and it is very 
simple.

Regards
-- 
Henrique Lengler

https://gitorious.org/~henriqueleng

Skype: No way! That's nonfree (freedom-denying) software.
	Wanna talk with me? Ask me for my TOX ID.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] terminal spreadsheet - sc fork
  2014-11-04 16:30   ` Henrique Lengler
@ 2014-11-04 16:41     ` Andrés Martinelli
  0 siblings, 0 replies; 11+ messages in thread
From: Andrés Martinelli @ 2014-11-04 16:41 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 963 bytes --]

Yes. Saving in CSV format is the next to be cleaned from sc and
reimplemented!

2014-11-04 13:30 GMT-03:00 Henrique Lengler <henriqueleng@openmailbox.org>:

> Hi,
>
> I'm interested in this project, so I have some considerations:
>
> I found that already exist a project called scim
> (wikipedia.org/wiki/Smart_Common_Input_Method)
> so you might have problems in the future related to the name.
>
> And second, something I care, is about file formats. I never used sc,
> so I don't know wich file format it saves. But I would like to see SCIM
> (if it doesn't already) saving files in a way I can open in other
> softwares.
> Wikipedia showed me that CSV is the most accepted format, and it is very
> simple.
>
> Regards
> --
> Henrique Lengler
>
> https://gitorious.org/~henriqueleng
>
> Skype: No way! That's nonfree (freedom-denying) software.
>         Wanna talk with me? Ask me for my TOX ID.
>
>


-- 
Andrés Martinelli

[-- Attachment #2: Type: text/html, Size: 1594 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] terminal spreadsheet - sc fork
  2014-11-04 12:57   ` Alec Ten Harmsel
@ 2014-11-05  0:47     ` Walter Dnes
  0 siblings, 0 replies; 11+ messages in thread
From: Walter Dnes @ 2014-11-05  0:47 UTC (permalink / raw
  To: gentoo-user

On Tue, Nov 04, 2014 at 07:57:01AM -0500, Alec Ten Harmsel wrote

> There's actually no 'install' command in the Makefile. You should be
> able to run it by executing the 'scim' binary in src/. It doesn't create
> any of its own libraries or anything, so you should be able to run the
> standalone binary anywhere without needing to install; if you would like
> to install it to your ~/.local, a simple
> 
>     cp src/scim ~/.local/bin/scim
> 
> should suffice.

  Actually, what I did was...

cd ~/bin
ln -s ../scim/src/scim scim

  This way, I'll always be invoking the latest version.

-- 
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] terminal spreadsheet - sc fork
  2014-11-04 11:39   ` Andrés Martinelli
@ 2014-11-05  1:13     ` Walter Dnes
  0 siblings, 0 replies; 11+ messages in thread
From: Walter Dnes @ 2014-11-05  1:13 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 393 bytes --]

On Tue, Nov 04, 2014 at 08:39:56AM -0300, Andrés Martinelli wrote
> Hello! Could you please attach the complete make output??

  As others have pointed out, the "scim" executable exists in scim/src,
and it does run.  Anyhow, here is the gzipped output of

make >> /dev/shm/makelog.txt 2>&1

-- 
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications

[-- Attachment #2: makelog.txt.gz --]
[-- Type: application/octet-stream, Size: 1020 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-11-05  1:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-02 23:16 [gentoo-user] terminal spreadsheet - sc fork Andrés Martinelli
2014-11-03  8:57 ` Wang Xuerui
2014-11-04 11:36 ` Walter Dnes
2014-11-04 11:39   ` Andrés Martinelli
2014-11-05  1:13     ` Walter Dnes
2014-11-04 12:57   ` Alec Ten Harmsel
2014-11-05  0:47     ` Walter Dnes
2014-11-04 16:30   ` Henrique Lengler
2014-11-04 16:41     ` Andrés Martinelli
2014-11-04 13:23 ` Alec Ten Harmsel
2014-11-04 13:39   ` Andrés Martinelli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox