Posts

database - Questions on Private MySQL Instances and WordPress -

hopefully job asking question... my web host (webfaction) contacted me , said 1 of sites i'm hosting using many resources shared mysql pool. said should create private mysql instance on application server , run things there not impact other sites. an understandably fair , reasonable request. i've gone ahead , created private instance database have one-click installer. can tell has no phpmyadmin, , i've never worked "private instance" db before have questions... being 95% wordpress user have have private instance db every wordpress site host, or can 1 handle needs of many? if later...how ()? i absolutely refuse ssh db make changes. i've never done before, don't know syntax, , scares hell out of me truthfully. there app/tool (i'm mac user) makes interacting private instance db simple , easy? i've been looking sequel pro i'm not sure. again, hope way asked isn't confusing. yes, can handle lots of wordpress instances si...

javascript - ScrollTo Effect (href to div) -

i can't seem find working simple scrollto effect. want basic, it's when click on link in nav bar, must take me selected div id scrollto effect. this code have. <nav> <ul> <li><a href="#home">home</a></li> <li><a href="#about">about</a></li> <li><a href="#contact">contact</a></li> </ul> </nav> <section id="home"> content </section> <section id="about"> content </section> <section id="contact"> content </section> js: <!----- navegación slide ---> $(document).ready(function() {   $('a[href*=#]').each(function() {     if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')     && location.hostname == this.hostname     && this.hash.replace(/#/,'') ) {       var $targetid = $(this.hash), $targetancho...

c# - NuGet Restoration Never Works on Build Server -

i have pretty simple application nuget references , works fine locally. have not committed packages folder of course, config. when have teamcity build solution, got error needed enable nuget package restore did. now when build message the build restored nuget packages. build project again include these packages in build. more information, see http://go.microsoft.com/fwlink/?linkid=317568 . makes sense, error no matter how many times build it. continually fails. missing here? run nuget package restore before build solution. team city should have nuget installer step restore nuget packages. add build steps before compilation of solution. you build step runs: nuget.exe restore yoursolution.sln however team city's built in nuget build step allows configure other things, such private nuget repository urls, easier creating own build step scratch.

java - Url loading error for image in runnable jar -

so, when try following code: //main class package com.mgflow58.main; import java.awt.image.bufferedimage; import java.io.ioexception; import java.net.malformedurlexception; import java.net.url; import javax.imageio.imageio; import javax.swing.imageicon; import javax.swing.jframe; public class game { public static void main(string[] args) { bufferedimage mainicon = null; jframe window = new jframe("guppy's adventure"); window.add(new gamepanel()); window.setdefaultcloseoperation(jframe.exit_on_close); window.setresizable(false); window.pack(); window.setlocationrelativeto(null); window.setvisible(true); try { string mainurlstring = "icon.gif"; url mainurl = new url(mainurlstring); try { mainicon = imageio.read(mainurl); window.seticonimage(new imageicon(mainicon).getimage()); } catch (ioexception e...

java - I keep getting this error: An internal error occurred during: "Converting 'AngularTest' to angular project..." -

i trying test out karma on eclipse project got hung error when first trying convert angularjs: an internal error occurred during: "converting 'angulartest' angular project...". loader constraint violation: when resolving method "tern.resources.ternproject.set(ljava/lang/string;lcom/eclipsesource/json/jsonvalue;)lcom/eclipsesource/json/jsonobject;" class loader (instance of org/eclipse/osgi/internal/baseadaptor/defaultclassloader) of current class, tern/eclipse/ide/internal/core/resources/ideternproject, , class loader (instance of org/eclipse/osgi/internal/baseadaptor/defaultclassloader) resolved class, tern/resources/ternproject, have different class objects type java/lang/string;lcom/eclipsesource/json/jsonvalue;)lcom/eclipsesource/json/jsonobject; used in signature any appreciated question angularjs eclipse. perhaps have several version of minimal-json plugins?

php - How can I show a list of *all* available calendars using Google Calendar API v3 / Google API Client Library? -

i have been trying access google calendar api v3 using php. initially, want list user calendars accessible call api. to so, have downloaded google api php client library , have attempted use following code (which sourced, adaptations, https://mytechscraps.wordpress.com/2014/05/15/accessing-google-calendar-using-the-php-api/ ): <?php //error_reporting(0); //@ini_set('display_errors', 0); // if you've used composer include library, remove following line // , make sure follow standard composer autoloading. // https://getcomposer.org/doc/01-basic-usage.md#autoloading require_once './google-api-php-client-master/autoload.php'; // service account info $client_id = '754612121864-pmdfssdfakqiqblg6lt9a.apps.googleusercontent.com'; $service_account_name = '754674507864-pm1dsgdsgsdfsdfsdfdflg6lt9a@developer.gserviceaccount.com'; $key_file_location = 'calendar-7dsfsdgsdfsda953d68dgdsgdsff88a.p12'; $client = new google_client(); $client-...

Excel 2013 VBA Resize not working -

i writing excel sheet buttons run vba. each button picks cell @ beginning of range use, length(number of cells used), , couple of other parameters entered user, , sends information sub, resizes range contains 1 cell number of cells entered in length when use sub getfromctlgx(rangetofill range, name, tagname, taglength) rangetofill = rangetofill.resize(1, taglength) my range, "rangetofill" not changed @ all. if use sub getfromctlgx(rangetofill range, name, tagname, taglength) rangetofill.resize(1, taglength) the code faults , doesn't compile. has else run problem? missing something? i found mistake in code, it should have been set rangetofill= rangetofill.resize(1, taglength) it's odd though.... still doesn't explain me why rangetofill.resize(1, taglength) wasn't working, that's used in majority of examples saw. i'm surprised there wasn't error not having set keyword there.