Allegro.cc - Online Community

Allegro.cc Forums » Off-Topic Ordeals » allegro program I wrote - is there demand ?

This thread is locked; no one can reply to it. rss feed Print
allegro program I wrote - is there demand ?
William Labbett
Member #4,486
March 2004
avatar

Hi guys,

this thread is find out whether this program I've written is worth releasing.

Here's one thing it does : Combines a black and white picture eg :

{"name":"607898","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/6\/2\/628ed8b1de7997b0824cd71326613518.png","w":431,"h":582,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/6\/2\/628ed8b1de7997b0824cd71326613518"}607898

with a colour picture with the same mask :

{"name":"607899","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/f\/4\/f4b094cf3b162c671ab4db826538489b.png","w":431,"h":582,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/f\/4\/f4b094cf3b162c671ab4db826538489b"}607899

To make a new one :

{"name":"607901","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/1\/f\/1f6ec8103383fb11fd3427e5fd22abbb.png","w":431,"h":582,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/1\/f\/1f6ec8103383fb11fd3427e5fd22abbb"}607901

It also combines two black and white pictures into one with various blend options.

Last but not least it can do some translucency shadings on pictures.

I've quite enjoyed programming it because it's a small project and I know what I'm doing for a change :)

Let me know what you think. Whether or not anyone would use it.

Off to bed now, see you tomorrow.

Arthur Kalliokoski
Second in Command
February 2005
avatar

How did you get the shading in the grayscale picture in the first place?

[EDIT]

Now I see the second image is shaded a bit, too. That's what's the interesting part about this.

They all watch too much MSNBC... they get ideas.

Matthew Leverton
Supreme Loser
January 1999
avatar

Just put it up on github or bitbucket.

MiquelFire
Member #3,110
January 2003
avatar

Just put it up on github or bitbucket.

I agree.

---
Febreze (and other air fresheners actually) is just below perfumes/colognes, and that's just below dead skunks in terms of smells that offend my nose.
MiquelFire.red
If anyone is of the opinion that there is no systemic racism in America, they're either blind, stupid, or racist too. ~Edgar Reynaldo

William Labbett
Member #4,486
March 2004
avatar

Thanks.

Is Github straightforward to get to grips with ?

I've never used it before.

Vanneto
Member #8,643
May 2007

Create an account, create a repository, commit the code. That's it. Github explains it all during the creation process. You do need git installed though.

Maybe create a nice README file so that people know how to use it.

In capitalist America bank robs you.

Dizzy Egg
Member #10,824
March 2009
avatar

I'm interested in this, if it's fast 8-)

----------------------------------------------------
Please check out my songs:
https://soundcloud.com/dont-rob-the-machina

beoran
Member #12,636
March 2011

Looks cool!

And learn how to use Git already, it is very, very useful. :)

William Labbett
Member #4,486
March 2004
avatar

Okay guys. I'll get on it today.

/************ EDIT ********************/

I'm trying to use Git from the command line. Can someone help me ?

I created an account with GitHub and then typed all this in (following the tutorial) and ran into problems :

#SelectExpand
1Welcome to Git (version 1.8.3-preview20130601) 2 3 4Run 'git help git' to display the help index. 5Run 'git help <command>' to display help for specific commands. 6 7william@WILLIAM-PC ~ 8$ git help git 9Launching default browser to display HTML ... 10 11william@WILLIAM-PC ~ 12$ cd W:/comic_/picture_blender/code 13 14william@WILLIAM-PC /w/comic_/picture_blender/code 15$ tar xzf code.tar.gz 16 17william@WILLIAM-PC /w/comic_/picture_blender/code 18$ cd code 19sh.exe": cd: code: No such file or directory 20 21william@WILLIAM-PC /w/comic_/picture_blender/code 22$ git config --global user.name wildrabbitt 23 24william@WILLIAM-PC /w/comic_/picture_blender/code 25$ git config --global user.email willlabbett@talktalk.net 26 27william@WILLIAM-PC /w/comic_/picture_blender/code 28$ cd W:/comic_/picture_blender/code 29 30william@WILLIAM-PC /w/comic_/picture_blender/code 31$ tar xzf code.tar.gz 32 33william@WILLIAM-PC /w/comic_/picture_blender/code 34$ cd project 35sh.exe": cd: project: No such file or directory 36 37william@WILLIAM-PC /w/comic_/picture_blender/code 38$ cd code 39sh.exe": cd: code: No such file or directory 40 41william@WILLIAM-PC /w/comic_/picture_blender/code 42$

Vanneto
Member #8,643
May 2007

Judging from this line:

william@WILLIAM-PC /w/comic_/picture_blender/code

Aren't you already in the code directory? Or is there another directory named "code" in there that you want to cd into?

In capitalist America bank robs you.

William Labbett
Member #4,486
March 2004
avatar

That's how stupid I am.

I didn't realise that the git repository is on my machine, not the internet so I thought the cd code line somehow accessed a server and changed the directory on that.

I found a better help page online and am now getting to grips with it.

It would be very helpful though if someone could tell me the answer to this :-

As I understand it :

git once installed can be used to make a repository on a machine.

GitHub is for online repositories so that other people can access it.

Is that right ?

Matthew Leverton
Supreme Loser
January 1999
avatar

Yes, GitHub stores a copy of your local repository. There really is no concept of "official" version. Anybody can copy a repo, and if they have access (via SSH, etc) can push changes to it.

So from the directory your code is in:

git init 
git add .
git commit -m "first commit"
git remote add origin [github url goes here]
git push origin master

The last line is the only thing that tries to access a remote server.

Once pushed up to GitHub, people can access it via their web UI or clone it on their computer and do whatever they want with it (except push it back up to your GitHub account).

William Labbett
Member #4,486
March 2004
avatar

Thanks Matthew.

I did create a GitHub account.

I started putting my files on it with the online GUI. Are you saying that can be bypassed with the command line ?

What do I need to put for the 'github url' please ?

Vanneto
Member #8,643
May 2007

In capitalist America bank robs you.

William Labbett
Member #4,486
March 2004
avatar

So then when I release it I just post the URL on a depot thread ?

/* EDIT */

I guess that's a yes ???

Matthew Leverton
Supreme Loser
January 1999
avatar

That is a yes. (It's already available at the above link, from the looks of it.)

William Labbett
Member #4,486
March 2004
avatar

Thanks for your reply Matthew. It's quiet on these forums sometimes.

I've not uploaded all the files yet so there's no using it yet.

I've got a few readme files to sort out first. I'll make a depot thread on it
as soon as it's done.

<question to get a post to reply to :)>Any know a good freeware IRC program ?</question to get a post to reply to :)>

