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 |
|---|---|---|---|---|---|
0
I have a string in Python that is comprised of code in C/C++ syntax. I would like to use regular expressions to search through this string and replace an expression of the form 'pow(a,b)' with 'a^b'
I've attempted to do this, but my code does not seem to be working. What would I have to change to be able to replace t... | https://www.daniweb.com/programming/software-development/threads/314522/using-regular-expressions-to-replace-pow-a-b-with-a-b | CC-MAIN-2016-50 | refinedweb | 139 | 74.53 |
The attached program is a prototype for a autodetection function to be put in the choose_medium.c file of dbootstrap. It seems to handle the "new" 2.2 IDE subsystem and SCSI devices since at least 2.0; I've tested it on m68k, alpha and ia32 platforms. Since the IDE system treats DVD-ROMs as CD-ROMs, they are properly d... | https://lists.debian.org/debian-boot/1999/12/msg00349.html | CC-MAIN-2015-40 | refinedweb | 376 | 62.44 |
trackback fixed
Thanks to Bob Wyman for pointing out my trackback was busted. Normal transmission resumed.
" />
« January 2004 | Main | March 2004 »
Thanks to Bob Wyman for pointing out my trackback was busted. Normal transmission resumed.
You'd think speccing a feed format would be straightforward, but the way things ... | http://dehora.net/journal/2004/02/ | CC-MAIN-2017-09 | refinedweb | 5,049 | 68.7 |
Author: Florent Hivert <florent.hivert@univ-rouen.fr>, Franco Saliola <saliola@gmail.com>, et al.
This tutorial is an introduction to basic programming in Python and Sage, for readers with elementary notions of programming but not familiar with the Python language. It is far from exhaustive. For a more complete tutoria... | http://sagemath.org/doc/thematic_tutorials/tutorial-programming-python.html | CC-MAIN-2014-15 | refinedweb | 3,968 | 68.5 |
Docs |
Forums |
Lists |
Bugs |
Planet |
Store |
GMN |
Get Gentoo!
Not eligible to see or edit group visibility for this bug.
View Bug Activity
|
Format For Printing
|
XML
|
Clone This Bug
I installed Kaffe-1.1.4 and tried to compile a standard Java "Hello World"
program:
public class hello {
public static void main(Str... | http://bugs.gentoo.org/88330 | crawl-002 | refinedweb | 453 | 59.6 |
Ok, as promised yesterday on #dragonflybsd, I tried to build ghc-7.0.4 on both 32bit and 64bit DragonFly. Since I was not able to spend much time on this, I just run the build on the available machines with their current setup, and took the results without much testing. See below for possible problems. ================... | http://leaf.dragonflybsd.org/mailarchive/users/2012-01/msg00027.html | CC-MAIN-2014-35 | refinedweb | 647 | 61.77 |
:
PRINT "How many fibonacci numbers do you want?" INPUT nums LET a = 0 LET b = 1 WHILE nums > 0 REPEAT PRINT a LET c = a + b LET a = b LET b = c ENDWHILE
This program prints out terms of the fibonacci sequence based on the user's input: 0 1 1 2 3 5 13...
Our language will allow a variety of the basic operations that yo... | http://web.eecs.utk.edu/~azh/blog/teenytinycompiler1.html | CC-MAIN-2020-24 | refinedweb | 2,933 | 60.72 |
So is there any way to exclude result prefixes in XSLT 1.0? The documentation does discuss exclude result prefixes attribute for XSLT 1.0 On Tue, Jan 7, 2014 at 1:38 PM, Graydon <graydon@xxxxxxxxx> wrote: > On Tue, Jan 07, 2014 at 11:29:01AM -0800, Martin Holmes scripsit: >> On 14-01-07 11:26 AM, Graydon wrote: >> >Esp... | http://www.oxygenxml.com/archives/xsl-list/201401/msg00031.html | CC-MAIN-2018-05 | refinedweb | 154 | 62.27 |
int[] x = new int[10]; Scanner scan = new Scanner(System.in); for(int i = 0; i < x.length; i++){ System.out.println("Enter number " + (i+1)); x[i] = scan.nextInt(); }
Event-driven programming is different, though. Rather than placing so much control on gathering input, we focus on responding to that input. So basically... | http://www.dreamincode.net/forums/topic/179290-event-driven-programming/ | CC-MAIN-2017-22 | refinedweb | 388 | 57.67 |
Section (1) setsid
Name
setsid —
−−fork option.
OPTIONS
−c, −−ctty
Set the controlling terminal to the current one.
−f, −−fork
Always create a new process.
−w, −−wait
Wait for the execution of the program to end, and return the exit value of this program as the return value of setsid.
−V, −−version
Display version info... | https://manpages.net/detail.php?name=setsid | CC-MAIN-2022-21 | refinedweb | 143 | 68.16 |
Sub-object for geometric objects. More...
#include <sobject.h>
Inherits dyn_collectable.
Inherited by rtl_groupmem and rtl_object.
List of all members.
This class is an abstract definition of the basic elements of a geometric object. All classes that are renderable should inherit from this class and implement the inter... | http://pages.cpsc.ucalgary.ca/~jungle/software/jspdoc/rtl/class_rtl_subobject.html | crawl-003 | refinedweb | 392 | 52.46 |
Just.
With .asmx Ajax services, you create a class in a .asmx file (or associated code behind file), attribute it with the [ScriptService] attribute, reference the .asmx endpoint in the Services section of your ScriptManager control on your .aspx page, and you're off and running. The new WCF Ajax-enabled service suppor... | http://www.pluralsight.com/community/blogs/fritz/archive/2008/01/31/50121.aspx | crawl-002 | refinedweb | 1,538 | 57.37 |
islower()
Test a character to see if it's a lowercase letter
Synopsis:
#include <ctype.h> int islower(lower() function tests for any lowercase letter a through z.
Returns:
Nonzero if c is a lowercase letter; otherwise, zero.
Examples:
#include <stdio.h> #include <stdlib.h> #include <ctype.h> char the_chars[] = { 'A', '... | http://developer.blackberry.com/native/reference/core/com.qnx.doc.neutrino.lib_ref/topic/i/islower.html | CC-MAIN-2014-42 | refinedweb | 150 | 56.15 |
Controlling Devices with Relays>
Listing 1. ar-2.c
#include <sys/types.h> #include <sys/ioctl.h> #include <fcntl.h> #include <errno.h> #include <stdlib.h> #include <unistd.h> #include <stdio.h> #include <signal.h> /* Main program. */ int main(int argc, char **argv) { int fd; int sleep_time; /* < 3) { fprintf(stderr, "U... | http://www.linuxjournal.com/article/6693?page=0,1&quicktabs_1=2 | CC-MAIN-2014-10 | refinedweb | 119 | 56.93 |
29 September 2006 17:33 [Source: ICIS news]
LONDON (ICIS news)--Sabic’s $700m petrochemicals deal with Huntsman highlights the way in which the chemicals landscape is being re-drawn.
The power base in petrochemicals is shifting, faster than some realise. Companies without the size or access to advantaged feedstock are ... | http://www.icis.com/Articles/2006/09/29/1095026/INSIGHT-Sabic-and-Huntsman-play-to-advantage.html | CC-MAIN-2014-35 | refinedweb | 360 | 50.67 |
One of the more complicated concepts to get your head around as a new programmer is classes and objects. Once you know how to use classes in Python though, you will be ready to build significantly more powerful and complex code.
Also read: What is object oriented programming?
Read on to learn how to use classes in Pyth... | http://www.nochedepalabras.com/how-to-use-classes-in-python.html | CC-MAIN-2020-40 | refinedweb | 1,519 | 71.04 |
NAME
ksql_cfg_defaults—
set defaults for a ksql configuration
LIBRARYlibrary “ksql”
SYNOPSIS
#include <sys/types.h>
#include <stdint.h>
#include <ksql.h>void
ksql_cfg_defaults(struct ksqlcfg *cfg);
DESCRIPTIONThe
ksql_cfg_defaultsfunction initialises cfg with useful defaults: the
KSQL_EXIT_ON_ERRand
KSQL_SAFE_EXITflags... | https://kristaps.bsd.lv/ksql/ksql_cfg_defaults.3.html | CC-MAIN-2021-21 | refinedweb | 637 | 61.97 |
16 minutes ago, DeadX07 wrote.
Which is terrific. What I do not understand is the shift to native over managed. I thought the thinking on performance had been that the next generation of hardware would solve that problem.
And I do not follow why the JITer and GC the .NET framework cannot smply be improved to address pe... | http://channel9.msdn.com/Forums/Coffeehouse/has-Anders-commented-on-WinRT/11e474911cbd4aa89db8a0aa0159fa72 | CC-MAIN-2014-35 | refinedweb | 126 | 78.55 |
I've been using Windows Forms for the last 8 years or so and, while it has its quirks, it's by and large been pretty straightforward to use. However, the one case where
Windows Forms causes me real pain occurs when I need to merge a .resx file from two branches of a source control system. It turns out that the Windows ... | http://www.codeproject.com/Articles/37022/Solving-the-resx-Merge-Problem?fid=1541806&df=10000&mpp=25&sort=Position&spc=Relaxed&tid=3070356 | CC-MAIN-2014-10 | refinedweb | 924 | 59.4 |
The!
My friend Zach has this old ASP site over at bodyblog.com. Back in the day, it was a pretty active community of bodybuilders and regular people just getting in shape.
A couple months ago, I agreed to help him dust it off and get it working again, and since the code was pretty bad and ASP is a dead technology (repl... | http://withoutane.com/feed.atom | crawl-002 | refinedweb | 3,969 | 71.04 |
import random import time badmStudentsF = ["FNAME1","FNAME2","FNAME3","FNAME4","FNAME5"] badmStudentsM = ["MNAME1","MNAME2","MNAME3","MNAME4","MNAME5","MNAME6","MNAME7","MNAME8", "MNAME9", "MNAME10","MNAME11"] random.shuffle(badmStudentsM, random.random); random.shuffle(badmStudentsF, random.random); print "HackLab Gro... | https://www.daniweb.com/programming/software-development/threads/503029/random-generator-python | CC-MAIN-2018-26 | refinedweb | 130 | 60.24 |
Wikibooks:Manual of Style
From Wikibooks, the open-content textbooks collection
The Wikibooks Manual of Style is intended to describe the ideal construction of textbooks on Wikibooks in order to establish consistency between books and thus to improve usability of Wikibooks as a whole.
[edit] Titling
Wikibooks aims for ... | http://en.wikibooks.org/wiki/WB:MOS | crawl-001 | refinedweb | 1,194 | 61.36 |
Created on 2008-01-01 16:39 by gvanrossum, last changed 2013-08-22 01:14 by python-dev. This issue is now closed..
__cmp__ is not coming back.
Bumping priority.
Ping
Can someone other than me test and apply this? It seems still relevant,
and __cmp__ is not coming back.
Additionally, there are still lots of references t... | https://bugs.python.org/issue1717 | CC-MAIN-2017-47 | refinedweb | 3,673 | 68.77 |
the problem is factions. i have a server setup with only factions on it and i cant get tnt cannons to work, cant find a setting for it either
package me.farkinklown;
import org.bukkit.Material;
import org.bukkit.Sound;
import org.bukkit.entity.Item;
import...
why not just make a command block, so when they walk into an... | https://dl.bukkit.org/members/frkinklown.90820949/recent-content | CC-MAIN-2022-33 | refinedweb | 280 | 83.05 |
See:
Description
Sample use of interface:
The home team sends an object
ii satisfying interface
InputInitialI to the outsourcing team. The outsourcing
team does not know the internal representation of the object (it
could use DemeterJ datastructures) but they know that
getPairs returns a set of objects satisfying inter... | http://www.ccs.neu.edu/home/lieber/courses/csg270/sp07/guaraldi/satsolver-1.1/api/edu/neu/ccs/satsolver/package-summary.html | CC-MAIN-2017-43 | refinedweb | 460 | 62.78 |
On Mon, 08 Feb 2010 15:10:21 +0200 Aggelos Economopoulos <aoiko@cc.ece.ntua.gr> wrote: > Max Herrgård wrote: > > Den 2010-02-08 09:00:02 skrev Steve O'Hara-Smith <steve@sohara.org>: > >> Hi, > >> > >>. > > The statement is correct. One could fix fpurge() (though I bet it breaks > other assumptions as well) or could cas... | http://leaf.dragonflybsd.org/mailarchive/users/2010-02/msg00058.html | CC-MAIN-2015-22 | refinedweb | 243 | 74.49 |
#include <deal.II/grid/tria_accessor.h>
A class that provides access to objects in a triangulation such as its vertices, sub-objects, children, geometric information, etc. This class represents objects of dimension
structdim (i.e. 1 for lines, 2 for quads, 3 for hexes) in a triangulation of dimensionality
dim (i.e. 1 f... | https://dealii.org/developer/doxygen/deal.II/classTriaAccessor.html | CC-MAIN-2020-10 | refinedweb | 3,581 | 55.54 |
The pandas’ library is a vital member of the Data Science ecosystem. However, the fact that it is unable to analyze datasets larger than memory makes it a little tricky for big data. Consider a situation when we want to analyze a large dataset by using only pandas. What kind of problems can we run into? For instance, l... | https://parulpandey.com/2020/10/18/loading-large-datasets-in-pandas/ | CC-MAIN-2022-21 | refinedweb | 314 | 62.88 |
Function to calculate new volume size - problem
2013-10-18 12:39 PM
I am attempting to create a function that calculates correct volume size based on a desired percentage used. I am encountering what I believe to be a computational issue inside the MVEL where it doesn't behave consistently. Maybe this is a bug, or mayb... | http://community.netapp.com/t5/OnCommand-Storage-Management-Software-Discussions/Function-to-calculate-new-volume-size-problem/m-p/28757 | CC-MAIN-2015-35 | refinedweb | 866 | 64.2 |
Only show links if user can access the view
- here.
Most things I seem to develop have a top-level menu that runs across the top or side of the page, which has the various pages within them. In many cases, some of these will only be accessible to people who have permission to access the view to which they point. That i... | http://schinckel.net/tags/django-menus/ | crawl-003 | refinedweb | 279 | 70.33 |
These logs document versioned changes to the Graph API and Marketing API that are no longer available. To learn more about versions, please see our Platform Versioning documentation. Use the API Upgrade Tool to determine which version changes will affect your API calls. For more information on upgrading, please see our... | https://developers.facebook.com/docs/graph-api/changelog/archive | CC-MAIN-2018-17 | refinedweb | 5,606 | 50.02 |
Kush Colorado January 2011
Colorado's premiere cannabis lifesyle magazine
24 kush 64 40 colorado's premier cannabis lifestyle magazine 90 100 inside 10 | The Health Report by J.T. Gold 14 | Rob's Corner by Robert J. Corry 18 | High Fees by Noelle Leavitt features 24 Going Green: Carpooling 54 Political Roundup 64 KushC... | http://issuu.com/kushdailybuds/docs/kushco_jan11 | CC-MAIN-2015-22 | refinedweb | 30,020 | 70.13 |
#include <hallo.h> * Peter Samuelson [Mon, Jan 08 2007, 03:26:21AM]: > > [Claus Fischer] > > 9. cdrecord's miserable state is well known > > > > Like the majority of other Linux users, I wonder when > > $ burn_my_iso_to_cd <iso-file> /dev/cdrom > > will work as expected. > > Hmmm. > > $ wodim filename.iso > > works for... | https://lists.debian.org/debian-devel/2007/01/msg00288.html | CC-MAIN-2014-10 | refinedweb | 193 | 73.47 |
Archive for May, 2011
Object Export Options for EPUB & HTML
In an earlier post on Object Export Options, I had shown you how to specify Alt-text. In this post, we’ll see how Object Export options help us in the EPUB and HTML workflows. You can use the Object Export options to create different conversion settings on eac... | http://blogs.adobe.com/vikrant/2011/05/page/2/ | CC-MAIN-2014-42 | refinedweb | 879 | 61.97 |
At 13:04 2003-03-10 +0000, Michael Hudson wrote: >Armin Rigo <arigo at tunes.org> writes: > >> Hello'). > >So don't do that, run > >$ PYTHONPATH=. python pypy/interperter/interactive.py > >then. I can see this being tedious, though. > >interactive.py could remove the cwd from sys.path, but that also might >be surprisin... | https://mail.python.org/pipermail/pypy-dev/2003-March/000621.html | CC-MAIN-2017-30 | refinedweb | 318 | 58.89 |
log4j
log4j explain about log4j with example ?
Please visit the following link:
log4j Tutorials
log4j
;
In this tutorial you will learn about Log4J, which is one
of the most used Logging API...
In earlier example you have seen that we can define
properties of log4j... log4.xml or log4j.properties file. The external
pro... | http://www.roseindia.net/tutorialhelp/comment/98624 | CC-MAIN-2014-35 | refinedweb | 2,646 | 56.96 |
I'm trying to use an existing js library (validate.js) in both the client and server.
I installed it using npm, and everything compiles for both server and client.
When using it in the server it works great, but when I execute it in the browser it throws an error.
The same file is used in both cases:
import validate = ... | https://codedump.io/share/uZjkCtwN9Q1Z/1/importing-goes-wrong-with-systemjs | CC-MAIN-2016-50 | refinedweb | 417 | 50.33 |
Article 1: Introduction to the Arduino Hardware Platform
Article 3: Arduino-Based MIDI Expression Pedal.
After I initially discovered the Arduino platform, I immediately noticed a wide variety of components that can be connected to an Arduino - everything from inexpensive LEDs, to a moderately priced Ethernet shield, t... | http://www.codeproject.com/Articles/38204/Interfacing-an-Arduino-with-LCDs?fid=1543898&df=10000&mpp=10&sort=Position&spc=None&select=3464158&tid=3961442 | CC-MAIN-2015-11 | refinedweb | 746 | 53 |
The Seeq SDK for Python
Project description
The seeq Python library is used to interface with Seeq Server ().
Execute
pip install seeq to make it available for import.
seeq.spy
The Seeq Spy module is a friendly set of functions that are optimized for use with Jupyter, Pandas and NumPy.
The Spy module is the best choice... | https://pypi.org/project/seeq/0.0.58/ | CC-MAIN-2019-51 | refinedweb | 357 | 54.32 |
I've earlier described a simple way to deal with development specific config but the larger your system is the more likely it is that you will have multiple environments you want to run against; private development, latest build deployment, stress deployment, production deployment etc. Here is a good suggestion on how ... | http://blogs.msdn.com/b/cellfish/archive/2012/01.aspx | CC-MAIN-2014-42 | refinedweb | 1,548 | 58.62 |
Iron.io and Lumen
Lumen Iron Worker
What and why
A worker is a great way to run tasks as needed taking the load off your applications server and greatly speeding up the process of a task as you can run numerous workers at once.
A lot of this comes from and and their examples
Topics covered
- Creating a Lumen Worker
- C... | https://alfrednutile.info/posts/143 | CC-MAIN-2018-47 | refinedweb | 1,468 | 67.04 |
On Mar 26, 2006, at 07:32:31, Arjan van de Ven wrote:> On Sun, 2006-03-26 at 06:54 -0500, Kyle Moffett wrote:>> Create initial kernel ABI header infrastructure>> it's nice that you picked this one;> for this you want an arch-generic/stddef32.h and stddef64.h>> and have arch-foo just only include the proper generic one.... | http://lkml.org/lkml/2006/3/26/60 | CC-MAIN-2014-15 | refinedweb | 399 | 57.37 |
Summary
The next version of the Cat programming language, contains namespaces and type annotations.
The upcoming version of Cat, which is still undergoing testing, implements type annotations and namespaces.
The type annotation of Cat is based on the idea that every program, or subprogram, is a transition from one stac... | http://www.artima.com/weblogs/viewpost.jsp?thread=168661 | CC-MAIN-2017-22 | refinedweb | 274 | 59.23 |
Opened 7 years ago
Closed 7 years ago
Last modified 7 years ago
#14432 closed (fixed)
Tutorial import line missing (tiny correction)
Description
Hi, thanks a lot for the tutorial, it's great!
At the very end of Part 3, in the last highlighted code block, after the admin registration lines have been removed, the followi... | https://code.djangoproject.com/ticket/14432 | CC-MAIN-2017-26 | refinedweb | 195 | 63.49 |
This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.
On Thu, Jan 31, 2002 at 09:32:11PM -0600, Loren James Rittle wrote: > > [...] Sometimes we may have to work around a buggy libc, but let's > > not pretend it's OK. > > To pretend it's OK was never my intention. This is exactly... | http://gcc.gnu.org/ml/libstdc++/2002-01/msg00521.html | crawl-001 | refinedweb | 423 | 65.52 |
Ethan Furman <ethan at stoneleaf.us>: > On 08/31/2014 02:19 PM, Marko Rauhamaa wrote: >> The application will often want the EINTR return (exception) instead >> of having the function resume on its own. > > Examples? > > As an ignorant person in this area, I do not know why I would ever > want to have EINTR raised inst... | https://mail.python.org/pipermail/python-dev/2014-September/136103.html | CC-MAIN-2022-40 | refinedweb | 131 | 66.88 |
Angular 8 is the latest version of Google's Angular – one of the best JavaScript frameworks around. In this article, we'll run through what's special about Angular 8, and show you how to get started. First, a brief look back at what's happened with the framework so far.
Angular's introduction led to a paradigm shift in... | https://www.creativebloq.com/how-to/angular-8 | CC-MAIN-2021-10 | refinedweb | 1,458 | 57.87 |
ISAPI Extension Architecture
This topic outlines architectural features of ISAPI extensions.
The ISAPI model, unlike other Web content development technologies, does not require a separate process for every request to an HTTP server. ISAPI uses threads to isolate work items in a process. Because IIS employs multiple th... | http://msdn.microsoft.com/en-us/library/ms524581(v=vs.90).aspx | CC-MAIN-2014-52 | refinedweb | 1,181 | 54.63 |
I thought it’s a good idea went back to the basics of C++ and demonstrate some basics concepts of this programming language.
What’s C++?
C++ is a general purpose multi paradigm programming language. Also, C++ can be referred as a compiled language, this means that a typical C++ program is composed by a bunch of source ... | http://gearstech.com.mx/blog/2019/03/01/c-variable-and-pointers/ | CC-MAIN-2021-31 | refinedweb | 584 | 56.08 |
Qemu and other emulators)
- is quite simply unavailable at a reasonable price (e.g. SGI MIPS systems or the Chinese MIPS-based systems).
It also briefly mentions User Mode Linux for x86 and the Hercules emulator for IBM zSeries mainframes despite the fact that these are not particularly relevant to Free Pascal, and Doc... | https://wiki.freepascal.org/Qemu_and_other_emulators | CC-MAIN-2020-45 | refinedweb | 4,666 | 53 |
tag:blogger.com,1999:blog-20099260471680590202018-03-06T12:01:17.528-08:00Dimitar Evgeniev Dimitrov - Software Development LogSoftware development problems that I encounter at work and their solutions - .NET, C#, C++ and its pitfalls, Java, VB, VB.NET Windows Installer MSI and moreDev Dimitrov Injection vs Encapsulatio... | http://feeds.feedburner.com/SoftwareDevelopmentLog | CC-MAIN-2018-13 | refinedweb | 1,552 | 52.8 |
Hi friends here I have written the code to generate the auto generated password
open the visual studio
select the new website
After that copy and paste the following code in aspx page
After that open the aspx.cs file before copy and paste the code declare the two variables globally
And you have to give the Microsoft. V... | http://www.aspdotnet-suresh.com/2010/04/generating-password-automatically-by.html | CC-MAIN-2014-42 | refinedweb | 383 | 58.69 |
Created on 2010-11-23 23:37 by terry.reedy, last changed 2012-03-17 13:16 by python-dev. This issue is now closed.
Add list.clear() method with obvious semantics.
Pro:
1. parallel to set/dict/defaultdict/deque.clear(),
usable in generic mutable collection function;
2. makes it easier to switch between list and other co... | http://bugs.python.org/issue10516 | CC-MAIN-2015-11 | refinedweb | 2,528 | 69.28 |
Prerender.
io
1.0.0.2
.NET Framework 4.0
Install-Package Prerender.io -Version 1.0.0.2
dotnet add package Prerender.io --version 1.0.0.2
<PackageReference Include="Prerender.io" Version="1.0.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ... | https://www.nuget.org/packages/Prerender.io | CC-MAIN-2022-21 | refinedweb | 192 | 55.61 |
This project came about when I encountered a client that needed a fiber scheduler. The problem arose because of a need to convert non-preemptive “threads” from an existing programming domain to Windows. [This was part of my teaching, not part of a contract, and I presented this solution in class; therefore, I was not a... | http://www.codeproject.com/script/Articles/View.aspx?aid=27410 | CC-MAIN-2014-41 | refinedweb | 7,607 | 58.11 |
KHTML
KHTMLPageCache Class ReferenceSingleton Object that handles a binary cache on top of the http cache management of kio. More...
#include <khtml_pagecache.h>
Detailed DescriptionSingleton Object that handles a binary cache on top of the http cache management of kio.
A limited number of HTML pages are stored in this... | https://api.kde.org/3.5-api/kdelibs-apidocs/khtml/html/classKHTMLPageCache.html | CC-MAIN-2020-29 | refinedweb | 344 | 59.9 |
:orange_book: simple approach for javascript localization
:warning: This project was previously namedc-3po. Some of the talks, presentations, and documentation may reference it with both names.
import { t, ngettext, msgid } from 'ttag'
// formatted strings const name = 'Mike'; const helloMike = t
Hello ${name};
// plur... | https://xscode.com/ttag-org/ttag | CC-MAIN-2021-21 | refinedweb | 109 | 59.23 |
Need some help understanding python solutions of leetcode 371. "Sum of Two Integers". I found is the most voted python solution, but I am having problem understand it.
class Solution(object): def getSum(self, a, b): """ :type a: int :type b: int :rtype: int """ MAX_INT = 0x7FFFFFFF MIN_INT = 0x80000000 MASK = 0x1000000... | https://windows-hexerror.linestarve.com/q/so38557464-sum-of-two-integers-without-using-operator-in-python | CC-MAIN-2021-39 | refinedweb | 533 | 77.67 |
Main Solution - 572 ms
class Solution { int height(TreeNode root) { return root == null ? -1 : 1 + height(root.left); } public int countNodes(TreeNode root) { int h = height(root); return h < 0 ? 0 : height(root.right) == h-1 ? (1 << h) + countNodes(root.right) : (1 << h-1) + countNodes(root.left); } }
Explanation
The ... | https://discuss.leetcode.com/topic/15533/concise-java-solutions-o-log-n-2 | CC-MAIN-2017-51 | refinedweb | 1,328 | 76.62 |
Checking for file existence on potentially hanging NFS mountsPosted: | More posts about python
NFS mounts can be annoying as they tend to "hang" (for various reasons). Here I show how I replaced os.path.exists(..) with a better solution for potentially hanging paths.
The following code will "hang" if the NFS mount /mnt... | https://srcco.de/posts/checking-for-file-existence-on-potentially-hanging-nfs-mounts.html | CC-MAIN-2018-47 | refinedweb | 209 | 66.23 |
Azure Active Directory B2C: Build a .NET web API
With Azure Active Directory (Azure AD) B2C, you can secure a web API by using OAuth 2.0 access tokens. These tokens allow your client apps to authenticate to the API. This article shows you how to create a .NET MVC "to-do list" API that allows users of your client applic... | https://docs.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-devquickstarts-api-dotnet | CC-MAIN-2018-13 | refinedweb | 1,059 | 58.99 |
Hello,
I have created a GUI using the Netbeans GUI Builder and I have a JTextArea that I want to output to, but because I need to use threads I am doing a lot of processing in an external thread. I am having issues outputting data from the thread class to the JTextArea in my main GUI Class. Here is the most important c... | https://www.daniweb.com/programming/software-development/threads/455822/access-a-jtextarea-from-another-class | CC-MAIN-2018-30 | refinedweb | 150 | 64.61 |
Get the highlights in your inbox every week.
Optimize your Python code with C | Opensource.com
Optimize your Python code with C
Cython creates C modules that speed up Python code execution, important for complex applications where an interpreted language isn't efficient.
Subscribe now
Cython is a compiler for the Pytho... | https://opensource.com/article/21/4/cython | CC-MAIN-2022-05 | refinedweb | 1,115 | 58.21 |
Share your code.
node-find-files
node-find-filesnode-find-files
This is a quick utility I wrote for recursively searching a directory structure and finding files and directories that match a particular spec.
What's Different About itWhat's Different About it
Similar projects that I was able to find processed the whole ... | https://www.npmjs.com/package/node-find-files | CC-MAIN-2018-30 | refinedweb | 273 | 56.55 |
Searching Part 3
Senior Editor, TheScripts.com
I want to explain this part before I explain the
&grab_data and &process_record subs.... as it is a little more complicated. Just a note, this sub procedure just sorts the data as the user defines it to be sorted. It isn't important, and is a feature that can be left out o... | http://bytes.com/serversidescripting/perl/tutorials/asimpledatabaseprogram/page6.html | crawl-002 | refinedweb | 786 | 73.37 |
i have managed to write a program that reads an arbitrary number of integers less than or equal to 20 and finds the sum and average. i am now trying to write a bubble sort to order the integers from least to greatest but i am having problems. this is the code i have so far.
if it works its suppose to do this.
3 2 1 *
E... | https://www.daniweb.com/programming/software-development/threads/316109/bubble-sort-with-an-array | CC-MAIN-2017-17 | refinedweb | 248 | 63.43 |
Internal rate of return has been supported by many scholars as it is easy to evaluate the project using this technique. But IRR has also been criticized on the grounds that it is a makers percentage that contains the implicit assumption that returns are invested at a rate equal to the IRR. There has been much discussio... | http://www.transtutors.com/homework-help/corporate-finance/capital-budgeting/modified-internal-return-rate/ | CC-MAIN-2017-47 | refinedweb | 600 | 59.23 |
Xamarin ListView control is a list-like interface used to render a set of data items in a vertical or horizontal orientation with visual representation of linear or grid structure. It supports all the essential features such as swiping, template selectors, horizontal and vertical orientations, pull-to-refresh, load mor... | https://www.syncfusion.com/xamarin-ui-controls/xamarin-listview?utm_medium=listing&utm_source=vs_marketplace&utm_campaign=xamarin-image-editor-trial-vs_marketplace | CC-MAIN-2021-39 | refinedweb | 879 | 56.55 |
Up to [cvs.NetBSD.org] / src / lib / libc / gen
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.9.44.1 / (download) - annotate - [select for diffs], Tue Oct 30 18:58:45 2012 UTC (3 years ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.9: +3 -5 lines
Diff to pre... | http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/gen/execv.c | CC-MAIN-2015-48 | refinedweb | 618 | 76.22 |
![if !IE]> <![endif]>
Programs using Tuples
Program 1: Write a program to swap two values using tuple assignment
a = int(input("Enter value of A: "))
b = int(input("Enter value of B: "))
print("Value of A = ", a, "\n Value of B = ", b)
(a, b) = (b, a)
print("Value of A = ", a, "\n Value of B = ", b)
Output:
Enter value... | https://www.brainkart.com/article/Programs-using-Tuples_37266/ | CC-MAIN-2022-40 | refinedweb | 235 | 52.73 |
I have a multiprocessing job where I'm queuing read only numpy arrays, as part of a producer consumer pipeline.
Currently they're being pickled, because this is the default behaviour of
multiprocessing.Queue
from multiprocessing import Process, Queue
import numpy as np
class __EndToken(object):
pass
def parrallel_pipel... | https://codedump.io/share/9Jpt6sMEwbbg/1/fast-queue-of-read-only-numpy-arrays | CC-MAIN-2017-13 | refinedweb | 1,863 | 56.15 |
C# is a simple programming language that is aimed at those who wish to develop applications based on Microsoft’s .NET platform. What makes C# simple and easy to learn is the fact that the language is a direct descendant of Java, while also carrying a lot of C and C++ family traits. As such, anyone with exposure to thes... | https://blog.udemy.com/c-sharp-char/ | CC-MAIN-2017-17 | refinedweb | 1,222 | 63.19 |
.
// A shoe is just many decks of cards, usually 6 in Las Vegas
public class Shoe).
Strategy
Player
Hand
public class Player
{
private Strategy plyrStrategy;
private Hand[] hands;
_
A hand is just an array of Card objects:
Card.
Shoe
for( int k=0; k<2; k++ )
{
foreach( Player player in players )
{
player.GetHands()[0].... | https://www.codeproject.com/Articles/3121/Blackjack-a-real-world-OOD-example?PageFlow=FixedWidth | CC-MAIN-2017-30 | refinedweb | 135 | 58.69 |
# Disposable pattern (Disposable Design Principle) pt.1
[](https://github.com/sidristij/dotnetbook)
Disposable pattern (Disposable Design Principle)
================================================
I guess almost any programmer who u... | https://habr.com/ru/post/443958/ | null | null | 2,704 | 57.37 |
Why it matters how you log in python
Logging in python is something that won’t matter to you until it matters. If you’ve ever seen a message like one of these, I’m here to explain why it’s a bad idea to ignore them:
. Here is an example of where you might hit a snag that you can avoid:
import logging
logger = logging.g... | https://medium.com/swlh/why-it-matters-how-you-log-in-python-1a1085851205?source=post_internal_links---------5---------------------------- | CC-MAIN-2020-50 | refinedweb | 477 | 62.07 |
Multiple" which is what is run when invoking
/usr/bin/python. On Fedora 21 RHEL:
Note that the use of
%{!? [...]} does allow this to work without the check for rhel versions but putting the conditional in documents when we can remove the entire stanza from the spec file.
In Fedora,/
Using installing python modules we ... | https://www.fedoraproject.org/w/index.php?title=Packaging:Python&direction=next&oldid=409010 | CC-MAIN-2022-27 | refinedweb | 178 | 78.65 |
Everybody knows that the minute you put your email address into the href attribute of an <A> tag with a mailto: prefix, the spam harvesters are going to scrape it and it will increase the amount of absolutely ludicrous spam that (hopefully at least) ends up in your Junk Mail folder.
There are a number of ways to make a... | http://eggheadcafe.com/tutorials/aspnet/9817ba6f-ba00-4523-9097-f0235cdcb480/spambot-killer-aspnet-ma.aspx | crawl-002 | refinedweb | 999 | 56.15 |
> I. I do not know why it's not working. However, I can offer an alternative to try to see if you can reproduce the same error. # Configure __mxl_shell to either 'sh' or 'cmd'. # Configure __mxl_echo to the shell echo command. # This function appends a single line of text to a file. # $1 - The file. # $2 - The text. if... | http://lists.gnu.org/archive/html/help-make/2011-02/msg00044.html | CC-MAIN-2015-35 | refinedweb | 169 | 75.61 |
architecture
twitter
Reddit
Topics
No topic found
Content Filter
Articles
Videos
Blogs
News
Complexity Level
Beginner
Intermediate
Advanced
Refine by Author
[Clear]
Vidya Vrat Agarwal (6)
Stephen Simon (5)
Abhishek Mishra (5)
Ajay Yadav (4)
Gaurav Kumar (4)
C# Corner Live (3)
Sanjay Mrinal Kumar Kodangi (2)
Bassam Alu... | https://www.c-sharpcorner.com/topics/architecture | CC-MAIN-2021-04 | refinedweb | 3,269 | 50.94 |
?
- Use Ophelia as a WSGI application
- Ophelia defines an application class compliant with the WSGI standard, PEP 333: ophelia.wsgi.Application. You can either try it by running Ophelia’s own wsgiref-based HTTP server or run it by any WSGI server you might care to use.
-.
What kind of sites is Ophelia good for? reflec... | https://pypi.python.org/pypi/ophelia/0.4.1 | CC-MAIN-2015-18 | refinedweb | 518 | 63.19 |
You've probably already encountered a key referred to as the leader key. The leader key is essentially a namespace for user or plugin defined shortcuts. Within a second of pressing the leader key, any key that's pressed will be in from that namespace.
The default leader key is a backslash \, but it's not the most comfo... | https://www.oreilly.com/library/view/mastering-vim/9781789341096/71190eda-401f-4f58-84ae-413edbef298c.xhtml | CC-MAIN-2019-43 | refinedweb | 132 | 66.94 |
Home >>Java Programs >Java Program to print the smallest element in an array
In this example, we will create a java program to find out the smallest element present in the array. This can be done by defining a variable min which initially will hold the value of the first element. Then we will loop through the array by ... | https://www.phptpoint.com/java-program-to-print-the-smallest-element-in-an-array/ | CC-MAIN-2021-39 | refinedweb | 151 | 59.53 |
As you’ve seen, FileInfo is a class that acts like a dictionary. To explore this further, let’s look at the UserDict class in the UserDict module, which is the ancestor of our FileInfo class. This is nothing special; the class is written in Python and stored in a .py file, just like our code. In particular, it’s stored... | http://www.faqs.org/docs/diveintopython/fileinfo_userdict.html | CC-MAIN-2016-30 | refinedweb | 327 | 61.43 |
Build times
I'm sitting here reading JOS when I perhaps ought to be working because I'm running a build.
It's a build on maybe a medium-sized project (approx 200Kloc). It takes around maybe 45 minutes for a full build, the last time we timed it.
Is this normal? Does everyone really wait this long for things to happen? ... | http://discuss.fogcreek.com/joelonsoftware2/default.asp?cmd=show&ixPost=44960&ixReplies=45 | CC-MAIN-2017-13 | refinedweb | 3,421 | 79.09 |
GL.UniformPosted Saturday, 28 May, 2011 - 02:05 by Radar in
Hi all,
i am trying to implement my own math in OpenTK.
But i have a problem with the GL.Uniform when i try to send a vector or a matrix.
I am not sure how to make that. I thought i did it right but GetError() returns Invalid Op.
I try to send my Matrix like t... | http://www.opentk.com/node/2511 | CC-MAIN-2014-42 | refinedweb | 215 | 69.68 |
A palindrome is a word, phrase, number or other sequence of units that can be read the same way in either direction. Here we are going to check whether the number entered by the user is palindrome or not. You can check it in various ways but the simplest method is by reversing the digits of the original number and chec... | http://www.roseindia.net/tutorial/java/core/checkNumberPalindrome.html | CC-MAIN-2016-30 | refinedweb | 159 | 58.38 |
Simply using this does not work
Object a = new Object(); Object b = a; // <-- this creates a reference, not a copyFortunately Java has built in methods for creating a perfect copy of your object's current state. Back in the old days clone() did not work so well, however as of Java 1.7 I have not had any issues with it.... | http://www.gamedev.net/blog/1816/entry-2259361-send-in-the-java-clones/ | CC-MAIN-2016-50 | refinedweb | 188 | 64.1 |
Header for the RDM Cursor APIs. More...
#include "rdmtypes.h"
#include "rdmrowidtypes.h"
Go to the source code of this file.
Header for the RDM Cursor APIs.
Definition in file rdmcursorapi.h.
Read data from a blob column.
This function reads contents of a blob column from the current row of cursor.
The read will start ... | https://docs.raima.com/rdm/14_1/rdmcursorapi_8h.html | CC-MAIN-2019-09 | refinedweb | 138 | 75.91 |
On Mon, Apr 23, 2012 at 08:00:12AM -0400, Jeff Layton wrote:> On Sun, 22 Apr 2012 07:40:57 +0200> Miklos Szeredi <miklos@szeredi.hu> wrote:> > > On Fri, Apr 20, 2012 at 11:13 PM, Jeff Layton <jlayton@redhat.com> wrote:> > > On Fri, 20 Apr 2012 15:37:26 -0500> > > Mal> > > that's repeatedly renaming a new file on top of... | http://lkml.org/lkml/2012/4/23/228 | CC-MAIN-2015-14 | refinedweb | 193 | 66.54 |
SUPPORT FOR THE .NET DLR
One of the most versatile aspects of Umbraco is its support for additional languages through the .NET Dynamic Language Runtime (DLR) text. Out of the box, you can create macros that are based on IronPython and IronRuby, simply by using the backoffice interface. This is a great alternative to XS... | https://www.oreilly.com/library/view/umbraco-users-guide/9780470560822/chap5-sec13.html | CC-MAIN-2022-40 | refinedweb | 271 | 57.57 |
After two base proxy classes are added, we need to make WorkerMessagingProxy class derive from these two base classes.
Created attachment 27375 [details]
Proposed Patch
This patch is to make WorkerMessagingProxy derive from two base proxy classes introduced in issue 23776. The next patch is to change to use different p... | https://bugs.webkit.org/show_bug.cgi?id=23777 | CC-MAIN-2019-43 | refinedweb | 224 | 58.48 |
Introduction to Tkinter Text characters, marks, embedded windows or images.
Syntax:
w = text (master, option,..)
where the master is the parent window, and option is the options list that can be used for the widget, and options are the pairs of key-value that have commas as a separator.
Tkinter Text Widget
The most com... | https://www.educba.com/tkinter-text/?source=leftnav | CC-MAIN-2022-27 | refinedweb | 1,362 | 57.37 |
Using Vue as an Angular alternative for Ionic: The Directives
We keep going on with the Ionic Vue fever!
This time we will see how we can we use Directives in an Ionic Vue application.
You will need to install the Ionic Vue stack from this previous tutorial.
Directives allows us to modify the DOM. They are generally at... | https://www.javascripttuts.com/using-vue-as-an-angular-alternative-for-ionic-the-directives/ | CC-MAIN-2020-50 | refinedweb | 1,053 | 56.25 |
When I use eclipse to open an existing PyDev project, I find an error message like Unresolved import: smtplib. This error means the python3 built-in library smtplib can not be found and imported in python source code now. This error is because the python interpreter is not configured correctly, now I will tell you how ... | https://www.dev2qa.com/how-to-fix-unresolved-import-issues-in-eclipse-pydev-project/ | CC-MAIN-2022-27 | refinedweb | 649 | 72.46 |
i was wondering if anyone could help me out with how to get a winsock control onto a VB form? i have visual studio .NET and windows XP. thanks. (its for tcp not udp just in case that matters)
Stay away from my friends, they\'re smooth operators lookin for a way in.
I gave this some thought, but sorry I can't help. Just... | http://www.antionline.com/showthread.php?245971-winsock-question | CC-MAIN-2016-50 | refinedweb | 1,028 | 59.09 |
None
I found this blog on how to do it.
Here is the basic idea..;
using Microsoft.SharePoint.WebControls;
using System.Drawing;
public partial class _Default : System.Web.UI.Page
{
private PeopleEditor objEditor;
protected void Page_Load(object sender, EventArgs e)
{
objEditor = new PeopleEditor();
objEditor.AutoPostBa... | http://mysharepointblog.com/post/2007/07/How-to-use-the-PeoplePicker-in-SharePoint.aspx | crawl-002 | refinedweb | 779 | 59.4 |
The world of KIO metadata - checking the HTTP response from a server
Recently, had one problem: how could I check the HTTP response?
I knew already that the various ioslaves can store metadata, consisting of key-value pairs which are specific on the slave used. Normally you can get the whole map by accessing the metaDa... | https://www.dennogumi.org/2010/02/the-world-of-kio-metadata-checking-the-http-response-from-a-server/ | CC-MAIN-2016-50 | refinedweb | 352 | 71.34 |
Jason Haley is one of the most active amongst the authors of Add-ins for .NET Reflector. He has provided four Add-ins; AssemblyCollection.Sort, Enums, CodeShortcut and OpenZip, and he’s currently at work on a .NET disassembler codenamed ‘Debris’. However, it’s for his help in explaining the add-in architecture, Present... | https://www.red-gate.com/simple-talk/dotnet/.net-tools/encouraging-.net-reflector-add-ins/ | CC-MAIN-2018-05 | refinedweb | 1,165 | 60.24 |
#include <Puma/Builder.h>
Syntax tree builder base class. Implements the basic infrastructure for building CTree based syntax trees.
Tree builders are used in the syntax analysis to create the nodes of the syntax tree according to the accepted grammar (see class Syntax). A syntax tree shall be destroyed using the tree ... | http://puma.aspectc.org/manual/html/classPuma_1_1Builder.html | CC-MAIN-2020-16 | refinedweb | 321 | 77.13 |
It is apparent that support for networking is inherent to the Linux kernel. One could also see Linux as one of the most 'safest and secure' Networking Operating system presently available in the market. Internally Linux kernel implements the TCP/IP protocol stack . It is possible to divide the networking code into part... | http://www.tldp.org/LDP/LG/issue93/bhaskaran.html | CC-MAIN-2016-26 | refinedweb | 2,033 | 55.03 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.