text stringlengths 20 1.01M | url stringlengths 14 1.25k | dump stringlengths 9 15 ⌀ | lang stringclasses 4
values | source stringclasses 4
values |
|---|---|---|---|---|
The Python WSGI Utility Library
Werkzeug is a WSGI utility library for Python. It's widely used and BSD licensed.
from werkzeug.wrappers import Request, Response @Request.application def application(request): return Response('Hello World!') if __name__ == '__main__': from werkzeug.serving import run_simple run_simple('... | http://werkzeug.pocoo.org/ | CC-MAIN-2017-43 | en | refinedweb |
I have the word infinity appear in my output and I am trying to change its color when it becomes and actual number.
So when I check to see if it isFinite it changes to orange, but then when it actually becomes a number- I cant get it to change to black. I am so close with this, am I writing this wrong?
<span ng-
Am I w... | https://codedump.io/share/NeMgLlz0Kohu/1/angularjs-check-if-ng-model--isfinite | CC-MAIN-2017-43 | en | refinedweb |
ContactData Class
The ContactData class returns information about a pinned link when the GetUserColleagues method of the UserProfileService class is called.
The User Profile Web service namespace is an arbitrary name for a reference to the UserProfileService.asmx Web service in Microsoft Office SharePoint Server 2007..... | https://msdn.microsoft.com/en-us/library/aa980910(v=office.12).aspx | CC-MAIN-2017-43 | en | refinedweb |
I'm hoping anybody could help me with the following.
I have 2 lists of arrays, which should be linked to each-other. Each list stands for a certain object.
arr1
arr2
import numpy as np
arr1 = [np.array([1, 2, 3]), np.array([1, 2]), np.array([2, 3])]
arr2 = [np.array([20, 50, 30]), np.array([50, 50]), np.array([75, 25])... | https://codedump.io/share/aGnqYrGqSwtT/1/combine-list-of-numpy-arrays-and-reshape | CC-MAIN-2017-43 | en | refinedweb |
Doing BFS right-to-left means we can simply return the last node's value and don't have to keep track of the first node in the current row or even care about rows at all. Inspired by @fallcreek's solution (not published) which uses two nested loops to go row by row but already had the right-to-left idea making it easie... | https://discuss.leetcode.com/topic/78981/right-to-left-bfs-python-java | CC-MAIN-2017-43 | en | refinedweb |
[
]
Himanshu Vashishtha commented on HBASE-9539:
--------------------------------------------
Thanks for the review Stack.
Re: naming: These DOT_XXX naming is borrowed from existing code, NameSpaceUpgrade class. But
no problem changing them.
Re: +if (upgrade) {
Yes, that is to add mutual exclusive behavior in the upgra... | http://mail-archives.apache.org/mod_mbox/hbase-issues/201309.mbox/%3CJIRA.12668695.1379268479455.141289.1379356733628@arcas%3E | CC-MAIN-2017-43 | en | refinedweb |
Primarily, I suggested this change to the ML, but I don't explain the detail on that to Nagano-san. Sorry. Paul Eggert <address@hidden> writes: >> From: Keiichiro Nagano (=?ISO-2022-JP?B?GyRCMUpMbjc9MGxPOhsoQg==?=) >> <address@hidden> >> Date: Mon, 22 Apr 2002 05:15:17 +0900 >> >> init_buffer uses environmental variabl... | https://lists.gnu.org/archive/html/emacs-devel/2002-04/msg00782.html | CC-MAIN-2019-22 | en | refinedweb |
4. The Smart Card Product Model¶
The demo provided by cookiecutter-django-shop using the product model “smartcard”, shows how to setup a shop, with a single product type. In our example we use a Smart Card for it. Here the Django model is managed by the merchant implementation.
Smart Cards have many different attribute... | https://django-shop.readthedocs.io/en/latest/tutorial/smartcard-product.html | CC-MAIN-2019-22 | en | refinedweb |
On Aug 6, 2007, at 12:06, Xell Zhang wrote:
> I have compiled and installed SVN 1.4.4 and want to configure it to
> run by using apache2. (On Ubuntu 7.04)
> I followed the book <Version Control with Subversion> and apache2
> successfully started up with svn mods. My configuration in
> httpd.conf is like below:
> <Locat... | https://svn.haxx.se/users/archive-2007-08/0127.shtml | CC-MAIN-2019-22 | en | refinedweb |
Plotting of activation maps¶
The module
nipy.labs.viz provides functions to plot
visualization of activation maps in a non-interactive way.
2D cuts of an activation map can be plotted and superimposed on an anatomical map using matplotlib. In addition, Mayavi2 can be used to plot 3D maps, using volumetric rendering. So... | http://nipy.org/nipy/labs/viz.html | CC-MAIN-2019-22 | en | refinedweb |
Fermat numbers have the form
Fermat numbers are prime if n = 0, 1, 2, 3, or 4. Nobody has confirmed that any other Fermat numbers are prime. Maybe there are only five Fermat primes and we’ve found all of them. But there might be infinitely many Fermat primes. Nobody knows.
There’s a specialized test for checking whethe... | http://www.statsblogs.com/2018/11/27/searching-for-fermat-primes/ | CC-MAIN-2019-22 | en | refinedweb |
Configuration macros for platform, compiler, etc. More...
Configuration macros for platform, compiler, etc.
#include <mi/base/base.h>
The operating system specific default filename extension for shared libraries (DLLs)
Creates an identifier from concatenating the values of
X and
Y, possibly expanding macros in
X and
Y.... | https://raytracing-docs.nvidia.com/iray/api_reference/iray/html/group__mi__base__config.html | CC-MAIN-2019-22 | en | refinedweb |
Additional utils¶
- class
snakemake.utils.
AlwaysQuotedFormatter(quote_func=None, *args, **kwargs)[source]¶
Subclass of QuotedFormatter that always quotes.
Usage is identical to QuotedFormatter, except that it always acts like “q” was appended to the format spec.
- class
snakemake.utils.
QuotedFormatter(quote_func=None... | https://snakemake.readthedocs.io/en/latest/api_reference/snakemake_utils.html | CC-MAIN-2019-22 | en | refinedweb |
. I have decided to name this edition #130-2 so that eventually (well, in about a week), we will be back to uninflated post numbers. Nobody likes inflation. Except perhaps tyres. And balloons.
Your brain at work part 2: Dopamine and more mindfulness
Ironically, the incorrectly numbered post #130 dealt with the many way... | https://cpbotha.net/2018/02/04/weekly-head-voices-130-2-direct-experience-dopamine/ | CC-MAIN-2019-22 | en | refinedweb |
Guide to EJB Set-up
Last modified: November 14, 2018
1. Overview
In this article, we’re going to discuss how to get started with Enterprise JavaBean (EJB) development.
Enterprise JavaBeans are used for developing scalable, distributed, server-side components and typically encapsulate the business logic of the applicati... | https://www.baeldung.com/ejb-intro | CC-MAIN-2019-22 | en | refinedweb |
I've got a bunch of OpenStreetMap content that I'm trying to label (ArcGIS Pro 2.2.4) based on whether content is found in the other_tags field. Here's what I'm trying to do in the expression editor (Python):
def FindLabel ( [other_tags] ):
import re
ls = [other_tags]
slabel = re.search('"name:en"=>"(.*?)","', ls)
retu... | https://community.esri.com/thread/227390-why-isnt-this-label-code-working | CC-MAIN-2019-22 | en | refinedweb |
Hi all,
I have a program, which is invoked from a shell script. I need to return back to the shell script a status, whether the program succeeded or failed, so the shell script determines whether to continue with its normal course of actions or to stop upon faileur.
So, here's what I am assuming, and please do correct ... | https://www.daniweb.com/programming/software-development/threads/130740/system-exit-in-catch-block | CC-MAIN-2022-21 | en | refinedweb |
In many apps there is a need to have distributed cache. For years now, adopting distributed cache on Windows has been a challenge. Most popular product, Redis, is no longer supported on Windows platform. The easiest way to get it going on Windows today is Docker for Windows in my opinion. To do so, first you have to in... | http://www.dotnetspeak.com/asp-net-core/distributed-cache-redis-and-net-core/ | CC-MAIN-2022-21 | en | refinedweb |
#include <rte_mbuf.h>
#include <rte_memory.h>
#include <rte_mempool.h>
#include <rte_common.h>
#include "rte_crypto_sym.h"
Go to the source code of this file.
RTE Cryptography Common Definitions
Definition in file rte_crypto.h.
Crypto operation types
Definition at line 28 of file rte_crypto.h.
Status of crypto operatio... | https://doc.dpdk.org/api-18.05/rte__crypto_8h.html | CC-MAIN-2022-21 | en | refinedweb |
New and Improved
Coming changes to unittest in Python 2.7 & 3.2
The Pycon Testing Goat.
Note
This article started life as a presentation at PyCon 2010. You can watch a video of the presentation:
Since that presentation lots of features have been added to unittest in Python 2.7 and unittest2.
This article also introduce... | http://www.voidspace.org.uk/python/articles/unittest2.shtml | CC-MAIN-2017-04 | en | refinedweb |
Odoo Help
Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Required by state, using the states argument in the field ?
Hi,
In early versions I used to do this:
states={'close': [('required... | https://www.odoo.com/forum/help-1/question/required-by-state-using-the-states-argument-in-the-field-97800 | CC-MAIN-2017-04 | en | refinedweb |
How to Use ES6 for
Universal JavaScript Apps
Now that the dust has settled a bit, I’m finally beginning to use ES6 for production apps — and because I write universal JavaScript, it has to work for both Node.js and browsers.
This won’t be an in-depth tutorial about ES6 features or universal JavaScript (aka isomorphic J... | https://medium.com/javascript-scene/how-to-use-es6-for-isomorphic-javascript-apps-2a9c3abe5ea2 | CC-MAIN-2017-04 | en | refinedweb |
API Basics
This document provides an overview of the basics of the
Draft API. A
working example
is also available to follow along.
Controlled InputsControlled Inputs
The
Editor React component is built as a controlled ContentEditable component,
with the goal of providing a top-level API modeled on the familiar React
co... | https://draftjs.org/docs/quickstart-api-basics.html | CC-MAIN-2018-34 | en | refinedweb |
Configuration push services can be classified into global configuration push and intra-application configuration push in EDAS.
- The Global Configuration Push service pushes configurations to all applications under a given username.
- The (Intra-Application) Configuration Push service only pushes configurations within ... | https://www.alibabacloud.com/help/doc-detail/54463.htm | CC-MAIN-2018-34 | en | refinedweb |
Welcome to our free Java tutorial. This tutorial is based on Webucator's Introduction to Java Training course.
In this lesson, you will learn about error handling within Java.
Lesson Goals
try ... catchstructures to catch expected exceptions.
finallyblocks to guarantee execution of code.
Exceptions are generated when a... | https://www.webucator.com/tutorial/learn-java/exceptions.cfm | CC-MAIN-2018-34 | en | refinedweb |
« Return to documentation listing
MPI_File_delete - Deletes a file.
C Syntax
#include <mpi.h>
int MPI_File_delete(char *filename, MPI_Info info)
Fortran Syntax
INCLUDE 'mpif.h'
MPI_FILE_DELETE(FILENAME, INFO, IERROR)
CHARACTER*(*) FILENAME
INTEGER INFO, IERROR
#include <mpi.h>
static void MPI::File::Delete(const char* ... | http://icl.cs.utk.edu/open-mpi/doc/v1.2/man3/MPI_File_delete.3.php | CC-MAIN-2016-22 | en | refinedweb |
...one of the most highly
regarded and expertly designed C++ library projects in the
world. — Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
set coordinate value (in radian) to a point
Coordinate value will be set correctly, if coordinate system of point is in Degree, Radian value will be converted to Degree... | http://www.boost.org/doc/libs/1_47_0/libs/geometry/doc/html/geometry/reference/access/set/set_from_radian.html | CC-MAIN-2016-22 | en | refinedweb |
Thanks a lot, now it works without linking directly libpython to myserver;) On Fri, Aug 8, 2008 at 8:27 PM, Giuseppe Scrivano <address@hidden> wrote: > Hello, > > The python symbols must be loaded globally. To ensure it (by default > a plugin is not loaded globally) you need to specify these lines in > the myserver.xml... | http://lists.gnu.org/archive/html/bug-myserver/2008-08/msg00002.html | CC-MAIN-2016-22 | en | refinedweb |
In Nagios it is easy to check that a log message happened in the last 48 hours and sound alarm.
But how can I configure Nagios that it should sound alarm when a message did not occur in the last 48 hours? Why is this so hard?
I'm using the "Check WMI Plus" plugin (no agent required) to check the event log on a windows ... | http://serverfault.com/questions/511034/notify-when-a-message-did-not-occur | CC-MAIN-2016-22 | en | refinedweb |
In this article I will explain how to open and start a web page (.aspx page ) from a Window application in C#.Step 1: Initially create new window based project.Execute Visual Studio then go to "File" -> "New" -> "Project..." then select "Windows" -> "Windows Forms application".Step 2: Design your form: drag a button on... | http://www.c-sharpcorner.com/UploadFile/7d3362/call-aspx-page-from-window-application-in-C-Sharp/ | CC-MAIN-2016-22 | en | refinedweb |
OCaml Labs.
Team
Tasks
Multicore
In Progress by KC Sivaramakrishnan (Mar 2013 - Apr 2015)
Github Paper Video. In the case of OCaml, users have come to rely on certain operations being cheap, and OCaml’s C API exposes quite a lot of internals..
A previous design by Doligez et al. for Caml Light was based on many thread-... | http://www.cl.cam.ac.uk/projects/ocamllabs/tasks/compiler.html | CC-MAIN-2016-22 | en | refinedweb |
This article is Day #16 in a series called 31 Days of Windows 8. Each of the articles in this series will be published for both HTML5/JS and XAML/C#. You can find additional resources, downloads, and source code on our website.
Today, our focus is on context menus aka PopupMenu. These are those small little popup comma... | https://dzone.com/articles/31-days-windows-8-html5-day-16 | CC-MAIN-2016-22 | en | refinedweb |
On Wednesday, August 13, 2003, at 03:19 pm, David Jencks wrote:
> On Wednesday, August 13, 2003, at 08:06 AM, James Strachan wrote:
>> On Wednesday, August 13, 2003, at 05:15 am, David Jencks wrote:
>>> On Tuesday, August 12, 2003, at 03:13 PM,) ?
>>>
>>> -- you can deploy a pojo as an mbean with __no__ modification or... | http://mail-archives.apache.org/mod_mbox/geronimo-dev/200308.mbox/%3C8B09F9AC-CD9B-11D7-A504-000A959D0312@yahoo.co.uk%3E | CC-MAIN-2016-22 | en | refinedweb |
Answered by:
get numa node from pointer adress
- Is there a way to learn on which NUMA node a memory block resides? I have an application where large blocks of memory that are externally allocated need to be processed by multiple threads in parallel. I would like something like:
GetNumaNodeNumber(
__in LPVOID ptr,
__ou... | https://social.msdn.microsoft.com/Forums/vstudio/en-US/37a02e17-e160-48d9-8625-871ff6b21f72/get-numa-node-from-pointer-adress?forum=parallelcppnative | CC-MAIN-2016-22 | en | refinedweb |
I am migrating an SL 4 project to SL 5 and I got this build error:
The tag 'TimeUpDown' does not exist in XML namespace 'clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit'
So where did it go to?
thanks for your help.
did you install SL 5 Toolkit ?
Nope. I thought I did. thanks!
did yo... | https://social.msdn.microsoft.com/Forums/silverlight/en-US/9b93e595-d0c5-46b9-a150-581a03f8a6f5/where-is-timeupdown-in-sl-5?forum=silverlightgen | CC-MAIN-2016-22 | en | refinedweb |
Submission only takes namespaces from specific elements: instance, model and main document node. So any namespaces declared in between are not included.
It must be possible to ask the document for all namespaces visible at a certain node instead of the specific copying we are doing now.
Created attachment 215118 [detai... | https://bugzilla.mozilla.org/show_bug.cgi?id=330557 | CC-MAIN-2016-22 | en | refinedweb |
glibmm: Glib::Dispatcher Class Reference
Signal class for inter-thread communication. More...
#include <glibmm/dispatcher.h>
Detailed Description
Signal class for inter-thread communication.:
- Only one thread may connect to the signal and receive notification, but multiple senders are allowed even without locking.
- T... | https://developer.gnome.org/glibmm/unstable/classGlib_1_1Dispatcher.html | CC-MAIN-2016-22 | en | refinedweb |
How to realize the idea of live data in a Grid
Robbie Cheng,
Engineer, Potix Corporation
March 19, 2007
Version
Applicable to ZK Freshly after March 12, 2007
Introduction
In the past,only
Listbox supports "live data" since
ZK's version 1.0. It's an encouraging news that
also supports "live data" from now on. Both
Grid
... | http://www.zkoss.org/smalltalks/livedata/livedataforgrid.dsp | crawl-002 | en | refinedweb |
There are many ways to communicate from one form to another in a Windows
Forms .NET application. However, when using MDI (Multiple Document Interface)
mode, you may often find that the wiring up of simple events may better
suit your needs. This short article illustrates one of the simplest techniques
for having a Child... | http://www.eggheadcafe.com/articles/20040229.asp | crawl-002 | en | refinedweb |
I have a function which makes use of memory on the heap and it will go badly wrong if it is called before another instance of the same function has completed.
How can I prevent this from happening at compile time?
Detecting recursion with any amount determinism of at compile-time is going to be quite difficult. Some st... | https://codedump.io/share/X4Ern1wjv8PS/1/in-c-how-can-i-prevent-a-function-from-being-called-recursively | CC-MAIN-2017-04 | en | refinedweb |
I'm not sure I understand. 1. The default for JSON strings seems to be UTF-8. 2. If a JSON string uses an encoding other than UTF-8, the entire string should be transcoded. This needs to be done when the data its retrieve. For example, by passing an encoding parameter to file:read-text.
Advertising
-- You received this... | https://www.mail-archive.com/zorba-coders@lists.launchpad.net/msg12076.html | CC-MAIN-2017-04 | en | refinedweb |
Java.io.RandomAccessFile.readShort() Method
Description
The java.io.RandomAccessFile.readShort() method reads a signed 16-bit number from this file. The method reads two bytes from this file, starting at the current file pointer.
Declaration
Following is the declaration for java.io.RandomAccessFile.readShort() method.
... | http://www.tutorialspoint.com/java/io/randomaccessfile_readshort.htm | CC-MAIN-2017-04 | en | refinedweb |
Background Worker Threads
IronPython & Windows Forms, Part IX
Note
This is part of a series of tutorials on using IronPython with Windows Forms.
Follow my exploration of living a spiritual life and finding the kingdom at Unpolished Musings.
The BackgroundWorker Class
Recently we tried to add an 'activity indicator' (th... | http://www.voidspace.org.uk/ironpython/winforms/part9.shtml | CC-MAIN-2017-04 | en | refinedweb |
Traceback (most recent call last):It would be great if the Zope folks fixed their code so that the Twisted tests will start passing again. This issue actually impacts all packages that depend on zope.interface -- for example zanshin, which also fails in the Pybots buildslave for the OSAF libraries (graciously set up by... | http://agiletesting.blogspot.com/2006/09/pay-attention-to-new-with-and-as.html | CC-MAIN-2017-04 | en | refinedweb |
im trying to develop a simple database web application in netbeans, but im getting a problem at database connection , my database is not being connected for some reason, the username password and hostname are correct and the mysql workbench is registered with my netbeans as well. is there something wrong with this code... | https://codedump.io/share/74NYruaKs0ID/1/mysql-database-connection-in-java-netbeans | CC-MAIN-2017-04 | en | refinedweb |
Red Hat Bugzilla – Bug 132850
add nscd support for initgroups()
Last modified: 2007-11-30 17:07:04 EST
Description of problem:
When you set "group: files ldap" in "/etc/nsswitch.conf" and you have
a statically build application, a call to "initgroups()" call cause a
segmentation fault.
Version-Release number of selecte... | https://bugzilla.redhat.com/show_bug.cgi?id=132850 | CC-MAIN-2017-04 | en | refinedweb |
Catalyst::Plugin::DateTime - DateTime plugin for Catalyst.
SYNOPSIS
#
METHODS
- datetimeas a default.
- dt
Alias to datetime.
DESCRIPTION
This module's intention is to make the wonders of DateTime easily accesible within a Catalyst application via the Catalyst::Plugin interface.
It adds the methods
datetime and
dt to t... | https://metacpan.org/pod/Catalyst::Plugin::DateTime | CC-MAIN-2017-04 | en | refinedweb |
In this article we will see how to use Java interfaces correctly with with some examples. Using Java as Interfaces is often not used or wrongly used. This article demonstrates the practical uses of Interfaces in Java. First of all it is important to understand what is an interface?
Let us create a “contract” where the ... | http://javabeat.net/java-interface/ | CC-MAIN-2017-04 | en | refinedweb |
mdb;23 24 import javax.ejb.Stateless ;25 26 /**27 * Comment28 *29 * @author <a HREF="mailto:bill@jboss.org">Bill Burke</a>30 * @version $Revision: 44837 $31 */32 @Stateless 33 public class JMSTestBean implements JMSTest34 {35 public boolean wasCalled()36 {37 return JMSMDBBean.called;38 }39 40 public void clearCalled()4... | http://kickjava.com/src/org/jboss/ejb3/test/jca/inflowmdb/JMSTestBean.java.htm | CC-MAIN-2017-04 | en | refinedweb |
source: Several implementations of the Java Virtual Machine have been reported to be prone to a denial of service condition. This vulnerability occurs in several methods in the java.util.zip class. The methods can be called with certain types of parameters however, there does not appear to be proper checks to see wheth... | https://www.exploit-db.com/exploits/22360/ | CC-MAIN-2017-04 | en | refinedweb |
.core.groups;47 48 /**49 * holds the information about a multicast group and serves as a key in the groups map50 * 51 * @author Amir Shevat52 *53 */54 public class GroupKey {55 // the multicast addess56 private String groupIP;57 // the multicast IP58 private int groupPort;59 60 public GroupKey(String groupIP ,int group... | http://kickjava.com/src/org/mr/core/groups/GroupKey.java.htm | CC-MAIN-2017-04 | en | refinedweb |
This code can be copied and pasted in the footer area of any .aspx
file in your website.
The first
thing you'll want to do is create an empty text file, call it
counter.txt and save it to your root directory. The next step is even
easier, copy and paste the code below into your .aspx file and save it.
Be sure to import... | http://www.nullskull.com/q/10121166/hit-counter.aspx | CC-MAIN-2017-04 | en | refinedweb |
IRC bot - full featured, yet extensible and customizable
Project description
pmxbot is bot for IRC and Slack written in Python. Originally built for internal use at YouGov, it’s been sanitized and set free upon the world. You can find out more details on the project website.
Commands
pmxbot listens to commands prefixed... | https://pypi.org/project/pmxbot/1121.1/ | CC-MAIN-2018-26 | en | refinedweb |
I am using java to create a program that gives the user the option to either add two numbers multiply two numbers or see if the 2 numbers are equal this is what i have so far. I know hot to the menu option so that is ommitted. how can i do the equals>> like equals(x,y) or equals(x,plus(x,y)) am i on the right track? an... | https://www.daniweb.com/programming/software-development/threads/381372/adding-multiplying-and-seeing-if-it-is-equal-program-using-java | CC-MAIN-2018-26 | en | refinedweb |
Simple Introduction to Generics in C#
Generics in C# gives the ability to write type independent code rather than allowing a class or method to work with only a specific type.
Let’s consider a scenario where we have to consume a REST service and Deserialize the response to a defined object. The code would be something ... | http://raathigesh.com/Simple-Introduction-to-Generics-in-C/ | CC-MAIN-2018-26 | en | refinedweb |
Scan input from a character string
#include <stdio.h> int sscanf( const char* in_string, const char* format, ... );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The sscanf() function scans input from the character string in_string, under control of the ar... | http://www.qnx.com/developers/docs/6.6.0.update/com.qnx.doc.neutrino.lib_ref/topic/s/sscanf.html | CC-MAIN-2018-26 | en | refinedweb |
Handle various OS signals. More...
#include "angband.h"
#include "game-world.h"
#include "savefile.h"
#include "ui-game.h"
#include "ui-signals.h"
#include "ui-term.h"
#include <signal.h>
#include <sys/types.h>
Handle various OS signals..
Handle signal – abort, kill, etc.
References character_generated, character_saved... | http://buildbot.rephial.org/builds/restruct/doc/ui-signals_8c.html | CC-MAIN-2018-26 | en | refinedweb |
Flush all pending data in a PCM channel's queue and stop the channel
#include <sys/asoundlib.h> int snd_pcm_channel_flush( snd_pcm_t *handle, int channel );
The snd_pcm_plugin_flush() function flushes all unprocessed data in the driver queue by calling snd_pcm_capture_flush() or snd_pcm_playback_flush(), depending on t... | http://www.qnx.com/developers/docs/6.6.0.update/com.qnx.doc.neutrino.audio/topic/libs/snd_pcm_channel_flush.html | CC-MAIN-2018-26 | en | refinedweb |
Get a string of characters from a file
#include <stdio.h> char* input_line( FILE* fp, char* buf, int bufsize ); extern int _input_line_max;
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.; } | http://www.qnx.com/developers/docs/6.6.0.update/com.qnx.doc.neutrino.lib_ref/topic/i/input_line.html | CC-MAIN-2018-26 | en | refinedweb |
ITT: Relationship red flags.
Here, I'll start.
You realize the girl you've been dating for the past 4 weeks only has male friends.
She has fucked a nigger
She has an enema kit under her bathroom sink.
>>592335655
Shit nigger that means she's down for anal.
Red Flag- Her family is really religious.
You find her fucking ... | https://4archive.org/board/b/thread/592335106/itt-relationship-red-flags-here-i-039-ll-start-you-realize-the | CC-MAIN-2018-26 | en | refinedweb |
[
]
Leonardo Uribe commented on MYFACES-1834:
-----------------------------------------
After many hour trying to find a way, I could not find a way to generate this properly. Maybe
the sentence "keep it simple..." applies on this problem and the better is let is as is.
> suffix added to component id when including fil... | http://mail-archives.apache.org/mod_mbox/myfaces-dev/200806.mbox/%3C1918940356.1214240445089.JavaMail.jira@brutus%3E | CC-MAIN-2018-26 | en | refinedweb |
I saw a code here at Cpp Quiz [Question #38]
#include <iostream>
struct Foo
{
Foo(int d) : x(d) {}
int x;
};
int main()
{
double x = 3.14;
Foo f( int(x) );
std::cout << f.x << std::endl;
return 0;
}
Foo f( int(x) );
Foo
Foo f( int(x) );
Foo f( int );
Foo f( int x );
Foo f( int x );
what is this syntax
int(x)in statemen... | https://codedump.io/share/ulNdqTvGI5Gp/1/most-vexing-parse | CC-MAIN-2018-26 | en | refinedweb |
Introduction
The existing built-in Grafana dashboards provided by Red Hat OpenShift Container Platform clusters have a fixed template with many metric details. Whereas with a customized dashboard, a system administrator can focus only on required monitoring parameters. However, it is not easy to accomplish because of c... | https://developer.ibm.com/components/redhat-openshift-ibm-cloud/tutorials/custom-grafana-dashboards-from-pre-configured-prometheus-ocp-43-datasource/ | CC-MAIN-2020-50 | en | refinedweb |
How do you transform a legacy app into one that uses K8s#
Preparing your Application for Migration#
These tasks:
- Extract Configuration Data
- Offload Application State
- Implement Health Checks
- Instrument code for Logging and Monitoring
- Build Administration Logic into API
Extract Configuration Data#
Any informati... | https://fixes.co.za/kubernetes/converting-modernising-applications-for-k8s/ | CC-MAIN-2020-50 | en | refinedweb |
Vehicle Detection, Tracking and Counting
Last page update: 12/04/2017 (Added Python API & OpenCV 3.x support)
Last version: 1.0.0 (see Release Notes for more info)
Hi everyone,
There are several ways to perform vehicle detection, tracking and counting. Here is a step-by-step of a simplest way to do this:
If you use thi... | https://xscode.com/andrewssobral/simple_vehicle_counting | CC-MAIN-2020-50 | en | refinedweb |
Pod::Man is a module to convert documentation in the POD format (the preferred language for documenting Perl) into *roff input using the man macro set. The resulting *roff code is suitable for display on a terminal using nroff(1), normally via man(1)...RRA/podlators-4.14 - 04 Jan 2020 23:32:29 UTC - Search in distribut... | https://metacpan.org/search?q=Pod%3A%3Aman | CC-MAIN-2020-50 | en | refinedweb |
Batch.com iOS SDK
About
Batch is the leading mobile engagement & push notification suite engineered for the mobile era.
Installation
Carthage
github "BatchLabs/ios-sdk"
CocoaPods
pod 'Batch'
Manual
- Download the SDK
- Drag and drop the xcframework into your project
- Add
libsqlite3,
lzand Batch to
Linked Frameworks an... | https://swiftpack.co/package/BatchLabs/Batch-iOS-SDK | CC-MAIN-2020-50 | en | refinedweb |
Multi-class text categorization using state-of-the-art pre-trained contextualized language models, e.g. BERT.
Project description
Text2Class
Build multi-class text classifiers using state-of-the-art pre-trained contextualized language models, e.g. BERT. Only a few hundred samples per class are necessary to get started.... | https://pypi.org/project/text2class/ | CC-MAIN-2020-50 | en | refinedweb |
The evolution of D has been a process of steady, if not always speedy, improvement. In the early days, Walter was the only person working on the language, the reference compiler, and the standard library, though he did accept contributions. Today, numerous people contribute to or maintain a piece of every aspect of D’s... | https://dlang.org/blog/2016/07/13/the-dlang-vision-and-improvement-process/ | CC-MAIN-2020-50 | en | refinedweb |
They?
Noisy Cricket, perhaps?
I find the nesting SD adapters (Micro->Mini->SD) oddly comforting.
For added yucks you can get CF->SD adapters, and then put the CF adapter in a PCMCIA card.
I don't know if you can still find these anywhere, but those and the CF/IDE adapters are great old-laptop-ressurection widgets.
I ca... | https://www.jwz.org/blog/2008/01/treo-700p-old-and-busted-centro-new-hotness/ | CC-MAIN-2020-50 | en | refinedweb |
Originally published in my blog:
When talking about "bad code" people almost certainly mean "complex code" among other popular problems. The thing about complexity is that it comes out of nowhere. One day you start your fairly simple project, the other day you find it in ruins. And no one knows how and when did it happ... | https://dev.to/wemake-services/complexity-waterfall-n2d | CC-MAIN-2020-50 | en | refinedweb |
With this post, I start my last very exciting topic to concepts: define your concepts. Consequentially, I answer the questions I opened in previous posts.
First and foremost, most of the concepts I define are already available in the C++ 20 draft. Therefore, there is no need to define them. To distinguish my concepts f... | http://www.modernescpp.com/index.php/c-20-concepts-defining-concepts | CC-MAIN-2020-50 | en | refinedweb |
Today, I conclude my story to your myths about C++. These myths are around function parameters, the initialisation of class members, and pointer versus references.
When a function takes its parameter and doesn't want to modify it, you have two options.
This was the correctness perspective, but what can be said about th... | https://www.modernescpp.com/index.php/more-myths-of-my-blog-readers | CC-MAIN-2020-50 | en | refinedweb |
Running into a real stumper, this is the first time needing to set up a new site in our Kentico suite since we upgraded to V12, currently on v12.0.25 it is not going smoothly.
I tried to do an Export but am getting this error: (Removing the query for brevity)
ERROR: Error exporting objects.
[DataConnection.HandleError]... | https://devnet.kentico.com/questions/exporting-site-in-portal-mode-causes-error-when-getting-to-the-pages | CC-MAIN-2020-50 | en | refinedweb |
@Component public class DefaultExceptionResponseFactory extends java.lang.Object implements ExceptionResponseFactory
ExceptionResponseFactory. The default implementation creates an
ApiErrorResponseResourceif the exception is an
ApiExceptionand a
ErrorResponseResourcein all other cases.
clone, equals, finalize, getClass... | http://www.hawaiiframework.org/docs/2.0.0.M12/api/org/hawaiiframework/web/exception/DefaultExceptionResponseFactory.html | CC-MAIN-2020-50 | en | refinedweb |
ASPxGaugeControl Class
Represents an ASPxGaugeControl.
Namespace: DevExpress.Web.ASPxGauges
Assembly: DevExpress.Web.ASPxGauges.v18.2.dll
Declaration
public class ASPxGaugeControl : ASPxWebControl, IGaugeContainerEx, IGaugeContainer, ILayoutManagerContainer, INamingContainer, IXtraSerializable, IRequiresLoadPostDataCon... | https://docs.devexpress.com/AspNet/DevExpress.Web.ASPxGauges.ASPxGaugeControl?v=18.2 | CC-MAIN-2020-50 | en | refinedweb |
- When to write a migration test
- How does it work?
- Testing an
ActiveRecord::Migrationclass
- Testing a non-
ActiveRecord::Migrationclass
Testing Rails migrations at GitLab
In order to reliably check Rails migrations, we need to test them against a database schema.
When to write a migration test
- Post migrations (
... | https://docs.gitlab.com/12.10/ee/development/testing_guide/testing_migrations_guide.html | CC-MAIN-2020-50 | en | refinedweb |
At this point our application is complete and tested. At this point you can dive right in to the User’s Guide, but there are a few extra things we can add to further demonstrate some more of Ferris’ capabilities.
Ferris uses Components as a way of organizing commonly used functionality for controllers. Ferris comes wit... | http://ferris-framework.appspot.com/docs21/tutorial/7_extras.html | CC-MAIN-2017-13 | en | refinedweb |
Find the error in the given code :
1 public class Example20{
2 public static void main(String[] args){
3 int a = 0;
4 int b=2;
5 int c = 3;
6 if(a++) {
7 b = a * c;
8 a /= 2;
9 }else {
10 b = b * b;
11 ++c;
12}}}
Find the error in the given code :
1. Error at line number 2
2.Error at line number 6
3.Error at line numbe... | http://www.roseindia.net/tutorial/java/scjp/part2/question20.html | CC-MAIN-2017-13 | en | refinedweb |
Project 1 Speech Detection. Due: Friday, February 1 st , 11:59pm. Outline. Motivation Problem Statement Details Hints Grading Turn in. Motivation. Speech recognition needs to detect word boundaries in raw audio data. “Silence Is Golden”. Motivation. Recognizing silence can 1Speech Detection
Due: Friday, February 1st, 1... | http://www.slideserve.com/zorina/project-1-speech-detection | CC-MAIN-2017-13 | en | refinedweb |
The XPath 2.0 Data Model
February 2, 2005
In everything I've written in this column so far about XSLT 2.0, I've been cherry-picking—taking fun new features and plugging them into what were otherwise XSLT 1.0 stylesheets in order to demonstrate these features. As XSLT 2.0 and its companion specification XQuery 1.0 appro... | http://www.xml.com/pub/a/2005/02/02/xpath2.html | CC-MAIN-2017-13 | en | refinedweb |
Definition
An instance of type random_source is a random source. It allows to generate uniformly distributed random bits, characters, integers, and doubles. It can be in either of two modes: In bit mode it generates a random bit string of some given length p ( 1 < = p < = 31) and in integer mode it generates a random i... | http://www.algorithmic-solutions.info/leda_manual/random_source.html | CC-MAIN-2017-13 | en | refinedweb |
I'm using MSVC++ 6.0 and I have created a class. The declaration is in a .hpp file and the implementation is in a .cpp file. Both files have been manually added to the project and the .hpp file is included in the main file. Yet it won't build as it says my class is not a class or namespace. The compiler can clearly fin... | https://cboard.cprogramming.com/cplusplus-programming/63425-cant-see-header.html | CC-MAIN-2017-13 | en | refinedweb |
I am getting very strange results from the following:
def list(self)
import shelve
db = shelve.open(testfile)
list = []
cnt = 0
for id in db.keys():
print db[id].info()
the testfile was written with an class defined object;
What i am finding, is if I write 50 objects, the above code prints
only 38 objects, and there ar... | https://www.daniweb.com/programming/software-development/threads/100904/how-do-you-iterate-though-a-file-on-a-shelf | CC-MAIN-2017-13 | en | refinedweb |
Models are responsible for persisting data and containing business logic. Models are direct interfaces to Google App Engine’s Datastore. It’s recommended that you encapsulate as much of your business and workflow logic within your models (or a separate service layer) and not your controllers. This enables you to use yo... | http://ferris-framework.appspot.com/docs21/users_guide/models.html | CC-MAIN-2017-13 | en | refinedweb |
Introduction
Notifications are a very useful way to interact with your application's users and, with Android Wear, we now also have wearable devices running Android. It's therefore a good idea to learn how to take advantage of these new features by adding appropriate actions to notifications or by creating actions that... | https://code.tutsplus.com/tutorials/enhanced-and-wearable-ready-notifications-on-android--cms-21868 | CC-MAIN-2017-13 | en | refinedweb |
Note
The part of uicfg that deals with primary views is in the Primary view configuration chapter.
This module (cubicweb.web.views.uicfg) regroups a set of structures that may be used to configure various options of the generated web interface.
To configure the interface generation, we use RelationTag objects.
from cub... | https://docs.cubicweb.org/book/devweb/rtags.html | CC-MAIN-2017-13 | en | refinedweb |
Multiple Projects
When multiple projects use the same or similar resources, you may wish to share or integrate these project resources. Here we address four scenarios: Sharing helper methods between projects, sharing data sources between projects, and importing tests from other projects.
Sharing Helper Methods Between ... | http://docs.telerik.com/teststudio/knowledge-base/project-configuration-kb/multiple-projects | CC-MAIN-2017-13 | en | refinedweb |
Lazy Operations
Some of the operations in RavenDB can be evaluated lazily (performed only when needed).
This section will describe each of the available lazy operations:
* Querying
* Faceted searching
* Suggesting
Querying
To perform query below
IEnumerable<User> users = session .Query<User>() .Where(x => x.Name == "jo... | https://ravendb.net/docs/article-page/2.5/csharp/client-api/querying/lazy-operations | CC-MAIN-2017-13 | en | refinedweb |
#include <quad.h>
#include <quad.h>
Inheritance diagram for aeQuad:
Definition at line 35 of file quad.h.
Create a quad with no name.
Naturally you won't be able to find this object from the engine by name.
Create a quad given a name.
[virtual]
Draw the quad.
This is called by aeEngine::Render(). You shouldn't need to ... | http://aeengine.sourceforge.net/documentation/online/pubapi/classaeQuad.html | CC-MAIN-2017-13 | en | refinedweb |
Integrating BowerStatic¶
Introduction¶
This tutorial explains how to use BowerStatic with a WSGI application. BowerStatic doesn’t have a huge API, but your web framework may provide more integration, in which case you may only have to know even less.
The Bower object¶
To get started with BowerStatic you need a
Bower
in... | http://bowerstatic.readthedocs.io/en/latest/integrating.html | CC-MAIN-2017-13 | en | refinedweb |
We can add functional tests to our application to verify all of the functionality that we claim to have. Ferris provides you with the ability to test our application’s controllers in the same way that we tested our data model.
Before we get started testing, we need to add a root route so that goes to /posts.
Modify app... | http://ferris-framework.appspot.com/docs21/tutorial/6_functional_testing.html | CC-MAIN-2017-13 | en | refinedweb |
Captures loop safety information. More...
#include "llvm/Analysis/MustExecute.h"
Captures loop safety information.
It keep information for loop & its header may throw exception or otherwise exit abnormaly on any iteration of the loop which might actually execute at runtime. The primary way to consume this infromation i... | http://llvm.org/doxygen/structllvm_1_1LoopSafetyInfo.html | CC-MAIN-2018-39 | en | refinedweb |
I have been investigating several ways of generating files suitable for use in Excel from a C# application.
As with most problems, there is more than one way to crack a nut. Various examples on the web show how to generate formatted sheets in Excel, either by controlling Excel from a C# application or by transforming X... | http://www.woodwardweb.com/dotnet/generating_exce.html | CC-MAIN-2018-39 | en | refinedweb |
Okay, I don't think I understand definitions, really. How does this work? With this
def travel_cost function, can't I just call hotel_cost, plane_cost and rental_cost? I don't understand. Please help!
def hotel_cost(nights): return 140 * nights def plane_ride_cost (city): if city == "Charlotte": return 183 elif city ==... | https://discuss.codecademy.com/t/i-dont-think-i-understand-definitions/81527 | CC-MAIN-2018-39 | en | refinedweb |
GameFromScratch.com
Since the release of Phaser 3.0 earlier this year, the HTML5 game framework has seen a rapid succession of updates. Today Phaser 3.8.0 was released, this release focusing heavily on the plugin system, making it easier to acquire and ultimately use them in your game. This release also enables you to ... | http://www.gamefromscratch.com/?tag=/Phaser | CC-MAIN-2018-39 | en | refinedweb |
Container management and automation tools are today a great necessity, since IT organisations need to manage and monitor distributed and cloud/native based applications. Let’s take a look at some of the best open source tools that are available to us today for containerisation.
The Linux operating system, LXC, the buil... | https://opensourceforu.com/2017/09/open-source-tools-for-containerisation/ | CC-MAIN-2018-39 | en | refinedweb |
libssh2_channel_send_eof man page
libssh2_channel_send_eof — send EOF to remote server
Synopsis
#include <libssh2.h>
int libssh2_channel_send_eof(LIBSSH2_CHANNEL *channel);
Description
Tell the remote host that no further data will be sent on the specified channel. Processes typically interpret this as a closed stdin d... | https://www.mankier.com/3/libssh2_channel_send_eof | CC-MAIN-2018-39 | en | refinedweb |
A Configuration and Tweak SystemSetting up a configuration system for a game sounds like a trivial task. What exactly is there to store beyond some graphics, sound and controller information? For the final released game, those items cover most of the needs of a simple game, but during development it is handy to store c... | https://www.gamedev.net/articles/programming/general-and-gameplay-programming/configuration-and-tweaking-r3154/ | CC-MAIN-2018-39 | en | refinedweb |
Custom TraceSource and debugging using IntelliTrace
December 16, 2014.
using System; using System.Diagnostics; namespace CustomTracing { class TraceListenerForIntelliTrace : TraceListener { ///<summary> /// A class scope variable that holds the contents of the current /// trace message being sent to this custom TraceLi... | https://blogs.msdn.microsoft.com/devops/2014/12/16/custom-tracesource-and-debugging-using-intellitrace/ | CC-MAIN-2018-39 | en | refinedweb |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.