Datasets:
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 |
|---|---|---|---|---|---|
# Patroni cluster (with Zookeeper) in a docker swarm on a local machine
Intro
-----
There probably is no way one who stores some crucial data (in particular, using SQL databases) can possibly dodge from the thoughts of building some kind of safe cluster, distant guardian to protect consistency and availability at all... | https://habr.com/ru/post/527370/ | null | null | 5,638 | 52.09 |
29 August 2012 11:59 [Source: ICIS news]
SINGAPORE (ICIS)--?xml:namespace>
Jiangsu Sopo made a net profit of CNY7.47m in the same period a year earlier.
The company’s operating loss for the period was down by more than four times at CNY27.2m, according to the statement.
Jiangsu Sopo produced 52,400 tonnes of caustic so... | http://www.icis.com/Articles/2012/08/29/9590649/chinas-jiangsu-sopo-swings-to-h1-net-loss-on-weak-demand.html | CC-MAIN-2014-10 | refinedweb | 154 | 68.97 |
The new features, bug fixes and improvements for PHP and the Web, and takes on the latest improvements in IntelliJ Platform.
New code style setting: blank lines before namespace
We’ve added a new code style setting to specify the minimum blank lines before namespace. Now you are able to tune this part according to your... | https://blog.jetbrains.com/phpstorm/2017/01/phpstorm-2017-1-eap-171-2152/ | CC-MAIN-2020-10 | refinedweb | 281 | 61.67 |
Prerequisites
- You must have an Amazon Web Services account ().
- You must have signed up to use the Alexa Site Thumbnail ().
- Assumes python 2.4 or later.
Running the Sample
- Extract the .zip file into a working directory.
- Edit the ThumbnailUtility.py file to include your Access Key ID and Secret Access Key.
- Op... | http://aws.amazon.com/code/Python/818 | CC-MAIN-2015-22 | refinedweb | 165 | 60.41 |
[[!img Logo]
[[!format rawhtml """
!html
"""]]:
* [[!format txt """
void good_function(void) {
if (a) { printf("Hello World!\n"); a = 0; } } """]]And this is wrong: [[!format txt """ void bad_function(void) { if (a) { printf("Hello World!\n"); a = 0; } } """]]
- Avoid unnecessary curly braces. Good code:
* [[!format tx... | http://freedesktop.org/wiki/Software/PulseAudio/Documentation/Developer/CodingStyle/?action=SyncPages | CC-MAIN-2013-20 | refinedweb | 424 | 78.14 |
Lexical Dispatch in Python
A recent article on Ikke’s blog shows how to emulate a C switch statement using Python. (I’ve adapted the code slightly for the purposes of this note).
def handle_one(): return 'one' def handle_two(): return 'two' def handle_three(): return 'three' def handle_default(): return 'unknown' cases... | http://wordaligned.org/articles/lexical-dispatch-in-python | CC-MAIN-2015-32 | refinedweb | 466 | 62.58 |
Say I am reading an xml file using SAX Parser : Here is the format of xml file
<BookList> <BookTitle_1> C++ For Dummies </BookTitle_1> <BookAurthor_1> Charles </BookAuthor> <BookISBN_1> ISBN -1023-234 </BookISBN_2> <BookTitle_2> Java For Dummies </Booktitle_2> <BookAuthor_2> Henry </BookAuthor_2> <BookISN_2> ISBN - 231... | http://www.dreamincode.net/forums/topic/325810-how-can-i-create-dynamic-setters-and-getters-accessors-and-mutators/page__pid__1880640__st__0 | CC-MAIN-2016-07 | refinedweb | 268 | 66.78 |
Alex Karasulu wrote:
> Hi all,
>
> On Jan 16, 2008 5:26 AM, Emmanuel Lecharny <elecharny@gmail.com
> <mailto:elecharny@gmail.com>> wrote:
>
> Hi Alex, PAM,
>
> if we are to go away from JNDI, Option 2 is out of question.
> Anyway, the
> backend role is to store data, which has nothing in common with
> Naming,
> isn't i... | http://mail-archives.apache.org/mod_mbox/directory-dev/200801.mbox/%3C478E1FCA.30307@gmail.com%3E | CC-MAIN-2014-42 | refinedweb | 423 | 59.13 |
A very practical version of an Action Menu Item (AMI) is a variant that will run an application or a script on your local computer. For this to work you need to set up a connection between your browser and the script or application you wish to run. This link is called a custom browser protocol.
You may want to set up a... | https://support.shotgunsoftware.com/hc/en-us/articles/219031308-Launching-Applications-Using-Custom-Browser-Protocols | CC-MAIN-2020-24 | refinedweb | 1,259 | 53.21 |
#include <sys/conf.h> #include <sys/ddi.h> #include <sys/sunddi.h> int ddi_dev_is_sid(dev_info_t *dip);
Solaris DDI specific (Solaris DDI).
A pointer to the device's dev_info structure.
The ddi_dev_is_sid() function tells the caller whether the device described by dip is self-identifying, that is, a device that can une... | http://docs.oracle.com/cd/E36784_01/html/E36886/ddi-dev-is-sid-9f.html | CC-MAIN-2016-40 | refinedweb | 195 | 60.41 |
Elvis Chitsungo1,817 Points
Can someone help.
Can someone help
public class Spaceship{ public String shipType; public String getShipType() { return shipType; } public void setShipType(String shipType) { this.shipType = shipType; }
6 Answers
Calin Bogdan14,623 Points
There is a ‘}’ missing at the end of the file, the on... | https://teamtreehouse.com/community/can-someone-help-13 | CC-MAIN-2020-40 | refinedweb | 321 | 60.01 |
evalFunction
This example shows how to evaluate the expression
x+y in Python®. To evaluate an expression, pass a Python
dict value for the
globals namespace parameter.
Read the help for eval.
py.help('eval')
Help on built-in function eval in module builtins:.
Create a Python
dict variable for the
x and
y values.
worksp... | https://nl.mathworks.com/help/matlab/matlab_external/call-python-eval-function.html | CC-MAIN-2019-35 | refinedweb | 134 | 63.86 |
Sharepoint foundation 2010 webpart jobs
.. experience
urgent requirement for SharePoint developer who knows the office 365
..,
...speakers are welcomed ! The work can be
I am looking to learn advanced MS access
I am looking for a help with my database with Query / Report /etc"
My Windows Small Business Server 2011 need... | https://www.freelancer.com/work/sharepoint-foundation-2010-webpart/ | CC-MAIN-2018-22 | refinedweb | 773 | 64.41 |
Synopsis edit
-
- lassign list varName ?varName ...?
Documentation edit
- official reference
- TIP 57
- proposed making the TclX lassign command a built-in Tcl command
Description editlassign assigns values from a list to the specified variables, and returns the remaining values. For example:
set end [lassign {1 2 3 4 ... | http://wiki.tcl.tk/1530 | CC-MAIN-2017-22 | refinedweb | 4,128 | 65.76 |
Angular 2 [hidden] is a special case binding to hidden property.
It is closest cousin of ng-show and ng-hide.
It is more powerful to bind any property of elements. Both the ng-show and ng-hide are used to manage the visibility of elements using ng-hide css class. It is also set the display property “display:none”.
Stay... | http://www.code-sample.com/2016/04/angular-2-hidden-property.html | CC-MAIN-2017-39 | refinedweb | 258 | 61.33 |
I am trying to write a check to determine whether a number is pentagonal or not. The pentagonal numbers are numbers generated by the formula:
Pn=n(3n−1)/2
1, 5, 12, 22, 35, 51, 70, 92, 117, 145, ...
from math import sqrt
def is_pent(n):
ans = any((x*((3*x)-1))/2 == n for x in range(int(sqrt(n))))
return ans
According t... | https://codedump.io/share/LiPUSxmuaq/1/python---is-pentagonal-number-check | CC-MAIN-2016-50 | refinedweb | 121 | 55.27 |
Learn how to get started with image processing on your Raspberry Pi 3!
This guide will get you all set up for Python-based image processing on your Raspberry Pi 3! You can also use this guide with other hardware if you apply some slight tweaks (e.g. pick another architecture when downloading software). You should also ... | https://imaginghub.com/projects/100-from-zero-to-image | CC-MAIN-2020-05 | refinedweb | 233 | 66.94 |
explain_lchown_or_die - change ownership of a file and report errors
#include <libexplain/lchown.h> void explain_lchown_or_die(const char *pathname, int owner, int group);
The explain_lchown_or_die function is used to call the lchown(2) system call. On failure an explanation will be printed to stderr, obtained from exp... | http://huge-man-linux.net/man3/explain_lchown_or_die.html | CC-MAIN-2017-13 | refinedweb | 161 | 56.76 |
23 May 2012 04:16 [Source: ICIS news]
SINGAPORE (ICIS)--Global road vehicle tyre production will hit about 2bn in 2020, up from around 1.2bn/year currently, spurred by strong demand growth from emerging markets, a senior executive at French tyre maker Michelin said on Tuesday.
The number of tyres produced for trucks an... | http://www.icis.com/Articles/2012/05/23/9562520/global-road-vehicle-tyre-output-to-hit-2bn-in-2020.html | CC-MAIN-2014-52 | refinedweb | 188 | 61.56 |
-
=> in def vs. val
hi,
am i the only one who finds it hard to learn and grok the ways to
specify functions (val) with or without types vs. methods (def)? i'm
totally just cargo-cult pattern-match programming when it comes to
this. any pointers to cheat-sheets / exhaustive yet clear and concise
summaries would be appr... | http://www.scala-lang.org/node/5061 | CC-MAIN-2013-20 | refinedweb | 975 | 61.87 |
Class that implements helper functions for the pure virtual PHX::Evaluator class. More...
#include <Phalanx_Evaluator_WithBaseImpl.hpp>
Class that implements helper functions for the pure virtual PHX::Evaluator class.
This class implements code that would essentially be repeated in each Evaluator class, making it quick... | http://trilinos.sandia.gov/packages/docs/r10.4/packages/phalanx/doc/html/classPHX_1_1EvaluatorWithBaseImpl.html | CC-MAIN-2014-35 | refinedweb | 314 | 58.08 |
How Scroll Views Work
Scroll views act as the central coordinator for the Application Kit’s scrolling machinery, managing instances of scrollers, rulers, and clipping views. A scroll view changes the visible portion of the displayed document in response to user-initiated actions or to programmatic requests by the appli... | http://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/NSScrollViewGuide/Articles/Basics.html | CC-MAIN-2013-20 | refinedweb | 979 | 51.58 |
Middlewares with react context and hooks
Vanderlei Alves da Silva
・4 min read
Continuing the idea explored in the previous article of having a global state management using pure react (with react context and hooks), we’re going to explore now how to take advantage of the middlewares concept, implementing for that a log... | https://practicaldev-herokuapp-com.global.ssl.fastly.net/vanderleisilva/middlewares-with-react-context-and-hooks-2gm1 | CC-MAIN-2019-47 | refinedweb | 760 | 52.43 |
Important: Please read the Qt Code of Conduct -
Clang CodeModel
why clang codemodel still doesn't work in 3.5.x QtC builds?
is it ok because of experimental build or something wrong in a settings?
I mean , unlike of builtin model, clang model doesn't allow to expand available members/fields/namespaces/etc by dot/arrow ... | https://forum.qt.io/topic/62206/clang-codemodel | CC-MAIN-2021-43 | refinedweb | 114 | 59.84 |
Vahid Mirjalili, Data Mining Researcher
2. Methodology Description
Clustering algorithms has a wide range of applications. Several methods are proposed so far, and each method has drawbacks, for example in k-means clustering the knowledge of number of clusters is crucial, yet it doesn't provide a robust solution to dat... | http://vahidmirjalili.com/static/articles/densityPeak_clustering.html | CC-MAIN-2017-30 | refinedweb | 1,303 | 52.36 |
Created on 2014-01-14 00:43 by rmsr, last changed 2014-03-01 07:16 by koobs. This issue is now closed.
recvfrom_into fails to check that the supplied buffer object is big enough for the requested read and so will happily write off the end.
I will attach patches for 3.4 and 2.7, I'm not familiar with the backporting pro... | http://bugs.python.org/issue20246 | CC-MAIN-2016-22 | refinedweb | 981 | 69.79 |
Pre-lab
- Get the project 2 starter files using
git pull skeleton master
- Watch the lab 5 video.
Introduction
In this lab, you will get started on project 2. Project 2 is a solo project — no partners. Your work must all be your own. It will be long, arduous, and at times frustrating. However, we hope that you will fin... | http://sp16.datastructur.es/materials/lab/lab5/lab5.html | CC-MAIN-2020-50 | refinedweb | 1,655 | 73.17 |
NAME
getnewvnode - get a new vnode
SYNOPSIS
#include <sys/param.h> #include <sys/vnode.h> #include <sys/mount.h> int getnewvnode(const char *tag, struct mount *mp, vop_t **vops, struct vnode **vpp);
DESCRIPTION
The getnewvnode() function initializes a new vnode, assigning it the vnode operations passed in vops. The vno... | http://manpages.ubuntu.com/manpages/hardy/man9/getnewvnode.9.html | CC-MAIN-2014-41 | refinedweb | 158 | 59.9 |
LightSwitch has always had support for storing pictures in a database through its “Image” business type. However, often it is not feasible to store images in a database, due to size and/or accessibility. In this post I’ll show you how you can leverage Azure blob storage to store images used in your HTML client applicat... | https://blogs.msdn.microsoft.com/bethmassi/2014/05/01/storing-images-in-azure-blob-storage-in-a-lightswitch-application/ | CC-MAIN-2016-30 | refinedweb | 2,942 | 57.47 |
This example shows how to generate code that exchanges data with external, existing code. Construct and configure a model to match data types with the external code and to avoid duplicating type definitions and memory allocation (definition of global variables). Then, compile the generated code together with the extern... | https://au.mathworks.com/help/ecoder/ug/exchange-structured-and-enumerated-data-between-generated-and-external-code.html | CC-MAIN-2021-21 | refinedweb | 1,207 | 50.84 |
.
Hey!
Read all your tutorials, and they are great.
One question here though.
Instead of using the following:
#ifndef
#define
#endif
Is it OK to use #pragma once?
Dont they do the exact same thing? If not, whats the difference?
I heard somewhere that #pragma once i OS-spesific, and if you wanna make portable code, you ... | https://www.learncpp.com/cpp-tutorial/introduction-to-the-preprocessor/comment-page-2/ | CC-MAIN-2019-13 | refinedweb | 3,137 | 66.33 |
End of preview. Expand in Data Studio
Dataset Card for "code-tutorials-en"
enonly- 100 words or more
- reading ease of 50 or more
DatasetDict({
train: Dataset({
features: ['text', 'url', 'dump', 'source', 'word_count', 'flesch_reading_ease'],
num_rows: 223162
})
validation: Dataset({
features: ['text', 'url', 'dump', 'source', 'word_count', 'flesch_reading_ease'],
num_rows: 5873
})
test: Dataset({
features: ['text', 'url', 'dump', 'source', 'word_count', 'flesch_reading_ease'],
num_rows: 5873
})
})
- Downloads last month
- 71