MySQL Workbench - Connect to a Localhost

MySQL Workbench - Connect to a Localhost

I just installed MySQL Workbench and there are no connections available for my localhost server. When I try to make one, I get an error popup. Has anyone experienced something like this before and would be able to help me out?Here is what

How do I launch an application on system startup? (Mac OSX, Cocoa)

How do I launch an application on system startup? (Mac OSX, Cocoa)

I have a program that runs only in the toolbar (w/ time/date, spotlight, etc.) and I want to put an item in the preferences to allow the user to select whether to start my application on the system startup or not. I'm currently lost on wher

Left Outer Join Not Working?

Left Outer Join Not Working?

I have a query pulling data from three tables using LEFT OUTER JOIN for both joins. I need the query to return the left most (Salesrep table) info even if the there is no corresponding data in the two right tables (prescriber and prescript

Check if a collection contains an object, comparing by reference

Check if a collection contains an object, comparing by reference

The Collection.contains() method check if a collection contains a given object, using the .equals() method to perform the comparison.From Java7 Javadoc: boolean contains(Object o) Returns true if this collection contains the specified

How to add string objects to NSMutableArray

How to add string objects to NSMutableArray

I have an NSMutableArray named randomSelection:NSMutableArray *randomSelection;I am then trying to add strings to this array if certain criteria are met:[randomSelection addObject:@"string1"];I am then trying to output the string, to determ

How do I select every other div class element using just CSS (no js)

How do I select every other div class element using just CSS (no js)

Thank you kindly for your responses in advance.I know how to do this using javascript and php, but I am trying to learn how/if it is possible to do this using just css.I have a container which holds many items. Each item has a picture, and

System.Collections.Generic.List does not contain a definition for 'Select'

System.Collections.Generic.List does not contain a definition for 'Select'

This error is happening in many of the files in my "Views" folder: 'System.Collection.GenericList' does not contain a definition for 'Select' accepting a first argument of type 'System.Collections.GenericList' could be found (are you mi

How do I set the position of a UICollectionViewCell?

How do I set the position of a UICollectionViewCell?

So as far as I know, the "protocol method":(UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath Automatically sets the bounds of the cell I created. This is all fine and d

SKShapeNode consuming too much memory and slowing down animation -Spritekit iOS

SKShapeNode consuming too much memory and slowing down animation -Spritekit iOS

I am using SKShapeNode to to create a mountain like object . I use CGMutablePathRef to give the points to my path SKShapeNode *shapenode = [[SKShapeNode alloc] init];CGMutablePathRef path = CGPathCreateMutable();CGPathMoveToPoint(path, NULL

python 'bigfloat' package installation issues

python 'bigfloat' package installation issues

I'm trying to get the package 'bigfloat' installed on my Mac (OS X 10.8.4), and I'm running into some issues. The package 'bigfloat' requires two other dependencies: 1) mpfr, and 2) gmp.I've installed gmp here: http://gmplib.org/ checkin

SetWindowsHookEx global keyboard hook not catching all keypresses

SetWindowsHookEx global keyboard hook not catching all keypresses

I'm writing code that is part of an automation system. I wanted to add a keyboard hook to end the test prematurely, and I did this by using SetWindowHookEx.My code looks pretty much like this: http://support.microsoft.com/kb/318804Here's m

jQuery date picker multi select and unselect [duplicate]

jQuery date picker multi select and unselect [duplicate]

This question already has an answer here: jQuery UI Datepicker - Multiple Date Selections 8 answers Is it possible to enable jquery UI (datepicker) to

Replacing values in one column with another based on a 3rd column matching a 4th

Replacing values in one column with another based on a 3rd column matching a 4th

I'm working with the following example:Original Modified New_Orig New1 2 1 02 4 1 03 6 4 04 8 5

Accessing facebook for posts etc with Graph API c# unity3d

Accessing facebook for posts etc with Graph API c# unity3d

I'm using C# in MonoDevelop with the Graph API to interact with users facebook pages.I've become thoroughly confused though.Are these the correct steps?create facebook app Here : http://developers.facebook.com/programmaticly get access toke

Save a html canvas image

Save a html canvas image

I know there is probably an answer already to this question but I haven't been able to find it yet and there is a deadline on my project.So I have made an html5 canvas and I would like to be able to do two things with one(or more) buttons.I

Use jQuery to change a class dependent on scroll position

Use jQuery to change a class dependent on scroll position

I have a single page website which has a fixed floating nav. I want to be able to highlight which section the user is on by adding a class of say "on" to the relevant navigation a tag.This class will need to be removed when the user is no l

Create an Iframe from a Drupal Website

Create an Iframe from a Drupal Website

I have a drupal website. I want to generate an Iframe with content from my drupal site, that other sites can embed.How I think this can be achieved:Method 1: Create a php script that is autonomous from the drupal engine. Import the configur

Using ANTLR to parse a log file

Using ANTLR to parse a log file

I'm just about starting with ANTLR and trying to parse some pattern out of a log filefor example: log file: 7114422 2009-07-16 15:43:07,078 [LOGTHREAD] INFO StatusLog - Task 0 input : uk.project.Evaluation.Input.Function1(selected=["r

Generic version control strategy for select table data within a heavily normalized database

Generic version control strategy for select table data within a heavily normalized database

Sorry for the long winded title, but the requirement/problem is rather specific.With reference to the following sample (but very simplified) structure (in psuedo SQL), I hope to explain it a bit better.TABLE StructureName { Id GUID PK, Na

how to draw two half circles in ggplot in r

how to draw two half circles in ggplot in r

How can I make a plot like this with two different-sized half circles (or other shapes such as triangles etc.)?I've looked into a few options: Another post suggested using some unicode symbol, that didn't work for me. And if I use a vector

CALayer.contents not rendering correctly in AVMutableComposition

CALayer.contents not rendering correctly in AVMutableComposition

I have a very simple method that generates a video with a static background image which covers the entire video composition and a smaller, partially transparent image (watermark style) that's located at the bottom of the video. The backgrou

Run custom shell script '[cp] embed pods frameworks' no such file or directory

Run custom shell script '[cp] embed pods frameworks' no such file or directory

Just finished resolving my errors after converting to Swift 3 only to get this error when trying to compile. I have attached a screenshot for clarity, it does not look like the system is looking for a .app file or .sh file. Really don't kno

Entity Framework 6 and SQL Server Sequences

Entity Framework 6 and SQL Server Sequences

I am using EF6 with a database first project. We have a requirement to use sequences which was a feature introduced in SQL server 2012 (I believe).On the table the identity column has a default value set using:(NEXT VALUE FOR [ExhibitIdenti

C# split, return key/value pairs in an array

C# split, return key/value pairs in an array

I'm new to C#, and thus am looking for layman's terms regarding this. Essentially, what I would like to do is turn: key1=val1|key2=val2|...|keyN=valN into a database array where, you guessed it, key1 returns val1, key2 returns val2, etc.

round value to 2 decimals javascript

round value to 2 decimals javascript

I have a small issue with the final value, i need to round to 2 decimals.var pri='#price'+$(this).attr('id').substr(len-2); $.get("sale/price?output=json", { code: v }, function(data){ $(pri).val(Mat