text stringlengths 20 1.01M | url stringlengths 14 1.25k | dump stringlengths 9 15 ⌀ | lang stringclasses 4
values | source stringclasses 4
values |
|---|---|---|---|---|
#include <wx/appprogress.h>
A helper class that can be used to update the progress bar in the taskbar button on Windows and the dock icon on OS X.
Constructs the wxAppProgressIndicator.
Destructor, stops displaying progress and returns the indicator to its normal state.
Check if the application progress display is avai... | http://docs.wxwidgets.org/trunk/classwx_app_progress_indicator.html | CC-MAIN-2017-43 | en | refinedweb |
Hi I would like to write a small program that takes the input of integers and puts them in an array, from where one can do things like calculating their mean, median, standard deviation and so forth. My Problem is that, after extracting the numbers one by one, I am stuck at putting them in an array. One problem is that... | http://cboard.cprogramming.com/cplusplus-programming/136471-putting-number-cin-into-arry.html | CC-MAIN-2015-35 | en | refinedweb |
Welcome to another fun filled tutorial. This time I will attempt to explain Volumetric Fog using the glFogCoordf Extension. In order to run this demo, your video card must support the "GL_EXT_fog_coord" extension. If you are not sure if your card supports this extension, you have two options... 1) download the VC++ sou... | http://nehe.gamedev.net/tutorial/volumetric_fog__ipicture_image_loading/18007/ | CC-MAIN-2015-35 | en | refinedweb |
I am using a servlet on a high-volume web server.
Created May 7, 2012
Peter Andrews After further research I found that if I added a call to Thread.interrupt() after the specified timeout had elapsed this stopped the Socket.open. I monitored the number of socket connections using NetStat (addinga grep for the bad ip I ... | http://www.jguru.com/faq/view.jsp?EID=735679 | CC-MAIN-2015-35 | en | refinedweb |
hi everyone, i'm a beginner in c programming so i'm here to ask you some help
sorry for grammatical errors, i'm from brazil!
i've just made the code below:
the program reads a file that contains numbers and strings, formatted like this:the program reads a file that contains numbers and strings, formatted like this:Code... | http://cboard.cprogramming.com/c-programming/121272-fscanf-fgets.html | CC-MAIN-2015-35 | en | refinedweb |
Created on 2008-10-26.21:35:12 by certik, last changed 2008-10-28.20:37:18 by fwierzbicki.
$ cat v.py
from ast import PyCF_ONLY_AST
def parse(expr, filename='<unknown>', mode='exec'):
return compile(expr, filename, mode, PyCF_ONLY_AST)
a = parse("1/2")
e = compile(a, "<string>", 'exec')
print e
$ jython v.py
Traceback ... | http://bugs.jython.org/issue1158 | CC-MAIN-2015-35 | en | refinedweb |
This is your resource to discuss support topics with your peers, and learn from each other.
12-18-2008 11:48 AM
Please pardon the "noob" nature of this question! I'm trying to get a "hello world" app to work for the first time. One of my Java files in the project has the line:
import java.util.Calendar;
This is really ... | http://supportforums.blackberry.com/t5/Java-Development/First-Time-JDE-Use/m-p/110745 | CC-MAIN-2015-35 | en | refinedweb |
Teleconference.2008.03.26/Minutes
These minutes have been approved by the Working Group and are now protected from editing. (See IRC log of approval discussion.)
See also: IRC log, Agenda
Contents
- Present
- Ian Horrocks, Markus Krötzsch, Ivan Herman, Diego Calvanese, Bernardo Cuenca Grau, Sandro Hawke, Boris Motik, U... | http://www.w3.org/2007/OWL/wiki/index.php?title=Teleconference.2008.03.26/Minutes&oldid=5888 | CC-MAIN-2015-35 | en | refinedweb |
Popular Snippets Tagged 'as2'
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
ActionScript MovieClipLoader FadeAlphaIn as2 saved by 9 people
AS2: Dynamically load image + FadeAlphaIn
posted on February 20, 2007 by chrisaiv
ActionScript effects as2 saved by 5 people
movieclip with mirror effect
po... | http://snipplr.com/popular/tags/as2/ | CC-MAIN-2015-35 | en | refinedweb |
Newsletter
Synergy-e-News is published every few weeks and provides our customers with useful and important information about our products and services.
We cover
- Announcements about product releases, updates, and patches
- Helpful technical articles written by Synergex developers and consultants
- Technical tips from... | http://www.synergex.com/newsletters | CC-MAIN-2015-35 | en | refinedweb |
go to bug id or search bugs for
Description:
------------
When a message is > 1024 bytes in size and therefore broken down into 1024 chunks, there is a 'goto send_chunk;' being called an infinite number of times because the conditional statement 'if ((parts * 1024) < data_cln_len)' is always true if it is ever true. Th... | https://bugs.php.net/bug.php?id=25037 | CC-MAIN-2015-35 | en | refinedweb |
Chic Event is simple object-oriented event system for JavaScript
Chic Event is simple object-oriented event system for JavaScript. It's built on top of Chic.
Current Version: 0.0.1
Automated Build Status:
Node Support: 0.6, 0.8
Browser Support: Untested, coming soon
You can use Chic Event on the server side with Node.j... | https://www.npmjs.com/package/chic-event | CC-MAIN-2015-35 | en | refinedweb |
Re: fgets() equivalent?
- From: Pops <dude@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 28 Nov 2007 05:04:01 -0500
Harish wrote:
(1) Is there a fgets() equivalent function in Win32
that retrieves one line of data from a file
(till a newline is found)?
(2) I can use fgets() itself, but I cannot specify
share mode options as in ... | http://www.tech-archive.net/Archive/Development/microsoft.public.win32.programmer.kernel/2007-11/msg00394.html | crawl-002 | en | refinedweb |
Re: Global subroutines
From: tshad (tscheiderich_at_ftsolutions.com)
Date: 02/03/05
- ]
Date: Thu, 3 Feb 2005 08:26:45 -0800
"fd123456" <fd123456@hotmail.com> wrote in message
news:c8d02ef8.0502030448.7b1b5a90@posting.google.com...
> Hi Tom !
>
> Sorry about the messy quoting, Google is playing tricks on me at the
> mo... | http://www.tech-archive.net/Archive/DotNet/microsoft.public.dotnet.framework.aspnet/2005-02/2230.html | crawl-002 | en | refinedweb |
Tom40 and Tom22 of the core complex have been studied extensively in both S. cerevisiae and Neurospora crassa. Tom40 is essential for viability in both organisms (Baker et al., 1990
; Taylor et al., 2003
) and is known to be the pore forming component of the complex (Hill et al., 1998
; Ahting et al., 2001
). The prot... | http://www.molbiolcell.org/cgi/content/full/16/9/4172 | crawl-002 | en | refinedweb |
How many times have you read about the merits of using the STL algorithms instead of hand written loops? Chances are this is something that you have heard a lot. The thing is, actually being able to achieve this in real world programs is not very intuitive; especially if you are new to the STL. However, once you learn ... | http://www.codeproject.com/KB/stl/replace_for_for_each.aspx | crawl-002 | en | refinedweb |
Suppose you have an existing COM component implemented in VC++ or VB. You have been using it in your desktop applications without any problem. Now you need the same functionality in your .NET projects. You could spend time to reimplement the component using C# or VB.NET but sometimes this approach is not always an idea... | http://www.codeproject.com/KB/COM/objman.aspx | crawl-002 | en | refinedweb |
It's very common to want to have trial version of your application. for example you need your application only runs for 30 days, or user can only run your application 200 times.
You can do this kind of tasks with this library.
If someone try to buy your application must call to you and read his computer ID. then you wi... | http://www.codeproject.com/KB/cs/Trial_Maker.aspx | crawl-002 | en | refinedweb |
My intention is not for this to be a massive how-to on HTTP Modules - I think this little DLL is quite useful (I know that there are similar libraries out there that does mostly the same). Hopefully, posting it on Code Project will get it out to as many people as possible.
The
Rewrite class implements the
IHttpModule i... | http://www.codeproject.com/KB/aspnet/dnn2url_rewrite.aspx | crawl-002 | en | refinedweb |
A recent project had to display long labels in the header of a table with a lot of columns. While the columns' content kept small, the header was growing huge. The best way to accomplish the task would have been to use 900 rotated texts. However, I did not know any techniques for rotating texts in HTML. So - here is th... | http://www.codeproject.com/KB/custom-controls/VerticalLabel.aspx | crawl-002 | en | refinedweb |
Security Framework Implementation
- From: "Sam.Net" <sameer_mowade@xxxxxxxxxxxxxxxx>
- Date: Thu, 17 Nov 2005 11:21:20 +0530
hello all,
I am creating the security framework for one project. There is one security
check I want to perform.
That only the users with perticular role will be able to create object of
perticula... | http://www.tech-archive.net/Archive/DotNet/microsoft.public.dotnet.framework/2005-11/msg00547.html | crawl-002 | en | refinedweb |
Windows XP SP2 basically has a small firewall. It's very easy to control, but sometimes it bothers you. When your application tries to connect to the internet, Windows shows a warning message-box, and this makes users feel your application is an Ad-Ware.
To prevent such things, I suggest you add your program to a Firew... | http://www.codeproject.com/KB/winsdk/WinXPSP2Firewall.aspx | crawl-002 | en | refinedweb |
Out of the box, the DataGridView only allows sorting by a single column. This article presents code that enables users to sort their data in a DataGridView by multiple columns. The DataGridView derived class may be used for any data types that support the IComparable interface (which includes all the basic .NET types).... | http://www.codeproject.com/KB/grid/multicolumn_sort.aspx | crawl-002 | en | refinedweb |
Generating complete code from models has been an industry goal for many years. Model-driven architecture approach provides a set of modeling notations, most based on UML, for specifying different layers of a system namely user interface, business logic and database in a platform independent manner. A set of code genera... | http://www.codeproject.com/KB/codegen/XEMLCodeGeneration.aspx | crawl-002 | en | refinedweb |
COleRichEditCtrlClass
COleRichEditCtrlClass
COleRichEditCtrlControl In Your Project
I needed a rich edit control that could display bitmaps. Searching around the Web, I could see that others have faced the same need. For me, I wanted a "light-weight" Help functionality that I could embed as an RTF resource and display ... | http://www.codeproject.com/KB/edit/COleRichEditCtrl.aspx | crawl-002 | en | refinedweb |
I.
Here's an example call of what I wanted:
SomeDiv.innerText = (new Date()).format('dddd, mmmm dd, yyyy.');
This would display:
Saturday, July 16, 2005
So in my first approach, I globally and case-insensitively replaced dddd with the corresponding string, which "destroyed" every occurrence, so that later in the code I... | http://www.codeproject.com/KB/scripting/dateformat.aspx | crawl-002 | en | refinedweb |
I believe that everyone has experienced filling in a form. If there are errord, it is annoying to find them. You know the error but you cannot find it right away. Highlighting an error field is the most preferred method for the end user. I did remember I created a similar solution in ASP before, but it required a lot o... | http://www.codeproject.com/KB/validation/smartvalidationsummary.aspx | crawl-002 | en | refinedweb |
Visual Studio makes programming Web Services a breeze. However, if you, like me, offer programs for download that uses Web Services, you will notice that various content filtering devices like firewalls and proxy servers sometimes block the Web Service calls. Ordinary HTTP traffic is almost always allowed, but some fir... | http://www.codeproject.com/KB/webservices/SOAPRelayProxy.aspx | crawl-002 | en | refinedweb |
As we all know, raster images cannot scale very well. If you try to scale the image, you will run into jagged pixelization. Of course, you can use vector images to overcome this problem. However, we still need to deal with raster images as well. Now, enter the EnhancedImage project: it simply helps us to scale the imag... | http://www.codeproject.com/KB/GDI-plus/enhancedimageprj.aspx | crawl-002 | en | refinedweb |
This source code is written and maintained by an individual, not a company. It has been provided for free to the Microsoft .NET user community with the expectation that users will take whatever action necessary to get the code to operate according to their needs. This includes debugging and enhancements. The source cod... | http://www.codeproject.com/KB/validation/ValidatorCtrl_by_VIVEK.aspx | crawl-002 | en | refinedweb |
I recently had to generate a bar chart for a Pocket PC application. There are a lot of materials on the web on this issue, articles, freeware, etc., but I couldn't find anything that worked for a compact framework.
Some times as a developer I think why take so much time to solve something that some body has already don... | http://www.codeproject.com/KB/mobile/pocketbargraph.aspx | crawl-002 | en | refinedweb |
This article gives and introduction to remote methods and events using c#.There are many articles already available on Remoting. Most of them deal with the remote methods .This article explains the implementation of a remote event also. This might be of use for beginners.
Microsoft knowledge Base Article -312114 Explai... | http://www.codeproject.com/KB/IP/csremoteevents1.aspx | crawl-002 | en | refinedweb |
Updated on 18th January, 2006 - I received many positive comments about this article and several requests to add some descriptive code to the contents. Based on this feedback, I have reworked on the article to provide a more detailed discussion - with code - of the remoting server and client setup. Please enjoy!
I have... | http://www.codeproject.com/KB/IP/SimpleRemoting.aspx | crawl-002 | en | refinedweb |
I stumbled on an MS template for creating a DAL and a BLL. The code was nice and straightforward. Everything was OK with it. Unfortunately, I began to use this structure with
TransactionScope.
As a lazy programmer, I like to use
DataTableAdapter classes. They open and close connections for me. I "copied" the style of t... | http://www.codeproject.com/KB/database/TsFix.aspx | crawl-002 | en | refinedweb |
This article will walk you through all the steps necessary to setup a sample project demonstrating how to create a CLR Trigger in SQL Server 2005 that will communicate with a WCF service of your design. This is not an introduction to WCF, but an introduction to using WCF from SQL Server 2005 CLR Triggers.
After reading... | http://www.codeproject.com/KB/database/WCFFromSQL.aspx | crawl-002 | en | refinedweb |
This article examines how to design and create dynamic user interfaces using the Windows Presentation Foundation (WPF). Along the way we will explore a demo application which uses XAML for creating a dynamic user interface to display rich and interactive alert messages to the user.
The term "dynamic user interface" ref... | http://www.codeproject.com/KB/WPF/DynamicUIs.aspx | crawl-002 | en | refinedweb |
Button is the only control where we have to struggle or have to take more effort to change its shape and properties. But, it is not that much difficult to change its properties as it seems. The only tough thing is, we need to know how to draw well. A good artist can make a good-looking button. If you know well to play ... | http://www.codeproject.com/KB/buttons/irregular_buttons.aspx | crawl-002 | en | refinedweb |
Image warping is the process of digitally manipulating an image such that any shapes portrayed in the image have been significantly distorted. While image data could be transformed in various ways, a pure image distortion means that points are mapped to points without changing the colors. This can be based mathematical... | http://www.codeproject.com/KB/GDI-plus/ImageWarp.aspx | crawl-002 | en | refinedweb |
Re: How to resolve SOAP differences
- From: "Stefan Misch" <stefan.misch@xxxxxxxxxxxxxxxxx>
- Date: Tue, 30 Aug 2005 09:34:32 +0200
If you start proxyTrace you must supply a port number, the default is 8080.
So the proxy on your PC is. This address must be set
to the "Proxy" property of HttpWebRequest. See
So you end u... | http://www.tech-archive.net/Archive/DotNet/microsoft.public.dotnet.framework.webservices/2005-08/msg00263.html | crawl-002 | en | refinedweb |
DFS, Folder Redirection and Offline Files...
- From: Gord Armstrong <GordArmstrong@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 27 Jun 2007 20:52:01 -0700
Hello to all...
We have a Windows 2003 domain, two w2k3 SP1 DCs, and my file server is w2k3
R2 SP1 Ent. All of our client machines are Windows XP SP2.
We performed a Root... | http://www.tech-archive.net/Archive/Windows/microsoft.public.windows.file_system/2007-06/msg00061.html | crawl-002 | en | refinedweb |
Re: What I don't like about C# so far, compared to C++ (managed or
- From: raylopez99 <raylopez99@xxxxxxxxx>
- Date: Tue, 07 Aug 2007 03:00:14 -0700
On Aug 6, 2:16 pm, Jon Skeet [C# MVP] <sk...@xxxxxxxxx> wrote:
Then tell us what you don't like about C# Jon.
I've done so several times in the past, but briefly:
1) The "... | http://www.tech-archive.net/Archive/DotNet/microsoft.public.dotnet.languages.csharp/2007-08/msg00873.html | crawl-002 | en | refinedweb |
Perl's functions (including things that look like functions, like some keywords and named operators) arranged by category. Some functions appear in more than one place.
chomp,
chop,
chr,
crypt,
hex,
index,
lc,
lcfirst,
length,
oct,
ord,
pack,
q//,
qq//,
reverse,
rindex,
sprintf,
substr,
tr///,
uc,
ucfirst,
y///
m//,
p... | http://search.cpan.org/~nwclark/perl/pod/perlfunc.pod | crawl-002 | en | refinedweb |
Accessing SAP WAS via SOAP / xml-namespace problem
From: stefan (tassilostefan_at_web.de)
Date: 05/13/04
- Next message: Aaron: "XML File instead of a Database"
- Previous message: Oleg Tkachenko [MVP]: "Re: XPath helper upon XmlTextReader"
- Messages sorted by: [ date ] [ thread ]
Date: 13 May 2004 06:08:45 -0700
hell... | http://www.tech-archive.net/Archive/DotNet/microsoft.public.dotnet.xml/2004-05/0227.html | crawl-002 | en | refinedweb |
Re: The Demise of C#
- From: "Juan T. Llibre" <nomailreplies@xxxxxxxxxxx>
- Date: Mon, 25 Apr 2005 10:54:13 -0400
Is there *any* way to make this thread demise ?
;-)
Juan T. Llibre
ASP.NET MVP
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================
"John" <John@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote ... | http://www.tech-archive.net/Archive/DotNet/microsoft.public.dotnet.framework.aspnet/2005-04/msg05434.html | crawl-002 | en | refinedweb |
Re: Error signature when calling GetScriptCount of IWMHeaderInfo3
- From: Helen <Helen@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 12 Feb 2008 08:48:06 -0800
Thanks Jeremy! Now I know.
Helen
"Jeremy Noring" wrote:
On Feb 11, 2:04 pm, Helen <He...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:.
It's posted before I could finish. Here is... | http://www.tech-archive.net/Archive/Media/microsoft.public.windowsmedia.sdk/2008-02/msg00065.html | crawl-002 | en | refinedweb |
Re: Multiple NET apps under 1 domain
- From: "nospam" <no@xxxxxxxx>
- Date: Fri, 05 Oct 2007 01:44:16 GMT
Patrice,
Thanks for your reply.
I have bitten the bullet and merged the 2 VS solutions into 1.
I guess I am an old crusty C++ programmer and developed the 2 individual
solutions from habit.
In regards to IIS, I use... | http://www.tech-archive.net/Archive/DotNet/microsoft.public.dotnet.framework.aspnet/2007-10/msg00654.html | crawl-002 | en | refinedweb |
XML::Records - Perlish record-oriented interface to XML
use XML::Records; my $p=XML::Records->new('data.lst'); $p->set_records('credit','debit'); my ($t,$r) while ( (($t,$r)=$p->get_record()) && $t) { my $amt=$r->{Amount}; if ($t eq 'debit') { ... } }
XML::Records provides a single interface for processing XML data on ... | http://search.cpan.org/~ebohlman/XML-Records-0.12/Records.pm | crawl-002 | en | refinedweb |
Moose - A complete modern object system for Perl 5); };
Moose is an extension of the Perl 5 object system.
Yes, I know there has been an explosion recently of new ways to build object's :)
The MooseX:: namespace is the official place to find Moose extensions. There are a number of these modules out on CPAN right now th... | http://search.cpan.org/~stevan/Moose-0.32/lib/Moose.pm | crawl-002 | en | refinedweb |
I have an Activity with a viewFlipper and a slidingDrawer.
The SlidingDrawer's Handler contains an extra button wich is clickable.
The problem is, the extra button on the handler only registers onClick when the slidingDrawer is locked, and when the slidingDrawer is locked, the viewFlipper (the rest of the layout) does ... | http://m.dlxedu.com/m/askdetail/3/8050fbf4c96a1d4d491bbdbea9111e93.html | CC-MAIN-2018-47 | en | refinedweb |
Introduction
I am by nature a very lazy person. Couple my laziness with curiosity and enthusiasm and you end up with wacky solutions to problems you never knew existed. Have you ever wondered how to programmatically add items to the Windows context menu? Let's say, for example: You would like to add an item under the '... | https://mobile.codeguru.com/csharp/.net/manipulating-the-windows-context-menu-with-.net.html | CC-MAIN-2018-47 | en | refinedweb |
Introduction
In certain cases, you must be able to read your own application's metadata in search of a property or a method. Today, I will show you how to do this in four different ways.
Reflection
Reflection provides objects that describe assemblies, modules, and types. Reflection can be used to dynamically create ins... | https://mobile.codeguru.com/csharp/.net/net_general/systeminformation/reading-class-properties-in-.net.html | CC-MAIN-2018-47 | en | refinedweb |
Python provides a variety of time and date processing methods, mainly in time and datetime modules. In this article i will show you some time and datetime module examples to tell you how to use them in python.
1. Python Represents Time In Two Ways.
1.1 Timestamp.
The timestamp is relative to the offset in seconds from ... | https://www.code-learner.com/how-to-use-python-time-datetime-module-examples/ | CC-MAIN-2020-40 | en | refinedweb |
Thanks to everyone for the very informative followups to my last post (sorry about the busted subject line, Tommie). I took <xsl:template out of all of my sheets.
I'm having trouble with transformations involving namespaces though.
All of my xsl files begin with a preamble that I've till now considered a magic incantat... | https://www.oxygenxml.com/archives/xsl-list/200501/msg00526.html | CC-MAIN-2020-40 | en | refinedweb |
-----Original Message----- From: Emmanouil Batsis
> - namespace prefixes get expanded (namespaces aren't > mentioned so far... > need to squeeze them in somewhere) > > >Remember I'm trying to help people understand what happens when from a >user view (e.g. why I can't access entities etc) so yes Andrew, I'd put >that i... | https://www.oxygenxml.com/archives/xsl-list/200501/msg00809.html | CC-MAIN-2020-40 | en | refinedweb |
In this article, you'll learn how to setup a simple login page using Angular 8, 9 and Basic HTTP authentication
In this article, you'll learn how to setup a simple login page using Angular 8.
Angular 8 - Basic HTTP Authentication Tutorial & Example Loading...
Path: /src/main.ts
The main file is the entry point used by ... | https://morioh.com/p/7da7955083ea | CC-MAIN-2020-40 | en | refinedweb |
Saiba mais sobre a Assinatura do Scribd
Descubra tudo o que o Scribd tem a oferecer, incluindo livros e audiolivros de grandes editoras.
Python XML processing with lxml
John W. Shipman
2012-08-11 16:16
Abstract
Describes the lxml package for reading and writing XML fi les with the Python programming language.
This publ... | https://pt.scribd.com/document/152559689/pylxml | CC-MAIN-2020-40 | en | refinedweb |
:
CS_DROPSHADOW
As a result, I decided to write my own code.
It is easy to utilize your frame window with a shadow using my code. CWndShadow can be used in both MFC/ATL and non-MFC/ATL applications.
CWndShadow
#include "WndShadow.h"
CWndShadow::Initialize()
WinMain()
AfxGetInstanceHandle()
BOOL CYourApp::InitInstance()... | https://www.codeproject.com/Articles/16362/Bring-your-frame-window-a-shadow | CC-MAIN-2020-40 | en | refinedweb |
TextFont¶
from panda3d.core import TextFont
- class
TextFont¶
Bases:
TypedReferenceCount,
Namable
An encapsulation of a font; i.e. a set of glyphs that may be assembled together by a
TextNodeto represent a string of text.
This is just an abstract interface; see
StaticTextFontor
DynamicTextFontfor an actual implementati... | https://docs.panda3d.org/1.10/python/reference/panda3d.core.TextFont | CC-MAIN-2020-40 | en | refinedweb |
One:
The purpose of the testing module is to ensure that the notebook is behaving as expected and that changes to underlying source code, haven't affected the results of an IPython notebook. For example, for documentation purposes - such as this. 'DATE-STAMP', likewise for strings that look like time. These will preven... | https://nbviewer.jupyter.org/github/computationalmodelling/nbval/blob/master/docs/source/index.ipynb | CC-MAIN-2020-40 | en | refinedweb |
Out-of-bounds access (ARRAY_VS_SINGLETON)Somebody told me this and I am agree with this alternative..
You cannot store the result of sprintf...
Out-of-bounds access (ARRAY_VS_SINGLETON)Need little help..
[code]
#include <iostream>
int main() {
int bit = 1;
int init = 0xf ^ (1 <<...
Resource leak..Yes. Smart pointer see... | http://www.cplusplus.com/user/bhargavah/ | CC-MAIN-2017-34 | en | refinedweb |
A backtracking problem can usually be solved by traversing a tree, where each node represents a potential answer (in this case, each node (the variable comb) represents a combination of numbers in [1,...,n]).
The trick to make a solution to a backtracking problem faster is to traverse as few nodes as possible in the tr... | https://discuss.leetcode.com/topic/59861/1ms-java-solution-with-explanation | CC-MAIN-2017-34 | en | refinedweb |
Hi,
I am new to coding and was trying to implement AddTwo code using the solution that was provided already.
I am getting this error while running the code.
Can someone suggest ta way to correct this
Here is the code::
//Definition for singly-linked list. public class ListNode { int val; ListNode next; ListNode(int x) ... | https://discuss.leetcode.com/topic/60311/compile-error-line-3-error-class-listnode-is-public-should-be-declared-in-a-file-named-listnode-java | CC-MAIN-2017-34 | en | refinedweb |
Testing.
In most ways, testing a Meteor app is no different from testing any other full stack JavaScript application. However, compared to more traditional backend or front-end focused frameworks, two factors can make testing a little more challenging:
Client/server data: Meteor’s data system makes it simple to bridge ... | http://docs.w3cub.com/meteor~1.4/testing/ | CC-MAIN-2017-34 | en | refinedweb |
Details
- Type:
Bug
- Status: Closed
- Priority:
Minor
- Resolution: Done
- Affects Version/s: Jena 2.7.4
- Fix Version/s: Jena 2.11.0
- Component/s: Build, Ontology API
- Labels:None
- Environment:
Java 7 (1.7.0_07) Linux 64 bit. (but not Java 1.6.0_24)
Description
Under java7, the build of jena core gets two stacktra... | https://issues.apache.org/jira/browse/JENA-333 | CC-MAIN-2017-34 | en | refinedweb |
Need a little help please:
i have been trying to complete this for a couple days but i get more and more confused everytime i try.
When an object is falling because of gravity, the following formula can be used to determine the distance the object falls in a specific time period.
D = ½ gt^2
The variables in the formula... | https://www.daniweb.com/programming/software-development/threads/423216/functions-call-and-ref-statements-with-for-loops-output-two-separt-table | CC-MAIN-2017-34 | en | refinedweb |
How to intersect two arrays in Kotlin
How to intersect two array elements in Kotlin :
The intersection is used to find out the common elements in two arrays. For example, if array A holds 1,2,3,4,5 and array B holds 2,5,6, the intersection between A and B will be 2,5.
In this tutorial, we will learn how to find out the... | https://www.codevscolor.com/kotlin-array-intersect/ | CC-MAIN-2020-16 | en | refinedweb |
OpenShift Ansible's upgrade process has been designed to leverage the HA capabilities of OpenShift and allow for performing a complete cluster upgrade, without any application outages. Doing so is heavily dependent on the nature of your application as well as the capacity of your cluster. However, this post will cover ... | https://www.openshift.com/blog/zero-downtime-upgrades-with-openshift-ansible | CC-MAIN-2020-16 | en | refinedweb |
For where once ingestion is done it publishes a message to the normalizer, etc. But what happens when you want to take the principal components of this pipeline and create an adhoc pipeline? We don’t necessarily want the ingestor to always write to the normalizer. It’d be great to be able to compose these steps into di... | https://onoffswitch.net/2018/05/02/aetr-open-source-workflow-engine/ | CC-MAIN-2020-16 | en | refinedweb |
In an earlier post, we covered methods used for determining parameter estimates for a Logistic Regression model. We explored an implementation of the Fisher Scoring algorithm, which, when used in concert with an exponential family distribution and its associated canonical link, yields identical results as Newton-Raphso... | http://www.jtrive.com/estimating-regression-coefficients-with-batch-gradient-descent.html | CC-MAIN-2020-16 | en | refinedweb |
Synopsis
Create and view spectral files for ChaRT2 (CIAO contributed package).
Syntax
from sherpa_contrib.chart import *
Description
The sherpa_contrib.chart module provides routines for creating and viewing the input spectral files for users of ChaRT2 and is provided as part of the CIAO contributed scripts package.
Th... | https://cxc.cfa.harvard.edu/sherpa4.11/ahelp/sherpa_chart.html | CC-MAIN-2020-16 | en | refinedweb |
15393/deploy-react-app-to-aws-with-pm2
I am trying to deploy react app to AWS following this tutorial my app is slightly different and when I run pm2 start ecosystem.config.js --env production I get that app status is online but on pm2 show status is errored with the following output: /home/ubuntu/www/react/tools/distS... | https://www.edureka.co/community/15393/deploy-react-app-to-aws-with-pm2 | CC-MAIN-2020-16 | en | refinedweb |
This tutorial shows how to get the file attributes for a given file in Java with examples. It uses the
Path and
Files classes from the Java NIO API to fetch the attribute information of a file from the underlying file system.
The file attributes which can be read for a file are whether it is readable, writable and/or e... | https://www.javabrahman.com/quick-tips/how-to-get-file-attributes-or-permissions-in-java-with-examples/ | CC-MAIN-2020-16 | en | refinedweb |
Book Description
Build..
Table of Contents
- Learning Ext JS
- Credits
- About the Authors
- About the Reviewer
- Preface
- 1. Getting Started
- About Ext
- Getting Ext
- Including Ext in your pages
- Using the Ext library
- The example
- Not working?
- Adapters
- I'm asynchronous!
- Localization
- Ext JS online commun... | https://www.oreilly.com/library/view/learning-ext-js/9781847195142/ | CC-MAIN-2020-16 | en | refinedweb |
I Imported an XML file into a table.Then I tried to query the field that are not null. I have a field which seems to be blank or null but still returned in the query.
I'm not sure if this is newline but upon searching the net it is what they called "Carriage return"
the part of the imported XML looks like this:
<Myfiel... | https://codedump.io/share/SkCm8WrXoChc/1/how-to-query-a-field-with-ascii-13-or-quotcarriage-returnquot | CC-MAIN-2017-47 | en | refinedweb |
Hi guys, I'm having some trouble with my app, I'm using Away3D and I just got a brand new error, even though the class has this:
import flash.display.Loader;
private var _loader : Loader;
It says that the class has not been imported....
Any help will be appreciated.
Regards!
copy and paste the error message after enabl... | https://forums.adobe.com/message/4582579?tstart=0 | CC-MAIN-2017-47 | en | refinedweb |
This is one of the 100 recipes of the IPython Cookbook, the definitive guide to high-performance scientific computing and data science in Python.
from datetime import datetime import numpy as np import pandas as pd import matplotlib.pyplot as plt %matplotlib inline
player = 'Roger Federer' filename = "data/{name}.csv".... | http://nbviewer.jupyter.org/github/ipython-books/cookbook-code/blob/master/notebooks/chapter07_stats/01_pandas.ipynb | CC-MAIN-2017-47 | en | refinedweb |
Here's a little tutorial on how to setup an IR Receiver on OpenELEC/Kodi in side one of our Head Case's
Activate Device Tree Overlay
First we need to edit our config.txt file. To do this, we need to make the flash directory writable:
mount -o remount,rw /flash
Now we can edit the config.txt within this directory
nano /... | https://www.modmypi.com/blog/head-case-openelec-ir-receiver-setup | CC-MAIN-2017-47 | en | refinedweb |
gnutls_x509_crt_set_expiration_time(3)tlstls_x509_crt_set_expiration_time(3)
gnutls_x509_crt_set_expiration_time - API function
#include <gnutls/x509.h> int gnutls_x509_crt_set_expiration_time(gnutls_x509_crt_t cert, time_t exp_time);
gnutls_x509_crt_t cert a certificate of type gnutls_x509_crt_t time_t exp_time The ac... | http://man7.org/linux/man-pages/man3/gnutls_x509_crt_set_expiration_time.3.html | CC-MAIN-2017-47 | en | refinedweb |
Overview
Atlassian Sourcetree is a free Git and Mercurial client for Windows.
Atlassian Sourcetree is a free Git and Mercurial client for Mac.
Concatenates the content of files
Requires:
- python3
Configuration file format
{ "folder1": [ "file1.txt", "file2.txt" ], "folder2": [], "": [ "file3.txt", "file4.txt" ], "fold... | https://bitbucket.org/drk4/concatenate_files | CC-MAIN-2017-47 | en | refinedweb |
Overview
Atlassian Sourcetree is a free Git and Mercurial client for Windows.
Atlassian Sourcetree is a free Git and Mercurial client for Mac.
BackMongo
It's a simple REST interface for MongoDB written in Python that can be used straight away from a Backbone application.
It's an alpha version. We are using backmongo to... | https://bitbucket.org/remosu/backmongo | CC-MAIN-2017-47 | en | refinedweb |
What I am trying to do is to generate some random numbers (not necessarily single digit) like
29106 7438 5646 4487 9374 28671 92 13941 25226 10076
and then count the number of digits I get:
count[0] = 3 Percentage = 6.82 count[1] = 5 Percentage = 11.36 count[2] = 6 Percentage = 13.64 count[3] = 3 Percentage = 6.82 coun... | http://ansaurus.com/question/3381458-why-do-digits-1-2-and-3-appear-so-frequently-using-c-rand-function | CC-MAIN-2017-47 | en | refinedweb |
On 1 May 2015 at 20:59, Guido van Rossum <guido at python.org> wrote: >. Really? I was under the impression that 'await yielding()' as defined above would actually not suspend the coroutine at all, therefore not giving any opportunity for the scheduler to resume another coroutine, and I thought I understood the PEP wel... | https://mail.python.org/pipermail/python-dev/2015-May/139795.html | CC-MAIN-2017-47 | en | refinedweb |
File Specific word wrap (vs. global enable)
- Dan Rozwood last edited by
Is it possible to get a setting that allows word wrap to only wrap a single file?
Here and there I find that I don’t CARE what is on the end of a long line of code, except in a file where I am validating a line. Selecting this ON makes ALL files w... | https://community.notepad-plus-plus.org/topic/10985/file-specific-word-wrap-vs-global-enable | CC-MAIN-2020-10 | en | refinedweb |
What's the correct way to sort Python import x and from x import y statements?
The python style guide suggests to group imports like this:
Imports should be grouped in the following order:
- standard library imports
- related third party imports
- local application/library specific imports
However, it does not mention ... | https://python-decompiler.com/article/2013-12/whats-the-correct-way-to-sort-python-import-x-and-from-x-import-y-statement | CC-MAIN-2020-10 | en | refinedweb |
Implementing asynchronous actions with Redux
Compose reducers and implement asynchronous actions
In Part 2 of this series, “Using Redux with React,” you explored use of the react-redux bindings to make the Redux store available to all of the React components in a React application’s component hierarchy. You also saw ho... | https://developer.ibm.com/tutorials/wa-manage-state-with-redux-p3-david-geary/ | CC-MAIN-2020-10 | en | refinedweb |
Yet another Python client for ThoughtWorks GoCD REST API.
Project description
Introduction
This library is a high level python API wrapper upon ThoughtWorks GoCD REST API. From the official documentation:
Go Continuous Delivery is continuous integration/deployment server, which helps you automate and streamline the bui... | https://pypi.org/project/yagocd/ | CC-MAIN-2020-10 | en | refinedweb |
"shutdown_threadpool()" name
What do you think of the "shutdown_default_executor()" name?
The default executor can be overriden by set_default_executor():
def set_default_executor(self, executor):
if not isinstance(executor, concurrent.futures.ThreadPoolExecutor):
warnings.warn(
'Using the default executor that is not ... | https://bugs.python.org/msg351394 | CC-MAIN-2020-10 | en | refinedweb |
Dialog not resizing back to original size [CLOSED]
On 06/01/2015 at 17:17, xxxxxxxx wrote:
Press the '?', it extends the dialog to the right with a second group. Press it again and that second group disappears. However, it doesn't shrink the dialog back to it's original size.
How would I go about fixing this?
Also, do ... | https://plugincafe.maxon.net/topic/8411/10988_dialog-not-resizing-back-to-original-size-closed | CC-MAIN-2020-10 | en | refinedweb |
When I run a scsh script that launches an external program the scshvm
process uses half of the available CPU time. I'm using scsh 0.6.7 on Xubuntu11.10. In order to demonstrate the bug
do the following:
1. Compile the file cprogram.c.
2. Launch the script scsh-script.scsh from a Unix shell.
3. While the script is runni... | https://sourceforge.net/p/scsh/bugs/94/ | CC-MAIN-2017-43 | en | refinedweb |
Content
All Articles
Python News
Numerically Python
Python & XML
Community
Database
Distributed
Education
Getting Started
Graphics
Internet
OS
Programming
Scientific
Tools
Tutorials
User Interfaces
ONLamp Subjects
Linux
Apache
MySQL
Perl
PHP
Python
BSD
Building Decision Trees in Python
Pages: 1, 2, 3, 4, 5
With most of... | http://archive.oreilly.com/pub/a/python/2006/02/09/ai_decision_trees.html?page=3 | CC-MAIN-2017-43 | en | refinedweb |
cfcommon's pluggable architecture allows you to harness many of its stable modules and plugins bit by bit, piece by piece without inheriting bloated code and unnecessary overhead. Each module is carefully crafted and engineered to ensure stability and developed with clear and concise features. Gone will be the days of ... | http://mickydionisio.blogspot.com/2010/02/building-cfcommons-application.html | CC-MAIN-2017-43 | en | refinedweb |
These are chat archives for sbt/sbt
triggeredMessage := Watched.clearWhenTriggeredfor every project that I work on on this machine?
~/.sbt/globalwould run before projects are loaded so could not set settings, right?
does this do what I expect?does this do what I expect?
def kotlinLib(name: String) = Def.setting { "org.... | https://gitter.im/sbt/sbt/archives/2015/09/11 | CC-MAIN-2017-43 | en | refinedweb |
zexee 118 Report post Posted October 19, 2013 Hi, I want to get the full declaration (something like: const namespace::array<object> a;) of a local variable in context. I tried function->GetVarDecl(), but it does not full (no namespace, no <object>). I know namespace can be found in engine->GetObjectTypeById()->GetName... | https://www.gamedev.net/forums/topic/649114-how-to-get-the-full-declaration-of-a-local-variable-in-context/ | CC-MAIN-2017-43 | en | refinedweb |
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Artima Forums.
answer
Posted by quinith on May 02, 2001 at 4:46 PM
> > > > In the following code, a private member function (getNumInstances) is being called by ... | http://www.artima.com/legacy/answers/May2000/messages/200.html | CC-MAIN-2017-43 | en | refinedweb |
I am trying to write Tkinter-like `GUI` library for iOS
Hey everyone, ShadowSlayer here. I've decided to post this thread, to give myself a little motivation. I am trying to write Tkinter-like
GUIlibrary (on top of Scene of course!) for Pythonista. Wish me luck! I will post all my updates here.
P. S. Maybe I won't succ... | https://forum.omz-software.com/topic/671/i-am-trying-to-write-tkinter-like-gui-library-for-ios | CC-MAIN-2017-43 | en | refinedweb |
Functional Interface for Lambda expressions : Java 8
As we already know that Lambda Expressions are used to support functional programming in Java. The default behaviour of Lambda expressions is to accept only those interfaces as reference variables which have only one abstract method. We call such interfaces Functiona... | http://www.tothenew.com/blog/functional-interface-for-lambda-expressions-java-8/ | CC-MAIN-2017-43 | en | refinedweb |
(Also published on Canonical’s design team blog)
The weekend before last, I went to PyCon UK 2015.
I already wrote about the keynotes, which were more abstract. Here I’m going to talk about the other talks I saw, which were generally more technical or at least had more to do with Python.
Summary
The talks I saw covered... | https://development.robinwinslow.uk/2015/09/29/pycon-python-learnings/ | CC-MAIN-2017-43 | en | refinedweb |
Ir Exterior de Cuba.
According to EGFI's deputy CEO Arash Shahraini, Banco Exterior de Cuba
will start repaying the outstanding loan next month, and has with the
agreement committed to settle the full loan by 2019.
"The debt relates to a credit line extended to Cuba 10 years ago to
import goods and services from Iran,"... | https://humanrightsincuba.blogspot.com/2016/09/iran-agrees-to-restructure-cubas-debt.html | CC-MAIN-2017-43 | en | refinedweb |
The
? operator is a ternary (three-way) operator.
Java ternary operator is basically a short form of simple if statement.
The
? has this general form:
expression1 ? expression2 : expression3
expression1 can be any expression that evaluates to a
boolean value.
If
expression1 is
true, then
expression2 is evaluated.
Other... | http://www.java2s.com/Tutorials/Java/Java_Language/3030__Java_ternary_operator.htm | CC-MAIN-2017-43 | en | refinedweb |
Note that 2.6.11-rc1 breaks on x86-64 NUMA systems.
Linus's BitKeeper repository contains, as of this writing, a fix for the page fault handler security hole, a fix for
the x86-64 NUMA problem, and a few other small patches.
The current prepatch from Andrew Morton is 2.6.10-mm2. Recent changes to -mm include
multiple ... | http://lwn.net/Articles/118052/ | crawl-003 | en | refinedweb |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.