csexton / captured-ruby Goto Github PK
View Code? Open in Web Editor NEWQuick screen capture sharing utility for Mac OS X.
License: Other
Quick screen capture sharing utility for Mac OS X.
License: Other
~$ 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
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?
Then you will need to edit
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
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
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.
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!
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.
rainman :: ~ » captured --install
Installing captured
/Library/Ruby/Gems/1.8/gems/captured-0.4.1/bin/captured:83: uninitialized constant FileUtils (NameError)
from /usr/bin/captured:19:in `load'
from /usr/bin/captured:19
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?
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]
It'd be cool if there were a way to retry manually an upload that failed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.