How can I make a partial plot with healpix?
◷
تاریخ انتشار: 1395/3/5 | ساعت: 11:59
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
◷
تاریخ انتشار: 1395/3/5 | ساعت: 9:32
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
◷
تاریخ انتشار: 1395/3/5 | ساعت: 9:32
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
◷
تاریخ انتشار: 1395/3/5 | ساعت: 9:32
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
◷
تاریخ انتشار: 1395/3/5 | ساعت: 3:42
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 send a POST request from JQuery to Flask and decode it successfully?
◷
تاریخ انتشار: 1395/3/5 | ساعت: 3:42
Vote count: 0 I am working on a project of a small web-app using JQuery and Flask. I have some trouble in sending data from JQuery to Flask.A snippet of code on the server side: @app.route('/_receive_data', methods=['GET', 'POST']) def _receive_data(): if request.method == 'POST': result = request.j...
How to detect duplicate keys during map construction from JSON in clojure
◷
تاریخ انتشار: 1395/3/5 | ساعت: 3:42
Vote count: 0 I am using http://clojure.github.io/data.json/ read-str to read swagger (https://openapis.org/specification) documents for semantic validation. One of the things to validate is no duplicate paths. For example: /foo/{bar}/baz is a duplicate of: /foo/{dup}/baz However, if the swagger fil...
How to go about creating mobile nav with subnav for a Wordpress website
◷
تاریخ انتشار: 1395/3/5 | ساعت: 2:07
Vote count: 0 I'm attempting to add subnavigation to a mobile nav bar for a Wordpress site. The top level mobile nav bar is styled correctly and works great! But now I want to make it so that when you click on the links in the nav, the appropriate submenu displays beneath it (currently the mobile na...
How to descend NSOpenGLView in Delphi?
◷
تاریخ انتشار: 1395/3/5 | ساعت: 2:07
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
◷
تاریخ انتشار: 1395/3/5 | ساعت: 2:07
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
◷
تاریخ انتشار: 1395/3/5 | ساعت: 1:01
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
◷
تاریخ انتشار: 1395/3/5 | ساعت: 1:01
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?
◷
تاریخ انتشار: 1395/3/5 | ساعت: 1:01
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
◷
تاریخ انتشار: 1395/3/5 | ساعت: 0:00
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
◷
تاریخ انتشار: 1395/3/5 | ساعت: 0:00
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
◷
تاریخ انتشار: 1395/3/5 | ساعت: 0:00
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
◷
تاریخ انتشار: 1395/3/4 | ساعت: 21:09
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...
NamedQuery on a Many to Many relation with a relational table in between
◷
تاریخ انتشار: 1395/3/4 | ساعت: 21:09
Vote count: 0 I have two tables that have a relation ManyToMany and I need to do a query to do some calculations. I have the extra handicap that I have an abstract class Price that I extend from to create the concrete prices (physical presents, money presents, etc) My problem is that the table COUPO...
pascal to c++: trunc
◷
تاریخ انتشار: 1395/3/4 | ساعت: 21:09
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
◷
تاریخ انتشار: 1395/3/4 | ساعت: 19:30
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 ...