How can I make a partial plot with healpix?
Vote count: 0 I want to zoom in a particular region of the sky, and plot a map of only that region (e.g., the cold spot). How can I do this with healpix? I could not find options with mollview...etc. asked 1 min agoY. Ohnis Let's block ads! (Why?)
Python3 Selenium Load Offline Files
Vote count: 0 So I have an rpi that will be used to display a webpage on a monitor, and I'm using python3 selenium to do it. I want it to be able to download the webpage offline so that if something happens to its co ection, it still functions. I have downloaded the webpage, and it works if I manual...
automate actions with cron and the new api odoo
Vote count: 0 I want to automate an action and here is the code that I'm using: <?xml version="1.0" encoding="utf-8"?> <openerp> <data noupdate="1"> <record id="ir_cron_scheduler_demo_action" model="ir.cron"> <field name="name">Demo scheduler</field> <field name="user_id" ref="base.user_root"/> <fie...
Google Analytics on phonegap app
Vote count: 0 We are pla ing to use Google Analytics for tracking in our phonegap based hybrid app. We are using Single Page Architecture based on backbone. It is an existing app and we are pla ing to add tracking code now. I know that there are couple of ways to implement it - 1) use the phone gap ...
Calculate price and quantity using jquery or javascript
Vote count: -1 How to calculate price and quantity. I don't want to remove currency type. The price is php generated so i just want to show a calculated price when update quantity using jquery or javascript. Thank you. Here is working demo : $('input[name='quantity']').on('change keyup click', funct...
How to descend NSOpenGLView in Delphi?
Vote count: 0 I'd like to create an OpenGL application for Mac OSX in Delphi, without using FireMonkey. I know at least that a Cocoa application without FireMonkey is possible thanks to this answer Delphi XE2: Is it possible to create Mac GUI applications without FireMonkey? From what I've read of t...
How to change RSA (512bit to 1024bit) encryption in JAVA
Vote count: 0 I found this source code for RSA encryption/decryption but i face a problem when i try to change 512 bit to 1024 bit. Can anyone help me which code i have to change to make sure it will run on 1024 bit. Please hep me.. tq public class RSA2 { private Cipher cipher; // RSA keys will be g...
What is this lambda expression with Unity Resolver doing
Vote count: 1 Looking through someone else's code I found this line of code: protected IDirectIp Iridium => _resolver.Resolve<IDirectIp>(); I was confused seeing a lambda (=>) instead of an equal sign (=). The dependency injection library is Unity, is this syntax specific to Unity? Could anyone expl...
Decode hex-like string
Vote count: 0 In my work I have a database with a column that have a really long hex-like information. I say hex-like because I tried using hex to ASCII conversion but it failed. This string should have lot's of information concatenated into one single column but I can't access because the software ...
What is a kv_pair?
Vote count: 0 I am currently trying to work on a function to get the mode of a set of integers, using a hash map. I was given the following to start with: int GetMode(const vector<int>& input) { // assumes the range is [0-10] unordered_map<int, int> counts; for (int value : input) { ++counts[value];...
Creating index in SQL Server with ONLINE = ON if supported
Vote count: 0 I'm creating an index in a SQL Server table with ONLINE = ON option: CREATE INDEX IX_Name ON Users (Name) WITH ONLINE = ON If this script is run on non-Enterprise SQL Server edition I get this error: Online index operations can only be performed in Enterprise edition of SQL Server. How...
cURL/telnet on VirtualBox connection refused
Vote count: 0 I'm trying to send a cURL request to a Windows 7 VM on my Ubuntu machine and getting "Co ection refused" on all ports I try to curl, and I can't telnet, either. Host: Ubuntu 15.10 x64, 8GB RAM Guest: Windows 7, IE 11, 1GB RAM(from here https://developer.microsoft.com/en-us/microsoft-ed...
Fine tune .NET ServicePoint for many concurrent requests
Vote count: 0 Disclaimer: I am trying to get a feeling of real world numbers from peoples first hand experience. No implementation details / code is needed at this point. We have web api that will use queues / message brokers to drop messages to and then in tu , windows services will read queues for...
Button with url
Vote count: 0 I wa a switch this code: <a href="selectare_gen.php" target="continut">Inapoi</a> With a button. I want a button who redirect to ”selectare_gen.php” I tried: <button onclick="location.href='selectare_gen.php'">Inapoi</button> But all it does is refreshing the current page.. asked 1 min...
pascal to c++: trunc
Vote count: 0 I have old pascal code var i : longint; m : double; begin ..... i := trunc(m); I have to convert it to C++ code. An obvious thing here is to write double m; int i; ..... i = static_cast<int>(std::trunc(m)); But the problem here is than pascal's trunc retu s integer function trunc( d: V...
Styling raster and vector layers using remote sld in mapserver
Vote count: 0 I have a mapfile and a remote sld that I want to use to style my vector layer. But each time I put a request the map is retu ed without a style.My mapfile is as follows: MAP NAME "MAPSERVER QUICKSTART" EXTENT -137 29 -53 88 UNITS DD SHAPEPATH "/data/world" SIZE 800 600 IMAGETYPE PNG24 ...