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
Build an activity feed with React A basic understanding of React and Node.js are needed to follow this tutorial. Applications can generate a lot of events when they’re running. However, most of the time, the only way to know what’s going on is by looking at the logs or running queries against the database. It would be ...
https://pusher.com/tutorials/activity-feed-react
CC-MAIN-2021-25
refinedweb
2,106
51.75
In today’s Programming Praxis exercise, our goal is to calculate the minimum total amount of coins involved in a payment (including change) for a currency with a given set of coin denominations. Let’s get started, shall we? import Data.List import Math.Combinat First we search all transactions involving one coin, then ...
https://bonsaicode.wordpress.com/2013/02/22/programming-praxis-floupia/
CC-MAIN-2016-36
refinedweb
450
60.45
/* > #include <setjmp.h> #ifdef HAVE_PWD_H #include <pwd Lisp_Object format_time_string (char const *, ptrdiff_t, Lisp_Object, int, time_t *, struct tm **);;); Vuser_full_name = Fuser_full_name (NILP (tem)? make_number (geteuid ()) : Vuser_login_name);; } static Lisp_Object buildmark (EMACS_INT charpos, EMACS_INT byte...
https://emba.gnu.org/emacs/emacs/-/blame/d3760c4b0ad02dd26225f6886611940ab281bd27/src/editfns.c
CC-MAIN-2020-45
refinedweb
491
61.77
0 For a given list, I would like my output to have the line "Deleting node with value ..." for each node. My destructor function works for a 2-element list, but for a 3-element list it deletes a certain node more than once, and for a list of any size greater than 3, I get an infinite loop. I try tracing through the cod...
https://www.daniweb.com/programming/software-development/threads/104689/destructor-function-for-list-structure
CC-MAIN-2017-04
refinedweb
125
80.21
0 Ok, I have been trying to write a program that will read in a list of positive integers (including zero) and display some statistics regarding the integers. This is what I have to do,. First, ask the user to enter an integer to search for. Next, search the array to determine if the given integer is in the array. If t...
https://www.daniweb.com/programming/software-development/threads/328198/quick-java-questions
CC-MAIN-2016-50
refinedweb
394
72.46
This forum is now read-only. Please use our new forums at discuss.codecademy.com. How to use APIs with Python Forum View Course » View Exercise Why won't Codecademy see the 'kittens' variable I've created? I've copied/pasted the exact line 4 that was suggested. Here's the full code block: from urllib2 import urlopen # ...
https://www.codecademy.com/forum_questions/554e3bc1e39efec0ba000039
CC-MAIN-2018-09
refinedweb
132
78.35
Java as a CS Introductory Language? 913 First, tulare queries: "I'm currently a student at a small university whose CS students are required to attend two terms of Java programming courses before moving on to other OOP languages. My personal feeling is that Java is clunky, ugly, and runs much too slow on most platforms...
http://slashdot.org/story/01/06/11/2021220/java-as-a-cs-introductory-language
crawl-003
refinedweb
20,056
61.16
iCelGameClient Struct ReferenceThe main object to manage the client game logic. More... #include <physicallayer/network.h> Detailed DescriptionThe main object to manage the client game logic. You can use it to: - update the data of the player. - convert a server clock or a server entity ID in client values. - tell the ...
http://crystalspace3d.org/cel/docs/online/api-1.0/structiCelGameClient.html
CC-MAIN-2013-20
refinedweb
292
68.36
Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode. Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript). On 13/02/2017 at 13:03, xxxxxxxx wrote: I would like to know if it's p...
https://plugincafe.maxon.net/topic/9964/13416_custom-left-right-menu-gedialog-command-function
CC-MAIN-2021-31
refinedweb
475
72.16
Lets write something closer to real C++ code. I've put the comments inside the code for convenience. P.S. The grammatical error in Elysia's sig always bothers me. ("every thing" should be "everything")P.S. The grammatical error in Elysia's sig always bothers me. ("every thing" should be "everything")Code:#include <iost...
http://cboard.cprogramming.com/cplusplus-programming/123843-stl-vector-problem-code-2.html
CC-MAIN-2015-40
refinedweb
485
75.3
US6850987B1 - System for multipoint infrastructure transport in a computer network - Google PatentsSystem for multipoint infrastructure transport in a computer network Download PDF Info - Publication number - US6850987B1US6850987B1 US09412815 US41281599A US6850987B1 US 6850987 B1 US6850987 B1 US 6850987B1 US 09412815 U...
https://patents.google.com/patent/US6850987B1/en
CC-MAIN-2018-47
refinedweb
6,091
55.27
In the previous lessons in this chapter, you’ve learned a bit about how base inheritance works. In all of our examples so far, we’ve used public inheritance. That is, our derived class publicly inherits the base class. In this lesson, we’ll take a closer look at public inheritance, as well as the two other kinds of inh...
https://www.learncpp.com/cpp-tutorial/inheritance-and-access-specifiers/
CC-MAIN-2021-17
refinedweb
1,832
53
You're reading the documentation for an older, but still supported, version of ROS 2. For information on the latest version, please have a look at Humble. ament_cmake_python user documentation ament_cmake_python is a package that provides CMake functions for packages of the ament_cmake build type that contain Python co...
https://docs.ros.org/en/galactic/How-To-Guides/Ament-CMake-Python-Documentation.html
CC-MAIN-2022-40
refinedweb
295
51.75
Subdownloader with GNU license and requiring payment to use the software? Is this legal? Hi, I just downloaded Subdownloader and I'm required to pay 10 $ to use it (shareware). But the license says it's freeware.... Strange to have to pay for freeware? It's the first time I face this situation. Is this legal? The licen...
https://answers.launchpad.net/subdownloader/+question/52299
CC-MAIN-2019-22
refinedweb
2,884
68.7
How do we get into the following situation? First we complain about an ignored file (why not just ignore it?), and then apparently we delete the ignored file. [...] import Pictures/2005/11/16/.IMG_0819.tmpwrite.JPG (duplicate) ok (Recording state in git...) The following paths are ignored by one of your .gitignore file...
http://git-annex.branchable.com/forum/Why_are_ignored_files_being_deleted__63__/
CC-MAIN-2017-13
refinedweb
197
60.61
This post is going to help save you money if you're running a Rails server. It starts like this: you write an app. Let's say you're building the next hyper-targeted blogging platform for medium length posts. When you login, you see a paginated list of all of the articles you've written. You have a Post model and maybe ...
https://blog.heroku.com/solving-n-plus-one-queries
CC-MAIN-2018-26
refinedweb
1,917
65.73
Get the highlights in your inbox every week. What you need to know about open source for products Open source for products in four rules (and 10 slides) Subscribe now There are four rules to understand when building products out of open source software. A product team (engineering, product management, marketing) needs ...
https://opensource.com/business/15/8/open-source-products-four-rules
CC-MAIN-2021-39
refinedweb
1,728
56.76
Hi, I've been learning about the std::copy function in the <algorithm> header and I'm stuck on this exercise that I gave my self. Let's see the code snippet first: #include <iostream> #include <vector> #include <algorithm> #include <iterator> using namespace std; ostream& operator<<(ostream& os, const int p_val) { os.p...
https://www.daniweb.com/programming/software-development/threads/456963/std-copy-and-operator-overload-for-ostream
CC-MAIN-2018-05
refinedweb
163
56.35
15 July 2010 16:18 [Source: ICIS news] LONDON (ICIS news)--LyondellBasell’s new 260,000 tonne/year high density polyethylene (HDPE) plant at Munchmunster, Germany, is now on stream, a company source said on Thursday. The plant will produce HDPE injection, blowmoulding and textile grades. HDPE prices in Europe had been ...
http://www.icis.com/Articles/2010/07/15/9376943/lyondellbasells-new-germany-hdpe-plant-comes-on-stream.html
CC-MAIN-2015-18
refinedweb
151
52.73
Revision history for Perl extension App::Office::Contacts. 2.04 Thu Feb 6 14:06:00 2014 - Add code for Pg and MySQL re utf8 in the DBI attributes. See App::Office::Contacts::Util::Logger. See lines 44 .. 57. - Default to mysql_enable_utf8 = 1 and pg_enable_utf8 = 0 in the config file. See lines 48 .. 52. I'm using pg_e...
https://metacpan.org/changes/distribution/App-Office-Contacts
CC-MAIN-2015-48
refinedweb
2,053
62.54
AnalogOut Use the AnalogOut interface to set the output voltage of an analog output pin specified as a percentage or as an unsigned short. Mbed OS provides separate APIs to use percentage or range. Mbed OS supports a maximum resolution VCC/65,536 V, though the actual resolution depends on the hardware. Note: Not all pi...
https://os.mbed.com/docs/mbed-os/v5.14/apis/analogout.html
CC-MAIN-2021-04
refinedweb
145
58.18
Dialog API API documentation for the React Dialog component. Learn about the available props and the CSS API. Import You can learn about the difference by reading this guide on minimizing bundle size. import Dialog from '@mui/material/Dialog'; // or import { Dialog } from '@mui/material'; Dialogs are overlaid modal pap...
https://mui.com/api/dialog/
CC-MAIN-2021-43
refinedweb
103
50.33
Hi, I have a current issue where I am trying to write a groovy script where if criteria is met, then to proceed with the rest of the test steps and if criteria is not met then to skip to thenext row of the datasource. Test case stucture: Datasource Test step 1 Groovy - if loop to find if a criteria is met. If it is not...
https://community.smartbear.com/t5/SoapUI-Pro/Groovy-script-to-fail-test-run-and-skip-to-next-line-in/m-p/187841
CC-MAIN-2019-35
refinedweb
404
65.73
Wiki Syntax Comparison Courtesy of RadomirDopieralski... (with editions) Well, it's a shame about the pipe character, but the other arguments about why Moin syntax "sucks" aren't convincing: you can't apparently have non-WikiName links in Google Code or Trac (unless "no need" means that Trac figures it out), Trac still...
https://wiki.python.org/moin/SiteImprovements/WikiSyntaxComparison?action=fullsearch&context=180&value=linkto%253A%2522SiteImprovements%252FWikiSyntaxComparison%2522
CC-MAIN-2018-26
refinedweb
263
61.16
Cannot Invoke Method On An Object Of Type coldfusion.runtime.VariableScope With Named Arguments I am getting a very strange error when I try to scope a private method within a ColdFusion component. I have this very simple ColdFusion component: - <cfcomponent - - <cffunction - name="PrivateMethod" - access="private" - r...
http://www.bennadel.com/blog/570-cannot-invoke-method-on-an-object-of-type-coldfusion-runtime-variablescope-with-named-arguments.htm?_rewrite
CC-MAIN-2015-35
refinedweb
1,425
67.15
Description Typically when dealing with 3rd party COM libraries (eg. Office), you make use of the constants defined in that library. Once makepy creates the typelib for you, using these constants is normally easy in python. You only need to import win32com.client.constants to access them. However, since these typelibs ...
http://www.py2exe.org/index.cgi/IncludingTypelibs?highlight=VirtualEnv
CC-MAIN-2015-22
refinedweb
731
55.95
Given a sample code: 1 public class Test extends Thread { 2 public static void main(String[] args) throws Exception { 3 Test t = new Test(); 4 t.start(); 5 t.method(); } 6 public void run() { 7 System.out.println("run"); } 8 public void method() { 9 System.out.println("method"); }} Which of the following statement is c...
http://www.roseindia.net/tutorial/java/scjp/part8/question6.html
CC-MAIN-2015-22
refinedweb
124
73.78
A Python interface library for WKlata's Mirobot Project description mirobot Description mirobot is a python module that can be used to control the WLkata Mirobot This library uses the G code protocol to communicate with the Mirobot over a serial connection. The official G code instruction set and driver download for th...
https://pypi.org/project/mirobot-py/
CC-MAIN-2021-10
refinedweb
576
52.29
Hello All, I have a seemingly minor problem which likely requires some Python coding. I am not currently familiar with python (more of a Matlab person), and was wondering if anyone had any advice. I am attempting to use the Feature Class Z to ASCII tool to make text files with my Z elevations. This tool performs correc...
https://community.esri.com/thread/230249-feature-class-z-to-ascii-file-names
CC-MAIN-2020-45
refinedweb
390
55.84
Rÿffffe9veillÿffffe9 wrote: > Hello, > > I have just started doing the python tutorials and i > tried to modify one of the exercises, it has to to > with defining functions. > > I wanted the user to be able to enter an option and > then get a print of the selected option. I also wanted > to have an exit for the user. >...
https://mail.python.org/pipermail/python-list/2004-December/261064.html
CC-MAIN-2014-15
refinedweb
470
75.3
This file is fg_bg.def, from which is created fg_bg.c. It implements the builtins "bg" and "fg_bg.c $BUILTIN fg $FUNCTION fg_builtin $DEPENDS_ON JOB_CONTROL $SHORT_DOC fg [job_spec] Place JOB_SPEC in the foreground, and make it the current job. If JOB_SPEC is not present, the shell's notion of the current job is used. ...
http://opensource.apple.com/source/bash/bash-86.1/bash-3.2/builtins/fg_bg.def
CC-MAIN-2016-30
refinedweb
402
65.52
Very often I need to create dicts that differ one from another by an item or two. Here is what I usually do: setup1 = {'param1': val1, 'param2': val2, 'param3': val3, 'param4': val4, 'paramN': valN} setup2 = copy.deepcopy(dict(setup1)) setup2.update({'param1': val10, 'param2': val20}) setup2 setup1 setup2 = dict(setup1...
https://codedump.io/share/ED7aoNnvDx1w/1/how-to-copy-a-dict-and-modify-it-in-one-line-of-code
CC-MAIN-2017-26
refinedweb
217
60.95
summon_process 0.1.3 Process coordinator for tests Current status: work in progress. The code is lacking proper documentation and is broken on Python 3.3. Python process orchestration library. About As developers we have to work on project that rely on multiple processes to run their tests suites. Sometimes these proce...
https://pypi.python.org/pypi/summon_process/0.1.3
CC-MAIN-2015-32
refinedweb
263
59.7
check template type for type Hey guys, I know, it's probably more a general c++ question than qt but anyway... I have a dll which provides functions like: bool GetDataAsU8(unsigned char *data) bool GetDataAsS16(short *data) bool GetDataAsU32(uint *data) ... I want to write a helper function which uses templates and sel...
https://forum.qt.io/topic/52448/check-template-type-for-type
CC-MAIN-2020-05
refinedweb
231
53.1
PUTWC(3P) POSIX Programmer's Manual PUTWC(3P) #include <stdio.h> #include <wchar.h> wint_t putwc(wchar_t wc, FILE *stream); The functionality described on this reference page is aligned with the ISO C standard. Any conflict between the requirements described here and the ISO C standard is unintentional. This volume of ...
http://man7.org/linux/man-pages/man3/putwc.3p.html
CC-MAIN-2017-43
refinedweb
133
69.48
28 March 2011 22:47 [Source: ICIS news] SAN ANTONIO, ?xml:namespace> Ethylene spot margins were at 29.09 cents/lb ($641/tonne, €455/tonne) last week, up from 27.53 cents/lb one week earlier, using ethane as a feedstock. The increase was based on a range of spot deals done at 58.50-60.00 cents/lb, which is up from 54.75...
http://www.icis.com/Articles/2011/03/28/9447781/npra-11-us-ethylene-margins-grow-5.7-on-spot-uptrend.html
CC-MAIN-2014-42
refinedweb
248
56.86
Opened 6 years ago Closed 6 years ago #15537 closed (wontfix) allow the login_url accept a relative path Description In the development version, the login_required decorator accepts a parameter named login_url: @login_required(login_url='/accounts/login/') def my_view(request): ... Sometimes, the login_url may depend o...
https://code.djangoproject.com/ticket/15537
CC-MAIN-2016-44
refinedweb
267
62.07
Hello, I would like to add a six-line header to a data file for many files in a loop. However, I need to add the header to a data properly first... My inclination (as a python novice) is to write the header and append the data to the header. However, this doesn't work. Can someone recommend a more efficient way to go a...
https://www.daniweb.com/programming/software-development/threads/263700/adding-6-line-header-to-data
CC-MAIN-2018-22
refinedweb
217
59.3
The field that you want to sort the RecordSet object by. The direction to sort the recordset. "DESC" specifies a descending sort; anything else is ascending. The label that will show in the UI component. The data that will correspond to the label in the UI component. The DataGlue object contains two methods for binding...
http://etutorials.org/Macromedia/Fash+remoting.+the+definitive+guide/Part+III+Advanced+Flash+Remoting/Chapter+15.+Flash+Remoting+API/DataGlue.bindFormatStrings/
CC-MAIN-2020-10
refinedweb
272
51.14
Opened 12 years ago Closed 12 years ago Last modified 12 years ago #3388 closed defect (fixed) dods driver crashes on x-flip read, 64bit OSX Description gdriver/dods autotest #5 crashes on 64bit OSX 10.6. It's fine on 32bit OSX. I happens in GDALCopyWordsFromT(): Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes...
https://trac.osgeo.org/gdal/ticket/3388
CC-MAIN-2022-21
refinedweb
282
67.15
...one of the most highly regarded and expertly designed C++ library projects in the world. — Herb Sutter and Andrei Alexandrescu, C++ Coding Standards There was a discussion about whether tuples should be in a separate namespace or directly in the boost namespace. The common principle is that domain libraries (like gr...
http://www.boost.org/doc/libs/1_57_0/libs/tuple/doc/design_decisions_rationale.html
CC-MAIN-2014-52
refinedweb
848
54.73
GETC(3) NetBSD Library Functions Manual GETC(3)Powered by man-cgi (2021-06-01). Maintained for NetBSD by Kimmo Suominen. Based on man-cgi by Panagiotis Christias. NAME fgetc, getc, getchar, getc_unlocked, getchar_unlocked, getw -- get next character or word from input stream LIBRARY Standard C Library (libc, -lc) SYNOP...
https://man.netbsd.org/NetBSD-9.1/i386/fgetc.3
CC-MAIN-2021-39
refinedweb
228
64.51
SBT Importing an sbt project - Click Import Project or Open on the welcome screen. - In the dialog that opens, select a directory that contains your sbt project or simply build.sbt. Click OK. - Follow the steps suggested in the Import Project wizard. You can use the suggested default settings since they are enough to s...
https://www.jetbrains.com/help/idea/2018.2/sbt-support.html
CC-MAIN-2018-39
refinedweb
909
66.44
How can I draw a dotted line in AWT? Created May 4, 2012 John Zukowski Prior to introducing the Java 2D API into the Java 2 platform, all lines drawn were a single pixel wide solid lines of a single color. So, if you wanted a dotted line in 1.0 or 1.1, you had to do all the intermediate drawing steps yourself. With the...
http://www.jguru.com/faq/view.jsp?EID=114099
CC-MAIN-2019-30
refinedweb
173
65.22
On Mon, 22 Feb 2010 18:17:00 -0500Oren Laadan <orenl@cs.columbia.edu> wrote:> Hi Andrew,> > We've put a stake in the ground for our next set of checkpoint/restart> patches, v19. It has some great new stuff, and we put extra effort to> address your concerns. We would like to have the code included in -mm> for wider feed...
http://lkml.org/lkml/2010/3/1/422
CC-MAIN-2014-10
refinedweb
347
62.98
Tutorial: Automate tasks to process emails by using Azure Logic Apps, Azure Functions, and Azure Storage Azure Logic Apps helps you automate workflows and integrate data across Azure services, Microsoft services, other software-as-a-service (SaaS) apps, and on-premises systems. This tutorial shows how you can build a l...
https://docs.microsoft.com/en-us/azure/logic-apps/tutorial-process-email-attachments-workflow
CC-MAIN-2019-51
refinedweb
3,348
63.19
Quine in ActionScript 3 In computing, a quine is a computer program which produces a copy of its own source code as its only output. For amusement, programmers sometimes attempt to develop the shortest possible quine in any given programming language. While playing with wonderfl I have found a nice ActionScript quine s...
http://blog.yoz.sk/2010/03/quine-in-actionscript-3/
CC-MAIN-2013-20
refinedweb
182
56.86
A simple Python package for creating or reading GDSII layout files. Project description. Documentation - Complete documentation can be found at: - Download - The package can be downloaded for installation via easy_install at - Gallery A Simple Example Here is a simple example that shows the creation of some text with a...
https://pypi.org/project/gdsCAD/
CC-MAIN-2018-43
refinedweb
454
58.48
Build a calculator for a website Budget $30-250 CAD I'm looking for help for a small project to create a calculator to calculate return of of return (Money Weighted & Time Weighted) and upload to my personal website. 29 freelancere byder i gennemsnit $171 på dette job Hi I am professional & highly experinced Web progra...
https://www.dk.freelancer.com/projects/graphic-design/build-calculator-for-website/
CC-MAIN-2019-18
refinedweb
185
65.83
DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world Canvas And Its Callbacks In OO Code I learn to use 2 different types of Canvas callbacks in the <a href=>last snippet</a>. Typically, when I w...
http://www.dzone.com/snippets/canvas-and-its-callbacks-oo
CC-MAIN-2013-20
refinedweb
274
66.84
K 'survival table' which works out an average survival rate of people based on 3 features: - Passenger Class - Passenger Fare (grouped into those who paid 0-9, 10-19, 20-29, 30+) - Gender It looks like this: ![2013-10-30_07-05-03.png 2013 10 30 07 05 03]( /uploads/2013/10/2013-10-30_07-05-03.png) And the code that crea...
https://markhneedham.com/blog/2013/10/30/kaggle-titanic-python-pandas-attempt/
CC-MAIN-2020-24
refinedweb
478
50.02
#include <wx/event.h> This event class contains information about command events, which originate from a variety of simple controls. Note that wxCommandEvents and wxCommandEvent-derived event classes by default and unlike other wxEvent-derived classes propagate upward from the source window (the window which emits the ...
https://docs.wxwidgets.org/trunk/classwx_command_event.html
CC-MAIN-2018-51
refinedweb
201
51.48
Smoke-GObject generates a heirachy of QMetaObjects from GObject Introspection typelib files. This allows the functions in GObject based libraries to be invoked as slots, and for GObject signals to be forwarded to Qt signals. The GObject based types being converted to and from their Qt equivalents. The bindings can be u...
https://launchpad.net/smoke-gobject
CC-MAIN-2017-34
refinedweb
320
59.03
Working with Colour It’s useful to be able to transform colour specifiers into hue, saturation, brightness and kelvin values. These are used by LIFX devices to change how they look. Photons supports all the colour formats used by the LIFX HTTP API as explained in the ColourParser below. - class photons_control.colour.C...
https://photons.delfick.com/useful_helpers/colour.html
CC-MAIN-2022-40
refinedweb
638
50.23
being totally swamped with no real time to do much of anything. I just recently due to school got back into doing some programming. Partially because of the nature of the class and me being as lazy as I could possibly be just not wanting to go through all the repeditive steps. Right now I am taking a statistics class a...
http://www.gamedev.net/blog/468/entry-2255483-wow-long-time/#comment_2254343
CC-MAIN-2016-50
refinedweb
734
58.92
So you want to secure your Umbraco site Imagine, if you will, for a second, that you're trying to secure your Umbraco site by running it over an https connection, sounds complicated? Not so much. It's fairly trivial to set up once you have a certificate, which you now know how to create using Let's Encrypt. I'm not goi...
https://cultiv.nl/blog/so-you-want-to-secure-your-umbraco-site/
CC-MAIN-2019-09
refinedweb
3,330
61.46
This issue comes from issue4613. The following code raises a SyntaxError("can not delete variable 'e' referenced in nested scope"): def f(): e = None def g(): e try: pass except Exception as e: pass # SyntaxError here??? The reason is because of, a "del e" statement is inserted. The above code is correct, and should wo...
https://bugs.python.org/msg77536
CC-MAIN-2019-22
refinedweb
175
55.84
- Type: Bug - Status: Resolved - Priority: Medium - Resolution: Done - - - Environment: Originally found on Swift 4.2.2 running on Ubuntu 18.04 Reproduced on Swift 4.2 running on macOS 10.14.3 Reproduced on Swift 5 beta 4 running on macOS 10.14.3 Details Variation 1 Given the following code: import Foundation struct My...
https://bugs.swift.org/browse/SR-10045
CC-MAIN-2019-30
refinedweb
340
50.84
So to save others the bother to check what's in the zip file, the contents of mytest/mod1.py is as follows: import mytest.mod2 as mod def func(): print('mod1.func called') mod.func() There's no __init__.py (so mytest is a namespace package, PEP 420) but adding an empty __init__.py makes no difference. The problem occur...
https://bugs.python.org/msg291400
CC-MAIN-2017-47
refinedweb
377
76.32
My issue is that, until this change is accepted, I have to override SDL2’s window-procedure to perform the same task in my own code, i.e. after getting the HWND from SDL_GetWindowWMInfo(), I call Win32’s GetWindowLongPtr() with GWLP_WNDPROC (or GWL_WNDPROC, as the case may be), and save that in my app’s screen-oriented...
https://discourse.libsdl.org/t/iterate-through-existing-sdl-window-instances/34329
CC-MAIN-2022-05
refinedweb
203
71.24
In our previous blog, we had seen a brief introduction about graphql and created some records using graphql queries. In this blog, we are going to continue with a mutation in graphql. We are going to see the importance of mutations in graphql. Introduction Mutation in graphql allows users to create, update and delete t...
https://pythonsansar.com/how-to-perform-crud-operations-with-mutation-in-graphql/
CC-MAIN-2022-27
refinedweb
712
50.12
There are many graphical user interface (GUI) toolkits that you can use with the Python programming language. The big three are Tkinter, wxPython, and PyQt. Each of these toolkits will work with Windows, macOS, and Linux, with PyQt having the additional capability of working on mobile. A graphical user interface is an ...
https://realpython.com/python-gui-with-wxpython/
CC-MAIN-2022-05
refinedweb
3,088
71.34
Bench False Cache Sharing Last updated on False cache sharing is when a bit of data shares a cache line and is getting dragged around the cores even though it doesn’t getting updated. It can be mittigated by having an empty bit of data at the end of the struct. #include <thread> #include <cstdint> #include <chrono> str...
https://blog.cooperking.net/posts/2019-05-13-bench_false_cache_sharing-copy/
CC-MAIN-2021-39
refinedweb
195
56.89
"Michael Abbott" <michael.g.abbott at ntlworld.com> wrote in message news:Xns9145D94516673michaelrcpcouk at 62.253.162.104... > However, Python tuple assignment does look somewhat like pattern matching; > for example, sometimes my .read() method returns some (one) thing, and I > write: > > time, status, ((value, boring...
https://mail.python.org/pipermail/python-list/2001-October/074529.html
CC-MAIN-2016-40
refinedweb
119
68.67
Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode. Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript). Hello, there! I would like to copy the animation I have on a Mixamo Co...
https://plugincafe.maxon.net/topic/13228/global-matrix-trying-to-copy-data-from-mixamo-control-rig-with-python
CC-MAIN-2021-49
refinedweb
1,752
66.03
I had to write this quick little adapter the other day for something and figured it might be useful for people ... In general you are better off making the code that is using a stream not use a stream but to use an IEnumerable<byte []> since using stream you are required to copy ... Buy for very large buffers this is f...
http://codebetter.com/blogs/gregyoung/archive/2008/03.aspx
crawl-001
refinedweb
833
62.98
<< Tobias Jackson9,758 Points Create a method named "create_shopping_list" that returns a hash. It does not need to ask for a name or get anything fro I can't figure out what wrong with my code. def create_shopping_list hash = { "name" => name } return hash end 1 Answer andren28,523 Points The problem is the value of t...
https://teamtreehouse.com/community/create-a-method-named-createshoppinglist-that-returns-a-hash-it-does-not-need-to-ask-for-a-name-or-get-anything-fro
CC-MAIN-2022-33
refinedweb
232
72.09
We are trying to create an auto-download for our client to combines database information with an uploaded Word document. We are currently using the following code to create the first page of the PDF: Hello, Thank you for your request. I would like to note that you are using the old version of the Aspose.Words. We stron...
https://forum.aspose.com/t/append-truncated-word-document-to-pdf/74694
CC-MAIN-2022-21
refinedweb
442
61.73
I’m trying to create a transform that pads a PIL image to be square. (I wish this was one of the included transforms. Anybody know why it isn’t?) def square_pad(image): w, h = image.size if w==h: return image max_wh = np.max([w, h]) hp = int((max_wh - w) // 2) vp = int((max_wh - h) // 2) hp2 = max_wh-w-hp vp2 = max_wh-...
https://discuss.pytorch.org/t/custom-transforms-dont-work/147983
CC-MAIN-2022-33
refinedweb
200
67.35
I was reading the submissions and came along a neat submission by the very own @pieguy (You know him, as he is setter of many problems in the Contests here at Codechef). I am pasting the code snippets where I have doubt, if anyone or @pieguy himself can explain this, then it will really be helpful. #include<iostream> #...
https://discusstest.codechef.com/t/gcj-manage-your-energy-problem-with-pieguys-submission/1968
CC-MAIN-2021-31
refinedweb
266
65.29
The Innocuous Code That Tripped Me The Innocuous Code That Tripped Me Sometimes the code that breaks on us when we believe it shouldn't breaks because of something we've long since stopped thinking building a cache, I need a way to generate a hash code from a query. A query is a complex object that has many properties....
https://dzone.com/articles/the-innocuous-code-that-tripped-me
CC-MAIN-2018-34
refinedweb
120
52.26
source code The Blender.Registry submodule. New: GetKey and SetKey have been updated to save and load scripts *configuration data* to files. This module provides a way to create, retrieve and edit persistent data in Blender. When a script is executed it has its own private global dictionary, which is deleted when the s...
http://www.blender.org/documentation/248PythonDoc/Registry-module.html
CC-MAIN-2014-10
refinedweb
352
57.3
![endif]--> Reference Language | Libraries | Comparison | Changes Write a byte to the EEPROM. EEPROM.write(address, value) address: the location to write to, starting from 0 (int) value: the value to write, from 0 to 255 (byte) none An EEPROM write takes 3.3 ms to complete. The EEPROM memory has a specified life of 100...
http://arduino.cc/de/Reference/EEPROMWrite
CC-MAIN-2014-10
refinedweb
130
64.71
Modern browsers not only allow reading but also writing content: making social media posts, filling out online forms, searching for content, and so on. The next few labs implement these features. To start, this lab implements web forms, which allow the user to fill out form information and then send that form to the se...
https://browser.engineering/forms.html
CC-MAIN-2019-51
refinedweb
3,884
64.61
Join devRant Pipeless API From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More...5 - - - - - I did a simple bar graph to show the status of a db migration. Each bar is a computer with a db file. As I was bored waiting, I added a Kin...
https://devrant.com/search?term=bored
CC-MAIN-2021-21
refinedweb
3,061
82.75
It seems to me that for some reason this didn't make its way to the official documentation and seems to be rather unknown though implemented already in IRIS 2020.1 Thanks to @Dan Pasco I got a hint on the classes involved. I used the recommended sequence of how to use it. it is all directly taken from Class Reference a...
https://community.intersystems.com/post/iris-native-api-objectscript
CC-MAIN-2020-40
refinedweb
255
51.75
8/31/11 r.r 1 Javadocing in Netbeans (rev. 2011-05-20) Javadocing in Netbeans (rev. 2011-05-20) This note describes how to embed HTML-style graphics within your Javadocs, if you are using Netbeans. Additionally, I provide a few hints for package level and overview level documentation and the role of the properties opti...
https://www.techylib.com/el/view/draindecorum/javadocing_in_netbeans_rev._2011-05-20
CC-MAIN-2017-22
refinedweb
1,864
66.74
Download presentation Presentation is loading. Please wait. Published byEric Thompson Modified over 2 years ago 1 PHOENICS User Meetings PARIS, 2008 Relational input Relational data input for PHOENICS Contents The need for a relational input capability The Advanced PHOENICS Input Language The VR-Editor in protected mod...
http://slideplayer.com/slide/781252/
CC-MAIN-2016-44
refinedweb
5,868
50.87
[ Update: the Freebase type provider is now available as part of the FSharp.Data NuGet package and library. The namespace has changed from “Samples.DataStore.Freebase” to “FSharp.Data”. Find out more about F# at fsharp.org. ] The F# 3.0 Freebase Type Provider Sample includes some support for query translation from F# 3...
https://blogs.msdn.microsoft.com/fsharpteam/2012/09/24/the-f-3-0-freebase-type-provider-sample-some-info-on-queries/
CC-MAIN-2016-30
refinedweb
219
69.07
Could someone tell me what is wrong with the boolean operators in this program thanks!! Code:#include <iostream> #include "test2.h" using namespace std; int main() { double balance, chargeAmt,c,payAmt, bal,C ,P,D, Q; string trans; cout<<"Enter beginning balance. "; cout<<endl; cin>>balance; cout<<endl; if (cin.fail()) ...
http://cboard.cprogramming.com/cplusplus-programming/51245-boolean-operators.html
CC-MAIN-2015-06
refinedweb
151
65.22
In this post I describe a pattern that lets you run arbitrary commands for your application in your Kubernetes cluster, by having a pod available for you to exec into. You can use this pod to perform ad-hoc maintenance, administration, queries—all those tasks that you can't easily schedule, because you don't know when ...
https://andrewlock.net/deploying-asp-net-core-applications-to-kubernetes-part-10-creating-an-exec-host-deployment-for-running-one-off-commands/
CC-MAIN-2021-10
refinedweb
2,211
55.44
Simple Access Control for CakePHP3 Simple Access Control for CakePHP3 Author Lorna Mitchell takes us through an implementation for Access Control that can be used in CakePHP3. Read on to find out more! Join the DZone community and get the full member experience.Join For Free The. The application has about 50 users; it'...
https://dzone.com/articles/simple-access-control-for-cakephp3
CC-MAIN-2020-29
refinedweb
1,223
54.76
The trick of this problem is to keep two elements during the binary search, this way during the search, the index mid-1 and mid+1 will always be valid. To do so, we need to only start binary search when start+1<end, to make sure we have 3 numbers to begin with. As for the if branch statement, a trick works for me is to...
https://discuss.leetcode.com/topic/38172/clean-java-binary-search-solution
CC-MAIN-2018-05
refinedweb
160
87.96
Inheritance is an integral part of Java (and all OOP languages). It turns out that youre always doing inheritance when you create a class, because unless you explicitly inherit from some other class, you implicitly inherit from Javas standard root class Object. The syntax for composition is obvious, but to perform inhe...
http://www.linuxtopia.org/online_books/programming_books/thinking_in_java/TIJ308_001.htm
CC-MAIN-2014-15
refinedweb
678
63.9
Access your Github Account from Pythonista If you have a Github account and would like to access it from Pythonista here's a script to download and install PyGithub: It creates 'github' and 'dateutil' directories in Pythonista's Documents directory which you can import as modules. These aren't visible through the UI bu...
https://forum.omz-software.com/topic/178/access-your-github-account-from-pythonista
CC-MAIN-2017-34
refinedweb
568
57.4
Lab sessions Tue Oct 01 to Thu Oct 03 Lab written by Julie Zelenski, with modifications by Nick Troccoli Lab Overview Your weekly lab is a chance to experiment and explore, ask and answer questions, and get hands-on practice in a supported environment. We provide a set of lab exercises that revisit topics from recent l...
https://web.stanford.edu/class/archive/cs/cs107/cs107.1202/lab1/
CC-MAIN-2020-10
refinedweb
3,014
64
How do i read in a file and move it to two other locations?Oops i pasted the wrong thing. Why doesn't this work? [code] #include <iostream> #include <fstream>... How do i read in a file and move it to two other locations?I want to copy a file to a new file. I thought this would do it but it doesn't copy it over to the ...
http://www.cplusplus.com/user/omitted/
CC-MAIN-2013-48
refinedweb
140
94.15
Using Loyc.Essentials: collection interfaces03 Feb 2014 This post was imported from blogspot.Loyc.Essentials is a library of "stuff that should be in the .NET BCL, but isn't." Today I will present one of the most important parts of Loyc.Essentials: its collection interfaces. Theraot.Core instead to provide these interf...
http://loyc.net/2014/using-loycessentials-collection.html
CC-MAIN-2019-26
refinedweb
3,244
54.73
mmr_input_attach() Attach an input. Synopsis: #include <mm/renderer.h> int mmr_input_attach( mmr_context_t *ctxt, const char *url, const char *type ) Arguments: - ctxt - A context handle - url - The URL of the new input - type - The media type of the input. Possible values are "track", "playlist", and "autolist" (quote...
http://developer.blackberry.com/playbook/native/reference/com.qnx.doc.mme.mmrenderer/topic/mmr_api/mmr_input_attach.html
CC-MAIN-2019-30
refinedweb
463
61.87
How to Use the Java Keyword this The keyword this in Java refers to the current class instance. For example, if a class defines a method named Calculate, you can call that method from another method within the same class like this: this.Calculate(); Of course, you can also call the Calculate method without the this key...
https://www.dummies.com/programming/java/how-to-use-the-java-keyword-this/
CC-MAIN-2019-47
refinedweb
156
64.81
How to pass multiple PK in the AQL Select * from namespace.setName where PK command? You can use or split to pass multiple PK parameters, like this select * from namespace.setName where PK="pk1" or PK="pk2" No… nothing is parsed by aql beyond the first PK=“pk1” aql> select * from test.testset where pk="key1" +--------+...
https://discuss.aerospike.com/t/how-to-pass-multiple-pk-in-the-aql-select-query/8543
CC-MAIN-2021-31
refinedweb
179
67.15
By: Martin Odersky and Jeff Olson and Paul Phillips and Joshua Suereth History Introduction This is a proposal to introduce syntax for classes in Scala that can get completely inlined, so operations on these classes have zero overhead compared to external methods. Some use cases for inlined classes are: - Inlined impli...
https://docs.scala-lang.org/sips/value-classes.html
CC-MAIN-2018-47
refinedweb
2,079
50.23
The dspic-utility.h header file defines two functions for calculating the 16-bit CRC-CCITT value of a stream of bytes. These functions are based on an article by Joe Geluso, originally located at. Unfortunately, it seems that that site no longer exists, but a copy of the article can be found in the Wayback Machine at. ...
https://www.bourbonstreetsoftware.com/dspic-helper/dspic-helper-Z-H-8.html
CC-MAIN-2019-18
refinedweb
218
52.7
At the end of my visit to 8th Light Justin Martin was kind enough to give me a ride to the train station; for my train back to O’Hare. Just before he left he asked me an interesting question which I then posted to twitter: Liam McLennan: . @JustinMartinM asked what I think is the most important attributes of craftsmen....
http://geekswithblogs.net/liammclennan/archive/2010/04.aspx
crawl-003
refinedweb
2,782
63.09
Styling your React component is an important part for any real world application. We can style react components in a couple of ways. such as – - inline styling - CSS modules - emotion - styled-components We will talk about styled-components in this article. We are gonna create one simple animated loading spinner compon...
https://dev.to/destro_mas/style-react-component-with-styled-components-part-1-19fl
CC-MAIN-2022-21
refinedweb
246
63.29
ghudson@tigris.org writes: > Added: trunk/subversion/include/svn_ra_svn.h > ============================================================================== > --- trunk/subversion/include/svn_ra_svn.h (original) > +++ trunk/subversion/include/svn_ra_svn.h Mon Dec 2 21:55:41 2002 > @@ -0,0 +1,208 @@ > +/* > + * svn_ra_svn...
https://svn.haxx.se/dev/archive-2002-12/0405.shtml
CC-MAIN-2017-13
refinedweb
216
59.9
How to Speed Up Your Trades Execution using Python? Using the concepts of Concurrency with Angel Broking SmartAPI 11 min read A lot of people in the industry talk about Python being one of the slower languages as compared to the others out there, and that is absolutely true as well; we have discussed some pros and cons...
https://tradewithpython.com/concurrency-in-python-using-smartapi
CC-MAIN-2022-21
refinedweb
2,328
59.74
So this recipe is a short example on how to change frequncy of timeseries in python. Let's get started. import pandas as pd Let's pause and look at these imports. Pandas is generally used for performing mathematical operation and preferably over arrays. ddf = pd.DataFrame({ 'timestamp': pd.to_datetime(['2021-01-01 00:0...
https://www.projectpro.io/recipes/change-frequncy-of-timeseries-python
CC-MAIN-2021-43
refinedweb
136
60.61
Metaprogramming Roundup: Speed, Ruby Macros, Screencasts define_methodwith a Proc to define utility methods was running considerably slower than code using statically defined methods (ie. defined with def method_name). However, in a follow-up article, Matt finds the reason and a solution for the speed difference. The r...
http://www.infoq.com/news/2008/07/metaprogramming-roundup/
CC-MAIN-2015-48
refinedweb
563
61.46
Using Java from Ruby with JRuby IRB Last month I visited a joint meeting for the Richmond Java User Group and Central Virginia Ruby Enthusiasts' Group. The audience was evenly split between Java and Ruby developers, which made for an ideal setting for my presentation about Java-Ruby interoperability that JRuby facilita...
https://blog.engineyard.com/2011/using-java-from-ruby-with-jruby-irb
CC-MAIN-2015-11
refinedweb
1,171
51.14