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 |
|---|---|---|---|---|---|
Indexing Hierarchical Data
One of the greatest advantages of a document database is that we have very few limits in how we structure our data. One very common such scenario is the usage of hierarchical data structures. The most trivial of them is the comment thread, such as the following document:
{ //posts/123 'Name':... | https://ravendb.net/docs/article-page/2.0/csharp/client-api/querying/static-indexes/indexing-hierarchies | CC-MAIN-2017-30 | refinedweb | 209 | 50.12 |
Let us now build the score maker. This will display whatever is played on the piano in music notation. For the sake of program modularity, we will build the program in a separate file named score_maker.py.
We start by defining a class ScoreMaker. Since we will be showing just two octaves of notes, we will define a cons... | https://www.oreilly.com/library/view/tkinter-gui-application/9781788837460/ad47d79e-3f04-40a9-a682-42a85d60f0d6.xhtml | CC-MAIN-2019-26 | refinedweb | 125 | 67.65 |
What is a python module?
Till now we have seen all the code written in a single python file but real applications are made up of multiple python files.
Each python file is called a Module.
This module can be used in other python files of the same application or it can also be used in other applications provided it is a... | https://codippa.com/tutorials/python/modules/ | CC-MAIN-2021-04 | refinedweb | 913 | 64.3 |
Architecting an iPhone chat app
With an installed base of 40 million iPhones, you have to be crazy if you aren't interested in writing an iOS application. But where do you start? Most applications are going to be network connected. So what about a project that spans across both, such as a chat application. In this arti... | http://www.ibm.com/developerworks/opensource/library/x-ioschat/index.html | CC-MAIN-2014-35 | refinedweb | 3,721 | 54.02 |
Applicable to us? Needs review.
Bill
-------- Original Message --------
Subject: readdir_r considered harmful
Date: Tue, 1 Nov 2005 03:57:03 +0000
From: Ben Hutchings <ben@decadentplace.org.uk>
To: bugtraq@securityfocus.com, full-disclosure@lists.grok.org.uk
readdir_r considered harmful
============================
Iss... | http://mail-archives.apache.org/mod_mbox/apr-dev/200511.mbox/%3C436E3592.6070004@rowe-clan.net%3E | CC-MAIN-2014-52 | refinedweb | 1,789 | 57.37 |
.
The task
I’m a member of many groups on Meetup. It’s often useful for me to get information using the official Meetup API rather than go around clicking on a Web site on or a mobile app. Why do by hand what I can do much more efficiently and correctly with code?
Here’s a very simplified example of something I might w... | https://conscientiousprogrammer.com/blog/2015/12/04/24-days-of-hackage-2015-day-4-wreq-web-client-programming-with-notes-on-lens-and-operator-syntax/ | CC-MAIN-2022-33 | refinedweb | 1,999 | 60.24 |
A.
Correcting stuck or hot pixels in images
Hot or stuck pixels in a camera are annoying and other than replacing the ccd chip, nothing can be done about it with regard to the hardware. More on this in this illuminating article. Sometimes the camera can map out bad pixels but that won't fix old images, so the plan is t... | http://michelanders.blogspot.com/2011/08/correcting-stuck-or-hot-pixels-in-nikon.html | CC-MAIN-2017-22 | refinedweb | 509 | 62.78 |
I have a user on Windows 7 that is trying to access a local server with a DNS name of windows.cs. We have two internal DNS servers. The DHCP server assigns users the two internal DNS servers as primary and secondary and then our ISPs DNS as a tertiary DNS server.
Every now and then, the user can't access the website at... | http://serverfault.com/questions/282755/dns-cant-resolve-hostname-nslookup-can/282995 | CC-MAIN-2015-48 | refinedweb | 504 | 70.73 |
Last?
I’m Looking For:
- Best Practices.
- Applying Modularity
- Prototyping vs. Closures.
- Mixing And Matching With Different JavaScript Libraries (Namespaces).
- Familiar with Dojo (if you’re new to Dojo and coming from jQuery, we recommend our previous blog post “From jQuery to Large Applications”).
- Using the Doj... | https://www.sitepen.com/blog/2011/05/04/what-is-the-best-way-to-start-a-dojo-project/ | CC-MAIN-2015-40 | refinedweb | 1,322 | 52.9 |
Lettuce uses python’s builtin exception AssertionError to mark tests as failed.
Although in order to describe the assertion with a custom string you would need to do something like:
from lettuce import step @step('some step with "(.*)"'): def some_step(step, from): assert from == 'expectation', \ "Ooops, '%s' should be... | http://lettuce.it/recipes/nose.html | CC-MAIN-2019-13 | refinedweb | 124 | 51.89 |
Sim. In general, e might not be explicitly defined in /any/ of the directly-imported modules, so you must recursively check their imports/re-exports. > If this is hard for the compiler, it's hard for the user too. Someone > understanding your source code has a lot of places to look to find the > target of an import. I ... | http://www.haskell.org/pipermail/libraries/2006-July/005490.html | CC-MAIN-2014-41 | refinedweb | 147 | 62.07 |
How to Fill Out The Free Application for Federal Student Aid (FAFSA) and Receive Money For College
Ranked #868 in How-To, #8,503 overall | Donates to Children's Defense Fund
There is over $30 Billion Available from the U.S. Federal Govt. For College
Take 5% off an order of $150 or more with coupon code REJULY at Resume... | http://www.squidoo.com/FAFSA | crawl-002 | refinedweb | 2,071 | 60.95 |
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ar.h> #include <arextern.h> int main() { ARControlStruct ctrl; ARNameType schema; ARStatusList status; ARFieldValueList fields; ARFieldValueStruct *field; AREntryIdType entryID; int errorCode; ctrl.cacheId = 0; ctrl.sessionId = 0; strcpy(ctrl.user, "u... | https://www.experts-exchange.com/questions/23117076/C-newbie-Needs-help-and-pointers-no-pun-intended.html | CC-MAIN-2018-34 | refinedweb | 717 | 66.54 |
This is the mail archive of the cygwin mailing list for the Cygwin project.
On Wed, Apr 04, 2012 at 10:02:24AM -0400, Ryan Johnson wrote: >> On 04/04/2012 9:32 AM, Denis Excoffier wrote: >> >Hello, >> > >> >It could be that snprintf() is not properly declared in<stdio.h>. >> According to [1], it's not officially part o... | http://cygwin.com/ml/cygwin/2012-04/msg00152.html | CC-MAIN-2019-26 | refinedweb | 187 | 70.19 |
Fri, 20 Sep 2002, Bryan L. Fordham wrote:
>.
I'm looking more for a narrative, but it should be succinct. Think of a
Cliff's Notes version of "Remailers for Dummies", and you've got an idea
of what I want. We already have a list of functions -- it's called mix.1.
> Would you want client or remailer functions done firs... | https://sourceforge.net/p/mixmaster/mailman/mixmaster-devel/?viewmonth=200209&viewday=20 | CC-MAIN-2017-09 | refinedweb | 1,394 | 58.99 |
cf-ui (not maintained)
This repository is no longer maintained. We decided to merge cf-ui into our internal monorepo and we will keep the future development there. We do not accept pull requests here. However, we plan to synchronize our internal changes with this repository.
Cloudflare UI Framework
cf-ui is a set of ov... | https://nicedoc.io/cloudflare/cf-ui | CC-MAIN-2019-35 | refinedweb | 357 | 59.4 |
Oxygene and Windows Phone 8 tutorials – Article Index
What is XAML?
XAML stands for Extended Application Markup Language. It is a declarative Markup language which is generally used to create the user interface.
The XAML can be defined directly in the Visual Studio/Expression Blend XAML Editor or the designer.
Let’s ta... | http://developerpublish.com/oxygene-wp8-xaml-overview/ | CC-MAIN-2017-22 | refinedweb | 312 | 58.18 |
Since blue corner are the Kellyites. Worshipping at the feet of John Kelly and Ed Thorpe they have only one commandment in their holy book: Thou shalt maximise the expectation of log utility of wealth.
This post is sort of about that battle, but more generally it's about two different forms of uncertainty for which hum... | https://qoppac.blogspot.com/2018/06/kelly-versus-classical-portfolio-theory.html | CC-MAIN-2019-22 | refinedweb | 2,925 | 59.64 |
Guest Post by Willis Eschenbach
Although it sounds like the title of an adventure movie like the “Bourne Identity”, the Bern Model is actually a model of the sequestration (removal from the atmosphere) of carbon by natural processes. It allegedly measures how fast CO2 is removed from the atmosphere. The Bern Model is u... | https://wattsupwiththat.com/2012/05/06/the-bern-model-puzzle/ | CC-MAIN-2016-40 | refinedweb | 44,283 | 59.53 |
Why have AppName at the start of fully qualified class paths?
(prompted by a late reply on a bug already marked as fixed - custom folder structure)
The reply was about adopting some first letter uppercase vs lowercase convention to differentiate namespace (alias?) from package path in a class path.
I assume what is mea... | https://www.sencha.com/forum/showthread.php?179316-Why-have-AppName-at-the-start-of-fully-qualified-class-paths | CC-MAIN-2015-35 | refinedweb | 1,565 | 65.12 |
. License:
Boost License 1.0. Authors:
Andrei Alexandrescu.
- void getopt(T...)(ref string[] args, T opts);
- Parse and remove command line options from an string array. Synopsis:
import std.getopt; string data = "file.dat"; int length = 24; bool verbose; enum Color { no, yes }; Color color; void main(string[] args) { ... | https://docarchives.dlang.io/v2.066.0/phobos/std_getopt.html | CC-MAIN-2019-04 | refinedweb | 229 | 50.02 |
My Blog
Fan's Blog
Albums
Children
Wedding
Friends
Hobbies
Firefox
Java
Psion
Toto/4D
Palm Pilot
Wap
Html
Perl
Chinese
Web Tools
Emacs/Cygwin
The Gnu Emacs and Cygwin tty problem has been haunting me since
I have started using them the first day. I did not understand
the cause of the problem at that time. After suffici... | http://www.khngai.com/emacs/tty.php | crawl-002 | refinedweb | 479 | 66.54 |
Related
Tutorial
Building a Landing Page in React Native Using Flex.
Styling a React Native app can be quite painful if you aren’t familiar with its styling powerhouse: the Flexbox layout module. While we can style with JavaScript, understanding and implementing Flexbox layout is an absolute essential for UI developmen... | https://www.digitalocean.com/community/tutorials/react-react-native-flexbox | CC-MAIN-2020-34 | refinedweb | 1,477 | 66.54 |
Welp, no one else on the Mac web seems to care that today is the 10-year anniversary of Steve Jobs' return to Apple, but this week also signifies another 10-year anniversary: the 10-year anniversary of the formation of the Macintosh Business Unit (Mac BU) at Microsoft! Incidentally, this anniversary (February 6, 1997) ... | https://arstechnica.com/apple/2007/02/6943/ | CC-MAIN-2017-30 | refinedweb | 224 | 60.14 |
In the following example, we will create a new custom table using the New custom table wizard. It will be a simple table for storing information about people. Each data record in the table will contain a person's first name, last name and date of birth.
1. Go to Site Manager -> Development -> Custom tables and click th... | http://devnet.kentico.com/docs/5_5r2/devguide/creating_custom_tables.htm | CC-MAIN-2019-47 | refinedweb | 412 | 72.66 |
Traditionally, web pages have been split up into markup (HTML), styling (CSS), and logic (JavaScript). Thanks to React and similar approaches, we've begun to question this split. We still may want to separate our concerns somehow. But the split can be on different axes.
This change in the mindset has lead to new ways t... | https://survivejs.com/react/advanced-techniques/styling-react/index.html | CC-MAIN-2018-51 | refinedweb | 2,469 | 67.65 |
Mobile App Performance and Size Optimization
iOS vs Android
Smartface is supporting iOS and Android development. Both working with Native API access. For more information how this works please check Smartface Native Framework Architecture document.
iOS and Android are very different platforms. They have different archi... | https://docs.smartface.io/7.0.1/smartface-native-framework/tips-and-tricks/mobile-app-performance-and-size-optimization/ | CC-MAIN-2022-40 | refinedweb | 2,362 | 65.32 |
8560/how-make-transactions-without-creating-assets-multichain
To transfer your Mycoins, you can make use of the send command as follows:
send address amount
where address is the address of the receiver.
To Know more about this, check out
In a private ethereum network you have ...READ MORE
you can use
const Socket = req... | https://www.edureka.co/community/8560/how-make-transactions-without-creating-assets-multichain?show=8561 | CC-MAIN-2019-35 | refinedweb | 133 | 70.7 |
#include <euc.h> int csetlen(int codeset);
int csetcol(int codeset);
int csetno(unsigned char c);
#include <widec.h> int wcsetno(wchar_t pc);
Both csetlen() and csetcol() take a code set number codeset, which must be 0, 1, 2, or 3. The csetlen() function returns the number of bytes needed to represent a character of th... | http://docs.oracle.com/cd/E36784_01/html/E36874/csetcol-3c.html | CC-MAIN-2014-42 | refinedweb | 259 | 61.56 |
mcpi alternatives and similar packages
Based on the "Network" category.
Alternatively, view mcpi alternatives based on common mentions on social networks and blogs.
haskoin9.9 4.5 mcpi VS haskoinHaskoin Core is a Bitcoin and Bitcoin Cash library
tls9.8 6.8 mcpi VS tlsTLS/SSL implementation in haskell
gogol9.8 9.9 mcpi ... | https://haskell.libhunt.com/hmcpi-alternatives | CC-MAIN-2022-33 | refinedweb | 701 | 59.09 |
Debugging Python’s Memory Usage with Dowser
The Performance Zone is brought to you in partnership with New Relic. New Relic APM provides constant monitoring of your apps so you don't have to.
As I mentioned in my previous post, I had to hunt down a leak (which was intentional considering the functionality) somewhere in... | https://dzone.com/articles/debugging-python%e2%80%99s-memory?mz=110215-high-perf | CC-MAIN-2015-48 | refinedweb | 390 | 50.97 |
On Thursday 12 December 2002 03:12, Joe Thornber wrote:> On Wed, Dec 11, 2002 at 04:15:42PM -0800, Wil Reichert wrote:> > Ok, 2.5.51 plus dm patches result in the following:> >> > Initializing LVM: device-mapper: device> > /dev/ide/host2/bus1/target0/lun0/disc too small for target> > device-mapper: internal error addin... | http://lkml.org/lkml/2002/12/12/173 | CC-MAIN-2016-44 | refinedweb | 396 | 58.18 |
Following on from this post, I wanted to see what would happen if I opened my solution in Expression Blend 2.5 June Preview and tried to style my control a little.
So, I opened it in Blend.
I got a bit stuck straight away because when I tried to display my page.xaml Blend threw up an error;
From the stack trace, this l... | http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2008/07/21/10617.aspx | crawl-002 | refinedweb | 407 | 70.16 |
Greetings! "Mike Thomas" <address@hidden> writes: > Hi Camm. > > 1. While trawling through the ANSI tester output a few days ago I noticed > that call-arguments-limit (set to 64) conflicts with the test in "eval.c" > based on the C macro MAX_ARGS (63) defined in "h/funlink.h". > > I played it safe and set call-argument... | http://lists.gnu.org/archive/html/gcl-devel/2004-11/msg00012.html | CC-MAIN-2015-06 | refinedweb | 630 | 64.91 |
INTRO(5) File Formats Manual INTRO(5)
NAME
intro - introduction to the Plan 9 File Protocol, 9P
SYNOPSIS
#include <<fcall.h>>
DESCRIPTION
A Plan 9, per-
haps servers: system calls
operating on files are translated into requests and responses transmit-
ted. The first byte is the
message type, one of the constants in the... | http://modman.unixdev.net/?sektion=5&page=0intro&manpath=plan9 | CC-MAIN-2017-17 | refinedweb | 1,167 | 66.27 |
Debuggers. Maybe you don’t always need them, but when you do, you need one that can give you comprehensive insight into your code, and make it easy to quickly track down problems.
In this post, we’ll take a look at some of the most popular Python debuggers to see how they measure up against each other, and to give you ... | https://sweetcode.io/python-debugger-showdown/ | CC-MAIN-2021-21 | refinedweb | 1,628 | 50.97 |
Why build a Home Truck Simulator?
Because we can (thanks to Vos Truck Parts Hedel NL)!
Feel free to ask "anything"!
The Scrapyard and Arduino make a great combination!
To make the experience fit your profile, pick a username and tell us what interests you.
We found and based on your interests.
Why build a Home Truck Si... | https://hackaday.io/project/8448-real-scania-truck-home-simulator | CC-MAIN-2020-50 | refinedweb | 1,287 | 74.49 |
guides-page_object
Contents
- Page Object Pattern
- Introducing the Page Object Pattern
- 1. The public methods represent the services that the page offers.
- 2. Try not to expose the internals of the page.
- 3. Methods return other PageObjects
- 4. Assertions should exist only in tests
- 5. Need not represent an entir... | https://docs.ubuntu.com/phone/en/apps/api-autopilot-development/guides-page_object.html | CC-MAIN-2018-47 | refinedweb | 1,165 | 62.27 |
Hey, all. In this article, we will be focusing on the scanf() function in C in detail.
Table of Contents
Working of the scanf() function in C
Be it any programming language, we always need user input, in order to make it work with a dynamic set of values.
This is where the
scanf() function in C comes into picture.
The ... | https://www.journaldev.com/43350/scanf-function-c | CC-MAIN-2021-04 | refinedweb | 376 | 59.43 |
PRCTL(2) Linux Programmer's Manual PRCTL(2)
prctl - operations on a process or thread
#include <sys/prctl.h> int prctl(int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5);
pr_SYSCALL_USER_DISPATCH (since Linux 5.11, x86 only) Configure the Syscall User Dispatch mechanism for the ... | https://man7.org/linux/man-pages/man2/prctl.2.html | CC-MAIN-2021-17 | refinedweb | 648 | 57.06 |
Let's talk about... architecture?
I'm going to cover an important, but potentially misunderstood topic: The architecture that you use for your web app, and specifically, how your architectural decisions come into play when you're building a progressive web app.
"Architecture" can sound vague, and it may not be immediat... | https://developers.google.cn/web/updates/2018/05/beyond-spa?hl=id | CC-MAIN-2020-34 | refinedweb | 4,373 | 62.68 |
Episode #77: You Don't Have To Be a Workaholic To Win
Published Sat, May 12, 2018, recorded Sat, May 12, 2018.
Sponsored by Datadog: pythonbytes.fm/datadog
Brian #1: Why Senior Devs Write Dumb Code
- “Any fool can write code that a computer can understand. Good programmers write code that humans can understand.” - Kent... | https://pythonbytes.fm/episodes/show/77/you-don-t-have-to-be-a-workaholic-to-win | CC-MAIN-2018-30 | refinedweb | 503 | 54.42 |
> Google > for "per-type function namespaces", which was an idea I sent to the > list a few months ago, for something which I think better solves the > naming issue. Quite a lot of people disagreed with it, but I still > think it's a good idea. (FWIW, I nearly managed to implement this with > Template Haskell, but I co... | http://www.haskell.org/pipermail/haskell/2004-June/014180.html | CC-MAIN-2014-10 | refinedweb | 558 | 73.68 |
Windows Communication Foundation From the Inside
The last cipher I'm going to talk about is the Advanced Encryption Standard (AES). With this, we'll have covered about half of the important algorithms needed for a transport security implementation, such as SSL. AES started out as a contest to replace DES for use by the... | http://blogs.msdn.com/drnick/archive/2006/08/01/685012.aspx | crawl-002 | refinedweb | 366 | 53.41 |
Articles Index
Currently there is no standard way to add validity constraints to Java classes. This is in contrast to other languages like XML in which (using XML Schema) relatively rich constraints may be specified. With the advent of annotations (JSR 175) in the Java 2 Platform, Standard Edition (J2SE) 5.0 a convenie... | http://java.sun.com/developer/technicalArticles/J2SE/constraints/annotations.html | crawl-001 | refinedweb | 5,154 | 53.51 |
Unity Function Performance Followup!
Today’s contenders are:
- Non-Virtual Instance Functions
- Virtual Instance Functions
- Static Functions
- Lambdas (i.e.
() => {})
- Delegates (i.e.
delegate(){})
- GameObject.SendMessage
Here’s the script that runs the test:
using System; using System.Diagnostics; using UnityEngine... | https://jacksondunstan.com/articles/3605 | CC-MAIN-2020-29 | refinedweb | 928 | 62.48 |
We needed a radio in the kitchen to replace our Bush DAB/FM portable which has put in good service, although DAB reception in our area has never been great.
As space is at a premium, I wanted the new radio to take up as little space as possible.
So I came up with the idea of building something that would fit under the ... | http://captainbodgit.blogspot.com/2016/04/kitchenpi-internet-radio-for-my-kitchen.html | CC-MAIN-2017-34 | refinedweb | 1,757 | 64.41 |
Stream and convert BCP format files
Project description
BCP Reader
A reader for BCP-format data files. BCP files are similar to CSV files but contain a multi-character line and field delimiters. The default delimiters used are:
- field delimiter:
@**@
- line delimiter:
*@@*
Python's csv module can only deal with single... | https://pypi.org/project/bcp-reader/ | CC-MAIN-2020-10 | refinedweb | 227 | 62.38 |
Index
Links to LINQ.
NOTE: The LINQ to SQL Designer is covered here.
When combined with partial classes, partial methods allow the developers of auto-generated code to reserve a name for a method that can be optionally implemented by the consumer of the class. This gives a developer a place where she can optionally add... | http://blogs.msdn.com/charlie/archive/2007/11/11/partial-methods.aspx | crawl-002 | refinedweb | 2,370 | 61.06 |
nsg_get_pids - Return a list of a NUMA Scheduling Group's
process identifiers (libnuma library)
#include <numa.h>
int nsg_get_pids(
nsgid_t nsg,
pid_t *pidlist,
int numpids );
Specifies the NUMA Scheduling Group (NSG). Specifies an
array receiving the process identifiers of the specified
NSG. Specifies the maximum numb... | https://nixdoc.net/man-pages/Tru64/man3/nsg_get_pids.3.html | CC-MAIN-2022-21 | refinedweb | 261 | 57.37 |
The
**This project is still in work. I hope the final version will be more beautiful.
Preparation:
Relay connection
- Connect relay to RPI 3. In my case i used GPIO12 pin for data , 5v for power and you can choose any GND.
You can test the relay with shell script, just create a simple sh script:
nano open.sh chmod +x o... | https://hackaday.io/project/25716-smart-intercom | CC-MAIN-2020-05 | refinedweb | 523 | 52.36 |
strcspn() prototype
size_t strcspn( const char *dest, const char *src );
If either src or dest does not point to a null terminated byte string, the behaviour of
strcspn() function is undefined.
It is defined in <cstring> header file.
strcspn() Parameters
dest: Pointer to a null terminated string to be searched.
src: Po... | https://www.programiz.com/cpp-programming/library-function/cstring/strcspn | CC-MAIN-2020-16 | refinedweb | 153 | 54.36 |
Musings of a Client Platform Guy
If you want to see a contrasting online shopping experience to Otto, you could do worse than look at fnac.com. FNAC are in many ways the French equivalent of Best Buy, selling all things electronic: cameras, MP3 players, televisions, PCs. To coincide with the Windows Vista launch, they'... | http://blogs.msdn.com/tims/archive/2007/02/02/great-wpf-applications-6-fnac-com.aspx | crawl-002 | refinedweb | 1,215 | 69.62 |
PSoC Creator 4.0: Import & modify components with customizers failuser_246598725 Mar 13, 2017 11:43 PM
Hi,
I just wanted to get in touch with the customizers, so I decided to make a new library and imported the demux component. After renaming the component and its files and also took care of the catalog placement, I bu... | https://community.cypress.com/thread/11316 | CC-MAIN-2018-43 | refinedweb | 754 | 56.35 |
We proudly want to participate in this week’s flurry of announcements around Apache Spark.
While we’re cooperating with Databricks in other areas like the implementation of openCypher on Spark and as an industry-partner of AMPLab, today I want to focus on the Neo4j Spark Connector.
Enabled by Neo4j 3.0
One of the impor... | https://neo4j.com/blog/neo4j-3-0-apache-spark-connector/ | CC-MAIN-2020-34 | refinedweb | 709 | 57.77 |
The Data Science Lab
Dr. James McCaffrey of Microsoft Research shows how to compute the Wasserstein distance and explains why it is often preferable to alternative distance functions, used to measure the distance between two probability distributions in machine learning projects.
A common task in machine learning is me... | https://visualstudiomagazine.com/articles/2021/08/16/wasserstein-distance.aspx | CC-MAIN-2022-21 | refinedweb | 1,734 | 65.62 |
hello,\nI am newbie in c++ and want to have good proggramer in it. I want\nto ask some question\n1)I downlaoded some .cpp files and found some have iostream.h while\nsome have only\n#include <iostream>\nusing namespace std;\nwhats difference between them?\n2) former include works in turbo C++ compiler but later not wor... | https://www.thecodingforums.com/threads/newbie-to-c-programming.290405/ | CC-MAIN-2020-16 | refinedweb | 111 | 59.9 |
We have created a custom class, say
Person, and use it in a unit test.
void TestPerson::testEquality() { Person p1("Alice", 42); Person p2("Bob", 37); QCOMPARE(p1, p2); }
The unit test fails with this message.
FAIL! : TestPerson::testEquality() Compared values are not the same Loc: [../QComparePrint/TestPerson.cpp(8)]
... | http://www.embeddeduse.com/2017/10/07/pretty-printing-output-for-qcompare/ | CC-MAIN-2017-51 | refinedweb | 304 | 65.22 |
0
I have had an issue with getline(cin,string) in several of my programs. The program does not allow the user to input information after the cout statement preceding getline(cin,string). Below is an example code of the issue I am having(Btw I am using code::blocks with GNU compiler):
#include <iostream> #include <cstri... | https://www.daniweb.com/programming/software-development/threads/364623/getline-cin-string-issue | CC-MAIN-2016-50 | refinedweb | 131 | 73.78 |
C Program For Palindrome String – What is Palindrome? A palindrome is a sequence of characters which reads the same backward as forward. A palindrome could be a word, phrase, number, or other sequences of characters. such as madam or racecar.
Palindrome Word Examples:
Madam, Racecar, Radar, Etc.
C Program For Palindrom... | https://codingcompiler.com/c-program-for-palindrome-string/ | CC-MAIN-2020-16 | refinedweb | 419 | 66.98 |
This is a sequel of previous post Sangria without case classes where I’m exploring shapeless in conjunction with the awesome Sangria lib. Mind this is total exploration and chances are (actually very likely) that it is possible to do simpler code to achieve the same effect.
In this post we will see shapeless
HMaps and ... | https://paulosuzart.github.io/blog/2017/07/29/sangria-without-case-classes-pt2/ | CC-MAIN-2021-21 | refinedweb | 1,066 | 53.1 |
NOTE: This article has been updated to use the new Sentry SDK
Prereqs:
- Sentry — Open-source error tracking that helps developers monitor and fix crashes in real time.
- @sentry/browser — Sentry SDK for JavaScript
- Webpack — Webpack is an open-source JavaScript module bundler. Its main purpose is to bundle JavaScript... | https://medium.com/inturn-eng/uploading-source-maps-to-sentry-with-webpack-ed29cc82b01d | CC-MAIN-2020-24 | refinedweb | 1,151 | 60.04 |
automatic line numbering help.
Hi I love notepad++ and use it for all my code editing. I’m hoping it can help with an issue I have with automation scripts for a program called “do it again”. This lightweight tool makes simple recordings of your actions and allows you to re-run them and loop them.
It saves them as text ... | https://community.notepad-plus-plus.org/topic/15933/automatic-line-numbering-help | CC-MAIN-2019-43 | refinedweb | 1,140 | 74.63 |
Tutorial: Create custom functions in Excel
Custom functions enable you to add new functions to Excel by defining those functions in JavaScript as part of an add-in. Users within Excel can access custom functions as they would any native function in Excel, such as
SUM(). You can create custom functions that perform simp... | https://docs.microsoft.com/en-us/office/dev/add-ins/tutorials/excel-tutorial-create-custom-functions | CC-MAIN-2020-45 | refinedweb | 1,055 | 57.47 |
Nov 18, 2013 04:20 PM|ojm37|LINK
I'm converting to using C# from VB and I have a question about the c# using directive as opposed to the VB includes directive.
I have a class in a namespace with a fairly long, descriptive name that I can shortcut in VB with the includes directive.
For example, in VB I have a class call... | https://forums.asp.net/t/1951634.aspx?using+namespace+class | CC-MAIN-2017-43 | refinedweb | 585 | 63.8 |
When developing web applications with Vue.js, unless you're building a Single-Page Application (SPA), you'll want to connect multiple pages to a landing page to allow users to navigate through them. This is known as routing. Routing is the process by which a user is navigated to different pages on a website. Vue.js is ... | https://www.codevelop.art/guide-to-vue-router.html | CC-MAIN-2022-40 | refinedweb | 2,155 | 55.88 |
This how-to post will introduce you to building REST-based services using WCF. This series is split into three parts. Each part is built on the previous part.
WCF in .NET 3.5 has added features to its programming model to make it easy to build services which can be invoked using a REST-based approach. In this first par... | http://blogs.msdn.com/b/bspann/archive/2008/04/04/building-rest-based-services-using-wcf-part-1.aspx | CC-MAIN-2014-41 | refinedweb | 1,403 | 50.43 |
A lightweight and easy to use logging API to include in your mobile iOS application.
DogSwift uses
os_log on devices with iOS 10.0+ installed and falls back to
NSLog for older iOS versions. DogSwift can print errors, messages and object descriptions to Xcode's debugging console. It's also possible to tag each logging s... | https://swiftpack.co/package/dreipol/DogSwift | CC-MAIN-2021-21 | refinedweb | 329 | 51.85 |
TkInter
The "standard" Python Gui Framework.
But many don't like it much.
Lion Kimbro helper tool
Oct'2014: Upgrading Python in the course of playing with TankWiki has killed my TkInter, which is needed to run some other script someone gave me. {{{
import Tkinter
File "/Library/Frameworks/Python.framework/Versions/2.7/... | http://webseitz.fluxent.com/wiki/TkInter | CC-MAIN-2018-22 | refinedweb | 250 | 81.43 |
I've recently started developing with Jython and I love the language. the combination of Python's dynamic features with Java is extremely powerful. If you are not familiar with Python or Jython, be sure to check the above links. As an Action Script veteran, I have to admit that Python makes me miss the early days of AS... | http://www.flexonjava.net/2009/08/jython-convert-file-into-byte-array.html | CC-MAIN-2015-40 | refinedweb | 354 | 61.56 |
On Thu, 2006-07-13 at 12:14 -0600, Eric W. Biederman wrote:> Maybe. I really think the sane semantics are in a different uid namespace.> So you can't assumes uids are the same. Otherwise you can't handle open> file descriptors or files passed through unix domain sockets.Eric, could you explain this a little bit more? I... | https://lkml.org/lkml/2006/7/13/253 | CC-MAIN-2015-22 | refinedweb | 101 | 69.89 |
Using groovy script I have gathered all the ID one by one from response. I want to store these values into datasource, and pass them into next request, is it possible??
=========================================================
My script:
for ( j = 0 ; j < dresRows ; j++){
def response = context.expand( '${ABCD#Response... | https://community.smartbear.com/t5/SoapUI-Pro/How-to-store-value-from-groovy-script-into-DataSource/m-p/175816 | CC-MAIN-2019-47 | refinedweb | 286 | 66.64 |
from qiskit import * from qiskit.tools.visualization import plot_histogram %config InlineBackend.figure_format = 'svg' # Makes the images look nice import numpy as np
1
Show that the Hadamard gate can be written in the following two forms$$H = \frac{X+Z}{\sqrt{2}} \equiv \exp\left(i \frac{\pi}{2} \, \frac{X+Z}{\sqrt{2}... | https://qiskit.org/textbook/ch-ex/ex2.html | CC-MAIN-2020-50 | refinedweb | 360 | 57.67 |
Reading CSV files into Dask DataFrames with read_csv
• February 9, 2022
This blog post explains how to read one or multiple CSV files into a Dask DataFrame with read_csv. It’ll discuss the different options for reading CSV files and what code design patterns will give you the best performance.
Here’s how this post is o... | https://coiled.io/blog/dask-read-csv-to-dataframe/ | CC-MAIN-2022-21 | refinedweb | 1,867 | 63.09 |
How to: Create and Execute a Simple PLINQ Query
The following example shows how to create a simple Parallel LINQ query by using the AsParallel extension method on the source sequence, and executing the query by using the ForAll method.
Note
This documentation uses lambda expressions to define delegates in PLINQ. If you... | https://docs.microsoft.com/en-au/dotnet/standard/parallel-programming/how-to-create-and-execute-a-simple-plinq-query | CC-MAIN-2019-39 | refinedweb | 431 | 50.02 |
ichael Raduga
INear-Death Meditation for BeginnersFirst Edition Translated by Peter Orange
The practice of phase states of the mind is the hottest and most promising pursuit of the modern age. Unlike in the past the notions of !out"of"body e#perience$ !near"death meditation$ !lucid dreaming$ and !astral pro%ection$ ha&... | https://it.scribd.com/document/220399486/Near-Death-Meditation-for-Beginners-Yoga-Free-E-book | CC-MAIN-2020-45 | refinedweb | 62,594 | 59.33 |
Azure Contoso Loans Azure Monitor Network Azure Monitor CPU.
Installation
This plugin requires Grafana 4.5.0 or newer (5.2.0 or newer if you are querying Azure Log Analytics).
Grafana Cloud
If you do not have a Grafana Cloud account, you can sign up for one here.
Click on the
Install Nowbutton on the Azure Monitor Moni... | https://grafana.com/grafana/plugins/grafana-azure-monitor-datasource?src=blog&camp=timeshift_17 | CC-MAIN-2020-40 | refinedweb | 1,622 | 55.24 |
# How we sympathize with a question on StackOverflow but keep silent

On the stackoverflow.com website, we frequently see questions about ho... | https://habr.com/ru/post/585270/ | null | null | 770 | 64.71 |
Java - Comments
The Comments are added in programming code with the purpose of making the code easier to understand. It makes the code more readable and hence easier to update the code later. Comments are ignored by compiler while running the code. In Java, there are two ways of putting a comment.
- Single line comment... | https://www.alphacodingskills.com/java/java-comments.php | CC-MAIN-2021-04 | refinedweb | 181 | 68.26 |
UTMP(5) OpenBSD Programmer's Manual UTMP(5)
NAME
utmp, wtmp, lastlog - login records
SYNOPSIS
#include <<utmp.h>>
DESCRIPTION creat-
ed. us-
er logged in, the terminal line, and the hostname are written to the
standard in-
dicates the time prior to the change and the ``{'' character
indicates the new time.
FILES
/var/r... | http://modman.unixdev.net/index.php?page=utmp&sektion=5&manpath=OpenBSD-3.6 | CC-MAIN-2013-20 | refinedweb | 127 | 64.3 |
Looking back to 2 days ago, Adeptus Health Inc (Symbol: ADPT) priced a 3,400,000 share secondary stock offering at $105 ADPT at a cheaper price, might benefit from considering selling puts among the alternative strategies at their disposal. One interesting put contract in particular, is the February 2016 put at the $90... | https://www.nasdaq.com/articles/use-options-chance-buy-adpt-29-discount-2015-07-31 | CC-MAIN-2021-17 | refinedweb | 254 | 73.27 |
from random import choice as randomcards
def total(hand):
# how many aces in the hand
aces = hand.count(11)
# to complicate things a little the ace can be 11 or 1
# this little while loop figures it out for you
t = sum(hand)
# you have gone over 21 but there is an ace
if t > 21 and aces > 0:
while aces > 0 and t > 21:
... | http://forums.devshed.com/python-programming-11/blackjack-code-578885.html | crawl-002 | refinedweb | 163 | 79.13 |
The Sisu project provides a dynamic dependency injection framework that can interact with OSGi services and Eclipse extensions.
The project is currently divided into three codebases:
Sisu artifacts will be made available in the Eclipse download area and published to the Central Repository. The project also plans to pro... | http://www.eclipse.org/projects/project-plan.php?planurl=/sisu/project-info/plan.xml | CC-MAIN-2014-41 | refinedweb | 230 | 54.22 |
Create a new action.
Execute an embedded Python Script.
Use this:
- Code: Select all
import urllib
# Get a file-like object for the Python Web site's home page.
f = urllib.urlopen("")
# Read from the object, storing the page's contents in 's'.
s = f.read()
f.close()
Change the 192.168.15.116 to the IP address of your D... | http://forums.indigodomo.com/viewtopic.php?amp=&t=7294&p=44492 | CC-MAIN-2014-42 | refinedweb | 109 | 86.91 |
This blog is created based on a following problem.
A big office supplies company was trying to send out shipment/delivery data information to the carriers based in France. The standard dispatch manifest format for the carriers in France is an EDIFACT based message called INOVERT DISPOR. As you can imagine SAP does not ... | https://blogs.sap.com/2014/05/14/creating-custom-edifact-message-with-b2b-adapter-has-never-been-so-easy-before/ | CC-MAIN-2019-09 | refinedweb | 797 | 66.54 |
Build an App with Everything New & Noteworthy in Angular 7
Free JavaScript Book!
Write powerful, clean and maintainable JavaScript.
RRP $11.95
This article was originally published on the Okta developer blog. Thank you for supporting the partners who make SitePoint possible.
Angular 7 was released earlier this quarter ... | https://www.sitepoint.com/build-an-app-with-everything-new-noteworthy-in-angular-7/ | CC-MAIN-2021-04 | refinedweb | 1,416 | 50.33 |
Creating Processes Remotely using WMI
You can use Win32_Process.Create to execute a script or application on a remote computer. However, for security reasons, the process cannot be interactive. When Win32_Process.Create is called on the local computer, the process can be interactive.
The remote process has no user inte... | https://msdn.microsoft.com/en-us/library/aa389769(v=vs.85).aspx | CC-MAIN-2016-30 | refinedweb | 160 | 51.04 |
I helped my students understand the decision tree classifier in sklearn recently. Maybe they think I helped too much. But I think it was good for them. We did an interesting little exercise, too, writing a program that writes a program that represents a decision tree. Maybe it will be useful to someone else as well:
de... | https://healthyalgorithms.com/2015/02/19/ml-in-python-getting-the-decision-tree-out-of-sklearn/ | CC-MAIN-2018-51 | refinedweb | 162 | 70.6 |
WAPDA - HUBCO TARIFF DISPUTE
The sooner the issue is resolved the better it is
By SHABBIR H. KAZMI
Oct 09 - 15, 2000
Once again the much anticipated settlement of WAPDA-HUBCO dispute has eluded the market. The visit of HUBCO officials to Islamabad has been postponed. There are various conflicting news concerning the cu... | http://www.pakistaneconomist.com/pagesearch/Search-Engine2000/S.E55.php | CC-MAIN-2017-43 | refinedweb | 867 | 54.63 |
lwp_park and lwp_unpark
By user12625760 on Jan 29, 2009
When you have a program that uses the locking primitives mutex_lock() and mutex_unlock and their POSIX equivlients if you truss the process you will often see calls to lwp_park() and lwp_unpark() appering:
These system calls are, as their names imply, the calls t... | https://blogs.oracle.com/chrisg/tags/lwp_park | CC-MAIN-2016-26 | refinedweb | 186 | 58.52 |
Linux
2019-03-06
NAME
pid_namespaces - overview of Linux PID namespaces
DESCRIPTION
For an overview of namespaces, see namespaces(7)..). fail with the error ENOMEM; it is not possible to create a new process).. namespaces..’s idea of its own PID (as reported by getpid()), which would break many applications and librari... | https://reposcope.com/man/en/7/pid_namespaces | CC-MAIN-2022-21 | refinedweb | 120 | 50.23 |
In python, we don’t have any specific functions like
random() to generate random values. If you want to generate some random values, you need to import a built-in
random module.
Following is the example of importing a built-in random module to generate the random number.
If you observe the above example, we imported th... | https://www.tutlane.com/tutorial/python/python-random-module | CC-MAIN-2021-21 | refinedweb | 481 | 55.54 |
import "github.com/tychoish/lru"
Package lru provides a tool to prune files from a cache based on LRU.
lru implements a cache structure that tracks the size and (modified*) time of a file.
* future versions of lru may use different time method to better approximate usage time rather than modification time.
cache.go fil... | https://godoc.org/github.com/tychoish/lru | CC-MAIN-2018-26 | refinedweb | 509 | 64.41 |
Hi,
i have an ear application containing one ejb and two war modules.
i wrote a bootstap class in order to start some scheduling:
@Name("bootstrap") @Scope(ScopeType.APPLICATION) @Startup public class Bootstrap { @In EntityManager entityManager; @Create public void start() throws Exception { Events.instance().raiseTime... | https://developer.jboss.org/thread/141057 | CC-MAIN-2017-39 | refinedweb | 103 | 57.87 |
When the Fabric team at Twitter wrote their new iOS app, they turned to Swift. Why? Javi Soto walks through their decision, and tells why they picked a language that emphasizes stability and maintainability & supports dependency injection, code generation, MVVM, and error reporting.
Introduction (00:00)
I love what Rea... | https://academy.realm.io/posts/slug-javi-soto-building-fabric-in-swift/ | CC-MAIN-2019-43 | refinedweb | 6,282 | 63.19 |
1. Ring:bit Python Samples
1.1. Add Python Documents
Download and unzip the package: EF_Produce_MicroPython-master Go to Python editor
For programming, we need to add the file of Ringbit.py. Click Load/Save first and again with Show Files(1), choose “add file” to get to the download page to find the file folder of EF_P... | https://www.elecfreaks.com/learn-en/microbitKit/ring_bit_v2/ring-bit-python.html | CC-MAIN-2022-21 | refinedweb | 221 | 69.79 |
Imagick is a native PHP extension to create and modify images using the ImageMagick API. The name causes some confusion as people think that ImageMagick and Imagick are the same thing, however they aren't. You can use ImageMagick without Imagick but you need both Imagick and ImageMagick installed to run it within your ... | https://ourcodeworld.com/articles/read/349/how-to-install-and-enable-the-imagick-extension-in-xampp-for-windows | CC-MAIN-2020-05 | refinedweb | 1,011 | 55.98 |
2005-10-19
ACPI, which stands for Advanced Configuration and Power Interface, is the successor to APM (Advanced Power Management). The specification provides for many functions besides power management, such as thermal management and plug-and-play events. This document covers those functions supported by Linux to-date.... | http://www.columbia.edu/~ariel/acpi/acpi_howto.html | crawl-002 | refinedweb | 23,507 | 70.33 |
In the quick tour analysis you created a Beta executable by
compiling the code in the BetaMiniUser package.
When you issued the command:
workdir> BetaMiniApp snippet.tcl
>
> ev beg -nev 3
> ev cont -nev 37
> exit
main()
Framework/AppMain.cc.
The Framework allows four types of processes to occur:
The framework passes da... | http://www.slac.stanford.edu/BFROOT/www/doc/workbook_kiwi/framework1/framework1.html | CC-MAIN-2017-30 | refinedweb | 1,560 | 56.86 |
a test of restructured text in zwiki - this is a copy of .
Sending XHTML as text/html Considered Harmful
Author: Ian Hickson <ian@hixie.ch> (Comments welcome.) late 2004, it is still just as relevant as when it was originally written.
Note that this document compares XHTML 1.0 compliant to appendix C to HTML 4.01, beca... | https://zwiki.org/FrontPage/SendingXHTMLAsTextHtmlConsideredHarmful | CC-MAIN-2021-25 | refinedweb | 1,741 | 73.07 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.