How to make win32 console recognize ANSI/VT100 escape sequences?

How to make win32 console recognize ANSI/VT100 escape sequences?
December 2

I'm building a lightweight version of the ncurses library. So far, it works pretty well with VT100-compatible terminals, but win32 console fails to recognise the \033 code as the beginning of an escape sequence: # include <stdio.h> # include "t


OSX 10.10 import .pfx without a password?

I am attempting to import a .pfx certificate on a MacBookPro with 10.10. As I import the cert I am prompted to enter a password for the cert. I created the cert and I know there is no password. I cannot leave the password field blank as it results in


How to continue reading from stdin after Control-D on OS/X

I would like to use EOF to terminate reading bulk user input, but continue to be able to accept user CLI input. It seems that Linux allows this behaviour, but OS/X simply shuts down the stdin input steam (as seem from the following test program). Is


How to get the correct font sizes from Photoshop into iOS

How to get the correct font sizes from Photoshop into iOS
December 2

I have a design in an psd file. So I copied all text properties (fontname, size (in pt), color, etc) into code and run it. I did a screenshot and compared that to the design. I am wondering, why is iOS (in my case) rendering the font sizes (in pt) sm


In the Terminal on Mac OSX, How to use shift + arrows in order to select text? [closed]

I have been using terminals to code for a while on Fedora. On the native terminal of Mac, i found something very disturbing: I can't select text with the combination of SHIFT + arrows or others keyboard combinations. It is really painfull to use the


mount a windows smb share on OS X as so it can be accessed by 'www' user

trying to mount an smb share on OS X so that the 'www' user can read files from there. the SMB share is accessible via an Active Directory account. I can mount the share through the Finder (cmd-k ...) my basic approach is # 1) create mountpoint sudo


Source control - VSS 2005 or Subversion? [duplicate]

Possible Duplicate: Reasons to use Subversion over MS Source Safe I'm looking to implement source control for my personal projects. I am the only user so concurrency requirements are little to nothing, but who knows maybe i'll hire someone to help me


XQuartz / X11 removed when OSX updates

Every time OSX decides to update itself, it removes my XQuartz installation, which is required to use X11. Apple no longer supports or ships X11, but why does it keep removing my third-party installation when it updates itself? Is there any way of st


Call Cocoa-function removeItemAtPath through AppleScript

I want to use the Cocoa-function removeItemAtPath to delete a folder with a path specified in AppleScript part but don't know how to accomplish that through AppleScriptObjC. Can you help me by giving an example?1 AnswersWhy not just use AppleScript t


Is it possible to know referrer for GURL call received via AppleScript event?

I have a protocol handler associated with my Cocoa application. [[NSAppleEventManager sharedAppleEventManager] setEventHandler:self andSelector:@selector(getUrl:withReplyEvent:) forEventClass:kInternetEventClass andEventID:kAEGetURL]; ... - (void)get


'Xcode could not find software image to install in this version' xcode 4.5

'Xcode could not find software image to install in this version' xcode 4.5
December 2

Does anybody know how to deal with provisioning profile in the xcode 4.5 > organizer where provisioning profile of the iPhone device that reads 'Xcode could not find software image to install in this version'. I got the certificate and provisioning p


VoiceOver doesn't scroll elements out of view properly

HTML fixed footer with vertically scrolling content (standard stuff I hope, overflow:auto etc.). When vertically scrolling through elements via right-swipe VoiceOver gesture as soon as VoiceOver focus hits the elements at the bottom of the visible vi


dompdf ignores width attribute

I am trying to create a PDF that has three black boxes across the page. I have coded up the following.. <?php require_once("dompdf_config.inc.php"); $html = ' <!DOCTYPE html> <html> <head> <meta charset="utf-8"


how to create a simple node server that compresses static files using gzip

how to create a simple node server that compresses static files using gzip
December 2

I've been on this for hours.. the first thing i did was follow this tutorial which had this code: var express = require('express'); var app = express(); // New call to compress content app.use(express.compress()); app.use(express.static(__dirname + '


Last Day Function - Data Set Oracle Fusion

Last Day Function - Data Set Oracle Fusion
December 2

Im using Oracle Fusion in my enterprise project. We have to create a report that must include last day of a certain date in this format 'May-16' for example. This date field is result of a SQL query and is stored in the data set and I want to get the


Getting Primary HDD serial on OSx using terminal

Ok, so I think the title of this question pretty much sums it up. I would to know of a way to obtain the serial number of the HDD that the operating system is installed on, in OSx without having Admin privileges. Preferably, I would like to do this u


Finding the path of a mounted network share on Mac OS X

I'd like to find out where a network share is mounted when the mount command fails like this: $ mkdir ~/share $ mount_afp afp://server/share ~/share mount_afp: the volume is already mounted This looked promising... $ mount ... snip ... afp_000000004o


Simple AppleScript crashing PowerPoint 2011

I'm trying to get PowerPoint 2011 to run a slide show from AppleScript. My script is as follows: tell application "Microsoft PowerPoint" set settings to slide show settings of active presentation run slide show settings end tell The slide show s


How should be the launchd file be if I don't want the deamon to load and/or start automatically?

I'm adding a launchd file for MySQL that I don't want to be automatically started. Just wondering what I should change in the file. /Library/LaunchDaemons/com.mysql.mysql.plist <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE


Laravel 5.2 upgrade - class AuthServiceProvider not found

I'm currently spending time to upgrade my project from Laravel 4.2 to Laravel 5.2. After lots of troubles I managed to get a 5.1 version running correctly so I started the 5.1 to 5.2 procedure as described in the official docs: https://laravel.com/do