text stringlengths 20 1.01M | url stringlengths 14 1.25k | dump stringlengths 9 15 ⌀ | lang stringclasses 4
values | source stringclasses 4
values |
|---|---|---|---|---|
Specifying a Route's Model
A route's JavaScript file is one of the best places in an app to make requests to an API.
In this section of the guides, you'll learn how to use the
model
method to fetch data by making a HTTP request, and render it in a route's
hbs template, or pass it down to a component.
For example, take ... | https://guides.emberjs.com/v3.19.0/routing/specifying-a-routes-model/ | CC-MAIN-2022-21 | en | refinedweb |
Python comprehensions for list, set and dictionary
Introduction
Python comprehension is a set of looping and filtering instructions for evaluating expressions and producing sequence output. It is commonly used to construct list, set or dictionary objects which are known as list comprehension, set comprehension and dict... | https://www.codeforests.com/2020/11/01/python-comprehension-list-set-dict/ | CC-MAIN-2022-21 | en | refinedweb |
README
ember-m3ember-m3
This addon provides an alternative model implementation to
DS.Model that is
compatible with the rest of the ember-data ecosystem.
BackgroundBackground
Ember-data users define their schemas via
DS.Model classes which explicitly
state what attributes and relationships they expect. Having many such... | https://www.skypack.dev/view/ember-m3 | CC-MAIN-2022-21 | en | refinedweb |
NextFEM Designer can host plugins able to interact with model and viewport. Plugins must be written in any of the .NET Framework supported languages (eg. C#, VB.NET, F#, …). Recommended framework version is v4.7.1.
NextFEM gives the public interface IPlugin in NextFEMplugin.dll, that must be implemented inside the plug... | https://www.nextfem.it/it/plugin/ | CC-MAIN-2022-21 | en | refinedweb |
Notifications
You’re not receiving notifications from this thread.
Loop through associated records and deliver as csv
Hi there,
I've watched your CSV export episode and I'm using the exact same code to export the records to a CSV.
I've got two tables: Orders and Sales. 1 Order has_many Sales and 1 Sale belongs_to an Or... | https://gorails.com/forum/loop-through-associated-records-and-deliver-as-csv | CC-MAIN-2022-21 | en | refinedweb |
GraphQL Server in Java, Part I: The Basics
Learn more about GraphQL in Java applications.
Join the DZone community and get the full member experience.Join For Free
Superficially, there is no reason why GraphQL servers are typically written in Node.js. However, callback-based languages that don't block waiting for the r... | https://dzone.com/articles/graphql-server-in-java-part-i-the-basics | CC-MAIN-2022-21 | en | refinedweb |
I have the following two models:
class Exercise(models.Model): MULTIPLE_CHOICE_SINGLE_POSSIBLE = 0 MULTIPLE_CHOICE_MULTIPLE_POSSIBLE = 1 EXERCISE_TYPES = ( (MULTIPLE_CHOICE_SINGLE_POSSIBLE, "Multiple choice, single possible"), (MULTIPLE_CHOICE_MULTIPLE_POSSIBLE, "Multiple choice, multiple possible"), ) parent = models.... | https://forum.djangoproject.com/t/custom-relatedmanager-for-polymorphic-model/10331 | CC-MAIN-2022-21 | en | refinedweb |
View full-pixel color graphics on SIXEL-supported terminals(xterm/mlterm/DECterm/Reflection/RLogin/tanasinn/yaft)
Project description
What is SIXEL?
SIXEL is one of image formats for terminal imaging introduced by DEC VT series. SIXEL image data scheme is represented as a terminal-friendly escape sequence. So if you wa... | https://pypi.org/project/PySixel/ | CC-MAIN-2022-21 | en | refinedweb |
In this post, we will learn about constants in c. We will go through Numeric Constants (Such as Integer constants, Real Constants) , Character Constants (Such as Single Character Constant, String Constant, BackSlash Character Constant) etc. At last, we will see how to use c constants in program using const keyword and ... | https://tutorialwing.com/different-c-constants-with-example/ | CC-MAIN-2022-21 | en | refinedweb |
Counting triangles in a graph
Various techniques for counting and listing triangles in a graph.
By Vamshi Jandhyala
July 5, 2020
Why is counting triangles important
Triangle counting is an important problem in graph mining. Two frequently used metrics in complex network analysis that require the count of triangles are ... | https://vamshij.com/blog/2020-07-05-triangles-in-graph/ | CC-MAIN-2022-21 | en | refinedweb |
Read about InitalContext.
In a container/server we define/reference resource in the JNDI context by specifying it in the deployment descriptors.
In Java EE, there are two types of deployment descriptors:
"java EE deployment descriptors" and "runtime deployment descriptors".
The Java EE deployment descriptors are define... | http://www.developers-notebook.info/2014/03/configuring-and-using-jndi-resources-in.html | CC-MAIN-2019-13 | en | refinedweb |
Last week I was off boondoggling at PDC 2008. Most of the sessions I attended were really informative, intriguing, or at least entertaining. Here are the highlights...
1. Pre-conference session on Agile Perspectives: this was a good refresher for me on agile and lean practices and some discussion from Mary and John Pop... | https://integralpath.blogs.com/thinkingoutloud/net/ | CC-MAIN-2019-13 | en | refinedweb |
Common Web Project Conversion Issues and Solutions
Michael Bundschuh
Program Manager, Microsoft
Robert McGovern
Infusion Development
November 2005 (Updated for the Visual Studio 2005 RTM release)
Applies to:
ASP.NET 1.x
ASP.NET 2.0
Visual Studio .NET 2003
Visual Studio 2005
Summary: Reviews both Visual Studio 2005 Web ... | https://docs.microsoft.com/en-us/previous-versions/dotnet/articles/aa479312(v=msdn.10) | CC-MAIN-2019-13 | en | refinedweb |
.
This allows us to very quickly access and modify complicated subsets of an array's values.
import numpy as np rand = np.random.RandomState(42) x = rand.randint(100, size=10) print(x)
[51 92 14 71 60 20 82 86 74 74]
Suppose we want to access three different elements. We could do it like this:
[x[3], x[7], x[2]]
[71, 8... | https://nbviewer.jupyter.org/github/donnemartin/data-science-ipython-notebooks/blob/master/numpy/02.07-Fancy-Indexing.ipynb | CC-MAIN-2019-13 | en | refinedweb |
Abstract: This article explains how a Solaris OS application with large memory requirements can effectively create a subprocess without unduly running out of memory or creating a deadlock. It also explores a related issue of how application memory is committed in the Solaris OS as opposed to other operating systems suc... | https://www.oracle.com/technetwork/server-storage/solaris10/subprocess-136439.html | CC-MAIN-2019-13 | en | refinedweb |
Introduction
By now you may know that an app.config or a web.config file can be added to a .NET application. The .config file supports externalizing application settings where in the past you might have used the registry. You probably also know that the ConfigurationSettings.AppSettings property permits you to read ind... | http://www.informit.com/articles/article.aspx?p=355879&seqNum=3 | CC-MAIN-2019-13 | en | refinedweb |
How to edit pixel values of color image in SageMath?
I would like to change pixel values in a color image with Sagemath. I can do the same in python, but my program contains some parts which can not be done with python. Here are the codes for SageMath:
MWE:
from PIL import Image img=Image.open('image.pgm') pxl=img.load... | https://ask.sagemath.org/question/43913/how-to-edit-pixel-values-of-color-image-in-sagemath/ | CC-MAIN-2019-13 | en | refinedweb |
OutputArtifact
import "github.com/aws/aws-sdk-go/service/codepipeline"
type OutputArtifact struct { Name *string `locationName:"name" min:"1" type:"string" required:"true"` }
Represents information about the output of an action.
- Name
Type:
.
Name is a required field
Method
GoString
func (s OutputArtifact) GoString() ... | https://docs.aws.amazon.com/sdk-for-go/v1/api/service.codepipeline.OutputArtifact.html | CC-MAIN-2019-13 | en | refinedweb |
In my requirement data should split into 2 columns in same page(left to right and top to botton but in 2 columns) if data both columns are filed then data should appear on next page…
Please share the code and approach using Aspose.abc.png (255.8 KB)
Generate PDF using xml data and xsl
In my requirement data should spli... | https://forum.aspose.com/t/generate-pdf-using-xml-data-and-xsl/189421 | CC-MAIN-2019-13 | en | refinedweb |
Writing a custom -config.cmake module file¶
Let use assume you want to use the
foo library, and no
FindFoo.cmake for
foo-config.cmake exist.
(Because it is not known enough to be in standard CMake
modules, or because the
foo project does not use CMake
as a build system, or for whatever reason)
In any case, if you do ha... | http://doc.aldebaran.com/qibuild/advanced/guide/cmake/writing_a_config_cmake.html | CC-MAIN-2019-13 | en | refinedweb |
Supreme Court Judgments
Subscribe
S.B.
Sinha & Dalveer Bhandari
(Arising
out of SLP (C) No. 9637 of 2006) S.B. SINHA, J.
Leave
granted.
Respondent
has its own Engineering and Field Service department which undertakes jobs of
industrial project installation, erection, commissioning of electrical/
electronic equipments w... | http://www.advocatekhoj.com/library/judgments/index.php?go=2006/november/63.php | CC-MAIN-2019-13 | en | refinedweb |
. The halfedges along the boundary of a hole are called border halfedges and have no incident facet. An edge is a border edge if one of its halfedges is a border halfedge. A surface is closed if it contains no border halfedges. A closed surface is a boundary representation for polyhedra in three dimensions. The convent... | https://doc.cgal.org/Manual/3.4/doc_html/cgal_manual/Polyhedron_ref/Class_Polyhedron_3.html | CC-MAIN-2019-13 | en | refinedweb |
Example 21-8 is a client
program for the MUD system developed in the previous examples. It
uses the Naming.lookup( ) method to look up the
RemoteMudServer object that represents a named MUD
on a specified host. The program then calls the getEntrance(
) or getNamedPlace( ) method of this
RemoteMudServer object to obtain... | http://books.gigatux.nl/mirror/javaexamples/0596006209_jenut3-chp-21-sect-9.html | CC-MAIN-2019-13 | en | refinedweb |
Edit TIN (3D Analyst)
Summary
Adds features from one or more input feature classes that define the surface area of a triangulated irregular network (TIN).
Learn more about how Edit TIN (3D Analyst) works
Illustration
Usage
Multiple feature classes can be added at the same time.
You can resize the Input Feature Class pr... | http://help.arcgis.com/en/arcgisdesktop/10.0/help/00q9/00q900000048000000.htm | CC-MAIN-2019-13 | en | refinedweb |
Before you will be able to run these tests you will need to have Python 2.6 installed.__note__The below instructions will install the required Python libraries into yourglobal Python installation. If you work on multiple Python projects that mightend up needing different versions of the same libraries, you might want t... | http://www.findbestopensource.com/product/mozilla-input-tests | CC-MAIN-2017-04 | en | refinedweb |
Firefox 18.0a1 (2012-09-17)
Device: Galaxy Note
OS: Android 4.0.4
Steps to reproduce:
1. Open Firefox for Android
2. Go to and tap any Top Rated Tracks
3. Tap on Download button
4. Type the given captcha code and tap on Download button
Expected result:
After step 4, a File Picker is displayed with the following options... | https://bugzilla.mozilla.org/show_bug.cgi?id=791654 | CC-MAIN-2017-04 | en | refinedweb |
Froody::Dispatch - Easily call Froody Methods
use Froody::Dispatch; my $dispatcher = Froody::Dispatch->new(); my $response = $dispatcher->call( "foo.bar.baz", fred => "wilma" );
or, as a client:
$client = Froody::Dispatch->new; # uses reflection to load methods from the server $client->add_endpoint( "uri" ); # look mah... | http://search.cpan.org/~fotango/Froody-42.041_2/lib/Froody/Dispatch.pm | CC-MAIN-2017-04 | en | refinedweb |
IBM IMPACT 2008 education promotion (expires April 6, 2008)
Announcement Letter Number 307-603
December 4, 2007
The offer
Registrations.
Qualifying/Eligible products
Eligible courses*
Course Course Description Code
Designing SOA Solutions with the IBM SOA Foundation VS590 SOA Developing Applications with a Service-Orie... | http://www-01.ibm.com/common/ssi/cgi-bin/ssialias?subtype=ca&infotype=an&appname=iSource&supplier=897&letternum=ENUS307-603 | CC-MAIN-2017-04 | en | refinedweb |
I need some help form all of you, so i have something like this
class LoginFrame(Frame):
def __init__(self, master):
super().__init__(master)
...
...
...
def _login_btn_clickked(self):
...
...
result = messagebox.askyesno("Wrong username or password.", "Do you want to try again?")
if result == True:
self.__init__(self)... | https://codedump.io/share/s9LCCughwjuz/1/call-a-init-function-from-another-function | CC-MAIN-2017-04 | en | refinedweb |
#include "avfilter.h"
#include "libavutil/avassert.h"
Go to the source code of this file.
Definition at line 55 of file bufferqueue.h.
Referenced by ff_bufqueue_add(), and ff_bufqueue_peek().
FFBufQueue: simple AVFilterBufferRef.
Add a buffer to the queue.
If the queue is already full, then the current last buffer is d... | http://ffmpeg.org/doxygen/1.0/bufferqueue_8h.html | CC-MAIN-2017-04 | en | refinedweb |
I wrote a program in C to check if the entered number is divisible by 100, but I've run into a problem. If I enter a number with 11 digits or more (with the last two digits being zeroes, of course), it says the number is not divisible by 100, even though it is. Help?
#include <stdio.h>
#include <conio.h>
int main()
{
l... | https://codedump.io/share/YjHZjzXOLfn3/1/issue-with-a-program-in-c-to-check-if-a-number-is-divisible-by-100 | CC-MAIN-2017-04 | en | refinedweb |
Hello again, By looking at the source to ZWiki I've managed to get a dummy version of my searching working, passing the data from the form by GET instead of POST. As well as changing the form method to "get", I've changed the Python View Class to read:
Advertising
def getMatchingAdverts(self): max_rent = int(self.reque... | https://www.mail-archive.com/zope3-users@zope.org/msg00427.html | CC-MAIN-2017-04 | en | refinedweb |
Generic Routing Encapsulation (GRE) is a tunneling protocol developed by Cisco Systems that encapsulates a wide variety of network layer protocols inside virtual point-to-point links over an Internet Protocol internetwork.
Feature History for Configuring Link Bundling on Cisco IOS XR Software
This chapter includes thes... | http://www.cisco.com/c/en/us/td/docs/routers/asr9000/software/asr9k_r4-3/lxvpn/configuration/guide/vcasr9kv343/vcasr9kv3gre.html | CC-MAIN-2017-04 | en | refinedweb |
unittest_expander 0.1.2
Easy and flexible unittest parameterization.
unittest_expander is a Python library that provides flexible and easy-to-use tools to parameterize your unit tests, especially those based on unittest.TestCase from the Python standard library.
The library is compatibile with Python 2.6, 2.7, 3.2, 3.3... | https://pypi.python.org/pypi/unittest_expander/0.1.2 | CC-MAIN-2017-04 | en | refinedweb |
Steps to reproduce:
- Open console (Ctrl + ~)
- type
- Code: Select all
import unicodedata
- Code: Select all
>>> import unicodedata
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named unicodedata
Expected output:
- Code: Select all
>>> import unicodedata
Tested on Subli... | http://www.sublimetext.com/forum/viewtopic.php?f=3&t=3462&start=0 | CC-MAIN-2014-10 | en | refinedweb |
Bitbreaker/METALVOTZE wrote: > > :-) > > [...] > > Index: libavformat/a64.c > =================================================================== > --- libavformat/a64.c (Revision 0) > +++ libavformat/a64.c (Revision 0) > @@ -0,0 +1,96 @@ > +/* > + * a64 muxer and demuxer There is no demuxer here. > +[...] > + > +#ifde... | http://ffmpeg.org/pipermail/ffmpeg-devel/2009-January/067819.html | CC-MAIN-2014-10 | en | refinedweb |
#include <hallo.h> David Hollister wrote on Mon Sep 24, 2001 um 10:38:40AM: > dar:~> cat /etc/mtab > /dev/hda1 / auto rw 0 0 ^^^^ known bug in fileutils, look in archives Gruss/Regards, Eduard. -- Plug-and-Play is really nice, unfortunately it only works 50% of the time. To be specific the "Plug" almost always works. -... | https://www.redhat.com/archives/ext3-users/2001-September/msg00185.html | CC-MAIN-2014-10 | en | refinedweb |
02 February 2010 13:01 [Source: ICIS news]
(Adds performance detail from 11th paragraph)
LONDON (ICIS news)--Dow Chemical swung to a fourth-quarter net profit of $87m (€63m) from the $1.55bn loss reported in the same quarter of last year, largely on year-on-year volume gains across almost all operating segments and on ... | http://www.icis.com/Articles/2010/02/02/9331098/dow-swings-to-87m-q4-net-profit-on-volumes-equity-earnings.html | CC-MAIN-2014-10 | en | refinedweb |
Great summary. Two comments:
1) I think we (anyone needing to move drives between Mac and PC) should write to Apple and Microsoft and ask for better support for this. Specifically, Apple needs to (license the tech if necessary) allow formatting and writing NTFS.
2) I have a few external drives that I swap on a regular ... | http://hints.macworld.com/article.php?story=20050521110452194&lsrc=osxh | CC-MAIN-2014-10 | en | refinedweb |
#include <db_cxx.h> int DbEnv::rep_set_nsites(u_int32_t nsites);
The
DbEnv::rep_set_nsites() method specifies the total number of
sites in a replication group. This method should not be used by
Replication Manager applications; the number of sites in use by a
Replication Manager application is determined dynamically.
T... | http://idlebox.net/2011/apidocs/db-5.2.28.zip/api_reference/CXX/repnsites.html | CC-MAIN-2014-10 | en | refinedweb |
/* * /dsa.h> /* BEGIN ERROR CODES */ #ifndef NO_ERR static ERR_STRING_DATA DSA_str_functs[]= { {ERR_PACK(0,DSA_F_D2I_DSA_SIG,0), "d2i_DSA_SIG"}, {ERR_PACK(0,DSA_F_DSAPARAMS_PRINT,0), "DSAparams_print"}, {ERR_PACK(0,DSA_F_DSAPARAMS_PRINT_FP,0), "DSAparams_print_fp"}, {ERR_PACK(0,DSA_F_DSA_DO_SIGN,0), "DSA_do_sign"}, {ER... | http://opensource.apple.com/source/libsecurity_apple_csp/libsecurity_apple_csp-36859/open_ssl/dsa/dsa_err.c | CC-MAIN-2014-10 | en | refinedweb |
20 January 2012 08:15 [Source: ICIS news]
SINGAPORE (ICIS)--Polyethylene (PE) and polypropylene (PP) producers based in Al Jubail, ?xml:namespace>
The facilities halted production on 19 January and may not resume operations until after five to seven days, the analyst who covers the Middle Eastern petrochemical industry... | http://www.icis.com/Articles/2012/01/20/9525543/power-outage-may-shave-al-jubail-pe-pp-makers-q1-sales-by-10.html | CC-MAIN-2014-10 | en | refinedweb |
01 February 2012 05:48 [Source: ICIS news]
By Felicia Loo
SINGAPORE (ICIS)--China is likely to install at least three gigawatts (3GW) of new solar power capacity this year, up from 2GW installed in 2011, as its government strives to enhance solar energy usage as part of efforts to combat stubbornly high oil prices, ind... | http://www.icis.com/Articles/2012/02/01/9528245/china-sees-rapid-solar-growth-eyes-3gw-new-capacities-in-12.html | CC-MAIN-2014-10 | en | refinedweb |
WebStorage
Since: BlackBerry 10.0.0
#include <bb/cascades/WebStorage>
Utilities for accessing the storage for a WebView control.
Each WebView instance has an associated WebStorage which can be referenced by reading the WebView storage property. You should never have any reason to create an instance of this class yourse... | https://developer.blackberry.com/native/reference/cascades/bb__cascades__webstorage.html | CC-MAIN-2014-10 | en | refinedweb |
RPi.GPIO 0.4.0a
A module to control Raspberry Pi GPIO channels, PWM or serial functionality on the RPi yet. This is planned for the near future - watch this space! One-wire functionality is also planned.
Example Usage :
import RPi.GPIO as GPIO # to use Raspberry Pi board pin numbers GPIO.setmode(GPIO.BOARD) # set up GP... | https://pypi.python.org/pypi/RPi.GPIO/0.4.0a | CC-MAIN-2014-10 | en | refinedweb |
oh yeah, here we go
installing now...
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
Still waiting for those phones to come out. I'm in the market for a smartphone right now, and the end of ... | http://channel9.msdn.com/Forums/Coffeehouse/MANGO | CC-MAIN-2014-10 | en | refinedweb |
Andrew Wirick | April 11, 2012
As a Web developer, you want to build an application with a rich, immersive user interface that allows your customers to interact with your app in an engaging and responsive way. You also want to design your application so that it is maintainable, testable and secure. When evaluating the ... | http://msdn.microsoft.com/en-us/magazine/hh965659.aspx | CC-MAIN-2014-10 | en | refinedweb |
Testing a secure webservice using JUnit
By manveen on Mar 30, 2007
While working on creating a glassfish-sample for XML and Web Services Security(XWSS). Having everyone so often say "It's always nice to have unit tests", "developers should unit test their applications", its good practice, I thought I might as well writ... | https://blogs.oracle.com/manveen/tags/htmlunit | CC-MAIN-2014-10 | en | refinedweb |
Schema Validation - Failed to read schema documentBob Bucy Jun 19, 2008 6:35 PM
Trying to turn on Schema Validation for a webservice I have created. All is ok running without validation, wsconsume has no issues generating artifacts on the server side, nor any issues running wsconsume on client side, nor any issue runni... | https://community.jboss.org/message/339078 | CC-MAIN-2014-10 | en | refinedweb |
- Has anyone got any experience writing a SOAP::Lite client that talks to a gSOAP server? I ve used stubmaker.pl to create stub functions from my gSOAP-generatedMessage 1 of 1 , Nov 19, 2003View SourceHas anyone got any experience writing a SOAP::Lite client that talks to a
gSOAP server?
I've used stubmaker.pl to creat... | https://groups.yahoo.com/neo/groups/soaplite/conversations/topics/3160?o=1&d=-1 | CC-MAIN-2014-10 | en | refinedweb |
[obsolete] Fibonacci function: An example of how to write concurrent programs without multi-threading
[Update on 4/25/2012: The source code listed here are out of date. The latest version is 1.3.74, and its use is much clear and simpler.]
The post describes three implementations of the Fibonacci function. Each implemen... | https://weblogs.java.net/node/884352/atom/feed | CC-MAIN-2014-10 | en | refinedweb |
Signatures (F#)
A signature file contains information about the public signatures of a set of F# program elements, such as types, namespaces, and modules. It can be used to specify the accessibility of these program elements.
For each F# code file, you can have a signature file, which is a file that has the same name a... | http://msdn.microsoft.com/en-us/library/dd233196.aspx | CC-MAIN-2014-10 | en | refinedweb |
Hello; }
A pyramid such as that grows at a rate of (2x - 1), or one less than 2 times x.
***X 2*1 = 2 -1 = 1 **XXX 2*2 = 4 - 1 = 3 *XXXXX 2*3 = 6 - 1 = 5 XXXXXXX 2*4 = 8 - 1 = 7
A possible way to get what you're looking for is to output a blank space " " in front of each row.
And I'm guessing from looking the asterisks... | http://www.daniweb.com/software-development/cpp/threads/154590/make-pyramid | CC-MAIN-2014-10 | en | refinedweb |
import a bunch of pkgsrc articles from the old pkgsrc.se wiki
**Contents** [[!toc levels=2]] this files together are mostly referred as the pkgsrc tree. This tree is maintained by the pkgsrc developers, that make changes to it every day. Therefore it is necessary to update the pkgsrc tree regularly. ]] | https://wiki.netbsd.org/cgi-bin/cvsweb/wikisrc/pkgsrc/how_to_use_pkgsrc.mdwn?rev=1.1;content-type=text%2Fx-cvsweb-markup | CC-MAIN-2014-10 | en | refinedweb |
[ ]
Stefan Guggisberg commented on JCR-240:
---------------------------------------
> // remap xml namespace -> works
> Session.setNamespacePrefix("foobar", "");
i guess this is not correct. i might be mistaken but i thought that it is illegal
to remap "".
the above stmt should fail IMO.
> locally remapped xml namespac... | http://mail-archives.apache.org/mod_mbox/jackrabbit-dev/200510.mbox/%3C2042332466.1128527748300.JavaMail.jira@ajax.apache.org%3E | CC-MAIN-2014-10 | en | refinedweb |
code — Interpreter base classes¶
Source code: Lib/code.py
The
code module provides facilities to implement read-eval-print loops in
Python. Two classes and convenience functions are included which can be used to
build applications which provide an interactive interpreter prompt.
- class
code.
InteractiveInterpreter(loc... | https://docs.python.org/3/library/code.html | CC-MAIN-2020-29 | en | refinedweb |
Hi,
I'm just getting started and found a strange issue with asynchronous code. Try this in an iOS project:
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using MonoTouch.Foundation; using MonoTouch.UIKit; using Portable; namespace AsyncAwaitTest { [Register ("AppDelegat... | https://forums.xamarin.com/discussion/comment/358807 | CC-MAIN-2020-29 | en | refinedweb |
I have to write a program for school that has user input ten movie titles and their corresponding ratings. This program must use parrallel arrays. There is more to the program but not needed for the issue I am currently having. I cannot seem to get the string for the movie title to get into the array correctly. When ru... | https://www.daniweb.com/programming/software-development/threads/96609/input-problem-using-arrays | CC-MAIN-2020-29 | en | refinedweb |
Installing Ray¶
Ray supports Python 2 and Python 3 as well as MacOS and Linux. Windows support is planned for the future.
Latest stable version¶
You can install the latest stable version of Ray as follows.
pip install -U ray # also recommended: ray[debug]
Latest Snapshots (Nightlies)¶
Here are links to the latest wheel... | https://docs.ray.io/en/releases-0.7.7/installation.html | CC-MAIN-2020-29 | en | refinedweb |
Unit testing patterns: common patterns to follow for error free applicationsPosted Feb 22, 2017 | 15 min. (3108 words)
Not long ago I wrote about the anatomy of a unit test along with helpful guidelines and test-double concepts. Today I’m going to walk you through the common unit testing patterns that I follow.
Raygun ... | https://raygun.com/blog/unit-testing-patterns/ | CC-MAIN-2020-29 | en | refinedweb |
The class implements K-Nearest Neighbors model. More...
#include <opencv2/ml.hpp>
The class implements K-Nearest Neighbors model.
Creates the empty model.
The static method creates empty KNearest classifier. It should be then trained using StatModel::train method.. | https://docs.opencv.org/trunk/dd/de1/classcv_1_1ml_1_1KNearest.html | CC-MAIN-2020-29 | en | refinedweb |
Use a string to configure the admins emails setting in your Django Application.
Project description
This utility is based on dj-database-url by Kenneth Reitz.
It allows to utilize the 12factor inspired environments variable to configure the ADMINS emails list in a Django application.
Usage
Import the package in setting... | https://pypi.org/project/dj-admins-setting/ | CC-MAIN-2020-29 | en | refinedweb |
Next Chapter: Neural Networks Introduction:
The k-Nearest-Neighbor Classifier (k-NN) works directly on the learned samples, instead of creating rules compared to other classification methods.
Nearest Neighbor Algorithm:
Given a set of categories $\{c_1, c_2, ... c_n\}$, also called classes, e.g. {"male", "female"}. The... | https://python-course.eu/k_nearest_neighbor_classifier.php | CC-MAIN-2020-29 | en | refinedweb |
Changelog¶
Python next¶
Release date: XXXX-XX-XX
Python 3.8.4 release candidate 1¶
Release date: 2020-06-29
Security¶¶whenoperator and functions
contains(),
indexOf()and
countOf()of the
operatormodule.
bpo-40663: Correctly generate annotations where parentheses are omitted but required (e.g:
Type[(str, int, *other))].
... | https://docs.python.org/3.8/whatsnew/changelog.html | CC-MAIN-2020-29 | en | refinedweb |
Making the Reactive Queue Durable with Akka Persistence
Making the Reactive Queue Durable with Akka Persistence
Join the DZone community and get the full member experience.Join For Free
Some time ago I wrote how to implement a reactive message queue with Akka Streams. The queue supports streaming send and receive opera... | https://dzone.com/articles/making-reactive-queue-durable | CC-MAIN-2020-29 | en | refinedweb |
Unlike some other devices the Raspberry Pi does not have any analogue inputs. All 17 of its GPIO pins are digital. They can output high and low levels or read high and low levels. This is great for sensors that provide a digital input to the Pi but not so great if you want to use analogue sensors.
For sensors that act ... | https://www.raspberrypi-spy.co.uk/2012/08/reading-analogue-sensors-with-one-gpio-pin/ | CC-MAIN-2018-30 | en | refinedweb |
This class assists in the generation of a ConstraintSampler for a particular group from a moveit_msgs::Constraints. More...
#include <constraint_sampler_manager.h>
This class assists in the generation of a ConstraintSampler for a particular group from a moveit_msgs::Constraints.
It contains logic that will generate eit... | http://docs.ros.org/kinetic/api/moveit_core/html/classconstraint__samplers_1_1ConstraintSamplerManager.html | CC-MAIN-2018-30 | en | refinedweb |
Feedback
Getting Started
Discussions
Site operation discussions
Recent Posts
(new topic)
Departments
Courses
Research Papers
Design Docs
Quotations
Genealogical Diagrams
Archives
Ralf Hinze and Andres Löh. Generic Programming, Now!. In Roland Backhouse, Jeremy Gibbons, Ralf Hinze and Johan Jeuring, editors, Spring Sch... | http://lambda-the-ultimate.org/node/2017 | CC-MAIN-2018-30 | en | refinedweb |
The Particle Swarm Optimizer employs a form of artificial intelligence to solve problems. It is particularly good at finding solutions to functions that use multiple, continuously variable, values. This piece is concerned with modifying the algorithm to tackle problems, such as the travelling salesman problem, that use... | https://www.codeproject.com/Articles/1182794/Solving-the-Travelling-Salesman-Problem-With-a-Par | CC-MAIN-2018-30 | en | refinedweb |
from __future__ import error
A little birdie tells me that we're going to have to abort this round
because the fauxton source was not included in the dist tarball. Jan is
working on this now.
The reason this wasn't picked up by build_candidate.sh is that we added an
exception for it for the last release.
I have fixed t... | http://mail-archives.apache.org/mod_mbox/couchdb-dev/201310.mbox/%3CCAPaJBx4vEM+F2mpS0wTB_iyYcODNmN7ceBkHGtH-VLCawiOewQ@mail.gmail.com%3E | CC-MAIN-2018-30 | en | refinedweb |
[
]
Sorabh Hamirwasia updated DRILL-5568:
-------------------------------------
Labels: ready-to-commit (was: )
> Include hadoop-common jars inside drill-jdbc-all.jar
> ----------------------------------------------------
>
> Key: DRILL-5568
> URL:
> Project: Apache Drill
> Issue Type: Bug
> Components: Client - JDBC
>... | http://mail-archives.apache.org/mod_mbox/drill-issues/201706.mbox/%3CJIRA.13077338.1496694814000.53026.1497917100113@Atlassian.JIRA%3E | CC-MAIN-2018-30 | en | refinedweb |
United Technologies Corp (Symbol: UTX). So this week we highlight one interesting put contract, and one interesting call contract, from the January 2018 expiration for UTX. The put contract our YieldBoost algorithm identified as particularly interesting, is at the $77.50 strike, which has a bid at the time of this wri... | http://www.nasdaq.com/article/interesting-january-2018-stock-options-for-utx-cm763018 | CC-MAIN-2017-13 | en | refinedweb |
i
View Complete Post
View Complete Post
Hello everyone.
I have a MSchart control in my webform called Chart1 which is part of the namespace: System.Web.UI.DataVisualization.Charting.Chart
I am developing a multi-user (simultaneous connection) to a webform that manipulates controls and displays data on the graph. Anyhow... | http://www.dotnetspark.com/links/34076-how-will-take-html-controls-value-from-source.aspx | CC-MAIN-2017-13 | en | refinedweb |
Conventional wisdom is that a contextual naming system is needed for Internet scale. In a flat namespace, the “good” names will be immediately unavailable, and the rest of us will have to get some lame alternative that might as well be a DNS.
Currency of Identifiers II
Today, identity provider saml is always in the con... | http://www.slideserve.com/gluu/currency-of-identifiers-ii-1501476 | CC-MAIN-2017-13 | en | refinedweb |
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Data;
namespace SampleJSONWeb
{
public class GetData
{
public IList<ReferenceData> GetCustomerescriptions(string customerTypeId)
{
List<ReferenceData> list = new List<ReferenceData>();
list.Add(new ReferenceData("1",... | https://www.codeproject.com/script/articles/viewdownloads.aspx?aid=210706&zep=samplejsonweb%2Fsamplejsonweb%2Fgetdata.cs&rzp=%2Fkb%2Fdocview%2Fjson_handler_for_asp_net_%2F%2Fsamplejsonweb.zip | CC-MAIN-2017-13 | en | refinedweb |
,
I tried following the instructions at the py2exe site and I have also
uncommeneted and made it include the matplotlib.numerix package. Still it
doesnt seem to work. Is there any other way of compiling it into an
executable?
Thanks,
Archana.
On 4/1/07, Werner F. Bruhin <werner.bruhin@...> wrote:
>
>
>
On 3/30/07, Rich... | https://sourceforge.net/p/matplotlib/mailman/matplotlib-users/?viewmonth=200704&viewday=1 | CC-MAIN-2017-13 | en | refinedweb |
0
Hey guys i seem to be having an issue with the following code:
// show solution to variable scope problem using "the heap" // a block of memory controlled by the programmer #include<iostream> using namespace std; double* Function() { double* dLocalVar = new double; return dLocalVar; // give address of dLocalVar to ca... | https://www.daniweb.com/programming/software-development/threads/293271/heap-variables | CC-MAIN-2017-13 | en | refinedweb |
#include <lvt/Vec.h>
List of all members.
[inline]
Classifies the point p with respect to the plane.
Reverses the direction of the Plane's normal.
Returns the plane's normal vector.
Returns the parameter of the line segment from startp to endp of the intersection of the segment with the plane.
Returns the point on the ... | http://liblvt.sourceforge.net/doc/ref/class_l_v_t_1_1_plane.html | CC-MAIN-2017-13 | en | refinedweb |
Steve mentioned in his Hibernate 3.5.0 Beta2 blog entry briefly the Hibernate Static Metamodel Generator Annotation Processor. Time to have a closer look what this annotation processor actually does.
Typesafe Criteria API
Let's start with a look at one of the new features of JPA 2 - the type-safe Criteria API. The key ... | http://in.relation.to/12805.lace | CC-MAIN-2014-15 | en | refinedweb |
#include <Ifpack_ILU.h>
Inheritance diagram for Ifpack_ILU:
The Ifpack_ILU class computes a "Relaxed" ILU factorization with level k fill of a given Epetra_RowMatrix.
Please refer to General description of incomplete factorizations for a general description of the ILU algorithm.
The complete list of supported parameter... | http://trilinos.sandia.gov/packages/docs/r10.2/packages/ifpack/doc/html/classIfpack__ILU.html | CC-MAIN-2014-15 | en | refinedweb |
24 February 2010 10:00 [Source: ICIS news]
LONDON (ICIS news)--Shell Chemicals has declared forces majeures on ethylene (C2) and propylene (C3) at its Moerdijk, Netherlands, cracker due to reduced operations following a mechanical problem, a company spokesman said on Wednesday.
“Yesterday afternoon (Tuesday 23 February... | http://www.icis.com/Articles/2010/02/24/9337311/shell-declares-forces-majeures-on-moerdijk-ethylene-propylene.html | CC-MAIN-2014-15 | en | refinedweb |
"Milind Patil" <milind_patil at hotmail.com> writes: > Hi, > > I have used boost libraries to wrap a large c++ library and it has worked > very well. > > However, I stumbled on the issue of long long conversion to class problem. > The problem has been reduced to the minimum code below. > > I would like to expose to pyt... | https://mail.python.org/pipermail/cplusplus-sig/2003-May/003540.html | CC-MAIN-2014-15 | en | refinedweb |
<!-- $Id: install-murder.html,v 1.22 2007/02/07 18:58:07 murch Exp $ --> <HTML> <HEAD> <TITLE>Installing The Cyrus Murder </title> </head> <h1>Installing The Cyrus Murder </h1> <body> <b><i>Note that Cyrus Murder is still relatively young in the grand scheme of things, and if you choose to deploy you are doing so at yo... | http://opensource.apple.com/source/CyrusIMAP/CyrusIMAP-188/cyrus_imap/doc/install-murder.html | CC-MAIN-2014-15 | en | refinedweb |
/* crypto/bf/bf_loc_BF_LOCL_H #define HEADER_BF_LOCL_H #include <openssl/opensslconf.h> /* BF_PTR, BF_PTR2 */ #if defined(__GNUC__) && defined(__ppc__) /* alignment tolerant big-endian optimization */ #define n2l(c,l) { l= *((unsigned long *)c); c += 4; } #else /* little endian, etc. */ #define n2l(c,l) (l =((unsigned... | http://opensource.apple.com/source/libsecurity_apple_csp/libsecurity_apple_csp-36859/open_ssl/bf/bf_locl.h | CC-MAIN-2014-15 | en | refinedweb |
Hello, I have this project due today for class and I cant seem to get it compiled without errors, it gives me one error and its not specific enough for me to fix it on my own, so I am asking for help here. Here is the code, and what its "supposed" to do.
calculation as often as the user wishes. Define a function to co... | http://cboard.cprogramming.com/cplusplus-programming/70178-cplusplus-program-help-mpg-calculator.html | CC-MAIN-2014-15 | en | refinedweb |
THE SQL Server Blog Spot on the Web
The question in the title of this post is a popular one. There are many scenarios, where it is desirable to navigate to the member of the Time hierarchy which corresponds to the current day, month or year. Sometimes, there is a desire to set the default member to be aligned with the ... | http://sqlblog.com/blogs/mosha/archive/2007/05/23/how-to-get-the-today-s-date-in-mdx.aspx | CC-MAIN-2014-15 | en | refinedweb |
Currently, I create a HashMap with Object Id as key and 1 as value. And the method asks for Object/Id and checks if there is a matching key.
Is that ok? Or, ...
Hi Have a List of array, like
[[{x509Cert=x509cert.pem, accountNumber=652827, serviceProviderName=Sun, privateKey=pk, userName=0BS0Y72NBN, passWord=VuXYG4hZPS}... | http://www.java2s.com/Questions_And_Answers/Java-Collection/HashMap/list.htm | CC-MAIN-2014-15 | en | refinedweb |
Hey guys need some help on this program. I am simply trying to write a program that does the following....
There is an appliance store that is offering 1% (0.01) financing for 12 months on any purchase.
I need to use constants for the finance rate and number of months (which i think i got)
Have the user enter their pur... | http://www.javaprogrammingforums.com/%20whats-wrong-my-code/13606-pretty-basic-java-program-need-some-help-printingthethread.html | CC-MAIN-2014-15 | en | refinedweb |
// This program opens a text file and reads the contents of the text
// file, name of which is specified as a command-line argument
import java.io.*; public class ReadFile { public static void main(String[] args) throws IOException { int i; FileInputStream theFile; try { theFile = new FileInputStream(args[0]); } catch(... | http://www.javaprogrammingforums.com/whats-wrong-my-code/9468-try-catch-block-reports-have-error-i-dont-know-how-fix.html | CC-MAIN-2014-15 | en | refinedweb |
hi,
just wondering if someone could assist me modify this script to display a random amount of quotes?
i.e. sometimes it might return and display 2 quotes, then 1 quote, then maybe 3 quotes?
rather than it is now, 1 quote per time.
thanks!!!thanks!!!Code:
<script type="text/javascript">
<!--
//I. Array of banner that w... | http://www.webdeveloper.com/forum/printthread.php?t=271151&pp=15&page=1 | CC-MAIN-2014-15 | en | refinedweb |
Amesos2 adapter for the Tpetra::MultiVector class. More...
#include <Amesos2_TpetraMultiVecAdapter_decl.hpp>
Amesos2 adapter for the Tpetra::MultiVector class.
Initialize an adapter from a multi-vector RCP.
Copies the multivector's data into the user-provided vector.
Each vector of the multivector is placed
lda apart i... | http://trilinos.sandia.gov/packages/docs/r10.10/packages/amesos2/doc/html/classAmesos2_1_1MultiVecAdapter_3_01Tpetra_1_1MultiVector_3_01Scalar_00_01LocalOrdinal_00_01GlobalOrdinal_00_01Node_01_4_01_4.html | CC-MAIN-2014-15 | en | refinedweb |
*
using Objects and Classes to Add Students to Courses
Kd Martin
Ranch Hand
Joined: Nov 28, 2011
Posts: 58
posted
Nov 28, 2011 00:33:07
0
I have a few questions pertaining to this assignment I have. Firstly, I'm having some trouble figuring out how to add a student to a course and keep an index of the courses the stud... | http://www.coderanch.com/t/560014/java/java/Objects-Classes-Add-Students-Courses | CC-MAIN-2014-15 | en | refinedweb |
Making. The asynchronous call mechanism does not need any additional functionality for the web service to handle it competently. The decision on whether to call synchronously or asynchronously belongs to the client.
Currentlyice localhost.MyAsyncWebService webServ = new localhost.MyAsyncWebService(); // Return the resu... | http://www.oreillynet.com/lpt/a/6002 | CC-MAIN-2014-15 | en | refinedweb |
Connect a ARM Microcontroller to a FPGA using its Extended Memory Interface (EMI)
Contents
- 1 Summary
- 2 Introduction
- 3 The Processor
- 4 The FPGA
- 5 Make Linux work on the Phytec board.
- 6 User Software
- 7 C-source code of a User Program.
- 8 Bibliography
- 9 links to NXP and Phytec pages.</p>
- Supports mobile... | http://www.elinux.org/Connect_a_ARM_Microcontroller_to_a_FPGA_using_its_Extended_Memory_Interface_(EMI) | CC-MAIN-2015-32 | en | refinedweb |
Opened 5 years ago
Closed 5 years ago
Last modified 4 years ago
#14948 closed (fixed)
Broken routers in 1.2.4: type object 'ModelBase' has no attribute '_meta'
Description
There is a problem with using routers in the latest security release 1.2.4. The details are somewhat murky for a lay person but here's the gist of i... | https://code.djangoproject.com/ticket/14948 | CC-MAIN-2015-32 | en | refinedweb |
auto (C++
Deduces the type of a declared variable from its initialization expression.
The auto keyword directs the compiler to use the initialization expression of a declared variable, or lambda expression parameter, to deduce its type.
We recommend that you use the auto keyword for most situations—unless you really wa... | https://msdn.microsoft.com/en-us/library/dd293667.aspx | CC-MAIN-2015-32 | en | refinedweb |
DataMemberAttribute Class
When applied to the member of a type, specifies that the member is part of a data contract and is serializable by the DataContractSerializer.
System.Attribute
System.Runtime.Serialization.DataMemberAttribute
Namespace: System.Runtime.SerializationNamespace: System.Runtime.Serialization
Assembl... | https://msdn.microsoft.com/library/windows/apps/system.runtime.serialization.datamemberattribute(v=vs.95).aspx | CC-MAIN-2015-32 | en | refinedweb |
Hello all,
I'm working on a homework problem that's due this evening. The prob asks to create a toString method that returns a "nicely formatted, multi-line description" of the class objects I created. The class is called "Book" and its objects are title, author, publisher, and copyright date. My toString code trying t... | http://www.javaprogrammingforums.com/java-theory-questions/11065-using-%5Cn-escape-sequence-tostring-method.html | CC-MAIN-2015-32 | en | refinedweb |
#include <stdio.h>
int main(void) {
double nv = 2.0 / 3;
float foo = 2.0 / 3;
/* Need to do stuff here that ensures that
what follows below outputs "False True" */
if(foo == nv) printf("True ");
else printf("False ");
if(foo == (float)nv) printf("True\n");
else printf("False\n");
return 0;
}
[download]
#include <stdio.... | http://www.perlmonks.org/index.pl?node_id=781347 | CC-MAIN-2015-32 | en | refinedweb |
djangorestframework-httpsignature 0.1.8
HTTP Signature support for Django REST framework to your settings.py INSTALLED_APPS.
In your app code, extend the SignatureAuthentication class,. # ...
Roadmap
- Currently, the library only support HMAC SHA256 for signing.
- The REQUIREMENTS.txt file:
~$ SSS=Base64(Hmac(SECRET, "... | https://pypi.python.org/pypi/djangorestframework-httpsignature/0.1.8 | CC-MAIN-2015-32 | en | refinedweb |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.