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 |
|---|---|---|---|---|---|
MySQL for Python version 0.3.5
Python 2.0
I have two Python versions, one compiled with thread
support and the othe without threads. The version
without threads is used in mod_python, because
compatibility issues.
When I try to use "MySQL for Python" from the non
threading version, I receive a runtime error since
"thre... | http://sourceforge.net/p/mysql-python/patches/1/ | CC-MAIN-2015-40 | refinedweb | 259 | 73.78 |
Data structures are an important part of programming and coding interviews. These skills show your ability to think complexly, solve ambiguous problems, and recognize coding patterns.
Programmers use data structures to organize data, so the more efficient your data structures are, the better your programs will be.
Toda... | https://www.educative.io/blog/data-structures-trees-java | CC-MAIN-2021-31 | refinedweb | 2,025 | 74.08 |
Write PVTK XML PolyData files. More...
#include <vtkXMLPPolyDataWriter.h>
Write PVTK XML PolyData files.
vtkXMLPPolyDataWriter writes the PVTK XML PolyData file format. One poly data input can be written into a parallel file format with any number of pieces spread across files. The standard extension for this writer's ... | https://vtk.org/doc/nightly/html/classvtkXMLPPolyDataWriter.html | CC-MAIN-2021-17 | refinedweb | 136 | 53.47 |
CODECHEF April Cook-off ( Div. 2 ) – Making a Meal in C++
In this C++ tutorial, we are going to discuss the codechef April Cook-off problem “Making a meal”. This problem uses the concept of string and basic mathematics only.
Problem Statement
There are total N strings S1, S2, S3,______Sn. We have to find that total how... | https://www.codespeedy.com/making-a-meal-codechef-april-cook-off-div-2/ | CC-MAIN-2019-43 | refinedweb | 403 | 76.86 |
Function pointers are pointers that point to functions instead of data types. They can be used to allow variability in the function that is to be called, at run-time.
returnType (*name)(parameters)
typedef returnType (*name)(parameters)
typedef returnType Name(parameters);
Name *name;
typedef returnType Name(parameters... | https://sodocumentation.net/c/topic/250/function-pointers | CC-MAIN-2022-21 | refinedweb | 996 | 57.44 |
How do you dynamically set local variable in Python?
(where the variable name is dynamic)
UPDATE: I'm aware this isn't good practice, and the remarks are legit, but this doesn't make it a bad question, just a more theoretical one - I don't see why this justifies downvotes.
Contrary to other answers already posted you c... | https://codedump.io/share/IpxeXpE7tP77/1/dynamically-set-local-variable | CC-MAIN-2018-09 | refinedweb | 510 | 51.11 |
Log message:
Update net/powerdns* to 4.1.0.
PowerDNS Authoritative Server 4.1.0
===========================================================
- Improved performance: 400% speedup in some scenarios
- Crypto API: DNSSEC fully configurable via RESTful API
- Improved documentation
- Database related improvements
- Enhanced t... | http://pkgsrc.se/net/powerdns-ldap | CC-MAIN-2018-47 | refinedweb | 689 | 55.74 |
Single file deployment concept in ASP.NET with WebAPI
Deployment contained in single file using WebAPI
As much as this sound new to you, it actually isn't.
If you worked on any Windows From application in .NET you had an option to embedded files in your form like images, icons and even sounds and videos. This made depl... | https://dejanstojanovic.net/aspnet/2014/september/single-file-deployment-concept-in-aspnet-with-webapi/ | CC-MAIN-2019-22 | refinedweb | 579 | 55.44 |
What are references?
References are just aliases to the variable names i.e. an alternative name to our original variable name.
For example,
int &ref = var;
Now ref is a reference (alias) of variable var. The variable var can be called by both names now, var and ref.
Let’s look at a code snippet,
int var = 4; int &ref =... | https://boostlog.io/@sophia91/references-in-c-5a9e593fe922f1008c7efa98 | CC-MAIN-2019-30 | refinedweb | 410 | 70.02 |
Unlike the other resource formats, where the resource identifier is the same as the value listed in the *.rc file, string resources are packaged in "bundles". There is a rather terse description of this in Knowledge Base article Q196774. Today we're going to expand that terse description into actual code.:
- You can't ... | https://blogs.msdn.microsoft.com/oldnewthing/20040130-00/?p=40813 | CC-MAIN-2017-47 | refinedweb | 1,941 | 62.88 |
!
Now *that's* an obscure reference in the title!
Timothy Fries,
[sarcasm] I just looooove how I have to set the title in the code behind. It's so pretty [/sarcasm].
I know there's other (hokey) ways to get around that, but I truly wish we had proper x:Static support in Silverlight. (btw this goes for Silverlight too).... | https://blogs.msdn.microsoft.com/delay/2010/12/20/and-shed-say-can-you-see-what-im-saying-how-to-localize-a-windows-phone-7-application-that-uses-the-windows-phone-toolkit-into-different-languages/ | CC-MAIN-2016-07 | refinedweb | 486 | 75.61 |
XML Questions Answered
XML.com receives dozens of questions each week about XML, submitted via the FAQ submission form at. In this column we'll be addressing some of the most interesting (read: useful, provocative, outright bizarre) of those questions.
HTML to XML?
Q: How do I convert my existing HTML documents into XM... | http://www.xml.com/pub/a/2000/07/26/qanda/index.html | crawl-003 | refinedweb | 797 | 61.56 |
*usr_06.txt* For Vim version 7.4. Last change: 2009 Oct 28 VIM USER MANUAL - by Bram Moolenaar Using syntax highlighting Black and white text is boring. With colors your file comes to life. This not only looks nice, it also speeds up your work. Change the colors used for the different sorts of text. Print your text, wi... | http://fossies.org/linux/misc/vim74html.zip:a/usr_06.html | CC-MAIN-2014-15 | refinedweb | 1,559 | 74.69 |
Netbooks have a small screen size. Following are some tips to help with a smaller viewing area, and a little less mouse usage.
Because of the small screen size, simply reducing the size and number of the toolbars and size of icons will not be sufficient.
Firefox uses "F11" to toggle.
Change the vertical scrolling to sc... | http://kb.mozillazine.org/Netbooks | CC-MAIN-2017-47 | refinedweb | 669 | 69.62 |
when one value matches the value of the variable, the computer continues executing the program from that point. C switch statement is a multiway decisions that tests whether a variable or expression matches one of a number of constant integer values, and branches accordingly.
Syntax of switch statement:
switch(express... | http://csetips.catchupdates.com/switch-statement/ | CC-MAIN-2017-22 | refinedweb | 341 | 61.46 |
How can I use differential evolution to find the maximum values of the function function f(x) = -x(x+1) from -500 to 500? I need this for a chess program I am making, I have begun researching on Differential Evolution and am still finding it quite difficult to understand, let alone use for a program. Can anyone please ... | https://codedump.io/share/pmiKQ1LjwS1T/1/function-values-using-differential-evolution | CC-MAIN-2017-13 | refinedweb | 711 | 66.23 |
Package: debian-cd Version: 3.0.2 Severity: serious Tags: patch I'm classifying this as serious as this makes the Release file invalid and thus breaks the CD image. I found this bug because debootstrap threw an error during an installation that Packages.gz was invalid. The install did continue, probably because Package... | https://lists.debian.org/debian-cd/2007/05/msg00034.html | CC-MAIN-2020-45 | refinedweb | 382 | 59.8 |
I PattiChati
I.
You would be better served if you posted to Yahoo forums :
Yahoo Mail
yahoo mail - Tech Support Forums - TechIMO.com
The "new improved" Yahoo Mail isn't. In fact, it's vexing, mortifyingly slow, and no longer allows open folders while creating new messages so you can't copy and paste with both items ope... | http://winassist.org/thread/2292797/Yahoo-Mail.php | CC-MAIN-2019-26 | refinedweb | 12,469 | 64.14 |
Sorry to bring this thread back from the dead, but I just tried using
JSONQuery within a Couch view and everything seems to work fine. I'm
using the forked version of JSONQuery from here:
The only gotcha is that JSONQuery expects either a namespace function
or a window object to exist. So, I just create a fake window o... | http://mail-archives.apache.org/mod_mbox/couchdb-user/200909.mbox/%3Cd72c12bb0909071012q5b953865qd50c09cefce82e82@mail.gmail.com%3E | CC-MAIN-2015-11 | refinedweb | 128 | 67.35 |
Writing a Package
Its intents are:
It is organized in the following four parts:
A Common Pattern for All Packages.
Therefore, all packages can be built using egg structures.
This section presents how a namespaced package is organized, released, and distributed to the world through distutils and setuptools.
Writing an e... | https://www.packtpub.com/books/content/writing-package-python | CC-MAIN-2015-35 | refinedweb | 2,889 | 57.67 |
.
My solution:
#include<iostream> #include<iomanip> #include<fstream> #include<string> using namespace std; int main(int argc, char *argv[]) { ifstream inputFile; ofstream outputFile;. totalCount = strtok(words, "."); // Tokenizes each word and removes period. // Get the name of the file from the user. cout << "Enter t... | https://www.daniweb.com/programming/software-development/threads/463091/am-i-writing-this-code-correctly-for-this-program | CC-MAIN-2018-43 | refinedweb | 191 | 59.8 |
Practical Graphs on Rails: Chartkick in Practice
Ruby
In a previous article , I covered the basics of Chartkick – a great library to easily render graphs in Rails apps. The article gained some attention so I decided to cover a bit more and show how Chartkick, along with Groupdate, can be used to solve a real-world task... | https://www.sitepoint.com/graphs-on-rails-chartkick-in-practice/ | CC-MAIN-2020-24 | refinedweb | 2,700 | 64.91 |
/* Updating of data structures for redisplay.
Copyright (C) 1985, 86, 87, 88, 93, 94, 95, 97, 1998 <signal.h>
#include <config "frame.h"
#include "window.h"
#include "commands.h"
#include "disptab.h"
#include "indent.h"
#include "intervals.h"
#include "blockinput.h"
#include "process.h"
#include "keyboardndef PENDING_O... | https://emba.gnu.org/emacs/emacs/-/blame/2febf6e0335cb2e6ae5aff51cd1b356e0a8e2629/src/dispnew.c | CC-MAIN-2022-33 | refinedweb | 211 | 60.41 |
A meeting of the foundations
We're back from chilling at Penguicon 2.0 in Novi, Michigan a couple of weeks ago. In this issue, we talk about the meeting between the GNOME and Mozilla foundations on better collaboration, and we show you how to use OS X icons with GNOME or KDE.
GNOME and Mozilla Foundations meet
On April... | http://arstechnica.com/open-source/news/2004/04/linux-20040429.ars | crawl-002 | refinedweb | 1,419 | 62.98 |
.
You can use Adman65/nettuts for a successful login. Be sure to use bad credentials so you can see how everything works.
What We're Making
Getting Started
We’re going to start by creating a dummy application that has a public and private page. The root url is the public page. There’s a login link on the public page. I... | http://code.tutsplus.com/articles/how-to-build-an-unobtrusive-login-system-in-rails--net-9194 | CC-MAIN-2014-41 | refinedweb | 3,066 | 61.02 |
Recent:
Archives:
A Java programmer's first exposure to threads is usually an applet that uses them to provide animation. In these applets,
the thread simply sleeps for a period of time before updating the next frame or moving text in an animated ticker. Threads,
however, are much more useful than this. Another way to ... | http://www.javaworld.com/javaworld/jw-04-1996/jw-04-synch.html | crawl-002 | refinedweb | 1,713 | 72.36 |
How to load vue Plugins inside components
Heyhey… im trying to load a vue Plugin (for example vue.scrollTo) which has custom directives inside a component. The normal way of installing Plugins works fine but when i import the plugin inside a component i get the “Failed to resolve directive: scroll-to” error.
What i hav... | https://forum.quasar-framework.org/topic/2421/how-to-load-vue-plugins-inside-components | CC-MAIN-2018-34 | refinedweb | 343 | 56.18 |
Hello all,
I have a class named “Interface” in witch I’m creating some buttons.
I want to execute a function when a button is pressed.
The problem is since I want my class to be generic, I can’t write that peace of code inside my class, I need it to be in my main code.
Is there a way, then, to connect a function to a b... | https://discourse.processing.org/t/connect-a-function-to-a-button-created-in-an-object-controlp5/1821 | CC-MAIN-2022-27 | refinedweb | 157 | 61.87 |
Now that Cocoon 1.7.4 is released and JavaONE is coming, I'm going to
dedicate my time in making Cocoon2 a reality. This implies cleaning up
the xml-cocoon2 branch as well as to release its first alpha version.
Yes, alpha. This is not due to program stability issues (Pier is a great
coder and his stuff normally turns o... | http://mail-archives.apache.org/mod_mbox/cocoon-dev/200005.mbox/%3C3925A125.1D727A65@apache.org%3E | CC-MAIN-2015-32 | refinedweb | 1,544 | 59.74 |
Hello all,Hello all,
I am trying to make a controller called Categories have subdirectories such as Fridges, Backpacks etc. Currently my setup works so that when browsing to 'categories/fridges/index', the index page from the fridge view page is shown. I want this page to appear when navigationg to 'categories/fridges'... | http://www.codingforums.com/ruby-and-ruby-on-rails/225338-subdirectory-controllers.html?s=d6e9589c38ce95ca1ea2345dfbd688ec | CC-MAIN-2016-18 | refinedweb | 115 | 59.3 |
The Story of a Simple and Dangerous OS X Kernel Bug 230
RazvanM writes "At the beginning of this month the Mac OS X 10.5.8 closed a kernel vulnerability that lasted more than 4 years, covering all the 10.4 and (almost all) 10.5 Mac OS X releases. This article presents some twitter-size programs that trigger the bug. Th... | https://developers.slashdot.org/story/09/08/30/0424248/the-story-of-a-simple-and-dangerous-os-x-kernel-bug | CC-MAIN-2016-50 | refinedweb | 7,002 | 65.12 |
Log message:
salt salt-docs: updated to 3004
SALT 3004 RELEASE NOTES - CODENAME SILICON
NEW FEATURES
TRANSACTIONAL SYSTEM SUPPORT (MICROOS)
A transactional system, like MicroOS, can present some challenges when the user \
decided to manage it via Salt.
MicroOS provide a read-only rootfs and a tool, transactional-update... | https://pkgsrc.se/commits.php?path=sysutils/salt&offset=0 | CC-MAIN-2021-49 | refinedweb | 3,979 | 56.86 |
Recently I needed a smart way to execute functions within a specified time limit. If the function is unable to complete execution within that limit, it should stop processing and return back to the caller. Here I am describing a method for writing timeout functions and the problems we may face. Here we deal with a help... | https://www.codeproject.com/articles/31691/timeout-functions?fid=1532377&df=90&mpp=10&sort=position&spc=none&tid=3717412 | CC-MAIN-2017-09 | refinedweb | 1,401 | 56.55 |
Well,()
Broadcast
SCREEN_OFF
public class ReceiverScreen extends BroadcastReceiver {;
}
}
});
}
();
}
}
Phew. This is quite a contended question, with a great deal of commentary behind it.
Let me begin by rephrasing your question a bit. If I understand clearly, you'd like to disable all physical buttons on the device f... | https://codedump.io/share/1UBkEzTtr67q/1/override-power-button-just-like-home-button | CC-MAIN-2018-17 | refinedweb | 464 | 50.67 |
quick hint: you really want pulseaudio-alsa. If you dont have a asound.conf you are missing that package.]]>
please mark your thread as solved]]>
Yeah I noticed it just before you posted. Now it works correctly. Thank you for help and sorry about my stupidity. ^^
Btw. I can't understand how the heck it worked properly ... | https://bbs.archlinux.org/extern.php?action=feed&tid=160740&type=atom | CC-MAIN-2016-40 | refinedweb | 500 | 53.98 |
Defining Packages and Namespaces
In Visual Studio Ultimate, a package is a container for the definitions of UML elements such as classes, use cases, and components. A package can also contain other packages.
In UML Model Explorer, all the definitions inside a package are nested underneath the package. The UML model is ... | https://msdn.microsoft.com/en-us/library/dd465144(v=vs.110).aspx | CC-MAIN-2018-05 | refinedweb | 1,235 | 65.83 |
- Write a java program using following details. You are free to make all necessary assumptions. All the assumptions made should be documented.
There are four scientists who need to be ordered according to their smartness (smartest to least smart). There is a text file “smart.txt” in the following format:
Satish ArunRam... | https://www.daniweb.com/programming/software-development/threads/76181/sorting-members | CC-MAIN-2021-43 | refinedweb | 289 | 59.9 |
/* ** (c) COPYRIGHT MIT 1995. ** Please first read the full copyright statement in the file COPYRIGH. */
The Host class manages what we know about a remote host. This can for example be what type of host it is, and what version it is using. Notice that a host object can be used to describe both a server or a client - a... | http://www.w3.org/Library/src/HTHost.html | CC-MAIN-2014-15 | refinedweb | 2,258 | 56.69 |
Python SciPy is a library that has Python NumPy and Mathematical algorithms as its building blocks. The Python SciPy library is utilized to a great extent in the field of scientific computations and processing.
Getting Started with Python Scipy
In order to use the different functions offered by the SciPy library, we ne... | https://www.askpython.com/python-modules/python-scipy | CC-MAIN-2020-16 | refinedweb | 1,403 | 50.12 |
With Static Generation (SSG), Next.js pre-renders the page into HTML on the server ahead of each request, such as at build time. The HTML can be globally cached by a CDN and served instantly.
Static Generation is more performant, but because pre-rendering happens ahead of time, the data could become stale at request ti... | https://vercel.com/blog/nextjs-server-side-rendering-vs-static-generation | CC-MAIN-2021-25 | refinedweb | 1,594 | 58.69 |
25th August 2014 5:15 pm
Django Blog Tutorial - the Next Generation - Part 7
Hello once again! In this instalment we’ll cover:
- Caching your content with Memcached to improve your site’s performance
- Refactoring and simplifying our tests
- Implementing additional feeds
- Creating a simple search engine
Don’t forget t... | https://matthewdaly.co.uk/blog/2014/08/25/django-blog-tutorial-the-next-generation-part-7/ | CC-MAIN-2019-13 | refinedweb | 3,376 | 63.93 |
Working with Entity bean using JPA
Working with Entity bean using JPA
Working
with Entity bean using JPA... or retrieved from that entity. For example, in a banking application, Customer
dao
();
}
return conn;
}
}
//bean:
package
Identify the interfaces and methods a CMP entity bean must and must not implement.
Identi... | http://www.roseindia.net/tutorialhelp/comment/86044 | CC-MAIN-2013-20 | refinedweb | 2,276 | 59.3 |
According to these docs () the Spark REST API can be queried for metrics at. However, running this within a DataBricks notebook fails.
(note the image shows 4043, but I also tried 4040 and many other ports)
Does DataBricks Spark not support accessing cluster stats through this API?
Related: if there is a much better wa... | https://forums.databricks.com/questions/14499/accessing-spark-rest-api-from-databricks.html | CC-MAIN-2020-45 | refinedweb | 1,227 | 56.86 |
Chatlog 2009-01-14
From OWL
See original RRSAgent log and preview nicely formatted version.
Please justify/explain all edits to this page, in your "edit summary" text.
00:00:00 <scribenick> PRESENT: bmotik, Ivan, IanH, Zhe, Michael Schneider, Achille, baojie, Evan_Wallace, Bernardo Cuenca Grau, uli, Alan Ruttenberg, ms... | http://www.w3.org/2007/OWL/wiki/Chatlog_2009-01-14 | CC-MAIN-2015-32 | refinedweb | 4,905 | 69.04 |
A new version of the IBM Cloud Pak for Integration, 2019.4.1, was recently released which includes new IBM App Connect Enterprise certified container features.
The new features in this release include:
- Support for Red Hat OpenShift Container Platform 4.2
IBM Cloud Pak for Integration 2019.4.1 requires OpenShift 4.2, ... | https://developer.ibm.com/integration/blog/2019/12/06/cloud-pak-for-integration-2019-4-1-ace/ | CC-MAIN-2020-34 | refinedweb | 291 | 54.83 |
5.7. Releasing the GIL to take advantage of multi-core processors with Cython and Open
As we have seen in this chapter's introduction, CPython's GIL prevents pure Python code from taking advantage of multi-core processors. With Cython, we have a way to release the GIL temporarily in a portion of the code in order to en... | https://ipython-books.github.io/57-releasing-the-gil-to-take-advantage-of-multi-core-processors-with-cython-and-openmp/ | CC-MAIN-2019-09 | refinedweb | 475 | 64.71 |
#include <shadow.h> int putspent(const struct spwd *p, FILE *fp);
The putspent() function is the inverse of getspent(). See getspnam(3C). Given a pointer to a spwd structure created by getspent() or getspnam(), putspent() writes a line on the stream fp that matches the format of /etc/shadow.
The spwd structure contains... | http://docs.oracle.com/cd/E36784_01/html/E36874/putspent-3c.html | CC-MAIN-2016-30 | refinedweb | 175 | 53.1 |
.
You may need to read my previous tutorial How to install Git on Windows
Creating a Project
This section is to learn how to create a git repository from scratch.
Creating a hello directory
Go to the physical drive
D and create a directory called
GitProjects and under this
GitProjects directory create another directory... | https://www.roytuts.com/git-tutorial/ | CC-MAIN-2020-16 | refinedweb | 1,140 | 57.3 |
Your Account
Print
PRESS QUERIES ONLY
O'Reilly Media
(707) 827-7000
August 17, 2006
Sebastopol, CA--Recently JavaScript has gone from being the ugly
duckling of web scripting languages to being the force behind such Ajax powerhouses as Gmail and Backpack. The language has grown in importance and the size of scripts has... | http://oreilly.com/pub/pr/1614 | CC-MAIN-2013-20 | refinedweb | 490 | 60.95 |
CodePlexProject Hosting for Open Source Software
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="default.aspx.cs" Inherits="_default" %>
<asp:Content
**paste here whatever you like, like what's already in a newpage.aspx **
</asp:Content>
I think I have a working example of what Amateur was trying to do.
here is... | https://blogengine.codeplex.com/discussions/20397 | CC-MAIN-2017-22 | refinedweb | 410 | 62.44 |
.
- Functions: run arbitrary pieces of code to either modify or validate your configurations.
- Function pipeline: a set of functions that the package author has included with the package.
- Resource management: apply, update, and delete the resources that correspond to your configurations in a Kubernetes cluster.
Obje... | https://cloud.google.com/architecture/managing-cloud-infrastructure-using-kpt?utm_campaign=CDR_ale_GCP_twigcp_2021week9&utm_source=Blog&utm_medium=Blog | CC-MAIN-2022-27 | refinedweb | 1,209 | 50.63 |
User talk:KTucker
Leave a message for Ktucker
Portals[edit source]
I've been looking at the Wikipedia portal pages that use "tabs" and wondering how to make them. I've made most of the existing Wikiversity portal pages by starting with Template:Box portal skeleton. Is there a similar way to start portals like Portal:So... | https://en.wikiversity.org/wiki/User_talk:Ktucker | CC-MAIN-2020-50 | refinedweb | 2,742 | 63.29 |
Geek Challenge Results: Fractal Snowflake Ken Brey 02/05/2015 0 Comments The winner of the Fractal Snowflake Geek Challenge is John Jacobsma of Dickson. Tim Jager of DMC also responded with a correct value of C, 10830. The Fractal Snowflake Challenge was a study in recursive programming. Recursive programming is a tech... | https://www.dmcinfo.com/latest-thinking/blog/id/8960/geek-challenge-results-fractal-snowflake | CC-MAIN-2021-43 | refinedweb | 652 | 50.67 |
In this post we are going to control a Servo Motor using a web browser with the help of Arduino and Wi-Fi module ESP8266. The ESP8266 will establish a connection between the servo and the web browser through the IP address and then by moving the Slider on the web page, the servo will move accordingly. Even by setting P... | https://circuitdigest.com/microcontroller-projects/iot-web-controlled-servo-motor | CC-MAIN-2018-17 | refinedweb | 1,874 | 63.9 |
. You’ll learn more in the video below.
If you like videos like this share it
Code from the Video
DRIVABLE.JAVA
/* Java doesn't allow you to inherit from more than one * class. So, what do you do when you want do you do * when you want to add additional functionality? * You create an interface. Interfaces are empty * c... | http://www.newthinktank.com/2012/02/java-video-tutorial-15/ | CC-MAIN-2016-50 | refinedweb | 1,196 | 74.59 |
Part 8: Deferred Poetry
This continues the introduction started here. You can find an index to the entire series here.
Client 4.0
Now that we have know something about deferreds, we can rewrite our Twisted poetry client to use them. You can find client 4.0 in twisted-client-4/get-poetry.py.
Our
get_poetry function no l... | http://krondo.com/2009/10/ | CC-MAIN-2017-09 | refinedweb | 1,736 | 56.86 |
There are some things about the .NET threading classes that I have not
appreciated much. The first shock I got was when I realized that the
System::Threading::Thread class was a sealed class.
public __gc __sealed class.
As if that was not bad enough, my next shock was when I realized that the thread proc delegate would... | http://www.codeproject.com/KB/threads/mcppthreads01.aspx | crawl-002 | refinedweb | 241 | 55.95 |
Production Postmortem: A Behind-the-Scenes Look at Data Corruption
Production Postmortem: A Behind-the-Scenes Look at Data Corruption
It seemed that the only way this issue could have occurred was from a dev banging his head on a keyboard. But that's not what happened in this data corruption terms of severity, there ar... | https://dzone.com/articles/production-postmortem-data-corruption-a-view-from | CC-MAIN-2018-43 | refinedweb | 524 | 59.94 |
Hello everyone
I would like to know if there is a way Dynamo can create a triangle from the lenght of its sides. If I have in data three numbers: 3,4,5, for example, can I draw a pythagorean triangle shape in a Dynamo model?
I’ve looking at this Python forum and an user asked how to create a triangle:
from turtle impor... | https://forum.dynamobim.com/t/how-can-i-create-a-triangle-shape-from-the-lenght-of-its-sides/57474 | CC-MAIN-2021-10 | refinedweb | 229 | 64.85 |
First,
But his metaphor breaks down a little, because the second stack isn't really a stack:
A considerable minority uses a stack like this. It’s important that the Prime Stack isn’t exact: you might not use Cucumber at all, for example, or maybe you don’t have a service layer.
On the (private, but cheap) Ruby Rogues "... | https://gilesbowkett.blogspot.com/2013/01/we-can-solve-multiple-default-stacks.html | CC-MAIN-2017-39 | refinedweb | 1,108 | 59.43 |
(defmacro backwards [form] (reverse form)) (backwards (" backwards" " am" "I" str)) ; => "I am backwards".
Macros allow you to transform arbitrary expressions into valid Clojure, so you can extend the language itself to fit your needs. And you don’t even have to be a wizened old dude or lady in a robe to use them!
To g... | http://www.braveclojure.com/read-and-eval/ | CC-MAIN-2016-40 | refinedweb | 4,834 | 60.14 |
The
HashSet<T> generic class in the
System.Collections.Generic namespace provides the
Clear() method, which is used to remove all the elements from a HashSet
HashSet<T> becomes empty after the
Clear() method is called.
public void Clear ();
Other object references from elements of the
HashSet<T> are also released after... | https://www.educative.io/answers/how-to-remove-all-elements-from-the-hashset-in-c-sharp | CC-MAIN-2022-33 | refinedweb | 214 | 58.38 |
How to Build a Chat App With Next.js & Firebase
In this tutorial, we will guide you through building a simple chat application with Next.js and Firebase.
Apple dropped a bombshell for developers on WWDC 19. Among a bunch of other things, they released SwiftUI — a whole new way of making iOS apps and the biggest change ... | https://www.cometchat.com/tutorials/introduction-to-swift-ui | CC-MAIN-2021-21 | refinedweb | 2,885 | 71.95 |
31205/can-not-make-a-peer-in-hyperledger-fabric
I am trying to make a peer using make peer command but when I run this, I am getting the following error:
update-java-alternatives: directory does not exist: /usr/lib/jvm/java-1.8.0-openjdk-amd64
The command '/bin/sh -c core/chaincode/shim/java/javabuild.sh' returned a no... | https://www.edureka.co/community/31205/can-not-make-a-peer-in-hyperledger-fabric | CC-MAIN-2019-22 | refinedweb | 198 | 54.39 |
Java while loop is used to execute a block of statements continuously till the given condition is true. Earlier we looked into java for loop.
Table of Contents
Java while loop
While loop in java syntax is as follows.
while (expression) { // statements }
The
expression for while loop must return boolean value, otherwise... | https://www.journaldev.com/16510/java-while-loop | CC-MAIN-2021-04 | refinedweb | 308 | 51.65 |
Data Science
OCI Data Science – Create a Project & Notebook, and Explore the Interface
In my previous blog post I went through the steps of setting up OCI to allow you to access OCI Data Science. Those steps showed the setup and configuration for your Data Science Team.
In this post I will walk through the steps necess... | https://oralytics.com/tag/data-science/ | CC-MAIN-2020-34 | refinedweb | 2,369 | 55.54 |
"Success is the ability to go from one failure to another with no loss of
enthusiasm."
Winston Churchill
<blog date="2002-12-05">
Yay! I passed 70-320 today and I'm now MCAD.NET. Expect the next article to
cover XML Web Services, Remoting, or Serviced Components:)
<blog date="2002-12-05">
This article is about Load Bal... | https://www.codeproject.com/Articles/3338/NET-Dynamic-Software-Load-Balancing?msg=1487967 | CC-MAIN-2017-34 | refinedweb | 13,200 | 60.65 |
07 July 2008 03:58 [Source: ICIS news]
DUBAI (ICIS news)--Construction of Saudi International Petrochemical Co’s acetyls complex in Al-Jubail, Saudi Arabia, has reached 94% completion, Sipchem CEO Ahmad A al-Ohali said on Sunday.
?xml:namespace>
The commissioning of the project is expected to start by the end of this y... | http://www.icis.com/Articles/2008/07/07/9138049/sipchem-al-jubail-acetyl-project-nears-completion.html | CC-MAIN-2014-35 | refinedweb | 169 | 62.51 |
* Raspberry Pi
– 1 * Breadboard
– 1 * Network cable (or USB wireless network adapter)
– 1 * Dual-color Common-Cathode LED module
– 1 * Photo-interrupter module
– Several jumper wires
Experimental Principle
Basically a photo-interrupter consists of two parts: transmitter and receiver. The transmitter (e.g., an LED or a... | https://learn.sunfounder.com/lesson-13-photo-interrupter/ | CC-MAIN-2021-39 | refinedweb | 383 | 50.84 |
Network Working Group M. Mealling Request for Comments: 3404 VeriSign Obsoletes: 2915, 2168 October 2002 Category: Standards Track Dynamic Delegation Discovery System (DDDS) Part Four: The Uniform Resource Identifiers (URI) Resolution Mealling Standards Track [Page 1]
RFC 3404 DDDS Based URI Resolution October 2002] fo... | http://zinfandel.tools.ietf.org/html/rfc3404 | CC-MAIN-2020-40 | refinedweb | 740 | 62.48 |
Squares Of A Sorted Array
March 6, 2020
The simple solution first computes the squares, then sorts:
> (sort < (map square '(-4 -1 0 3 10))) (0 1 9 16 100)
That solution requires time O(n log n) because of the sort. An O(n) solution exploits the fact that the input is already sorted, using two pointers
lo and
hi to scan... | https://programmingpraxis.com/2020/03/06/squares-of-a-sorted-array/2/ | CC-MAIN-2020-40 | refinedweb | 447 | 62.27 |
Are you still dependent on Python 2 for your applications? Then you must know that meeting security and compliance standards is a long and complicated process. ActiveState can help you secure your legacy applications, achieve compliance and even migrate to Python 3! Learn more about ActiveState’s extended Python 2 supp... | https://www.activestate.com/blog/python-2-to-3-migration-guidelines/ | CC-MAIN-2022-05 | refinedweb | 1,584 | 63.9 |
This analysis was conducted for April 27, 2019 story "How California’s faltering high-speed rail project was ‘captured’ by costly consultants."
It found that outside consultants have provided more than 3,000 environmental statements, business documents and other reports to the California High-Speed Rail Authority. Alto... | https://nbviewer.jupyter.org/github/datadesk/hsr-document-analysis/blob/master/notebook.ipynb | CC-MAIN-2019-43 | refinedweb | 365 | 53.07 |
In "Make Room for JavaSpaces, Part 2: Build a compute server with JavaSpaces" you saw how to build a simple general-purpose compute server using the JavaSpaces technology. Recall that a compute server is a powerful, all-purpose computing engine that accepts tasks, computes them, and returns results. In that design, a m... | http://www.javaworld.com/article/2076112/learn-java/make-room-for-javaspaces--part-5.html | CC-MAIN-2016-40 | refinedweb | 1,249 | 53.1 |
On Sun, Nov 04, 2007 at 12:30:14AM +0100, Roel Kluin wrote: > I am less certain about this one, so please review > -- > Iounmap when EFI won't switch to virtual mode > > Signed-off-by: Roel Kluin <12o3l@tiscali.nl> > --- > diff --git a/arch/ia64/kernel/efi.c b/arch/ia64/kernel/efi.c > index 3f7ea13..af925ab 100644 > --... | http://www.gelato.unsw.edu.au/archives/linux-ia64/0711/21374.html | CC-MAIN-2020-16 | refinedweb | 661 | 61.87 |
Created on 2012-11-14 04:32 by chris.jerdonek, last changed 2019-08-29 08:15 by rhettinger. This issue is now closed.
This issue is to ensure that argparse.ArgumentParser() accepts objects that support the "in" operator for the "choices" argument to ArgumentParser.add_argument().
As observed by Terry in the comments to... | https://bugs.python.org/issue16468 | CC-MAIN-2019-43 | refinedweb | 4,103 | 64.51 |
Wireless Network
Last updated: Apr 22, 2020
IMAGE GALLERY (1)
Network Interface
container networking / virtual ethernet devices1 / bridges / iptables2
- Connects computer, to a protocol stack (TCP/IP) to enable communication
- Types
- Ethernet
- Token Ring
- FDDI
- SONET
- wireless wi-fi
- bluetooth networks
How to cre... | https://avimehenwal.in/security/wireless-networks/ | CC-MAIN-2020-45 | refinedweb | 472 | 58.62 |
.)
You need to do two things: the script file’s mode must be executable and the first line must begin with #! followed by the path of the Python interpreter.
The first is done by executing chmod +x scriptfile or perhaps chmod 755 scriptfile.
The second can be done in a number of ways. The most straightforward way is to... | http://docs.python.org/3.1/faq/library.html | CC-MAIN-2013-48 | refinedweb | 1,238 | 66.13 |
This is the mail archive of the libstdc++@sources.redhat.com mailing list for the libstdc++ project.
FYI I've now enabled -fno-builtin for libstdc++-v3, until this gets sorted out. Disabling namespaces is now out of the question. >. The shadow header work will take care of making sure the C library functions are in std... | http://gcc.gnu.org/ml/libstdc++/2000-09/msg00110.html | crawl-001 | refinedweb | 123 | 68.26 |
closedir()
Close a directory
Synopsis:
#include <dirent.h> int closedir( DIR * dirp );
Since:
BlackBerry 10.0.0
Arguments:
- dirp
- A directory pointer for the directory you want to close.
Library:
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
Description:... | http://developer.blackberry.com/native/reference/core/com.qnx.doc.neutrino.lib_ref/topic/c/closedir.html | CC-MAIN-2014-42 | refinedweb | 236 | 59.6 |
I've got a bunch of OpenStreetMap content that I'm trying to label (ArcGIS Pro 2.2.4) based on whether content is found in the other_tags field. Here's what I'm trying to do in the expression editor (Python):
def FindLabel ( [other_tags] ):
import re
ls = [other_tags]
slabel = re.search('"name:en"=>"(.*?)","', ls)
retu... | https://community.esri.com/thread/227390-why-isnt-this-label-code-working | CC-MAIN-2019-22 | refinedweb | 207 | 58.38 |
Re: Session Fixation Vulnerability in Web Based Apps
I think he means higher level frameworks, web programming libraries, toolkits, and web page builder stuff; not hooks into SSL sessions. Not to say that a hook into an SSL session is not a good place to get an application sessions identifier from -- it would be, presu... | https://www.mail-archive.com/search?l=cryptography@metzdowd.com&q=from:%22Adam+Back%22 | CC-MAIN-2021-21 | refinedweb | 3,891 | 65.25 |
panda3d.core.MouseAndKeyboard¶
from panda3d.core import MouseAndKeyboard
- class
MouseAndKeyboard¶
Reads the mouse and/or keyboard data sent from a GraphicsWindow, and transmits it down the data graph.
The mouse and keyboard devices are bundled together into one device here, because they interrelate so much. A mouse mi... | https://docs.panda3d.org/1.10/python/reference/panda3d.core.MouseAndKeyboard | CC-MAIN-2020-29 | refinedweb | 141 | 56.89 |
Run checks on services like databases, queue servers, celery processes, etc.
Project description
This project checks for various conditions and provides reports when anomalous behavior is detected.
The following health checks are bundled with this project:
- cache
- database
- storage
- disk and memory utilization (via... | https://pypi.org/project/django-health-check/3.5.0/ | CC-MAIN-2019-13 | refinedweb | 241 | 54.93 |
Hi,
I have written this run length encoding program to compress files. However when it is run, it is outputting each individual character with the occurrence, therefore making the file size larger!.
For example:
1. Original file - aaaaa
Compressed File - 5a
( this works like it should)
2. Original File - This is a test... | http://www.javaprogrammingforums.com/file-i-o-other-i-o-streams/2676-run-length-encoding-problem.html | CC-MAIN-2014-52 | refinedweb | 283 | 54.9 |
Introduction: Measuring Water Level With Ultrasonic Sensor methods are optical method, radar and ultrasonic method. Because we didn’t want to affect the quality of water in tank we implement one of the contactless methods.
What method to choose? All contactless methods work on same principle: we send a signal and we me... | https://www.instructables.com/id/Measuring-water-level-with-ultrasonic-sensor/ | CC-MAIN-2020-16 | refinedweb | 2,775 | 65.01 |
The C# Data Types and Programming Constructs
Boxing and Unboxing
The conversion of a value type into a reference type is termed as boxing; the conversion of a reference type into a value type is termed as unboxing. Verify the code in Listing 3:
Listing 3
// Value type int X = 100; // x boxed to a object type which is r... | http://www.developer.com/net/csharp/article.php/10918_1466421_2/The-C-Data-Types-and-Programming-Constructs.htm | CC-MAIN-2015-18 | refinedweb | 706 | 54.22 |
Python Event Tutorial
The Python interface to Rocket exposes a DOM API in a very similar way to Javascript. Python code can be attached to any event in the RML definition which in turn can dynamically update any part of the document, including opening new documents. Full source code to the final PyInvaders application ... | http://librocket.com/wiki/documentation/tutorials/PythonEventSystem | CC-MAIN-2014-15 | refinedweb | 1,359 | 55.13 |
Date: Thu, 6 Aug 1998 10:43:19 +1000 From: Richard Gooch <Richard.Gooch@atnf.CSIRO.AU> I hope you don't feel I'm a fanatic. Yes, I strongly believe in the correctness of the idea. And I've not yet heard of practical solutions to all of the problems devfs fixes.No, but certain devfs "cheerleaders" have been responsible ... | https://lkml.org/lkml/1998/8/6/139 | CC-MAIN-2016-22 | refinedweb | 649 | 62.38 |
These are the wikipages to discuss and plan the localization (L10N) and translation of MeeGo.
The Localization working group defines the strategy for using crowd-sourcing for translating MeeGo into multiple languages, and observes its implementation. Using transifex.net as the tool, our goal is to build a community of ... | http://wiki.meego.com/index.php?title=Localization_team&diff=39698&oldid=39691 | CC-MAIN-2013-20 | refinedweb | 174 | 54.02 |
"records" and the columns are "fields". Sometimes you want to add an additional field to the dbf file to capture some new type of information not originally included.
Today's example shows you how to use pyshp to add a new field to an existing shapefile. This operation is a two-step process. You must first update the d... | http://geospatialpython.com/2013_04_01_archive.html | CC-MAIN-2017-26 | refinedweb | 408 | 66.44 |
Automatic Bird Identification: Part II
May 10, 2020, 2 p.m. by Avery Uslaner directories BASE_PATH = "/ML/Birds" # based on the base path, derive the images path IMAGES_PATH = path.sep.join([BASE_PATH, "DATA"]) LABELS_PATH = "/bird_ml/dataset.csv" MX_OUTPUT = BASE_PATH TRAIN_MX_LIST = path.sep.join([MX_OUTPUT, "lists/t... | https://averyuslaner.com/automatic-bird-identification-part-ii/ | CC-MAIN-2022-21 | refinedweb | 837 | 50.84 |
Type: Posts; User: Chris ZANARDI
Yes, it's the problem.
What I do now is I keep my exe alive as long as my AUDROS application is alive. So the icons stay correct.
Thanks.
hi gurus
I try to make an exe to change the icon of a window of an other application.
here my code :
#include "stdafx.h"
#include <winbase.h>
#includ... | http://forums.codeguru.com/search.php?s=30c088d9f4e788c144588528ae9c8ab2&searchid=7002865 | CC-MAIN-2015-22 | refinedweb | 472 | 83.46 |
The Viz3d class represents a 3D visualizer window. This class is implicitly shared. More...
#include <opencv2/viz/viz3d.hpp>
The constructors.
Add a light in the scene.
Transforms a point in window coordinate system to a 3D ray in world coordinate system.
Transforms a point in world coordinate system to window coordina... | https://docs.opencv.org/3.4/d6/d32/classcv_1_1viz_1_1Viz3d.html | CC-MAIN-2022-33 | refinedweb | 341 | 62.24 |
Core (3) - Linux Man Pages
Core: The Core widget class
NAMECore --- The Core widget class
SYNOPSIS
#include <Xm/Xm.h>
DESCRIPTION
Core is the Xt Intrinsic base class for windowed widgets. The Object and RectObj classes provide support for windowless widgets.
Classes
All widgets are built from Core.
The class pointer is... | https://www.systutorials.com/docs/linux/man/3-Core/ | CC-MAIN-2021-31 | refinedweb | 823 | 57.47 |
>>.
citibank.co (Score:5, Funny)
now with moar than $100 billion in frictionless laundered money. That's what we call
.colocation!
GoDaddy stories on Slashdot ."
What registrar would you recommend? (Score:4, Interesting)
Re: (Score:3, Interesting)
Re: (Score:3, Informative)
gandi.net
Re: (Score:3, Informative)
Re: (Sco... | http://tech.slashdot.org/story/10/11/13/2324256/The-Ascendancy-of-co | CC-MAIN-2016-07 | refinedweb | 4,721 | 73.88 |
cc [ flag ... ] file ... -lm [ library ... ]
#include <math.h>
The j0(), j1() and jn() functions compute Bessel functions of x of the first kind of orders 0, 1 and n respectively..
For exceptional cases, matherr(3M) tabulates the values to be returned as dictated
by Standards other than XPG4.
The j0(), j1() and jn() fu... | http://www.shrubbery.net/solaris9ab/SUNWaman/hman3m/j0.3m.html | CC-MAIN-2017-30 | refinedweb | 112 | 59.03 |
Topic: Looping in Programming
Not finding your answer? Try searching the web for Looping in Programming
Answers to Common Questions
How to Make an Infinite Loop Program in Basic
The Basic programming language is just that--basic. It uses commands and terms that make basic sense to just about anyone that would read them... | http://www.ask.com/questions-about/Looping-in-Programming | crawl-003 | refinedweb | 433 | 72.87 |
Here is my code :
- (NSData *)dataOfType:(NSString *)typeName error:(NSError *__autoreleasing *)outError { NSLog(@"Document dataOfType"); return ([NSKeyedArchiver archivedDataWithRootObject:ovalArray]); } - (BOOL) readFromData:(NSData *)data ofType:(NSString *)typeName error:(NSError *__autoreleasing *)outError { NSLog... | https://forums.bignerdranch.com/t/challenge-cant-load-and-save/4934 | CC-MAIN-2018-43 | refinedweb | 250 | 53.61 |
Understanding Isolated Storage - Day 3 - Part 6
- Posted: Nov 11, 2010 at 6:07 PM
- 26,459 Views
- 10 Comments
Something went wrong getting user information from Channel 9
Something went wrong getting user information from MSDN
Something went wrong getting the Visual Studio Achievements
Right click “Save as…”
Each Wind... | http://channel9.msdn.com/Series/Windows-Phone-7-Development-for-Absolute-Beginners/Understanding-Isolated-Storage?format=html5 | CC-MAIN-2014-35 | refinedweb | 523 | 71.95 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.