GithubHelp home page GithubHelp logo

captured-ruby's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

captured-ruby's Issues

OS X 10.7 - Lion not working

~$ sudo gem install captured
Password:

=========================================================================

         Thanks for installing Captured! You can now run:

captured --install to setup launchd to run captured in the background

When you install an example config file to ~/.captured.yml, which has a
few examples of possible configuration types.

=========================================================================

Successfully installed net-ssh-2.2.1
Successfully installed net-scp-1.0.4
Successfully installed captured-0.4.2
3 gems installed
Installing ri documentation for net-ssh-2.2.1...
Installing ri documentation for net-scp-1.0.4...
Installing ri documentation for captured-0.4.2...
Installing RDoc documentation for net-ssh-2.2.1...
Installing RDoc documentation for net-scp-1.0.4...
Installing RDoc documentation for captured-0.4.2...
~$ captured --install
Installing captured
Found existing config file at /Users//.captured.yml
launchctl: Dubious file. Not of type .plist (skipping): /Users//Library/LaunchAgents/com.codeography.captured
com.adobe.AAM.Scheduler-1.0: Already loaded

[imgur] Get image URL instead of HTML page URL

After uploading an image to imgur, an URL of the following format is returned:

http://imgur.com/YmC0W

This is the URL of the imgur HTML page containing the image.

It would be great if .png could be automatically appended to this, and maybe also i. before imgur.com, like this:

http://i.imgur.com/YmC0W.png

This would cause the URL to be a link straight to the image instead, which is more likely to be what you want.

I don’t know Ruby, but I guess this is something that should go in lib/captured/uploaders/imgur_uploader.rb, right?

Error with gem install captured

I'm getting an error when attempting to run sudo gem install captured with the following tail:

gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin11.0 -I. -DRUBY_EXTCONF_H="curb_config.h" -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -arch i386 -arch x86_64 -g -Os -pipe -fno-common -DENABLE_DTRACE -fno-common -pipe -fno-common -I/opt/local/include -g -Wall -c curb.c
In file included from /opt/local/include/curl/curl.h:35,
from curb.h:12,
from curb.c:8:
/opt/local/include/curl/curlrules.h:143: error: size of array ‘curl_rule_01’ is negative
/opt/local/include/curl/curlrules.h:153: error: size of array ‘curl_rule_02’ is negative
lipo: can't open input file: /var/tmp//ccGv23da.out (No such file or directory)
make: *** [curb.o] Error 1

Regarding imgur.

I have a link of the imgur image .jpg extension but do not know how to find the source or the person related to this image. Can somebody please help ? The link is : http://imgur.com/msaby0h

Allow setting custom Imgur API key in `.captured.yml`

It would be great if we could just specify our own anonymous Imgur API key in the config file, ~/.captured.yml. Currently everyone with captured installed is using the same API key. An anonymous API key allows up to 50 images per hour, but if I’m not mistaken, currently all captured users are using the same key, meaning if two people each upload 25 images the limit is reached for that hour and all other captured users will have to wait for the hour to pass.

Suggestion: optimize image before uploading (using pngcrunch or similar)

It would be nice to have captured automatically optimize images before uploading them by running them through pngcrunch or a similar script. Maybe this could be an option in the config file?

Admittedly, it would take a little longer before the images would start uploading, but bandwidth is saved when the compressed image gets uploaded + every time someone views the image online.

Mother nature will love you for implementing this!

Snow Leopard issues

Similar to the issue described initially in https://github.com/csexton/captured/issues#issue/2 I experienced problems getting captured to run properly. The output when trying to call captured manually was as follows:

#captured test.jpg 
dyld: lazy symbol binding failed: Symbol not found: _curl_global_init
  Referenced from: /Library/Ruby/Gems/1.8/gems/curb-0.7.12/lib/curb_core.bundle
  Expected in: flat namespace
dyld: Symbol not found: _curl_global_init
  Referenced from: /Library/Ruby/Gems/1.8/gems/curb-0.7.12/lib/curb_core.bundle
  Expected in: flat namespace
Trace/BPT trap

So I ran through the process as explained by holms:
sudo port -v install zlib +universal
sudo port -v upgrade --enforce-variants openssl +universal
sudo port -v install --enforce-variants libidn +universal
sudo port -v install curl +universal
followed by
sudo gem uninstall curb
sudo env ARCHFLAGS="-arch x86_64" gem install curb

This finally allows captured to work. I guess it would be much easier to have these steps be part of the installer, or at least for captured to tell the user to take these steps in case it finds the curl variant to be wrong.

Shift+Cmd+4 Doesn't Work

Hello

I finally installed this gem thru bloody path on my snow leopard..

First of all these fixes need to be done to install gem itself..

sudo port -v install zlib +universal
sudo port -v upgrade --enforce-variants openssl +universal
sudo port -v upgrade --enforce-variants libidn +universal
sudo port -v install curl +universal

after that gems installs correctly: more info here: http://blog.holms.lt/osx/curl-compilation-problems-snow-leopard

then I had this problem:
Romans-Mac-Pro:~ holms$ captured --install
Installing captured
Found existing config file at /Users/holms/.captured.yml
launchctl: Dubious permissions on file (skipping): /Users/holms/Library/LaunchAgents

maybe it's insecure but whatever..

sudo chown -R holms:wheel /Users/holms/Library/LaunchAgent
sudo chmod 755 /Users/holms/Library/LaunchAgents/com.codeography.captured
sudo chmod 755 /Users/holms/Library/LaunchAgents

after this captured --install executed.

Ok I edited config for my scp. When I enter captured myfile.jpg script asks me for password, although I provided it in config, ok I entering it and it works..
When I try to shift+cmd+4 , growl popups with message that "processing upload", and no result.. is it finished or not,

What's happening?

Can't paste imgur URL

I'm trying to paste the URL after taking a screenshot, but the URL is not in my clipboard after a successful upload. Is it supposed to be this way?

I can see it in my ~/.captured_history, but going by the documentation I would think it's supposed to put the URL in my clipboard.

I'm on Mac OS X 10.5
ruby 1.8.6 (2009-06-08 patchlevel 369) [universal-darwin9.0]

Retry on error

It'd be cool if there were a way to retry manually an upload that failed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.