Clear screen in Mitmproxy Linux

I'm using Mitmproxy over multiple platforms (linux and os x), and while on os x shit+c clears the console log, on linux it opens the "Export to clipboard" option, as follows: Is there a way to clear the mitmproxy logs in linux? Thanks. ...
more »

2017-03-21 21:03 (1) Answers

Zipping files with relative path?

I'm trying to create backups of my USB key. For that, I'd need to zip the content of my USB key (/Volumes/<USB KEY NAME>/). I have this code for the moment zip -r /Volumes/<USB KEY NAME>/* That seems to work, except the fact that when I e...
more »

2017-03-21 19:03 (1) Answers

Scrollview to not allow scrolling back 2 images

So if any of you have ever used spotify (non premium) you might have noticed how you cannot scroll back to last song you listened to. Now I wanted to do that in a scrollview. I have created and initialized a scrollview that pulls from an array of ima...
more »

2017-03-21 18:03 (1) Answers

macOS Printing in Swift

Please note this is not an iOS question. I have an NSView-based app (i.e. not document-based), and I’d like to bolt on a printing subsystem. I can get NSViews in my main controller to print ok. However, I want to have a special view constructed ju...
more »

2017-03-21 16:03 (0) Answers

How to install imagick on MAMP?

When I run sudo pecl install imagick, I receive the following error: checking ImageMagick MagickWand API configuration program... checking Testing /usr/local/bin/MagickWand-config... Doesn't exist checking Testing /usr/bin/MagickWand-config... Does...
more »

2017-03-21 15:03 (2) Answers

Starting the Laravel cron job on a Mac

I have a command scheduled in the Laravel 5.4 scheduler and would like to start the Laravel cron on Mac OS X El Capitan. app/Console/Kernel.php <?php namespace App\Console; use Illuminate\Console\Scheduling\Schedule; use Illuminate\Foundation\C...
more »

2017-03-21 11:03 (1) Answers

Writing a make file for GLFW3

i'm writing an emulator program and I need a graphics library. I have 4 files, the graphics library GLWF3 is installed in my includes folder. Im using MacOs Yosemite. I can't figure out how to get the makefile working though to include the glfw3 libr...
more »

2017-03-21 05:03 (1) Answers

convert hex Timestamp to readable date and time

I'm trying to understand how a binary file (.olk Outlook office 2016 for MAC) works. I'm using a hex editor do this. I understand most of the file, however I am stuck with this timestamp problem. I am 100% sure that a part of this hex is the actual t...
more »

2017-03-20 09:03 (2) Answers

How to "refresh" an email signature

I hope someone can help me... In our company we changed the logos in the email signatures replacing the old ones (so, same name, same folder, etc.), so to not re-install the html codes in every client. The problem is that nothing is changing and, aft...
more »

2017-03-20 08:03 (0) Answers

Using CoreMIDI input with AVAudioUnit

I'm trying to achieve something that seems like it should be simple: listen for MIDI messages in a Mac app, and use these to play notes from an existing AVAudioUnit instrument. Hypothesis: I need to write a bridge between the MIDIReadBlock associate...
more »

2017-03-20 01:03 (0) Answers

Mac: Lack of --printf for stat

I'm trying to use stat on mac (with python), but using command = "stat --printf 'name: %n \tSize: %s bytes\t Type: %F\t Timestamp:%z\n' " + j in python, gives me a response 'stat: illegal option -- -' which tells me that some of my tags in stat --pr...
more »

2017-03-19 21:03 (2) Answers

Is this a bad idea for remote connection?

If I have a Mac or other UNIX-Based system, and I wanted to grant remote access to a machine without them using a password and I didn't want to install anything, is it a bad practice to run while true; do nc -l 4444 >; sh; done on my c...
more »

2017-03-19 20:03 (1) Answers

Install python-igraph in Mac OSX Sierra

I have anaconda installed in my Mac. I am trying to install python-igraph. I tried the following commands to install it: $ brew install igraph $ pip install python-igraph My python setup: Python 2.7.13 |Anaconda custom (x86_64)| (default, Dec 20...
more »

2017-03-19 20:03 (1) Answers

can't install data.table package in R

Thanks for clicking in. I've been trying to solve this for hours but nothing seem to work. My operating system: MacOS sierra OS version: 10.12.3 R version: 3.3.3 I've followed the data.table download instruction here:
more »

2017-03-19 15:03 (1) Answers

fcntl F_GETLK always returns F_UNLCK

I am trying to understand POSIX file-region locks in C. The program below is really simple, sets the lock to F_WRLCK and then gets locks. There is no errors during opening/setting lock. Unfortunatelly it's always returning F_UNLCK. Where is the mista...
more »

2017-03-19 10:03 (1) Answers

Valgrind fails when installing - make

I've got Mac OS X Sierra 10.12.3, I know that Valgrind may not be compatible with my system. I've successfully ran automake and the svn, however when I try to run make, it says: priv/ir_opt.c:5930:14: error: explicitly assigning value of variable of...
more »

2017-03-18 21:03 (2) Answers

File renaming using regex

I have a bunch of files in a folder. Some of them are of the format: IMG_YYYYMMDD_junk.ext I would like to rename such files into YYYY-MM-DD junk.ext Example: IMG_20170214_3939233.jpg becomes 2017-02-14 3939233.jpg So far I was successful in fil...
more »

2017-03-18 18:03 (5) Answers

Can't open JAR files with JRE installed?

I have several JAR files that I was able to run several days ago; however, now my Mac changed them to be opened with the Unarchiver program. I don't see any options for opening the file with the Java Runtime. I installed the latest update with no ava...
more »

2017-03-18 15:03 (1) Answers