text stringlengths 20 1.01M | url stringlengths 14 1.25k | dump stringlengths 9 15 ⌀ | lang stringclasses 4
values | source stringclasses 4
values |
|---|---|---|---|---|
The Dequeue() method is used to returns the object at the beginning of the Queue. This method is similar to the Peek() Method. The only difference between Dequeue and Peek method is that Peek() method will not modify the Queue but Dequeue will modify. This method is an O(1) operation and comes under
System.Collections.... | https://www.geeksforgeeks.org/getting-an-object-at-the-beginning-of-the-queue-in-c-sharp/ | CC-MAIN-2021-10 | en | refinedweb |
In doing Flash Development for a multi-swf site, we ran into the “first class wins” problem. Basically, an ActionScript class’ bytecode is stored with the SWF that uses it. If the compiler detects a SWF being used, it’ll compile it in. This means, in a website that utilizes multiple SWF’s, 2 SWF’s that utilize the same... | https://jessewarden.com/2006/09/modular-actionscript-development.html | CC-MAIN-2021-10 | en | refinedweb |
Having some issues getting my repository to retrieve information - keeps coming back null. Any Thoughts would be appreciated - new to this and teaching myself.
Repository:
public class CustomerRepository : ICustomerRepository { private masterContext context; public CustomerRepository(masterContext context) { this.conte... | https://entityframeworkcore.com/knowledge-base/39022090/csharp-entity-framework-core---repository | CC-MAIN-2021-10 | en | refinedweb |
Talk:Main Page
- 1 News discussion page?
- 2 Multibyte character(especially Japanese & Chinese) contents corruption by the Wiki update
- 3 Cleaning Main Page Talk
- 4 Tutorial link
- 5 Nothing in Source sdk is working
- 6 Counter-Strike Mod?
- 7 January 5th update now causing Hammer to crash
- 8 Anti-Spam Brigade
- 9 I... | https://developer.valvesoftware.com/w/index.php?title=Talk:Main_Page&oldid=25786 | CC-MAIN-2021-10 | en | refinedweb |
Creating Custom Html Helper Methods Part 2
In a previous post we talked about creating custom html helpers. The implementation there involved customizing helpers that already existed in the ASP.NET MVC framework. In this post we will talk about creating our own helpers from scratch. This will allow us to create helpers... | https://www.ojdevelops.com/2015/12/creating-custom-html-helper-methods.html | CC-MAIN-2021-10 | en | refinedweb |
The Laravel team released 8.13 this week and updated the changelog detailing all the new features in last week’s 8.12 release. The new features added to Laravel over the previous few weeks are packed with exciting framework updates, so let’s look at what’s new!
8.12: Create Observers With a Custom Path
@StefanoDucciCon... | https://laravel-news.com/laravel-8-13-0 | CC-MAIN-2021-10 | en | refinedweb |
, Cdf, Suite import thinkbayes2 import thinkplot import numpy as np from scipy.special import gamma import pymc3 as pm (as, in fact, they did)?
Let's assume that Germany has some hypothetical goal-scoring rate, λ, in goals per game.
To represent the prior distribution of λ, I'll use a Gamma distribution with mean 1.3, ... | https://nbviewer.jupyter.org/github/AllenDowney/ThinkBayes2/blob/master/examples/world_cup_mcmc.ipynb | CC-MAIN-2021-10 | en | refinedweb |
.util.mime;50 51 import java.util.ArrayList ;52 import java.util.List ;53 import java.util.StringTokenizer ;54 55 /**56 * Class which represents a MimeType including the suffixes which are mapped to the mime type.57 *58 * @author Anthony Eden59 */60 61 public class MimeType {62 63 /**64 * Delimiter for separating suffi... | http://kickjava.com/src/org/jpublish/util/mime/MimeType.java.htm | CC-MAIN-2018-26 | en | refinedweb |
Details
You can use these API anywhere in the application. Here are several usage examples:
- A game keeps a score for a player. Suppose players get credits and promotions based on their score. You can maintain the score as secure data while the game is being played and save it as secure storage when the game is closed... | https://software.intel.com/en-us/app-security-api/details | CC-MAIN-2018-26 | en | refinedweb |
GC_malloc, GC_malloc_atomic, GC_free, GC_realloc, GC_enable_incremental, GC_register_finalizer, GC_malloc_ignore_off_page, GC_malloc_atomic_ignore_off_page, GC_set_warn_proc - Garbage collecting malloc replacement
#include <gc.h> void * GC_malloc(size_t size); void GC_free(void *ptr); void * GC_realloc(void *ptr, size_... | http://huge-man-linux.net/man3/gc.html | CC-MAIN-2018-26 | en | refinedweb |
This will fail to compile on SGI Irix 6.5 systems (at least using the SGI C compiler). The problem is that HAVE_MBRTOWC is not defined so lib/quotearg.c, at line 70, has: # define mbstate_t int But, <wctype.h> is then included, and this include <wchar.h>, which comes across: typedef char mbstate_t; The fix is to define... | http://lists.gnu.org/archive/html/bug-findutils/2002-04/msg00001.html | CC-MAIN-2018-26 | en | refinedweb |
Provides a splitter component for Angular Dart
@Component( selector: 'my-app', styles: const [ ''' :host { display: block; width: 100%; height: 100%; } .container { width: 50%; height: 50%; display: flex; flex-direction: row; background-color: black; } .panel { height: 100%; width: calc((100% - 14px) / 3); } ''' ], tem... | https://pub.dartlang.org/packages/webide_splitter | CC-MAIN-2018-26 | en | refinedweb |
Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.
Tcl D-Bus Interface
dbif - Application layer around the Tcl D-Bus library
Synopsis
package require Tcl 8.5
package require dbus 2.1
package require dbif 1.3
dbif connect ?-bus bustype? ?-noqueue? ?-replace? ?-yield? ?name ...?
dbif default ?-bus bu... | https://chiselapp.com/user/schelte/repository/dbif/info/3ad654f7e4bc6b0e67d7eac488e6d36d8db84329736012a62d480d9dc4e7b341 | CC-MAIN-2018-26 | en | refinedweb |
Are you sure?
This action might not be possible to undo. Are you sure you want to continue?
8865
Return of U.S. Persons With Respect to Certain Foreign Partnerships
Attach to your tax return. See separate instructions. Information furnished for the foreign partnership’s tax year (see instructions) beginning , 2002, and... | https://www.scribd.com/document/543013/US-Internal-Revenue-Service-f8865-2002 | CC-MAIN-2018-26 | en | refinedweb |
render() { const {isLoading, products} = this.props.products; if (isLoading) { return <Loader isVisible={true}/>; } return (<View style={styles.wrapper}> <Header/> <ScrollView style={styles.scrollView}> <ProductsContainer data={{productsList: { results: products }}}/> </ScrollView> <SearchBar style={styles.searchBar}/>... | https://www.experts-exchange.com/questions/29094954/Why-is-top-0-for-absolute-component-not-working-in-react-native.html | CC-MAIN-2018-26 | en | refinedweb |
can be included within parent XML documents using the XML namespace facilities described in Namespaces in XML.
An SVG document that is included within a parent XML document is a Conforming Included SVG Document if the SVG document, documents. A Conforming SVG Interpreters must be able to:
An SVG viewer is a program wh... | http://www.w3.org/1999/06/25/WD-SVG-19990625/conform.html | CC-MAIN-2018-26 | en | refinedweb |
Twig: Sandbox Information Disclosure
Affected versions¶
Twig 1.0.0 to 1.37.1 and 2.0.0 to 2.6.2 are affected by this security issue.
The issue has been fixed in Twig 1.38.0 and 2.7.0.
Description¶
This vulnerability affects the sandbox mode of Twig. If you are not using the sandbox, your code is not affected.
Twig allo... | https://symfony.com/blog/twig-sandbox-information-disclosure?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+symfony%2Fblog+%28Symfony+Blog%29 | CC-MAIN-2020-24 | en | refinedweb |
How to create and use Middleware
id_admin column in my users table if use have is_admin = 1 then it can access "admins" route. So first create IsAdminMiddleware middleware using bellow command:
Create Middleware
php artisan make:middleware IsAdminMiddleware
Ok, now you can found IsAdminMiddleware.php in app/Http/Middle... | https://www.itsolutionstuff.com/post/how-to-create-and-use-middleware-in-laravel-5example.html | CC-MAIN-2020-24 | en | refinedweb |
Another question. If I want to have multi pair traded expert how do I initialize it? In CExpertAdvisorBase::Init() I have to specify a symbol name.
Table of Contents
- Introduction
- The Expert Advisor Class
- Initialization
- New Bar Detection
- OnTick Handler
- Expert Advisors Container
- Persistence of Data
- Exampl... | https://www.mql5.com/en/articles/3622 | CC-MAIN-2020-24 | en | refinedweb |
Hi,
I've found a frustrating type inference issue when writing code which
uses Jesse Eichar's Scala IO library.
Here's a really short example:
import scalax.file.ramfs.RamFileSystem
object Test extends App {
val fs = new RamFileSystem()
val root = fs.root / "somedir" createDirectory()
val indexDir = root / "_index" cre... | https://intellij-support.jetbrains.com/hc/en-us/community/posts/206639445-Type-inference-issue-when-using-Scala-IO-0-4?sort_by=votes | CC-MAIN-2020-24 | en | refinedweb |
PowerShell Custom Type Module
Dr Scripto hand at Windows PowerShell. I was on the Windows PowerShell 1.0 team, with Bruce, Jim, and all the rest. My primary responsibility was for pipeline execution and error handling. I started at Microsoft in September 1989 (25 years ago!). I wrote management UI and infrastructure fo... | https://devblogs.microsoft.com/scripting/powershell-custom-type-module/ | CC-MAIN-2020-24 | en | refinedweb |
#include <CGAL/Polygon_set_2.h>
CGAL::General_polygon_set_2< Gps_segment_traits_2< Kernel, Container > >.
The class
Polygon_set_2 represents sets of linear polygons with holes.
The first two template parameters (
Kernel and
Container) are used to instantiate the type
Polygon_2<Kernel,Container>. This type is used to re... | https://doc.cgal.org/latest/Boolean_set_operations_2/classCGAL_1_1Polygon__set__2.html | CC-MAIN-2020-24 | en | refinedweb |
#include <stdio.h>
void main()
{
int x, y, Area, Perimeter;
int *ptrx = &x ;
int *ptry = &y;
clrscr();
printf("Enter the sides of a rectangle");
scanf("%d %d", ptrx, ptry );
printf("x = %d\t y = %d\n",*ptrx, *ptry);
Area = *ptrx * *ptry;
Perimeter= 2*(*ptrx + *ptry);
printf("Area of rectangle= %d\n" ,Area);
printf("Per... | https://mail.ecomputernotes.com/what-is-c/function-a-pointer/area-and-perimeter-of-a-rectangle-using-pointers | CC-MAIN-2020-24 | en | refinedweb |
Difference between revisions of "ImageJ Ops"
Revision as of 11:01,
Ops are a special type of ImageJ plugin, so a basic understanding of the SciJava plugin framework is strongly recommended.
In addition to cloning the imagej-ops repository itself, the following components have useful Ops examples:
- ImageJ-tutorials - e... | https://imagej.net/index.php?title=ImageJ_Ops&diff=prev&oldid=19053 | CC-MAIN-2020-24 | en | refinedweb |
SPARK-2764 (and some followup commits) simplified PySpark's worker process structure by removing an intermediate pool of processes forked by daemon.py. Previously, daemon.py forked a fixed-size pool of processes that shared a socket and handled worker launch requests from Java. After my patch, this intermediate pool wa... | https://issues.apache.org/jira/browse/SPARK-3358 | CC-MAIN-2019-43 | en | refinedweb |
string_splitter 0.1.0+1
string_splitter #
Utility classes for splitting strings and files into parts. Supports streamed parsing for handling long strings and large files.
Usage #
string_splitter has 2 libraries, [string_splitter] for parsing strings, and [string_splitter_io] for parsing files.
Parsing Strings #
import ... | https://pub.dev/packages/string_splitter | CC-MAIN-2019-43 | en | refinedweb |
.
ListView is broken for me on Android when using custom ViewCells. Some of them are not showing up. I can see the binding updating fine, the ViewCells ctor is being called correctly, but not all items are shown on screen.
I have some ListViews that just use TextCell, and these does not cause any trouble for me.
Downgr... | https://xamarin.github.io/bugzilla-archives/31/31565/bug.html | CC-MAIN-2019-43 | en | refinedweb |
A friendly library for parsing and validating HTTP request arguments, with built-in support for popular web frameworks, including Flask, Django, Bottle, Tornado, Pyramid, webapp2, Falcon, and aiohttp.
Project description
webargs is a Python library for parsing and validating HTTP request arguments, with built-in suppor... | https://pypi.org/project/webargs/4.3.0/ | CC-MAIN-2019-43 | en | refinedweb |
Android App Development with Java: All About Android Activities
If you look in the app/manifests branch in Android Studio’s Project tool window, you see an
AndroidManifest.xml file. The file isn’t written in Java; it’s written in XML.
Here is some code from an
AndroidManifest.xml file. With minor tweaks, this same code... | https://www.dummies.com/programming/java/android-app-development-java-android-activities/ | CC-MAIN-2019-43 | en | refinedweb |
Provided by: libpcre2-dev_10.32-5_amd64
NAME
PCRE2 - Perl-compatible regular expressions (revised API)
SYNOPSIS
#include <pcre2.h> pcre2_match_data *pcre2_match_data_create(uint32_t ovecsize, pcre2_general_context *gcontext);
DESCRIPTION
This function creates a new match data block, which is used for holding the result... | http://manpages.ubuntu.com/manpages/eoan/man3/pcre2_match_data_create.3.html | CC-MAIN-2019-43 | en | refinedweb |
auth_token in keystone v3
I'm using RDO liberty on CentOS and i'm having problems with getting a useable
auth_token from keystone v3 python client:
from keystoneclient.v3 import client as v3client from keystoneclient.auth.identity import v3 as v3ident from keystoneclient import session from keystoneclient import client... | https://ask.openstack.org/en/question/89833/auth_token-in-keystone-v3/?sort=oldest | CC-MAIN-2019-43 | en | refinedweb |
Java naming conventions are sort of guidelines which application programmers are expected to follow to produce a consistent and readable code throughout the application. If teams do not not follow these conventions, they may collectively write an application code which is hard to read and difficult to understand.
Java ... | https://howtodoinjava.com/java/basics/java-naming-conventions/ | CC-MAIN-2019-43 | en | refinedweb |
Introduction.
This is a tutorial for Fibonacci series in Java. The program is given below that get the number from user and print the Fibonacci Series. The program is not extendable. Go enjoy the program. Lets begin….
Program for Fibonacci Series in Java.
//import Scanner as we require it. import java.util.Scanner; // ... | https://techtopz.com/java-programming-fibonacci-series/ | CC-MAIN-2019-43 | en | refinedweb |
Douglas Adams's Whale
Ryan Palo
Updated on
・6 min read
Intro
I think it is important to find ways that your background or experience specifically help you to stand out in any given group. If you can pinpoint those areas, the group can optimize its tool set and have a better idea of who would be best suited to a specifi... | https://practicaldev-herokuapp-com.global.ssl.fastly.net/rpalo/douglas-adamss-whale | CC-MAIN-2019-43 | en | refinedweb |
- invoking method from dataGridView1_CellClick with passthru to CellDoubleClick
- How convert Excel data into DataSet/DataTable?
- Getting only datagrid results?
- Question about attributes
- Generics and Reflection
- Retrieve private fields
- Using a javascript alert box
- running DTS package from windows form using C... | https://bytes.com/sitemap/f-326-p-76.html | CC-MAIN-2019-43 | en | refinedweb |
Wikiversity:Colloquium/archives/August 2010
Contents
- 1 m:Requests for comment/Global banners
- 2 WV:Custodian feedback#Ottava Rima
- 3 WV:AGF
- 4 The alleged discretionary "rights" of wikiversity custodians
- 5 EDP updates need approval
- 6 Friendly treat v hostile threat
- 7 Help:OTRS
- 8 Wikiversitans in London
- 9... | https://en.wikiversity.org/wiki/Wikiversity:Colloquium/archives/August_2010 | CC-MAIN-2019-43 | en | refinedweb |
Manage all events on workflows
Project Description
Release History Download Files
Install
Install the package via pypi:
pip install django-workflow-activity
Add the installed application in the django settings file:
INSTALLED_APPS = ( ... 'workflow_activity' )
Migrate the database:
python manage.py migrate
Usage
To cre... | https://pypi.org/project/django-workflow-activity/ | CC-MAIN-2017-34 | en | refinedweb |
Last updated on MARCH 06, 2013
Applies to:Oracle Communications Order and Service Management - Version 6.3.1 to 6.3.1 [Release 6.3]
Information in this document applies to any platform.
This problem can occur on any platform.
***Checked for relevance on 06-Mar-2013***
Symptoms
-- Problem Statement:
com.mslv.oms.metadat... | https://support.oracle.com/knowledge/More%20Applications%20and%20Technologies/735882_1.html | CC-MAIN-2017-34 | en | refinedweb |
Playing Sounds
In the earlier example, we used the play method. You can add some optional parameters to have more control over playback. The first parameter represents the starting position, the second parameter the number of times to loop the sound.
In this example, the sound starts at the three-second position and lo... | https://www.blograby.com/developer/playing-sounds-displaying-progress.html | CC-MAIN-2017-34 | en | refinedweb |
Hi Xiao, Played with Struct a bit and seems like a perfect fit for what I was looking for. Thanks a lot for the suggestion. Having some issues while trying to figure out the data type of the value on the python side but most likely that could be because of python runtime version mismatch issue, which I'm discussing in ... | https://www.mail-archive.com/protobuf@googlegroups.com/msg11990.html | CC-MAIN-2017-34 | en | refinedweb |
IntroductionIn every mobile app,there is requirement for storing data and accessing data. We need to store data in our Phones to persist data when the application is not running.However fortunatley Windows Phone 7 &windows phone 8 provides a secure way to store data into Isolated Store.Isolated Storage, as the name sug... | http://bsubramanyamraju.blogspot.com/2014/01/how-to-store-listbox-items-into.html | CC-MAIN-2017-34 | en | refinedweb |
When I compile some old source code downloaded from Internet, I sometimes encounter the problems with
#include <fstream.h>
#include <iostream.h>
The g++ compiler in cygwin claims the following errors:
In file included from /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/backward/fstream.h:31,
from decode.cpp:5:
/usr/lib/... | https://cboard.cprogramming.com/cplusplus-programming/100875-problems-istream.html | CC-MAIN-2017-34 | en | refinedweb |
Introduction
Images are the best attraction for every mobile app.But Users have high expectations when it comes to using applications on their mobile devices. It is important to have good performance and quality in your applications and there are a number of things you can do to deliver great performance.So as s develo... | http://bsubramanyamraju.blogspot.com/2014/01/windows-phone-8-listbox-images-out-of.html | CC-MAIN-2017-34 | en | refinedweb |
WCF’s fundamental communication mechanism is SOAP-based Web services. Because WCF implements Web services technologies defined by the WS-* specifications, other software which is based on SOAP and supports WS-* specifications can communicate with the WCF-based applications.
To build up a cross-platform WCF server, you ... | http://www.codepool.biz/java-client-and-wcf-server.html | CC-MAIN-2017-34 | en | refinedweb |
Booting Linux: EFI and Management Processor
- EFI and POSSE
- Configuring the Management Processor (MP).
EFI and POSSE
EFI is an interface between your operating systems and platform firmware. POSSE is the HP implementation of EFI that contains additional commands beyond the ones available through EFI alone. You'll use... | http://www.informit.com/articles/article.aspx?p=359419 | CC-MAIN-2017-34 | en | refinedweb |
Class: QgsLayerTreeNode¶
- class
qgis.core.
QgsLayerTreeNode(t: QgsLayerTreeNode.NodeType, checked: bool = True)¶
Bases:
PyQt5.QtCore.QObject
Constructor
QgsLayerTreeNode(other: QgsLayerTreeNode)
This class is a base class for nodes in a layer tree. Layer tree is a hierarchical structure consisting of group and layer n... | https://qgis.org/pyqgis/master_temp/core/QgsLayerTreeNode.html | CC-MAIN-2019-39 | en | refinedweb |
This post describes briefly how to use Entity Framework 6.1.1 to create a database out of a Model defined in code. The goal is to have a summary with all the steps needed with the minimum overhead of information. I will use a Console Application.
Pre Requisites
Install Entity Framework from Nuget.
By default the create... | https://softwarejuancarlos.com/2014/07/25/entity-framework-6-code-first/ | CC-MAIN-2019-39 | en | refinedweb |
Now, we will see how to use the LSTM network to generate Zayn Malik's song lyrics. The dataset can be downloaded from here () ,which has a collection of Zayn's song lyrics.
First, we will import the necessary libraries:
import tensorflow as tfimport numpy as np
Now, we will read our file containing the song lyrics:
wit... | https://www.oreilly.com/library/view/hands-on-reinforcement-learning/9781788836524/9084fc18-8040-4528-b939-3455fa652915.xhtml | CC-MAIN-2019-39 | en | refinedweb |
First issue: the new "spinlock" appears to use CAS more than
necessary, I think it can be simplified to this:
Index: subversion/libsvn_fs_base/bdb/env.c
===================================================================
--- subversion/libsvn_fs_base/bdb/env.c (revision 18266)
+++ subversion/libsvn_fs_base/bdb/env.c (w... | https://svn.haxx.se/dev/archive-2006-01/0925.shtml | CC-MAIN-2019-39 | en | refinedweb |
import "gopkg.in/mafredri/cdp.v0/rpcc"
Package rpcc provides an RPC client connection with support for the JSON-RPC 2.0 specification, not including Batch requests. Server side RPC notifications are also supported.
Dial connects to an RPC server listening on a websocket using the gorilla/websocket package.
conn, err :=... | https://godoc.org/gopkg.in/mafredri/cdp.v0/rpcc | CC-MAIN-2019-39 | en | refinedweb |
id='19'
var dataSource = [
{ id: 'table1-1', desc: 'Table 1 Foo', realId: 1 },
{ id: 'table1-2', desc: 'Table 1 Bar', realId: 2 },
{ id: 'table2-1', desc: 'Table 2 Foo', realId: 1 },
{ id: 'table2-2', desc: 'Table 2 Bar', realId: 2 },
...
];
Jeremy Falcon wrote:with IDs like "table-id" to namespace them in essence.
id:... | https://www.codeproject.com/Lounge.aspx?msg=5464564 | CC-MAIN-2019-39 | en | refinedweb |
- Dan Williams authored
commit a95c90f1 upstream. The last step before devm_memremap_pages() returns success is to allocate a release action, devm_memremap_pages_release(), to tear the entire setup down. However, the result from devm_add_action() is not checked. Checking the error from devm_add_action() is not enough. ... | https://gitlab.com/post-factum/pf-kernel/blob/4c8e581506abda82392b619b6f38afd9f074eff8/include/linux/memremap.h | CC-MAIN-2019-39 | en | refinedweb |
This page describes how to schedule recurring queries in BigQuery.
Overview
You can schedule queries to run on a recurring basis. Scheduled queries must be written in standard SQL, which can include Data Definition Language (DDL) and Data Manipulation Language (DML) statements. The query string and destination table ca... | https://cloud.google.com/bigquery/docs/scheduling-queries | CC-MAIN-2019-39 | en | refinedweb |
Kumba <kumba@gentoo.org> writes:
> Richard Sandiford wrote:
>>;
>> }
>>
>
> Done. This is referenced in the first patch
> (gcc-4.4-trunk-fixr10k-z1.patch). The second patch
> (gcc-4.4-trunk-fixr10k-z2.patch) contains a form whereby I just
> re-declared mips_branch_likely and set it once-per template. More on
> this bel... | https://www.linux-mips.org/archives/linux-mips/2008-11/msg00114.html | CC-MAIN-2017-30 | en | refinedweb |
#include "apache_message_handler.h"
Implementation of an HTML parser message handler that uses Apache logging to emit messsages.
Installs a signal handler for common crash signals that tries to print out a backtrace.
These methods don't perform any formatting on the string, since it turns out delegating message_handler... | http://modpagespeed.com/psol/classnet__instaweb_1_1ApacheMessageHandler.html | CC-MAIN-2017-30 | en | refinedweb |
?
When VS.NET 2003 was announced, Microsoft made it clear that it wasn't a service pack for VS.NET 2002 you had to pay for, it was a new release and that they'd release a service pack for VS.NET 2002 'shortly' after the release of VS.NET 2003. Well... it's been 3 months now today, since VS.NET 2003 is on the market and... | https://weblogs.asp.net/fbouma/archive/2003/07 | CC-MAIN-2017-30 | en | refinedweb |
Python's generators sure are handy
While rewriting some older code today, I ran across a good example of the clarity inherent in Python's generator expressions. Some time ago, I had written this weirdo construct:
for regex in date_regexes: match = regex.search(line) if match: break else: return # ... do stuff with the ... | http://blog.cdleary.com/2008/01/pythons-generators-sure-are-handy/ | CC-MAIN-2017-30 | en | refinedweb |
Interactive initiate
This is the most basic way of automatically start a workflow when an object is created through the user interface. This technique will not work for objects created by MIF, workflows or escalations.
To enable workflow auto-initiate open your workflow in Workflow Designer and select the Interactive I... | http://maximodev.blogspot.com/2014/01/how-to-launch-workflow.html | CC-MAIN-2017-30 | en | refinedweb |
#include "google_analytics_filter.h"
Filter <script> tags. Rewrite qualifying sync loads of Google Analytics as async loads..
Called for an IE directive; typically used for CSS styling. See. | http://modpagespeed.com/psol/classnet__instaweb_1_1GoogleAnalyticsFilter.html | CC-MAIN-2017-30 | en | refinedweb |
The full form of UUID is Universally Unique Identifier. A UUID represents a 128-bit value that is unique. The standard representation of UUID uses hex digits.
For example:
3c0969ac-c6e3-40f2-9fc8-2a59b8987918
cb7125cc-d78a-4442-b21b-96ce9227ef51
The
UUID class in the
java.util package bundles the method to generate ran... | https://www.educative.io/answers/how-to-generate-random-uuid-in-java | CC-MAIN-2022-33 | en | refinedweb |
FilterFilter
A regex based adaptable profanity filter.
npm i regexcensor
Enabling the FilterEnabling the Filter
import Filter from 'regexcensor' const filter = Filter('*')
Predefined Filter SetsPredefined Filter Sets
If the input is a string, the filter will be set to a predefined swear preset.
const filter = Filter('P... | https://www.npmjs.com/package/regexcensor | CC-MAIN-2022-33 | en | refinedweb |
This page shows how to enable node auto repair for GKE on-prem clusters.
The node auto repair feature continuously detects and repairs unhealthy nodes in a cluster. The feature is disabled by default. You can enable the feature during admin or user cluster creation. You can also enable the feature for an existing user ... | https://cloud.google.com/anthos/clusters/docs/on-prem/1.5/how-to/node-auto-repair | CC-MAIN-2022-33 | en | refinedweb |
Debugging "Plugin Crash"
In the meantime you might want to checkout Tools/Xml Tools 2.4.9 Unicode/
I’ve forked the XPatherizerNPP github project and it can be downloaded here:
Thank you for suggestion on the other plugin! XML Tools seems a bit unstable, also its XPath component doesn’t seem to work correctly. Attemptin... | https://community.notepad-plus-plus.org/topic/15320/debugging-plugin-crash/13?lang=en-US | CC-MAIN-2022-33 | en | refinedweb |
Java collections have a default
toString implementation, but its output is fixed and it’s not always what you need. Almost every project has its own
StringUtil class with a bunch of functions including
joinToString. The Kotlin standard library is no exception.
>>> val list = arrayListOf(1, 2, 3)
>>> println(list) ❶
[1,... | https://freecontent.manning.com/making-functions-easier-to-call-in-kotlin/ | CC-MAIN-2022-33 | en | refinedweb |
A Lightweight Multi-Process Execution Pool with load balancing and customizable resource consumption constraints.
\author: (c) Artem Lutov [email protected]
\license: Apache License, Version 2.0
\organizations: eXascale Infolab, Lumais, ScienceWise
\date: 2015-07 v1, 2017-06 v2, 2018-05 v3
\grants: Swiss National Scien... | https://awesomeopensource.com/project/eXascaleInfolab/PyExPool | CC-MAIN-2022-33 | en | refinedweb |
Question
- Create a function that returns the letter position where the ball final position is once the swapping is finish.
description
- There are three cups on a table, at positions A, B, and C. At the start, there is a ball hidden under the cup at position B.
- There will be several swap perform, represented by two ... | https://practicaldev-herokuapp-com.global.ssl.fastly.net/mathewchan/python-exercise-12-find-the-hidden-ball-4hkc | CC-MAIN-2022-33 | en | refinedweb |
Hello Nat
The external reviews module has a number of config options that can be set in code, depending on your requirements. The options are documented here:
What is your specific requirement so we can advise on the correct configuration of these options.
David
Hi David
ideally we would like external reviewers not to ... | https://world.optimizely.com/forum/developer-forum/Addons/Thread-Container/2021/5/web-config-in-the-modulesadd-on-name-folder/ | CC-MAIN-2022-33 | en | refinedweb |
ID Token
This page covers how you can subscribe and listen to the users ID Token and use it throughout your application.
Subscribing to the ID Token
If you require the users ID Token (e.g. for making external API requests), the
useAuthIdToken
provides a simple way to subscribe to latest token.
import { useAuthIdToken }... | https://react-query-firebase.invertase.dev/auth/id-token | CC-MAIN-2022-33 | en | refinedweb |
The
DataFrame.axes attribute in Pandas is used to return a list of values representing the axes of a given DataFrame. It also returns the labels of the row and columns axis as the only member.
DataFrame.axes attribute
This attribute takes no parameter value.
This attribute returns a list showing the labels of the row a... | https://www.educative.io/answers/how-to-return-a-list-representing-the-axes-of-a-given-dataframe | CC-MAIN-2022-33 | en | refinedweb |
In Java, we have a default constructor that doesn't take any arguments. We typically use it to initialize fields to their default values.
The default value for the variables of numeric types such as byte, int, short, and long is
0. The default value for float and double is
0.0. The default value for boolean is
false. T... | https://www.educative.io/answers/what-is-a-default-constructor-in-java | CC-MAIN-2022-33 | en | refinedweb |
table of contents
NAME¶
posix_fallocate - allocate file space
SYNOPSIS¶
#include <fcntl.h>
int posix_fallocate(int fd, off_t offset, off_t len);
posix_fallocate():
_POSIX_C_SOURCE >= 200112L
DESCRIPTION¶
The
pos.
-¶
posix_fallocate() is available since glibc 2.1.94.
ATTRIBUTES¶
For an explanation of the terms used in t... | https://manpages.debian.org/testing/manpages-dev/posix_fallocate.3.en.html | CC-MAIN-2022-33 | en | refinedweb |
GREPPER
SEARCH
WRITEUPS
DOCS
INSTALL GREPPER
All Languages
>>
Javascript
>>
file upload in angular 10
“file upload in angular 10” Code Answer’s
upload files with angular
javascript by
Disturbed Dunlin
on Oct 24 2021
Comment
1); }) }
file upload in angular 10
typescript by
Zany Zebra
on Jun 23 2022
Comment
0
onFileChang... | https://www.codegrepper.com/code-examples/javascript/file+upload+in+angular+10 | CC-MAIN-2022-33 | en | refinedweb |
®
™
Core Rulebook
®
™
Core Rulebook
®
™
Core Rulebook
Credits
Lead Designer: Jason Bulmahn
Design Consultant: Monte Cook
Additional Design: James Jacobs, Sean K Reynolds, and F. Wesley Schneider
Additional Contributions: Tim Connors, Elizabeth Courts, Adam Daigle, David A. Eitelbach, Greg Oppedisano, and Hank Woon
Cove... | https://anyflip.com/zibyj/kzdy/basic | CC-MAIN-2022-33 | en | refinedweb |
Hi all, this is my first post. I’m just starting to learn three.js and JS (I’ve been coding C# in Unity for 10 years). I have a project coming up that’s going to have a lot of text objects in the 3D space so I’m trying out troika-three-text to see if it’ll work for my needs.
So far so good, I can easily create text in ... | https://discourse.threejs.org/t/how-to-preloadfont-in-troika-three-text/22500 | CC-MAIN-2022-33 | en | refinedweb |
Pandas how to get a cell value and update it
Accessing a single value or setting up the value of single row is sometime required when we doesn’t want to create a new Dataframe for just updating that single cell value. There are indexing and slicing methods available but to access a single cell values there are Pandas i... | https://kanoki.org/2019/04/12/pandas-how-to-get-a-cell-value-and-update-it/ | CC-MAIN-2022-33 | en | refinedweb |
4.6. What is the Spectrum object ?¶
Normally Users should not be bother by the classes used. For instance if you use the pburg class to compute a PSD estimate base on the Burg method, you just nee to use pburg. Indeed, the normal usage to estimate a PSD is to use the PSD estimate starting with the letter p such as parm... | http://www.thomas-cokelaer.info/software/spectrum/html/user/tutorial_psd.html | CC-MAIN-2018-39 | en | refinedweb |
Understanding the Command Line
The command line is a text-based environment that some users never even see. You type a command and the computer follows it — nothing could be simpler. In fact, early PCs relied on the command line exclusively (even earlier systems didn’t even have a console and instead relied on punched ... | https://www.blograby.com/developer/using-ironpython-for-administration-tasks.html | CC-MAIN-2018-39 | en | refinedweb |
filedb.filestore module¶
Base class¶
- class
whoosh.filedb.filestore.
Storage¶
Abstract base class for storage objects.
A storage object is a virtual flat filesystem, allowing the creation and retrieval of file-like objects (
StructFileobjects). The default implementation (
FileStorage) uses actual files in a directory... | https://whoosh.readthedocs.io/en/latest/api/filedb/filestore.html | CC-MAIN-2018-39 | en | refinedweb |
What I would like to do, is train a first model $f_{1}(underline{x})$, where $underline{x}$ is a set of features, fix what model 1 has learned, and then train a second model $f_{2}(underline{y})$ where $underline{y}$ is a second set of features.
(it’s not really the emphasis of this post, but in case you’re curious as ... | https://alltopicall.com/tag/another/ | CC-MAIN-2018-39 | en | refinedweb |
On Sat, Sep 16, 2000 at 11:39:45PM +0200, Henner Eisen wrote:> int netif_would_drop(dev)> {> return (queue->input_pkt_queue.qlen > netdev_max_backlog)> || ( (queue->input_pkt_queue.qlen) && (queue->throttle) )> }> > would fulfil those requirements.It would just be racy. You test, get a not drop and then another differe... | https://lkml.org/lkml/2000/9/16/12 | CC-MAIN-2018-39 | en | refinedweb |
Questions about decorators, *args, and **kwargs come up often, but don’t always have concise and comprehensive answers. Official documentation tends to explain things in terms of textbook definitions and proper syntax, with an example or two if you’re lucky. If you already know a programming language or two that may be... | http://www.adamantine.me/2017/12/14/python-decorators-args-and-kwargs-explained/ | CC-MAIN-2018-39 | en | refinedweb |
I would like to store a character (in order to compare it with other characters).
If I declare the variable like this :
char c = 'é';
everything works well, but I get these warnings :
warning: multi-character character constant [-Wmultichar]
char c = 'é';
^
ii.c:12:3: warning: overflow in implicit constant conversion [... | http://www.dlxedu.com/askdetail/3/2754d688f398f4de4608ceca53ad7a91.html | CC-MAIN-2018-39 | en | refinedweb |
Creating a Blogging Platform in Java: Part 2
In the second part of his series about creating a blogging platform in Java, Grzegorz Ziemonski covers his vision, the start of his project, and building.
Join the DZone community and get the full member experience.Join For Free
This week I'll continue the topic of creating ... | https://dzone.com/articles/creating-a-blogging-platform-in-java-2 | CC-MAIN-2022-33 | en | refinedweb |
Web Developer
Welcome to the first part of my JSWorld Conference 2022 summary series, in which I share a summary of all the talks in four parts with you.
After this part which contains the first three talks, you can read the second part here,:
Colin Ihrin - Engineer at Deno
Deno is a simple, modern, and secure runtime ... | https://hackernoon.com/jsworld-conference-2022-part-i?ref=hackernoon.com | CC-MAIN-2022-33 | en | refinedweb |
Summary
Applies the results of a least squares adjustment to parcel fabric feature classes. Least squares adjustment results stored in the AdjustmentLines and AdjustmentPoints feature classes are applied to the corresponding parcel line, connection line, and parcel fabric point feature classes.
Use the Analyze Parcels ... | https://pro.arcgis.com/en/pro-app/2.7/tool-reference/parcel/applyparcelleastsquaresadjustment.htm | CC-MAIN-2022-33 | en | refinedweb |
).
So the basic idea is to embed the expression to be compiled into a C# class and to compile that class. The compiled class will be called each time the expression must be evaluated. To increase performance, some pre-compilation of Linq Expressions will be applied. Here we go…
Embed the expression into C# code
As stat... | https://softwareproduction.eu/2014/05/23/roslyn-compile-c-expressions-without-using-the-scripting-api/ | CC-MAIN-2022-33 | en | refinedweb |
Write data to a stream at the given offset.
#include <zircon/syscalls.h> zx_status_t zx_stream_writev_at(zx_handle_t handle, uint32_t options, zx_off_t offset, const zx_iovec_t* vector, size_t num_vector, size_t* actual);
zx_stream_writev_at() attempts to write bytes to the stream, starting at the given offset, from th... | https://fuchsia.googlesource.com/fuchsia/+/refs/heads/releases/f1r/docs/reference/syscalls/stream_writev_at.md | CC-MAIN-2022-33 | en | refinedweb |
replaced the glibc-2.1.3 version of fnmatch with the tar-1.1.13 version for SunOS 4.1 portability better configuration for fnmatch CODE_ADDRESS for SPARC can now deal with primitives in direct threading
1: /* Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc. 2: 3: NOTE: The canonical source of this file is ... | https://www.complang.tuwien.ac.at/cvsweb/cgi-bin/cvsweb/gforth/engine/fnmatch.h?rev=1.2;sortby=log;f=h;only_with_tag=v0-6-0;ln=1 | CC-MAIN-2022-33 | en | refinedweb |
table of contents
NAME¶
stdarg, va_start, va_arg, va_end, va_copy - variable argument lists
SYNOPSIS¶
#include <stdarg.h>
void va_start(va_list ap, last); type va_arg(va_list ap, type); void va_end(va_list ap); void va_copy(va_list dest, va_list src);
DESCRIPTION¶()¶
The va_start() macro initializes ap for subsequent u... | https://manpages.debian.org/unstable/manpages-dev/va_copy.3.en.html | CC-MAIN-2022-33 | en | refinedweb |
Thanks.
on Stackoverflow answered me.
All the needed references are automatically added when you create Silverlight Windows Phone application, because Microsoft.Devices.Radio
namespace is found at Windows.Phone library.
So, i don't need other assemplies for work with devices in Windows
phone silverlight 8.1 app
Thank y... | https://social.msdn.microsoft.com/Forums/en-US/37ba11bb-3611-4076-99c0-3fca151f98fe/fm-radio?forum=winappswithcsharp | CC-MAIN-2022-33 | en | refinedweb |
Working Group within WG21. (February, 2012):
Change 4.1 [conv.lval] paragraphs 1 and 2 as follows (including changing the running text of paragraph 2 into bullets): T implementation-defined.
-. An unsigned char object with indeterminate value allocated to a register might trap. . (February, 2012):
This issue is resolv... | https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3367.html | CC-MAIN-2022-33 | en | refinedweb |
Best practice for natural Ordering
Scala has scala.math.Ordering, Java has java.lang.Comparable. These are interfaces used for defining a natural order, which can then be used to sort lists of elements, or in data structures implemented via binary search trees, such as SortedSet.
This is what it looks like:
trait Order... | https://alexn.org/blog/2020/11/17/best-practice-for-ordering-comparable/ | CC-MAIN-2022-33 | en | refinedweb |
libssh2_channel_eof man page
libssh2_channel_eof — check a channel's EOF status
Synopsis
#include <libssh2.h>
int libssh2_channel_eof(LIBSSH2_CHANNEL *channel);
Description
channel - active channel stream to set closed status on.
Check if the remote host has sent an EOF status for the selected stream.
Return Value
Retu... | https://www.mankier.com/3/libssh2_channel_eof | CC-MAIN-2017-22 | en | refinedweb |
Characteristics of Windows Controls
Introduction
A Windows control, also called a control, is an object
you provide to the user as part of your application. This object allows
the user to interact with the computer. As various applications address
different issues, there are various types of controls. There are some
ch... | http://functionx.com/vjsharp/lesson03.htm | CC-MAIN-2017-22 | en | refinedweb |
12 July 2016
Simplifying .Net REST API development: Nancy, self-hosting and ASP.Net Core
REST API development using ASP.Net WebAPI can seem so fussy compared to other ecosystems. There’s a big application server to deal with, dense XML-based configuration and a lot of code to write just to stand up a basic API.
Compare... | http://www.ben-morris.com/simplifying-net-rest-api-development-nancy-self-hosting-and-asp-net-core/ | CC-MAIN-2017-22 | en | refinedweb |
dark@xs4all.nl (Richard Braakman) wrote on 06.02.98 in <m0y0d4L-001NHbC@night>: > Santiago Vila wrote: > > On Thu, 5 Feb 1998, Richard Braakman wrote: > > > > > Overlap between cfs_1.3.3-1 (nonus,orphaned) and chris-cust_0.4: > > > usr/bin/i > > > Right. I wonder which is the more intuitive meaning for i. > > > Reporte... | https://lists.debian.org/debian-devel/1998/02/msg00421.html | CC-MAIN-2017-22 | en | refinedweb |
STRSPN(3P) POSIX Programmer's Manual STRSPN(3P)
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.
strspn — get length of a substri... | http://man7.org/linux/man-pages/man3/strspn.3p.html | CC-MAIN-2017-22 | en | refinedweb |
#include <semaphore.h>
sem_unlink() removes the
named semaphore referred to by
name. The semaphore name is
removed immediately. The semaphore is destroyed once all
other processes that have the semaphore open close it.
On success
sem_unlink()
returns 0; on error, −1 is returned, with
errno set to indicate the error.
Th... | http://manpages.courier-mta.org/htmlman3/sem_unlink.3.html | CC-MAIN-2017-22 | en | refinedweb |
view raw
First a little setup. Last week I was having trouble implementing a specific methodology that I had constructed which would allow me to manage two unique fields associated with one db.Model object. Since this isn't possible, I created a parent entity class and a child entity class, each having the key_name ass... | https://codedump.io/share/TrpP850Hlefl/1/how-can-i-create-two-unique-queriable-fields-for-a-gae-datastore-data-model | CC-MAIN-2017-22 | en | refinedweb |
Configure Force Tunneling for DirectAccess Clients
Published: October 7, 2009
Updated: May 24, 2010
Applies To: Windows Server 2008 R2
Before configuring force tunneling settings for DirectAccess clients, you should have deployed and determined the Internet Protocol version 6 (IPv6) addresses of either your dual protoc... | https://technet.microsoft.com/en-us/library/ee649127(WS.10).aspx | CC-MAIN-2017-22 | en | refinedweb |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.