text stringlengths 454 608k | url stringlengths 17 896 | dump stringclasses 91
values | source stringclasses 1
value | word_count int64 101 114k | flesch_reading_ease float64 50 104 |
|---|---|---|---|---|---|
🌈 Terminal string styling
Project description
clr is a simple terminal string styling library. Its API is a port of the popular chalk module for javascript.
Install
$ pip install clr
Usage
import clr print(clr.red.bold('Hello world!'))
API
clr.style*[.style](*objects, sep=' ')
Chain styles and call the last one as a m... | https://pypi.org/project/clr/ | CC-MAIN-2018-39 | refinedweb | 121 | 67.86 |
Created on 2010-12-05.10:09:13 by otmarhumbel, last changed 2010-12-24.01:37:07 by pjenvey.
[submitted on behalf of Christian Blichmann]
Calling methods from an embedded Jython script does nothing when
using JSR-223 and Jython 2.5.2rc2, while Jython 2.2.1 just works fine.
- ------------- myscript/ScriptingTest.java ---... | http://bugs.jython.org/issue1681 | CC-MAIN-2014-35 | refinedweb | 429 | 60.82 |
, dene some
terms, give some examples, and then point to the Report for details. We suggest, however, that the
reader completely ignore the details until the Gentle Introduction has been completely read. On the
1
2
2 VALUES, TYPES, AND OTHER GOODIESened \x2.1" refer to sections in
the Report).]
Haskell is a typeful pro... | https://pt.scribd.com/doc/67153439/haskell-98-tutorial | CC-MAIN-2017-09 | refinedweb | 16,058 | 58.92 |
So you have build a great web application using laravel. Now you wan to create a Dynamic XML Sitemap for better SEO, which is great. Google says that Using a sitemap doesn't guarantee that all the items in our sitemap will be crawled and indexed, as Google processes rely on complex algorithms to schedule crawling. Howe... | https://kaloraat.com/articles/create-a-dynamic-xml-sitemap-in-laravel | CC-MAIN-2020-05 | refinedweb | 1,265 | 56.66 |
This is something I've been playing with over the last few days. When I wrote my blog engine, I wasn't crazy about database optimization yet [1]. I had a look recently at the queries generated to render the home page and I noticed that I had a too many extra queries for each articles.
The Problem
Tagging
In the same wa... | http://bruno.im/2010/jun/27/django-signals-consistent-caching/ | CC-MAIN-2019-18 | refinedweb | 605 | 56.86 |
Data Science interview questions and answers for 2021 on topics ranging from probability, statistics, data science – to help crack data science job interviews.
Hone yourself to be the ideal candidate at your next data scientist job interview with these frequently asked data science interview questions. Data Scientist i... | https://www.projectpro.io/article/100-data-science-interview-questions-and-answers-for-2021/184 | CC-MAIN-2022-40 | refinedweb | 4,978 | 53.92 |
Background
One of the biggest pieces of feedback we received from the N-Tier Improvements for Entity Framework post as well as other sources was: “low level APIs are great, but where is the end-to-end architecture for N-tier and the Entity Framework?”. This post outlines some of the additional feedback we’ve received a... | https://blogs.msdn.microsoft.com/efdesign/2009/03/23/self-tracking-entities-in-the-entity-framework/ | CC-MAIN-2016-36 | refinedweb | 6,884 | 59.43 |
Last will be entered using the rules on timing outlined in “What is Morse Code?“
- An acceptable tolerance will be built in to timing, since it’s difficult to keep an exact rhythm.
- Blink a blue LED continuously, to the rhythm of the “base time”, to help with timing.
- Interpret dots and dashes using International Mor... | https://grantwinney.com/generating-morse-code-on-the-raspberry-pi-using-a-button-on-a-breadboard/ | CC-MAIN-2019-18 | refinedweb | 1,430 | 65.42 |
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2006-05-04 20:44:00
Hello,
I am using boost-build v2 to build my own code, and as a side bonus I can
refer to boost libs from my jamfiles, and they get built and linked
automatically.
But I have to admit I am very confused about projects. Can someone help me
unde... | https://lists.boost.org/boost-build/2006/05/13739.php | CC-MAIN-2019-47 | refinedweb | 370 | 67.35 |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.11) Gecko/20071222 Remi/2.0.0.11-1 Firefox/2.0.0.11
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.11) Gecko/20071222 Remi/2.0.0.11-1 Firefox/2.0.0.11
Javascript event handlers registered with addEventListener are not disabled when either ... | https://bugzilla.mozilla.org/show_bug.cgi?id=409737 | CC-MAIN-2017-04 | refinedweb | 1,314 | 67.04 |
Marble/Runners/Search
< Marble(Redirected from Projects/Marble/Runners/Search)
Search
Searching for cities, addresses, points of interest
Marble uses so-called runners to calculate routes, do reverse geocoding, parse files and search for placemarks (cities, addresses, points of interest, ...). This tutorial shows how t... | https://techbase.kde.org/Projects/Marble/Runners/Search | CC-MAIN-2019-35 | refinedweb | 287 | 55.3 |
l
bzr branch lp:pyopengl-demo
then add the pyopengl/OpenGL directory to your PYTHONPATH. You can also
download the source distributions from:L
easy_install PyOpenGL-Demo
You can then run the scripts in the PyOpenGL-Demo package..
Enjoy yourselves,
Mike
--
________________________________________________
Mike C. Fletche... | https://sourceforge.net/p/pyopengl/mailman/pyopengl-users/?viewmonth=200904&viewday=1 | CC-MAIN-2017-13 | refinedweb | 317 | 53.37 |
DSA_SIGN(3) OpenSSL DSA_SIGN(3)
DSA_sign, DSA_sign_setup, DSA_verify - DSA signatures
#include <openssl/dsa.h> int DSA_sign(int type, const unsigned char *dgst, int len, unsigned char *sigret, unsigned int *siglen, DSA *dsa); int DSA_sign_setup(DSA *dsa, BN_CTX *ctx, BIGNUM **kinvp, BIGNUM **rp); int DSA_verify(int typ... | http://mirbsd.mirsolutions.de/htman/i386/man3/DSA_sign.htm | crawl-003 | refinedweb | 303 | 65.83 |
#include <wx/bmpbuttn.h>
A bitmap button is a control that contains a bitmap.
Notice that since wxWidgets 2.9.1 bitmap display is supported by the base wxButton class itself and the only tiny advantage of using this class is that it allows specifying the bitmap in its constructor, unlike wxButton. Please see the base c... | https://docs.wxwidgets.org/trunk/classwx_bitmap_button.html | CC-MAIN-2019-47 | refinedweb | 202 | 55.13 |
52 total views, 1 views today
Welcome to Scala series. In this tutorial, you will learn about Scala Curried or currying functions in detail.
Usually a method or a function can have N number of arguments.
Example
def add(a: Int, b: Int): Int = { a + b } add(1,3) Result : 4
The above function/method has two arguments a a... | https://www.staticreference.com/scala-curried-or-currying-functions/ | CC-MAIN-2019-43 | refinedweb | 197 | 68.4 |
Vue Timeago: timeago component for Vue.js
vue-timeago
Time to check out a simple and small component for, you guessed it, time. Use the timeago component in Vue.js projects, to monitor elapsed time since a certain date, with i18n support. For all supported languages, see /locales, it's easy to add a new language suppor... | https://vuejsfeed.com/blog/vue-timeago-timeago-component-for-vue-js | CC-MAIN-2019-35 | refinedweb | 294 | 66.84 |
Issue
This is a long one, so let me explain. I’m trying to write a discord bot in python using oauth2 in flask. Here is what I am trying to achieve in pseudocode: 1: user sends command in channel, 2: the bot then sends an embed with a link to the user that contains the oauth2 authorization, 3: the user clicks on the oa... | https://errorsfixing.com/how-to-know-when-flask-has-received-data/ | CC-MAIN-2022-33 | refinedweb | 532 | 50.53 |
Individual Tax Accounting – 2011 edition Chapter 4 Homework Solutions 14. Tom must include in his gross income his share of the partnership’s income, regardless of whether the profits are actually distributed. Therefore, Tom must recognize as gross income from the partnership $120,000 ($300,000 × 40%) in 2010 and $320,... | https://www.coursehero.com/file/6059177/chpt-4-HW-solutions/ | CC-MAIN-2017-30 | refinedweb | 211 | 52.39 |
------------------------------------------------------------------------------ -- | -- Module : Control.Concurrent.Chan.Split.Implementation -- Copyright : (c) 2012 Leon P Smith -- License : MIT -- -- Maintainer : leon@melding-monads.com -- ------------------------------------------------------------------------------ ... | http://hackage.haskell.org/package/split-channel-0.1.1.0/docs/src/Control-Concurrent-Chan-Split-Implementation.html | CC-MAIN-2015-48 | refinedweb | 316 | 55.74 |
The name of a class or namespace member or enumerator can be referred to after the :: scope resolution operator ([expr.prim]) applied to a nested-name-specifier that denotes its class, namespace, or enumer. [ Example:
class A { public: static int n; }; int main() { int A; A::n = 42; // OK A b; // ill-formed: A does not... | https://timsong-cpp.github.io/cppwp/n4659/basic.lookup.qual | CC-MAIN-2021-17 | refinedweb | 528 | 50.36 |
HANA Daily Monitoring Template
The below blog intend to help HANA admin to have a sample template that they can use for monitoring there HANA environment on pro-active basis.
you all are invited to add you comments if you feel we should include some more steps in the template . Its intention is monitoring not resolutio... | https://blogs.sap.com/2014/04/05/hana-daily-monitoring-template/ | CC-MAIN-2022-05 | refinedweb | 1,268 | 64.1 |
>
i'm making an firefighter game where the goal is to extinguish all the fires in a building. i have managed to be able to shoot water walk and stuff. buy how do i make it that i need to shoot the particle(which i attach to an invisible cube) for 3 seconds it deletes and the fire stops.
thanks
I think what you are desc... | https://answers.unity.com/questions/261438/extinguish-fire.html | CC-MAIN-2019-22 | refinedweb | 615 | 72.05 |
One of the most significant code smells is having duplicate code. There are primarily 2 forms of code duplications
- Explicit – These are the ones where there is blatant copy paste of the code. Methods are repeated within classes and it is easy for the CPD tool of PMD to figure out that lines are copied thus leaving us... | https://blog.knoldus.com/duplicate-code-introduce-null-object/?shared=email&msg=fail | CC-MAIN-2019-43 | refinedweb | 1,021 | 53.81 |
TI Home
»
TI E2E Community
»
Support Forums
»
ARM® Processors
»
Sitara™ Processors
»
Sitara Processors Forum
»
PRU debugging on Linux - pView whereabouts?
Hi,I'm developing a high-speed PRU stepper generator native on Linux.I notice the PASM manual refers to a debugging tool called 'pView' - is that available?A minimal... | http://e2e.ti.com/support/arm/sitara_arm/f/791/p/229812/937205.aspx | CC-MAIN-2014-42 | refinedweb | 1,501 | 67.55 |
#include <deal.II/grid/tria_accessor.h>
This class is a specialization of
TriaAccessor<structdim, dim, spacedim> for the case that
structdim is zero and
dim is one. This class represents vertices in a one-dimensional triangulation that is embedded in a space of dimensionality
spacedim (for
spacedim==dim==1 the triangul... | https://dealii.org/developer/doxygen/deal.II/classTriaAccessor_3_010_00_011_00_01spacedim_01_4.html | CC-MAIN-2021-10 | refinedweb | 1,155 | 51.34 |
We all love SQL right? No? Well sometimes a good SQL query is the best approach but most of the time it's the same CRUD operations that you need to carry out, Create, Read, Update, Delete, on each new entity. With an ORM, an Object Relational Mapper, you are able to define what the structure in your database should loo... | https://dev.to/dotnet/how-you-can-use-an-orm-in-net-core-and-c-to-type-less-sql-starring-entity-framework-49ka | CC-MAIN-2020-29 | refinedweb | 3,733 | 64.61 |
Implementing React Native Responsive Design Part 1 : Limiting and Scaling
Phones and tablets come in all shapes and sizes. Now that Mac, Windows and tvOS support is in the works, the variation in screen geometries will only grow even more varied. On the web we have media queries and responsive layouts via Cascading Sty... | https://bendyworks.com/blog/implementing-react-native-responsive-design-part-1/index | CC-MAIN-2021-31 | refinedweb | 1,101 | 64.71 |
Important: Please read the Qt Code of Conduct -
The MouseEvent of Qlabel doesn't work, after an advanced click on the label.
I' m using PyQt5 and QtDesigner on Ubuntu platform to develop an application and confronted with a problem on Qlabel.MouseEvent. To illustrate the problem, I make a simple UI example ( Fig. 1) in... | https://forum.qt.io/topic/133183/the-mouseevent-of-qlabel-doesn-t-work-after-an-advanced-click-on-the-label | CC-MAIN-2022-05 | refinedweb | 406 | 50.12 |
Am 17.10.2010 19:51, schrieb TomF: > On 2010-10-17 10:21:36 -0700, Paul Kölle said: >> Am 17.10.2010 13:48, schrieb Steven D'Aprano: >>> On Sun, 17 Oct 2010 03:58:21 -0700, Yingjie Lan wrote: >>> >>>> Hi, >>>> >>>> I played with an example related to namespaces/scoping. The result is a >>>> little confusing: >>> >>> [s... | https://mail.python.org/pipermail/python-list/2010-October/589966.html | CC-MAIN-2016-44 | refinedweb | 306 | 72.66 |
Fast GeoSpatial Analysis in Python
This work is supported by Anaconda Inc., the Data Driven Discovery Initiative from the Moore Foundation, and NASA SBIR NNX16CG43P
This work is a collaboration with Joris Van den Bossche. This blogpost builds on Joris’s EuroSciPy talk (slides) on the same topic. You can also see Joris’... | https://matthewrocklin.com/blog/work/2017/09/21/accelerating-geopandas-1 | CC-MAIN-2021-39 | refinedweb | 1,334 | 55.44 |
Flashlight (Xamarin.Essentials API of the Week)
This week, James is joined by friend of the show Dean Faizel, Microsoft Mobile Customer Advisory Team Engineer, who talks us through the best practices of using async and await in mobile development.
Show Links:
Useful Links:
Just trying to see what's out there.
Good stuf... | https://channel9.msdn.com/Shows/XamarinShow/Best-Practices-Async--Await--The-Xamarin-Show | CC-MAIN-2021-21 | refinedweb | 168 | 66.44 |
digitalmars.D - Re: Scientific computing with D
- Brian Palmer <d brian.codekitchen.net> Jan 31 2009
Walter Bright Wrote:Bill Baxter wrote:Having to recompile and rerun after every one of those changes just isn't quite as direct.
If it can be done in under half a second, isn't that direct enough? Of course, I'm talking... | http://www.digitalmars.com/d/archives/digitalmars/D/Re_Scientific_computing_with_D_83132.html | CC-MAIN-2016-44 | refinedweb | 176 | 64.81 |
I have many contact form in my site. I configured the form to clear on submission.
When user submitted the form it clears the form as expected but its show an message "The changes were saved." is there a way to change this to some other text site wide are configurable in form.
I know there is an option to "Display text... | https://devnet.kentico.com/questions/change-biz-for-default-submission-message | CC-MAIN-2018-30 | refinedweb | 296 | 71.95 |
What Happens When IPv4 Address Space Is Gone
timothy posted more than 4 years ago | from the stars-wink-out-one-by-one dept.
(4, Funny)
Nerdfest (867930) | more than 4 years ago | (#31968778)
Re:The Internet is Full (0)
Anonymous Coward | more than 4 years ago | (#31968816)
I'll sell you my IP address for $25
Re:The In... | http://beta.slashdot.org/story/134696 | CC-MAIN-2014-42 | refinedweb | 3,428 | 79.7 |
Is there a good way to get the date of the coming Wednesday?
That is, if today is Tuesday, I want to get the date of Wednesday in this week; if today is Wednesday, I want to get the date of next Wednesday; if today is Thursday, I want to get the date of Wednesday in the following week.
Thanks.
The basic algorithm is th... | https://codedump.io/share/qE6OizD2JpwV/1/is-there-a-good-way-to-get-the-date-of-the-coming-wednesday | CC-MAIN-2018-09 | refinedweb | 160 | 58.79 |
Details
- Type:
Sub-task
- Status: Closed
- Priority:
Critical
- Resolution: Fixed
- Affects Version/s: 2.7.1
- Fix Version/s: 2.8.0, 2.7.2, 2.6.4, 3.0.0-alpha1
- Component/s: resourcemanager
- Labels:None
Description
Cases that can cause this.
- Capacity scheduler xml is wrongly configured during switch
- Refresh ACL ... | https://issues.apache.org/jira/browse/YARN-3893 | CC-MAIN-2017-43 | refinedweb | 4,521 | 58.58 |
Ext.Direct and ColdFusion 9.0.1
Ext.Direct and ColdFusion 9.0.1
EDIT: This problem has been fixed with CF 9.0.1 hotfix 1. Installing it should solve the problem.
Original post:
Due to the ridiculous decision by Adobe to change ColdFusion's serializeJSON() function to serialize all data as strings in 9.0.1 (instead of n... | https://www.sencha.com/forum/showthread.php?108022-Ext.Direct-and-ColdFusion-9.0.1 | CC-MAIN-2015-18 | refinedweb | 1,006 | 68.06 |
Slashdot Log In
PHP5: Could PHP Soon Be Owned by Sun?
At first glance, the obvious changes to PHP are a result of the success of the Java platform and the weaknesses of PHP revealed in comparison. With the release of PHP 5, it's apparent that the developers of PHP and the Zend Engine (essentially a single group) felt c... | http://developers.slashdot.org/developers/04/08/05/1915255.shtml | crawl-001 | refinedweb | 2,152 | 62.48 |
Attribute Routing in ASP.NET MVC
Introduction:
Attribute Routing is an
important feature of MVC web applications. Routing enables the use of URL that
are described by user action and more understood by users. We can hide
information which is not shown to final users in a URL bar.
Routing is how my application matches a... | https://www.mindstick.com/Beginner/11998/attribute-routing-in-asp-dot-net-mvc | CC-MAIN-2017-34 | refinedweb | 700 | 66.74 |
Advanced Namespace Tools blog
17 December 2017
Updating ANTS via diff/patch scripts
I had another longer than intended break from ANTS/plan 9 development, so that means another round of updating systems and updating ANTS to build, install, and work with latest 9front. I had already put a bit of effort into making this ... | http://doc.9gridchan.org/blog/171217.update.patch | CC-MAIN-2021-21 | refinedweb | 929 | 57.91 |
During Build 2015 Microsoft announced a bunch of new tools aimed at helping developers build cross platform applications. Amongst the announcements, they let us know that ASP.NET was now available and ready to run on Mac and Linux natively.
Up until this point there has been a few different ways to get .NET application... | https://www.twilio.com/blog/2015/08/getting-started-with-asp-net-5-and-visual-studio-code-on-a-mac.html | CC-MAIN-2020-45 | refinedweb | 1,746 | 65.83 |
Sylvain Wallez wrote:
> Tim Larson wrote:
>
>> On Sun, Nov 07, 2004 at 09:29:56PM +0100, Sylvain Wallez wrote:
>>
>>> Tim Larson wrote:
>>>
>>>> On Fri, Nov 05, 2004 at 09:58:43PM +0100, Sylvain Wallez wrote:
>>>>
<snip />
>>> So, why do we need *both* versions? Isn't it FS? Can you give some
>>> examples that justify ... | http://mail-archives.apache.org/mod_mbox/cocoon-dev/200411.mbox/%3C41935E51.7060508@outerthought.org%3E | CC-MAIN-2016-30 | refinedweb | 1,481 | 57 |
Kaufen Sie die neuesten Raspberry Pi Boards, den Raspberry Pi 4 und vieles mehr. Jahrelange Erfahrung und bester Kundenservice zeichnen Ihr Kauferlebnis bei Berrybase aus Super Angebote für Raspi 4 1 hier im Preisvergleich. Große Auswahl an Raspi 4 1
.py module, I was sure it was embedded into the adafruit_blinka libra... | https://pazientesosem.com/automatische-bewaesserung-raspberry-pi/y5z1s410uddyfg | CC-MAIN-2022-05 | refinedweb | 3,135 | 63.09 |
Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
WebSphere Security on the Distributed Platforms 335 You can also add a console group to give specific administrative role(s) to a group of users. To do this from the Administrative Console: 1. 2. 3. 4. 5... | http://my.safaribooksonline.com/book/web-development/websphere/0131855875/websphere-security-on-the-distributed-platforms/ch13lev1sec6?reader= | CC-MAIN-2013-20 | refinedweb | 210 | 58.69 |
Hi Adel, I've got your Solaris fixes and my (minor) changes up on
Advertising
I'd like Andrew to take a look (he's back tomorrow), unless he has anything to add I'll commit them. Cheers, Alan. On Mon, 2016-10-17 at 20:03 +0000, Adel Boutros wrote: > Hello Alan, > > No, it isn't a necessary fix (change from T*). > > How... | https://www.mail-archive.com/dev@qpid.apache.org/msg55811.html | CC-MAIN-2016-44 | refinedweb | 368 | 55.74 |
?
I took a look at the laser. It is probably the LD TEC (DTEC) failure.
As the temperature of the LD (DTMP) gradually deviated from 25degCish,
the DTEC voltage also went up from 2Vish to 2.1, 2.2...
When DTEC reaches 3V, it stopped lasing. This cools the diode a bit, and
it start lasing but repeat the above process.
I ... | http://nodus.ligo.caltech.edu:8080/40m/?id=8259 | CC-MAIN-2022-21 | refinedweb | 4,146 | 80.01 |
{-# LANGUAGE CPP #-} #if defined(__GLASGOW_HASKELL__) && (__GLASGOW_HASKELL__ >= 702) {-# LANGUAGE Trustworthy #-} #endif {-# LANGUAGE DeriveDataTypeable #-} module Data.IterIO.Inum (-- * Base types Inum, Onum -- * Concatenation and fusing operators , (|$), (.|$), cat, lcat, (|.), (.|) -- * Exception functions , inumCa... | http://hackage.haskell.org/package/iterIO-0.2.2/docs/src/Data-IterIO-Inum.html | CC-MAIN-2014-35 | refinedweb | 2,083 | 65.76 |
A Developer's Notebook
Download source code from ProjectDistributor.net
Figure 1. Sample form with custom drawn border.
I have split the code into two primary classes. First one, FormWithNonClientArea, extends the standard Form class by adding support for non-client area messages (more on this shortly) and can be uses ... | http://geekswithblogs.net/kobush/articles/CustomBorderForms.aspx | CC-MAIN-2015-18 | refinedweb | 2,122 | 57.57 |
> GMapViewer-src.zip > ResourcePool.java
package org.sreid.j2me.util; /** * Manages shared resources, making sure that each resource is never used by * more than one client at any given time. */ public class ResourcePool { private final Resource[] pool; private boolean traceEnabled = false; /** * Constructs a Resource... | http://read.pudn.com/downloads126/sourcecode/java/533249/org/sreid/j2me/util/ResourcePool.java__.htm | crawl-002 | refinedweb | 426 | 53.07 |
Debugging ASP.NET AJAX Applications
Dan Wahlin
The ability to debug code is a skill that every developer should have in their arsenal regardless of the technology they're using. It goes without saying that understanding the different debugging options that are available can save a tremendous amount of time on a project... | http://www.asp.net/web-forms/tutorials/aspnet-ajax/understanding-asp-net-ajax-debugging-capabilities | CC-MAIN-2014-15 | refinedweb | 5,634 | 55.64 |
Bug #13270
IRB hangs when printing "\e]"
Description
Steps to reproduce:
irb
print "\e]"
- Or:
puts "\e["
- try CMD+C, nothing happens
- try CMD+D, prints "30m"
Expected behavior:
- just prints "30m" (that's what
prydoes)
Ruby versions tried:
- ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-darwin16]
- ruby 2.4.0p0... | https://bugs.ruby-lang.org/issues/13270 | CC-MAIN-2019-35 | refinedweb | 542 | 73.98 |
$ cnpm install apptension-tools
What is
apptension-tools?
Apptension-tools contains a set of gulp tasks that you can use in your project. Here you will find each of those briefly explained. Most of them behave a bit differently depending on environment in which they are run.
Launches browserSync server.
It will proxy a... | https://npm.taobao.org/package/apptension-tools | CC-MAIN-2018-51 | refinedweb | 627 | 54.49 |
An async GeoJSON client library for GeoNet NZ Quakes feed.
Project description
python-aio-geojson-geonetnz-quakes
This library provides convenient async access to the GeoNet NZ Quakes feed.
Installation
pip install aio-geojson-geonetnz-quakes
Usage
See below for examples of how this library can be used. After instantia... | https://pypi.org/project/aio-geojson-geonetnz-quakes/ | CC-MAIN-2021-49 | refinedweb | 560 | 53.41 |
Introduction to Functional Programming
Content
- Recursion
- High order function
- Closure & lexical scope
- Partial application & currying
- Delay evaluation
Intro: Put an elephant into a fridge
Imperative paradigm:
print 'open the fridge' print 'put elephant into the fridge' print 'close the fridge'
Put an elephant i... | https://slides.com/jingchuanchen/intro-to-fp | CC-MAIN-2021-31 | refinedweb | 2,458 | 56.89 |
UnityScript versus JavaScript
Latest revision as of 20:49, 21 November 2018
Note: This page attempts to explain the differences between JavaScript (ECMAScript) and UnityScript as succinctly and clearly as possible. If you have any suggestions, feel free to add them to the author's talk page.
[edit] Overview
[edit] Term... | https://wiki.unity3d.com/index.php?title=UnityScript_versus_JavaScript&diff=cur&oldid=16607&printable=yes | CC-MAIN-2020-34 | refinedweb | 569 | 55.64 |
/* ** (c) COPYRIGHT MIT 1995. ** Please first read the full copyright statement in the file COPYRIGH. */
The SSL Reader Stream is an input stream which knows how to read from a SSL socket layer, for example provided by the OpenSSL Library. It is a libwww transport and may be registered using the Transport Manager. The ... | http://www.w3.org/Library/src/SSL/HTSSLReader.html | CC-MAIN-2014-15 | refinedweb | 108 | 67.96 |
dynamic dns
Hi guys, Running openstack havana in a multi node testing setup, instances are getting created and allocated ip address fine, and host names are being assigned to the nodes based on the instance name given in horizon when creating the instance. example of hostname on vm:
2: eth0: <BROADCAST,MULTICAST,UP,LOW... | https://ask.openstack.org/en/question/27443/dynamic-dns/ | CC-MAIN-2021-04 | refinedweb | 339 | 62.68 |
kldiv_loss¶
paddle.fluid.layers.
kldiv_loss(x, target, reduction='mean', name=None)[source]
This operator calculates the Kullback-Leibler divergence loss between Input(X) and Input(Target). Notes that Input(X) is the log-probability and Input(Target) is the probability.
KL divergence loss is calculated as follows:
$$l(... | https://www.paddlepaddle.org.cn/documentation/docs/en/api/layers/kldiv_loss.html | CC-MAIN-2021-04 | refinedweb | 341 | 55.54 |
"Serge E. Hallyn" <serge@hallyn.com> writes:> Quoting Eric W. Biederman (ebiederm@xmission.com):>> >>. >> But given that namespaces are making it upstream, what else is to be> gained from the bsdail module? What exactly are you looking for?Good question. I keep tripping over the LSM hooks, and I have thedistinct impres... | http://lkml.org/lkml/2007/10/8/102 | CC-MAIN-2016-18 | refinedweb | 822 | 61.16 |
DESIGN PATTERNS
Concurrency Patterns
Overview
This page focuses on concurrency patterns applicable to embedded software, that is software running on anything from an 8-bit microcontroller to embedded Linux in either C or C++.
The terms thread 1 and thread 2 are used as imaginary threads that need to share data in the f... | https://blog.mbedded.ninja/programming/design-patterns/concurrency-patterns/ | CC-MAIN-2021-31 | refinedweb | 1,012 | 57.67 |
The "House of Cards" video was the first music video to be premiered by Google. It launched on July 11, 2008. The Google site includes some of the video's data, so that you may create your own visualizations, as well as a 3-D data visualization tool. Google's Creative Lab developed the site.
The visualization tool was ... | https://www.safaribooksonline.com/library/view/beautiful-data/9780596801656/ch10s08.html | CC-MAIN-2016-50 | refinedweb | 272 | 71.65 |
比特攻¶
Overview¶
Simply put, it is to use the relationship between the bits to attack.
2018 Plaid CTF transducipher¶
The title is as follows
#!/usr/bin/env python3.6 import BLOCK_SIZE = 64 T = [ ((2, 1), 1), ((5, 0), 0), ((3, 4), 0), ((1, 5), 1), ((0, 3), 1), ((4, 2), 0), ] def block2bin(b, length=BLOCK_SIZE): return lis... | https://wiki.x10sec.org/crypto/attack-summary/bit-attack/ | CC-MAIN-2021-04 | refinedweb | 1,317 | 66.07 |
Below are three functions that calculates a users holiday cost. The user is encouraged to enter details of his holiday which are then passed off into the functions as arguments.
def hotel_cost(days):
days = 140*days
return days
"""This function returns the cost of the hotel. It takes a user inputed argument, multiples ... | https://codedump.io/share/iErdccGklO2E/1/why-can39t-i-pass-this-int-type-variable-as-an-argument-in-python | CC-MAIN-2017-34 | refinedweb | 228 | 53.24 |
Opened 9 years ago
Closed 2 years ago
#7074 closed Bug (worksforme)
MySQL error/warning when 'gt' field lookup with a datetime field and fulltext search.
Description (last modified by )
This query produces the following traceback:
Keyword.objects.filter(keyword__search=term, keyworddata__updated__gt=datetime.datetime.n... | https://code.djangoproject.com/ticket/7074 | CC-MAIN-2016-44 | refinedweb | 2,878 | 50.73 |
iThingState Struct ReferenceThis is the state interface to access the internals of a thing mesh object.
More...
[Mesh plugins]
#include <imesh/thing.h>
Detailed DescriptionThis is the state interface to access the internals of a thing mesh object.
Main creators of instances implementing this interface:
- Thing mesh obj... | http://www.crystalspace3d.org/docs/online/api-1.2/structiThingState.html | CC-MAIN-2016-50 | refinedweb | 605 | 66.44 |
Inspired by excellent CobaltStrike training, I set out to work out an easy way to inject into processes in Linux. There’s been quite a lot of experimentation with this already, usually using
ptrace(2) or
LD_PRELOAD, but I wanted something a little simpler and less error-prone, perhaps trading ease-of-use for flexibilit... | https://movaxbx.ru/2018/04/02/process-injection-with-gdb/ | CC-MAIN-2019-26 | refinedweb | 1,822 | 61.87 |
"Richard W.M. Jones" <rjones redhat com> wrote: > With the attached patch you can get all the way through a compile of > libvirt using the MinGW cross-compiler. ... > Index: configure.in > =================================================================== ... > -AC_CHECK_FUNCS([cfmakeraw regexec uname sched_getaffinit... | https://www.redhat.com/archives/libvir-list/2008-July/msg00108.html | CC-MAIN-2016-40 | refinedweb | 188 | 54.22 |
wcstod - convert a wide-character string to a double-precision number
#include <wchar.h> double wcstod(const wchar_t *nptr, wchar_t **endptr);
The wcstod() function converts the initial portion of the wide-character string pointed to by nptr to double representation. First it decomposes the input wide-character string ... | http://pubs.opengroup.org/onlinepubs/007908799/xsh/wcstod.html | CC-MAIN-2019-22 | refinedweb | 454 | 50.57 |
Here is a complete simple working example
import multiprocessing as mp
import time
import random
class Foo:
def __init__(self):
# some expensive set up function in the real code
self.x = 2
print('initializing')
def run(self, y):
time.sleep(random.random() / 10.)
return self.x + y
def f(y):
foo = Foo()
return foo.run(y)... | https://codedump.io/share/1eptCTGTknlA/1/python-multiprocessing-pool-with-expensive-initialization | CC-MAIN-2016-44 | refinedweb | 187 | 65.01 |
Quick start
Here’s a quick example of how to use HOM to accomplish a simple task in Houdini. Don’t worry if you don’t understand the details of this example – it will give you a favor of what scripting Houdini is like.
Choose Windows > Python Shell to open an interactive Python Shell window.
# Print out a tree of all t... | http://www.sidefx.com/docs/houdini12.0/hom/intro | CC-MAIN-2013-48 | refinedweb | 1,349 | 68.06 |
Key Takeaways
- Languages that run in the browser should precompile to JavaScript isomorphically for compactness, execution speed and development speed
- For efficient cooperation on a large web application, module boundaries should coincide with team boundaries
- Modules may have dynamic typing on the inside, but shou... | https://www.infoq.com/articles/transcrypt-python-javascript-compiler/?itm_source=articles_about_python&itm_medium=link&itm_campaign=python | CC-MAIN-2021-49 | refinedweb | 3,686 | 51.78 |
Hey, World. Recently I've cracked open a book dealing with java for beginners. Each page my fingers turned, there was a problem to be solved, it led to brain busters, teasers, and much more. Unfortunately for me today, I've crossed a puzzle that I cannot crack. Here's my code:
class Movie { String title; String genre; ... | http://www.javaprogrammingforums.com/whats-wrong-my-code/29149-help-testing-objects.html | CC-MAIN-2015-06 | refinedweb | 192 | 78.65 |
I’m going to take a break from my last couple of posts which have been about time-series analysis in python. I’m switching gears this week to answer a question my brother asked me today at a party. I couldn’t really give him a satisfactory answer, because we were at a party. He asked me, “I’ve been studying some linear... | https://barnesanalytics.com/linear-algebra-and-data-science | CC-MAIN-2018-13 | refinedweb | 2,510 | 72.16 |
javadoc: No public or protected classes found to document.
Robin Clark
Ranch Hand
Posts: 81
posted 12 years ago
I have 5 classes in my directory which is named "vss". Each of these classes is in the vss directory.
When I run the command:
javadoc -d ..\..\..\docs -private -windowtitle "VSS Classes" -subpackages *.java ... | http://www.coderanch.com/t/395604/java/java/javadoc-public-protected-classes-document | CC-MAIN-2016-26 | refinedweb | 359 | 65.52 |
The Datomic Information Model
- |
-
-
-
-
-
-
-
Read later
My Reading List
Datomic considers a database to be an information system, where information is a set of facts, and facts are things that have happened. Since one can't change the past, this implies that the databaseaccum. In a previous article, I covered the Da... | http://www.infoq.com/articles/Datomic-Information-Model | CC-MAIN-2016-18 | refinedweb | 2,790 | 54.63 |
Subject: Re: [boost] [review][mp11] Reminder of ongoing formal review
From: Jason Rice (ricejasonf_at_[hidden])
Date: 2017-07-22 19:02:13
Hello, my name is Jason Rice, and this is my first Boost review so please
take that into consideration. I'm also new to this mailing list thing so
let me know if I did something wron... | https://lists.boost.org/Archives/boost/2017/07/237563.php | CC-MAIN-2022-21 | refinedweb | 577 | 69.07 |
Very nice, thanks for your great work, and also honored to Tonic-_-
I have one problem, since VAS save duplicate TFAR radio, so our clan make each serial number for each player, but when we brought from load, our distributed radio just gone. it's a bit sad to happen like this, can you provide something for this? it wil... | https://www.armaholic.com/page.php?id=26181 | CC-MAIN-2020-50 | refinedweb | 1,103 | 78.79 |
[ (02 of 12)
From: heels@lcp.com (Erik J. Heels) Newsgroups: misc.legal, misc.legal.computing Subject: Law-Related Resources on the Internet and Elsewhere (02 of 12) Date: 26 Dec 1996 11:11:58 GMT Message-ID: <law/net-resources/part02_851598585@rtfm.mit.edu> Reply-To: heels@lcp.com (Erik J. Heels) X-Last-Updated: 1995... | http://www.faqs.org/faqs/law/net-resources/part02/ | crawl-002 | refinedweb | 6,277 | 55.24 |
With some slight modifications we can breeze through exercise 8. The instructions require us to use the natural <string> header for C++ string class objects. The key point here is that using string is simply just easier. Why you ask? Because we can now use ‘!=’ and other comparative operators to make our comparisons. S... | https://rundata.wordpress.com/2012/11/21/c-primer-chapter-5-exercise-8/ | CC-MAIN-2017-26 | refinedweb | 335 | 76.01 |
Opened 13 years ago
Closed 12 years ago
#2280 closed defect (worksforme)
Models, that have not obligatory many-to-one relationships and have no related model set, are not listed.
Description
This error occurs on Django 0.95 ('post-magic-removal').
When model A relates with model B by many-to-one relationship and that r... | https://code.djangoproject.com/ticket/2280 | CC-MAIN-2019-13 | refinedweb | 320 | 55.34 |
QGraphicsView::NoViewportUpdate doesn't work
I have a very simple window with a
QGraphicsView, a
QGraphicsSceneinside, and a simple
QPushButton. When user clicks button, a line should be added to the scene. However, since I set
QGraphicsView::NoViewportUpdate, the line shouldn't be displayed. On the opposite, the line ... | https://forum.qt.io/topic/62360/qgraphicsview-noviewportupdate-doesn-t-work/5 | CC-MAIN-2018-13 | refinedweb | 608 | 55.54 |
[
]
Michael McCandless commented on LUCENE-831:
-------------------------------------------
{quote}
If we are going to allow random access, I like the idea of sticking
with the arrays. They are faster than hiding behind a method, and it
allows easier movement from the old API.
{quote}
I agree.
{quote}
It would be nice ... | http://mail-archives.apache.org/mod_mbox/lucene-dev/200904.mbox/%3C671034817.1239374475279.JavaMail.jira@brutus%3E | CC-MAIN-2013-20 | refinedweb | 413 | 73.27 |
Refactoring Replace Parameter with Explicit Methods
ProblemA method is split into parts, each of which is run depending on the value of a parameter.
SolutionExtract the individual parts of the method into their own methods and call them instead of the original method.
void setValue(String name, int value) { if (name.eq... | https://refactoring.guru/replace-parameter-with-explicit-methods | CC-MAIN-2017-17 | refinedweb | 304 | 58.89 |
In this tutorial, you will learn about c programming while and do while loop and how they are used in programs along with examples.
While and do while loop in c programming
Sometimes while writing programs we might need to repeat same code or task again and again.
For this C provides feature of looping which allows the... | http://www.trytoprogram.com/c-programming/c-programming-while-and-do-while-loop/ | CC-MAIN-2020-16 | refinedweb | 530 | 64.64 |
Django Forms are a way to accept user input as text, images, or files from the web frontend.
The straightforward example of forms that we came across was the Django admin site’s login page. Admin site took input text “username” and an input text “password” from us.
There are two ways to use forms on our website;
- One ... | https://www.askpython.com/django/django-forms | CC-MAIN-2021-31 | refinedweb | 2,072 | 73.47 |
Log In UI - Part 4
Illustrates how to use the timeline and states to animate UI components.
Log In UI - Part 4 is the fourth in a series of tutorials that build on each other to illustrate how to use Qt Design Studio to create a simple UI with some basic UI components, such as pages, buttons, and entry fields. Part 4 d... | https://doc.qt.io/qtdesignstudio/qt-design-studio-loginui4-example.html | CC-MAIN-2021-04 | refinedweb | 1,790 | 60.85 |
MQOpenQueue
Updated: July 19, 2016
Applies To: Windows 10, Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server Technical Preview, Windows Vista
The MQOpenQueue function opens a queue for sending, peeking at, retrieving, or purging m... | https://msdn.microsoft.com/en-us/library/ms699817(v=vs.85).aspx | CC-MAIN-2018-34 | refinedweb | 1,476 | 55.13 |
#include "async_fetch_with_lock.h"
AsyncFetch object which tries to acquire lock before fetching content. Start() will returns false, if it fails to acquire lock. Note that acquiring a lock will fail if same resource is fetching somewhere else. Caller will call the Start() which will try to acquire a lock and internall... | http://modpagespeed.com/psol/classnet__instaweb_1_1AsyncFetchWithLock.html | CC-MAIN-2017-09 | refinedweb | 323 | 58.38 |
19 December 2011 05:27 [Source: ICIS news]
SINGAPORE (ICIS)--?xml:namespace>
The companies started building the first phase of the project on 28 November, according to the source, who added that the total investment for the project is yuan (CNY) 2bn ($315m).
The project has three phases of construction. The first phase... | http://www.icis.com/Articles/2011/12/19/9517485/chinese-joint-venture-to-start-up-non-ionic-surfactant-project.html | CC-MAIN-2014-35 | refinedweb | 191 | 54.66 |
imona
shimona
- 99%Jobs udført
- 100%Indenfor Budget
- 100%Til Tiden
- 25%Genansættelsesfrekvens
Portfolio
Nylige bedømmelser
PHP: online CSV to DB upload + simple search form $90.00 USD
“She has been excellent in understanding our needs and situation. She knows how to make it smooth, she is friendly and intelligent. D... | https://www.dk.freelancer.com/u/shimona | CC-MAIN-2018-51 | refinedweb | 342 | 70.29 |
Automating the world one-liner at a time.
In my previous post, I showed you how to create “Hello World” scripts using Windows Presentation Foundation (WPF) and Windows PowerShell.
While “Hello World” is relatively easy to write with WPF, it is only the tip of the iceberg of the types of quick user interfaces you can wr... | http://blogs.msdn.com/powershell/archive/2008/05/23/wpf-powershell-part-2-exploring-wpf-and-the-rest-of-net-with-scripts.aspx | crawl-002 | refinedweb | 1,032 | 59.4 |
RAII wrapper on stdio.h FILE pointers (use a derived class though). More...
#include <l_stdio_wrap.h>
RAII wrapper on stdio.h FILE pointers (use a derived class though).
If you have the misfortune of needing to use stdio.h routines for file IO, consider using one of the derived classes of this class as an RAII wrapper ... | http://kobus.ca/research/resources/doc/doxygen/classkjb_1_1File__Ptr.html | CC-MAIN-2022-21 | refinedweb | 170 | 74.39 |
The video, notebooks, spreadsheets, and links are available here.
Lesson 4 discussion
Embedding - In lesson4, under the Dot Product section, Embedding is called to try to create an embedding layer.
u = Embedding(n_users, n_factors, input_length=1, W_regularizer=l2(1e-5))(user_in)
It gives me a NameError and I am not su... | http://forums.fast.ai/t/lesson-4-discussion/210 | CC-MAIN-2018-13 | refinedweb | 1,029 | 65.52 |
The Lodge is members-only design/dev videos and Office Hours.
Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern
The Lodge is members-only design/dev videos and Office Hours.
innerHTML() is native and returns the contents of a DOM node (e.g.
<span>I live inside a div.</span>. outerHTM... | https://css-tricks.com/snippets/jquery/outerhtml-jquery-plugin/ | CC-MAIN-2015-48 | refinedweb | 309 | 66.84 |
Finding Lyrics. Here’s the code:
from System import Console
import urllib
from optparse import OptionParser
print "Starting"
parser = OptionParser()
parser.add_option("-i", "--user_id",
action="store", type="string", dest="user_id",
help="The user id for the Lyrics Fly service")
parser.add_option("-a", "--artist",
acti... | https://remark.wordpress.com/2010/06/04/finding-lyrics/ | CC-MAIN-2015-35 | refinedweb | 203 | 63.86 |
[Solved] QJsonDocument parsing issue Qt 5.3 vs. Qt 5.4 on OSX using C++11
Hi there,
I have problems parsing json since I upgraded to Qt 5.4.
Here is an example:
@#include <QCoreApplication>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
#include <QDebug>
int main(int argc, char *argv[])
{
QCoreAp... | https://forum.qt.io/topic/50282/solved-qjsondocument-parsing-issue-qt-5-3-vs-qt-5-4-on-osx-using-c-11/5 | CC-MAIN-2018-22 | refinedweb | 488 | 52.05 |
Ok, this warrants some explanation....
I use Windows to program, and up until a few months ago, i always used Microsoft Visual C++ IDE (2010, mainly).
But recently i wanted to start developing projects with multi platforms in mind (desktops only, no mobile), and also to experiment on using multiple compilers on the sam... | https://www.gamedev.net/topic/660367-include-file-not-found-in-gcc-due-to-path-size/ | CC-MAIN-2017-22 | refinedweb | 436 | 55.74 |
mbrlen
Determine the number of bytes that are required to complete a multibyte character in the current locale, with the capability of restarting in the middle of a multibyte character.
The mbrlen function inspects at most count bytes starting with the byte pointed to by str to determine the number of bytes that are re... | https://msdn.microsoft.com/en-US/library/tt1kc7c1(v=vs.120).aspx | CC-MAIN-2015-32 | refinedweb | 416 | 56.25 |
See also DublinCoreEntryStrawman.
Echo Example Using the Dublin Core Metadata Element Set
The page contains some examples and discussion to how Echo could leverage DublinCore in its syntax.
NOTE: This proposal would fold the DublinCore semantics/labels into the core Echo namespace NOT create a seperate modulized namesa... | http://www.intertwingly.net/wiki/pie/EchoInDublinCore?action=print | CC-MAIN-2017-47 | refinedweb | 1,454 | 54.73 |
Description
The Neighborhood Time Step value provided is not numeric, is less than 1, or is larger than the total number of time steps in the Input Space Time Cube parameter .
Solution
Determine the number of time steps associated with the Input Space Time Cube value and provide a value smaller than that number (not mo... | https://pro.arcgis.com/en/pro-app/latest/tool-reference/tool-errors-and-warnings/110001-120000/tool-errors-and-warnings-110001-110025-110022.htm | CC-MAIN-2022-27 | refinedweb | 130 | 51.18 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.