Posts

uiimageview - Why isn't the ImageView/background show in storyboard -

Image
i have added imageview background , added .png image actual image not show in storyboard when run shows. anyone know why case? see picture: i did solve , turned out name of .png caused problem. when changed "iphone5_frosty-568h@2x.png" shorter name worked.

linux - Changing OS destroying my game FPS (Java Slick 2D) -

recently changed hdd ssd , windows 7 linux ubuntu 14.4. i developping game (a pretty simple still nice , addictive one) on eclipse, using java language , slick 2d library. on windows game ran @ average 300 fps, correct , playable. had lags, wasn't bad. now had new linux, first thing did using apt-gest install eclipse, , imported project, linked jars , natives, and.. had enable fps show again notice running 30 fps, isn't playable @ all. can tell me wrong ?

python - urllib2.urlopen a local file, cross platform -

i'm trying open local file using urllib2 , have following code: r = urllib2.urlopen('file://' + some_path) while works on unix, not work on windows because of // . pythonic way have work cross-platform? use urllib.pathname2url : >>> import urllib >>> 'file:' + urllib.pathname2url(r'c:\path\to\something') 'file:///c:/path/to/something'

asp.net - What does sqllocaldb tracing do? -

the sqllocaldb command has trace option can set on or off, not clue tracing presumably controls, or trace output might found. does option anything? trace , trace output be?

javascript - Angular bootstrap modal toggle checked for data already present -

firstly apologize lengthy question cant post plunker because has services brings data backend. hence posted data can samples. i have angular js app uses bootstrap. have modal defined has following table: <div class="panel panel-default" style="float:left;width:525px;"> <div class="panel-body" data-spy="scroll" data-target="#navbar-example" data-offset="0" style="height:200px;overflow:auto;position:relative;"> <table class="table table-hover checkbox"> <tr> <th>course</th> <th>title</th> <th>credits</th> </tr> <tr ng-repeat="child in requirements"> {% verbatim %} <td class="vcenter"> <input type="checkbox" ng-checked="" ng-cli...

matlab - How to update data in a plot do create animations in octave -

i'm trying plot 2d array line line each time in loop pause command create animations. did in matlab , octave had plot command inside loop octave makes whole thing slower. saw somewhere can update data in plot, reason doesn't work. i'm doing wrong here? say x constant array d=(1*m) , y variable array d=(n*m). d -> dimensons h=plot(x,y(:,1),'-'); while true i=1:length(t) axis([0 l -a a]); hold on; set(h,'ydata',y(:,i)); pause(0.01) cla end end you shouldn't need hold on in code. following works fine in octave 3.8.1 fltk graphics toolkit: t = linspace (0, 2*pi, 100); y = sin (0.1*t); h = plot (t, y); f = 0.2:0.1:2*pi y = sin (f*t); set (h, 'ydata', y); endfor

c# - Rename classes using Visual Studio Project Template -

Image
i have created visual studio template using link: http://msdn.microsoft.com/en-us/library/ms185301.aspx . i able create dialog user enters custom message , gets displayed: namespace templateproject { class writemessage { static void main(string[] args) { console.writeline("$custommessage$"); } } } what want allow user rename class names want like: but see i'm getting errors of "unexpected character $" how can this? edit i see link: http://msdn.microsoft.com/en-us/library/eehb4faa(v=vs.110).aspx to enable parameter substitution in templates: in .vstemplate file of template, locate projectitem element corresponds item want enable parameter replacement. set replaceparameters attribute of projectitem element true. but above have not yet generated template yet still defining classes. understnad above step needs done in order parameter substitution enabled file-->new project scenario. ...