LennyLen
Member #5,313
December 2004
avatar

Any know a good freeware IRC program ?

I use the one built in to Opera.

William Labbett
Member #4,486
March 2004
avatar

Thanks.

git init
git add .
git commit -m "first commit"
git remote add origin [github url goes here]
git push origin master

I've done this but am having trouble getting the files onto the site.

Here's what I'm doing from the command prompt :

william@WILLIAM-PC /w/comic_/picture_blender/code (master)
$ git push origin master
Username for 'https://github.com': wildrabbitt100
Password for 'https://wildrabbitt100@github.com':
remote: Anonymous access to wildrabbitt100/allegro_picture_blender.git denied.
fatal: Authentication failed for 'https://github.com/wildrabbitt100/allegro_pict
ure_blender/'

I'm typing the same password I use to access the GitHub site. I've verified my email address. I don't know why it won't let me transfer my files.

Any ideas?

gnolam
Member #2,030
March 2002
avatar

Any know a good freeware IRC program ?

Quassel.

--
Move to the Democratic People's Republic of Vivendi Universal (formerly known as Sweden) - officially democracy- and privacy-free since 2008-06-18!

William Labbett
Member #4,486
March 2004
avatar

Thanks. Downloaded it.

MiquelFire
Member #3,110
January 2003
avatar

I use the ssh path for GitHub/BitBucket just so I don't have to remember what my password on the site is. Never used HTTPS for access.

I saw this. Maybe you generated one somehow (or GitHub generates one for you when you sign up) and it's blocking the use of your password when using HTTPS.

---
Febreze (and other air fresheners actually) is just below perfumes/colognes, and that's just below dead skunks in terms of smells that offend my nose.
MiquelFire.red
If anyone is of the opinion that there is no systemic racism in America, they're either blind, stupid, or racist too. ~Edgar Reynaldo

William Labbett
Member #4,486
March 2004
avatar

thanks. What would the ssh path be for my project ?

MiquelFire
Member #3,110
January 2003
avatar

You need to upload your ssh key to the first (if you haven't already), but your url is: git@github.com:wildrabbitt100/allegro_picture_blender.git

I don't use git directly, so I don't know how to change the url you push to.

---
Febreze (and other air fresheners actually) is just below perfumes/colognes, and that's just below dead skunks in terms of smells that offend my nose.
MiquelFire.red
If anyone is of the opinion that there is no systemic racism in America, they're either blind, stupid, or racist too. ~Edgar Reynaldo

William Labbett
Member #4,486
March 2004
avatar

I made a SSH key and uploaded it to GitHub.

I run this from git-bash to see if my ssh key is loaded into SSH and I only get this.
Perhaps you could tell what I need to do ?

william@WILLIAM-PC ~ (master)
$ ssh-add -l
Could not open a connection to your authentication agent.

william@WILLIAM-PC ~ (master)
$

Go to: