text stringlengths 454 608k | url stringlengths 17 896 | dump stringclasses 91
values | source stringclasses 1
value | word_count int64 101 114k | flesch_reading_ease float64 50 104 |
|---|---|---|---|---|---|
An exception is an abnormal condition that arises in a code sequence at run time. For example, read a non-existing file.
A Java exception is an object that describes an exceptional condition that has occurred in a piece of code.
Java exception handling is managed via five keywords:
try, catch, throw, throws, and
finall... | http://www.java2s.com/Tutorials/Java/Java_Language/6000__Java_Exception.htm | CC-MAIN-2017-43 | refinedweb | 376 | 59.5 |
Recommend a video resource of Gupao College: link: Password: e54x
First, I will answer the questions that students didn't add in the previous release "be careful when using HashMap". I'd better say how HashMap solves the problem of dead cycle in JDK8.
The link list part corresponds to the transfer code above:; }
Since ... | https://programmer.ink/think/what-has-hashmap-jdk-changed-since-1.8.html | CC-MAIN-2021-39 | refinedweb | 3,283 | 66.67 |
Next article: Friday Q&A 2009-02-06: Profiling With Shark
Previous article: Friday Q&A 2009-01-23
Tags: codeinjection evil fridayqna hack
Welcome back to another exciting Friday Q&A.; This week I'll be taking Jonathan Mitchell's suggestion to talk about code injection, the various ways to do it, why you'd want to, and ... | https://www.mikeash.com/pyblog/friday-qa-2009-01-30-code-injection.html | CC-MAIN-2018-30 | refinedweb | 3,922 | 63.29 |
Which style is preferable?
Style A:
def foo():
import some_module
some_module.something
import some_module
def foo():
some_module.something
some_module
Indeed, as already noted, it's usually best to follow the PEP 8 recommendation and do your imports at the top. There are some exceptions though. The key to understandin... | https://codedump.io/share/qcwiwAAD8XGP/1/imports-at-global-level-or-at-function-level | CC-MAIN-2016-50 | refinedweb | 257 | 62.78 |
<div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>I think /*@dependent@*/ or /*@shared@*/ could both work, i.e.,<br>"static /*@dependent@*/ char *statictest(){..." <br><br>at memory that splint uses. That is understandable. There is... | http://www.cs.virginia.edu/pipermail/splint-discuss/attachments/20070305/068cb4ab/attachment.htm | crawl-002 | refinedweb | 579 | 53.1 |
.
If the root causes are simple (Memory footprint, high CPU load, high IO) then the stats available from Task Manager can help indicate if there are some misbehaving services or applications. Open Task Manager, go to Processes, on the view menu click "Select Columns" and enable tracking for "CPU Time", "Peak Working Se... | http://serverfault.com/questions/79190/what-diagnostic-information-can-i-give-my-system-administrator-to-help-him-diagn | CC-MAIN-2015-06 | refinedweb | 866 | 57.91 |
This is the final codelab in the Kotlin Bootcamp. In this codelab you learn about annotations and labeled breaks. You review lambdas and higher- order functions, which are key parts of Kotlin. You also learn more about inlining functions, and Single Abstract Method (SAM) interfaces. Finally, you learn more about the K... | https://developer.android.com/codelabs/kotlin-bootcamp-sams?hl=pt-br | CC-MAIN-2021-31 | refinedweb | 3,046 | 57.87 |
\ , _ _ |,' _ ' / (_)\\|`,_;,' ,', ,'- \ ,#&&&&&&&&--'| \_;#&&&& '- #&%%%%%%%%%&& #&&%%%& #&&&&&&&&&& #&oo%&&&&&%%%o& #&&%%%%%& #&%%%%%%%%%&& #&ooo& ##&oooo&#&&o%ooo%%& #&%%%%%%%%%%&& #&ooo&&&&&ooooo&#&&ooooooo& #&oo%&&&%%%%%%& #&%ooooooooooo&#&&ooo%&%ooo&#&ooo&##&oooo%& #&%%%%&&&&&!%%&#&&%%%%& &%%%%&&ooo& #&ooooo& #&%... | http://www.gamefaqs.com/console/n64/file/196973/50444 | crawl-002 | refinedweb | 23,796 | 90.7 |
I absolutely love the idea of Smart Clients. The more exposure I have to them the more I see the vast potential they offer. In my first article on Smart Clients, I had a personal goal to tackle the main tenants of Smart Client design. There are two aspects of Smart Client design I touched on in that article, but wanted... | http://www.codeproject.com/KB/smart/TimePiece.aspx | crawl-002 | refinedweb | 1,040 | 63.09 |
Here's the concept.
class TheCompositeThing(Builder): attribute1 = SomeItem("arg0") attribute2 = AnotherItem("arg1") more_attributes = MoreItems("more args")
The idea is that when we create an instance of TheCompositeThing, inWe've looked at three ways to build composite objects:
- As independent attributes with an fle... | http://slott-softwarearchitect.blogspot.com/2016/03/the-composite-builder-pattern-example.html | CC-MAIN-2018-51 | refinedweb | 248 | 58.58 |
Overview
This is part two of a five-part series of tutorials about making games with Python 3 and Pygame. In part one, I introduced the series, covered the basics of game programming, introduced Pygame, and examined the game architecture.
In this part, we'll look at the
TextObject class used to render text on the scree... | https://code.tutsplus.com/tutorials/building-games-with-python-3-and-pygame-part-2--cms-30082 | CC-MAIN-2021-04 | refinedweb | 1,201 | 68.06 |
Details
Description
AjaxFormComponentUpdatingBehavior works with Firefox, but doesn't work when using IE7.
I also observed similar problems when using AjaxEventBehavior as well.
The error returned via the ajax debug console was: "Could not locate ajax transport. Your browser does not support the required XMLHttpRequest... | https://issues.apache.org/jira/browse/WICKET-1646 | CC-MAIN-2016-26 | refinedweb | 1,153 | 50.33 |
I'm currently building a GPS logging geiger counter, using a raspberry pi zero w and a Ublox Neo 6M GPS module.
Connected via serial, not USB
Interfacing is happening fine, but I have a weird issue that I cannot find any reference to anywhere.
My waypoints are "clustering", and by that I mean that when I log points, th... | https://www.raspberrypi.org/forums/viewtopic.php?p=1539659 | CC-MAIN-2019-51 | refinedweb | 301 | 70.23 |
Tutorial 1d: Introducing randomness¶
In the previous part of the tutorial, all the neurons start at the same values and proceed deterministically, so they all spike at exactly the same times. In this part, we introduce some randomness by initialising all the membrane potentials to uniform random values between the rese... | https://brian.readthedocs.io/en/1.4.3/tutorial_1d_introducing_randomness.html | CC-MAIN-2019-30 | refinedweb | 247 | 51.89 |
etcd4s alternatives and similar packages
Based on the "Database" category.
Alternatively, view etcd4s alternatives based on common mentions on social networks and blogs.
Slick9.4 8.4 etcd4s VS SlickScala Language Integrated Connection Kit. Slick is a modern database query and access library for Scala
Elastic4s9.2 8.9 e... | https://scala.libhunt.com/etcd4s-alternatives | CC-MAIN-2021-25 | refinedweb | 1,298 | 52.15 |
I).
I'm not saying we should do exactly what I outline here, or indeed that we must do it at all, but it's the culmination of quite a lot of research into asynchronous support, what it means, and how we can add it to Django in a feasible way rather than rewriting everything.
Firstly, let's start with what this is not. ... | http://www.aeracode.org/2018/06/04/django-async-roadmap/ | CC-MAIN-2018-34 | refinedweb | 2,872 | 52.63 |
Ok I’ll admit Part 2 to my “Beginner’s Guide To Using Google Plus .NET API” has been on the back-burner for some time (or maybe it’s because I completely forgot). After getting quite a few email recently on the subject, I thought now would be the best time to continue with Part 2.
It’s recommended you take a gander at ... | https://www.surinderbhomra.com/Blog/2013/01 | CC-MAIN-2020-16 | refinedweb | 515 | 54.73 |
TinyWorld – Part 7
Under the hood
Hello!
In Introduction to the TinyWorld application we introduced the TinyWorld muti-part tutorial, describing how to develop applications for SAP HANA and XS Advanced, using the SAP Web IDE for SAP HANA (Web IDE).
Now it is time to dive under the hood, and understand a little bit more... | https://blogs.sap.com/2016/03/29/developing-with-xs-advanced-under-the-hood/ | CC-MAIN-2021-31 | refinedweb | 1,309 | 52.9 |
"Eric M. Ludlam" <eric@...> writes:
> Your below example was excellent. It exposed an area of namespaces
> that wasn't yet supported. I was able to fix the second problem in
> semantic-c.el, and semantic-analize.el such that it worked for your
> below example.
Sweet!
> If you could get the latest from CVS and let me kn... | http://sourceforge.net/p/cedet/mailman/message/8181932/ | CC-MAIN-2016-07 | refinedweb | 269 | 52.05 |
I am using Aspose.words for the first time. Its easy to add the export formats, but when I export to word(docx) all the headlines are shown in vertical. Please help me solving this issue.
Hi<?xml:namespace prefix = o
Thanks for your request. Could you please attach your RDL report for testing? We will investigate the p... | https://forum.aspose.com/t/aspose-words-for-reporting-services-showing-text-in-vertical/99363 | CC-MAIN-2022-40 | refinedweb | 128 | 70.29 |
Agenda
See also: IRC log
Tom: Telecon next week, Guus to chair.
PROPOSED to accept minutes of the last telecon:
RESOLVED to accept the minutes
ACTION: Ed to investigate what text could be added to primer re. concept co-ordination [recorded in] [CONTINUES]
ACTION: Guus to write primer text re: broaderGeneric and equival... | http://www.w3.org/2008/06/24-swd-minutes.html | CC-MAIN-2021-49 | refinedweb | 2,281 | 68.97 |
Cairo is pretty much the main library used for drawing anything with vectors. It is used everywhere, sort of like SQLite. The website is
In the GNOME trifecta of things, Cairo provides the 2D drawing API, whereas Pango provides the Text Rendering API, and Gtk-Glib provide the toolkit/glue for all the above.
The neat th... | http://ramenboy.blogspot.com/2010/08/ | CC-MAIN-2018-09 | refinedweb | 593 | 66.64 |
Q-Learning Tic-Tac-Toe, Briefly
Sunday November 3, 2019
Tic-tac-toe doesn't call for reinforcement learning, except as an exercise or illustration. Recently, I saw several examples implementing Q-learning, all of which were rather long. I thought I'd give tic-tac-toe with Q-learning a try myself, using Python and Tenso... | https://planspace.org/20191103-q_learning_tic_tac_toe_briefly/ | CC-MAIN-2021-04 | refinedweb | 1,648 | 57.47 |
Usage Guide
Overview
What is Twilio Studio?
Twilio Studio is a visual interface to design, deploy, and scale customer communications. Twilio Studio, a new addition to the Twilio Engagement Cloud, is the first visual interface that empowers millions of cross-functional team members to design, deploy, and scale customer ... | https://www.twilio.com/docs/studio/user-guide | CC-MAIN-2021-10 | refinedweb | 3,096 | 60.75 |
I'd like to plot numerical data against non numerical data, say something like this:
import matplotlib.pyplot as pl x=['a','b','c','d'] y=[1,2,3,4] pl.plot(x,y)
However, with matplotlib plot packages you get a warning that the data is not float (ValueError: invalid literal for float(): a).
In their 'How-to', they sugge... | https://pythonpedia.com/en/knowledge-base/6974847/plot-with-non-numerical-data-on-x-axis--for-ex---dates- | CC-MAIN-2020-40 | refinedweb | 221 | 68.47 |
pthread_join()
Join thread
Synopsis:
#include <pthread.h> int pthread_join( pthread_t thread, void** value_ptr );
Since:
BlackBerry 10.0.0 non-POSIX pthread_timedjoin() function is similar to pthread_join(), except that an error is returned if the join doesn't occur before a given time.
The target thread must be joinab... | http://developer.blackberry.com/native/reference/core/com.qnx.doc.neutrino.lib_ref/topic/p/pthread_join.html | CC-MAIN-2015-11 | refinedweb | 138 | 62.85 |
-xml/perl-xml-faq
In directory sc8-pr-cvs1:/tmp/cvs-serv26784
Modified Files:
faq-style.xsl faq.css perl-xml-faq.xml
Log Message:
- added XML::Validator::Schema section
- updated XML::XSLT status
- rewrote Perl 5.8 section in the present tense :-)
- rewrote html form section
- fixed DOCTYPE for DocBook 4.2
- corrected ... | https://sourceforge.net/p/perl-xml/mailman/perl-xml-commits/thread/E1A9LFV-0006yA-00@sc8-pr-cvs1.sourceforge.net/ | CC-MAIN-2016-36 | refinedweb | 2,339 | 57.57 |
At work (my real job) today, an interesting discussion came up about how
nice it is to be able to use the Windows Scripting Host Object Model
and / or Javascript to parse and execute arbitrary strings of code "on
the fly". The .NET Platform doesn't have, in any of the supported
languages I've seen, an "EVAL" method to ... | http://www.eggheadcafe.com/articles/20030908.asp | crawl-002 | refinedweb | 747 | 50.73 |
When you need to build something people can depend on, you start with a strong foundation. For OpenShift’s foundation, we have been building on Kubernetes for over a year.
We have enjoyed the journey, but are not simply along for the ride. OpenShift has tirelessly helped make Kubernetes one of the fastest growing and s... | https://blog.openshift.com/whats-new-openshift-3-3-cluster-management/ | CC-MAIN-2017-43 | refinedweb | 2,652 | 51.89 |
In yesterday’s BlackBerry API Hidden Gems post, I showed you some of my favorite classes and methods oft overlooked within BlackBerry® APIs. I’ve got a few more in store for you today, so let’s get started!
IntVector
In the net.rim.device.api.util package there are a bunch of collections for storing primitive Java type... | http://devblog.blackberry.com/2009/08/blackberry-api-hidden-gems-part-two/?relatedposts_to=12482&relatedposts_order=3 | CC-MAIN-2015-18 | refinedweb | 647 | 58.89 |
How to find a short form of recursive defined sequences?
Hi, I'm new to sagemath.
Is there any way to so calculate/solve/find a short version of a recursive defined sequence?
E.g. I have a sequence like: (Fibonacci)
def f(n): if n == 0: return 0 if n == 1: return 1 if n == 2: return 1 else: return f(n-1)+f(n-2)
How can... | https://ask.sagemath.org/question/48820/how-to-find-a-short-form-of-recursive-defined-sequences/?sort=votes | CC-MAIN-2021-17 | refinedweb | 180 | 76.25 |
Instrumenting and listening to your code
Paul is chief architect for SoftConcepts and author of Advanced C# Programming (McGraw-Hill, 2002), among other books. He can be contacted at pkimmel softconcepts.com.
I like to watch The Discovery Channel television show American Chopper about the Teutul family () who build som... | http://www.drdobbs.com/windows/tracing-program-execution-nunit/184405769?pgno=1 | CC-MAIN-2015-32 | refinedweb | 1,365 | 64.71 |
FWIW, php7 is about 5x faster than Python on spectral norm benchmark.
There two major reasons:
* PHP uses scalar type for float and int
* PHP uses type-specialized bytecode (PHP8 will use JIT, but PHP7 dosn't)
Source code is here:
php:
Python:
The most hot function is eval_A()
```
def eval_A(i, j): # i and j are int.
i... | https://bugs.python.org/msg379282 | CC-MAIN-2021-25 | refinedweb | 164 | 57 |
Getting Started with PHP Extension Development via Zephir.
Installation
To build a PHP extension and use Zephir you’ll need the following:
- gcc >= 4.x/clang >= 3.x/vc++ 9
- gnu make 3.81 or later
- php development headers and tools
- re2c 0.13 or later
- json-c
The installation instructions vary for every platform, so... | https://www.sitepoint.com/getting-started-php-extension-development-via-zephir/ | CC-MAIN-2019-18 | refinedweb | 1,309 | 61.77 |
In most demos that you see that involve entity framework code first and ASP.NET MVC 3, localization is not mentioned. What if you want to make your data multi-language friendly? Here is a simple example: I want to have title column to be at most 30 characters in my entity:
[StringLength(30)]
public string Title { get; ... | http://www.dotnetspeak.com/asp-net-mvc/localizing-customizing-entity-framework-and-asp-net-mvc-3/ | CC-MAIN-2022-21 | refinedweb | 814 | 55.74 |
Swift - Environment
Local Environment Setup
Swift 4 provides a Playground platform for learning purpose and we are going to setup the same. You need xCode software to start your Swift 4 coding in Playground. Once you are comfortable with the concepts of Swift 4, you can use xCode IDE for iSO/OS x application developmen... | https://www.tutorialspoint.com/swift/swift_environment.htm | CC-MAIN-2018-51 | refinedweb | 291 | 57.4 |
08 December 2010 03:45 [Source: ICIS news]
By Malini Hariharan
DUBAI (ICIS)--Global monoethylene glycol (MEG) markets are likely to remain robust in 2011, supported by strong demand from ?xml:namespace>
“If the dynamics stay intact, there is nothing that we see now [to show] that 2011 will not be as good as 2010. And t... | http://www.icis.com/Articles/2010/12/08/9417515/gpca-10-meg-to-remain-strong-in-2011-on-china-demand.html | CC-MAIN-2013-48 | refinedweb | 389 | 53.95 |
Let's say I've the following drawing:
Is it more likely to use an Array or a List?
(The max of Px (p1,p2...) is 10)
If it's possible to do in an Array can you please give me a quick explanation how?
Let's say I've the following drawing:
Is it more likely to use an Array or a List?
(The max of Px (p1,p2...) is 10)
If it... | https://www.daniweb.com/programming/software-development/threads/401582/a-list-or-an-array | CC-MAIN-2021-04 | refinedweb | 354 | 75.81 |
Hi i have the following little programme which prints out some numbers from an Array i declared at the start which holds 5 values. Once the 5 values are printed the programme catches the exception and prints out the message, as there are no more numbers to print!.
Here is the code.
Code :
package ClientServer; public c... | http://www.javaprogrammingforums.com/%20whats-wrong-my-code/11566-printing-out-numbers-array-printingthethread.html | CC-MAIN-2014-52 | refinedweb | 141 | 63.19 |
Conor MacNeill wrote:
>> 3. If you don't need namespaces, you'll not have to use them. I.e. if you
>> have a simple project and use few libs - you can still use the simpler
>> syntax.
>
> what is the "simpler syntax"? You mean no namespace qualifiers? How do you
> see both these mechanisms working at once? - defining a... | https://mail-archives.eu.apache.org/mod_mbox/ant-dev/200301.mbox/%3Cav9k8t$o9b$1@main.gmane.org%3E | CC-MAIN-2021-25 | refinedweb | 374 | 75.1 |
I'm buying: vinegar, Worcestershire sauce, brown sugar and chili sauce.
What are we making?
The flowers role is easy - I'm trying shamelessly to impress Shira.
--Ben
Update: The answer: Sloppy Joe's. And boy was it good.
I'm buying: vinegar, Worcestershire sauce, brown sugar and chili sauce.
What are we making?
The flo... | http://www.blogbyben.com/2007_08_01_archive.html | CC-MAIN-2018-22 | refinedweb | 5,996 | 74.19 |
#include <IOStream_T.h>
Inheritance diagram for ACE_Streambuf_T:
We will be given a STREAM by the iostream object which creates us. See the ACE_IOStream template for how that works. Like other streambuf objects, we can be input-only, output-only or both.
Definition at line 39 of file IOStream_T.cpp.
00042 : ACE_Streamb... | http://www.theaceorb.com/1.3a/doxygen/ace/classACE__Streambuf__T.html | CC-MAIN-2017-51 | refinedweb | 382 | 67.15 |
I want to use external javascript library (MyLib) without typings in my XClient.ts file so I created a dump declaration file for external lib, (myLib.d.ts) When I import myLib to XClient, everything is ok in XClient constructor but typescript compiler throw error at "readonly _lib: MyLib;" line of XClient.ts
Compiler e... | https://codedump.io/share/Dmp5An5hhdzw/1/typescript-compiler-throw-error-39error-ts2304-cannot-find-name39-in-class | CC-MAIN-2017-47 | refinedweb | 148 | 66.13 |
We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello! This script only requires a bunch of .mp4s in the data folder. You'll see a collage of 9 videos (or duplicates) in different positions and transparencies. The thing runs ok but even pre-loading the videos a... | https://forum.processing.org/two/discussion/28057/multiple-videos-smoothness-threaded-playback | CC-MAIN-2019-43 | refinedweb | 1,175 | 72.16 |
PMD is a utility for finding problems in
Java code. PMD does this using static analysis; that is, analyzing
the source code without actually running the program. PMD comes with a number
of ready-to-run rules that you can run on your own source code to find unused
variables, unnecessary object creation, empty catch bloc... | http://www.onjava.com/2003/02/12/static_analysis.html | CC-MAIN-2014-52 | refinedweb | 846 | 53.1 |
Wiki
SCons / ReduceMemory
Memory Reduction Techniques
This page describes techniques for reducing the memory footprint of a SCons build. The first part addresses SCons users while the second part discusses techniques that can be applied to reduce the memory consumption in SCons itself.
User Guide
SCons implements some ... | https://bitbucket.org/scons/scons/wiki/ReduceMemory | CC-MAIN-2015-32 | refinedweb | 644 | 64 |
daemon rotates socket on restart
Bug Description
[Impact]
* Lack of option for disabling wsgi socket rotation leads to errors on graceful restarts, making them not as graceful.
* Specifically, when mod-wsgi is running in daemon mode (which uses
sockets), and a graceful restart ('sudo systemctl reload apache2')
happens,... | https://bugs.launchpad.net/ubuntu/+source/mod-wsgi/+bug/1863232 | CC-MAIN-2021-17 | refinedweb | 2,227 | 57.27 |
In this section, we discuss
issues that emerge in database applications when multiple users
access a database system; some users are inserting, updating, or
deleting data, while others run queries.
To motivate the problems and solutions discussed here, consider an
example. Imagine a user of the winestore wants to buy t... | https://docstore.mik.ua/orelly/webprog/webdb/ch06_02.htm | CC-MAIN-2020-05 | refinedweb | 2,304 | 52.7 |
Note: Article has been updated - see Appendix A - Version 1.1
The Azure Event Grid represents an eventing Pub/Sub model with pre-built publishers of the event interests in the Azure resources. The following picture shows this model with fundamental entities such as Event Sources, Topics, Event Subscriptions and Event H... | https://codeproject.freetls.fastly.net/Articles/1254463/Azure-Event-Grid-Tester | CC-MAIN-2021-31 | refinedweb | 5,506 | 51.58 |
OcempGUI 0.2.0-alpha2 has been released.
OcempGUI is a python based toolkit for creating (graphical) user
interfaces using the pygame library. It offers various widgets and base
classes, which make it suitable for a broad range of projects and easily
extensible.
Note:
----
This is a prerelease package, which does not c... | http://sourceforge.net/p/ocemp/mailman/ocemp-devel/thread/20060704151129.GA628@medusa.sysfault.org/ | CC-MAIN-2015-11 | refinedweb | 255 | 61.43 |
Hi,
There's been a few mentions about writing an XSL transformation for
converting node type definitions from the XML format to the more
readable CND format. The equivalent functionality is already available
in terms of the XML and CND reader and writer classes in Jackrabbit,
but an XSL transformation is in many cases ... | http://mail-archives.apache.org/mod_mbox/jackrabbit-dev/200609.mbox/%3C510143ac0609051418n9b038b0h720721c876464df0@mail.gmail.com%3E | CC-MAIN-2014-41 | refinedweb | 166 | 51.38 |
Tutorial 2: Setting up OpenGL with WindowsEdit
Using the code from the first lesson (Win32 primer), we are going to set up the Windows program to work with OpenGL. First off, start up the Dev – C++ project that we worked on in the first lesson.
Linking the OpenGL librariesEdit
When you open up your Windows project, go ... | http://en.m.wikibooks.org/wiki/OpenGL_Programming/GLStart/Tut2 | CC-MAIN-2014-52 | refinedweb | 3,298 | 68.2 |
.
In script1.py place this:
def main():
do something
if __name__ == "__main__":
main()
In script2.py:
import script1
if condition:
script1.main()()
The child process flushes its output buffers on exit but the prints from
the parent are still in the parent's buffer. The solution is to flush the
parent buffers before run... | http://www.w3hello.com/questions/Modify-configuration-python-script-inside-modification-tool-script-python- | CC-MAIN-2018-17 | refinedweb | 221 | 60.11 |
Hi guys,
I am trying to create a simple tool to copy XY from where i click the mouse button. What i have done already is:
1. create add-in files using Python Add-In Wizard
2. create toolbar and tool inside it
in *.py file i got:
import arcpy import pythonaddins import win32clipboard as clipboard class p_tool(object): "... | https://community.esri.com/thread/115585-copying-xy-to-clipboard-using-python-add-in | CC-MAIN-2019-13 | refinedweb | 201 | 59.5 |
simplemail 0.2
An easy way to send emails in Python
## Overview
**simplemail** is an easy way to send emails in Python. It will use a sendmail binary which is almost always available and ready to go.
## Dependencies
- Python 2.6 or 2.7
## Sample usecase
The code has docstrings which explains how to use the library. But... | https://pypi.python.org/pypi/simplemail/0.2 | CC-MAIN-2017-39 | refinedweb | 395 | 51.34 |
First of all StreamWriters and StreamReaders are used for writing or reading from some .txt file, later you can do whatever you want from them, put them into loops, or whatever. So let's start.
First thing you will do is to call IO(input/output) library.
using System.IO;Than you can put start using streamwriter or read... | http://forum.codecall.net/topic/67343-streamwriters-and-streamreaders/ | CC-MAIN-2019-51 | refinedweb | 563 | 65.01 |
The Rise of Test Impact Analysis
Test Impact Analysis (TIA) is.
07 August 2017
Contents. Those teams might also harbor someone who sometimes wants to 'economize' on the agreed integration process and NOT run tests. Luckily, CI servers and a decent series of build steps are how you quickly catch those moments.
Various t... | https://martinfowler.com/articles/rise-test-impact-analysis.html | CC-MAIN-2017-34 | refinedweb | 4,758 | 57.91 |
A while back I came a problem:
I needed to build for a client an activity that runs on an unknown number of projects and builds them with DevEnv 2005/2008/2010.
I needed to create an editor that allows the user to select projects to be built in DevEnv and additional properties for each project such as “DevEnv version” ... | http://blogs.microsoft.co.il/oshryhorn/2011/07/14/the-tfs-build-definition-listlttgt-ootb-uitypeeditor/ | CC-MAIN-2013-48 | refinedweb | 694 | 69.62 |
.
Citation format
van Gent, P. (2016). Emotion Recognition Using Facial Landmarks, Python, DLib and OpenCV. A tech blog about fun things with Python and embedded electronics. Retrieved from:
IE users: I’ve gotten several reports that sometimes the code blocks don’t display correctly or at all on Internet Explorer. Plea... | http://www.paulvangent.com/2016/08/05/emotion-recognition-using-facial-landmarks/?replytocom=619 | CC-MAIN-2020-29 | refinedweb | 16,824 | 66.74 |
You’ve probably noticed that a lot of the methods so far have been declared to throw DOMException. This class itself is shown in Example 9.15 This is the generic exception for essentially anything that can go wrong while working with DOM ranging from logical errors like making an element one of its own children to impl... | http://www.cafeconleche.org/books/xmljava/chapters/ch09s10.html | CC-MAIN-2019-09 | refinedweb | 1,051 | 53.61 |
ISO Updates C Standard 378
An anonymous reader writes )."
First post!! (Score:5, Insightful)
Actually, who cares about that?
Seriously, though, am I the only one who finds it strange that one has to buy copies of the standard?
Re: (Score:2)
Not really, a lot of books cost money. Why would this one be different?
Re:Firs... | https://developers.slashdot.org/story/11/12/24/0145238/iso-updates-c-standard | CC-MAIN-2018-17 | refinedweb | 3,944 | 63.7 |
-
- The Future of Programming
- Characters & Strings, Part I
- Characters & Strings, Part II
- Predictions for 2005
- My Ten Favorite C++ Books, Part I
- My Ten Favorite C++ Books, Part 2
- Aspect Oriented Programming
- 64-Bit Technology: Is It Greek To You?
- Agile Methodologies
- Agile Methodologies, Part 2
- Disast... | http://www.informit.com/guides/content.aspx?g=cplusplus&seqNum=480 | CC-MAIN-2014-35 | refinedweb | 1,118 | 51.28 |
Protect Custom Metadata Types and Records
Learning Objectives
- Identify the options for protecting custom metadata types.
- Control the editability of a field.
- Protect custom metadata records.
When you create a custom metadata type, you can determine who can access and change the type.
- Public — Regardless of the t... | https://trailhead.salesforce.com/pt-BR/content/learn/modules/custom_metadata_types_adv/cmt_manageability?trail_id=configure-your-app-with-custom-metadata-types | CC-MAIN-2021-21 | refinedweb | 768 | 55.64 |
The QStatusTipEvent class provides an event that is used to show messages in a status bar. More...
#include <QStatusTipEvent>
Inherits QEvent.
The QStatusTipEvent class provides an event that is used to show messages in a status bar.
Status tips can be set on a widget using QWidget::setStatusTip(). They are shown in th... | http://doc.trolltech.com/4.0/qstatustipevent.html | crawl-001 | refinedweb | 117 | 69.48 |
When I was developing a relational database engine, I was testing some queries in Microsoft SQL Server, and I found that some simple queries were taking a very long time to be executed, or I received a message "not enough space on the disk". After some investigation, I found that the problem was in the saving of the qu... | http://www.codeproject.com/Articles/25728/Database-Virtual-Cursor?msg=2532255 | CC-MAIN-2014-35 | refinedweb | 5,976 | 52.29 |
#include <DEP_ContextOptionsFwd.h>
Transient Read Handles are simply accessors to the internal data of the original handle. Unlike normal read handles, transient read handles don't result in a tracked reference to the underlying data, and so have lower overhead, but are unsafe to use outside the scope of, or after any ... | https://www.sidefx.com/docs/hdk/class_u_t___c_o_w_transient_read_handle.html | CC-MAIN-2022-27 | refinedweb | 126 | 50.67 |
.
In Visual Studio 2010, we plan to give customers the ability to use T4 templates to generate their classes, and are also planning deep integration with the Entity Designer and Visual Studio to provide a great end-to-end experience..
As many of you are aware, VS 2010 allows developers to target FX4.0 as well as FX3.5 ... | http://blogs.msdn.com/efdesign/ | crawl-002 | refinedweb | 1,260 | 51.68 |
OSM Map On Magellan/Format/raimadb
Contents
Raima DB
The Magellan Map file uses a Raima DB Version 3.0 for storing text informations. This tries not to be a complete specification on the data base binary format. It shall only list, what is needed to know about it, to generate a compatible map.
The Raima Db conatains se... | https://wiki.openstreetmap.org/wiki/OSM_Map_On_Magellan/Format/raimadb | CC-MAIN-2020-45 | refinedweb | 705 | 67.96 |
STL provides a template based set of collection classes, and methods for working on those collections. The collection classes give the developer access to fast and efficient collections. While the methods, which are known as the algorithms, provide template based collection manipulations functions.
The benefits of STL ... | http://www.codeproject.com/KB/stl/stlintroduction.aspx | crawl-002 | refinedweb | 3,160 | 50.77 |
Integration of REST API into site urls, and using piston resources to serve standard views
The way I would like to use piston differs from the recommendations in one big way: I don't place my API under /api/, and instead, I scatter the API across my whole site to correspond with the standard HTML views that my site pro... | https://bitbucket.org/jespern/django-piston/issues/89/integration-of-rest-api-into-site-urls-and | CC-MAIN-2017-34 | refinedweb | 701 | 66.33 |
New EntityInstance via SessionBeannimo stephan Aug 27, 2008 2:19 PM
Hello,
I have EJB-Project.
In the WEB-INF/classes, I have a POJO called
Pojo.java.
In my EJB, I have a SessionBean called
SessionBean and an EntityBean called
Entity.
Now, I want to create a new Instance of my Entity within my
Pojo. All works with Inje... | https://developer.jboss.org/thread/183671 | CC-MAIN-2018-39 | refinedweb | 361 | 63.09 |
Simple Introduction to Generics in C#
Generics in C# gives the ability to write type independent code rather than allowing a class or method to work with only a specific type.
Let’s consider a scenario where we have to consume a REST service and Deserialize the response to a defined object. The code would be something ... | http://raathigesh.com/Simple-Introduction-to-Generics-in-C/ | CC-MAIN-2018-26 | refinedweb | 303 | 64.51 |
by Jim Bray
(editor's note: this article refers to software aimed at the
Canadian market)
It's tax time again.
Preparing your tax return is an annual ordeal that forces you to
calculate how many kilos of flesh the various levels of government are going to
extract from you this time. And with more than 80 changes to the... | http://www.technofile.com/articles/tax_software_2002.html | crawl-002 | refinedweb | 931 | 58.01 |
Abstract base class for objects that can be drawn to a render target. More...
#include <Drawable.hpp>
Abstract base class for objects that can be drawn to a render target.
sf::Drawable is a very simple base class that allows objects of derived classes to be drawn to a sf::RenderTarget.
All you have to do in your derive... | https://www.sfml-dev.org/documentation/2.3/classsf_1_1Drawable.php | CC-MAIN-2019-39 | refinedweb | 147 | 67.25 |
I've created a notification bar on a form and basically have it exactly how I need it... Except, when I put a fade in feature, the taskbar icon doesn't show up. To my application, it's necessary, because the taskbar icon flashes orange when a notification is shown. I've checked the obvious such as: my
ShowInTaskbar
Imp... | https://codedump.io/share/mNg4xVrwWrw7/1/taskbar-icon-won39t-show-when-i-have-a-fade-in-feature-in-my-form | CC-MAIN-2018-09 | refinedweb | 233 | 62.14 |
For the purposes of this exercise, I shall be borrowing heavily from Imar Spaanjaar's N-Layer design article series presented here: Building Layered Web Applications with Microsoft ASP.NET 2.0. I would strongly recommend that you read the series of articles, or at least the first two to familiarise yourself with the ba... | http://www.mikesdotnetting.com/Article/132/ASP.NET-MVC-is-not-all-about-Linq-to-SQL | CC-MAIN-2019-47 | refinedweb | 5,002 | 57.06 |
On 17/11/2010 21:22, Georg Brandl wrote: > Am 17.11.2010 22:16, schrieb Éric Araujo: >>> Excluding a builtin name from __all__ sounds like a perfectly sensible >>> idea, so even if it wasn't deliberate, I'd say it qualifies as >>> fortuitous :) >> But then, a tool that looks into __all__ to find for example what >> obj... | https://mail.python.org/pipermail/python-dev/2010-November/105705.html | CC-MAIN-2014-10 | refinedweb | 186 | 66.17 |
Most social projects need a notification system. We need to inform users when a comment has been made on a post they have authored or if someone has commented on a post they have commented on. We also use notifications to tell users when admins/managers upload new files.
Traditionally this is accomplished through a sim... | https://tech.willandskill.se/real-time-notifications-with-firebase-django-and-backbone/ | CC-MAIN-2018-39 | refinedweb | 297 | 61.02 |
Today we're going to go over how to make your application do a "fade-in". One common place that Windows users see this is with Microsoft Outlook's email notification. It fades in and then back out. wxPython provides a way to set the alpha transparency of any top window, which affects the widgets that are placed on the ... | https://www.blog.pythonlibrary.org/2008/04/14/doing-a-fade-in-with-wxpython/ | CC-MAIN-2022-27 | refinedweb | 319 | 69.68 |
pair_style python command
Syntax
pair_style python cutoff
cutoff = global cutoff for interactions in python potential classes
Examples
pair_style python 2.5 pair_coeff * * py_pot.LJCutMelt lj pair_style hybrid/overlay coul/long 12.0 python 12.0 pair_coeff * * coul/long pair_coeff * * python py_pot.LJCutSPCE OW NULL
Des... | https://lammps.sandia.gov/doc/pair_python.html | CC-MAIN-2018-30 | refinedweb | 1,197 | 52.39 |
On Mar 13, 2013, at 08:52, Bjoern Drabeck wrote: > Btw I think there are still a couple more issues with the configure going wrong sometimes, depending what options I choose. Bit later when I got more time I can create a list of options and outcomes.. Will try to see if I can get a debug build to work which allows me t... | http://ffmpeg.org/pipermail/ffmpeg-devel/2013-March/140442.html | CC-MAIN-2022-05 | refinedweb | 178 | 67.22 |
This
Good to hear you were finally able to get it working! I should perhaps have made it clearer that you need to enter the entire namespace rather than just the number.
I trust everything is working OK for you now??.
Having said that, you could use Bluetooth/WiFi transceivers (as mentioned by natasha_93 - thanks!) to ... | http://www.instructables.com/id/Remote-controlled-webcam-using-Arduino-SensorMonk/?comments=all | CC-MAIN-2015-18 | refinedweb | 846 | 63.59 |
By Shruthi T on Oct 14, 2016 5:39:36 AM
Whenever you instantiate an object in your .net application, some memory is allocated to store that object. But at some point that object may no longer be needed by your application. If you want to reuse that memory in your application, we have to de-allocate that memory first. A... | https://blog.trigent.com/how-net-garbage-collection-works | CC-MAIN-2018-51 | refinedweb | 529 | 56.05 |
OK. This is my first post on this site, and I consider myself quite a beginner in C++. I want to know how to open up a
document using C++. Ive tried many times, but it just comes up with a blank console which goes away when I press
enter. I suspect the problem is that I am making a cionsole application instead of some ... | http://forums.codeguru.com/printthread.php?t=531863&pp=15&page=1 | CC-MAIN-2015-18 | refinedweb | 158 | 66.54 |
Advertise Jobs
Perl
module
-
Part of CPAN
distribution
Inline-Java 0.30.
Inline::Java - Write Perl classes in Java.
my $alu = new alu() ;
print "9 + 16 = ", $alu->add(9, 16), "\n";
print "9 - 16 = ", $alu->subtract(9, 16), "\n";
use Inline Java => <<'END_OF_JAVA_CODE';
class alu {
public alu(){
}
public int add(int i, ... | http://aspn.activestate.com/ASPN/CodeDoc/Inline-Java/Java.html | crawl-002 | refinedweb | 2,206 | 62.98 |
First time here? Check out the FAQ!
Now it's all up.. thanks!
Hi. I just tried to use fixed ips by setting use_floating_ips=false and it now goes on, and stops again with Heat problem.. ha..
Thanks for your answer. I was following the guide, so I'm not sure which part of configuration is telling to use which Heat stack... | https://ask.openstack.org/en/users/18182/openstackstarter/?sort=recent | CC-MAIN-2020-34 | refinedweb | 596 | 52.56 |
learning vs. classifying modules
A place to ask questions about methods in Orange and how they are used and other general support.
2 posts • Page 1 of 1
learning vs. classifying modules
I know that Orange has a learning module for each classifier but does it have a classification module can be used to apply the learned... | http://orange.biolab.si/forum/viewtopic.php?f=4&t=1648&p=4672 | CC-MAIN-2014-15 | refinedweb | 148 | 51.44 |
Before we learn how to create functions, let’s go over some built-in functions…
C++ comes chock-full of functions that are already created as part of the standard library. But how do we access this hidden hoard of helpful functions? We gain access to various functions by including headers like
<cmath> or
<string>.
In f... | https://production.codecademy.com/courses/learn-c-plus-plus/lessons/cpp-functions/exercises/built-in-cpp-functions | CC-MAIN-2021-04 | refinedweb | 186 | 64.71 |
API.
This information puts into stark light some of the falsehoods told by Microsoft when Windows 8 was announced. In the //Build keynotes it was said that most Silverlight code could be upgraded to WinRT with minimal changes such as modifying namespaces. But if you look at the list of controls between Silverlight 5 an... | http://www.infoq.com/news/2013/06/Diff-Lists | CC-MAIN-2015-18 | refinedweb | 271 | 67.65 |
Interview: Amr ElAdawy, JSPX Java Web Framework Developer
Amr ElAdawy is a software engineer at Etisalat Egypt in Cairo. Etisalat is an Egyptian Mobile operator, where Amr develops Java enterprise applications for telecommunications & sales.
He is a member of a small community that is developing and supporting a web fr... | https://dzone.com/articles/interview-amr-eladawy-jspx-jav | CC-MAIN-2015-35 | refinedweb | 1,172 | 56.45 |
How do I determine the username of the currently logged in user from a python script? Elsewhere we are using scripted auth and that python script has several methods that Splunk calls and passes in the username; each method makes a HTTP POST to a REST API running on one of our servers. We need to use a similar approach... | https://community.splunk.com/t5/Security/Determine-currently-logged-in-username/td-p/93113 | CC-MAIN-2020-34 | refinedweb | 339 | 60.21 |
Tutorial 12: Getting Started with DotStars (APA102)
DotStars, also known as the APA102, are individually addressable LEDs. With them you can create persistence of vision (POV) displays, achieve a wide range of colors, and patterns relevant to your project.
In this tutorial I show you how you can connect a strip of DotS... | http://thezanshow.com/electronics-tutorials/arduino/tutorial-12 | CC-MAIN-2019-39 | refinedweb | 501 | 62.88 |
0
OK, here is my c++ program that i made with "Visual C++ 2005 Express Edition"....
#include<cstdlib> #include<ctime> #include<iostream> using namespace std; int main() { cout << "Welcome To Danny's Game!.\n"; cout << "See if you can beat me.\n"; cout << "The First number below is your number.\n"; srand((unsigned)time(... | https://www.daniweb.com/programming/software-development/threads/68188/help-my-program | CC-MAIN-2016-50 | refinedweb | 161 | 57.98 |
Manage models
Databricks provides a hosted version of MLflow Model Registry to help you to manage the full lifecycle of MLflow Models. Model Registry provides chronological model lineage (which MLflow experiment and run produced the model at a given time), model versioning, stage transitions (for example, from staging ... | https://docs.databricks.com/applications/machine-learning/manage-model-lifecycle/index.html | CC-MAIN-2021-43 | refinedweb | 2,665 | 54.52 |
Today, I have just released a OSS with named is Gapi4net library at codeplex. This is a wrapper some of API's Google for search Web, Local, Video, Blog, News, Book, Image, Patent and language translation. In the past, I also saw some wrapper for Google API, specially are a google-api-for-dotnet, gapidotnet. But as I re... | http://weblogs.asp.net/thangchung/archive/2010/09/13/google-api-for-net-architecture-part-1.aspx | CC-MAIN-2013-20 | refinedweb | 880 | 57.06 |
Visual inheritance is a concept that most people seem to be familiar with. However, when programmers are asked whether they're using visual inheritance, most say that they don't take advantage of it. The next section will show you what visual inheritance is, and how to take advantage of it quickly and easily within you... | https://flylib.com/books/en/1.238.1.121/1/ | CC-MAIN-2022-05 | refinedweb | 2,034 | 55.84 |
0
Hello everyone...
For now i have build a Human class and i want to test it now but on 2 lines there is an error and both errors states "void expected".
I have a main function in my class but later i gonna remove it because i want this Human class later to be a Superclass and a warrior, mage and so on will be a subcla... | https://www.daniweb.com/programming/software-development/threads/267623/void-expected-error | CC-MAIN-2016-50 | refinedweb | 176 | 63.39 |
4 years, 5 months ago.
USBHostSerial buffers and functions - talking to FTDI chip
Hi,
I am trying to use an MBED to control a GPIB instrument, by using this GPIB-USB converter () (which uses an FDTI chip) and then using the serial host library to send SCPI commands.
So far, I am able to talk to the prologix device, get... | https://os.mbed.com/questions/8000/USBHostSerial-buffers-and-functions-talk/ | CC-MAIN-2019-43 | refinedweb | 544 | 72.26 |
Andrew Watson
Total Post:39Points:273
As you can tell I am just starting out, but I have been told I will probably be good at it
public class HelloWorld {
public static void main(string[] args) {
system.out.println("Hello world") ;
}
}
the compiler says
"HelloWorld.java:3: error: cannot find symbol
public static void m... | https://www.mindstick.com/forum/12566/i-have-started-with-java-but-compiler-gives-erroer | CC-MAIN-2018-09 | refinedweb | 129 | 53 |
Problem ending conversation in RichFaces MenuItemSusanne Jarl Aug 22, 2008 11:36 AM
The following code for this works. What happens is that a new conversation is started and the user is redirected to the chooseSubject page defined by the transition in the jpdl.
<rich:menuItem
<s:link
</rich:menuItem>
Action method in h... | https://developer.jboss.org/thread/183615 | CC-MAIN-2019-18 | refinedweb | 1,275 | 53.41 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.