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 |
|---|---|---|---|---|---|
Contents
I’ll try something new today: I pick a piece of code from the web and see what improvements I would make to it, using small refactoring steps.
I got across the code on Twitter: Joshua Ogunyinka asked about the safety of the deletion in the
CompoundStatement destructor. He posted the code on ideone, but as far ... | https://arne-mertz.de/2016/03/refactoring-session-01/ | CC-MAIN-2022-05 | refinedweb | 4,044 | 61.06 |
mitem_current(3) UNIX Programmer's Manual mitem_current(3)
mitem_current - set and get current_menu_item
#include <menu.h> int set_current_item(MENU *menu, const ITEM *item); ITEM *current_item(const MENU *menu); int set_top_row(MENU *menu, int row); int top_row(const MENU *menu); int item_index(const ITEM *item);
The ... | http://mirbsd.mirsolutions.de/htman/sparc/man3/top_row.htm | crawl-003 | refinedweb | 199 | 51.75 |
A simple drawing program that lets you use your keyboard to draw figures on screen, using the turtle graphics module built into Python.
Python, 68 lines
You can experiment with both using this recipe to draw shapes, as well as enhance it to support more drawing operations.
More details and sample output here:
Edited co... | https://code.activestate.com/recipes/580544-simple-drawing-tool-with-python-turtle-graphics/ | CC-MAIN-2022-05 | refinedweb | 231 | 73.13 |
The big impact of this proposal is that __xxx__ variables defined immediately following the docstring (if present) would cease to become local variables. This of course has the possiblity of breaking existing code. But I don't believe that developers routinely use such names for local variables, so I don't believe that... | https://mail.python.org/pipermail/python-list/2004-August/261431.html | CC-MAIN-2018-05 | refinedweb | 267 | 64.2 |
Maybe your try to put a 'parentID' in your openejb-jar.xml.
I'm doing this sucessfully in the same manner.
Thanks,
Kevin
On 6/5/06, David Jencks <david_jencks@yahoo.com> wrote:
>
> I'm having difficulty interpreting most of your stack traces: were
> some on the client side and some on the server side?
>
> In any case, ... | http://mail-archives.apache.org/mod_mbox/geronimo-user/200606.mbox/%3C8b77629c0606060057v35a324a9u5350c7d95beee971@mail.gmail.com%3E | CC-MAIN-2016-40 | refinedweb | 112 | 71.65 |
______________________________________________________________________________________________
Hello:
I'm trying to create some kind of Event class hierarchy.
I have a generic Event class /Generic, and also two subclasses: /Generic/Specific1 and /Generic/Specific2.
Using an event transform, in a mapping which belongs t... | http://community.zenoss.org/message/52193?tstart=0 | CC-MAIN-2014-42 | refinedweb | 497 | 67.76 |
The idea is straightforward, with the input string
s, we generate all possible states by removing one
( or
), check if they are valid, if found valid ones on the current level, put them to the final result list and we are done, otherwise, add them to a queue and carry on to the next level.
The good thing of using BFS i... | https://discuss.leetcode.com/topic/28827/share-my-java-bfs-solution | CC-MAIN-2017-51 | refinedweb | 978 | 81.83 |
Over the past few weeks I've been learning React, and now it's time to show what I've learned. I decided to make a recipe manager similar to the one that I previously built using vanilla JavaScript. While it was relatively easy to make this transition, I definitely encountered some hiccups that required a little more t... | https://dev.to/lorenmichael/recipe-manager-20-react-52c4 | CC-MAIN-2022-27 | refinedweb | 1,064 | 57.1 |
Extending Microsoft Dynamics AX 2012 Cookbook — Save 50%
A practical guide to extending and maximizing the potential of Dynamics AX using common Microsoft technologies with this book and ebook.
(For more resources related to this topic, see here.)
Creating a Dynamics AX web service
There are a number of web services th... | http://www.packtpub.com/article/web-services-and-forms | CC-MAIN-2014-15 | refinedweb | 2,813 | 68.6 |
On Tuesday 07 February 2006 22:17, Jan-Henrik Haukeland wrote: > On 7. feb. 2006, at 19.43, Philipp Berndt wrote: > > Note that checking for the process id is *NOT* enough, because the > > service may > > have to initialize (spawn other processes, claim resources etc.). > > This is exactly the problem, waiting for a pr... | http://lists.gnu.org/archive/html/monit-general/2006-02/msg00006.html | CC-MAIN-2015-22 | refinedweb | 601 | 68.6 |
04 April 2012 12:42 [Source: ICIS news]
SINGAPORE (ICIS)--Saudi Polyolefins Co (SPC) is in the progress of ramping up its polypropylene (PP) line in ?xml:namespace>
One of the two reactors on the line was shut because of technical issues, with production of about 2,000 tonnes of PP material lost, the source said at the... | http://www.icis.com/Articles/2012/04/04/9547841/saudis-spc-ramps-up-pp-facility-after-brief-outage.html | CC-MAIN-2014-49 | refinedweb | 124 | 50.2 |
An easy, consistent way to override CSS modules in React components.
CSS Modules
CSS modules are fantastic because they scope your CSS. No longer does everything have to live in the global namespace.
A natural boundary to scope CSS to is within a web component. A React component can have a corresponding
*.css file to a... | https://jaketrent.com/post/override-css-modules-react-styleable | CC-MAIN-2021-21 | refinedweb | 552 | 67.45 |
In larger software applications, developer and reviewer must focus on some points to make code easy to read, easy to understand, easy to maintain, reliable, secure and scalable. Developer should also follow the software quality assurance by using standard application design architecture, design principles and design pa... | https://facingissuesonit.com/java-coding-review-best-practices/ | CC-MAIN-2019-04 | refinedweb | 2,281 | 58.99 |
Odoo Help
This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.
Import cvs file does not work, buttons stay grey
When I try to import a csv file Sales - sales/ customers (listview) the buttons "Validate"... | https://www.odoo.com/forum/help-1/question/import-cvs-file-does-not-work-buttons-stay-grey-47060 | CC-MAIN-2016-50 | refinedweb | 379 | 68.87 |
One of the most common ways to interact with databases on JVM is the JDBC API.
JDBC stands for Java Database Connectivity, which is a standard Java API for database-independent connectivity between the Java programming language and a wide range of databases.
Aerospike is a fast and durable No-SQL database. It has its o... | https://practicaldev-herokuapp-com.global.ssl.fastly.net/aerospike/introducing-aerospike-jdbc-driver-4l14 | CC-MAIN-2021-21 | refinedweb | 687 | 55.34 |
In its latest issue, the prestigious Harvard Business Review has named its best-performing CEOs in the world and fresh in at number one is none other than Apple chief Steve Jobs, with Microsoft counterpart Steve Ballmer not even listed
The magazine collected data on 2,000 CEOs, from all fields and around the globe, cov... | http://www.techradar.com/news/computing/apple/apples-jobs-gets-top-ceo-gong-659634 | CC-MAIN-2016-07 | refinedweb | 317 | 59.43 |
23 February 2010 21:26 [Source: ICIS news]
HOUSTON (ICIS news)--A US propylene producer nominated an increase of 5 cents/lb ($110/tonne, €80/tonne) for March, market sources said on Tuesday, pointing to yet another likely jump for the monthly contract.
US polymer-grade propylene (PGP) contracts for February settled at ... | http://www.icis.com/Articles/2010/02/23/9337275/US-C3-poised-for-new-jump-5-ctlb-hike-sought-for-March.html | CC-MAIN-2015-06 | refinedweb | 280 | 56.05 |
Important: Please read the Qt Code of Conduct -
Image rotation causes distortion
Hi
I making some image to rotate each 10 degrees. Rotation itself works fine. My problem is related to image. After some iterations image gets distorted. This occurs with any degree value.
My guess is because image bounding box. If so, is ... | https://forum.qt.io/topic/20484/image-rotation-causes-distortion/1 | CC-MAIN-2021-17 | refinedweb | 668 | 52.87 |
Daniel Phillips <phillips@phunq.net> wrote:> On Monday 25 February 2008 15:19, David Howells wrote:> > So I guess there's a problem in cachefiles's efficiency - possibly due> > to the fact that it tries to be fully asynchronous.> > OK, not just my imagination, and it makes me feel better about the patch > set because e... | http://lkml.org/lkml/2008/2/25/500 | CC-MAIN-2014-10 | refinedweb | 1,766 | 60.55 |
Guido van Rossum wrote: > Nick, and everybody else trying to find a "solution" for this > "problem", please don't. Denying that there's a problem isn't going to make it go away. Many people, including me, have the feeling that the standard way of defining properties at the moment leaves something to be desired, for all... | https://mail.python.org/pipermail/python-dev/2005-October/057363.html | CC-MAIN-2016-30 | refinedweb | 228 | 53.31 |
In plain and simple language, Helm is the package manager for Kubernetes. If we assume Kubernetes as an OS then Helm is Yum or apt. In Kubernetes, to install, uninstall, upgrade, update all tasks are performed using YAML manifests. Managing these YAMLs are a bit of pain. To manage these constant repeatable deployments,... | https://practicaldev-herokuapp-com.global.ssl.fastly.net/arunksingh16/getting-started-with-helm-v3-2k71 | CC-MAIN-2021-21 | refinedweb | 1,390 | 56.96 |
A statement can be executed by different threads at different time.
The Thread class static method currentThread() returns the reference of the Thread object that calls this method.
Consider the following statement:
Thread t = Thread.currentThread();
The statement will assign the reference of the thread object that exe... | http://www.java2s.com/Tutorials/Java/Java_Thread/0040__Java_Thread_Current.htm | CC-MAIN-2017-04 | refinedweb | 320 | 52.15 |
Patches item #1516912, was opened at 2006-07-04 13:15 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest upda... | https://mail.python.org/pipermail/patches/2006-July/020167.html | CC-MAIN-2017-17 | refinedweb | 218 | 51.38 |
> Yes, I already did it. Now I just need to remove all the code dealing
> with authentication from the flowscript. Do you see a problem with that?
> I only see benefits:
>
> - less code to maintain
> - possibility of using different user repositories (file, JDBC, LDAP,
> ...) via standard inderfaces
> - Single Sign-On
... | http://mail-archives.apache.org/mod_mbox/cocoon-dev/200403.mbox/%3C4065B39E.4020507@vafer.org%3E | CC-MAIN-2018-39 | refinedweb | 198 | 67.15 |
The objective of this post is to explain how to install a module to use the SHA-256 algorithm with MicroPython, running on the ESP32.
Introduction
The objective of this post is to explain how to install a module to use the SHA-256 algorithm with MicroPython, running on the ESP32.
We are going to use a module from hashl... | https://techtutorialsx.com/2017/06/18/esp32-micropython-using-sha-256/ | CC-MAIN-2017-34 | refinedweb | 645 | 72.87 |
Extras/SteeringCommittee/Meeting-20060810
From FedoraProject
2006 August 10 FESCo
Meeting Summaries are posted on the wiki at:
Attending
- warren
- thl
- scop
- c4chris
- rdieter
- tibbs
- abadger1999
- bpepple
- dgilmore
Summary
Mass Rebuild
- Plan and questions are on the wiki at
- Which packages need to be rebuilt
-... | http://fedoraproject.org/wiki/Extras/SteeringCommittee/Meeting-20060810 | CC-MAIN-2015-14 | refinedweb | 7,435 | 65.76 |
How do I bind a key combo to command_mode?
{ "keys": "alt+z"], "command": "setting", "args": {"command_mode": true} }
You use a context:
{ "keys": "alt+z"], "command": "reindent", "context":
{ "key": "setting.command_mode", "operator": "equal", "operand": true }
]
}
Of course, for this to ever work, you need to set com... | https://forum.sublimetext.com/t/command-mode-key-bind/1661 | CC-MAIN-2017-43 | refinedweb | 414 | 76.32 |
1.15 anton 1: \ A powerful locals implementation 2: 1.57 anton 3: \ Copyright (C) 1995,1996,1997,1998,2000,2003,2004,2005 1.54 anton 313: also locals-types 314: 315: \ these "locals" are used for comparison in TO 1.1 anton 316: 1.54 anton 317: c: some-clocal 2drop 318: d: some-dlocal 2drop 319: f: some-flocal 2drop 320... | https://www.complang.tuwien.ac.at/cvsweb/cgi-bin/cvsweb/gforth/glocals.fs?annotate=1.58;f=h;only_with_tag=MAIN;ln=1 | CC-MAIN-2022-27 | refinedweb | 1,155 | 72.73 |
In this Python tutorial, let us discuss about sending an email using Python script with appropriate examples.
Introduction of Python Sending Email
Simple Mail Transfer Protocol (SMTP) is a protocol that handles sending and routing of e-mail between mail servers.
Python gives the smtplib module, which defines an SMTP cl... | https://www.codeatglance.com/python-sending-email/ | CC-MAIN-2020-40 | refinedweb | 125 | 64.61 |
seesaw-clj Discussion of Seesaw UI toolkit for Clojure. <br><a href=""></a> Google Groups Cecil Westerhof 2016-07-19T10:18:57Z Displaying a scaled down picture and drawing a rectangle on it At the moment I am using Image Magick on the command line with trial and error to crop the right part of the photo. For example: ... | https://groups.google.com/forum/feed/seesaw-clj/topics/atom_v1_0.xml?num=50 | CC-MAIN-2016-40 | refinedweb | 2,783 | 61.77 |
From: Eric Niebler (eric_at_[hidden])
Date: 2007-04-02 18:44:19
Markus Werle wrote:
> [ Sorry, gmane was down on Friday and I could not get access to another
> nntp access point during weekend ]
>
>
> Eric Niebler <eric <at> boost-consulting.com> writes:
>
>> Markus Werle wrote:
>>> So what we really need together with... | http://lists.boost.org/boost-users/2007/04/26753.php | CC-MAIN-2015-06 | refinedweb | 1,049 | 64 |
What’s this? A post about WebForms?
Is it 2002 all over again? Is GeoCities still going strong? Are we all about to invest endless hours building SOAP services and learning XML?
No, no we’re not.
But, just because it feels like everyone is off building shiny new apps using ASP.NET Core 2.x the truth is there are still ... | https://jonhilton.net/from-webforms-to-mvc/ | CC-MAIN-2020-40 | refinedweb | 1,216 | 59.74 |
What?
[This post is part of the series TDD Sample App: The Complete Collection …So Far]
First, get to zero
Before you increase your Xcode warnings, drive any existing warnings down to zero. Fix the problems where you can. Where it’s too much, disable that particular warning for now.
You don’t want noise that hides usef... | http://qualitycoding.org/xcode-warnings/ | CC-MAIN-2017-13 | refinedweb | 1,261 | 66.44 |
;; #!/usr/bin/env sbcl --scriptto the top.
;; to change package, goto SLIME, type `,` for `, set package`. (declaim (optimize (speed 0) (safety 3) (debug 3))) (defpackage :rasterizer1 (:use :common-lisp))
slime-sync-package-and-default-directory(
C-c ~) to setup package and
cwd.
e), jump to definition (
F), go back (
D... | https://pixel-druid.com/common-lisp-cheat-sheet.html | CC-MAIN-2022-27 | refinedweb | 440 | 57.06 |
Basics, Thinking in Tables
Review
If your Stats 425 is still kicking around in your head, you might remember Bayes’ Theorem. Which generalizes a nice, symmetric property of Conditional Probability
$P(A|B)P(B) = P(B|A) P(A)$
Into the following
$p(H|D) = \frac{p(H)~p(D|H)}{p(D)}$
Where
H is your Hypothesis and
D is your ... | https://napsterinblue.github.io/notes/stats/bayes/basics_tables/ | CC-MAIN-2021-04 | refinedweb | 555 | 55.98 |
This Tutorial will cover the Java substring method. We will take a look at the Syntax, brief Introduction, and Java substring Examples:
We will be also be covering the important scenario-based examples as well the frequently asked questions that will help you in understanding this method even better.
Upon going through... | https://www.softwaretestinghelp.com/java-substring-method/ | CC-MAIN-2021-17 | refinedweb | 1,822 | 64.61 |
Base class for texture implementations. More...
#include <StelTextureBackend.hpp>
Base class for texture implementations.
Definition at line 94 of file StelTextureBackend.hpp.
Destroy the texture.
Definition at line 100 of file StelTextureBackend.hpp.
Construct a StelTextureBackend with specified texture path/url.
Note... | http://www.stellarium.org/doc/0.12.0/classStelTextureBackend.html | CC-MAIN-2014-15 | refinedweb | 281 | 53.68 |
PD controller is developed to control a quadrotor in 1-dimensional space (height direction only).
1 unknown so 1 equation is needed.
Newton's 2nd law:
States:
Position and velocity are chosen as state variables because,
State vector:
Input vector:
Output vector:
Rewrite (eq. 1) in these new notations:
Rearrange equatio... | https://cookierobotics.com/051/ | CC-MAIN-2021-31 | refinedweb | 273 | 61.26 |
While programming, you must have encountered situations where we need to know the position of an element in a list. We can use the linear search algorithm for this purpose. In this article, we will implement a linear search algorithm to find the index of an element in a list in python.
What is a linear search algorithm... | https://www.pythonforbeginners.com/basics/linear-search-in-python | CC-MAIN-2021-49 | refinedweb | 564 | 71.65 |
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Pseudocode for Functions1:52 with Reggie Williams
Learn basic conventions for describing functions including function signature, passing arguments and returning values.
Basic function format
function... | https://teamtreehouse.com/library/pseudocode-for-functions | CC-MAIN-2020-40 | refinedweb | 581 | 67.79 |
in working on this pgm, i have made notes to myself ... questions that keep popping up. if anyone wants to clarify some of these concepts for me ....
1. are TRUE and FALSE keywords? if a method says
return (TRUE);
will it work?
2. const on END of method declaration and const IN the parameter of the method declaration .... | https://www.daniweb.com/programming/software-development/threads/17401/c-quiz-test-your-knowlegde-and-help-me-in-the-process | CC-MAIN-2017-51 | refinedweb | 364 | 86.1 |
Synopsis
The CrateDataset object is used to read and write files with multiple blocks.
Syntax
CrateDataset(input=None, mode='rw') If input is not None then it gives the name of the file to read in. The mode argument accepts 'r' (read-only) and 'rw' (read-write).
Description
The CRATES Library uses CrateDataset objects ... | http://cxc.cfa.harvard.edu/ciao/ahelp/cratedataset.html | CC-MAIN-2019-30 | refinedweb | 608 | 63.49 |
, MySQL, CVS, Cadaver, subversion, sitecopy, tla, iproute, Zope, logcheck, kdeprint, emil, and GNU Sharutils.
subversion
sitecopy
tla
iproute
logcheck
kdeprint
emil
Problems have been found in the Linux kernel code that handles R128 drives, ISO9660 filesystems, and ncp_lookups that can lead to an attacker gaining root ... | http://archive.oreilly.com/pub/a/linux/2004/04/21/insecurities.html | CC-MAIN-2015-48 | refinedweb | 962 | 54.12 |
I. Basic Concepts A. Exception: 1. An unusual event, either erroneous or not 2. Detectable by either hardware or software 3. May require special processing B. Exception handler: A code fragment that processes an exception C. Examples of exceptions 1. End of file 2. Division by 0 3. Bad input 4. Subscript out of range 5... | http://web.eecs.utk.edu/~bvz/teaching/cs365Sp17/notes/ExceptionHandling/ | CC-MAIN-2017-43 | refinedweb | 3,232 | 54.02 |
Today Extension Tutorial: Getting Started
Update Note:This tutorial has been updated to iOS 10 and Swift 3 by Michael Katz. The original tutorial was written by Chris Wagner.
iOS 8 introduced App Extensions: a way for you to share your app’s functionality with other apps or the OS itself.
One of these types of extensio... | https://www.raywenderlich.com/150953/today-extension-tutorial-getting-started | CC-MAIN-2017-26 | refinedweb | 3,058 | 57.87 |
added copyright headers changes to loadfilename & co. to make savesystem transparent to assertions and ~~: \ Local variables are quite important for writing readable programs, but 23: \ IMO (anton) they are the worst part of the standard. There they are very 24: \ restricted and have an ugly interface. 25: 26: \ So, we... | https://www.complang.tuwien.ac.at/cvsweb/cgi-bin/cvsweb/gforth/glocals.fs?f=h;only_with_tag=MAIN;ln=1;content-type=text%2Fx-cvsweb-markup;rev=1.15 | CC-MAIN-2022-21 | refinedweb | 3,128 | 57.4 |
This page is intended as a place to suggest features for DreamPie.
DreamPie is a graphical interactive Python shell which is designed to be reliable and fun. Check it out at
Richer function documentation
This is a feature from IPython which is frequently requested. I think that the model should be Eclipse - when you ty... | https://wiki.python.org/moin/DreamPieFeatureRequests?highlight=DreamPie | CC-MAIN-2017-04 | refinedweb | 1,924 | 63.29 |
Another question that often arises is whether to use raw or cooked files. The answer here is very simple: Use cooked files. The only time to use raw files is for OPS as it is a key requirement.
Raw files offer two performance improvements: asynchronous I/O and no double-caching (i.e., caching of data in Oracle SGA and ... | http://etutorials.org/SQL/oracle+dba+guide+to+data+warehousing+and+star+schemas/Chapter+3.+Hardware+Architecture/The+Raw+vs.+Cooked+Files+Debate/ | CC-MAIN-2018-30 | refinedweb | 459 | 56.45 |
AWS Big Data Blog
Querying Amazon Kinesis Streams Directly with SQL and Spark Streaming
Amo Abeyaratne is a Big Data consultant with AWS Professional Services
Introduction
What if you could use your SQL knowledge to discover patterns directly from an incoming stream of data? Streaming analytics is a very popular topic ... | https://aws.amazon.com/blogs/big-data/querying-amazon-kinesis-streams-directly-with-sql-and-spark-streaming/ | CC-MAIN-2019-30 | refinedweb | 2,503 | 53.51 |
16 January 2013 22:58 [Source: ICIS news]
HOUSTON (ICIS)--?xml:namespace>
The NAHB/Wells Fargo Housing Market Index (HMI) was unchanged at 47, and components of the index were mixed. The gauge of current sales conditions remained at 51, while the component gauging sales expectations for the next six months fell a point... | http://www.icis.com/Articles/2013/01/16/9632501/US-January-builder-confidence-holds-at-six-year-high.html | CC-MAIN-2014-52 | refinedweb | 210 | 57.2 |
Heres the scenario
You have an application which is making use of AWS cloudwatch logs. You want a beautifully simple way to parse those logs for errors and send a message to monitoring slack channel. We have several log streams (service1, service2, etc) for 2 different environments. One for staging and one for producti... | https://practicaldev-herokuapp-com.global.ssl.fastly.net/kyleparisi/understanding-aws-lambda-qualifiers-16nc | CC-MAIN-2021-25 | refinedweb | 317 | 50.63 |
> On Fri, Mar 2, 2012 at 7:36 AM, Steven D'Aprano <steve at pearwood.info> wrote: >> Still, I reckon a directive is the right approach. Why? That's how I do it because I am/was paranoid about compatibility, but surely fixing dicts is important enough that, done right, nobody would object if the semantics of comparison ... | https://mail.python.org/pipermail/python-ideas/2012-March/014333.html | CC-MAIN-2017-30 | refinedweb | 364 | 63.49 |
As mentioned in , we want to move to a centralizing top-half that unwraps and checks for proper DOM interface chaining of the |this| object before specializing to the bottom half to be stored in a slot on the JSFunction.
At what point do we intend to put the bottom halves into slots on the objects? There doesn't seem t... | https://bugzilla.mozilla.org/show_bug.cgi?id=773546 | CC-MAIN-2016-44 | refinedweb | 736 | 60.14 |
:
Grant Edwards schrieb:
> On 2007-08-29, Thomas Heller <theller@...> wrote:
>> Grant Edwards schrieb:
>>> I'm still battling with numpy/Numeric issues. The basic
>>> problem is that py2exe places all of Numeric's files at the
>>> "root" of the library (directly in the 'dist' directory) rather
>>> than in a Numeric dir... | https://sourceforge.net/p/py2exe/mailman/message/8410703/ | CC-MAIN-2018-13 | refinedweb | 589 | 68.26 |
On 2016-10-18 14:54, Mark Linimon wrote: > On Tue, Oct 18, 2016 at 08:49:06AM +0100, Matthew Seaman wrote: >> Yes, there is a lot of useful stuff in the ports tree to support local >> ports or even whole local categories of ports. I can't recall now how I >> learned about all this stuff -- it may well have been just be... | https://www.mail-archive.com/freebsd-ports@freebsd.org/msg71009.html | CC-MAIN-2017-26 | refinedweb | 236 | 56.55 |
How Has Open Source Helped You Commercially? 96
Slithe asks: "In the past few years, OSS has proven that sharing one's source code can be beneficial to both businesses and their customers. More than a few young programmers are thankful that they were allowed to learn from professional developers by browsing through and... | https://slashdot.org/story/06/05/04/0133224/how-has-open-source-helped-you-commercially | CC-MAIN-2018-09 | refinedweb | 4,423 | 70.13 |
Easy way to calculate response bias with Python.
In signal detection theory d-prime index is used as sensitivity index, but the case is different combinations of hit rates and false alarm rates can lead to the same value d-prime index, which means d-prime captures only a part of signal detection space. So additional in... | https://bratus.net/knowledgebase/response-bias-with-python/ | CC-MAIN-2022-05 | refinedweb | 247 | 64.51 |
Hello,<br>
We are getting the following error message when we try to run PLS.
Error # 6886. Command name: BEGIN PROGRAM
>The External Program could not be loaded.
>This command not executed.
Load library from C:\Program Files\SPSSInc\SPSS16\invokepython.dll failed
I have tried installing the Python version that came on... | https://developer.ibm.com/answers/questions/226814/invokepythondll-failed.html?sort=votes | CC-MAIN-2019-51 | refinedweb | 480 | 68.36 |
import "debug/gosym"
Package gosym implements access to the Go symbol and line number tables embedded in Go binaries generated by the gc compilers.
DecodingError represents an error during the decoding of the symbol table.
func (e *DecodingError) Error() string
type Func struct { Entry uint64 *Sym End uint64 Params []*... | https://godoc.org/debug/gosym | CC-MAIN-2018-30 | refinedweb | 324 | 58.18 |
a label for your data. Commonly, you might want to predict fraud, customers that will buy a product, or home values in an area.
In unsupervised machine learning, you are interested in clustering data together that isn’t already labeled. This is covered in more detail in the Machine Learning Engineer Nanodegree. Howeve... | http://tomreads.com/2018/03/10/simple-linear-regression/ | CC-MAIN-2019-04 | refinedweb | 1,732 | 57.98 |
Add arbitrary paths to the Maya Python environment in the
userSetup.py file.
userSetup.py is a Python file (not a module) which gets automatically executed on Maya startup.
userSetup.py can live in a number of locations, depending on the os and environment variables.
When Maya starts, it will execute the contents of th... | https://riptutorial.com/maya/example/24602/using-usersetup-py | CC-MAIN-2021-49 | refinedweb | 210 | 51.65 |
3.4 merge window is closed
Posted Apr 1, 2012 15:15 UTC (Sun) by zdzichu (subscriber, #17118)
[Link]
Posted Apr 1, 2012 15:44 UTC (Sun) by Zenith (subscriber, #24899)
[Link]
Legit?
Posted Apr 1, 2012 15:55 UTC (Sun) by corbet (editor, #1)
[Link]
OTOH, this is not legit. Neither are this or this.
UUIDs for all!
Posted ... | http://lwn.net/Articles/490033/ | CC-MAIN-2013-20 | refinedweb | 2,248 | 69.21 |
Setting Up Ektron
You can set up your Ektron website in the following ways. You decide which configuration is the best fit for your particular situation.
Use Ektron’s approval process and scheduled publishing of content to manage when content goes live.
To set up this configuration:, and the development/staging site is... | https://webhelp.episerver.com/Ektron/documentation/documentation/wwwroot/cms400/v9.10/Reference/Web/Installation/Setting_Up_Ektron.htm | CC-MAIN-2020-45 | refinedweb | 6,865 | 50.94 |
s:cache and compile-time view creationDaniel Lichtenberger Jul 28, 2008 6:41 PM
Hi,
I'm using s:cache to cache a fairly complex (read-only, plain HTML) navigation tree that is built recursively using Facelets template components. In my first approach I encapsulated the navigation area directly, i.e.
<s:cache <!-- Rende... | https://developer.jboss.org/message/674394 | CC-MAIN-2019-04 | refinedweb | 1,220 | 63.59 |
Visual C# IntelliSense
Visual C# IntelliSense is available when coding in the editor, and while debugging in the Immediate Mode command window.
Completion lists
The IntelliSense completion lists in Visual C# contain tokens from List Members, Complete Word, and more. It provides quick access to:
Members of a type or nam... | https://docs.microsoft.com/en-us/visualstudio/ide/visual-csharp-intellisense | CC-MAIN-2017-51 | refinedweb | 565 | 56.45 |
We've come a long way from the world of 7-bit ASCII. In the beginning, the language of the PC was most definitely English, with a smattering of hard-to-find characters for a few Western European languages. Now the PC works in just about any language. The Unicode Consortium did some stunning work reconciling all of the ... | http://www.codeproject.com/Articles/13503/Stripping-Accents-from-Latin-Characters-A-Foray-in | CC-MAIN-2016-30 | refinedweb | 1,800 | 64.51 |
Difference between revisions of "Precompiled headers"
Revision as of 21:45, 11 April 2006
Ctaegory:Application Development Are you tired of waiting until your project's compilation finishes? Are you using huge libraries for your project (like wxWidgets)?
If you answered yes above, then you 'd be happy to know that Code... | http://wiki.codeblocks.org/index.php?title=Precompiled_headers&diff=prev&oldid=2730 | CC-MAIN-2020-16 | refinedweb | 558 | 66.03 |
Add Click support to your SmallD bot.
Project description
SmallD-Click
SmallD-Click is an extension for SmallD that enables the use of Click CLI applications as discord bots.
Installing
Install using pip:
$ pip install smalld-click
Example
import click from smalld import SmallD from smalld_click import SmallDCliRunner ... | https://pypi.org/project/smalld-click/ | CC-MAIN-2021-31 | refinedweb | 701 | 58.48 |
C#, or C Sharp was built to be used with the .NET Microsoft framework. C Sharp is mainly used for developing applications for Windows, for web development and for networking. C# is a fully object oriented language – it supports polymorphism, data abstraction, data encapsulation and inheritance. The character “#” comes ... | https://blog.udemy.com/c-sharp-partial-classes/ | CC-MAIN-2017-34 | refinedweb | 1,250 | 64.71 |
MatchCollection.Count Property
Gets the number of matches.
Assembly: System (in System.dll)
Property ValueType: System.Int32
The number of matches.
ImplementsICollection.Count
Accessing individual members of the MatchCollection object by retrieving the value of the collection's Count property causes the regular express... | https://msdn.microsoft.com/en-us/library/system.text.regularexpressions.matchcollection.count(v=vs.110).aspx | CC-MAIN-2018-05 | refinedweb | 389 | 51.55 |
Mirror of :pserver:anonymous@cvs.schmorp.de/schmorpforge libev
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5.4 KiB
5.4 KiB
To include only the libev core (all the ev_* functions):
#define EV_STANDALONE 1
#include "ev.c"
... | https://git.lighttpd.net/mirrors/libev/src/commit/5dd46d018abe6d5f6ed87dc8eaa4810107c8960d/README.embed | CC-MAIN-2021-49 | refinedweb | 593 | 67.04 |
The Data Science Lab.
In order to train a PyTorch neural network you must write code to read training data into memory, convert the data to PyTorch tensors, and serve the data up in batches. This task is not trivial and is often one of the biggest roadblocks for people who are new to PyTorch.
In the early days of PyTor... | https://visualstudiomagazine.com/articles/2020/09/10/pytorch-dataloader.aspx | CC-MAIN-2022-40 | refinedweb | 2,230 | 55.74 |
Конверсия Instancer’а в геометрию #2
Type: Maya Python Script (py) Name: ark_instToGeo Version: 2.0 Released: 2016.12.17 Download (Save as...)
Доработал свою старую утилиту для конвертации instancer‘а в геометрию – теперь значительно быстрее, стабильнее, понимает все возможные типы вращения инстансов (rotation и aim) и... | http://www.sigillarium.com/blog/1188/ | CC-MAIN-2017-39 | refinedweb | 1,235 | 70.63 |
Listing 3.1 outlines a basic servlet that handles GET requests . GET requests, for those unfamiliar with HTTP, are the usual type of browser requests for Web pages. A browser generates this request when the user enters a URL on the address line, follows a link from a Web page, or submits an HTML form that either does n... | https://flylib.com/books/en/1.94.1.34/1/ | CC-MAIN-2018-30 | refinedweb | 426 | 64.61 |
Template
Consider a case where a Haunted site's users felt that they should make a repository of all haunted movies and share it with others. A movie, however, will have a lot of information to go with it—producers, director, actors, release date, distributors, storyline, etc. It will be very easy to create a page with... | https://www.packtpub.com/books/content/mediawiki-content-organizing-features-templates-sections-redirection | CC-MAIN-2017-04 | refinedweb | 2,819 | 59.84 |
Births, we will build an API that allows people to text a Twilio phone number and receive picture messages with photos from a cloud storage account.
Twilio makes it Easier
We’re going to build this solution by doing three things:
- Purchasing a Twilio phone number with SMS and MMS capabilities on Twilio.com
- Creating ... | https://www.twilio.com/blog/2017/07/sharing-my-sons-birth-with-twilio-dropbox-and-asp-net.html | CC-MAIN-2017-39 | refinedweb | 1,571 | 68.6 |
Raising Better Events For Fun And Profit
I use the snot out of events. I use them to future-proof my controls and components. They are my secret weapon when I am untangling spaghetti code. I even sprinkle them in my soup.
In fact, I am reasonably sure that developers who don’t use the snot out of events are the number ... | https://code.jon.fazzaro.com/2009/03/18/broaden-your-event-horizons-part-1/ | CC-MAIN-2018-26 | refinedweb | 871 | 58.42 |
Computer Science Archive: Questions from February 21, 2010
- Anonymous askedp... Show more
Consider the following C program:
#include <sys/wait.h>
main() {
int status;
printf("%s\n", "Hello");
printf("%d\n", !fork());
if(waitpid(-1, &status, 0) != -1) {
printf("%d\n", WEXITSTATUS(status));
}
printf("%s\n", "Bye");
exit... | http://www.chegg.com/homework-help/questions-and-answers/computer-science-archive-2010-february-21 | CC-MAIN-2014-10 | refinedweb | 7,221 | 56.15 |
Most of us would have been in a situation where multiple test cases are same but the input data isn’t, Or even when input data is same and is used for multiple test cases.
So In cases like these we can use Table driven approach, it is a way of testing that allows you to write minimal test code with increased readabilit... | https://blog.knoldus.com/table-driven-approach-for-testing/ | CC-MAIN-2019-35 | refinedweb | 532 | 57.4 |
I hacked up this useful wrapper around the python command line shell to allow editing of the last typed in lines of code in an external editor.
Discussion
When working in the python command shell, I often end up writing more than 10+ lines of indented code before making a stupid typo. This got irritating enough for me ... | http://code.activestate.com/recipes/438813/ | crawl-002 | refinedweb | 273 | 68.26 |
JAVA Tutorials
Welcome to the Java Tutorials. The objective of these tutorials is to provide in depth understand of java from basic questions like what is java tutorial, core java, where it is used, what type of applications are created in java and why use java.
In addition to free Java Tutorials, you can find intervie... | https://tekslate.com/java-tutorials | CC-MAIN-2019-13 | refinedweb | 4,088 | 60.45 |
With the introduction of LINQ and its many flavours, developers started using this ORM technology to perform queries against an xml document, an sql server database, a in-memory collection of objects.
They were fascinated by its general purpose and its unified approach which can be summed up as "Learn one API-one model... | http://weblogs.asp.net/dotnetstories/archive/2011/01/26/investigating-lambda-expressions-in-linq.aspx | CC-MAIN-2014-15 | refinedweb | 1,148 | 57.47 |
Question
Calculate the NPV of the hybrid model, using the annual fuel savings as the annual cash inflow for the 10 years you would own the car.
Answer to relevant QuestionsNow look at the payback period of the hybrid model. Use the difference between the cost of the hybrid model and the gasoline-engine model as the inv... | http://www.solutioninn.com/calculate-the-npv-of-the-hybrid-model-using-the-annual | CC-MAIN-2016-50 | refinedweb | 226 | 60.51 |
Check out and open as a project group (...Required Projects). There are various error and warning badges, as expected. F11 to build, and then Resolve Problems on all projects which show the warning badge to download any other dependencies locally. There are still Java error badges on some projects, and they persist aft... | https://netbeans.org/bugzilla/show_bug.cgi?id=188323 | CC-MAIN-2014-15 | refinedweb | 982 | 63.9 |
does C++ has this function header for this :
sleep()?
I really need help
does C++ has this function header for this :
sleep()?
I really need help
I'm on Unix , and if I include < unistd.h >
i can use sleep(int) where int is how many seconds to sleep.
Its <windows.h>, and make sure you spell it Sleep(int), note the Uppe... | http://cboard.cprogramming.com/cplusplus-programming/30128-sleep-printable-thread.html | CC-MAIN-2014-41 | refinedweb | 217 | 84.07 |
This is your resource to discuss support topics with your peers, and learn from each other.
10-22-2009 04:28 AM
Ydaraishy, I'm not sure I fully understand your comment about using "field width, not the character width * number of characters". Can you clarify?
I think I need to use a dynamic value that depends on the te... | https://supportforums.blackberry.com/t5/Java-Development/Right-aligning-Text-in-Basic-EditField/m-p/361819 | CC-MAIN-2017-13 | refinedweb | 1,720 | 53.71 |
I'm just starting to teach myself C++, and have begun learning about integer overflow. Out of curiosity I wrote some tests just to see what occurs with certain integer values.
Here's my program:
#include <iostream>
int main()
{
int x(0);
std::cout << x << std::endl;
x = x + 2147483647;
std::cout << x << std::endl;
x = ... | https://codedump.io/share/8RPJzVD00lsR/1/c-integer-overflow | CC-MAIN-2017-47 | refinedweb | 211 | 69.41 |
You can subscribe to this list here.
Showing
1
results of 1
Stefan Monnier writes:
> Here is a patch that attempts to clean up part of the EIEIO namespace.
> If you like it, please install it upstream, so it will get merged into
> Emacs later on. If you prefer, I can install it into Emacs directly and
> you'll merge it... | http://sourceforge.net/p/cedet/mailman/cedet-eieio/?viewmonth=201302&viewday=12 | CC-MAIN-2015-06 | refinedweb | 222 | 79.4 |
#include <synch.h> (or #include <thread.h>) int rw_unlock(rwlock_t *rwlp);
Use rw_unlock(3T) to unlock a read-write lock pointed to by rwlp. The read-write lock must be locked and the calling thread must hold the lock either for reading or writing. When any other threads are waiting for the read-write lock to become av... | http://docs.oracle.com/cd/E19620-01/805-5080/sthreads-74628/index.html | CC-MAIN-2016-30 | refinedweb | 109 | 61.22 |
HISTOGRAMS IN NUMPY
In this tutorial, we will learn about creating histograms in numpy along with using matplotlib library followed by a handy and simple example:
What is a Histogram?
Histogram is a kind of a bar chart that is used for representing statistical information by how a bar looks based on the probability dis... | https://python-tricks.com/histograms-in-numpy/ | CC-MAIN-2021-39 | refinedweb | 311 | 58.08 |
<!-- --> . . . . e E + - " " " " " ' ' ' ' ' at " " " " " ' ' ' ' ' {-- } --} <? ?> child :: descendant :: parent :: attribute :: self :: descendant-or-self :: ancestor :: following-sibling :: preceding-sibling :: following :: preceding :: namespace :: ancestor-or-self :: define element define attribute define type def... | http://www.w3.org/2002/11/xquery-xpath-applets/xpath-grammar.xml | CC-MAIN-2016-44 | refinedweb | 412 | 52.9 |
When building a player, you sometimes want to modify the built player in some way. For example you might want to add a custom icon, copy some documentation next to the player or build an Installer. You can do this via editor scripting using BuildPipeline.BuildPlayer to run the build and then follow it with whatever pos... | https://docs.unity3d.com/Manual/BuildPlayerPipeline.html | CC-MAIN-2019-30 | refinedweb | 215 | 50.53 |
The attached patch against 2.6.5-udm4 fixes persistant mirror reactivation: - count_bits() fxn was broken. It went into an infinite loop because n was never incremented. - the size parameter passed into the find_*_bit fxns from count_bits() was also wrong - it needs to be in bits, not bytes.----------------------------... | https://www.redhat.com/archives/dm-devel/2004-April/msg00035.html | CC-MAIN-2015-22 | refinedweb | 221 | 65.52 |
Blog Map
[Blog Map] [Table of Contents] [Next Topic]
Perhaps the best way to compare and contrast the imperative (stateful) coding style and the functional coding style is to present examples that are coded in both approaches.
This blog is inactive.New blog: EricWhite.com/blogBlog TOCThis example will use some of the s... | http://blogs.msdn.com/b/ericwhite/archive/2008/04/22/an-example-presented-in-both-coding-styles.aspx | CC-MAIN-2015-27 | refinedweb | 1,720 | 66.23 |
The EventGenerator class manages a whole event generator run.
More...
#include <EventGenerator.h>
AnalysisHandler
to this event generator during the initialization phase (in the doinit() function).
It is typically used by objects which need to introduce other Interfaced objects depending the parameters of the StandardM... | https://thepeg.hepforge.org/doxygen/classThePEG_1_1EventGenerator.html | CC-MAIN-2018-39 | refinedweb | 630 | 53.78 |
q-table rows drag and drop
- claudiofbezerra last edited by
q-table rows drag and drop? I’m trying without success so far. Has anyone ever got it?
I once tried it with q-table without success and would like to know if it’s possible, too.
My plan-b was to use a standard
<table>and to wrap the
<tr>elements.
That was befo... | https://forum.quasar-framework.org/topic/4595/q-table-rows-drag-and-drop/3 | CC-MAIN-2020-29 | refinedweb | 507 | 75.3 |
Created attachment 23228 [details]
example code
I can set a print area and read it back just fine, but it does not get saved when the document is written to disk. I have example code and files (both input and output.)
Created attachment 23229 [details]
example input
Created attachment 23230 [details]
example output
I'v... | https://bz.apache.org/bugzilla/show_bug.cgi?id=46664 | CC-MAIN-2018-17 | refinedweb | 1,075 | 52.87 |
Using Methods With Value and Reference Types
In this post I will show you the practical usage of methods with value types and reference types in C#. I have used a console application to run the code I posted here. It might be helpful if you can also create your own console application so you can try the code samples yo... | http://www.ojdevelops.com/2013/04/using-methods-with-value-and-reference.html | CC-MAIN-2020-05 | refinedweb | 987 | 62.88 |
well i was reading here
how to begin. i created a workspace called CS201
project called hw1, and a source file called problem1_1.
now do i have to use this names(cs2001 for workspace, hw1,hw2,hw3 for project and problem1_1 problem1_2... for source files)?.
k but that isnt that importent, but i got some problems when i ... | https://cboard.cprogramming.com/cplusplus-programming/53795-starting-programming-cplus-visual-studio-6-0-a.html | CC-MAIN-2017-04 | refinedweb | 171 | 77.84 |
Sun and Eclipse Squabble 423
gbjbaanb writes "CNET news is reporting on a potential spat between Sun and Eclipse: 'Sun Microsystems has sent a letter to members of Eclipse, urging the increasingly influential open-source project to unify rather than fragment the Java-based development tool market.' Although Sun's lette... | http://developers.slashdot.org/story/04/01/30/2140201/sun-and-eclipse-squabble | CC-MAIN-2015-18 | refinedweb | 8,023 | 73.78 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.