Posts

jquery - Object Doesn't Support This Property or Method. IE8 -

when try running website, ie8 prompts me error: 'object doesn't support property or method. the object according ie8 debugger callback: shard.lefttop(); the first report in callstack(which hope helpful inform) line: c.readystate==="complete" && (c.detachment("onreadystatechange", b),e.ready()). i'm unsure should looking in code error... totally overwhelmed. *edit getting closer source of error: ok guys debugger telling me problem starting straight before call of shard.lefttop(); so, i'll try explain bit. how works in chrome. index.html holds document dot ready function, setting: var shard = new shards( $('div.shard') ); corresponding function in .js file within same directory index.html: function shards( container ){ further down index page calls prototype function expression shard.lefttop(); which looks this: shards.prototype.lefttop = function(){ and stored within .js file , dir. the pr...

scilab - Completing a list of possible binary sequences give a binary sequence with gaps -

so, working on program in scilab solves binary puzzle. have come across problem however. can explain me logic behind solving binary sequence gaps (like [1 0 -1 0 -1 1 -1] -1 means empty cell. want possible solutions of given sequence. far have: function p = mogelijkecombos(v) i=1:size(v,1) if(v(i) == -1) aantalleeg = aantalleeg +1 end end i=1:2^aantalleeg //creating combos here end endfunction sorry words in dutch aantalleeg means amountempty mean amount of empty cells hope gave guys enough info. don't need code written, i'd ideas of how can make every possible rendition stuck atm. btw school assignment, assignment way bigger , it's tiny part need ideas on ty in advance short answer you create combos extending code , create possible binary words of length "amountempty" , replacing them bit-for-bit in empty cells of v. step-by-step description find empty cell positions count number of positions you've found (whi...

.htaccess - Modrewrite url on index.php -

i created zend framework application , modrewrite worked when did: index.php/dashboard instance, accessing dashboard module. with being said, i'm working on new project (not zend framework) requires url of: http://server/username . i'm on impression need http://server/index.php/username being working method prior zend framework project. i have tried several htaccess solutions, , none have worked. go 404. here i've tried: rewriterule /([a-za-z]+)$ profile.php?name=$1 rewriterule ^/([^/\.]+)$ /profile.php?name=$1 [l] rewriterule ^/index.php/([^/\.]+)$ /profile.php?name=$1 [l] rewriterule ^.*$ - [nc,l] rewriterule ^.*$ index.php [nc,l] nothing seems working. can help? edit = believe problem apache server. of these rewrite rules should work. i've looked @ httpd.conf , virtual host configurations. insight?

python - Calculating Covariance in Pandas Time Series -

apologies in advance if documented somewhere , failed find it: let's have time series data frame looks this: week_end_date title_short sales 2012-02-25 00:00:00.000000 "bob" (ebk) 1 2012-03-31 00:00:00.000000 "bob" (ebk) 1 2012-03-03 00:00:00.000000 "sally" (ebk) 1 2012-03-10 00:00:00.000000 "sally" (ebk) 1 2012-03-17 00:00:00.000000 "sally" (ebk) 1 2012-04-07 00:00:00.000000 "sally" (ebk) 1 i want calculate covariance in sales in order find users tend move together. know pandas has covariance feature: http://pandas.pydata.org/pandas-docs/stable/computation.html#covariance , i'm not sure how reshape data kind of purpose. am correct in thinking users need set column index, each series vector across time series? have no idea how that. you looking pandas pivot . first do: df.pivot(index='week_end_date', columns...

unit testing - How do I add/modify the bundle loader setting in xCode 4.6.2? -

Image
i'm new ios development , i'm running bit of problem. i've inherited app that's 70% complete, there's no tests. want add unit testing target xcode project (v4.6.2) , integrate runs when press cmd-u. i have added new unit testing target. next instruction says modify "bundle loader" setting under "build settings" -> "linker". problem "bundle loader" setting blank , clicking in row not show +/- buttons add setting. how modify bundle loader setting set newly created test target run cmd-u? the unit test target created new projects application unit test. injects test code app setting bundle_loader , test_host in build settings. can create new unit test target , default logic unit test (bundle_loader , test_host not set). if want application unite test should set bundle_loader , test_host to: bundle_loader = $(built_products_dir)/dc wire sizer.app/dc wire sizer test_host = $(bundle_loader) you need change ...

jsf - OverlayPanel inside a Datatable -

Image
i need have overlay panel in each row of datatable changing record on fly. can see below: i don't know why when press save button calls 2 times setter of attribute(str) store new age. first time sets new value, in second set returns null value. 22:32:34,502 info [stdout] (http-localhost-127.0.0.1-8080-3) 31 22:32:34,502 info [stdout] (http-localhost-127.0.0.1-8080-3) here's code: <p:datatable value="#{backbean.l}" var="l" style="width: 300px;"> <p:column> <h:outputtext value="#{l.id}" /> </p:column> <p:column> <h:outputtext value="#{l.nome}" /> </p:column> <p:column> <h:outputtext value="#{l.age}" /> </p:column> <p:column> <p:graphicimage value="/img/icone.png" id="newage...

Using the Ruby Shoes GUI toolkit, how would I go about being able to edit my GUI in different areas of code -

i'm writing horse race/bet game using shoes , wondering how able change gui in different areas of code. when run this, horse on 1 application , race line on application, want them both on same application. need set actual shoes app variable itself? class horse def initialize() #puts "yoyoyoyo" #@number=i shoes.app{ @icon= image 'horsey.jpg' @icon.left = 100 @icon.top = 50 } end def neigh() #puts "neighhhh" end def racetime() time=rand(100)%20 return time+10 end end class horseicon def initialize(h) @horse= h @imageloc='horsey.jpg' end end class game def initialize(h1, h2) contestants=[h1, h2] shoes.app{ @icon= image 'raceline.jpg' @icon.left = 100 @icon.top = 70 } end def race() end end game= game.new(1,2) seabiscuit= horse.new() you using 2 separate shoes.app classes. think that's problem. judging code...