MySQL SELinux conflict Fedora 19
I've successfully installed MySQL 5.6 on my F19. Although the installation
was successful, I'm unable to start the mysql service.
When I ran
service mysql start
It returns the following error:
Starting MySQL..The server quit without updating PID file
(/var/lib/mysql/sandboxlabs.pid).
I disabled SELinux (enforcing mode), and the service started smoothly. But
I did some research about disabling SELinux, and found that disabling
SELinux is a bad idea. So, is there any way to add custom MySQL policy? Or
should I leave the SELinux to enforcing mode?
Tuesday, 3 September 2013
warning: initialization makes pointer from integer without a cast
warning: initialization makes pointer from integer without a cast
I will just keep things simple:
Here is the function I built, which will create a new dnode:
struct dnode *dnode_create() {
return calloc(1, sizeof(struct dnode));
}
and here is how I call it:
struct dnode *newnode = dnode_create();
I don't understand how this involved with integer?
I will just keep things simple:
Here is the function I built, which will create a new dnode:
struct dnode *dnode_create() {
return calloc(1, sizeof(struct dnode));
}
and here is how I call it:
struct dnode *newnode = dnode_create();
I don't understand how this involved with integer?
UIActionSheet pass touches through?
UIActionSheet pass touches through?
I'm looking to use a UIActionSheet kind of like a contextual message box
(with no action buttons at all and just a label in the bubble with an
arrow pointing at something). Since there are no actions the user can
take, I would like it to not require a tap to dismiss, but I can't see any
way (such as a passthroughViews property) to allow this.
It's probably not designed for this, but it does happen to be handy for it.
I'm looking to use a UIActionSheet kind of like a contextual message box
(with no action buttons at all and just a label in the bubble with an
arrow pointing at something). Since there are no actions the user can
take, I would like it to not require a tap to dismiss, but I can't see any
way (such as a passthroughViews property) to allow this.
It's probably not designed for this, but it does happen to be handy for it.
Angular+Jquery - Programmatic form submit causes redirect
Angular+Jquery - Programmatic form submit causes redirect
I'm trying to write a form which has ngsSubmit. Pressing Enter and
clicking the submit button works as expected (calling the method I
provided for ng-submit and that's that).
However, I also want in some cases to do some preprocessing before
actually submitting, so I tried using JQuery's submit() to
programmatically trigger the submit.
This causes the ng-submit handler to fire, AND also sends the form
normally refreshing the whole page.
Any ideas how to get around this or why it happens???
Example here ("click me" shows the bad behavior) http://jsfiddle.net/Yf5tf/
<form ng-app="myApp" ng-submit="submitMe()" ng-controller="myCtrl">
<input type="text" ng-model="value"></input>
<input type="submit" value="Go!"></input>
<div ng-click="progSubmit()">click me</div>
</form>
angular.module('myApp', [])
.controller('myCtrl', function($scope, $element, $timeout) {
$scope.submitMe = function() { alert ("hi"); };
$scope.progSubmit = function() {
$timeout(function() {
var inputElem = $element.find("input");
angular.element(inputElem[0].form).submit();
}, 0);
};
});
Thanks, Yaron
I'm trying to write a form which has ngsSubmit. Pressing Enter and
clicking the submit button works as expected (calling the method I
provided for ng-submit and that's that).
However, I also want in some cases to do some preprocessing before
actually submitting, so I tried using JQuery's submit() to
programmatically trigger the submit.
This causes the ng-submit handler to fire, AND also sends the form
normally refreshing the whole page.
Any ideas how to get around this or why it happens???
Example here ("click me" shows the bad behavior) http://jsfiddle.net/Yf5tf/
<form ng-app="myApp" ng-submit="submitMe()" ng-controller="myCtrl">
<input type="text" ng-model="value"></input>
<input type="submit" value="Go!"></input>
<div ng-click="progSubmit()">click me</div>
</form>
angular.module('myApp', [])
.controller('myCtrl', function($scope, $element, $timeout) {
$scope.submitMe = function() { alert ("hi"); };
$scope.progSubmit = function() {
$timeout(function() {
var inputElem = $element.find("input");
angular.element(inputElem[0].form).submit();
}, 0);
};
});
Thanks, Yaron
Getting RGB value from image
Getting RGB value from image
I want to write an application in android which will start the camera,will
capture and store the image and will return RGB value.How to process data
after getting Bitmap data in 'onActivityResult()'. I am new in
Android.Please help.
I want to write an application in android which will start the camera,will
capture and store the image and will return RGB value.How to process data
after getting Bitmap data in 'onActivityResult()'. I am new in
Android.Please help.
Word Automation in C# - Replace a Mail Merge field with a Table
Word Automation in C# - Replace a Mail Merge field with a Table
I am trying to use Word Automation from C# to take a WORD template
document and create a travel itinerary. This involves adding a number of
table to the template document and writing out as a new document.
Originally I wrote this using bookmarks to define where the additional
tables/text were to be added but I am not keen on this as from a user's
point of view it is quite difficult to identify the insertion points as
the bookmarks do not show up with their 'name' in the template so I
started looking at mail merge fields as these are easily viewed and make
it more obvious where for example a table for Hotel reservations will be
placed.
My problem is that while it is easy enough to replace a Mail Merge Field
with text using something like :-
myMergeField.Select(); oWordApplic.Selection.TypeText("This Text Replaces
the Field in the Template");
I cannot seem to replace the mail merge field with a table. When I was
using bookmarks I used code similar to :-
Microsoft.Office.Interop.Word.Table newTable = oDoc.Tables.Add(range,
rows, columns, ref oMissing, ref oMissing);
newTable.Range.Font.Name = "Verdana";
newTable.Range.Font.Size = 10;
newTable.AllowAutoFit = true;
newTable.AutoFitBehavior(Microsoft.Office.Interop.Word.WdAutoFitBehavior.wdAutoFitWindow);
where 'range' was the range of the bookmark and this worked perfectly. Is
it possible tod o something similar with mail merge fields or will I have
to revert to using bookmarks?
Thanks for any advice/suggestions.
I am trying to use Word Automation from C# to take a WORD template
document and create a travel itinerary. This involves adding a number of
table to the template document and writing out as a new document.
Originally I wrote this using bookmarks to define where the additional
tables/text were to be added but I am not keen on this as from a user's
point of view it is quite difficult to identify the insertion points as
the bookmarks do not show up with their 'name' in the template so I
started looking at mail merge fields as these are easily viewed and make
it more obvious where for example a table for Hotel reservations will be
placed.
My problem is that while it is easy enough to replace a Mail Merge Field
with text using something like :-
myMergeField.Select(); oWordApplic.Selection.TypeText("This Text Replaces
the Field in the Template");
I cannot seem to replace the mail merge field with a table. When I was
using bookmarks I used code similar to :-
Microsoft.Office.Interop.Word.Table newTable = oDoc.Tables.Add(range,
rows, columns, ref oMissing, ref oMissing);
newTable.Range.Font.Name = "Verdana";
newTable.Range.Font.Size = 10;
newTable.AllowAutoFit = true;
newTable.AutoFitBehavior(Microsoft.Office.Interop.Word.WdAutoFitBehavior.wdAutoFitWindow);
where 'range' was the range of the bookmark and this worked perfectly. Is
it possible tod o something similar with mail merge fields or will I have
to revert to using bookmarks?
Thanks for any advice/suggestions.
Monday, 2 September 2013
How would I create a caption beneath a responsive image
How would I create a caption beneath a responsive image
Here's our test. http://www.photoeye.com/test1/test4.cfm
How can I create a caption just below the responsive image? Thanks.
Here's our test. http://www.photoeye.com/test1/test4.cfm
How can I create a caption just below the responsive image? Thanks.
Subscribe to:
Posts (Atom)