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 |
|---|---|---|---|---|---|
Package::Subroutine - minimalistic import/export and other util methods
Exporting functions from a module is very simple.
; package Recipe::Condiment; use Package::Subroutine ; sub import { export Package::Subroutine _ => qw/required optional var/ }
You can import too.
; import Package::Subroutine 'Various::Types' => q... | http://search.cpan.org/dist/Package-Subroutine/lib/Package/Subroutine.pm | CC-MAIN-2015-22 | refinedweb | 856 | 64.81 |
How can I make Cantata-Qt to work with EGLFS on Raspberry Pi2?
Hi,
I built Qt to work with EGLFS on my Raspberry Pi2 according to
these instructions.
This works fine, as I can run the various standard Qt example projects.
Because it has a Qt frontend, I selected Cantata as a simple yet powerful
music player, which I bu... | https://forum.qt.io/topic/72645/how-can-i-make-cantata-qt-to-work-with-eglfs-on-raspberry-pi2 | CC-MAIN-2017-47 | refinedweb | 776 | 62.98 |
Join the community to find out what other Atlassian users are discussing, debating and creating.
In this article I would like to talk about logging information about a ScriptRunner script execution. This information must be used later for identifying the cause of the errors in the script .
I tested all code in Jira 7.8... | https://community.atlassian.com/t5/Jira-articles/Logging-in-ScriptRunner/ba-p/752758 | CC-MAIN-2022-05 | refinedweb | 1,791 | 60.11 |
//**************************************
// Name: Save Embedded Resource to File
// Description:To save an Embedded Resource and save to file. This will take any embedded resource and save it to any filename you want.
// By: Victor Boba (from psc cd)
//**************************************
' Notes:
' The file that you... | http://planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=2268&lngWId=10 | CC-MAIN-2018-05 | refinedweb | 222 | 67.45 |
How do I stop and reverse on same bar?
I'm looking for the approach to close a trade and reverse direction. My first attempt to do this was in
next():but it seems that a trade execution breaks us from the next. If tried the following in the strategy:
if position: if condition: self.close() if not position: if condition... | https://community.backtrader.com/topic/24/how-do-i-stop-and-reverse-on-same-bar | CC-MAIN-2017-51 | refinedweb | 940 | 70.09 |
This article is really a precursor to cool things you can do with calculus such as the persuit curve which is used in air-to-air missiles, and rocket launch equations.
Let's revisit some calculus topics you most likely haven't touched on in a while and use Python to take a refresher, and go over common derivatives and ... | https://hackernoon.com/how-to-do-calculus-with-python-derivatives-cheat-sheet-part-1-zfv3uno | CC-MAIN-2021-17 | refinedweb | 1,277 | 60.85 |
06 December 2011 08:31 [Source: ICIS news](recasts, adds details throughout) SINGAPORE (ICIS)--A power failure halted production at some petrochemical facilities at ?xml:namespace>
KP Chemical, however, continues to run its aromatics facilities at the site that can produce 775,000 tonne/year of paraxylene (PX) and 230,... | http://www.icis.com/Articles/2011/12/06/9514195/power-outage-hits-south-koreas-ulsan-petrochemical-hub.html | CC-MAIN-2015-14 | refinedweb | 300 | 56.39 |
It’s obvious that inexperienced software developer will make more mistakes, but even the best engineers make them. Mistakes in code reviewing happen all the time! When we push our change (for example by creating pull request) and reviewer requests changes, it usually means that we’d failed in self-reviewing. Or when ou... | https://vevurka.github.io/dsp17/quality/code_review_mistakes/ | CC-MAIN-2018-39 | refinedweb | 890 | 71.04 |
Hey guys I have just started c++ yesterday and I am now on Switch case and functions.
I made this little program:
Code:#include <iostream> using namespace std; void playgame(); void loadgame(); void playmultiplayer(); void exit(); int main() { int answer; cout << "1. Play A New Game\n" << "2. Load A Saved Game\n" << "3... | https://cboard.cprogramming.com/cplusplus-programming/72486-need-help-functions.html | CC-MAIN-2017-13 | refinedweb | 221 | 81.63 |
Arrays
From HaskellWiki array and don't modify the original one. This makes possible to use Arrays in pure functional code along with lists. "Boxed" means that array elements are just ordinary Haskell (lazy) values, which are evaluated on demand, and can even contain bottom (undefined) value. You can learn how to use t... | http://www.haskell.org/haskellwiki/index.php?title=Arrays&oldid=3026 | CC-MAIN-2014-15 | refinedweb | 279 | 54.52 |
Implementing the Basic Folder Object Interfaces
The procedure for implementing a namespace extension is similar to that for any other in-process Component Object Model (COM) object. All extensions must support three primary interfaces that provide Windows Explorer with the basic information needed to display the extens... | https://msdn.microsoft.com/en-us/library/cc144093(v=vs.85).aspx | CC-MAIN-2016-30 | refinedweb | 5,092 | 53.21 |
Basic Example
The first example to look at is a complete (although somewhat trivial)
application. It uses
PBServerFactory() on the server side, and
PBClientFactory() on the client side.
1 2 3 4 5 6 7 8 9 10 11from twisted.spread import pb from twisted.internet import reactor class Echoer(pb.Root): def remote_echo(self,... | http://twistedmatrix.com/documents/10.2.0/core/howto/pb-usage.html | CC-MAIN-2015-11 | refinedweb | 4,732 | 57.37 |
Pandas: Extract the day name from a specified date
Pandas Time Series: Exercise-25 with Solution
Write a Pandas program to extract the day name from a specified date. Add 2 days and 1 business day with the specified date.
Sample Solution:
Python Code :
import pandas as pd newday = pd.Timestamp('2020-02-07') print("Firs... | https://www.w3resource.com/python-exercises/pandas/time-series/pandas-time-series-exercise-25.php | CC-MAIN-2021-21 | refinedweb | 177 | 57.37 |
[Previous: Qt3Support Module] [Qt's Modules] [Next: QAxContainer Module]
The QtTest module provides classes for unit testing Qt applications and libraries. More...
Applications that use Qt's unit testing classes need to be configured to be built against the QtTest module. To include the definitions of the module's clas... | http://doc.trolltech.com/4.3/qttest.html | crawl-002 | refinedweb | 109 | 53.92 |
acosh man page
Prolog
This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
acosh, acoshf, acoshl — inverse hyperbolic cosine function... | https://www.mankier.com/3p/acosh | CC-MAIN-2017-47 | refinedweb | 102 | 55.74 |
Transmitter to send wireless signals. More...
#include <sensors/sensors.hh>
Inherits WirelessTransceiver.
Transmitter to send wireless signals.
Constructor.
Destructor.
Get the category of the sensor.
Connect a signal that is triggered when the sensor is updated.
Returns the Service Set Identifier (network name).
fills... | http://gazebosim.org/api/dev/classgazebo_1_1sensors_1_1WirelessTransmitter.html | CC-MAIN-2017-51 | refinedweb | 294 | 56.93 |
Fl_Input | +----Fl_Output | +----Fl_Multiline_Output
#include <FL/Fl_Output.H>
There is a single subclass, Fl_Multiline_Output, which allows you to display multiple lines of text.
The text may contain any characters except \0, and will correctly display anything, using ^X notation for unprintable control characters and... | http://www.fltk.org/doc-1.1/Fl_Output.html | CC-MAIN-2017-47 | refinedweb | 139 | 64.81 |
#include <nng/protocol/reqrep0/req.h>
nng_req(7)
NAME
nng_req - request protocol
SYNOPSIS
DESCRIPTION
(protocol, req) The req protocol is one half of a request/reply pattern. In this pattern, a requester sends a message to one replier, who is expected to reply. The request is resent if no reply arrives, until a reply i... | https://nng.nanomsg.org/man/v1.3.2/nng_req.7.html | CC-MAIN-2021-04 | refinedweb | 567 | 52.7 |
Join the 85,000 open source advocates who receive our giveaway alerts and article roundups.
Join a new open source community at biicode
New open source dependency manager on the scene
opensource.com
Get the newsletter
When.
When biicode began, almost two years ago, many risks were taken by both the founders and investo... | https://opensource.com/business/15/1/biicode-open-source-dependency-manager | CC-MAIN-2018-22 | refinedweb | 855 | 63.7 |
WebKit Bugzilla
Folks -
I've attached a testcase that shows that localStorage, as its currently implemented, is not working for pages loaded from file:// URLs or from a local web server (i.e. 'localhost').
I filed a comment on this Mozilla bug (comment #9) wherein I note that the HTML5 specification has the concept of ... | https://bugs.webkit.org/show_bug.cgi?id=20701 | CC-MAIN-2016-30 | refinedweb | 413 | 72.66 |
In this module of Python tutorial, we will learn about Python comments. We will also learn about the different types of Python comments and the way to use them.
Writing Python Comments
Comments in any programming language are used to increase the readability of the code. Similarly, in Python, when the program starts ge... | https://intellipaat.com/blog/tutorial/python-tutorial/python-comments/ | CC-MAIN-2019-51 | refinedweb | 793 | 60.24 |
hello all. i am working on the Fibonacci sequence constructor and i was wondering if i posted wha ti have so far if you could tell me if im on the right trac or not and maybe give me a few pointers to help me get it right heres what i have for code and the assignment so you can see what i have to do
public class Fibona... | http://www.javaprogrammingforums.com/algorithms-recursion/363-problem-generating-fibonacci-sequence-java.html | CC-MAIN-2015-32 | refinedweb | 175 | 53.92 |
— You can find the source code for this blog series here .
Over the last several months, I’ve been looking for ways to produce physical outputs from my generative code. I’m interested in the idea of developing real, tangible objects that are no longer bound by the generative systems that shaped them. Eventually I plan ... | http://colabug.com/2117618.html | CC-MAIN-2018-05 | refinedweb | 1,397 | 61.26 |
emulab-devel:bbb73ca6f7dacf27223b994fabb108c3dfef06b8 commits 2017-08-07T16:00:56-06:00 We need to get rid of this! Since BSD jail days we have attempted to partition up the UDP/TCP port range among vnodes as jails and their host shared the same namespace. Originally we supported a range of 256 per experiment which wou... | https://gitlab.flux.utah.edu/emulab/emulab-devel/-/commits/bbb73ca6f7dacf27223b994fabb108c3dfef06b8?format=atom | CC-MAIN-2022-05 | refinedweb | 505 | 53.17 |
OneNote 2013 Text Importer.zip
Hi John, any chance you'd share the source for this updated version? I've written a store app which imports evernote files to OneNote via the API but it can't do headers. It seems like whatever code you're using is pulling in headers just fine. I know it (probably) won't work for windows... | https://blogs.msdn.microsoft.com/johnguin/2014/03/07/a-second-final-beta-of-the-text-file-importer-for-onenote-2013/ | CC-MAIN-2017-22 | refinedweb | 366 | 85.59 |
How to play music on the background while running a MIDlet
This article explains how to play music in your MIDlet, and the effects of running a MIDlet (both with and without music player functionality) while the device music player is running.
Series 40
Series 40 DP 2.0
Introduction
Series 40 devices can often run MIDl... | http://developer.nokia.com/community/wiki/How_to_play_music_on_the_background_while_running_a_MIDlet | CC-MAIN-2014-15 | refinedweb | 752 | 56.25 |
Hi all,
I’m a bit stuck with optix prime at the moment. I’ve basically used all of the API calls from the examples, and hardcoded a single triangle into my test program. I still can’t get a hit. My code is below, can anyone tell me what I am doing wrong ? I’m running out of things to try ;)
I compiled it using:
nvcc -s... | https://forums.developer.nvidia.com/t/cant-get-optixprimepp-to-register-a-really-simple-hit-sample-program-inside/35059 | CC-MAIN-2022-21 | refinedweb | 485 | 59.7 |
URLs Lead The Way
Matt Layman
・12 min read
Understand Django (3 Part Series).
That explain where the file resides, but it doesn't tell us much about how it works. Let's dig in more.
URLconf In Action
Try to think of the URL configuration as a list of URL paths that Django will attempt to match from top to bottom. When ... | https://practicaldev-herokuapp-com.global.ssl.fastly.net/mblayman/urls-lead-the-way-327l | CC-MAIN-2020-16 | refinedweb | 2,886 | 67.76 |
Introduction
1. RPC/encoded
2. RPC/literal
3. Document/encoded
4. Document/literal).
RPC/encoded
Take the method in Listing 1 and run it through your favorite Java-to-
WSDL tool, specifying that you want it to generate RPC/encoded WSDL.
You should end up with something like the WSDL snippet in Listing 2.
<portType name... | https://tr.scribd.com/document/45781010/Web-Services-Styles | CC-MAIN-2019-30 | refinedweb | 690 | 56.25 |
Introduction:
Here I will explain how to bind dropdownlist using JQuery ajax or JSON in asp.net.
Here I will explain how to bind dropdownlist using JQuery ajax or JSON in asp.net.
Description:
In previous articles I explained Bind gridview using JQuery in asp.net and AutoComplete textbox with JQuery using asp.net. Now ... | https://www.aspdotnet-suresh.com/2012/07/how-to-bind-dropdownlist-in-aspnet.html?showComment=1382801709112 | CC-MAIN-2021-10 | refinedweb | 709 | 76.22 |
#include <basisCurves.h>
A collection of curves using a particular basis.
Render mode is dependent on both the HdBasisCurvesGeomStyle, refinement level, and the authored primvars.
If style is set to HdBasisCurvesGeomStyleWire, the curves will always draw as infinitely thin wires. Cubic curves will be refined if complex... | https://www.sidefx.com/docs/hdk/class_hd_st_basis_curves.html | CC-MAIN-2021-17 | refinedweb | 411 | 55.84 |
netmagTutorial
Build an OpenEMI music app with Echo Nest
The Echo Nest offers a great API for creating apps using content licensed via the OpenEMI initiative. Marc George explains how to use it to build an app to play Gorillaz tracks
This article first appeared in issue 233 of .net magazine – the world's best-selling m... | http://www.creativebloq.com/netmag/build-openemi-music-app-echo-nest-4135677 | CC-MAIN-2016-07 | refinedweb | 2,080 | 60.65 |
Hi!> Anyway, in ide_wait_stat(), the "timeout" value is always either > "WAIT_DRQ" (5*HZ/100) or it is "WAIT_READY" (3*HZ/100). And look at > WAIT_READY a bit more: > > #if defined(CONFIG_APM) || defined(CONFIG_APM_MODULE)> #define WAIT_READY (5*HZ) /* 5sec - some laptops are very slow */> #else> #define WAIT_READY (3*... | http://lkml.org/lkml/2004/1/3/142 | CC-MAIN-2013-48 | refinedweb | 234 | 64.41 |
EAV-Django
EAV-Django is a reusable Django application which provides an implementation of the Entity-Attribute-Value data model.
Entity-Attribute-Value model (EAV), also known as object-attribute-value model and open schema which is used in circumstances where the number of attributes (properties, parameters) that can... | https://bitbucket.org/neithere/eav-django/ | CC-MAIN-2014-15 | refinedweb | 1,243 | 57.06 |
17 March 2011 18:01 [Source: ICIS news]
LONDON (ICIS)--?xml:namespace>
Although crude oil prices in the short term have suffered a negative impact from the earthquake in
Moreover, the country will have to compensate for the power loss left from the nuclear generation and some of it will have to come from oil fired elec... | http://www.icis.com/Articles/2011/03/17/9444949/japan-disaster-domestic-crude-oil-demand-to-rise-in-2011-analyst.html | CC-MAIN-2015-11 | refinedweb | 256 | 50.87 |
Are you sure?
This action might not be possible to undo. Are you sure you want to continue?
Washburn and Clark S. Binkley+ ABSTRACT Portfolio theory and asset pricing models have become common tools for analyzing the risk and return of timberland investments. Not surprisingly, problems arise in applying tools developed... | https://www.scribd.com/doc/80241833/Capital-Asset | CC-MAIN-2018-13 | refinedweb | 8,733 | 50.12 |
Python module to provide a manhole in asyncio applications
Project Description.
I’m getting “Address is already in use” when I start! Help!
Unlike regular TCP/UDP sockets, UNIX domain sockets are entries in the filesystem. When your process shuts down, the UNIX socket that is created is not cleaned up. What this means ... | https://pypi.org/project/aiomanhole/ | CC-MAIN-2018-13 | refinedweb | 415 | 77.43 |
OLPC talk:Wiki
From OLPC
Template for code fragments
Template:Code is based on and requires an entry in MediaWiki:Common.css.
Here is an example: Compare # pwd to
# pwd
It's meant to deal with the difficulty of reading reduced sized text on a gray background, which lowers contrast. Lighter gray and enlarged line-height... | http://wiki.laptop.org/go/Talk:Wiki | CC-MAIN-2016-26 | refinedweb | 1,448 | 62.68 |
I have already posted Angle Control of Servo Motor using 555 Timer in which I have controlled servo motor using 555 timer and another tutorial about Controlling of Servo Motor using PIC Microcotroller in whcih I have controlled it with PIC microcontroller. And today we are gonna Control Servo Motor with Arduino and wil... | https://www.theengineeringprojects.com/2015/11/control-servo-motor-arduino-proteus.html | CC-MAIN-2019-51 | refinedweb | 1,051 | 69.62 |
This article appears in the Third Party Products and Tools section. Articles in this section are for the members only and must not be used to promote or advertise products in any way, shape or form. Please report any spam or advertising.
A lot has been written about Microsoft s new data access technology LINQ (Language... | https://www.codeproject.com/Articles/27891/LINQ-to-SAP | CC-MAIN-2018-34 | refinedweb | 1,799 | 57.27 |
IDE - CodeBlocks
Compiler - GNU GCC
Hello,
I ran into a C++ exercise has me stumped. A program is to ask for a sentance, then it splits it up into individual words and puts the sentance back together with ampersands inplace of the white space.
My program is able to take the sentance and show it split into words. Howeve... | http://cboard.cprogramming.com/cplusplus-programming/145467-string-manipulation-issues-printable-thread.html | CC-MAIN-2015-32 | refinedweb | 194 | 65.25 |
You may have guessed this based on my recent posts, but I’m writing a web application. Some of my stuff is in ASP.NET and some is client-side. This is one of those client-side things. I want to be able to create a pop-up menu. There are a lot of resources out there for creating menus. However they all pretty much have ... | https://shellmonger.com/2015/03/04/adding-a-pop-up-search-bubble-to-your-web-application/ | CC-MAIN-2017-13 | refinedweb | 2,221 | 72.56 |
Should You Use Schedule C or Schedule K-1 in Your Individual Tax Return
It's the inevitable income tax time again! You will file your personal income tax return on the 15th of April, or the "next business day" if it falls on a weekend or holiday. What income do you need to file on April 15? It is all the money you earn... | https://hubpages.com/business/Should-You-Use-Schedule-C-or-Schedule-K-1-in-Your-Individual-Tax-Return | CC-MAIN-2018-09 | refinedweb | 840 | 73.37 |
Additional Data
Additional data attached to an event can be predefined or custom.
Predefined data is data that Sentry recognizes and uses to enhance the user experience. For example, Sentry's concept of a user lets us show how many unique users are affected by an issue. Sentry automatically captures predefined data whe... | https://docs.sentry.io/enriching-error-data/additional-data/?platform=javascript | CC-MAIN-2020-34 | refinedweb | 933 | 55.13 |
First, unless you've already done so, you will need
to grab a copy of the Google Web APIs
Developer's Kit () and
create a Google account and obtain a license key []. As I write this, the free license key
entitles you to 1,000 automated queries per day. This is more than
enough for a single IRC channel.
The googleapi.ja... | http://archive.oreilly.com/pub/h/2728 | CC-MAIN-2016-22 | refinedweb | 474 | 66.33 |
I’m pretty new to Ruby on Rails.
I have multiple datapoints that I am saving in my database for a subject
called “quarterback”. All of those datapoints are added together to for
the value “xoi_qb”. This calculation is performed in my model:
def xoi_qb
sum=0
sum+= passing_yards|| 0
sum+= passing_yards|| 0
sum+= qb_rushi... | https://www.ruby-forum.com/t/saving-repeated-iterations-to-database/242009 | CC-MAIN-2021-49 | refinedweb | 228 | 76.66 |
Python
Well, what do we see if we run it more than once?
default_append = [] def append(value, l): l.append(value) return l >>> append(1, default_append) [1] >>> append(2, default_append) [1, 2] ...
The solution to this is to use an immutable placeholder value - usually None - as the default argument, and initialize th... | http://blog.notdot.net/2009/11/Python-Gotchas | CC-MAIN-2013-20 | refinedweb | 1,447 | 62.68 |
Ticket #5197 (closed Bugs: fixed)
Forward declarations from std:: not allowed in libc++
Description
interprocess uses the forward declarations from std::
template <class T> class allocator;
template <class T> struct less;
template <class T1, class T2> struct pair;
template <class CharType?> struct char_traits;
libc++ d... | https://svn.boost.org/trac/boost/ticket/5197 | CC-MAIN-2016-36 | refinedweb | 274 | 60.55 |
Transphporm – a Different Kind of Template EngineBy Zack Wallace
If there is one thing the world needs, it’s definitely another PHP template engine! But wait, this one is different!
Many PHP template engines (Smarty, Blade, Twig…) are little more than abstracted PHP code, making it easier to write loops, if/then/else b... | https://www.sitepoint.com/transphporm-a-different-kind-of-template-engine/ | CC-MAIN-2017-17 | refinedweb | 3,750 | 63.7 |
rior to Window Mobile 5.0 (WM5) even simple things such as checking battery status, sending an SMS, or programming Pocket Outlook were rather difficult. Fortunately, WM5 came with new managed APIs that expose a phenomenal number of abilities that will greatly enhance mobile applications.
Windows Mobile 5.0 offers many ... | https://www.devx.com/wireless-zone/32305/ | CC-MAIN-2022-27 | refinedweb | 1,760 | 55.64 |
I'm new to Entity Framework, just a question on how EF generate insertion SQL for entity class that has default 0.
This is the data model class:
public class Product { public long ProductID { get; set; } public string Name { get; set; } }
and the underlying table Products in Sql server has identity column on ProductID ... | https://entityframeworkcore.com/knowledge-base/57156336/how-ef-generate-insertion-sql-for-entity-class-that-has-default-0- | CC-MAIN-2020-40 | refinedweb | 350 | 55.13 |
XForms:Custom Controls
From MDC
[edit] Purpose
You are in the right place if you would like to create your own custom renderings of the XForms controls like
input,
output,
trigger, etc. We will also show you how to create custom controls that work with the XForms model and are automatically updated just like XForms con... | http://developer.mozilla.org/en/docs/XForms:Custom_Controls | crawl-001 | refinedweb | 2,354 | 53.31 |
Mocking HTTP requests with Nock
This is a ‘how to’ article on using Nock to mock HTTP requests during tests.
We will look at:
- Why mock HTTP requests during testing?
- What is Nock?
- Code examples of both
nockand
nock.back
When dealing with code that depends on external services maintaining test coverage and writing ... | http://brianyang.com/mocking-http-requests-with-nock/ | CC-MAIN-2018-51 | refinedweb | 1,531 | 56.55 |
j hey i m doing a project
can i create message reader using j2me in nokia phone??
pls give me source code or hint
calculator midlet
calculator midlet give me code calculator midlet in bluetooth application with i wann source code to find out the difference between two dates... (ParseException e) {
e.printStackTrace();
... | http://roseindia.net/tutorialhelp/comment/86920 | CC-MAIN-2016-18 | refinedweb | 1,012 | 61.26 |
.
There is another type in Python called a tuple that is similar
to a list except that it is immutable. Syntactically, a tuple is a
comma-separated list of values:
>>> tuple = 'a', 'b', 'c', 'd', 'e'
Although it is not necessary, it is conventional to enclose tuples in
parentheses:
>>> tuple = ('a', 'b', 'c', 'd', 'e')... | http://greenteapress.com/thinkpython/thinkCSpy/html/chap09.html | CC-MAIN-2017-47 | refinedweb | 1,526 | 73.47 |
<script type="text/javascript">
var number = "10";
(function(){
alert(number);
alert(eval('number=22'));
})();
var func = function() {
alert (new Function( 'return (' + number + ')' )());
}
func(); // prints 22.
</script>
It first alerts
10, then alerts
22 then why is it alerting
22 again instead of 10. Does eval funct... | http://m.dlxedu.com/m/askdetail/3/0cd58f50f577f52fa4cffcf47d6114c5.html | CC-MAIN-2018-22 | refinedweb | 265 | 59.94 |
# Pad the encoded string with "+". data += "=" * (4 - (len(data) % 4) % 4) return base64.urlsafe_b64decode(data)
Django has the equivalent function in its django.core.signing library:
def b64_decode(s): pad = '=' * (-len(s) % 4) return base64.urlsafe_b64decode(s + pad)The code from Django's function uses negative modul... | http://hustoknow.blogspot.com/2013/01/negative-modulos.html | CC-MAIN-2017-51 | refinedweb | 207 | 60.04 |
Hi.
I'm using mod_python 3.1.4, apache 2.0.x/prefork and python2.4.
The following code doesn't work:
from mod_python import apache
import threading
def something():
open('/tmp/thread', 'w').close()
def handler(req):
threading.Thread(target=something).start()
return apache.OK
Browser request successfully hits the handle... | http://modpython.org/pipermail/mod_python/2005-June/018283.html | CC-MAIN-2018-39 | refinedweb | 125 | 69.68 |
The field width and precision setting may be used for characters and strings as well. However, these have different meaning. See the following code:
char kh [] ="character String";
printf("%-30.10s\n",kh);
The above code would print 10 characters of variable kh in width 30 with left justification. It will print the fol... | https://ecomputernotes.com/what-is-c/types-and-variables/precision-for-characters-and-strings | CC-MAIN-2019-30 | refinedweb | 709 | 65.42 |
The definition of a business rule typically involves taking data and seeing if it meets certain criteria. In Code Effects, the rule is the criteria expressed as an XML document, and the source object is the data implemented either as a public .NET class, an XML document, or even as a collection of values of defined typ... | https://codeeffects.com/Doc/Business-Rule-Source-Object | CC-MAIN-2021-31 | refinedweb | 1,120 | 55.64 |
Docs |
Forums |
Lists |
Bugs |
Planet |
Store |
GMN |
Get Gentoo!
Not eligible to see or edit group visibility for this bug.
View Bug Activity
|
Format For Printing
|
XML
|
Clone This Bug
Someone make this work. Gives me sandbox violations from scons.
Created an attachment (id=84686) [edit]
dangerdeep-0.1.1.ebuild
Not ... | http://bugs.gentoo.org/130023 | crawl-002 | refinedweb | 839 | 70.29 |
Ticket #1122 (closed bug: fixed)
incorrect orangeom imports in network package
Description
I'm not sure if I'm missing something obvious here, but it seems like the orangeom imports in the Orange.network package simple aren't going to work. In readwrite.py and network.py the import reads as
import orangeom
Surely this ... | http://orange.biolab.si/trac/ticket/1122 | CC-MAIN-2014-15 | refinedweb | 123 | 55.24 |
twicon 0.1.1
twicon #
twicon helps to integrate TW Icon Fonts, into your Flutter apps,
TW Icon Fonts consist of free icons covering topics like sights, products, traffic and so on. They let you to promote your favorite places and cuisines in Taiwan easily.
The icons are designed by a Japanese designer, holoko, and an E... | https://pub.dev/packages/twicon | CC-MAIN-2020-05 | refinedweb | 177 | 68.67 |
I don’t want to come off like a Google fanboy. But I think that the Braille logo:
is the best Google logo evah. Even better than the Mondrian logo?
Yes, even better than the Mondrian logo. In fact, the Braille logo looks even better than the Seurat logo, which does not exist in our time-space continuum. Maybe I can hit... | https://www.mattcutts.com/blog/my-favorite-logo/ | CC-MAIN-2018-17 | refinedweb | 3,092 | 82.24 |
Everything's a box
In this post i'm going to introduce one of the concepts you can use when developing web pages/apps using Theme UI
If you're not familiar with Theme UI take a moment to have a read of the docs... and if you're not familiar with CSS-in-Js perhaps have a read up on that first.
I'm going to talk about on... | https://paulie.dev/posts/2020/07/everythings-a-box | CC-MAIN-2022-05 | refinedweb | 867 | 67.69 |
Using.
Component Playgrounds
You might be wondering “Why would would I need something like this? I can just test my components in the app!” and you’re right. But imagine building a reasonably large application with dozens of routes, hundreds of components and thousands of possible component states. Checking all of thes... | https://simplabs.com/blog/2018/01/24/ember-freestyle.html | CC-MAIN-2018-39 | refinedweb | 1,274 | 54.63 |
XML Schema Attributes ViewEdit online
The Attributes view for XML Schemas presents the properties for the selected component in the schema diagram. By default, it is displayed on the right side of the editor. If the view is not displayed, it can be opened by selecting it from the menu.
The default value of a property i... | https://www.oxygenxml.com/doc/versions/21.1/ug-editor/topics/xml-schema-diagram-attributes-view-x-editing2.html | CC-MAIN-2019-51 | refinedweb | 379 | 64.91 |
- Author:
- SmileyChris
- Posted:
- October 18, 2009
- Language:
- Python
- Version:
- 1.1
- Score:
- 7 (after 7 ratings)
Nicely output all form errors in one block, using field labels rather than the field attribute
Example?
#
Example:
(My line-formatting is going to get wiped out by the Markdown processor, so you'll ... | https://djangosnippets.org/snippets/1764/ | CC-MAIN-2022-27 | refinedweb | 106 | 55.03 |
You can verify this with a simple program, stated below that shows that CryptoStream.Close() is explicitly not required.
The expected result should be 104 since 13 bytes should be allocated. We get 104 with a call to Close() or without calling Close().
1: using System;
2: using System.IO;
3: using System.Security;
4: u... | https://blogs.msdn.microsoft.com/winsdk/2009/11/13/do-you-need-to-explicitly-call-cryptostream-close-to-close-your-cryptostream-object-after-you-are-done-using-it/ | CC-MAIN-2018-39 | refinedweb | 264 | 59.6 |
Tracing a recursive function by hand can be very helpful for understanding the progression of method calls. Examine the following two recursive functions, and attempt to answer the associated questions by tracing the method calls by hand. This is a great time to get out a piece of paper and a writing implement.
def str... | https://www.cs.oberlin.edu/~cs150/lab-7/warmup/ | CC-MAIN-2022-21 | refinedweb | 464 | 75.5 |
Bug #3923
Invalid result-document output in Saxon-HE-9.9.0-1
0%
Description
I've tested latest version of Saxon HE and got invalid output with duplicate namespace. The code looks like this:
<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet <xsl:template <xsl:variable <unit/> </xsl:variable> <xsl:sequence <xsl:resu... | https://saxonica.plan.io/issues/3923 | CC-MAIN-2018-43 | refinedweb | 461 | 58.28 |
> i merged it up in tip/master, could you please check whether it's ok?> Sorry, though this patch avoids accessing a half-created cgroup, but I foundcurrent code may access a cgroup which has been destroyed.The simplest fix is to take cgroup_lock() before for_each_leaf_cfs_rq.Could you revert this patch and apply the f... | http://lkml.org/lkml/2008/12/13/203 | CC-MAIN-2014-42 | refinedweb | 316 | 58.48 |
SSL_get_rbio(3) OpenSSL SSL_get_rbio(3)Powered by man-cgi (2021-06-01). Maintained for NetBSD by Kimmo Suominen. Based on man-cgi by Panagiotis Christias.
NAME
SSL_get_rbio, SSL_get_wbio - get BIO linked to an SSL object
LIBRARY
libcrypto, -lcrypto
SYNOPSIS
#include <openssl/ssl.h> BIO *SSL_get_rbio(SSL *ssl); BIO *SSL... | https://man.netbsd.org/SSL_get_rbio.3 | CC-MAIN-2022-40 | refinedweb | 113 | 58.89 |
#include "libavutil/float_dsp.h"
#include "avcodec.h"
#include "put_bits.h"
#include "aac.h"
#include "audio_frame_queue.h"
#include "psymodel.h"
#include "lpc.h"
Go to the source code of this file.
Definition at line 34 of file aacencdsp_init.c.
Referenced by aac_encode_init().
Definition at line 2484 of file aaccoder... | http://ffmpeg.org/doxygen/trunk/aacenc_8h.html | CC-MAIN-2019-47 | refinedweb | 268 | 70.7 |
14 June 2012 11:24 [Source: ICIS news]
SINGAPORE (ICIS)--Here is Thursday’s end-of-day ?xml:namespace>
CRUDE: July WTI $82.74/bbl, up 12 cents; July BRENT $97.30/bbl, up 17 cents
Crude oil prices were higher in the afternoon as investors await the outcome of an OPEC meeting later on Thursday amid persistent concerns ab... | http://www.icis.com/Articles/2012/06/14/9569289/evening-snapshot-asia-markets-summary.html | CC-MAIN-2014-42 | refinedweb | 276 | 59.23 |
On Mon, Dec 19, 2005 at 08:45:45PM -0800, Russ Allbery wrote: > > (TBH, I'd be much happier just making the technical changes necessary to > > ensure /var is mounted early -- keeps the filesystem sane, and it's just > > a simple matter of programming, rather than arguing over what's ugly. > Yeah, I agree with this too.... | https://lists.debian.org/debian-devel/2005/12/msg00953.html | CC-MAIN-2017-51 | refinedweb | 426 | 65.01 |
Arduino XMAS Hitcounter
The bell is held by a strong paperclip. The small paperclip is used to form a kind of arm that is atached to the servo motor.
Note, that you want to bent the paperclip that holds the bell in a way, that already a little shaking generates a ding.
Step 3: Schematics
There is no real schematic. Jus... | https://duino4projects.com/arduino-xmas-hitcounter/ | CC-MAIN-2020-45 | refinedweb | 630 | 77.13 |
55191/python-typeerror-object-type-class-str-cannot-passed-to-code
I am trying to run the following code:
from Cryptodome.Cipher import AES
key = '0123456789abcdef'
IV='0123456789abcdef'
mode = AES.MODE_CBC
encryptor = AES.new(key, mode,IV=IV)
text = 'hello'
ciphertext = encryptor.encrypt(text)
But I am getting the fol... | https://www.edureka.co/community/55191/python-typeerror-object-type-class-str-cannot-passed-to-code?show=55192 | CC-MAIN-2020-45 | refinedweb | 328 | 62.85 |
Today, we will see how to create a list of lists in Python. There are multiple ways to do that. Let’s get started and see some of the methods.
For Loop and the append() method
The first method is quite simple and straightforward. Initially, we create an empty list lst1, then we run a loop and append lists to lst1.
If w... | https://maschituts.com/how-to-make-a-list-of-lists-in-python/ | CC-MAIN-2021-10 | refinedweb | 693 | 75.2 |
Leopard: Access Dock from the Keyboard
Posted April 5, 2008 by Rob Rogers in Mac OS X Leopard
You can easily access the Leopard Dock from the keyboard without any help from your mouse. This is handy for all keyboard commandos.
You can access your Dock, regardless of what application you are running. Non laptops use the... | https://www.tech-recipes.com/rx/2842/leopard_access_dock_keyboard/ | CC-MAIN-2018-43 | refinedweb | 167 | 64.75 |
LES: Loyc Expression Syntax.
LES is a C-like language with
{braced blocks} and expressions that end in semicolons; its parser is much simpler than C itself. The output of the LES parser is a list of expressions, in the form of tree structures called Loyc trees. In comparison with the syntax trees inside most compilers,... | http://loyc.net/les/ | CC-MAIN-2019-26 | refinedweb | 5,478 | 54.63 |
Project Server 2010 Class Library and Web Service Reference
Last modified: January 06, 2011
Applies to: Office 2010 | Project 2010 | Project Server 2010 | SharePoint Server 2010
The class library and Web service reference for Microsoft Project Server 2010 includes the public namespaces that are usable by third-party de... | http://msdn.microsoft.com/en-us/library/ee767707(d=printer,v=office.14).aspx | CC-MAIN-2014-52 | refinedweb | 177 | 51.99 |
/ && make install cleanTo add the package: pkg install postfix
cd /usr/ports/mail/postfix/ && make install clean
pkg install postfix
PKGNAME: postfix
distinfo:
TIMESTAMP = 1511368835
SHA256 (postfix/postfix-3.2.4.tar.gz) = ec55ebaa2aa464792af8d5ee103eb68b27a42dc2b36a02fee42dafbf9740c7f6
SIZE (postfix/postfix-3.2.4.tar.... | https://www.freshports.org/mail/postfix/ | CC-MAIN-2017-51 | refinedweb | 1,191 | 57.16 |
I am attempting to create a TLE from a set of GPS data. I have code with which I generate an Ephemeris using the base from which I edited but my output is roughly the same. I also have a program that accepts data in Earth Centered Earth Fixed (GTOD) and converts is to the Earth Centered Inertia (GCRF) used in the progr... | https://forum.orekit.org/t/creating-a-tle-from-base-code-from-gorgiastro/1849 | CC-MAIN-2022-33 | refinedweb | 1,558 | 56.66 |
authfor authentication,
adminfor basic data manipulation, or
flatpagesfor the dynamic content that tends to be rarely changed. Sometimes you want to use them, but their functionality doesn't completely fit your needs.
You have several options in that case:
- Use custom models with one-to-one or many-to-one relations, c... | http://djangotricks.blogspot.com/2008/03/hacking-contributed-models.html | CC-MAIN-2017-13 | refinedweb | 418 | 51.65 |
Asked by:
New Release: Reactive Extensions v1.0.10425
We are pleased to announce a new release of the Reactive Extensions (Rx). This new release is an exciting step forward for Rx. Not only will you find many new features and improvements, but you will also see that Rx has expanded its offerings.
Beginning with this re... | https://social.msdn.microsoft.com/Forums/en-US/527002a3-18af-4eda-8e35-760ca0006b98/new-release-reactive-extensions-v1010425?forum=rx | CC-MAIN-2016-07 | refinedweb | 2,694 | 50.73 |
One of the biggest complaints that is leveled at C++ is its lack of garbage
collection. Programmers used to more modern languages such as Java find that
programming in C++ is difficult and error prone because you have to manually
manage memory. To some extent they are right, though most die hard C++
programmers would h... | http://www.codeproject.com/Articles/912/A-garbage-collection-framework-for-C?fid=1859&df=10000&mpp=10&noise=1&prof=True&sort=Position&view=Normal&spc=Relaxed&select=17838&fr=8 | CC-MAIN-2017-17 | refinedweb | 2,839 | 52.6 |
Created
03-22-2018
01:04 PM
Do we have any Data Governance tools for apache phoenix in HDP? As I can see Atlas is not integrated with apache phoenix
Created
03-22-2018
01:59 PM
Hi @Krishna Srinivas
Atlas 0.8 has a data model for HBase which define several components (HBase_namespace, HBase_table, etc). However, there's... | https://community.cloudera.com/t5/Support-Questions/Data-Governance-tools-for-apache-phoenix-in-HDP/m-p/196548 | CC-MAIN-2022-27 | refinedweb | 114 | 73.17 |
Biking data from XML to analysis, part 3
One thing I wanted to do with this data set was experiment with plotting methods. I had already done some exploratory plotting with regular matplotlib, so I had some vague ideas about what I wanted to do.
First I had to select out subsets of data to compare. I knew that there we... | https://szeitlin.github.io/posts/biking_data/biking-data-from-xml-to-plots-part-3/ | CC-MAIN-2022-27 | refinedweb | 598 | 65.12 |
Write You Some FP Maths
Another article in a series where I'll be looking at some mathematical concepts and functional programming stuff in JavaScript.
FP FTW!
Semigroups
This time we're looking at Semigroups 🎉
But what are they?
Well, according to Wikipedia:
a semigroup is an algebraic structure consisting of a set t... | https://dev.to/moosch/semigroups-33eh | CC-MAIN-2020-40 | refinedweb | 1,017 | 70.43 |
Created on 2009-11-19 20:54 by james.lingard, last changed 2009-11-19 22:55 by benjamin.peterson. This issue is now closed.
def f((x)=0): pass
gives the following incorrect error message:
SyntaxError: non-default argument follows default argument
"def f((x)): pass" is treated exactly the same as "def f(x): pass", so
it... | https://bugs.python.org/issue7362 | CC-MAIN-2020-34 | refinedweb | 113 | 77.53 |
REN command with wildcard
I have a batch file, that has been working properly, which renames files in bulk. Example input:
C:\Test\NW\Residents_20190624135727.csv C:\Test\NE\Residents_20190624135727.csv
The batch file being executed has:
ren C:\Test\NW\Residents_*.csv NorthWest_*.txt ren C:\Test\NE\Residents_*.csv Nort... | http://quabr.com/56744498/dos-ren-command-with-wildcard | CC-MAIN-2019-30 | refinedweb | 1,217 | 57.87 |
cochl_sense 1.1.0
cochl_sense: ^1.1.0 copied to clipboard
Sense Dart #
API Library for Dart with audio analysis and recognition solutions from Cochlear.ai
Overview #
Sense API enables developers to extract various non-verbal information from an audio input with the power of audio processing and neural network technique... | https://pub.dev/packages/cochl_sense | CC-MAIN-2022-40 | refinedweb | 1,230 | 53.51 |
For an introduction to WSMQ, see my blog category here.
To use WSMQ from a .NET app, you'll need to install WSE 2.0, as WSMQ uses WSE Authentication for security. Get a copy from Microsoft here.
So, how do you create a Queue using WSMQ? The easiest way is through code.
Add a reference to the WSMQ Service (right click R... | http://codebetter.com/blogs/brendan.tompkins/archive/2004/09/02/24247.aspx | crawl-002 | refinedweb | 330 | 56.35 |
In order to get developers to write Java applications, the UI toolkit has to be easy to learn and use, flexible and extensible, perform well, and be easy to deploy. And lets face it, Swing has its share of issues - its slow, hard to use
for beginners, requires a lot of customization, and more. At the same time, Swing i... | http://www.java.net/cs/user/forum/cs_disc/1437 | crawl-002 | refinedweb | 2,097 | 60.51 |
Sometimes you're so familiar with a class you stop paying attention to it. If you could write the documentation for
java.lang.Foo, and Eclipse will helpfully autocomplete the functions for you, why would you ever need to read its Javadoc? Such was my experience with
java.lang.Math, a class I thought I knew really, real... | http://www.ibm.com/developerworks/java/library/j-math1/index.html?ca=drs- | CC-MAIN-2014-42 | refinedweb | 2,878 | 64.41 |
Android.OS.Handler Class
Syntax
public class Handler : Object: (1) to schedule messages and runnables to be executed as some point in the future; and (2) to enqueue an action to be performed on a different thread than your own.
Scheduling messages is accomplished with the Handler.Post(IRunnable), Handler.PostAtTime(IRu... | https://developer.xamarin.com/api/type/Android.OS.Handler/ | CC-MAIN-2019-04 | refinedweb | 251 | 55.64 |
#include <sys/types.h> #include <sys/buf.h> #include <sys/uio.h> #include <sys/aio_req.h> #include <sys/ddi.h> #include <sys/sunddi.h> int aphysio(int (*strat)( struct buf *), int (*cancel)(struct buf *), dev_t dev, int rw, void (*mincnt)(struct buf *), struct aio_req *aio_reqp);
Pointer to device strategy routine.
Poi... | http://docs.oracle.com/cd/E36784_01/html/E36886/aminphys-9f.html | CC-MAIN-2015-27 | refinedweb | 396 | 60.31 |
Re: [rest-discuss] Re: WADL pushback
Expand Messages
- View SourceOn 13 Jul 2007, at 02:46, Elliotte Harold wrote:
> A. Pagaltzis wrote:I agree very much. Languages are usually defined as a syntax with a
>
> > Impendance mismatch with my language’s data model is not a
> > feature, it’s a liability.
>
> Serialized forma... | https://groups.yahoo.com/neo/groups/rest-discuss/conversations/topics/9469 | CC-MAIN-2014-15 | refinedweb | 1,377 | 71.55 |
Why Buffer? Because buffers cut you some slack.
Inevitably, in our recent series on microcontroller interrupts, the question of how to deal with actual serial data came up. In those examples, we were passing one byte at a time between the interrupt service routine (ISR) and the main body of code. That works great as lo... | https://hackaday.com/2015/10/29/embed-with-elliot-going-round-with-circular-buffers/ | CC-MAIN-2021-39 | refinedweb | 7,999 | 57.61 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.