Posts

node.js - Sails.js: Page specific .less files -

i have "page specific" .less file in project need reference in particular view. reason cannot add importer.less i having hard time making work. for example, adding <link rel="stylesheet" href="/styles/homepage.css"> directly homepage.ejs , browser returns 404 not found since homepage.less not being compiled , copied on .tmp directory. thanks lot looking this. create assets/styles/home.less file home specific styles. notice file can @import "importer.less" reuse default styles than add home.less less task in tasks/config/less.js follows: grunt.config.set('less', { dev: { files: [{ expand: true, cwd: 'assets/styles/', src: ['importer.less','home.less'], dest: '.tmp/public/styles/', ext: '.css' }] } }); ...

java - Mechanical Turtle "graphics", out of bounds exception -

thank taking time me learn what's wrong code , troubleshoot it. i'm not looking me , wish understand wrong , if have suggestions code please feel free make them if explain me. can't submit code don't understand. i having issues out of bound exception. below brief synopsis of assignment. post driver, class (my code) , output file example (we required use driver without changes initial code, per assignment). also mute majority of code once solved prevent others using directly (copy / paste) in future assignments if instructor or decides exact project when creating turtle, place in middle of room, pen down, , facing right. more 1 turtle can placed in same room @ same time. initialize room blanks , keep track of each turtle, position , direction, state of pen @ times. the class (my code) class turtle { boolean penstatus; //pen status true = down, false = int xpos, ypos; //x position , y position of turtle (x = height, ...

Grails Spring jar dependency with Atmosphere plugin -

i running dependency issues with atmosphere plugin. using grails 2.3.6 getting following error on server start up 2014-04-20 01:21:44,262 [localhost-startstop-1] error context.grailscontextloader - error initializing application: org.springframework.beans.factory.annotation.injectionmetadata.needsrefresh(lorg/springframework/beans/factory/annotation/injectionmetadata;ljava/lang/class;)z message: org.springframework.beans.factory.annotation.injectionmetadata.needsref resh(lorg/springframework/beans/factory/annotation/injectionmetadata;ljava/lang/ class;)z to me seems dependency problem, unable pin point specific jar/s ran on dependency report couldn't make out real issue. any idea ??

How to upload images from asp.net application to image server? -

i have 2 servers.one web app , images storage .i have no idea how upload images web app image server. webservice or ftp or others? if have sql server instance running on [image server], can't use database running beneath ? you'll need public ip address in order access server. make sure can connect db other sql server management studio. but security reasons, recommend build web service/api & configure on image server, serves requests made webapp.

python - Cannot run Hello World Open -

i competing in hwo2014 , yet cannot run bot. here build file provided with, alongside run file: build: #!/bin/bash virtualenv env --no-site-packages --distribute source env/bin/activate run: #!/bin/bash source env/bin/activate python main.py "$@" however, when run ./build on mingw terminal, following error reported: ./build: line 3: virtualenv: command not found ./build: line 5: env/bin/activate: no such file or directory what error mean? how prevent it? you need install virtualenv on machine. run file bash script saying go newly created virtual environment before running python script. more info can found on the official virtualenv docs.

ios - Animation does not origin from where I want it to? Why? -

i'm doing countdown clock game. want numbers animated come middle of screen , fade away in middle. when run code come right bottom of screen instead of specified (160,284). problem be? } else if (startgameeveryint == 3) { uiimageview *object = [[uiimageview alloc] initwithframe:cgrectmake(160,284,280 ,280)]; [object setimage:[uiimage imagenamed:@"1.png"]]; [self.view addsubview:object]; [uiview animatewithduration:1 animations:^{ object.alpha = 0; object.frame = cgrectmake(160, 284, 50, 50); } completion:^(bool finished){ startgameeveryint = 0; [startgametimer invalidate]; startgametimer = nil; [self startit]; (uiview *view in self.view.subviews) { if (view.tag > 10) { ...

css - how to stop other divs from animating using javascript? -

i having problem in stopping other divs animating. making square blinking divs everytime add other divs don't need animate , animate well. this code : javascript var fadeintime = 500; var fadeouttime = 1000; $(document).ready(function(){ setinterval(anim, 50); }); function anim(){ var rand = math.floor((math.random()*$("body").children("div").length)); var el = $("body").children("div")[rand]; $(el).animate({opacity: "0.7"}, fadeintime); $(el).animate({opacity: "0.1"}, fadeouttime); } html <div class="squares1"></div><div class="squares2"></div><div class="squares3"></div><div class="squares5"></div><div class="squares3"></div><div class="squares4"></div>... many squares want css body { background-color:#222; line-height:0; overflow:hidden; padding:0; margin:...