Tumgik
jriverac · 2 years
Text
Mobile Photography Toolkit
Ok, so a good friend is going for a trip and he asked me to put together a kit of for mobile photography; me, being huge photography nerd could not pass on the opportunity rave about all the things I like being creative with. Let me begin with what to me is the core of mobile photography, a great phone. In my case the iPhone Pro Max. I don't care how many more megapixels you can cram on a Samsung, Pixel, and the like; I'm not willing to sacrifice the familiarity of iOS for more megapixels when the image quality of the iPhone Pro is second to none. You might have a different opinion, and might be used to a different platform. That's fine, whatever option works for you and makes you happy will do as long as you master the camera functions and your phone is not more than 5 years old (really, phones have had great cameras for a while now, iPhone 7 Plus, anyone?) you'll be fine. Moment Phone case with M-mount. This one is, a little tricky because it is not available for all phones, but if it is available for your phone is a no brainer. It as a rather classic and sober style, but it allows you to attach the newest Moment lenses and secure a strap for safely taking those hard shots, specially with the larger phones. Moment 58mm Telephoto lens, this stubby guy will help you get twice as close to your subject without having to switch from your main lens to the phone telephoto, or get six times closer if you combine your phone telephoto with this glass. Moment 14mm Fisheye lens, this little guy will help you cram ridiculous amounts of content into a single frame. The antithesis of the 58mm, this lens is the ideal for tight group photos and selfies when you want to keep the background of your shot. Moment 1.33x Anamorphic lens (Blue Flare), ok, this one is not really intended for photography, this is clearly a cinematic lens; still, if you're gonna be traveling you'll likely find stuff worth recording. Go harass those whales or chase those Hawaiian chickens with this lens. The anamorphic video form factor you get from this lens can add perspective and drama to any shot. Specially at morning and sunset where the blue flares created by its unique shape add rich accents to any footage. Moment 25mm 10x Macro Lens, not really my thing while out and about but if you want to capture really small details this lens will allow you to get super close to whatever catches your eye. Moment Pro Camera App, you want those nice Moment lenses to do their best job? You need this app, it will allow you to get the best from the lenses while saving you toil, as well as access manual settings and otherwise hidden settings that your hardware already supports, all this in beautiful RAW. Moment 62mm Filter Mount, one mount ring to rule them all. This ring mount attaches to all of the Moment Lenses (except the 10x Macro, obviously) so that you can use the same set of filters for every occasion. Gobe 62mm VND Filter, 2 Peak, get just the right amount of light in, don't lose detail to glare. Rule that shutter speed! Gobe 62mm CPL Filter, 2 Peak, get rid of glare and reflections with the CPL. Want to record the road ahead without the windshield blinding your camera? Or maybe get real close to that lovely creature safely behind the glass? Then this filter is your best friend. 3 Pocket Filter Case, assuming that you're only using the 62mm Mount Adaptor you can fit the CPL and VND in this compact case and shave the weight of the individual filter tins. Joby GripTight PRO 2 Mount, if you are to attach your phone to anything, this mount will keep your phone safe and give you versatile attachment options for accessories. PGYTech Mantispod Pro, this tripod surely isn't a replacement for the PeakDesign Carbon Travel Tripod. What it is is a super flexible travel and blogging tool that can configure its small size for most needs for a fraction of the cost. Aputure AL-MX, because sometimes you will need extra light and when you do, this little guy can give you all those precious lumens. Rode VideoMicro, having a good directional phone is great, having a dead cat to filter out the wind is even better. Saramonic 3.5mm Male TRS to Lightning, the cable that comes with the Rode VideoMicro won't work with your iphone connector, its a 3 prongs vs 2 prongs thing. Just directly plug this between your phone and microphone.
2 notes · View notes
jriverac · 3 years
Text
Applescript Loops
Looping thru collections
Set my_list to {"One", "Two", "Three"} Repeat with my_item in my_list Say my_item End repeat
Looping a number of times
Repeat 3 times Say "Hello" End repeat
0 notes
jriverac · 3 years
Text
Delete all Remote Git Branches except master
If you want to clean your remote repository from stale branches and just keep master? Here:
git branch -r | grep 'origin' | grep -v 'master$' | grep -v HEAD | cut -d/ -f2- | while read line; do git push origin :heads/$line; done;
0 notes
jriverac · 3 years
Text
Delete all Git Branches except master
If you want to clean your local repository from stale branches and just keep master? Here:
git branch | grep -v "master" | xargs git branch -D
0 notes
jriverac · 3 years
Text
How to set the node version for a project
Lately, I'm doing some React/Typescript work, and honestly, it's been a while since I had felt so lost with a piece of tech that I thought I knew. So, you might see some fundamental stuff that everyone should know pop up here.
I've been struggling to get some tests to work because it seems like online `rbenv` that sets the `local` Ruby, `nvm use` does not; `nvm` only changes the value for the current session.
To change the local node version, you must manually create a `.nvmrc` file on the project folder and store in this file which version you want to use; after that, you just run `nvm which`, and that will both load set the specified version for the project and display it for you to see.
This is much better explained here.
0 notes
jriverac · 3 years
Link
Just a neat little collection of what VS Code can do.
0 notes
jriverac · 3 years
Link
Remembering proper Git commands is a pain. No more, GitExplorer allows you to find the right command by browsing and searching for the action you want to take.
0 notes
jriverac · 4 years
Text
How to extract from a regex column in postgresql
SELECT rpm_id, UNNEST(REGEXP_MATCHES(request, ':dimension=>"PROV_USR_HOURS", :quantity=>(\d+)')) AS request_users, UNNEST(REGEXP_MATCHES(request, ':dimension=>"INGEST_IN_100MBS", :quantity=>(\d+)')) AS request_data, UNNEST(REGEXP_MATCHES(response, 'metering_record_id=>"([0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12})"')) AS message, UNNEST(REGEXP_MATCHES(response, ':status=>"(Success)"')) -- response FROM interactions WHERE rpm_id = 2984374 AND created_at BETWEEN '2021-01-01' AND '2021-02-01';
0 notes
jriverac · 4 years
Text
Simple Random Alphanumeric String Generator in Ruby
This is a simple enough way generate a random alphanumeric string in Ruby.
(0..32).map{[*'0'..'9',*'A'..'Z',*'a'..'z'].sample}.join
If you want to run as part of the shell, something this would do the trick:
ruby -e "puts (0..32).map{[*'0'..'9',*'A'..'Z',*'a'..'z'].sample}.join"
It is still a bit unclear to me exactly how the '*' is operating here.
0 notes
jriverac · 4 years
Text
Searching the terminal history
I don’t really know of a perfect way to search the terminal history, but this one is pretty damn close
history | cut -c 8- | sk -m | pbcopy
0 notes
jriverac · 4 years
Text
Cobalt2 for iTerm? Yes, thank you
My all-time favorite color scheme is available for iTerm2. 
Right here:
https://github.com/wesbos/Cobalt2-iterm
0 notes
jriverac · 4 years
Text
Manually update oh-my-zsh
Just in case I forget about it, this little snippet from Chris Kolb is how you update oh-my-zsh.
Manually update oh-my-zsh:
upgrade_oh_my_zsh
That's it
Actually, that's not it, because now this comes up
Note: `upgrade_oh_my_zsh` is deprecated. Use `omz update` instead.
0 notes
jriverac · 4 years
Text
Changing the Java Version for Anypoint Studio
I'll be real quick on this one, because is silly.
You can bounce around a great deal everywhere from jenv and how it does not change the system version, we can bounce around a few solutions from the brew side before you realize that you need the OpenJDK that maven installs. Lets avoid all of that now.
Just go to the Applications folder, look for your any point studio 6 and go to contents for that package, enter the contents folder then the eclipse folder and open the Anypoint.ini file.
Look for the -vmargs entry and just before it open a new line and enter -vm. In the very next line you must enter the full path to the java 8 version. Something like this:
/Library/Java/JavaVirtualMachines/jdk1.8.0_251.jdk/Contents/Home/bin/java
The whole file should look something like this:
-startup ../Eclipse/plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar --launcher.library ../Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.551.v20171108-1834 -vm /Library/Java/JavaVirtualMachines/jdk1.8.0_251.jdk/Contents/Home/bin/java -vmargs --add-modules=ALL-SYSTEM -Xms512m -Xmx1024m -XX:MaxPermSize=512m [email protected]/AnypointStudio/workspace -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2 -Dequinox.resolver.revision.batch.size=1 -XX:ErrorFile=./studio_crash_report.log -Djdk.http.auth.tunneling.disabledSchemes= -Dfile.encoding=UTF-8 -Djava.awt.headless=true -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts
0 notes
jriverac · 4 years
Text
Killing Anypoint's Debugger
Sometimes the best think you can do for a piece of software is give it a swift death. This will take care of the Anypoint Debugger:
kill $(lsof -t -i :6666)
0 notes
jriverac · 4 years
Text
Doing some RAM disks in Mac OS
This is just a reminder that RAM disks are a thing. There are good articles out there explaining the benefits and risks in detail. How you get unpaired performance out of them as long as you remember to save your work somewhere else afterwards. 
Here is a command to create two RAM disks, Source and Target roughly 4 Gigs each:
diskutil erasevolume HFS+ 'Source' `hdiutil attach -nomount ram://8388608` & diskutil erasevolume HFS+ 'Target' `hdiutil attach -nomount ram://8388608`
0 notes
jriverac · 5 years
Photo
Tumblr media
best languages cheatsheet ever
57 notes · View notes
jriverac · 5 years
Text
Launching the VSCode Debugger
I keep losing this thing:
{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "type": "node", "request": "launch", "name": "VSCode Jest Tests", "args": ["test", "--runInBand"], "cwd": "${workspaceFolder}", "console": "integratedTerminal", "internalConsoleOptions": "neverOpen", "disableOptimisticBPs": true, "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/react-scripts", "protocol": "inspector" } ] }
0 notes