Error in QuickSort implementation
Vote count: 0 The code is linked here : http://ideone.com/eba7CBI can't seem to find the error. Any help and criticism are appreciated. ar = [] def quick(l, r): if (r-l) <= 1: retu pivot = ar[l] i = l+1 for j in range(l+1,r): if ar[j] < pivot: ar[i],ar[j] = ar[j],ar[i] i+=1 ar[i-1],ar[l] = ar[l],ar[...
How to add existing file to ZIP file using RubyZIP?
Vote count: 0 In my Rails 4.2 application I am using RubyZIP to create a controller action similar to the following: class SomeController < ApplicationController gem 'rubyzip' def some_action file_stream = Zip::ZipOutputStream.write_buffer do |zip| zip.put_next_entry "dir1/hello.txt" zip.print "Hell...
Dc.js ordinal bar chart gaps
Vote count: 0 My Bar chart has a gap where half the bar is between the x axis and y axis and I tried fixing this by putting blank data at the start and the end and this makes it so that the bars are not halfway on the axis, but there is still a unruly gap between the Y axis and the X axis. I would e...
Box shadow not showing on both sides
Vote count: 0 I use this css code for box shadow but I get only on the top and bottom Look like this div#blog-pager { border-radius: 2px; -webkit-box-shadow: 0 0 3px rgba(0,0,0,.35); -moz-box-shadow: 0 0 3px rgba(0,0,0,.35); box-shadow: 0 0 3px rgba(0,0,0,.35);} this css style don't have shadow styl...
Split table data from txt file in powerShell
Vote count: 0 I select data from sql table into txt file. It looks like : Apple 10 Orange 19 Pear 8 Now I want to loops throught this data and pass parameters like (name:"Apple", amount:"10") into my function. (Get-Content D:powerShellTest.txt) -split 's+' I've tried to split data by whitespaces, wh...
Visual Studio app begins compiling but never loads start page
Vote count: 0 Using Visual Studio 2013 I was making changes to the markup file of one of the pages in my web application while my application was compiling. I closed the browser and clicked play to recompile and reopen the application. The usual page name appears in my browser window: http://localho...
Express JS Dynamic Routing with Typescript
Vote count: 0 I want to migrate my routing logic from plain javascript to typescript. In javascript I would use below logic. How can I achieve the same the below in typescript to implement a route by implementing the IRoute interface.The idea is to use a class which handles routing. route.ts: var ex...
How can implant like method in ssis conditional split?
Vote count: 0 I'm begi er in ssis and want to check is a string have a number?for example my string is this:behzad12behi2548 i want use the conditional split for check that string ,how can i use the findstring function for that purpose?thanks all. asked 43 secs agobehzad razzaqi Let's block ads! (Wh...
exclude a record from a view - SQL SERVER 2012
Vote count: 0 I have three joined tables 'Student' , ‘StudentTransportOrder’ and 'Transport' in SQL server I have made a ‘StudentActivity’ view for this the 'Student' table each student record has a TransportOrderID however the table I have joined to has a 'VehicleID' this is recorded into the ‘Stud...
Listen to true/false arguments AS3
Vote count: 0 I am making a small project in AS3 (FlashDevelop) to catch a JSON file which contains the following: "properties" : [ { "statement1" : true }, { "statement2" : true }, { "statement3" : true }, { "statement4" : false }, { "statement5" : true }, { "statement6" : false } ], Within my AS3 ...
Travelling time of data through TCP/IP stack (Linux)
Vote count: 0 I want to know how much time occurs from the moment I call res.send("Hello,World") in my NodeJS application till the moment IP package leaves NIC card. Is there a way to do this? Why do I want to know that? I have a server on CentOS6 serving 400 req/s. My partner who generates the requ...
AuthScale Network selection
Vote count: 0 I'm implementing Autoscale using Softlayer Java Client. When adding a scale group, network option can be selected.(please refer to the attached png) How can I get the Network options in the select box ? Can you provide me samples or APIs ? asked 46 secs agoMike Oh Let's block ads! (Why...
Spam links in Google only visible to bots
Vote count: 0 We've been suffering from some very nasty black hat seo. In Google's index, our pages show exte al links to various pharmaceutical websites, but our actual live pages don't show them. It seems as though only certain user-agents see the malicious links. Setting up Screaming Frog SEO cra...
Writing a Numa load balancer
Vote count: 0 I have some applications that I start with the Windows START command. With the option /AFFINITY I force the processes on all cores of a Numa node. I want to include some load-balancing logic (so that e.g. the first application is started on node 0, the next on node 1, the next again on...
Does youtube data API live streaming support multi track audio?
Vote count: 0 Does YouTube data API supports multiple track audio streaming? I've a live streaming solution which can do broadcasting to YouTube. Was looking for adding multiple audio tracks. So I wanted to know if YouTube supports multiple audio tracks. I could not find any such details in YouTube ...