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 |
|---|---|---|---|---|---|
class CIFAR10Record(object):
pass
result = CIFAR10Record()
# Dimensions of the images in the CIFAR-10 dataset.
# See
# input format.
label_bytes = 1 # 2 for CIFAR-100
result.height = 32
result.width = 32
result.depth = 3
This code uses a class in order to "bunch together" a number of related fields.
The pros are that i... | https://codedump.io/share/wRpwIUsPW0L3/1/what-are-the-advantages-and-disadvantages-of-creating-class-and-instance-in-this-way-in-python | CC-MAIN-2017-13 | refinedweb | 246 | 59.4 |
public class Solution { public int sumNumbers(TreeNode root) { if(root==null){ return 0; } int sum = 0; TreeNode curr; Stack<TreeNode> ws = new Stack<TreeNode>(); ws.push(root); while(!ws.empty()){ curr = ws.pop(); if(curr.right!=null){ curr.right.val = curr.val*10+curr.right.val; ws.push(curr.right); } if(curr.left!=n... | https://discuss.leetcode.com/topic/10705/non-recursive-preorder-traverse-java-solution | CC-MAIN-2018-05 | refinedweb | 318 | 56.86 |
Posted 3 August 2017, 3:22 pm ESTAs Data Dynamics is being discontinued, can you advise on how we transfer our large investment in Data Dynamics to Active Reports. Can a DD report be used directly in Active Reports 7 or do we have work to do on a report by report basis? Does Active Reports support drill through reports... | https://www.grapecity.com/en/forums/ar-archive/using-data-dynamics-report | CC-MAIN-2018-13 | refinedweb | 829 | 58.72 |
On a Windows Phone application, or actually in any application, you will sometimes want to keep information around from one session to another. On a Windows Phone it is sometimes especially important as it is a little difficult to type on these small devices. If you need the user to login, fill in their name and email,... | http://weblogs.asp.net/psheriff/archive/2010/11.aspx | CC-MAIN-2014-15 | refinedweb | 1,850 | 52.6 |
import time
import logging
import multiprocessingdef sleep_5_seconds():
logging.info(' Will sleep 5 seconds')
time.sleep(5)
logging.info(' Done sleeping 5 seconds')def sleep_10_seconds():
logging.info(' Will sleep 10 seconds')
time.sleep(10)
logging.info(' Done sleeping 10 seconds')def main():
logging.basicConfig(level... | https://madhumithakannan7.medium.com/ | CC-MAIN-2021-43 | refinedweb | 308 | 50.84 |
#include <lvt/Camera.h>
Inheritance diagram for Perspective.
[inline]
Returns the camera's aspect ratio.
In general, the aspect ratio of a camera should match the aspect ratio of the viewport. Wnd::AdjustCamera can be used to ensure that the two are consistent.
Returns the camera's field of view.
"Draws" the camera
Set... | http://liblvt.sourceforge.net/doc/ref/class_l_v_t_1_1_perspective_camera.html | CC-MAIN-2017-17 | refinedweb | 130 | 68.67 |
On Sun, 2008-01-20 at 18:18 +0000, Lauri Pesonen wrote: > Hi, > > I'm relatively new to Haskell so please bear with me. I'm trying to > parse Java class files with Data.Binary and I'm having a few problems: > > (The class file format is described here: > > and the bytecode instructions are described here: > > ) > > 1. ... | http://www.haskell.org/pipermail/haskell-cafe/2008-January/038383.html | CC-MAIN-2014-15 | refinedweb | 503 | 64.85 |
Written by Shay ShmeltzerOracle
Corporation May 2005
Since this article was created a new Subversion extension has started shipping from Oracle - for integration with Subversion please refer to the Subversion Developer Guide. This document can however be used for integration of other version management tools and as an ... | http://www.oracle.com/technology/products/jdev/101/howtos/extools/subversion.html | crawl-002 | refinedweb | 1,007 | 60.35 |
rel_ops allow the automatic generation of operators !=, >, <=, >= from just operators == and <. These are intentionally in the rel_ops namespace so that they don't conflict with other similar operators. To use these operators, add "using namespace std::rel_ops;" to an appropriate place in your code, usually right in th... | http://trilinos.sandia.gov/packages/docs/r10.10/packages/stk/doc/html/namespaceeastl_1_1rel__ops.html | CC-MAIN-2013-48 | refinedweb | 107 | 64.71 |
This section describes how to add a replica server to an existing system using the nismkdir command. An easier way to do this is with the nisserver script as described in Solaris Naming Setup and Configuration Guide.
Keep in mind the following principles:
Root domain servers reside in (are part of) the root domain.
Sub... | http://docs.oracle.com/cd/E19455-01/806-1387/a10dirs-67417/index.html | CC-MAIN-2014-23 | refinedweb | 315 | 55.37 |
Type: Posts; User: D_Drmmr
Are you benchmarking unoptimized code? That's not very useful.
This might be a (premature) optimization trick to prevent branching due to the short-circuiting behavior of &&.
Look how much easier to read your code becomes with a few local variables. You should really stop copy-pasting source ... | http://forums.codeguru.com/search.php?s=f70ae27c0af86c1627643fad02d4aac3&searchid=4872173 | CC-MAIN-2014-35 | refinedweb | 673 | 69.18 |
Objects - create instances of types.
Note
Static types behave differently than what is described here. For more information, see Static Classes and Static Class Members.
Struct Instances vs. Class Instances
Because classes are reference types, a variable of a class object holds a reference to the address of the object ... | https://docs.microsoft.com/en-us/dotnet/csharp/fundamentals/object-oriented/objects | CC-MAIN-2021-39 | refinedweb | 463 | 56.35 |
Best comment ever made on any board EVAR.
Best comment ever made on any board EVAR.
That game was such BS.
yeah... hopefully you won't be undefeated anymore ;) Finally things are starting to turn around for me.
I don't need a TE. I need more in the RB position, so why would I give one up, even a backup?
At least I'll p... | https://cboard.cprogramming.com/search.php?s=1dc9d54440565ab5f1943f99077e568c&searchid=2220742 | CC-MAIN-2019-51 | refinedweb | 541 | 86.91 |
----------By Polymath
Table of Contents:
----------Part 1: Introduction
----------Part 2: Opening, Coding, Testing, and Final Work
----------Part 3: Line-By-Line Breakdown of the C++ Code Supplied
Introduction
This Tutorial assumes that you have little-to-no knowledge of the C++ Programming Language and are using Micro... | http://www.dreamincode.net/forums/topic/49569-getting-started-in-microsoft-visual-studio-2008/page__p__649798 | CC-MAIN-2016-18 | refinedweb | 1,682 | 63.93 |
Akka anti-patterns: shared mutable state
© Shutterstock / Who is Danny
When I work with clients on designing actor systems there are a few anti-patterns that seem to make it into initial, non-reviewed designs no matter what. In this series of short articles I would like to cover a few of those.
Anti-pattern #1: sharing... | https://jaxenter.com/akka-anti-patterns-shared-mutable-state-128827.html | CC-MAIN-2019-26 | refinedweb | 307 | 54.63 |
The Problem
A matrix diagonal is a diagonal line of cells starting from some cell in either the topmost row or leftmost column and going in the bottom-right direction until reaching the matrix's end. For example, the matrix diagonal starting from
mat[2][0], where mat is a
6 x 3matrix, includes cells
mat[2][0],
mat[3][1... | https://practicaldev-herokuapp-com.global.ssl.fastly.net/ruarfff/day-23-sort-the-matrix-diagonally-3om6 | CC-MAIN-2021-25 | refinedweb | 334 | 53.51 |
Hebrews
Thompson_Hebrews_JDE_djm.indd 1
10/10/08 10:23:49 AM
C om m e n t a r i e s o n
the N e w T e s t a m e n t
General Editors
Mikeal C. Parsons and Charles H. Talbert
A d v i s o ry B o a r d
Paul J. Achtemeier
Loveday Alexander
C. Clifton Black
Susan R. Garrett
Francis J. Moloney
Thompson_Hebrews_JDE_djm.indd 2
... | https://pl.b-ok.org/book/2378026/9772f3?dsource=recommend | CC-MAIN-2020-10 | refinedweb | 16,662 | 51.28 |
- Code: Select all
import random
import turtle
class Derpi(object):
HP = 10
Attack = 5
class Dooey(object):
HP = 10
Attack = 6
DerpiMoves = ['Derp','Shine'] #These are the moves for Derpi.
DooeyMoves = ['Glop','Shine'] #And the moves for Dooey.
DerplyMoves = ['Derp','Shine','Slug']
DoopeyMoves = ['Glop','Cry','Power Gl... | http://www.python-forum.org/viewtopic.php?f=26&t=12000 | CC-MAIN-2016-44 | refinedweb | 513 | 70.8 |
NAME
BUS_BIND_INTR, bus_bind_intr -- bind an interrupt resource to a specific CPU
SYNOPSIS
#include <sys/param.h> #include <sys/bus.h> int BUS_BIND_INTR(device_t dev, device_t child, struct resource *irq, int cpu); int bus_bind_intr(device_t dev, struct resource *irq, int cpu);
DESCRIPTION
The BUS_BIND_INTR() method al... | http://manpages.ubuntu.com/manpages/oneiric/man9/BUS_BIND_INTR.9freebsd.html | CC-MAIN-2014-15 | refinedweb | 249 | 54.63 |
The official blog of the Microsoft SharePoint Product Group
Recommended Reading for March and April (click here for previous recommendations).
Lots of useful content (I can hardly keep up anymore!) and tools generated by the community:
And a bunch of quality content developed or commissioned by Microsoft:
<Lawrence />
... | http://blogs.msdn.com/sharepoint/archive/2007/03/25/recommended-reading-for-march-and-april-2007.aspx | crawl-002 | refinedweb | 947 | 57.87 |
Details of our official return and cancellation policies are below. At a high level, our terms and policies can be summarized as:
Important Note that return and refund policies differ depending on whether the item being returned was purchased as a regular or pre-order, or if it was received from making a pledge to a cr... | https://www.crowdsupply.com/returns | CC-MAIN-2021-17 | refinedweb | 428 | 58.72 |
If you have several arrays, how can you randomly choose one of the several arrays?
I'm currently doing a project relating to a music playlist and I need to be able to print the first letter of a specific artist and song for the user to guess however the artist and song must be random. I have made a separate array for e... | http://quabr.com/52928531/if-you-have-several-arrays-how-can-you-randomly-choose-one-of-the-several-array | CC-MAIN-2019-09 | refinedweb | 155 | 62.88 |
Hello friends, hope you all are fine and having fun with your lives. Today, I am going to start a new series of tutorials on C++ Programming. and here’s my first tutorial in this series which is Introduction to C++. I am gonna share a lot of tutorials in this series in future, in which I am gonna explain all about C++.... | http://www.theengineeringprojects.com/2016/05/introduction-c.html | CC-MAIN-2017-13 | refinedweb | 851 | 76.45 |
I've been working with web views at the behest of a client. To a native app developer, web views can be particularly challenging. One such challenge I recently conquered was including a clickable phone number in the web view.
The client's request was more than reasonable. The web page would display a phone number. When... | http://www.techrepublic.com/article/pro-tip-include-a-clickable-phone-number-in-androids-web-view/ | CC-MAIN-2017-30 | refinedweb | 520 | 51.44 |
Science versus Engineering?
I suppose it was inevitable that there would be infighting as academics jostle for an increase intheir share of what is likely to be a diminishing level of research funding to be announced at the end of the ongoing Comprehensive Spending Review. The first professional society to try to barge... | https://telescoper.wordpress.com/2010/07/13/science-versus-engineering/ | CC-MAIN-2015-32 | refinedweb | 2,520 | 66.07 |
16 August 2007 14:53 [Source: ICIS news]
LONDON (ICIS news)--Shares in coatings major Akzo Nobel fell 6% on Thursday amid market fears that its partner in the proposed ICI acquisition, Henkel, would have trouble financing the deal.?xml:namespace>
German adhesives producer Henkel had agreed to pay ₤2.7bn ($5.6bn/€4.1bn)... | http://www.icis.com/Articles/2007/08/16/9053432/akzo-nobel-shares-slide-on-ici-financing-worries.html | CC-MAIN-2013-48 | refinedweb | 173 | 53.61 |
In yet more testing I found a couple more issues. First, many systems allow you to change gid on files that you can't set the uid of, if you're a member of the group and own the file. Second, if we can't set the uid and/or gid we shouldn't enable the setuid and/or gid bits, as the result would be setuid and/or setgid t... | https://lists.gnu.org/archive/html/bug-gnu-emacs/2011-07/msg01728.html | CC-MAIN-2019-43 | refinedweb | 236 | 70.9 |
Andrew Dalke <adalke at mindspring.com> wrote: ... > Suppose Python3.0 goes the other way and uses decimal as > the native number type and requires some suffix for floats? > > x = 3.04 # this is a decimal > y = 3.14159f # this is an IEEE 754 float I'd like that. But, playing devil's advocate: there would be no harm don... | https://mail.python.org/pipermail/python-list/2004-September/270797.html | CC-MAIN-2014-10 | refinedweb | 659 | 75.2 |
GCC Command Line
- -fplugin=/path/to/gcc_dehydra.so
- -fplugin-arg-gcc_dehydra=/path/to/your/script.js
Callback Functions
The following functions may be provided by the analysis script and will be called by Dehydra while compiling. See the Dehydra object reference for details on the available object properties.
process... | https://developer.mozilla.org/en-US/docs/Archive/Mozilla/Dehydra/Function_Reference | CC-MAIN-2018-26 | refinedweb | 836 | 50.02 |
right click menu?
On 09/09/2014 at 10:23, xxxxxxxx wrote:
Is it possible to create a list of "items" that I could right click on and have a custom menu popup inline?
Essentially they way I'd like to it work is have a text box auto fill with a list and then be able to right click on individual items in the list to bring... | https://plugincafe.maxon.net/topic/8129/10589_right-click-menu | CC-MAIN-2020-40 | refinedweb | 1,160 | 68.26 |
This is a continuation from the previous module... Program examples compiled using Visual C++ 6.0 (MFC 6.0) compiler on Windows XP Pro machine with Service Pack 2. Topics and sub topics for this Tutorial are listed below:
Figure 3: MYMFC15 project summary.
Use the menu editor to replace the Edit menu options. Delete th... | https://www.tenouk.com/visualcplusmfc/visualcplusmfc10a.html | CC-MAIN-2020-05 | refinedweb | 888 | 51.24 |
On Fri, 15 Feb 2008 08:44:54 -0500, Ignacio Vazquez-Abrams wrote: > On Fri, 2008-02-15 at 13:27 +0000, Kevin Kofler wrote: > > Ignacio Vazquez-Abrams <ivazqueznet <at> gmail.com> writes: > > > So then don't make it a compat-* package. > > > > > > > > > > This distinction you and Michael Schwendt are making between comp... | https://www.redhat.com/archives/fedora-devel-list/2008-February/msg01317.html | CC-MAIN-2014-15 | refinedweb | 264 | 65.73 |
Bug #11121closed
openssl ext does not handle EWOULDBLOCK
Description
On Windows, non-blocking IO on sockets seems to return EWOULDBLOCK instead of EAGAIN. The openssl ruby library only handles EAGAIN, which results in EWOULDBLOCK being raised to the caller.
This was noticed while using httpclient to send a POST request... | https://bugs.ruby-lang.org/issues/11121 | CC-MAIN-2022-27 | refinedweb | 534 | 51.04 |
Bazel is one of the most widely used open source build tool these days, the rationale behind using Bazel is aplenty. Let’s say you want to compile Java and Python projects into one build file, then Bazel would be the ideal choice. As a QA company, we use Maven, Gradle, and Grunt to compile & kick-off automated test sui... | https://codoid.com/running-selenium-scripts-using-bazel/ | CC-MAIN-2021-31 | refinedweb | 868 | 66.74 |
the syntax in the lesson for super is the following:
class Sink:
def init(self, basin, nozzle):
self.basin = basin
self.nozzle = nozzle
class KitchenSink(Sink):
def init(self, basin, nozzle, trash_compactor=None):
super().init(self, basin, nozzle)
if trash_compactor:
self.trash_compactor = trash_compactor
and again poi... | https://discuss.codecademy.com/t/lesson-text-used-to-use-self-incorrectly/467232 | CC-MAIN-2020-40 | refinedweb | 109 | 70.19 |
std::basic_ostream::swap
From cppreference.com
Calls basic_ios::swap(rhs) to swap all data members of the base class, except for rdbuf(), between *this and
rhs. This swap function is protected: it is called by the swap functions of the swappable output stream classes std::basic_ofstream and std::basic_ostringstream, wh... | http://en.cppreference.com/mwiki/index.php?title=cpp/io/basic_ostream/swap&oldid=49683 | CC-MAIN-2014-15 | refinedweb | 114 | 58.18 |
This post is a sequel to a previous post - The TFS Build Definition List<T> OOTB UITypeEditor.
In my previous post I showed how easy and cheep it is to use the TFS’s build definition OOTB “List<T>” editor. We even saw that if we use enum’s or Boolean's the “List<T>” editor’s properties grid gives us drop-down editors f... | http://blogs.microsoft.co.il/blogs/oshryhorn/archive/2011/07/19/using-microsoft-s-uitypeeditors-with-the-ootb-list-lt-t-gt-editor.aspx | crawl-003 | refinedweb | 459 | 51.48 |
Taking Advantage of Multi-Processor Environments in Node.js
Posted on
by
Rudy Jahchan in Web
Node »
The “Problem”.
Cluster to parallelize the SAME Flow of Execution.
Child Process a DIFFERENT Flow of Execution.
The Downside..
Feedback
Your feedback
martypdx
March 5, 2014 at 8:26 am
Timely write-up for me, thanks Rudy
>... | http://blog.carbonfive.com/2014/02/28/taking-advantage-of-multi-processor-environments-in-node-js/ | CC-MAIN-2015-48 | refinedweb | 1,517 | 72.97 |
Title: Context Help authoring anywhere/anytime/anyone for .NET application
Author: rufei zhao
Member ID: 2308266
Language: C#
Platform: .NET 1.1+ etc
Technology: .NET/C#
Level: Beginner, Intermediate, Advanced
Description: An article on howto make authoring the context help for UI easier.
I started a sourceforge projec... | http://www.codeproject.com/Articles/21880/Context-Help-authoring-anywhere-anytime-anyone-for | CC-MAIN-2014-52 | refinedweb | 620 | 56.05 |
. > > And yet, I've come across online murky warnings against using > classes as "pseudo-namespaces". Is there some problem that I'm > not seeing with this technique? > > ~K I don't see anything wrong with this, except that I would clean it up in a couple ways. Like other posters, I would give the class a proper class ... | https://mail.python.org/pipermail/python-list/2010-March/572210.html | CC-MAIN-2016-50 | refinedweb | 191 | 75.61 |
I have a growing workspace with multiple Ext applications, and it feels like we should move some common components to the 'workspace/common/src' directory so they can be reused.
I have made an attempt at doing this with one View and its Controller. I've got it working statically but it won't compile, and I am not feeli... | https://www.sencha.com/forum/showthread.php?257522-Shared-components-in-common-directory-of-workspace&p=943548&viewfull=1 | CC-MAIN-2016-36 | refinedweb | 375 | 60.72 |
hi i m doing my project using java desktop application in netbeans.i designed a form to get the user's academic details and on clicking the submit button,it displays all the inputs given by the user.i had a java program for it and accessed it by creating an object for it.my java code is
public class submit { JFrame fra... | http://www.roseindia.net/answers/viewqa/Swing-AWT/21438-How-to-create-file-from-input-values-in-Jframe-.html | CC-MAIN-2016-40 | refinedweb | 138 | 73.27 |
What I Am Implement This –
I am sure now you understand the concept of drag and drop, this one is trending functionality for any app.
Near about all my client wants to implement this functionality in his app for various purposes.
That’s why I am going to write a blog on this topic, I am sure you like it, so let’s start... | https://www.itechinsiders.com/how-to-implement-drag-and-drop-fuin-react-native/ | CC-MAIN-2022-21 | refinedweb | 542 | 52.94 |
In Excel 2007 it’s possible to add controls, referenced by a qualified ID (idQ attribute), to the Quick Access Toolbar, and in Excel 2010, to add controls to the Quick Acces Toolbar, or the ribbon. Furthermore, it is possible to add and/or position custom controls on or next to the Analysis tab, or groups on the Analys... | https://blogs.sap.com/2013/10/30/customuiribbon-qualified-ids-for-analysis-tab-and-group-controls/ | CC-MAIN-2018-43 | refinedweb | 652 | 51.04 |
As an example, some of the core Kubernetes components like etcd have their corresponding Operators made available by the CoreOs project. Etcd is a distributed key-value store that reflects the running state of the entire Kubernetes cluster at any given instant. Naturally, it is a stateful application and various Kubern... | https://linuxhint.com/kubernetes_operator/ | CC-MAIN-2019-39 | refinedweb | 772 | 59.13 |
This C# Program Demonstrates Pass by Value Parameter . Here Passing a value-type variable to a method by value means passing a copy of the variable to the method. Any changes to the parameter that take place inside the method have no affect on the original data stored in the argument variable.
Here is source code of th... | https://www.sanfoundry.com/csharp-program-pass-by-value-parameter/ | CC-MAIN-2018-26 | refinedweb | 196 | 64.2 |
Ok, My question for this one is a bit more complicated. What I am trying to do is to get the program to first calculate the Basal Metabolic Rate, then the amount of calories needed to maintain the current weight, and lastly convert it. It compiles, but I believe I established my functions wrong because they do not seem... | http://cboard.cprogramming.com/cplusplus-programming/141364-more-complex-function.html | CC-MAIN-2014-35 | refinedweb | 267 | 60.95 |
Are you sure?
This action might not be possible to undo. Are you sure you want to continue?
by Willi-Hans Steeb, Gert Cronje and Yorick Hardy International School for Scientific Computing
Contents
1 Linux Basics 1.1 Some Basic Commands . . . . . . . . . . . . . 1.2 Working with Files and Directories . . . . . . 1.2.1 In... | https://www.scribd.com/doc/165281666/6917186-LINUX | CC-MAIN-2017-39 | refinedweb | 44,699 | 68.97 |
Closed Bug 450581 Opened 14 years ago Closed 14 years ago
Address Book lists in dialogs may become unsorted
Categories
(MailNews Core :: Address Book, defect, P2)
Tracking
(Not tracked)
Thunderbird 3.0a3
People
(Reporter: standard8, Assigned: neil)
References
Details
Attachments
(1 file, 4 obsolete files)
In Bug 449260... | https://bugzilla.mozilla.org/show_bug.cgi?id=450581 | CC-MAIN-2022-33 | refinedweb | 1,158 | 57.16 |
RationalWiki:Constructive dialogue
We here at RationalWiki always welcome those who disagree with points of view presented here to discuss their disagreement with us in a rational way. There are primarily three ways of doing this:
- Discuss a particular article's content on its talk page.
- Start a debate in the debate... | https://rationalwiki.org/wiki/RationalWiki:Constructive_dialogue | CC-MAIN-2019-13 | refinedweb | 209 | 58.92 |
Hello all ...
I'm experiencing a very curious compiler error...
I have a lot of variables defined in the following fashion
static StringBuffer logstr_area = new StringBuffer() ;
static StringBuffer message_area = new StingBuffer() ;
.....etc.....
when I compile the source code the first error message I get is:
..Found ... | https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014609411 | CC-MAIN-2016-07 | refinedweb | 506 | 65.32 |
Hi All
Scenario:
I need to fetch content of Winscp log files( from specific location) and compare the data of logs using SOAP UI by hitting another service .
Currently I am doing this manually
Is there any way I can automate this process
Or, any groovy script I can run to automate the whole process
Solved!
Go to Soluti... | https://community.smartbear.com/t5/SoapUI-Pro/WinScp-and-ReadyApI/m-p/187910 | CC-MAIN-2019-35 | refinedweb | 428 | 59.84 |
Things related to the Rock Ridge Interchange Protocol (RRIP) More...
#include <cdio/types.h>
Go to the source code of this file.
Things related to the Rock Ridge Interchange Protocol (RRIP)
Applications will probably not include this directly but via the iso9660.h header.
Enforced file locking (shared w/set group ID)
C... | http://www.gnu.org/software/libcdio/doxygen/rock_8h.html | CC-MAIN-2014-42 | refinedweb | 576 | 74.29 |
The idea for this is based on. The article discusses how binary search can be done on a predicate. If the predicate
p is monotonic, i.e. it satisfies the property:
If p is true for x, then it is true for all values > x
then we can use binary search to find the smallest true value.
This can be applied to the current pro... | https://discuss.leetcode.com/topic/115316/python-o-log-min-m-n-solution-using-predicate-binary-search | CC-MAIN-2018-05 | refinedweb | 887 | 77.98 |
/* Detect stack overflow (when getrlimit and sigaction or sigvec are available) Copyright (C) 1993, 1994, 2006 Free Software Foundation, Inc. Jim Avera <jima@netcom.com>, October */ /* Compiled only when USE_STACKOVF is defined, which itself requires getrlimit with the RLIMIT_STACK option, and support for alternate sig... | http://opensource.apple.com/source/gm4/gm4-13/m4/src/stackovf.c | CC-MAIN-2016-30 | refinedweb | 1,572 | 57.06 |
How to: Notify an Application When an Item Is Removed from the Cache
In most cache scenarios, when an item is removed from the cache, you do not have to be notified when it has been removed. The typical development pattern is to always check the cache for the item before using it. If the item is in the cache, you use i... | https://msdn.microsoft.com/en-us/library/7kxdx246(v=vs.90).aspx | CC-MAIN-2016-50 | refinedweb | 620 | 64.1 |
Recently I had the privilege of writing an article for Java Tech Journal about using HTML5 Server Sent Events in a JSF 2 User Interface. I've made that article available here.:
import javax.inject.Inject;
....
@ManagedBean
@SessionScoped
public class UserNumberBean implements Serializable {
@Inject
private Count count;... | https://community.oracle.com/blogs/rogerk | CC-MAIN-2016-07 | refinedweb | 623 | 64.51 |
As more and more repositories start to incorporate MyBinder / repo2docker build specifications, more and more building blocks start to appear for how to get particular things running in MyBinder. For example, I have several ouseful-template-repos with various building blocks for getting different databases running in M... | https://blog.ouseful.info/tag/repo2docker/ | CC-MAIN-2021-21 | refinedweb | 1,026 | 60.72 |
While learning C++, sooner or later you will run into the this pointer. This article explains its use on three groups of examples, namely:
To illustrate the concept of the this pointer we are going to use a class called Account. For the moment the class has only one member variable 'amount'. Apart from the standard get... | http://walletfox.com/course/thispointer.php | CC-MAIN-2017-39 | refinedweb | 1,069 | 54.32 |
I just released the latest Antipasto Arduino for Windows, Linux, and Mac OS X x86. The IDE is available for download on illuminatolabs.
Along with a number of code "housekeeping" updates, there were a couple larger changes:
- Fixes for Gadget File loads and board switches (issue #3, issue #4 , issue #7) Thanks Joao!
- ... | http://antipastohw.blogspot.com/2010/01/antipasto-arduino-0838-released-with.html?showComment=1263035371567 | CC-MAIN-2017-13 | refinedweb | 613 | 72.87 |
Sharing the goodness…
Beth Massi is a Senior Program Manager on the Visual Studio team at Microsoft and a community champion for .NET developers. Learn more about Beth.
More videos »
NOTE: This is the Visual Studio 2012 version of the popular Beginning LightSwitch article series. For other versions see:
Welcome to Part... | http://blogs.msdn.com/b/bethmassi/archive/2012/08/15/beginning-lightswitch-in-vs-2012-part-6-go-beyond-the-box-customizing-lightswitch-apps-with-extensions.aspx | CC-MAIN-2015-35 | refinedweb | 1,291 | 63.59 |
Simple SSAO - A 1-class solution for SSAO.
Description
To have SSAO in OGRE usually you need tons of code and shaders, well nullsquared posted a demo that avoided that, and it provided a pretty decent quality, so this is his code, converted into 1 easy to use class, which can provide your application with SSAO with onl... | https://wiki.ogre3d.org/Simple+SSAO | CC-MAIN-2022-21 | refinedweb | 243 | 56.15 |
#.
The components required to develop basic CLR database objects are installed with SQL Server 2005. CLR integration functionality is exposed in an assembly called system.data.dll, which is part of the .NET Framework. This assembly can be found in the Global Assembly Cache (GAC) as well as in the .NET Framework directo... | http://msdn.microsoft.com/en-US/library/ms131052(v=sql.90).aspx | CC-MAIN-2014-15 | refinedweb | 227 | 50.33 |
You can view these four specifications at the W3C Web site (.)
XLink is part of the XML standard that currently defines the
linking components of XML. XLink is similar to the functionality of the
<a> tag in HTML in that XLink allows elements to be inserted into
XML documents to create links between resources. XLink als... | https://www.brainbell.com/tutors/XML/XML_Book_B/XML_Namespace_XPath_XPointer_and_XLink.htm | CC-MAIN-2019-18 | refinedweb | 317 | 64 |
I 02:43 PM 5/12/2001 -0500, Ian Bicking wrote:
>Here's pertinant parts of the Classes.csv file:
>
>Class,Attribute,Type,isRequired,Min,Max,Extras,
>Portfolio,,,,,,,
>,pieces,list of Piece,0,,,,
>,representativePiece,Piece,0,,,,
>Piece,name,string,1,1,30,,
>,portfolio,Portfolio,1,,,,
>
>The important part is that Piec... | http://sourceforge.net/p/webware/mailman/webware-discuss/?viewmonth=200105&viewday=13 | CC-MAIN-2014-10 | refinedweb | 1,166 | 50.94 |
Hi everybody,
i got 4 sensors connected to my Arduino Mega (Slave) and i want to transmit their values over I2C.
My current Arduino code looks like this:
#include <Wire.h> int SLAVE_ADDRESS = 0x08; int analogPin1 = A0; int analogPin2 = A1; int analogPin3 = A2; int analogPin4 = A3; void setup(){ Wire.begin(SLAVE_ADDRESS... | https://forum.arduino.cc/t/i2c-raspi-master-arduino-slave-analog-values-transmission-for-csv-file/572167 | CC-MAIN-2022-27 | refinedweb | 203 | 61.67 |
WSCEnableNSProvider function
The WSCEnableNSProvider function changes the state of a given namespace provider. It is intended to give the end-user the ability to change the state of the namespace providers.
Syntax
Parameters
- lpProviderId [in]
A pointer to a globally unique identifier (GUID) for the namespace provider... | https://msdn.microsoft.com/en-us/library/ms742233(v=vs.85).aspx | CC-MAIN-2015-22 | refinedweb | 245 | 56.15 |
MPI_Comm_get_nameReturn the print name from the communicator
int MPI_Comm_get_name( MPI_Comm comm, char *comm_name, int *resultlen ); int MPI_Comm_get_name( MPI_Comm comm, wchar_t *comm_name, int *resultlen );
Parameters
- comm
- [in] Communicator to get name of (handle)
- comm_name
- [out] On output, contains the name... | http://mpi.deino.net/mpi_functions/MPI_Comm_get_name.html | CC-MAIN-2017-47 | refinedweb | 397 | 53.21 |
Nitpick shield: Games don’t “need” a language, but such a thing would be useful. I’m not complaining about the person who titled this article. I had the same problem yesterday when I said GTA V was “Banned” instead of more correctly stating it was “un-stocked from certain retailers in one country in response to an inte... | http://www.shamusyoung.com/twentysidedtale/?p=25303&replytocom=879891 | CC-MAIN-2019-39 | refinedweb | 21,031 | 68.2 |
Given.
Examples:
Input : n = 54, k = 3 Output : 2, 3, 9 Note that 2, 3 and 9 are k numbers with product equals to n. Input : n = 54, k = 8 Output : -1
This problem uses idea very similar to print all prime factors of a given number.
The idea is very simple. First we calculate all prime factors of n and store them in a ... | https://www.geeksforgeeks.org/find-if-n-can-be-written-as-product-of-k-numbers/ | CC-MAIN-2018-09 | refinedweb | 382 | 78.28 |
In today’s Programming Praxis exercise, our goal is to solve the first problem of the 2013 Facebook hacker cup, which is to give the sum of the highest values of all possible subsequences of length k of a given list of integers. Let’s get started, shall we?
A quick import:
import Data.List
For this problem, we’re going... | https://bonsaicode.wordpress.com/2013/02/15/programming-praxis-facebook-hacker-cup-2013-round-1-problem-1/ | CC-MAIN-2015-27 | refinedweb | 432 | 71.44 |
A command line interface for the QUnit testing framework
A Node module that adds colorful CLI support for the QUnit testing framework.
There are two ways to use qunit-cli:
Include it at the top of your test files. First, install the module using npm.
npm install qunit-cli
And now, require it in your test files:
if (typ... | https://www.npmjs.com/package/qunit-cli | CC-MAIN-2015-18 | refinedweb | 324 | 62.17 |
12-15-2016 04:16 AM
Hi.
Downloaded spark 2.0 from and deployed it according to the instructions for cloudera manager.
Installed latest livy server from github with options "mvn clean package -DskipTests -Dspark-2.0 -Dscala-2.11".
During startup livy server can't figure out the spark-submit version due to a regex proble... | http://community.cloudera.com/t5/Web-UI-Hue-Beeswax/Spark-2-0-livy-server-3/m-p/49352 | CC-MAIN-2018-43 | refinedweb | 162 | 68.57 |
I need a Python program I'm using to poll a remote server for SSH connectivity and notify when it is available. I am currently doing this using paramiko; attempt to connect, if failure, wait and retry until success or max retries. This works, but it's a bit clunky. Also paramiko seems to either connect or throw an erro... | https://codedump.io/share/Kbw1izv42Nza/1/elegant-way-to-test-ssh-availability | CC-MAIN-2018-22 | refinedweb | 251 | 56.35 |
[Fuente:]
Hooks are a new addition in React 16.8. They let you use state and other React features without writing a class.
import React, {.
Note
React 16.8.0 is the first release to support Hooks. When upgrading, don’t forget to update all packages, including React DOM. React Native supports Hooks since the 0.59 releas... | http://jesidea.com/pakdb/react-hooks-introduction/ | CC-MAIN-2020-16 | refinedweb | 110 | 70.5 |
.NET Framework Support on Windows Operating Systems
Hans Verbeeck
Microsoft EMEA
September 2002
Applies to:
Microsoft® .NET Framework
Microsoft® Windows® operating systems
Summary: Provides information about which versions of Microsoft Windows that the Microsoft .NET Framework can be installed on. Software requirements... | https://msdn.microsoft.com/en-us/library/ms973853.aspx | CC-MAIN-2018-51 | refinedweb | 1,741 | 57.87 |
Monkeypatches to minimize the permissions required to run python under AppArmor
Monkeypatches to minimize the permissions required to run python under AppArmor.
What does this do?
Imagine you’ve written a simple Django application. Maybe you just followed the Django tutorial. All your code does is a bit of database que... | https://pypi.org/project/apparmor_monkeys/ | CC-MAIN-2017-43 | refinedweb | 605 | 59.9 |
Ambiguous match found
Looks like I've been away a few months. Sorry 'bout that. I've had stuff to write about but not enough time to set aside to do so, which is a little ironic; one of the main reasons I created this blog was so I could take 5 minutes and jot down stuff I find out while developing, largely in case it ... | http://weblogs.asp.net/pjohnson/Ambiguous-match-found | CC-MAIN-2014-52 | refinedweb | 588 | 61.46 |
1. Right.
2. iBATIS caching can be globally distributed, at the app level, or at the
session level. It's just really hard to configure! :-)
Here's a simple breakdown
For a local/session scoped read/write cache, use: serializable=false,
readOnly=false
For a shared read-only cache, use: serializable=false, readOnly=true
... | http://mail-archives.apache.org/mod_mbox/ibatis-user-java/200809.mbox/%3C16178eb10809040913i16a05a2bn54d8fee5cb389a01@mail.gmail.com%3E | CC-MAIN-2017-17 | refinedweb | 508 | 66.03 |
<ac:macro ac:
<h2>Information</h2>
<ul>
<li>Date: 22 February 2012, 18:00-19:00 UTC</li>
<li><ac:link><ri:page ri:<ac:link-body>Agenda</ac:link-body></ac:link></li>
<li>Moderator: Matthew Weier O'Phinney (nickname weierophinney)</li>
<li>Next meeting: 29 February 2012</li>
</ul>
<h2>Summary</h2>
<h3>i18n/l10n RFC</h3>
... | http://framework.zend.com/wiki/display/ZFDEV2/2012-02-22+Meeting+Log | CC-MAIN-2013-48 | refinedweb | 9,008 | 75.34 |
/* * : @(#) 1 /* * INCLUDES * LIBRARIES * These control the handling of the .INCLUDES and .LIBS variables. * If INCLUDES is defined, the .INCLUDES variable will be filled * from the search paths of those suffixes which are marked by * .INCLUDES dependency lines. Similarly for LIBRARIES and .LIBS * See suff.c for more d... | http://opensource.apple.com/source/bsdmake/bsdmake-8/config.h | CC-MAIN-2015-35 | refinedweb | 284 | 57.37 |
Forum Index
On Monday, 11 October 2021 at 15:59:10 UTC, Atila Neves wrote:
I'm brainstorming about what I'll talk about at DConf, and during a conversation with Walter I thought it might be cool to talk about:
It's a hard one. Variables implicitly declared as global in JS certainly is up there.
Pretty much anything wor... | https://forum.dlang.org/thread/kgyfyujtnzdbrrhuwhvj@forum.dlang.org?page=8#post-nezbekijuelnrqfxcqpq:40forum.dlang.org | CC-MAIN-2022-40 | refinedweb | 1,258 | 55.84 |
Advertising
--- Comment #29 from Greg Grossmeier <g...@wikimedia.org> --- (In reply to comment #23) > I'm seeing missing arrows next to "Templates used on this page:" below the > edit > window on mediawiki.org as well. Example URL: > < > Custom_inter-namespace_tabs&action=edit>. > I'm not sure if this is already cover... | https://www.mail-archive.com/wikibugs-l@lists.wikimedia.org/msg324798.html | CC-MAIN-2018-30 | refinedweb | 225 | 66.44 |
error.JPGerror.JPG
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace CDManagementSoftware { public partial class FormSalesEntry : Form { public FormSalesEntry() { InitializeCom... | https://www.experts-exchange.com/questions/25906184/LINQ-error-insert-data-in-table.html | CC-MAIN-2018-47 | refinedweb | 559 | 51.55 |
extend for loop syntax with if expr like listcomp&genexp ?
Discussion in 'Python' started by Bengt Rich
genexp reduce syntax in 2.5a1Boris Borcic, Apr 18, 2006, in forum: Python
- Replies:
- 0
- Views:
- 309
- Boris Borcic
- Apr 18, 2006
loop beats generator expr creating large dict!?George Young, Oct 3, 2006, in forum... | http://www.thecodingforums.com/threads/extend-for-loop-syntax-with-if-expr-like-listcomp-genexp.346992/ | CC-MAIN-2015-06 | refinedweb | 148 | 59.57 |
Manage webhooksEstimated reading time: 1 minute
You can configure DTR to automatically post event notifications to a webhook URL of your choosing. This lets you build complex CI and CD pipelines with your Docker images. The following is a complete list of event types you can trigger webhook notifications for via the we... | https://docs.docker.com/ee/dtr/admin/manage-webhooks/ | CC-MAIN-2019-26 | refinedweb | 104 | 54.02 |
By Gary simon - May 14, 2017
Looking to integrate Google's Material Design in your Angular 4+ app? Look no further!
I created a tutorial a few months ago based on this very subject, except it was for Angular 2. Now, we need to revisit this topic because a few things have changed and that tutorial is now outdated.
Be su... | https://coursetro.com/posts/code/67/Angular-4-Material-Tutorial | CC-MAIN-2017-26 | refinedweb | 1,011 | 53.71 |
December 2007: Firebird
Dmitry Yemanov
Age: 30
Occupation: Software developer and coordinator
Education: Systems Engineering, Penza State University
Location: Penza, Russia.
Key developers:
Alex Peshkov
Age: 44
Occupation or experience: Computer programmer
Education: Moscow Physical-Technical Institute, 1986
Location: ... | http://sourceforge.net/blog/potm-200712/ | crawl-003 | refinedweb | 3,041 | 57.06 |
Adding a sensor backpack to a toy robot and using it to control a 3D model displayed in a browser.
This project uses a 3D printed ‘backpack’ containing an ESP32, a 9 axis movement sensor, battery and touch switch attached to a toy robot.
The ESP32 reads data from the movement sensor as the robot is rotated and tilted. ... | https://robotzero.one/esp32-mpu9250-three-js/ | CC-MAIN-2022-33 | refinedweb | 1,473 | 60.04 |
Home-Made Twitter and Gmail Notifications with PHP and Arduino
This article was peer reviewed by Claudio Ribeiro. Thanks to all of SitePoint’s peer reviewers for making SitePoint content the best it can be!….
Well need to be able to identify each service by a friendly name, and we’ll also need to know which light color... | https://www.sitepoint.com/home-made-twitter-and-gmail-notifications-with-php-and-arduino/ | CC-MAIN-2019-30 | refinedweb | 2,032 | 55.44 |
s/new/newTHING/. "n" is just too short. Dunno what to rename "this" to.
Depends on context, I'd say.
On Mon, Aug 21, 2000 at 12:30:25AM -0500, William A. Rowe, Jr. wrote:
> Speaking of which, any objection to a mass update of s/new/n/ and
> s/this/t/ throughout the sources? There should be few other major
> problems (I... | http://mail-archives.apache.org/mod_mbox/httpd-dev/200008.mbox/%3C20000821005942.F11327@lyra.org%3E | CC-MAIN-2018-17 | refinedweb | 253 | 66.54 |
2009-09-08 16:27:26 8 Comments
Client provided me the wsdl to generate the web service.But when I used the wsdl.exe command it generated the .cs class out of it. I consumed that class in my web service and when I provided the wsdl to client it didn't match their schema. Actually I want the .asmx to be automatically gen... | https://tutel.me/c/programming/questions/1394930/how+to+generate+web+service+out+of+wsdl | CC-MAIN-2019-47 | refinedweb | 1,111 | 65.01 |
When reading the reference solution, you may find it helpful to think of
j as
the position of the next character to match, having matched the previous (ie j-1) character
See here for an alternative solution that hopefully is easier to understand.
See here for a solution that tests your understanding of loops, especiall... | http://www.comp.nus.edu.sg/~rctay/ | crawl-003 | refinedweb | 3,403 | 70.33 |
Introduction
Analytics”.
Topic Models are very useful for the purpose for document clustering, organizing large blocks of textual data, information retrieval from unstructured text and feature selection. For Example – New York Times are using topic models to boost their user – article recommendation engines. Various pr... | https://www.analyticsvidhya.com/blog/2016/08/beginners-guide-to-topic-modeling-in-python/?utm_source=blog&utm_medium=heroes-of-machine-learning-experts-researchers | CC-MAIN-2019-39 | refinedweb | 2,337 | 57.27 |
Hitting snags as it stitches together its wide-reaching software-as-a-service plans, Microsoft casts .Net farther and wider. Microsoft acknowledges that its software strategy has been slow to catch on and lays out a plan to move it forward. Therefore, it’s opening up to one of the most important open-source software pr... | https://www.osnews.com/story/1416/bill-gates-slow-going-for-net/ | CC-MAIN-2019-51 | refinedweb | 6,258 | 75.61 |
The
#endif
directive has the following syntax:
This directive ends the scope of the
#if
,
#ifdef
,
#ifndef
,
#else
, or
#elif
directive.
The number of necessary
#endif
directives changes according to whether the
elif
or
#else
directive is used. Consider the following equivalent examples:
#if true #if true
. .
. .
. .
#... | http://h71000.www7.hp.com/commercial/c/docs/6180p021.html | CC-MAIN-2014-15 | refinedweb | 1,093 | 53.81 |
Working with .NET DataSets
- Understanding the ADO.NET DataSet
- Populating a DataSet
- Manipulating Multiple DataSets
- Using a DataView
- Summary
- Workshop
- Answers for Day 3
Yesterday you walked through an end-to-end example of building an ASP.NET application designed to put the use of ADO.NET in perspective. Howe... | https://www.informit.com/articles/article.aspx?p=30228&seqNum=6 | CC-MAIN-2021-10 | refinedweb | 576 | 55.03 |
You can subscribe to this list here.
Showing
14
results of 14
I am pleased to announce that Saxon 7.6 is now available, and offers
support for XQuery 1.0 as well as XSLT 2.0 and XPath 2.0.
It is available from the usual location
The XQuery support has been implemented largely by writing an XQuery
parser and generating ... | http://sourceforge.net/p/saxon/mailman/saxon-announce/ | CC-MAIN-2015-35 | refinedweb | 1,247 | 67.15 |
- Advertisement
CrypterMember
Content count1299
Joined
Last visited
Community Reputation748 Good
About Crypter
- RankContributor
Location of data in the class
Crypter replied to JoshuaWaring's topic in General and Gameplay ProgrammingTechnically you can enforce a specific alignment or none at all via compiler specific ... | https://www.gamedev.net/profile/66590-crypter/ | CC-MAIN-2018-34 | refinedweb | 3,724 | 51.68 |
class WLANWiPy – WiPy specific WiFi control¶
Note
This class is a non-standard WLAN implementation for the WiPy.
It is available simply as
network.WLAN on the WiPy but is named in the
documentation below as
network.WLANWiPy to distinguish it from the
more general network.WLAN class.
This class provides a driver for the... | https://docs.micropython.org/en/latest/library/network.WLANWiPy.html | CC-MAIN-2022-21 | refinedweb | 552 | 60.61 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.