text stringlengths 20 1.01M | url stringlengths 14 1.25k | dump stringlengths 9 15 ⌀ | lang stringclasses 4
values | source stringclasses 4
values |
|---|---|---|---|---|
ServiceStack is a light-weight, complete and independent open source web framework for .NET. I recently started playing with it and I must say that it is an awesome framework. It has several nice features including .NET’s fastest JSON serializer.
Each piece in ServiceStack can be used independently. So is its piece for... | https://dzone.com/articles/serializing-and-de-serializing | CC-MAIN-2017-22 | en | refinedweb |
The ScrollWindow widget manages one single child window and scrolls it when the child is larger than the available area. More...
#include <FXScrollWindow.h>
The ScrollWindow widget manages one single child window and scrolls it when the child is larger than the available area.
You can use ScrollWindow when parts of you... | http://fox-toolkit.org/ref/classFX_1_1FXScrollWindow.html | CC-MAIN-2017-22 | en | refinedweb |
3. Library calls (functions within program libraries)
ASPRINTFSection: Linux Programmer's Manual (3)
Updated: 2017-09-15
Index | Return to Main Contents
NAMEasprintf, vasprintf - print to allocated string
SYNOPSIS#define _GNU_SOURCE /* See feature_test_macros(7) */
#include <stdio.h>
int asprintf(char **strp, const cha... | https://eandata.com/linux/?chap=3&cmd=asprintf | CC-MAIN-2020-16 | en | refinedweb |
71 releases (31 breaking)
1,334 downloads per month
Used in 2 crates
22MB
294K SLoC
Rust OpenCV bindings
Experimental Rust bindings for OpenCV 3 and 4.
The API is usable but unstable and not very battle-tested; use at your own risk.
Quickstart
Make sure the supported OpenCV version (3.2, 3.4 or 4.2) is installed in you... | https://lib.rs/crates/opencv | CC-MAIN-2020-16 | en | refinedweb |
Type-Based Global Events in Vue.js
Type-Based Global Events in Vue.js
In this article, we discuss how to create type-based global events in Vue.js to better manage issues commonly seen in dynamically-typed languages.
Join the DZone community and get the full member experience.Join For Free
In one of the latest freelanc... | https://dzone.com/articles/type-based-global-events-in-vuejs | CC-MAIN-2020-16 | en | refinedweb |
The
numpy package (module) is used in almost all numerical computation using Python. It is a package that provide high-performance vector, matrix and higher-dimensional data structures for Python. It is implemented in C and Fortran so when calculations are vectorized (formulated with vectors and matrices), performance... | https://share.cocalc.com/share/d8d2faccf6f6373d5e0a57a2849cbf76273d673e/scientific-python-lectures/Lecture-2-Numpy.ipynb?viewer=share | CC-MAIN-2020-16 | en | refinedweb |
#include <GenerateRigidMass.h>
output: vector going from the mass center to the space origin
output: the inertia matrix of the mesh
input
Data Fieldskg * m^-3
must be convex
input: positions of the vertices
input: quads of the mesh
input: triangles of the mesh
output: mass of the mesh
output: the gravity center of the ... | https://www.sofa-framework.org/api/master/sofa/html/classsofa_1_1component_1_1engine_1_1_generate_rigid_mass.html | CC-MAIN-2020-16 | en | refinedweb |
From: Matthias Schabel (boost_at_[hidden])
Date: 2007-03-29 16:50:02
> Hmm. I still don't understand the rationale for the extra
> multiplication
> operation. How is this any different from:
>
> quantity<SI::meter> q(2);
It's a faux operation - the multiplication of a scalar times a unit
(a class with no data members a... | https://lists.boost.org/Archives/boost/2007/03/119061.php | CC-MAIN-2020-16 | en | refinedweb |
Talk:Code Completion Design
Contents
- 1 Should be added to the article page soon
- 2 Parseth meet as follow:
clear m_Str
just clear the m_strbecause the parser believe the token has been recognized correctly . e.g. int a;
delete . ->
skip the tokens until it meet ; or } e.g. delete p; e.g. MyClass .fun(); e.g. MyClass... | http://wiki.codeblocks.org/index.php?title=Talk:Code_Completion_Design&oldid=5978 | CC-MAIN-2020-16 | en | refinedweb |
Kaggle What's cooking competition
5/Nov 20185/Nov 2018
Solving Kaggle’s amazing What’s cooking competition using simple Bag of Words model and coding it by hands, without usage of any machine learning library.
Kaggle’s What’s cooking competition is about guessing cousine by provided ingredients of the recipe. Train and... | http://iryndin.net/post/kaggle-whats-cooking/ | CC-MAIN-2019-30 | en | refinedweb |
DISCLAIMER
No maintenance on this package anymore. Prefer to use build_value
Documentation aren't aligned with last version.
Serialize and Deserialize Dart Object with reflectable or codegen
import 'package:serializer/serializer_reflectable.dart'; @serializable class MyModel { String name; //constructor need to be with... | https://pub.dev/packages/serializer | CC-MAIN-2019-30 | en | refinedweb |
{-# LANGUAGE Trustworthy #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE DeriveDataTypeable, DeriveGeneric, GADTs, RecordWildCards #-} {-# OPTIONS_GHC -funbox-strict-fields #-} -- | -- Module : Criterion.Types -- Copyright : (c) 2009-2014 Bryan O'Sullivan -- -- License : BSD-style -- Maintainer : bos@serpentine.com -- Sta... | http://hackage.haskell.org/package/criterion-1.2.0.0/docs/src/Criterion-Types.html | CC-MAIN-2019-30 | en | refinedweb |
I am trying to use pytorch with tensorboard and I run the tensorboard server with the following command:
tensorboard --logdir=./runs/
Now I am just simulating some fake data as follows:
import numpy as np import time from torch.utils.tensorboard import SummaryWriter train_writer = SummaryWriter(log_dir="./runs/train/")... | https://discuss.pytorch.org/t/pytorch-and-tensorboard-logging/49729 | CC-MAIN-2019-30 | en | refinedweb |
Asked by:
best obfuscator
Question
All replies
Hi
I use Eziriz's .Net Reactor. Of course as you said they all claim that they're the best, but beside it's power and simplicity of use, Reactor is really cheap (Only about 160$) so it's not a big risk to test it; although I would advise you to use it for everything of it,... | https://social.msdn.microsoft.com/Forums/vstudio/en-US/4eb99036-68b2-4567-aac1-170f8e570122/best-obfuscator?forum=csharpgeneral | CC-MAIN-2019-30 | en | refinedweb |
In this tutorial, you will learn in depth about C++ constructors and its types with examples.
C++ programming constructors
C++ constructors are special member functions which are created when the object is created or defined and its task is to initialize the object of its class. It is called constructor because it cons... | http://www.trytoprogram.com/cplusplus-programming/constructors | CC-MAIN-2019-30 | en | refinedweb |
I'm trying that ...
Hello everyone,
I'm trying this test ... i2cset isn't compiled using "mode i" option ... i2c block ...
# i2cdetect -y 0
works fine and give the correct i2c bus adress of the LCD -> 0x27
so i've done
# i2cset -y 0 0x27 0x08 0x08 turn on the backlight # i2cset -y 0 0x27 0x08 0x00 turn off the backligh... | https://community.onion.io/topic/270/i-m-trying-that/4 | CC-MAIN-2019-30 | en | refinedweb |
Simple data types of the kind we saw in the previous section are fine for storing single data items, but data is often more complex. Like JavaScript, Java supports arrays as well. Here's an example. In this case, I'll store the balances in customers' charge accounts in an array named chargesDue. I start by declaring th... | https://www.oreilly.com/library/view/real-world-xml/0735712867/0735712867_ch10lev1sec12.html | CC-MAIN-2019-30 | en | refinedweb |
Provided by: libexplain-dev_1.4.D001-8_amd64
NAME
explain_truncate_or_die - truncate a file and report errors
SYNOPSIS
#include <libexplain/truncate.h> void explain_truncate_or_die(const char *pathname, long long length);
DESCRIPTION.
SEE ALSO
truncate(2) truncate a file to a specified length explain_truncate(3) explai... | http://manpages.ubuntu.com/manpages/disco/man3/explain_truncate_or_die.3.html | CC-MAIN-2019-30 | en | refinedweb |
SPSite.OpenWeb method (String)
Returns the Web site that is located at the specified server-relative or site-relative URL.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration Public Function OpenWeb ( _ strUrl As String _ ) As SPWeb 'Usage Dim instance As SPS... | https://docs.microsoft.com/en-us/previous-versions/office/sharepoint-server/ms474633%28v%3Doffice.15%29 | CC-MAIN-2019-30 | en | refinedweb |
Parameterized Test Example in .NET Core Using NUnit
Parameterized Test Example in .NET Core Using NUnit
A lot of times when writing unit tests we end up with a lot test methods that look the same and actually do the same thing. Read on for a better way
Join the DZone community and get the full member experience.Join Fo... | https://dzone.com/articles/parameterized-test-example-in-the-net-core-using-n?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev | CC-MAIN-2019-30 | en | refinedweb |
I’d like to start using Cosmos, and I’ve have a bunch of questions about it – how to create databases, how to write to it and read from it, how can I use attachments and spatial data, how can I secure it, how can I test the code that uses it…and lots more. So I’m going to write a few posts over the coming weeks which h... | https://jeremylindsayni.wordpress.com/2019/02/25/getting-started-with-azure-cosmos-db-and-net-core-part-1-installing-the-cosmos-emulator/ | CC-MAIN-2019-30 | en | refinedweb |
A class in a blue print/user defined datatype in java that describes the behavior/state that the object of its type support.
public class Student { String name "Krishna"; int age = 20; void greet() { System.out.println("Hello how are you"); } }
An object is an instance of a class created from it using the new keyword. ... | https://www.tutorialspoint.com/what-is-the-difference-between-object-and-reference-in-java | CC-MAIN-2021-17 | en | refinedweb |
:dromedary_camel: Laravel log viewer
Log Viewer for Laravel 5, 6, 7 & 8 (still
bash composer require rap2hpoutre/laravel-log-viewer
Add Service Provider to
config/app.phpin
providerssection
php Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider::class,
Add a route in your web routes file:
php Route::get('logs... | https://xscode.com/rap2hpoutre/laravel-log-viewer | CC-MAIN-2021-17 | en | refinedweb |
public class Serializer extends Object
The Serializer can perform better than
ObjectOutputStream and
DataOutputStream, with respect to encoding primary types, because it
uses a more compact format (containing no BlockHeader) and simpler call stack
involving
BigEndianCodec, as compared to using an OutputStream
wrapper o... | https://docs.liferay.com/dxp/digital-enterprise/7.0-latest/javadocs/portal-kernel/com/liferay/portal/kernel/io/Serializer.html | CC-MAIN-2021-17 | en | refinedweb |
#include <math.h>
These functions round
x to the nearest integer value
that is not larger in magnitude than
x.
These functions return the rounded integer value, in floating format.
If
x is integral,
infinite, or NaN,
x
itself is returned.
For an explanation of the terms used in this section, see attributes(7).
The inte... | http://manpages.courier-mta.org/htmlman3/trunc.3.html | CC-MAIN-2021-17 | en | refinedweb |
The header <memory> has the following additions:
namespace std { template <class T> pair<T*, ptrdiff_t> get_temporary_buffer(ptrdiff_t n) noexcept; template <class T> void return_temporary_buffer(T* p); } ([basic.align]). ]
template <class T> void return_temporary_buffer(T* p); | https://timsong-cpp.github.io/cppwp/n4659/depr.temporary.buffer | CC-MAIN-2021-17 | en | refinedweb |
Allen Downey
This notebook contains a solution to a problem I posed in my Bayesian statistics class: time between goals is exponential with parameter $\lambda$, the goal scoring rate. In this case we are given as data the inter-arrival time of the first two goals, 11 minutes and 12 minutes. We can define a new class th... | https://nbviewer.jupyter.org/github/AllenDowney/ThinkBayes2/blob/master/examples/soccer_soln.ipynb | CC-MAIN-2021-10 | en | refinedweb |
Add a Service
LB4 has the package @loopback/proxy-server that contains the artifacts needed to implement the link between the methods described in the .json file and the Node.js methods. All we need to do is to write the service provider that will serve as the glue to make this implementation real.
Installing the proxy... | https://loopback.io/doc/en/lb4/soap-calculator-tutorial-add-service.html | CC-MAIN-2021-10 | en | refinedweb |
Finally, I got my hands on a RaspberryPi 4 (4GB Edition) and I thought I'd write up a post on how to flash your Raspberry Pi with Raspbian OS and installing Rancher's Lightweight Kubernetes Distribution, K3S
This post is a quick run down on how I wanted to experiment with K3S (single node) on a Rpi4 and test out Traefi... | https://sysadmins.co.za/running-k3s-on-the-raspberrypi-4/ | CC-MAIN-2021-10 | en | refinedweb |
Puppet is an open-source configuration management tool. In this tutorial we have provided most frequently asked Puppet Interview Questions & Answers:
In the current agile development environment, developers integrate their code multiple times in a day and work extra hours to deliver their tasks.
Operations teams work a... | https://www.softwaretestinghelp.com/puppet-interview-questions/ | CC-MAIN-2021-10 | en | refinedweb |
- Introduction
- Configuring environments
- Defining environments
- Configuring manual deployments
- Configuring dynamic environments
- Configuring Kubernetes deployments
- Deployment safety
- Complete example
- Protected environments
- Working with environments
- Viewing environments and deployments
- Viewing deployme... | https://docs.gitlab.com/13.7/ee/ci/environments/ | CC-MAIN-2021-10 | en | refinedweb |
/* Window creation, deletion and examination for GNU Emacs.
Does not include redisplay.
Copyright (C) 1985, 86, 87, 93, 94, 95"
Lisp_Object Qwindowp, Qwindow_live_p;
Lisp_Object Fnext_window (), Fdelete_window (), Fselect_window ();
Lisp_Object Fset_window_buffer (), Fsplit_window (), Frecenter ();
void delete_all_subw... | https://emba.gnu.org/emacs/emacs/-/blame/2c6638cde6fb5dfc717f451fd8c84a822878b738/src/window.c | CC-MAIN-2021-10 | en | refinedweb |
# goes here
b0 = np.linspace(0, 50, 101);
b1 = np.linspace(-1, 1, 101);
from itertools import product hypos = product(b0, b1)
suite = Logistic(hypos);
for data in zip(df.Temperature, df.Incident): print(data) suite.Update(data) goes here
# Solution goes here
Implement this model using MCMC. As a starting place, you ca... | https://nbviewer.jupyter.org/github/AllenDowney/ThinkBayes2/blob/master/examples/shuttle.ipynb | CC-MAIN-2021-10 | en | refinedweb |
PROBLEM LINK:
Setter- Erfan Alimohammadi
Tester- Roman Bilyi
Editorialist- Abhishek Pandey
DIFFICULTY:
EASY
PRE-REQUISITES:
Binary Search, Two Pointers
PROBLEM:
Given an array A of size N, find number of ways to delete a non-empty subarray from it so that the remaining part of A is strictly increasing.
QUICK-EXPLANATIO... | https://discuss.codechef.com/t/delarray-editorial/32453 | CC-MAIN-2021-10 | en | refinedweb |
ane-device-file-util is a native extension that allows an application to open files with registered application on iOS (e.g Dropbox). Using the extension an application can provide the user with a link or button to open a file, such as a PDF. When the user clicks that button a native system dialog shows a list of appli... | http://www.as3gamegears.com/air-native-extension/ane-device-file-util/ | CC-MAIN-2019-04 | en | refinedweb |
Pampy: Pattern Matching for PythonPampy: Pattern Matching for Python
Pampy is pretty small (150 lines), reasonably fast, and often makes your code more readable, and easier to reason about.
You can write many patternsYou can write many patterns
Patterns are evaluated in the order they appear.
You can write FibonacciYou... | https://pythondigest.ru/view/38431/ | CC-MAIN-2019-04 | en | refinedweb |
Opened 5 years ago
Closed 5 years ago
Last modified 5 years ago
#22047 closed Bug (fixed)
Cannot resolve keyword u'group_ptr' into field. Choices are: group, id, name, permissions, user
Description
I recently tried to upgrade from 1.5.1 to 1.6.2 and am now getting this error for inherited many to many relationships.
Tr... | https://code.djangoproject.com/ticket/22047 | CC-MAIN-2019-04 | en | refinedweb |
WMI related performance issues may arise due to extensive usage of WMI components. You can increase the value of following properties to its maximum. Restart may be required after applying the following settings.
- Run cmd.exe as admin
- Type wbemtest.exe and run
- Click Connect.
- In the namespace text box type "root"... | https://blogs.technet.microsoft.com/bulentozkir/2014/01/14/increase-wmi-quota-properties-to-maximum-values/ | CC-MAIN-2019-04 | en | refinedweb |
, most existing enterprise back-end systems provide a SOAP-based web service application programming interface (API) or proprietary file-based interfaces. In this article series we will discuss how Oracle Service Bus (OSB) 12c can be used to transform these enterprise system interfaces into a mobile-optimized REST-JSON... | https://www.ateam-oracle.com/creating-a-mobile-optimized-rest-api-using-oracle-service-bus-part-4 | CC-MAIN-2020-45 | en | refinedweb |
Bug #10552
Partitionable glideins not accounted for correctly - not accounted for at all
0%
Description
This is a follow-up of issue #6897 that did not solve the problem.
Mats pointed out that the problem was not resolved and helped to identify it better:
1. the names in condor_status/Name include the partition id (e.g... | https://cdcvs.fnal.gov/redmine/issues/10552 | CC-MAIN-2020-29 | en | refinedweb |
Introduction to Templates in C++
When it comes to powerful features in any programming language C++ is considered as the first priority. Templates are the example of powerful C++ feature. It’s a code written in a way to make it independent of the data type. The template is a formula for creating generic functions or cl... | https://www.educba.com/templates-in-c-plus-plus/ | CC-MAIN-2020-29 | en | refinedweb |
activity_recognition_alt 0.1.7
activity.
Flutter Integration #
import 'package:activity_recognition/activity_recognition.dart'; ActivityRecognition.activityUpdates()
Flutter help #
For help getting started with Flutter, view our online documentation.
For help on editing plugin code, view the documentation.
0.1.4 #
- Up... | https://pub.dev/packages/activity_recognition_alt | CC-MAIN-2020-29 | en | refinedweb |
import "net/smtp":
//) }
SendMail connects to the server at addr, switches to TLS if possible, authenticates with the optional mechanism a if possible, and then sends an email from address from, to addresses to, with message msg. net/smtp package are low-level mechanisms and provide no support for DKIM signing, MIME at... | https://godoc.org/net/smtp | CC-MAIN-2020-29 | en | refinedweb |
Icon Sub-Sets 2 comments
GTK2 Themes 6 comments
# Panel customization
include "panel.rc"
and fix:
# Panel customization
#include "panel.rc"
Good luck ! - Dec 08 2008
Start ccsm (CompizConfig Setting Manager):
- Check to select "Opacity, Brightness and Saturation"
- In tab "Opacity", click "New" button below
- Set "Opac... | https://www.pling.com/u/liquidgik/ | CC-MAIN-2020-29 | en | refinedweb |
State space model for a smooth seasonal effect.
Inherits From:
LinearGaussianStateSpaceModel
tfp.sts.SmoothSeasonalStateSpaceModel( num_timesteps, period, frequency_multipliers, drift.
A smooth seasonal effect model is a special case of a linear Gaussian SSM. It is the sum of a set of "cyclic" components, with one comp... | https://www.tensorflow.org/probability/api_docs/python/tfp/sts/SmoothSeasonalStateSpaceModel | CC-MAIN-2020-29 | en | refinedweb |
Tagging is the act of putting labels on objects. There is 1:n relation, meaning one object can have many labels applied to it.
Traditional systems that implement tags are usually backed with a “set” data structure: an unordered/unindexed collection. The key is the value. E.g:
Prod, Dev, CC127638, Finance
Immediate limi... | https://practicaldev-herokuapp-com.global.ssl.fastly.net/kraltwo/designing-your-oci-data-centre-on-the-tagging-options-1cb0 | CC-MAIN-2020-29 | en | refinedweb |
Best Fit Program In C++
Best Fit Program in C Plus Plus. The most common types of algorithms used for this purpose are, best fit, first fit, worst fit, and nest fit.
In the case of best fit memory allocation algorithm, the CPU allocates the memory block that best suits the demanded amount. For this, the CPU searches th... | https://prepinsta.com/operating-systems/page-replacement-algorithms/best-fit/best-fit-in-c-plus-plus/ | CC-MAIN-2022-21 | en | refinedweb |
smpp_realloc
Last updated March 2020
Name
smpp_realloc — Free message (*mem), and realloc new memtype_smpp memory
Synopsis
#include "modules/mobility/smpp/smpp_util.h"
void * **smpp_realloc** ( | mem, | |
| | size
); | |
Description
**Configuration Change. ** This feature is available starting from Momentum 3.2.
Free t... | https://support.sparkpost.com/momentum/3/3-api/apis-smpp-realloc | CC-MAIN-2022-21 | en | refinedweb |
Python is a very versatile piece of software. It offers many choices for Web applications and can be used in thousands of third party modules. Python is also an effective tool for regression analysis.
I think that machine learning, data mining, chemometrics and statistics are not the same thing but there are aspects th... | https://www.opensourceforu.com/2016/12/introduction-regression-models-python/ | CC-MAIN-2022-21 | en | refinedweb |
Targeting multiple tiles¶
In the previous example, the code targeted only a
single tile. Most real applications will instead target two or more tiles. It is
not possible to target multiple tiles using a single C application as the tiles
are complete, separate processors. Instead each tile runs its own application,
and ... | https://www.xmos.ai/documentation/XM-014363-PC-4/html/tools-guide/quick-start/multi-tile.html | CC-MAIN-2022-21 | en | refinedweb |
Get information about a file or directory, given a path
#include <sys/stat.h> int stat( const char * path, struct stat * buf ); int stat64( const char * path, struct stat64 * buf );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The stat() and stat64() func... | http://www.qnx.com/developers/docs/6.4.1/neutrino/lib_ref/s/stat.html | CC-MAIN-2022-21 | en | refinedweb |
Static Forms Pages Plugin
The Static Forms Pages Plugin intercepts all form submissions made which have the
data-static-form-name attribute set. This allows you to take action on these form submissions by, for example, saving the submission to KV.
Installation
npm install @cloudflare/pages-plugin-static-forms
Usage
fun... | https://developers.cloudflare.com/pages/platform/functions/plugins/static-forms/ | CC-MAIN-2022-21 | en | refinedweb |
:
- 0:f519dff5c6a7
- Child:
- 1:cc428f427838
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/AltBeaconService.h Tue Feb 03 18:23:07 2015 +0000 @@ -0,0 +1,69 @@ +/* mbed Microcontroller Library + * Copyright (c) 2006 __BLE_IBEACON_SERVICE_H__ +#define __BLE_IBEACON_SERVICE_H__ + +#include "BLEDevice.h" + +/** +* @cla... | https://os.mbed.com/teams/Bluetooth-Low-Energy/code/BLE_AltBeacon/diff/f519dff5c6a7/AltBeaconService.h/ | CC-MAIN-2022-21 | en | refinedweb |
Hey all,
I have been busy building my own chess game and as of now im a bit stomped.
Well you see i have an object Board, this object will be initiated and it will create a new frame with various panels one of them being the panel which holds the squares of the board, inside that panel i create a grid of panels, with p... | https://www.daniweb.com/programming/software-development/threads/418508/object-instances-of-frames-with-methods-trouble | CC-MAIN-2022-21 | en | refinedweb |
I have todays nightly build downloaded onto my computer and the command window for the system keeps saying:
Traceback (most recent call last):
File “”, line 1, in
File “C:/Users/salewis/AppData/Roaming/NA-MIC/Extensions-26293/Chest_Imaging_Platform/lib/Slicer-4.7/qt-scripted-modules/CIP_LesionModel.py”, line 17, in
fro... | https://discourse.slicer.org/t/strange-occurances-on-load-and-timeout/914 | CC-MAIN-2022-21 | en | refinedweb |
:
<fx:Style> @namespace mx "library://ns.adobe.com/flex/mx" mx|Application { backgroundImage: Embed(source="Assets.swf", symbol='Logo') }
borderMetrics:EdgeMetrics[alleen-lezen]
Returns an EdgeMetrics object for the border that has four properties:
left,
top,
right,
and
bottom.
The value of each property is equal to t... | https://help.adobe.com/nl_NL/FlashPlatform/reference/actionscript/3/mx/core/SpriteAsset.html | CC-MAIN-2022-21 | en | refinedweb |
Benders Decomposition using CallbackOngoing
Hi,
We are trying to implement Benders Decomposition for a Fixed charge facility location-allocation problem given in Daskin.
We have decomposed the problem into master and sub problems and then tried to insert the capacity constraint as a Lazycut using MIPSOL. It is working ... | https://support.gurobi.com/hc/en-us/community/posts/4415191730321-Benders-Decomposition-using-Callback?page=1#community_comment_4415701298321 | CC-MAIN-2022-21 | en | refinedweb |
Because OAuth 2 has emerged as the industry standard for social applications and third-party authentication. As a result, you may concentrate on learning and implementing it to support many social authentication providers. The standard OAuth 2 providers include Facebook, Google, GitHub and, Twitter.
Authentication is t... | https://www.codeunderscored.com/django-authentication-with-twitter/ | CC-MAIN-2022-21 | en | refinedweb |
Extensible Markup Language (XML) is a text format increasingly used for a wide variety of storage and transport requirements. Parsing and processing XML is an important element of many text processing applications. This section discusses the most common techniques for dealing with XML in Python. While XML held an initi... | https://etutorials.org/Programming/Python.+Text+processing/Chapter+5.+Internet+Tools+and+Techniques/5.4+Understanding+XML/ | CC-MAIN-2022-21 | en | refinedweb |
.
19.7.1 ctx); public boolean handleResponse(MessageContext ctx); public boolean handleFault(MessageContext ctx); public void init(HandlerInfo hi); public void destory( ); public QName [] getHeaders( ); }
WebLogic invokes the init( ) method to create an instance of the Handler object, and invokes the destroy( ) method ... | https://flylib.com/books/en/2.107.1/soap_message_handlers.html | CC-MAIN-2022-21 | en | refinedweb |
VERSIONversion 1.030002
SYNOPSIS
# in MyApp/ParsedAttribute/URI.pm
package MyApp::ParsedAttribute::URI;
use Moose;
use namespace::autoclean;
use URI;
with 'MongoDBx::Class::ParsedAttribute';
sub expand {
my ($self, $uri_text) = @_;
return URI->new($uri_text);
}
sub collapse {
my ($self, $uri_obj) = @_;
return $uri_obj-... | https://manpages.org/mongodbxclassparsedattribute/3 | CC-MAIN-2022-21 | en | refinedweb |
I posted a bit about DirectInk and the notion of wet/dry ink back in this post and one of the things that I was really interested in from //Build was the notion that there were some additional capabilities here in inking in the upcoming Windows Anniversary Update.
This is talked about in the excellent inking session he... | https://mtaulty.com/2016/06/21/windows-10-anniversary-update-more-on-inking-with-wet-ink/ | CC-MAIN-2022-21 | en | refinedweb |
Hello,
I'm trying to use the Windows::Security::Authentication::OnlineId namespace in order to get the user's unique id.
The ticket request used to authenticate the user is:
auto ticket = ref new OnlineIdServiceTicketRequest("wl.signin wl.basic", "DELEGATION");
auto pSignInHandler = auth->AuthenticateUserAsync(ticket);... | https://social.msdn.microsoft.com/Forums/en-US/0698ea15-af72-4c85-a897-b1c2793df8f8/how-to-get-the-users-microsoft-live-id?forum=winappswithnativecode | CC-MAIN-2022-21 | en | refinedweb |
48080/how-to-do-line-continuation-in-python
You can use '\n' for a next ...READ MORE
connect mysql database with python
import MySQLdb
db = ...READ MORE
readline function help to read line in ...READ MORE
If you only have one reference to ...READ MORE
The simple way of doing this will ...READ MORE
def matmult(a,b):
zip... | https://www.edureka.co/community/48080/how-to-do-line-continuation-in-python | CC-MAIN-2022-21 | en | refinedweb |
> DTMS.rar > DODELETE.C
#include "mail.h" /* Delete the current record specified by the mail structure. * This function is called by mail_delete() and mail_store(), * after the record has been located by _mail_find(). */ int _mail_dodelete(MAIL *mail) { int i; char *ptr; off_t freeptr, saveptr; /* Set data buffer to a... | http://read.pudn.com/downloads12/sourcecode/unix_linux/50527/DTMS/DODELETE.C__.htm | crawl-002 | en | refinedweb |
> MailAccess.rar > Exceptions.POP3 *Function: exceptions *Author: Hamid Qureshi *Created: 2003/8 *Modified: 3 May 2004 0200 GMT+5 by Hamid Qureshi *Description: *Changes: 2004/4/2 21:25 GMT+8 by Unruled Boy * 1.added PopServerLockException * 3 May 2004 0200 GMT+5 by Hamid Qureshi * 1.Adding NDoc Comments */ using Syst... | http://read.pudn.com/downloads54/sourcecode/windows/csharp/187217/MailAccess/OpenPOP/POP3/Exceptions.cs__.htm | crawl-002 | en | refinedweb |
Validation
Validating Domain ClassesGrails allows you to apply constraints to a domain class that can then be used to validate a domain class instance. Constraints are applied using a "constraints" closure which uses the Groovy builder syntax to configure constraints against each property name, for example:
Note that a... | http://www.grails.org/Validation | crawl-002 | en | refinedweb |
«
March 2003 |
»
Main
«
| May 2003
»
Wednesday 30 April 2003
Bob (you may or may not know Bob) sent along two interesting links.
How to bow is an entertaining
introduction to the complexities of Japanese business manners.
And I'm not sure what to make of this:
ASP.NET pages in 80386 assembler.
Yow.
Michael Tsai draws a... | http://nedbatchelder.com/blog/200304.html | crawl-002 | en | refinedweb |
Docutils, the canonical library for processing and munging reStructuredText, is mostly used in an end-to-end mode where HTML or other user-consumable formats are produced from input reST files. However, sometimes it's useful to develop tooling that works on reST input directly and does something non-standard. In this c... | https://eli.thegreenplace.net/2017/a-brief-tutorial-on-parsing-restructuredtext-rest/ | CC-MAIN-2018-34 | en | refinedweb |
I am working a project that has several different controls that I am trying to use an attached property to dictate whether or not to perform a recalculation operation if changed. I am using what I thought was the standard pattern for the creating of
an AP.
public class RecalcProperty : DependencyObject
{
public static ... | http://www.dotnetspark.com/links/62728-attached-property.aspx | CC-MAIN-2017-04 | en | refinedweb |
public class CacheConfig extends Object implements Cloneable
Java Beans-style configuration for a
CachingHttpClient. Any class
in the caching module that has configuration options should take a
CacheConfig argument in one of its constructors. A
CacheConfig instance has sane and conservative defaults, so the
easiest way... | http://hc.apache.org/httpcomponents-client-ga/httpclient-cache/apidocs/org/apache/http/impl/client/cache/CacheConfig.html | CC-MAIN-2017-04 | en | refinedweb |
Recently.
Java program to calculate sum of digits in a number
By the way, you can also use this example to learn Recursion in Java. It’s a tricky concept, and examples like this, certainly helps to understand and apply recursion better.
/** * Java program to calculate sum of digits for a number using recursion and iter... | http://javarevisited.blogspot.com/2013/05/java-program-to-find-sum-of-digits-in-number-recursion.html?showComment=1375207441580 | CC-MAIN-2017-04 | en | refinedweb |
..., class T3> calculated-result-type ibeta_derivative(T1 a, T2 b, T3 x); template <class T1, class T2, class T3, class Policy> calculated-result-type ibeta_derivative(T1 a, T2 b, T3 x, const Policy&); }} // namespaces
This function finds some uses in statistical distributions: it computes the partial derivative with r... | http://www.boost.org/doc/libs/1_50_0/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_beta/beta_derivative.html | CC-MAIN-2017-04 | en | refinedweb |
Posted 05 Apr 2015
Link to this post
If you create method with same name as some Base Static Class, and you call base static class from within same class where you have this method.
JustDecompiler fails to properly decompile.
original code:
class MethodAsBaseClassName
{
public bool Convert(object a)
return (bool)System... | http://www.telerik.com/forums/bug-method-and-base-static-class-with-same-name | CC-MAIN-2017-04 | en | refinedweb |
See .
Hello Justin - I've been digging into Vibrate and Battery, since they seemed similar to adding in lights, though I've also been looking at radio and audio. The two paths seem to be: Add Lights into the HAL. This is done by adding functionality into the hal/gonk and then calling the hal_impl version from Hal.cpp. ... | https://bugzilla.mozilla.org/show_bug.cgi?id=712378 | CC-MAIN-2017-04 | en | refinedweb |
Daemon.daemon threads always runs as background thread. Daemon threads are typically used to perform services for your application/applet. the core difference between user threads and daemon threads is that the JVM will only shut down a program when all user threads have terminated. Daemon threads are terminated by the... | https://www.mindstick.com/interview/1785/what-is-daemon-thread-in-java | CC-MAIN-2017-04 | en | refinedweb |
Synopsis edit
-
- auto cmd ...
-
- knar body
-
- knit name arguments ?process? body
-
- knead arguments ?process? body
-
- util auto varnames script
Download editknit is also available as ycl::knit::knit, along with unit tests.
Description editknit is useful for those times that you want something like eval, but with t... | http://wiki.tcl.tk/40693 | CC-MAIN-2017-04 | en | refinedweb |
Improving JSF Security Configuration With Secured Managed Beans
By edort on Oct 01, 2007
Java EE allows you to protect web resources through declarative security, but this approach does not allow you to protect local beans used by servlets and JavaServer Pages (JSPs). Also, although you can protect JavaServer Faces tec... | https://blogs.oracle.com/enterprisetechtips/entry/improving_jsf_security_configuration_with | CC-MAIN-2017-04 | en | refinedweb |
I have a class like this:
class C(object):
a = 5
def __iadd__(self, other):
self.a += other
b = C()
b += 7
You forgot to return
self from the
__iadd__ method:
def __iadd__(self, other): self.a += other return self
From the
object.__iadd__() documentation:
These methods should attempt to do the operation in-place (modif... | https://codedump.io/share/YzFihQstK5wQ/1/how-do-i-make-quotx--5quot-with-x-a-custom-class-add-to-a-property-of-x | CC-MAIN-2017-04 | en | refinedweb |
We know it's a leap year if it's divisible by four and, if it's a century year, it's divisible by 400. I thought I would need two If Statements like this:
def isLeap(n):
if n % 100 == 0 and n % 400 == 0:
return True
if n % 4 == 0:
return True
else:
return False
# Below is a set of tests so you can check if the code is ... | https://codedump.io/share/pBcIud1YmwHT/1/determining-leap-years | CC-MAIN-2017-04 | en | refinedweb |
<Andy_Carr@tertio.com> asked
> I have written an XML schema (that makes use of the standard XML
Schema
> definitions) but am having zero success in getting the parser to find
my
> schema definition file.
>
> The top of my XML file looks like:
>
> <?xml version="1.0" ?>
> <GMI xmlns="">
> <ServiceTag>CSO</ServiceTag>
> ... | http://mail-archives.apache.org/mod_mbox/xml-general/200009.mbox/%3C002e01c01825$9673c540$38a3f1ce@mitretek.org%3E | CC-MAIN-2017-04 | en | refinedweb |
HOME HELP PREFERENCES
SearchSubjectsFromDates
thanks for your suggestions. Actually let me more specific
about the trechnical issue here:
I have chemistry HTML tutorial I wish to include in a collection for the
School. There are
example text files which are linked to the nain files via URL. I wish to
include these
in t... | http://www.nzdl.org/gsdlmod?e=d-00000-00---off-0gsarch--00-0----0-10-0---0---0direct-10---4-------0-1l--11-en-50---20-about---00-0-1-00-0--4----0-0-11-10-0utfZz-8-00&a=d&d=000c01c25436$ede266c0$0801febf-tlclinux-org | CC-MAIN-2017-04 | en | refinedweb |
Get-DfsnAccess
Applies To: Windows 10 Technical Preview, Windows Server Technical Preview
Get-DfsnAccess
Syntax
Detailed Description
The Get-DfsnAccess cmdlet gets account names and access types for users and groups that have permissions for a Distributed File System (DFS) namespace folder. You can use the Grant-DfsnAc... | https://technet.microsoft.com/en-us/library/jj884269.aspx | CC-MAIN-2017-04 | en | refinedweb |
This action might not be possible to undo. Are you sure you want to continue?
Objectives
Declare and create arrays of primitive, class or array types How to initialize the elements of an array No of elements in the array Create a multi-dimensional array Write code to copy array values from one array type to another
Dec... | https://www.scribd.com/presentation/491860/BasicJava3 | CC-MAIN-2017-04 | en | refinedweb |
illustrated with the following example:
import akka.event.japi.LookupEventBus;));oting);
Default Handlers
Upon start-up the actor system creates and subscribes actors to the event
stream for logging: these are the handlers which are configured for example in
application.conf:
akka { loggers = [. | http://doc.akka.io/docs/akka/2.3.15/java/event-bus.html | CC-MAIN-2017-04 | en | refinedweb |
Smart Dog Kennel Containment Electric Fence Wires Pet Training Products KD-660
US $9.5-35.0 / Piece
1 Piece (Min. Order)
Portable folding Dog House Cat and dog winter bed
US $4.55-4.8 / Piece | Buy Now
30 Pieces (Min. Order)
High quality wholesale low price large outdoor fence dog kennel/wireless dog fence for sale
US ... | http://www.alibaba.com/countrysearch/CN/cage-dog-training.html | CC-MAIN-2017-04 | en | refinedweb |
On Thu, 19 Jul 2007 13:25:07 -0700 (PDT)Linus Torvalds <torvalds@linux-foundation.org> wrote:> > > On Thu, 19 Jul 2007, Linus Torvalds wrote:> > > > A better patch should be the appended. Does that work for you too?> > Btw, I already committed this as obvious. > > I did the same for the SLAB __do_kmalloc() thing. Let's... | http://lkml.org/lkml/2007/7/23/439 | CC-MAIN-2017-04 | en | refinedweb |
This Tutorial is most relevant to Sencha Touch, 1.x.
Sencha Touch allows you to create applications that work on both mobile phone and tablet devices, as well as use layouts that cater to different screen sizes. In addition to the display differences between types of devices, users also have certain expectations about ... | http://www.sencha.com/learn/idiomatic-layouts-with-sencha-touch | CC-MAIN-2014-10 | en | refinedweb |
cpython_sandbox / Doc / library / socket.rst
:mod:`socket` --- Low-level networking interface
This :func:`.socket` function returns a :dfn:`socket object` whose methods implement the various socket system calls. Parameter types are somewhat higher-level than in the C interface: as with :meth:`read` and :meth:`write` op... | https://bitbucket.org/ncoghlan/cpython_sandbox/src/ae7fef62b462/Doc/library/socket.rst | CC-MAIN-2014-10 | en | refinedweb |
Archived:Using the same background as built-in Symbian apps)
Overview
Using the same background as built-in applications
Description
It is possible to reuse the background image from built-in applications (Notepad, Pinboard, etc.) in a 3rd party application. In order to do so, a background control context (CAknsBasicBa... | http://developer.nokia.com/community/wiki/Archived:Using_the_same_background_as_built-in_Symbian_apps | CC-MAIN-2014-10 | en | refinedweb |
Here is an example of a complete app:
This function does the computation, here it just sleeps for 5 secs
def background(): import time time.sleep(5) return "computation result" # this could an image, HTML, JSON, etc...
This is the page accessed by the user. The computation is called by an ajax call and executed in back... | http://web2py.com/AlterEgo/default/show/43 | CC-MAIN-2014-10 | en | refinedweb |
Xtreme Visual Basic Talk
>
Legacy Visual Basic (VB 4/5/6)
>
General
> cant figure out Collection
PDA
cant figure out Collection
under_seeg
07-04-2004, 08:20 AM
i've been looking for a way to do this for days now, i'm not very talented myself im quite new to VB but heres my prob.
i want to create a collection i think, o... | http://www.xtremevbtalk.com/archive/index.php/t-176260.html | CC-MAIN-2014-10 | en | refinedweb |
Swing Application Framework is back again.
Existing code
The "singleton problem".
Design of the View class class.
Lack of flexible menu support.
The ideal framework
It is small but very flexible, any part of its functionality can be easily overridden. For example, if you don't like the implementation of LocalStorage, i... | https://weblogs.java.net/node/241612/atom/feed | CC-MAIN-2014-10 | en | refinedweb |
NAME
unix, AF_UNIX, AF_LOCAL - file system pathname (marked as being of type socket). Linux also supports an abstract namespace which is independent of the file system. Valid types are: SOCK_STREAM, for a stream-oriented socket and: #define UNIX_PATH_MAX 108 struct sockaddr_un { sa_family_t sun_family; /* AF_UNIX */ ch... | http://manpages.ubuntu.com/manpages/precise/man7/AF_LOCAL.7.html | CC-MAIN-2014-10 | en | refinedweb |
Code<Template>.NET is an add-in for Visual Studio .NET, that provides a mechanism for inserting commonly used text fragments into your source code. It is based on the ideas presented in my additions to Michael Taylor's extension to Darren Richard's original CodeTmpl addin.
The main differences with the original CodeTmp... | http://www.codeproject.com/Articles/3178/Code-Template-Add-In-for-Visual-Studio-NET?msg=1306627 | CC-MAIN-2014-10 | en | refinedweb |
Implementing Message Validation in WSE 3.0
Implementing Message Validation must validate request messages received from clients to make sure that they are not malformed and do not contain malicious content.
Objectives
This implementation of the Message Validator pattern has the following objectives:
- Prevent the servi... | http://msdn.microsoft.com/en-us/library/ff647829.aspx | CC-MAIN-2014-10 | en | refinedweb |
16 March 2011 12:28 [Source: ICIS news]
LONDON (ICIS)--Bayer MaterialScience (BMS) has completed a patent licence agreement for the use of carbon nanotubes with US-based company Hyperion Catalysis International, the German chemicals company said on Wednesday.
BMS said the agreement will strengthen its position in devel... | http://www.icis.com/Articles/2011/03/16/9444304/bayer-completes-carbon-nanotubes-licence-agreement-with-hyperion.html | CC-MAIN-2014-10 | en | refinedweb |
Sub::Assert - Subroutine pre- and postconditions, etc.
use Sub::Assert; sub squareroot { my $x = shift; return $x**0.5; } assert pre => { # named assertion: 'parameter larger than one' => '$PARAM[0] >= 1', }, post => '$VOID or $RETURN <= $PARAM[0]', # unnamed assertion sub => 'squareroot', context => 'novoid', action =... | http://search.cpan.org/dist/Sub-Assert/lib/Sub/Assert.pm | CC-MAIN-2014-10 | en | refinedweb |
SyndicationTextContentKind Enumeration
Enumeration used to identify text content of syndication item..
When you specify a value of Xhtml for the TargetTextContentKind attribute, you must ensure that the property value contains properly formatted XML. The data service returns the value without performing any transformat... | http://msdn.microsoft.com/en-us/library/vstudio/system.data.services.common.syndicationtextcontentkind(v=vs.90).aspx | CC-MAIN-2014-10 | en | refinedweb |
IWbemEventSink::SetSinkSecurity method
The IWbemEventSink::SetSinkSecurity method is used to set a security descriptor (SD) on a sink for all the events passing through. WMI handles the access checks based on the SD. Use this method when the provider cannot control what users are allowed to consume its events, but can ... | http://msdn.microsoft.com/en-us/library/windows/desktop/aa391750(v=vs.85).aspx | CC-MAIN-2014-10 | en | refinedweb |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.