text stringlengths 20 1.01M | url stringlengths 14 1.25k | dump stringlengths 9 15 ⌀ | lang stringclasses 4
values | source stringclasses 4
values |
|---|---|---|---|---|
NXT & LeJOS & Wii Nunchuck
October 18, 2010 16 Comments
Finally !
It’s been a while since I first thought about trying LeJOS, the JVM for NXT… I don’t recall why I didn’t do it when I first bought the NXT set, more than 2 years ago…
The thing is that, after some frustration with the URBI NXT installation (very nice pro... | https://trandi.wordpress.com/2010/10/18/nxt-lejos-nunchuck/ | CC-MAIN-2018-34 | en | refinedweb |
.
In addition we will also need to change how we tell our application about the location of the Mongo DB. Right now the application will assume the Mongo DB is running on localhost, that will not be the case in Bluemix. Lets address this problem first.
As you probably already know if you are familiar with services in a... | http://ryanjbaxter.com/2015/02/02/deploying-spring-boot-apps-to-bluemix-with-spring-cloud-connectors/ | CC-MAIN-2018-34 | en | refinedweb |
Given an array a, we have to find maximum product possible with the subset of elements present in the array. The maximum product can be single element also.
Examples:
Input : a[] = { -1, -1, -2, 4, 3 } Output : 24 Explanation : Maximum product will be ( -2 * -1 * 4 * 3 ) = 24 Input : a[] = { -1, 0 } Output : 0 Explanat... | https://www.geeksforgeeks.org/maximum-product-subset-array/ | CC-MAIN-2018-34 | en | refinedweb |
Contents
Abstract
This PEP proposes changing the syntax for declaring metaclasses, and alters the semantics for how classes with metaclasses are constructed.
Rationale
There are two rationales for this PEP, both of which are somewhat particular, there is an important body of use cases where it would be useful to preser... | http://docs.activestate.com/activepython/3.6/peps/pep-3115.html | CC-MAIN-2018-34 | en | refinedweb |
If you’ve ever looked at even small amounts of CIL, you’ll notice that two different instructions are used to call methods: “call” and “callvirt”. My goal in this post is to introduce these two methods and provide a general understanding of how they are used.
call – The basics
Call provides basic method calling functio... | http://www.levibotelho.com/development/call-and-callvirt-in-cil/ | CC-MAIN-2018-34 | en | refinedweb |
Allow basic regexp in namespace prefix of index-rule
----------------------------------------------------
Key: JCR-2458
URL:
Project: Jackrabbit Content Repository
Issue Type: Improvement
Components: jackrabbit-core
Reporter: Marcel Reutegger
Priority: Minor
Currently a regular expression is limited to the local name, ... | http://mail-archives.apache.org/mod_mbox/jackrabbit-dev/201001.mbox/%3C280647551.152531263214734636.JavaMail.jira@brutus.apache.org%3E | CC-MAIN-2018-34 | en | refinedweb |
Unlike C++, why template class can not be derived from type parameter in C#
public class FeatureObject <Interface> : FeatureBase, Interface
{
}
it give compiler error: cannot derive from 'Interface' because it is a type parameter.
Any reason?
.
View Complete Post'm working with a console application to generate my site... | http://www.dotnetspark.com/links/53968-c-sharp-why-class-cannot-derive-from-type.aspx | CC-MAIN-2018-34 | en | refinedweb |
NAME xx - twice as dirty SYNOPSIS ~ > gem install "double x" require "xx" include XX::XHTML doc = xhtml_{ html_{ head_{ title_{ " go xx! " } } body_{ " one more and it would be illegal " } } } URI DESCRIPTION xx is a library designed to extend ruby objects with html, xhtml, and xml generation methods. the syntax provid... | http://www.ruby-forum.com/topic/52651 | CC-MAIN-2018-34 | en | refinedweb |
I need hr consultant who can give me advice as consultant just for one question who donot ask me to pay any yearly membership jobs
Adempiere Finance Functional Consultant for desigining Ecommerce & Accounting System
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx... | https://www.dk.freelancer.com/job-search/i-need-hr-consultant-who-can-give-me-advice-as-consultant-just-for-one-question-who-donot-ask-me-to-pay-any-yearly-membership/ | CC-MAIN-2018-34 | en | refinedweb |
Building an FM Radio with RDS Support
Introduction
This article explains how to use the open source USB FM library (written by me) and Windows Presentation Foundation to build a simple yet fully functional radio player with RDS and TMC support.
Background
The USB FM library provides managed interfaces, developed with C... | https://www.codeguru.com/csharp/.net/net_wpf/article.php/c15817/Building-an-FM-Radio-with-RDS-Support.htm | CC-MAIN-2019-22 | en | refinedweb |
.
Step 2: Let's Get Started
Open Flash and create a new Flash File (ActionScript 3).
Set the stage size to 600x350 and add a gray radial gradient (#EEEEEE, #DDDDDD).
Step 3: Adding a Preloader
We're going to add a preloading animation to tell the user when the content is loading. In this case I used the Apple inspired ... | https://code.tutsplus.com/tutorials/create-a-shuffle-gallery-in-flash-using-xml-and-actionscript-30--active-1369 | CC-MAIN-2019-22 | en | refinedweb |
Some of you might have heard that Nathan and I took time out of our dev schedules to do an *Intro to Komodo* webinar on the 19th of November, 2015. What you may not know is that everyone asked a TON of questions! We couldn’t possibly answer all of them in the time that we had, so we took all the questions asked and I a... | https://www.activestate.com/blog/komodo-webinar-questions/ | CC-MAIN-2019-22 | en | refinedweb |
Continue Reading →
Enterprise Library Data Access Application Block In C# .NET
What is a Data Access Application Block (DAAB)? A Data Access Application Block encapsulates the performance and resource management best practices for accessing Microsoft SQL Server databases. It can easily be used as a building block in yo... | http://www.dotnetguru.in/2017/11/ | CC-MAIN-2019-22 | en | refinedweb |
#include <mw/animationdataprovider.h>
Link against: animationshared.lib
Pure virtual base class for data providers.
A data provider takes an animation specification (such as a file), converts it (if needed) into a format recognised by an animator (such as CAnimationFrame objects), and passes it to the animator, via the... | http://devlib.symbian.slions.net/belle/GUID-C6E5F800-0637-419E-8FE5-1EBB40E725AA/GUID-CB96F59F-BEF9-3296-A80A-4E8E8BE354C6.html | CC-MAIN-2019-22 | en | refinedweb |
curl-library
Need advice on handling CyaSSL/wolfSSL's build configurations
Date: Thu, 16 Apr 2015 01:05:18 -0400
Recently I made some changes to lib/vtls/cyassl.c to include the CyaSSL
build options [1] and support SNI [2]. The latter change is dependent on
the former.
CyaSSL's includes do not themselves include its bu... | https://curl.haxx.se/mail/lib-2015-04/0069.html | CC-MAIN-2019-22 | en | refinedweb |
span8
span4
span8
span4
Hello,
How can I replace a line with its corresponding points with a python caller?
I tried the following code but it is not working.
import fme import fmeobjects class pointCreate(object): def __init__(self): pass def input(self,feature): if feature.hasGeometry(): coord = feature.getAllCoordina... | https://knowledge.safe.com/questions/88483/how-to-create-geometries-with-a-python-caller.html | CC-MAIN-2019-22 | en | refinedweb |
I'm trying to use the return function, I'm new to python but it is one of the things I don't seem to understand.
In my assignment I have to put each task in a function to make it easier to read and understand but for example I create a randomly generated number in a function, I then need the same generated number in a ... | https://www.codesd.com/item/using-the-same-variables-in-different-functions-in-python.html | CC-MAIN-2019-22 | en | refinedweb |
Unions in C and C++ are aggregate quantities like structs, except that each elements of the union has offset 0, and the total size of the union is only as large as is required to hold its largest member [1]. Only one member of a union may be "active" at a time. Unions are most often used to provide variant functionalit... | http://www.drdobbs.com/flexible-c-8-union-casts-considered-harm/184403890 | CC-MAIN-2019-22 | en | refinedweb |
Let’s get started by doing “the simplest thing that could possibly work”.
public class DynamicDataTable : DynamicObject { private readonly DataTable _table; public DynamicDataTable(DataTable table) { _table = table; } }
For now, we’ll use a DataTable for the actual storage and a DynamicObject to provide an implementati... | https://blogs.msdn.microsoft.com/curth/2009/05/24/dynamicdatatable-part-1/ | CC-MAIN-2019-22 | en | refinedweb |
Heightmap patches beyond basemap distance will use a precomputed low res basemap.
This improves performance for far away patches. Close up Unity renders the heightmap using splat maps by blending between any amount of provided terrain textures.
using UnityEngine;
public class Example : MonoBehaviour { void Start() { T... | https://docs.unity3d.com/2018.3/Documentation/ScriptReference/Terrain-basemapDistance.html | CC-MAIN-2019-22 | en | refinedweb |
2017-12-04 - Fiji + KNIP hackathon
From Monday, December 4, 2017 through Friday, December 15, 2017, the Max Planck Institute of Molecular Cell Biology and Genetics hosts ~50 developers at the Center for Systems Biology in Dresden, Germany for a hackathon to develop ImageJ2 and Fiji core infrastructure and plugins.
Cont... | https://imagej.net/index.php?title=2017-12-04_-_Fiji_%2B_KNIP_hackathon&diff=next&oldid=36714 | CC-MAIN-2019-22 | en | refinedweb |
11 replies on
1 page.
Most recent reply:
Jan 25, 2012 7:48 AM
by
Don Sawatzky
In the last few weeks my collegues and me have been involved in a
project which required a command line interface. We did so by
leveraging on the cmd module in the standard Python library, to
which we added a network layer using Twisted. In t... | https://www.artima.com/forums/flat.jsp?forum=106&thread=237764 | CC-MAIN-2017-51 | en | refinedweb |
Back to index
00001 /* High precision, low overhead timing functions. x86-64 version. 00002 Copyright (C) 2002, 2004, 2005 _HP_TIMING_H 00021 00022 /* We can use some of the i686 implementation without changes. */ 00023 # include <sysdeps/i386/i686/hp-timing.h> 00024 00025 /* The "=A" constraint used in 32-bit mode doe... | https://sourcecodebrowser.com/glibc/2.9/x86__64_2hp-timing_8h_source.html | CC-MAIN-2017-51 | en | refinedweb |
Facelets fits JSF like a glove
Finally, a view technology made just for JSF!
While.
.
Overview of Facelets Related topics).
From Tiles to Facelets
As I mentioned, the example Web application I use here is based on one I created for my JSF for nonbeliever.
Installing Facelets.
Adding init parameters
This step assumes yo... | https://www.ibm.com/developerworks/java/library/j-facelets/ | CC-MAIN-2017-51 | en | refinedweb |
Subject: Re: [Unbound-users] named.cache & .conf setup best practices Date: Tue, May 28, 2013 at 10:45:01PM +1000 Quoting shmick at riseup.net (shmick at riseup.net): > will i be able to resolve gTLD's such as .satan (which cesidian can) > .africa (which namespace can) or .geek (which opennic can) ? Why would you want ... | https://www.unbound.net/pipermail/unbound-users/2013-May/002924.html | CC-MAIN-2017-51 | en | refinedweb |
C# LINQ for Scala heads
This is a memo of C# Linq features for Scala programmers. Or vice versa.
Type inference
C# has type inference. I try to use
var when I can for local variables.
var x = 1;
Scala also has
var, but the preferred way is to use immutable
val if possible.
val x = 1
Creating a new List or an Array
C# c... | http://eed3si9n.com/node/58 | CC-MAIN-2017-51 | en | refinedweb |
JetBrains News
DataGrip 2017.3 is Here!
DataGrip, our IDE for SQL and databases, has reached a new version. New features and improvements:Database tree view
— Ability to group data sources
— More convenient managing schemas
— Users and roles are now displayed in PostgreSQL and AWS Redshift
— Foreign data wrappers are n... | http://www.jetbrains.com/allnews.jsp?year=2012 | CC-MAIN-2017-51 | en | refinedweb |
Opened 2 years ago
Last modified 23 months ago
#25534 new New feature
Allow using datetime lookups in QuerySets aggregate calls
Description (last modified by )
I've been scouring the web for an answer to this but the closest I can find is #25339, which is almost what I need but not quite, so I think I can safely conclu... | https://code.djangoproject.com/ticket/25534 | CC-MAIN-2017-51 | en | refinedweb |
QJSEngine add custom object
Hi,
I am trying to use a script to plot a graph in my program.
I am using QCustomPlot and it works fine if used in my C++ code.
However, if I pass the QCustomPlot to the QJSEngine like this:
QJSEngine myEngine; QCustomPlot *graph = new QCustomPlot; QJSValue scriptgraph = myEngine.newQObject(... | https://forum.qt.io/topic/59142/qjsengine-add-custom-object | CC-MAIN-2017-51 | en | refinedweb |
Subclass QDial
Hi, I would like to subclass QDial because :
Here the QDial can jump values (ex : what I want : If QDial.value() = 2, I want the QDial able to move only to 1 or 3.
So I tried :
#ifndef CUSTOMDIAL_H #define CUSTOMDIAL_H #include <QObject> #include <QDial> #include <QMouseEvent> class CustomDial : public Q... | https://forum.qt.io/topic/67712/subclass-qdial | CC-MAIN-2017-51 | en | refinedweb |
Exercises - Chapter 9
- Harry Hicks
- 2 years ago
- Views:
Transcription
1 Exercises - Chapter 9 Complete the following exercises. Assume that all these exercises use the perpetual inventory system. Exercise #1 1. hip top Shirt retailers bought $15,000 worth of shirts from Super Shirt Wholesalers Ltd. on March 15th. pa... | http://docplayer.net/10693657-Exercises-chapter-9.html | CC-MAIN-2017-51 | en | refinedweb |
Recently I had to spend some time trying to adapt my imperative/OO background to a piece of code I need to write in functional paradigm. The problem is quite simple and can be described briefly. You have a collection of pairs containing an id and a quantity. When a new pair arrives you have to add the quantity to the p... | http://www.maxpagani.org/2016/07/12/comparisons/ | CC-MAIN-2017-51 | en | refinedweb |
// count and display the words in a sentence // optionally store the words in a vector // a Dev-C++ tested Console Application by vegaseat 17mar2005 #include <iostream> #include <sstream> #include <string> #include <vector> // for the vector option using namespace std; int main() { string sentence, word; // create a st... | https://www.daniweb.com/programming/software-development/code/216482/words-in-a-sentence | CC-MAIN-2017-51 | en | refinedweb |
Revision: 69059 Author: brlcad Date: 2016-10-14 14:56:02 +0000 (Fri, 14 Oct 2016) Log Message: ----------- bit again. remove dead symlinks so removed/renamed files don't mess with the build (e.g., when a tclIndex needs to be regenerated). if it globs but doesn't exist, it's a dead link and useless in the build tree reg... | https://www.mail-archive.com/brlcad-commits@lists.sourceforge.net/msg35265.html | CC-MAIN-2017-51 | en | refinedweb |
Well, this problem has a nice BFS structure.
Let's see the example in the problem statement.
start = "hit"
end = "cog"
dict = ["hot", "dot", "dog", "lot", "log"]
Since only one letter can be changed at a time, if we start from
"hit", we can only change to those words which have only one different letter from it, like
"... | https://discuss.leetcode.com/topic/16983/easy-76ms-c-solution-using-bfs | CC-MAIN-2017-51 | en | refinedweb |
Navigation Overview.
Page, Hyperlink, NavigationService, and the journal form the core of the navigation support offered by WPF. This overview explores these features in detail before covering advanced navigation support that includes navigation to loose Extensible Application Markup Language (XAML) files, HTML files, ... | https://docs.microsoft.com/en-us/dotnet/framework/wpf/app-development/navigation-overview | CC-MAIN-2017-51 | en | refinedweb |
...one of the most highly
regarded and expertly designed C++ library projects in the
world. — Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
detail/gcd_lcm.hpp provides two generic integer algorithms: greatest common divisor and least common multiple.
namespace details { namespace pool { template <typename I... | http://www.boost.org/doc/libs/1_32_0/libs/pool/doc/implementation/gcd_lcm.html | CC-MAIN-2017-13 | en | refinedweb |
HIPL on Android
Bug Description
HIPL does not build or work on Android yet. Android platform is problematic because it is targeted for java applications. The challenges include:
* DNS proxy is written with python, so it's not possible to port it at all
* The h/w platform for Android is really picky with memory alignmen... | https://bugs.launchpad.net/hipl/+bug/715126 | CC-MAIN-2017-13 | en | refinedweb |
I am reading documentation about new order calculations:
It mentions that for calculations to work properly, line items should exist in shipment: "The order calculators will only calculate line items that belongs to a shipment. This is a changed behaviour from how it worked in the workflow activities."
So what is the p... | http://world.episerver.com/forum/developer-forum/Episerver-Commerce/Thread-Container/2016/1/proper-way-to-add-item-to-the-cart-for-new-beta-features/ | CC-MAIN-2017-13 | en | refinedweb |
The Investment Matrix Revelations?"
Since I normally simply analyze Fed actions rather than prescribe them (I assume Greenspan does not really care about my opinions) I was brought up a little short, and answered that I would like to see the Fed tell us whether they are going to work to bring down long rates, instead o... | http://www.safehaven.com/article/733/the-investment-matrix-revelations | CC-MAIN-2017-13 | en | refinedweb |
Here.
Andrew – Thanks for the information. Is there (or will there be) any way of determining the installed version of OneNote? It would be nice for applications to automatically change to the correct schema, based upon the version ID. Perhaps it could be a read-only integer property of the CSimpleImporter COM object.
... | https://blogs.msdn.microsoft.com/andrew_may/2004/05/12/onenote-namespace-change-for-sp1/ | CC-MAIN-2017-13 | en | refinedweb |
Code from CCI book:
public class ListNode {
int val;
ListNode next = null;
ListNode(int x) {
this.val = x;
}
public void appendToTail(int d) {
ListNode end = new ListNode(d);
ListNode n = this;
while (n.next != null) {
n = n.next;
}
n.next = end;
}
Inside your while loop you say:
n = n.next
When that line of code execu... | https://codedump.io/share/dgFHvEh6fpc8/1/changing-references-to-objects-java | CC-MAIN-2017-13 | en | refinedweb |
Results 1 to 2 of 2
- Join Date
- Jul 2001
- 30
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Carriage return (ALT+ENTER) not working (Excel 97 SR1)
On a Win95 machine the ALT+ENTER is not working. What would effect that to stop it from working correctly?
<img src=/S/bummer.gif border=0 alt=bummer width=15 height=15>
- Joi... | http://windowssecrets.com/forums/showthread.php/23771-Carriage-return-%28ALT-ENTER%29-not-working-%28Excel-97-SR1%29 | CC-MAIN-2017-13 | en | refinedweb |
Thanks,
#include <iostream> using namespace std; int twelveDays(int firstDay, int lastDay, int endOf) { if(firstDay <= lastDay) { return twelveDays(++firstDay, lastDay, endOf + 1); } else { return twelveDays(++firstDay, lastDay, endOf); } return endOf; } int countDays(int firstDay, int lastDay) { return twelveDays(firs... | http://www.dreamincode.net/forums/topic/348247-arrays-recursion-and-the-12-days-of-christmas/ | CC-MAIN-2017-13 | en | refinedweb |
This tutorial is for those who prefer the pleasant company of a text editor and a trusty command prompt. Even if you routinely use an IDE, you will find that it’s often quicker and easier to compile, test and install your applications from the command line. We’ll be using Maven () to manage the large number of jars tha... | http://docs.geotools.org/latest/userguide/tutorial/quickstart/maven.html | CC-MAIN-2017-13 | en | refinedweb |
#include <gcugtk/gcuperiodic.h>
The GcuPeriodic Widget displays a Periodic table of the elements, each element being represented in a toggle button. A test program is available in the tests directory of the Gnome Chemistry Utils source archive (source in testgcuperiodic.c).
This widget has one signal:
There are two pro... | http://gchemutils.nongnu.org/reference/structGcuPeriodic.html | CC-MAIN-2017-13 | en | refinedweb |
Making an Adapter
Now it is a little awkward to remember to use the Items collection of the list box for some operations and not for others. For this reason, we might prefer to have a class that hides some of these complexities and adapts the interface to the simpler one we wish we had, rather like the list box interfa... | http://www.dotnetspark.com/kb/368-making-adapter.aspx | CC-MAIN-2017-13 | en | refinedweb |
How to: Handle Deployment Conflicts
You can provide your own code to handle deployment conflicts for a SharePoint project item. For example, you might determine whether any files in the current project item already exist in the deployment location, and then delete the deployed files before the current project item is d... | https://msdn.microsoft.com/en-us/library/ff655129.aspx | CC-MAIN-2017-13 | en | refinedweb |
But I'm pleased to report that you can copy/paste HTML to/from the clipboard on Mac OS, even though it doesn't seem to work on Linux, and someone else says it doesn't work on Windows (Java bug #4765240).
Note that what I'm talking about is being able to paste styled text into a native application. So rather than "hello... | http://elliotth.blogspot.com/2005/01/copying-html-to-clipboard-from-java.html | CC-MAIN-2017-13 | en | refinedweb |
80 MHz PLL (dsPIC33F/PIC24H)
dsPIC33F and PIC24H devices contain a programmable PLL module which can be used to provide an FOSC = 80 MHz (max.) system clock, enabling an FCY = 40 MIPs (max.) operation.
The 80 MHz PLL block requires a 0.8-8 MHz input signal; it uses this to generate a 100-200 MHz output signal which is ... | http://microchipdeveloper.com/16bit:osc-pll-80mhzpll | CC-MAIN-2017-13 | en | refinedweb |
Wes McKinney, the creator of pandas, is kind of obsessed with performance. From micro-optimizations for element access, to embedding a fast hashtable data structure inside pandas, we benefit from all his hard work.
One thing I'm not really going to touch on is storage formats. There's too many other factors that go int... | http://nbviewer.jupyter.org/gist/TomAugspurger/2d6cb8332868e762daeadf228b6e2bbf | CC-MAIN-2017-13 | en | refinedweb |
Other languages
[Main]
As well as its own scripting language, obmm also lets you script using iron python, C# and visual basic. In this case, access to obmm's scripting functions is provided via an
interface
.
C# and vb scripts must define a class named 'Script' which inherits from 'IScript' in the root namespace. It m... | http://timeslip.chorrol.com/obmmm/otherlanguages.htm | CC-MAIN-2017-13 | en | refinedweb |
Auto Print an HTML Page
SuperGeekery.)
Additionally, the client wanted these same recipes sharable and accessible from their web site. Those site-based recipes also needed to be printable.
I wanted a solution that didn't end up creating multiple versions of the recipes. There were already many moving pieces in the proj... | https://supergeekery.com/geekblog/comments/auto_print_an_html_page | CC-MAIN-2017-13 | en | refinedweb |
in reply to Re: help using packForget()in thread help using packForget()
the idea of local $boom is to give the global $boom a local value so when you speak of $boom, here, it's a package global.
This description, if not outright wrong, is at least misleading. The idea of local is to give the global variable a dynamic ... | http://www.perlmonks.org/?node_id=612560 | CC-MAIN-2017-13 | en | refinedweb |
Opened 5 years ago
Closed 4 years ago
Last modified 4 years ago
#18210 closed Bug (fixed)
Regression and crash with any "special" prefix values passed to reverse()
Description
After updating to Django 1.4, I get no fewer than 5 messages a day where the Django 404 page generation gets totally fouled up and ends up resul... | https://code.djangoproject.com/ticket/18210 | CC-MAIN-2017-13 | en | refinedweb |
pyliftover 0.3
Pure-python implementation of UCSC ``liftOver`` genome coordinate conversion.
PyLiftover is a library for quick and easy conversion of genomic (point) coordinates between different assemblies.
It uses the same logic and coordinate conversion mappings as the UCSC liftOver tool.
As of current version (0.2)... | https://pypi.python.org/pypi/pyliftover | CC-MAIN-2017-13 | en | refinedweb |
SPListItem item = web.Lists["Docs"].Items[0];
string fieldValue = item["Contact"].ToString(); // Contact is the name of Person or Group column and in this case has a value "1;#Test User"
SPFieldUserValue user = new SPFieldUserValue(web, fieldValue);
string name = user.LookupValue; // Test User
The LookupId for this fie... | http://geek.hubkey.com/2008_01_01_archive.html | CC-MAIN-2017-13 | en | refinedweb |
Controlling Project and File Properties with C++ Macros
In previous columns, I introduced you to the basics of writing Visual Studio macros in C++—well, to be accurate, writing a library in C++ that provides all the functionality for macros. I showed you how to insert text into a file being edited, and how to work with... | http://www.developer.com/net/cplus/article.php/3368451/Controlling-Project-and-File-Properties-with-C-Macros.htm | CC-MAIN-2017-13 | en | refinedweb |
I have a custom subclass of UIButton:
import UIKit
@IBDesignable
class MyButton: UIButton {
var array : [String]?
}
import UIKit
@IBDesignable
class MyButton<T>: UIButton {
var array : [T]?
}
MyButton<String>
MyButton<Int>
Command /Applications/Xcode6-Beta4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr... | https://codedump.io/share/kffLQMzwTYP6/1/use-a-generic-class-as-a-custom-view-in-interface-builder | CC-MAIN-2017-13 | en | refinedweb |
Details
- Type:
Bug
- Status: Closed
- Priority:
Critical
- Resolution: Fixed
- Affects Version/s: 2.7.2
- Fix Version/s: 2.8.0, 2.7.3, 3.0.0-alpha1
- Component/s: None
- Labels:None
Description
SNN was down for sometime because of some reasons..After restarting SNN,it became unreponsive because
- 29 DN's sending IBR i... | https://issues.apache.org/jira/browse/HDFS-9917 | CC-MAIN-2017-13 | en | refinedweb |
- (201)
- GNU General Public License version 2.0 (111)
- BSD License (25)
- GNU Library or Lesser General Public License version 2.0 (18)
- Apache License V2.0 (15)
- MIT License (12)
- Academic Free License (8)
- GNU General Public License version 3.0 (7)
- Eclipse Public License (6)
- Common Public License 1.0 (5)
-... | https://sourceforge.net/directory/natlanguage%3Ajapanese/developmentstatus%3Aplanning/?sort=popular&page=8 | CC-MAIN-2017-13 | en | refinedweb |
<span class="code-string">"XFontDialog.rc"</span> right before the
#endif:
#include <span class="code-string">"XFontDialog.rc"</span>
)
HWND hWndColor = ::GetDlgItem(m_hWnd, 1139);
::SendMessage (hWndColor, CB_RESETCONTENT, 0, 0);
afx_msg LONG CFontEx::OnSelEndOK(UINT lParam, LONG wParam)
{
HWND hWndColor = ::GetDlgIt... | https://www.codeproject.com/articles/4385/xfontdialog-customizing-cfontdialog-part-i-adding?fid=15876&df=10000&mpp=10&noise=1&prof=true&sort=position&view=none&spc=none&select=1074216&fr=11 | CC-MAIN-2017-13 | en | refinedweb |
The following post strips back Gerard's example to instead to consider the steps in setting up and testing One-Way SSL for a JAX-WS web service generated via JDeveloper 11gR1 and installed in WLS 10.3.1, using the WLS policy Wssp1.2-2007-Https.xml.
Assumptions
This article assumes the reader has the following basic kno... | http://one-size-doesnt-fit-all.blogspot.com/2009/08/one-way-ssl-with-jax-ws-using.html | CC-MAIN-2017-13 | en | refinedweb |
An LED-based fire lamp
(Last modified 8 Oct 11)
I call this a fire lamp because the LEDs, driven by an Atmel ATtiny85 MCU, provide a very realistic imitation of a flickering flame about the size of a tennis ball. Unfortunately, I've never bothered to buy a video camera, so I can't embed any live video. However, the fli... | http://www.seanet.com/~karllunt/firelamp.html | CC-MAIN-2017-13 | en | refinedweb |
I have a piece of server-ish software written in Java to run on Windows and OS X. (It is not running on a server, but just a normal user's PC - something like a torrent client.) I would like the software to signal to the OS to keep the machine awake (prevent it from going into sleep mode) while it is active.
Of course ... | https://codedump.io/share/YhB1cm12ZVc6/1/how-do-you-keep-the-machine-awake | CC-MAIN-2017-13 | en | refinedweb |
I haven't been able to get gprof to output results that make any sense for some time now. I'd be interested if you actually get it to work.
Marc
Manolo to Anton Shepelev:
>>while they clearly take different times to com-
>>plete.
>
>How do you know this? Have you measured times?
I measured the times manually, but here ... | http://mingw.5.n7.nabble.com/Strange-gprof-results-td35276.html | CC-MAIN-2017-13 | en | refinedweb |
wikiHow to Break up With Your Significant Other when You Are Already Dating Someone Else
Nobody enjoys having to break up with someone––but it can be even more difficult when you’ve already moved on both mentally and in action, and have a new significant other in your life. If you've already started seeing someone new ... | http://www.wikihow.com/Break-up-With-Your-Significant-Other-when-You-Are-Already-Dating-Someone-Else | CC-MAIN-2017-13 | en | refinedweb |
I am following these directions:
The instructions give the steps in installing Pygame for Python 3 on Ubuntu.
I am having no problems with it until i reach the
python3 setup.py build
Traceback (most recent call last):
File "setup.py", line 109, in <module>
from setuptools import setup, find_packages
ImportError: No mod... | https://codedump.io/share/Pn2VQV9IB9l5/1/pygame-for-python-3---quotsetuppy-buildquot-command-error | CC-MAIN-2017-13 | en | refinedweb |
: 3008
Author: m-schindler
Date: 2009-06-09 11:41:40 +0000 (Tue, 09 Jun 2009)
Log Message:
-----------
added an example for axis titles
Modified Paths:
--------------
trunk/pyx/examples/graphs/axis.py
trunk/pyx/examples/graphs/axis.txt
Modified: trunk/pyx/examples/graphs/axis.py
========================================... | https://sourceforge.net/p/pyx/mailman/pyx-checkins/?viewmonth=200906&viewday=9&style=flat | CC-MAIN-2017-39 | en | refinedweb |
Accessor of the second element of a Lisp cons cell. Unlike the accessor of the first element, car, it does not suffer a namespace collision with a common English word..
--The Jargon File version 4.3.1, ed. ESR, autonoded by rescdsk.
Log in or register to write something here or to contact authors.
Need help? accounthel... | https://everything2.com/title/CDR | CC-MAIN-2017-39 | en | refinedweb |
After realizing that I can't dispatch a NavigationEvent through my mxml file, which I don't tend to configure in the context file, I used the presentation model to dispatch the event (see).
However, I find it abusing to control navigation through the PM. It is not it's responsibility as I see it.
I thought about using ... | https://forums.adobe.com/thread/587324 | CC-MAIN-2017-39 | en | refinedweb |
I am trying to create an object of the StageWebView()
var stageview = new window.runtime.flash.media.StageWebView();
Im getting the error:
TypeError: Results of expression 'window.runtime.flash.media.StageWebView' [] is not a constructor.
I'm guessing this is because the object StageWebView does not exist.
I have Adobe... | https://forums.adobe.com/thread/870662 | CC-MAIN-2017-39 | en | refinedweb |
I 've looked through the docs and googled the heck out of this list and the 'net, but can't find a single working example of a slip setup.
I need to use slip because I am running the UML in a VPS (with no kernel tun/tap support, exactly the situation pointed out in the docs as the only reason to use slip)
There's a lot... | https://sourceforge.net/p/user-mode-linux/mailman/attachment/SNT121-W60447DC6C331629DA9DFBAEB1D0@phx.gbl/1/ | CC-MAIN-2017-39 | en | refinedweb |
U++ SQL
Basic Use and Description
For this section, the example used will be oriented to PostgreSQL use. See the SQL example packages provided in the Upp examples for using MySQL and SQLite as well.
The Schema description file (.sch file)
In each schema description file, you describe the table and column layout of your... | https://www.ultimatepp.org/srcdoc$Sql$BasicUse$en-us.html | CC-MAIN-2017-39 | en | refinedweb |
Hello,
I don't quite understand how to integrate Kafka and Flink, after a lot of
thoughts and hours of reading I feel I'm still missing something important.
So far I haven't found a non-trivial but simple example of a stream of a
custom class (POJO). It would be good to have such an example in Flink
docs, I can think o... | http://mail-archives.apache.org/mod_mbox/flink-user/201612.mbox/%3CCAJYNqU+1eLsYM4J89HhA-SYDiSH6Vuyqkfg9hjsnM71PW-XmAw@mail.gmail.com%3E | CC-MAIN-2017-39 | en | refinedweb |
Earlier this week, we looked at how the v4 CLR continued the evolution of the security transparency model that started in v2 and started evolving with Silverlight in order to make it the primary security enforcement mechanism of the .NET 4 runtime.
The result is that the v4 transparency model, while having roots in the... | https://blogs.msdn.microsoft.com/shawnfa/2009/11/11/transparency-models-a-tale-of-two-levels/ | CC-MAIN-2017-39 | en | refinedweb |
Tips for Localizing Windows Phone 8 XAML Apps – Part1
This blog post was authored by Dan Zucker, a program manager on the Windows Phone team.
– Adam
This is Part 1 of a two part series. Part 1 gives you a deeper understanding of the standard pattern for localizing a Windows Phone 8 XAML app along with a lesson learned ... | https://blogs.windows.com/buildingapps/2013/02/01/tips-for-localizing-windows-phone-8-xaml-apps-part1/ | CC-MAIN-2017-39 | en | refinedweb |
Local product inventory feed specification
The local products inventory feed is a list of the products you sell in each store. Some attributes are required for all items, some are required for certain types of items, and others are recommended.
Note: Not providing a required attribute may prevent that particular item f... | https://support.google.com/merchants/answer/3061342 | CC-MAIN-2017-39 | en | refinedweb |
Hashtable.Add Method
Assembly: mscorlib (in mscorlib.dll)
Parameters
- key
- Type: System.Object
The key of the element to add.
- value
- Type: System.Object
The value of the element to add. The value can be a null reference (Nothing in Visual Basic).
ImplementsIDictionary.Add(Object, Object)
A key cannot be a null ref... | https://msdn.microsoft.com/en-us/library/system.collections.hashtable.add(v=vs.90).aspx?cs-save-lang=1&cs-lang=jscript | CC-MAIN-2017-39 | en | refinedweb |
.*;
import java.awt.event.*;
public class DoubleClickTest extends Panel implements MouseListener {
public void mousePressed(MouseEvent event) {
if (event.getClickCount() == 2) {
// Executed only when the user double-clicks on
this component
System.out.println("User double-clicked");
} // if (event.getClickCount() == 2)... | http://www.devx.com/tips/Tip/5525 | CC-MAIN-2018-43 | en | refinedweb |
I got installed Esri ArcGIS SDK (C++) samples (I got it as developer). The library´s used by the samples are been recognized from QtCreator as it´s spected (I´ve been running the samples and everything went well in QT). I tried to use different classes part of the SDK C++ for Qt and I got problems with the headers file... | https://community.esri.com/thread/193077-arcgis-sdk-c-developer-some-header-s-files-are-not-been-recognised | CC-MAIN-2018-43 | en | refinedweb |
Foods.pgf
readPGF :: FilePath -> IO PGF linearize :: PGF -> Language -> Tree -> String parse :: PGF -> Language -> Category -> String -> [Tree] linearizeAll :: PGF -> Tree -> [String] linearizeAllLang :: PGF -> Tree -> [(Language,String)] parseAll :: PGF -> Category -> String -> [[Tree]] parseAllLang :: PGF -> Category... | http://www.grammaticalframework.org/~hallgren/Talks/GF/Tutorial2012/tutorial2012.talk | CC-MAIN-2018-43 | en | refinedweb |
2009 Campus Test Coordinator Training. February 11-12, 2009 Trainer – Peggy Bradfield Lamar Consolidated Independent School District. TAKS Training Requirements (Page 50 in Coordinator Manual). What’s New for 2009?. Not 11-12, 2009
Trainer – Peggy Bradfield
Lamar Consolidated Independent School District
The high school... | https://www.slideserve.com/peter-perkins/2009-campus-test-coordinator-training | CC-MAIN-2018-43 | en | refinedweb |
Getting Started
To begin evolution, we need to create a seed genome and a
population from it. Before everything though, we create an
object which holds all parameters used by NEAT:
import MultiNEAT as NEAT
params = NEAT.Parameters()
params.PopulationSize = 100
This is usually the point where all custom values for the p... | http://multineat.com/docs.html | CC-MAIN-2018-43 | en | refinedweb |
At the moment I’m struggling with Microchip’s new “Harmony” framework for the PIC32. I don’t want to say bad things about it because (a) I haven’t used it enough to give a fair opinion and (b) I strongly suspect it’s a useful thing for some people, some of the time.
Harmony is extremely heavyweight. For example, the PD... | http://nerdfever.com/remove-all-comments-from-c-and-c-source-code/ | CC-MAIN-2017-47 | en | refinedweb |
In this series of tutorials, I'll show you how to make a Geometry Wars-inspired twin-stick shooter, with neon graphics, crazy particle effects, and awesome music, for iOS using C++ and OpenGL ES 2.0.
Rather than rely on an existing game framework or sprite library, we'll attempt to program as close to the hardware (or ... | https://gamedevelopment.tutsplus.com/tutorials/make-a-neon-vector-shooter-for-ios-first-steps--gamedev-14316?WT.mc_id=Tuts+_website_relatedtutorials_sidebar | CC-MAIN-2017-47 | en | refinedweb |
In previous tutorials we've outlined temperature sensing, PIR motion controllers and buttons and switches, all of which can plug directly into the Raspberry Pi's GPIO ports. The HC-SR04 ultrasonic range finder is very simple to use, however the signal it outputs needs to be converted from 5V to 3.3V so as not to damage... | https://www.modmypi.com/blog/hc-sr04-ultrasonic-range-sensor-on-the-raspberry-pi | CC-MAIN-2017-47 | en | refinedweb |
Introduction
Creating a Generic Repository pattern in an MVC3 application with Entity Framework is the last topic that we are about to cover in our journey of learning MVC.
The article will focus on Unit of Work Pattern and Repository Pattern, and shows how to perform CRUD operations in an MVC application when there co... | http://csharppulse.blogspot.com/2013/09/learning-mvc-part-6-generic-repository.html | CC-MAIN-2017-47 | en | refinedweb |
I am trying to fit exponential function from my data. I am not very experienced with fitting mathematical functions to my data yet.
Below is my code right now.
import numpy as np
import matplotlib.pyplot as plt
from scipy.optimize import curve_fit
my_x = (4,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40)
my_y = (0.022... | https://codedump.io/share/kdUbfwnvoGaA/1/function-takes-4-positional-arguments-but-5-were-givendef-function-in-python-35 | CC-MAIN-2017-47 | en | refinedweb |
Log4c rolling file appender interface. More...
#include <log4c/defs.h>
#include <log4c/appender.h>
#include <log4c/rollingpolicy.h>
Go to the source code of this file..
Get a new rolling file appender configuration object.
Get the prefix string in this rolling file appender configuration.
Get the logging directory in t... | http://log4c.sourceforge.net/appender__type__rollingfile_8h.html | CC-MAIN-2017-47 | en | refinedweb |
PAM_GETENVLIST(3) Linux-PAM Manual PAM_GETENVLIST(3)
pam_getenvlist - getting the PAM environment
#include <security/pam_appl.h> char **pam_getenvlist(pam_handle_t *pamh);
The pam_getenvlist function returns a complete copy of the PAM environment as associated with the handle pamh. The PAM environment variables represe... | http://man7.org/linux/man-pages/man3/pam_getenvlist.3.html | CC-MAIN-2017-47 | en | refinedweb |
doing a wordl-like word cloud.
I know, word clouds are a bit out of style but I kind of like them any way. My motivation to think about word clouds was that I thought these could be combined with topic-models to give somewhat more interesting visualizations.
So I looked around to find a nice open-source implementation ... | http://peekaboo-vision.blogspot.be/2012/11/a-wordcloud-in-python.html | CC-MAIN-2017-47 | en | refinedweb |
* CancelGraph.java21 *22 * Created on April 26, 2006, 3:20 PM23 *24 * To change this template, choose Tools | Template Manager25 * and open the template in the editor.26 */27 28 package org.netbeans.modules.xml.refactoring.ui;29 30 import org.openide.util.Cancellable;31 32 /**33 *34 * @author Jeri Lockhart35 */36 37 3... | http://kickjava.com/src/org/netbeans/modules/xml/refactoring/ui/CancelGraph.java.htm | CC-MAIN-2017-47 | en | refinedweb |
This sample shows how to protect your PDF document with a password.
There are two passwords types: a "user" and an "owner" password. PdfDocument.OwnerPassword property is for an "owner" password and PdfDocument.UserPassword property is for a "user" password.
Opening a PDF document with an "owner" password allows a read... | https://bitmiracle.com/pdf-library/help/set-password.aspx | CC-MAIN-2017-47 | en | refinedweb |
With {module_pagename} you get the pagename of the current page you visit.
Is there also a way to get the template ID of the page you currently visiting with module or any liquid tags?
Thanks!
Hi,
You can get this with liquid:
<p>PageID: {{oid_0.oid}}</p>
<p>Page Name: {module_pagename}</p>
{module_data resource="pages... | https://forums.adobe.com/thread/2095178 | CC-MAIN-2017-47 | en | refinedweb |
0
I have some code to parse POST and GET parameters passed to a CGI program written in C and I'd like to test it out. To parse GET parameters, I need to access the QUERY_STRING environment variable, so I'd like to set that environment variable to different things and see if my code can handle the test cases. My problem... | https://www.daniweb.com/programming/software-development/threads/255653/setting-and-getting-environment-variable-in-c | CC-MAIN-2017-47 | en | refinedweb |
02 July 2012 09:00 [Source: ICIS news]
LONDON (ICIS)--Here are some of the top stories from ICIS Europe for the week ended 29 June 2012.
?xml:namespace>
Swiss Ameropa acquires 20.5% stake in Azomures for €53.7m
Swiss grain and fertilizer trader Ameropa Holding has acquired a further 20.53% stake in Romania's largest fe... | http://www.icis.com/Articles/2012/07/02/9574192/europe-top-stories-weekly-summary.html | CC-MAIN-2015-06 | en | refinedweb |
look
VoIP Keep Your Number
VoIP Keep Your Number
VoIP Keep Your Existing Phone Number
Changing your phone service to Lingo VoIP phone service is easy, even better since you can keep
Keep servlet session alive - Development process
Keep servlet session alive Hi,
I am developing an application in java swing and servlet. ... | http://www.roseindia.net/tutorialhelp/comment/91697 | CC-MAIN-2015-06 | en | refinedweb |
Python has emerged as a top programming language in terms of capabilities and usage around the world. Today, we are here to make you familiar with one of the simplest data structures for coding, i.e. arrays.
So if you wish to learn about array in Python, keep reading this tutorial till the end to understand how to find... | https://www.upgrad.com/blog/arrays-in-python/ | CC-MAIN-2021-31 | en | refinedweb |
Camera Client/Camera Server Interaction
<< Back to the EasyImage Toolkit page
Tutorial - Camera Example
What you will learn
This tutorial illustrates the facilities in EasyImage's CameraClient API. Above and beyond what you learnt in the Minimal Camera Example, you will learn how to
- discover several properties of the... | https://grouplab.cpsc.ucalgary.ca/cookbook/index.php/Toolkits/CameraExample | CC-MAIN-2021-31 | en | refinedweb |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.