Posts

How do I grant myself sysadmin-role to a local SQL Server instance? -

this question identical one: how grant myself admin access local sql server instance? , except... question sql-server 2012, not 2008. answers above question not work, since, seems, not have enough rights. the problem: have sql-server instance (sql-server express 2012), original owner killed (the account killed, not person himself), no 1 sysadmin anymore. i local administrator on machine , want grant myself sysadmin-role on sql-server, without reinstalling it. how?

Tesseract on OSX: dyld: Library not loaded: /usr/local/lib/libtiff.5.dylib -

i installed tesseract locally on mac , installed leptonia . xaamp use utility server . i have following problem , when launch command tesseract terminal successful, however, if launch tesseract command php script gives me error : dyld: library not loaded: /usr/local/lib/libtiff.5.dylib referenced from: /usr/local/opt/leptonica/lib/liblept.4.dylib reason: incompatible library version: liblept.4.dylib requires version 8.0.0 or later, libtiff.5.dylib provides version 6.0.0 can me? thank you i have problem similar, not same. can try this: brew install tesseract if not symlink, /usr/local/bin not writable, use command: sudo chown -r $(whoami) /usr/local after install autoconf, automake, , libtool command: brew install autoconf automake libtool i think need use 1 well: brew install leptonica --with-libtiff use link command link libs: brew link tesseract, brew link automake, brew link libtool, etc... i hope helps you.

Sharepoint 2013 Hosted App execute javascript on all pages load -

i know if it's possible have sp 2013 hosted app injects piece of javascript gets executed on every page load. for sake of simplicity, imagine want create app on every page load of sp site displays alert('hello world!'); i don't want have remote web, pure , simple hosted app can added picking sp store. is possible? thanks! you can inject javascript using custom action script link @alexcode suggests app require web - full control permissions. can't remember adapted code while looking add-in development. poc should make more robust before using in live environment. app.js contents (function(undefined) { "use strict"; var actions, web, context, hostcontext, actiondescription; console.log('running function'); // getquerystringparameter: method retrieve query string parameter values var getquerystringparameter = function(param) { var params = document.url.split('?')[1].split('&...

c# - The Namespace X already contains a definition for XX? -

i don't understand error getting. have tried clean , build project several times. can me? program.cs using system; using system.collections.generic; using system.net.networkinformation; using system.net.sockets; using system.io; using system.threading.tasks; namespace httprequestapp { class program { static void main(string[] args) { var lstwebsites = new list<string> { "www.mearstransportation.com", "www.amazon.com", "www.ebay.com", "www.att.com", "www.verizon.com", "www.sprint.com", "www.centurylink.com", "www.yahoo.com" }; string filename = @"requestlog.txt"; { using (var writer = new streamwriter(filename, true)) { fo...

r - RStudio Exporting Issues -

i have never needed export rstudio specific dimensions. producing graphs publication strict width of 2400 pixels. major problem have not used singular traditional plot have done. have customised graph various plots , segments. evaluate plot have been making it, have been looking @ zoomed in plot in rstudio. so asking whether there way export zoomed in plot on rstudio png specified width (height, flexible with). i have tried dev.copy2pdf(device = "pdf", file = "test.pdf") which didn't work had hoped. if using ggplot, can use ggsave: qplot(rating, data=movies, geom="histogram") ggsave("test.pdf", height=8, width=8) the default dpi 300 300 dpi x 8 inches = 2400. this should same in base plotting system: pdf("boxplot.pdf", height=8, width=8) boxplot(mtcars$mpg) dev.off()

date - php get last day of given month -

i want output of last , first date of given month of current year. using code not works $month='02'; $first_day_this_month = date('y-'.$month.'-01'); // hard-coded '01' first day $last_day_this_month = date('y-'.$month.'-t'); echo $first_day_this_month;print'<->';echo $last_day_this_month; my output shows 2015-02-01<->2015-02-31 but 2015-02-01<->2015-02-28 i have had problem php before, try following way: $datetotest = "2015-02-01"; $lastday = date('t',strtotime($datetotest));

excel vba - Delete all rows with criterias -

i need vba code delete rows column equal "xxx" if column b equal "yyy". example: have spreadsheet looks this: column has multiple rows same value value in column b different every row. want delete records same value in column if column b has specific value. this easy create using macro record feature of excel , modify code fit specifics needing.