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 |
|---|---|---|---|---|---|
I was called upon several years ago to create an application framework that would be flexible and open-ended: I knew at delivery it would have to support Functions A, B and C, but next year, I knew it would also have to do Function X, where X could be just about anything relating to the project. I could see that Micros... | https://www.codeproject.com/Articles/4839/Building-Snap-In-Applications | CC-MAIN-2017-26 | refinedweb | 3,765 | 51.48 |
Hi, everyone.
I was surprised to find that Fortran can read and write Excel by COM. IVF has provided a series of functions and subroutines. However, in the process of using these functions and subroutines, I encountered some problems.
For some reasons, I want to read and write data from an Excel that I have manually op... | https://community.intel.com/t5/Intel-Fortran-Compiler/Reading-and-Writing-of-Excel/td-p/1151744 | CC-MAIN-2020-29 | refinedweb | 740 | 55.54 |
In article <address@hidden>, Kazuhiro Ito <address@hidden> writes: > When I start precompiled Windows binary with -Q and evaluate below > code, I have unexpected result. > (with-temp-buffer > (insert (make-string 16 ?A)) > (insert #x80) > (unencodable-char-position 1 18 'ctext-unix)) > -> 13 (Emacs 23.1) > -> 5 (Emacs ... | http://lists.gnu.org/archive/html/bug-gnu-emacs/2011-12/msg00361.html | CC-MAIN-2015-14 | refinedweb | 186 | 60.41 |
The URLConnection class and its child HttpURLConnection class provide many useful methods for accessing details regarding a HTTP connection. These are easily obtained from a call to URL.openConnection(). This is demonstrated in the next Groovy code listing.
#!/usr/bin/env groovy
def NEW_LINE = System.getProperty("line.... | http://marxsoftware.blogspot.com/2010/02/more-groovy-based-simple-http-clients.html | CC-MAIN-2017-13 | refinedweb | 503 | 51.14 |
I want to get all the maximum values from an iterator:
def max_val(iterator, key=None):
# ???
it = (i for i in range(4))
assert max_val(it, key=lambda i: i%2) == [1, 3]
Note: this question is similar to what was asked before for a
list.
There are 2 differences with the previous question:
1) I want this to work for an i... | http://m.dlxedu.com/m/askdetail/3/db81c5aa1e6e7e1096e241869d89881e.html | CC-MAIN-2018-22 | refinedweb | 220 | 59.74 |
I created a MouseMotionListener to detect when then mouse moves over a menu item. I noticed that the getX() and getY() are off a little bit. It seems like the Y is off by 20pixels or so, and the X is off by about 5-6. Here is my mouse code:
Code java:
import java.awt.event.MouseMotionListener; import java.awt.event.Mou... | http://www.javaprogrammingforums.com/%20whats-wrong-my-code/5167-mouse-getx-gety-off-printingthethread.html | CC-MAIN-2015-27 | refinedweb | 141 | 76.22 |
There is a list of coin C(c1, c2, ……Cn) is given and a value V is also given. Now the problem is to use the minimum number of coins to make the chance V.
Note − Assume there are an infinite number of coins C
In this problem, we will consider a set of different coins C{1, 2, 5, 10} are given, There is an infinite number... | https://www.tutorialspoint.com/Minimum-Coin-Change-Problem | CC-MAIN-2021-39 | refinedweb | 286 | 64.54 |
Important: Please read the Qt Code of Conduct -
Qt tr() not working if i am using in static member
#1 Please let me know why it is not working i am new in Qt. here is the code
@
#include <QApplication>
#include <QPushButton>
#include <QTranslator>
class Transl
{
Q_OBJECT
public:
static const QString str;
};
const QStri... | https://forum.qt.io/topic/33568/qt-tr-not-working-if-i-am-using-in-static-member | CC-MAIN-2021-21 | refinedweb | 388 | 64.61 |
this function to make a custom inspector.
Inside this function you can add your own custom GUI for the inspector
of a specific object class.
Note: This function has to be overridden in order to work.
See Also: Editor.DrawDefaultInspector.
The example below shows how a custom label can be created by using
override:
usi... | https://docs.unity3d.com/ScriptReference/Editor.OnInspectorGUI.html | CC-MAIN-2019-13 | refinedweb | 121 | 58.38 |
Expected unqualified-id before 'int' with Qt5.3 only for bool signal and slot
I have some code that compile and works correctly on Windows but when I try to compile it on linux with scons I get this error on the generated moc files.
The moc files are created with Qt 5.3 (I checked that they are accidently created by an... | https://forum.qt.io/topic/41817/expected-unqualified-id-before-int-with-qt5-3-only-for-bool-signal-and-slot | CC-MAIN-2022-40 | refinedweb | 207 | 68.5 |
79882, was opened at 2006-05-01 19:11
Message generated for change (Comment added) made by bernhardheld
You can respond by visiting:
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
>Category: z80 port
Gro... | https://sourceforge.net/p/sdcc/mailman/message/13270634/ | CC-MAIN-2017-04 | refinedweb | 427 | 71.75 |
Issue
I want to import foo-bar.py. This works:
foobar = __import__("foo-bar")
This does not:
from "foo-bar" import *
My question: Is there any way that I can use the above format i.e.,
from "foo-bar" import * to import a module that has a
- in it?
Solution
you can’t.
foo-bar is not an identifier. rename the file to
foo... | https://errorsfixing.com/how-to-import-module-when-module-name-has-a-dash-or-hyphen-in-it/ | CC-MAIN-2022-33 | refinedweb | 156 | 78.35 |
50640/why-do-variables-have-bigger-scopes-in-python-than-in-c
Here is a Python code:
for i in xrange(10):
for j in xrange(5):
pass
# The for-loop ends, but i,j still live on
print i,j # 9, 4
And the same for C code:
for(int i=0; i<=10; i++)
for(int =0; j<=5; j++)
;
// The for-loop ends, so i,j can't be accessed, right?... | https://www.edureka.co/community/50640/why-do-variables-have-bigger-scopes-in-python-than-in-c | CC-MAIN-2021-49 | refinedweb | 258 | 75.81 |
21 February 2012 14:26 [Source: ICIS news]
LONDON (ICIS)--Reliance Industries has agreed to form a 100,000 tonne/year butyl rubber joint venture with ?xml:namespace>
The $450m (€342m) joint venture, called Reliance Sibur Elastomers, will be located at
After start-up, expected for mid-2014, Reliance Sibur Elastomers wil... | http://www.icis.com/Articles/2012/02/21/9534551/reliance-sibur-form-100000-tonneyear-india-butyl-rubber-jv.html | CC-MAIN-2014-35 | refinedweb | 118 | 61.87 |
This article shows how you can make your apps transparent using the new functions provided with Win2K. If you download the Platform SDK from Microsoft then these functions will be available, but those of you without fast Internet connections this article could be useful.
This is a mix of stuff I found on the net so if ... | https://www.codeproject.com/Articles/981/Win2K-transparent-dialogs?fid=1974&df=90&mpp=10&sort=Position&spc=None&select=540951&tid=856191 | CC-MAIN-2017-22 | refinedweb | 460 | 54.42 |
How to build your own AlphaZero AI using Python and Keras
Teach a machine to learn Connect4 strategy through self-play and deep learning
In this article I’ll attempt to cover three things:
AlphaGo → AlphaGo Zero → AlphaZero.
This in itself, was a remarkable achievement. However,.
There are two amazing things about this... | https://medium.com/applied-data-science/how-to-build-your-own-alphazero-ai-using-python-and-keras-7f664945c188 | CC-MAIN-2018-43 | refinedweb | 1,869 | 61.16 |
Custom View- Part 2 moving between tabs, but it’s still missing some info about the tabs- something like the pages titles. So we’ll add some subviews as the page titles and make them a bit interactive to show the selected page. Why I plan to use subviews instead of just drawing the text straight on the canvas?
When dra... | http://shem8.github.io/blog/2015/08/06/custom-view-part-2/ | CC-MAIN-2019-04 | refinedweb | 711 | 51.72 |
LastFMProxy
Last.
It’s only tested under Linux, but it’s written in python, and should be pretty portable. If not, feel free to inform me. Maybe I can fix it.) (It’s been reported to work under various versions of Windows, Mac OS X and Pocket PC. Thanks to the feedbackers.)
[Dec 20th 2007] New version: LastFMProxy-1.3b... | http://vidar.gimp.org/%3Fpage_id=50 | crawl-002 | refinedweb | 7,562 | 76.42 |
Wiki
SCons / PlatformToolConfig / Discussion
*Use a level-one header for the topic and a level-two header for each comment in the topic. The anchor before the top-level header is in case someone wishes to refer to the topic externally; it should be a valid URI identifier.*[[!toc 1]]
<a name="target_option"></a>
The --t... | https://bitbucket.org/scons/scons/wiki/PlatformToolConfig/Discussion?action=info | CC-MAIN-2015-27 | refinedweb | 1,913 | 62.17 |
05 December 2011 11:20 [Source: ICIS news]
By Frank Zaworski
HOUSTON (ICIS)--When the UN declared in July that a famine was under way in southern ?xml:namespace>
For the past three decades, since the global food crises of the 1980s, it appeared that increased agricultural productivity was keeping the spectre of famine ... | http://www.icis.com/Articles/2011/12/05/9513752/insight-plant-nutrients-key-to-tackling-world-hunger.html | CC-MAIN-2014-52 | refinedweb | 1,001 | 53.85 |
Event Refresher
WEBINAR:
On-Demand
How to Boost Database Development Productivity on Linux, Docker, and Kubernetes with Microsoft SQL Server 2017
In this ever-growing world of online Web-enabled apps, it's not very often these days that we see .NET events being used much anymore.
If, like me, however, you went through ... | https://www.codeguru.com/columns/dotnet/event-refresher.html | CC-MAIN-2018-05 | refinedweb | 1,276 | 60.55 |
Hello XML World Example (Buckminster)
Revision as of 11:20, 9 October 2006 by Henrik.lindberg.puppet.com (Talk | contribs)
< To: Buckminster Project
This examples shows several Buckminster features in action. Here is an overview of what is going on:
- The A component is called org.demo.hello.xml.world
- It lives in a C... | http://wiki.eclipse.org/index.php?title=Hello_XML_World_Example_(Buckminster)&oldid=13326 | CC-MAIN-2018-13 | refinedweb | 404 | 60.55 |
In my first post about reusable domain models, I was looking for an elegant, intuitive and code-centric way in which to create domain models from existing parts. Since then we've done additional research. And now, I’m ready to share our results. I will describe the approach we're going to implement. Please note that so... | http://community.devexpress.com/blogs/eaf/archive/2008/03/04/reusable-domain-models-strikes-back.aspx | crawl-002 | refinedweb | 7,405 | 62.17 |
#include <shadow.h>
struct spwd *getspent (void)
struct spwd *getspnam (name) char *name;
int lckpwdf (void)
int ulckpwdf (void)
void setspent (void)
void endspent (void)
struct spwd *fgetspent (fp) FILE *fp;
getspnam- get matching login name shadow password entry
setspent- rewind shadow password file to allow repeated... | http://osr507doc.xinuos.com/cgi-bin/man?mansearchword=getspnam&mansection=S&lang=en | CC-MAIN-2020-50 | refinedweb | 554 | 52.29 |
Kernel exported symbols support. More...
#include <sys/cdefs.h>
#include <arch/types.h>
#include <kos/nmmgr.h>
Go to the source code of this file.
Kernel exported symbols support.
This file contains support related to dynamic linking of the kernel of KOS. The kernel (at compile time) produces a list of exported symbols... | http://cadcdev.sourceforge.net/docs/kos-2.0.0/exports_8h.html | CC-MAIN-2018-05 | refinedweb | 108 | 63.56 |
I recently completed a webinar on deploying Kubernetes applications with Helm. The webinar is the first of a two-part series on the Kubernetes ecosystem. It builds on the two introductory Kubernetes webinars that we hosted earlier this year: Hands on Kubernetes and Ecosystem & Production Operations.
In this post, I’ll ... | https://cloudacademy.com/blog/deploying-kubernetes-applications-with-helm/ | CC-MAIN-2019-04 | refinedweb | 1,665 | 59.7 |
.
The 13 predefined manipulators are described in the following table. This table assumes the following:
i has type long.
n has type int.
c has type char.
istr is an input stream.
ostr is an output stream.
Table 13-2 iostream Predefined Manipulators
To use predefined manipulators, you must include the file iomanip.h in... | http://docs.oracle.com/cd/E24457_01/html/E21991/bkalk.html | CC-MAIN-2017-30 | refinedweb | 374 | 52.36 |
Subject: Re: [boost] first steps to submitting - boost :: observers
From: Giovanni Piero Deretta (gpderetta_at_[hidden])
Date: 2016-09-18 19:22:33
On 17 Sep 2016 7:18 pm, "Robert McInnis" <r_mcinnis_at_[hidden]> wrote:
>
> G'afternoon,
>
>
>
> This is my first time submitting to a public repo, please be gentle
>
Welcom... | https://lists.boost.org/Archives/boost/2016/09/230759.php | CC-MAIN-2020-45 | refinedweb | 239 | 67.55 |
Details
Description. This would make it easier for many users to start using Derby's XML features.
See also the discussion in this thread: <URL:>
Issue Links
- is related to
DERBY-6624 Use javax.xml.xpath interfaces for XPath support
- Resolved
Activity
- All
- Work Log
- History
- Activity
- Transitions
I added testin... | https://issues.apache.org/jira/browse/DERBY-2739 | CC-MAIN-2015-35 | refinedweb | 1,615 | 50.53 |
Introduction: Dot Matrix Pen Write Screen
We were just wondering as in the current market where capacitive touch screens, resistive touch screens, TFT displays flooded,To realize pen write on dot matrix.
Step 1: Hardware
LED matrix, Freaduino UNO, flowerpad, 74ls138, PNP transistor, LM358, photosensitive triode, resist... | http://www.instructables.com/id/Dot-Matrix-Pen-Write-Screen/ | CC-MAIN-2018-09 | refinedweb | 415 | 64.85 |
Intro: measuring the voltage across a series of different sized resistors. This takes a lot of time and effort and I still don't know what the values are in sunlight. I could drag the multimeter, breadboard, and all associated components outside, but that would be a hassle and it's still very time consuming if I have a... | https://www.instructables.com/id/Arduino-Solar-Cell-Tester/ | CC-MAIN-2018-43 | refinedweb | 1,653 | 61.06 |
Microsoft Graph Toolkit providers
The Microsoft Graph Toolkit providers enable your application to authenticate with Microsoft Identity and access Microsoft Graph in only few lines of code. Each provider handles user authentication and acquiring the access tokens to call Microsoft Graph APIs, so that you don't have to ... | https://docs.microsoft.com/en-us/graph/toolkit/providers/providers?WT.mc_id=m365-35654-wmastyka | CC-MAIN-2021-31 | refinedweb | 1,048 | 52.8 |
:
Don't use gcc-specific warnings unconditionally, just because the system
is not OSX.
Log message:
Update to 20150410, provided by Kamil Rytarowski via wip.
----------------------------------------
10 April 2015. Summary of changes for version 20150410:
Reverted a change introduced in version 20150408 that caused
a re... | http://pkgsrc.se/sysutils/acpica-utils | CC-MAIN-2015-48 | refinedweb | 17,074 | 59.9 |
NAME
c2ast - C source analysis
VERSION
version 0.47
SYNOPSIS
c2ast [options] [file ...] Options: --help Brief help message --cpp <argument> cpp executable. Default is 'cpp'. --cppfile <filename> The name of the file being preprocessed. --cppdup <filename> Save the preprocessed output to this filename. --lexeme <lexeme>... | https://metacpan.org/pod/distribution/MarpaX-Languages-C-AST/bin/c2ast | CC-MAIN-2017-34 | refinedweb | 1,601 | 58.18 |
The Difference between Equality and Identity Operators (in D).
D provides two ways of comparing objects: the equality operator and identity operator (actually we should say operators – plural, since each comes with its negated counterpart). Testing objects for equality is done with the familiar (at least to C/C++ and C... | http://www.drdobbs.com/architecture-and-design/the-difference-between-equality-and-iden/228701076?itc=dobbs-callout-mostpop-blog | CC-MAIN-2014-52 | refinedweb | 1,399 | 56.79 |
Plasma::DataSource
#include <datasource.h>
Detailed Description
Provides data from a range of plugins.
Definition at line 34 of file datasource.h.
Property Documentation
String array of all the source names connected to the DataEngine.
Definition at line 97 of file datasource.h.
All the data fetched by this dataengine.... | https://api.kde.org/frameworks/plasma-framework/html/classPlasma_1_1DataSource.html | CC-MAIN-2021-49 | refinedweb | 332 | 68.67 |
and 3 (tested with 2.7 and 3 or easy_install. It also available for ArchLinux (AUR), and will soon be available as a package in Debian and Fedora.
Example code
Use modules from default datapath
from pysword.modules import SwordModules # Find available modules/bibles in standard data path. # For non-standard data path,... | https://pypi.org/project/pysword/0.2.2/ | CC-MAIN-2019-51 | refinedweb | 565 | 65.12 |
One 、 Reference link
Two 、 Installation dependency
cnpm i -D babel-preset-env babel-loader babel-core babel-polyfill babel-plugin-transform-runtime
See the browser for es6 Support for
cnpm i -g es-checker
es-checker
3、 ... and 、 File configuration
//webpack.config.js
module.exports = {
entry: './index.js',
output: {
pa... | https://chenhaoxiang.cn/2021/06/20210604101129834G.html | CC-MAIN-2022-05 | refinedweb | 1,672 | 53.71 |
Hosted javascript leading to .cn PDF malware
Last Updated: 2009-04-10 21:30:18 UTC
by Stephen Hall (Version: 1)
Unfortunately such subject lines are all so common. However, lets work through this one together to show an excellent tool, and a common source.
Steve Burn over at it-mate.co.uk submitted an investigation the... | https://isc.sans.edu/diary/Hosted+javascript+leading+to+.cn+PDF+malware/6178 | CC-MAIN-2016-07 | refinedweb | 630 | 62.27 |
Under one odd circumstance not all variables show up in the debugger =
window.
For example, in this program:
import email
msg =3D email.Message.Message()
msg.add_payload('abc')
print msg._payload
pass <<<BREAKPOINT HERE>>>
the variable _payload does not show up in the debugger even though the =
print statement works fi... | http://wingware.com/pipermail/wingide-users/2003-February/001318.html | CC-MAIN-2015-11 | refinedweb | 172 | 63.59 |
Calling code from shared libraries in C is simple with dlopen / dlsym (LoadLibrary on Windows). I provided a comprehensive example in the article on Plugins in C; here, I'll start with a simplified example.
Here's a sample C library compiled into libsomelib.so. First, the header file somelib.h:
#ifndef SOMELIB_H #defin... | https://eli.thegreenplace.net/2013/03/04/flexible-runtime-interface-to-shared-libraries-with-libffi | CC-MAIN-2018-17 | refinedweb | 1,044 | 56.45 |
> works just as expected. &rest arguments are permitted, and expand to > implicit (seq ...) forms. No provision was made for macros able to > execute arbitrary Lisp code; I just couldn't find a use for them, and > decided to wait until someone would tell me otherwise. Thus, all > parametrised forms work by plain substi... | https://lists.gnu.org/archive/html/emacs-devel/2019-09/msg00131.html | CC-MAIN-2021-31 | refinedweb | 341 | 64.3 |
I havd tried very hard to access and call a script's function from outside of the script.
----- this is inside a c# script attached to an animating sprite
public class example : MonoBehaviour {
void RunZebra() {
Zebra other = GetComponent<Zebra>();
other.RunIt();
}
}
public class Zebra : MonoBehaviour {
public void Run... | https://codedump.io/share/oG0UuCuLCvYK/1/run-functionscript-in-another-script | CC-MAIN-2017-09 | refinedweb | 309 | 56.45 |
Implementation of the widget, which is represented as a set of pages. More...
#include <CMultiPageWidget.h>
Implementation of the widget, which is represented as a set of pages.
According to a selected UI presentation mode, it can be a tab widget, stacked layout, tool box, or simple a set of lay-outed widgets.
Definiti... | http://ilena.org/TechnicalDocs/Acf/classiwidgets_1_1_c_multi_page_widget.html | CC-MAIN-2018-51 | refinedweb | 337 | 63.66 |
Instant communication is the essence of social networking and the Internet. The popular Google Talk, which uses XMPP (Extensible Messaging and Presence Protocol), made this Instant Messaging protocol prominent among open standards protocols. Exploring XMPP (formerly known as the Jabber protocol) is fun — it is a transp... | http://www.opensourceforu.com/2012/06/use-xmpp-to-create-your-own-google-talk-client/ | CC-MAIN-2015-06 | refinedweb | 3,091 | 54.63 |
The end of the Symfony Standard Edition. I think using dependency injection from day 1 and creating the first dependency injection container in PHP also helped a lot in designing standalone components.
Of course, people don't want to assemble the components themselves when starting a new project. To fill the gap, we cr... | https://symfony.com/blog/the-end-of-the-symfony-standard-edition | CC-MAIN-2019-04 | refinedweb | 663 | 67.25 |
Are you sure?
This action might not be possible to undo. Are you sure you want to continue?.
MySQL for Python
Credits
About the Author
About the Reviewers
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Errata
Piracy
Questions
Installing egg ha... | https://www.scribd.com/book/272071423/MySQL-for-Python | CC-MAIN-2019-39 | refinedweb | 1,750 | 51.68 |
Why the following program gives an error?
#include <stdio.h>
int main()
{
unsigned int64_t i = 12;
printf("%lld\n", i);
return 0;
}
Error:
In function 'main':
5:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'i'
unsigned int64_t i = 12;
^
5:19: error: 'i' undeclared (first use in this function)
5:1... | https://www.queryhome.com/tech/153908/why-unsigned-int64_t-i-gives-an-error | CC-MAIN-2019-43 | refinedweb | 158 | 58.92 |
A few weeks back, I posted about customizing how SignedXml searches for XML elements identified by a reference to an ID. By default, SignedXml searches for elements with an attribute named Id that has the given value.
Recently, the W3C has come up with a working draft for xml:id version 1.0. xml:id is meant to be a uni... | https://blogs.msdn.microsoft.com/shawnfa/2004/04/27/xmlid-and-signedxml/ | CC-MAIN-2019-47 | refinedweb | 756 | 53.61 |
lp:charms/trusty/apache-hadoop-hdfs-master
Created by Kevin W Monroe on 2015-06-01 and last modified on 2015-10-07
- Get this branch:
- bzr branch lp:charms/trusty/apache-hadoop-hdfs-master
Members of Big Data Charmers can upload to this branch. Log in for directions.
Branch merges
Propose for merging
Related bugs
Rela... | https://code.launchpad.net/~bigdata-charmers/charms/trusty/apache-hadoop-hdfs-master/trunk | CC-MAIN-2017-17 | refinedweb | 282 | 65.12 |
Join devRant
-.31
-
- girl friend: What kind of stripper would you want for a Bachelorette party?!?
me: no stripper...
girl friend: like a coding stripper?
me: what?
girl friend: he'd come out and be like, one zero one one zero one...
me: I love that you think I code in binary hahaha
girl friend: like the matrix!
me:
*... | https://devrant.com/search?term=for-the-love-of-code | CC-MAIN-2020-05 | refinedweb | 6,492 | 79.9 |
You can download the Flash Builder 4 beta from Adobe Labs.
More information about the Flex 4.0 SDK can be found here.
The requirements are:
- Flash Builder 4 Beta 2 with Flex SDK 4.0
I choose a free web service from
As you can see on this page I use the “Whois Webservices” (seen at the bottom of the page). The service ... | http://blog.nitorsys.com/tag/flash-builder-4/ | CC-MAIN-2017-30 | refinedweb | 1,242 | 62.98 |
I'm not sure I understand how they'd be out of order in the iterator
if they aren't out of order in the underlying source.
How would your iterator return:
((p0, d, (r15, prop_b)), "just testing"),
((p0, d, (r8, prop_b)), "hello, world")
when the underlying data is:
p0 | d | (r8, prop_b) | hello, world
p0 | d | (r15, pr... | http://mail-archives.apache.org/mod_mbox/accumulo-dev/201504.mbox/%3CCAL5zq9bL-kR=o-zPUUW-H-yRVTWwrCFRwj5dpmN8gd6EZg55jw@mail.gmail.com%3E | CC-MAIN-2017-04 | refinedweb | 732 | 65.66 |
Displaying timezone-aware dates with Tastypie
So you have made the decision to use timezone-aware dates and now you are building your cool REST API using Tastypie. Of course timezones are important to your application, so you want to expose them when Tastypie exposes dates in the API.
You have a very simple resource th... | https://tryolabs.com/blog/2013/03/16/displaying-timezone-aware-dates-with-tastypie/ | CC-MAIN-2020-34 | refinedweb | 367 | 50.43 |
BBC micro:bit
Buttons A & B
Introduction
This page shows you a few ways that you can interact with the A & B buttons using MicroPython.
Seeing If A Button Is Pressed
Just as we can with the visual code editors, we can define a main/forever loop and repeatedly check whether or not the buttons are being held down. In thi... | http://multiwingspan.co.uk/micro.php?page=pybutton | CC-MAIN-2017-22 | refinedweb | 598 | 72.56 |
This document contains information on the creation of Smart Tags for Microsoft Office. This focuses on the
ISmartTagRecognizer and
ISmartTagAction interfaces that work with Office XP and 2003. Their newer counterparts,
ISmartTagRecognizer2 and
ISmartTagAction2, will not be discussed here because although Microsoft has ... | http://www.codeproject.com/KB/cs/smarttag.aspx | crawl-002 | refinedweb | 2,855 | 52.8 |
14 July 2009 16:12 [Source: ICIS news]
PRAGUE (ICIS news)--HIP Petrohemija has secured at least €10m in financial support from the Serbian government that will allow it to restart production within a few weeks, ?xml:namespace>
At least €10m ($13.9m) would be awarded to the company in the form of a grant, which would en... | http://www.icis.com/Articles/2009/07/14/9232531/hip-petrohemija-to-receive-financial-aid-to-restart-output.html | CC-MAIN-2014-52 | refinedweb | 243 | 60.85 |
FREE
LONDON EDITION Jan 31st - Feb 13th 2014
‘UNIQUE EXPERIENCE’ British Ambassador to Brazil, Alex Ellis speaks about his work and the growing collaboration between the two nations >> Pages 6 and 7
LEIA EM PORTUGUÊS
Photo: Divulgation/ UK in Brazil
# 0 0 0 4
WORLD CUP COUNTDOWN
With the opening of the long awaited Wor... | https://issuu.com/brasilobserver/docs/bo.04.en | CC-MAIN-2018-26 | refinedweb | 15,256 | 56.18 |
Peter:
Point well taken. The problem here, I think, is that the inner class
has access to everything defined in the outer class (this includes the
declaration of the generic). Of course, javac comes in and does some
creative compiling to make that possible. Personally, I strive very
hard to avoid inner classes...or at ... | http://mail-archives.apache.org/mod_mbox/ant-user/200610.mbox/%3C453639DA.1000607@mindspring.com%3E | CC-MAIN-2017-26 | refinedweb | 238 | 63.09 |
JSON or XML? Which one is better? Which one is faster? Which one should I use in my next project? Stop it! These things are not comparable. It's similar to comparing a bicycle and an AMG S65. Seriously, which one is better? They both can take you from home to the office, right? In some cases, a bicycle will do it bette... | http://www.yegor256.com/2015/11/16/json-vs-xml.html | CC-MAIN-2016-30 | refinedweb | 986 | 75.1 |
15 May 2012 04:23 [Source: ICIS news]
LONDON (ICIS)--TVK swung to a net loss of forint (Ft) 3.01bn in the first quarter of 2012 compared with a Ft1.39bn net profit reported last year, with margins having come under further pressure amid ?xml:namespace>
Net sales were down 4.5% year on year to Ft102.56bn ($451m, €351m),... | http://www.icis.com/Articles/2012/05/15/9559686/hungarys-tvk-swings-to-a-q1-net-loss-as-margins-come-under.html | CC-MAIN-2015-06 | refinedweb | 210 | 65.73 |
Groovy 1.8.3 and 1.9-beta-4 released
Posted on 12 October, 2011 (8 years ago)
The Groovy development team has just released Groovy 1.8.3 and 1.9-beta-4.
For the impatients:
- download it on the Groovy download page
- check the JIRA release notes for 1.8.3 and 1.9-beta-4
- or read the official announcement
Those two rel... | https://glaforge.appspot.com/article/groovy-1-8-3-and-1-9-beta-4-released | CC-MAIN-2019-51 | refinedweb | 787 | 61.87 |
Suppose you are using two libraries called Foo and Bar:
using namespace foo;
using namespace bar;
using namespace foo;
using namespace bar;
Everything works fine, you can call Blah() from Foo and Quux() from Bar without problems. But one day you upgrade to a new version of Foo 2.0, which now offers a function called Qu... | http://tics.tiobe.com/viewerCPP/index.php?ID=2319&CSTD=Rule | CC-MAIN-2018-51 | refinedweb | 113 | 73.07 |
Created on 2011-12-08 20:25 by sdeibel, last changed 2012-07-08 21:53 by python-dev. This issue is now closed.
Calling exec() on code that includes a list comprehension that references a defined local variable x fails incorrectly on "NameError: global name 'x' not defined".
This is expected and documented:
"Free variab... | https://bugs.python.org/issue13557 | CC-MAIN-2020-16 | refinedweb | 530 | 66.03 |
Leonard Richardson, Sam Ruby
Mentioned 48
Shows how to use the REST architectural style to create web sites that can be used by computers as well as machines, providing basic rules for using REST and real-life examples of such Web services.
What is an idempotent operation?
An idempotent operation can be repeated an arb... | http://www.dev-books.com/book/book?isbn=0596529260&name=RESTful-Web-Services | CC-MAIN-2017-39 | refinedweb | 17,264 | 60.65 |
Returning a value from a Bean in Camel
Integration isn’t just about calling web services and pushing messages about. At some point you’ll probably need to generate or process your data, in a way that involves writing some custom Java code. You can have lots of
Processors in your Camel routes to do this, but it’s a bit ... | https://tomd.xyz/camel-bean-return-value/ | CC-MAIN-2022-40 | refinedweb | 1,203 | 80.11 |
Introduction
Threads allow applications to perform multiple tasks at once. Multi-threading is important in many applications, from primitive servers to today’s complex and hardware-demanding games, so, naturally, many programming languages sport the ability to deal with threads. This includes Python.
However, Python’s ... | http://www.devshed.com/c/a/python/basic-threading-in-python/ | CC-MAIN-2018-13 | refinedweb | 1,539 | 68.57 |
Thanks,
Rob
SCJP,SCWCD,SCDJWS,SCEA
Thanks
Mark
Beat the JavaHound in Certification Millionaire
You have beaten the JavaHound in Certification Millionaire! Good luck on passing the "Sun Certified Programmer for the Java 2 Platform" test.
Beat the JavaHound in Certification Millionaire
Morris
Java Q&A (FAQ, Trivia)
Bea... | https://coderanch.com/t/248125/certification/millionaire-style-practice-test | CC-MAIN-2017-39 | refinedweb | 1,803 | 54.93 |
Fl_Group | +----Fl_Scroll
#include <FL/Fl_Scroll.H>
If all of the child widgets are packed together into a solid rectangle then you want to set box() to FL_NO_BOX or one of the _FRAME types. This will result in the best output. However, if the child widgets are a sparse arrangment you must set box() to a real _BOX type... | http://fltk.org/doc-1.1/Fl_Scroll.html | CC-MAIN-2017-51 | refinedweb | 139 | 74.69 |
hi here is my code
when i type in i.e. 10 and 10 theres no output likewhen i type in i.e. 10 and 10 theres no output likeCode:#include<stdio.h> int calc(int a, int b); int main () { int first, second, answer; printf("pick two numbers: \n"); scanf("%d", &first); scanf("%d", &second); answer = calc(first, second); if (ca... | https://cboard.cprogramming.com/c-programming/31606-functions-return-value.html | CC-MAIN-2017-26 | refinedweb | 139 | 78.89 |
FlexGrid is a lightweight and flexible datagrid control with an easy-to-use object model. It offers unique features like true unbound mode, cell merging, flexible styling, multi-cell row and column headers as well as quick and simple printing. What really makes the FlexGrid unique is the power and simplicity of its obj... | https://www.grapecity.com/en/blogs/flexgrid-migration-to-wpf-and-silverlight | CC-MAIN-2018-43 | refinedweb | 2,311 | 57.06 |
I want to access an url which requires the full authentication. The following is my code.
import restclient
res = restclient.GET("x.x.x.x:8181/abc/def", headers = {'username':'admin','password':'admin'})
print res
400 Bad Request
Your browser sent a request that this server could not understand.
Reason: You're speaking... | http://serverfault.com/questions/313304/400-bad-request-use-the-https-scheme-to-access-this-url-restclient-python | crawl-003 | refinedweb | 151 | 56.66 |
Communities
Referencing Property Sub Class InstancesJames Andrews Dec 22, 2008 8:55 AM
Hi,
Here is the setup. I have a custom property class called Server Config under which I have a subclass for each region we have server i.e. LONDON, NY etc etc, then under that I have subclasses for each class of server within a regi... | https://communities.bmc.com/thread/36993 | CC-MAIN-2017-51 | refinedweb | 535 | 55.24 |
I couldn't find any method in SQLObject to syncronize transactions.
Let's supose I have multiple users using an aplication and, of couse,
with multiple connections.
First I create a local transaction which I don't want to use for
inserts, updates or deletes, only for selects.
t1 = __connection__.transaction()
After som... | http://sourceforge.net/p/sqlobject/mailman/message/10189347/ | CC-MAIN-2014-52 | refinedweb | 264 | 65.83 |
Once.
What is a bottleneck? Literally it refers to the top narrow part of a bottle. In engineering, bottleneck is a case where the performance or capacity of an entire system is limited by a single or small number of components or resources.
How to find these parts of your code? The most trivial way is to check the cur... | http://djangotricks.blogspot.com/2015_01_01_archive.html | CC-MAIN-2017-13 | refinedweb | 602 | 50.73 |
Repository: Ionic Framework Github Repository
Software Requirements: Visual Studio Code(Or any preferred editor)
A browser(Preferably Chrome)
What you will learn:
In this tutorial you would learn how to live code a real ionic application with practical examples including these major concepts.
Utilizing javascripts even... | https://steemit.com/utopian-io/@yalzeee/tutorial-ionic-app-development-building-the-business-app-part-6-adding-live-loading-charts | CC-MAIN-2018-43 | refinedweb | 1,387 | 53.1 |
HI
Please consider the following:: false
Site:: True
This seems familiar. First off, the two sites are running two different versions of PHP. codepad is running 5.2.5, and writecodeonline is running 5.4.15
I believe there was a change/correction to the filter_validate_email between these versions to better match the RF... | https://www.sitepoint.com/community/t/is-php-confused-about-filter-validate-email/33784 | CC-MAIN-2017-17 | refinedweb | 332 | 57.47 |
Python | Get a google map image of specified location using Google Static Maps API
Google Static Maps API lets embed a Google Maps image on the web page without requiring JavaScript or any dynamic page loading. The Google Static Maps API service creates the map based on URL parameters sent through a standard HTTP reque... | https://www.geeksforgeeks.org/python-get-google-map-image-specified-location-using-google-static-maps-api/?ref=rp | CC-MAIN-2022-27 | refinedweb | 188 | 67.38 |
next-runtime has supports for middlewares. Middlewares are applied using the onion model, which allows you to wrap the request handlers. When returning response objects from the middlewares, the results will be merged with the return value from the request handler. Allowing you to extract utils that for example return ... | http://next-runtime.meijer.ws/api/middleware | CC-MAIN-2022-33 | refinedweb | 556 | 57.06 |
I am having trouble understanding exactly what I am supposed to do with the following instructions.
a. Create a class named Pay that includes variables of type double that hold rate of pay per hour and withholding rate percent. Gross pay is computed as hours worked times rate of pay per hour. Net pay is calculated as g... | https://www.daniweb.com/programming/software-development/threads/437956/creating-none-void-methods | CC-MAIN-2016-44 | refinedweb | 346 | 70.43 |
Re: Development of event log message file
- From: Mr Major Thorburn <MrMajorThorburn@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 6 Sep 2007 00:36:00 -0700
Steve, the reason the event error message has the reference to a lack of
registry info is because the Application entry in the registry for the
EventLog Service does not... | http://www.tech-archive.net/Archive/VisualStudio/microsoft.public.vsnet.general/2007-09/msg00046.html | crawl-002 | refinedweb | 624 | 72.66 |
batman
A client-side framework that makes JavaScript apps as fun as Rails.
Want to see pretty graphs? Log in now!Want to see pretty graphs? Log in now!
npm install batman
batman.js
batman.js is a framework for building rich single-page browser applications. It is written in CoffeeScript and its API is developed with Co... | https://www.npmjs.org/package/batman | CC-MAIN-2014-15 | refinedweb | 3,483 | 57.87 |
Time Series Data Analysis Tutorial With Pandas
Time Series Data Analysis Tutorial With Pandas
Check out Google trends data of keywords "diet" and "gym" and looked cursorily at "finance" to see how they vary over time.
Join the DZone community and get the full member experience.Join For Free
In this tutorial, we will an... | https://dzone.com/articles/time-series-data-analysis-tutorial-with-pandas?fromrel=true | CC-MAIN-2020-16 | refinedweb | 846 | 56.96 |
0
Right now I'm trying to create an oppish translator. That is, after a consonant or several consonants in a row, you add 'op' to those letters. As an example, cow would become copowop or street which would become stropeetop. This is what I have so far:
def oppish(phrase): #with this function I'm going to append 'op' o... | https://www.daniweb.com/programming/software-development/threads/485442/how-to-append-a-string-to-only-consonants-in-a-list | CC-MAIN-2018-13 | refinedweb | 262 | 72.46 |
Opens the URL specified, subject to the permissions and limitations of your app’s current platform and environment. This is handled in different ways depending on the nature of the URL, and with different security restrictions, depending on the runtime platform.
Note: This method can be used to open more than just web... | https://docs.unity3d.com/2019.2/Documentation/ScriptReference/Application.OpenURL.html | CC-MAIN-2019-13 | refinedweb | 476 | 60.95 |
23 February 2012 07:51 [Source: ICIS news]
By Quintella Koh
SINGAPORE (ICIS)--Asia’s naphtha inter-month spread between the first half of April and the first half of May is expected to widen in backwardation as demand for prompt shipment cargoes is likely to stay strong amid tight supply, market sources said on Thursda... | http://www.icis.com/Articles/2012/02/23/9535109/asia-naphtha-inter-month-spread-to-rise-on-tight-supply.html | CC-MAIN-2015-18 | refinedweb | 574 | 57.2 |
A module is a Python object with arbitrarily named attributes that you can bind and reference. The Python code for a module named aname normally resides in a file named aname.py, as covered in Section 7.2 later in this chapter.
In Python, modules are objects (values) and are handled like other objects. Thus, you can pa... | http://etutorials.org/Programming/Python+tutorial/Part+II+Core+Python+Language+and+Built-ins/Chapter+7.+Modules/7.1+Module+Objects/ | crawl-001 | refinedweb | 1,774 | 62.98 |
#include <v4l2_camera.h>
#include <v4l2_camera.h>
Inherits bj::Camera.
Inheritance diagram for bj::V4L2Camera:
V4LCamera2 class provides an interface to Video4Linux2 devices. Any camera that supports Video4Linux2 can be accessed through this class.
"/dev/video0"
320
240
-1
true
1
A constructor.
Open a video device, and... | http://robotics.usc.edu/~boyoon/bjlib/df/d03/classbj_1_1V4L2Camera.html | CC-MAIN-2018-05 | refinedweb | 259 | 56.62 |
Overview of Abstract Class in Python
An Abstract Class is a class that cannot be implemented on its own, and entails subclasses for the purpose of employing the abstract class to access the abstract methods. Here comes the concept of inheritance for the abstract class for creating the object from the base class. In Pyt... | https://www.educba.com/abstract-class-in-python/?source=leftnav | CC-MAIN-2021-04 | refinedweb | 1,081 | 54.52 |
In my project I have to deal with different type of users e.g. costumers and employers. Each type of user have its own fields and permissions: costumer can buy things whereas employer can not.
I have read the Django docs and it looks like there are two options:
AbstractUserclass and adding all the fields of costumers a... | http://www.devsplanet.com/question/35266496 | CC-MAIN-2017-04 | refinedweb | 420 | 66.54 |
ID and secret :
Go
For more information, see the Cloud Storage Go API reference documentation.
import ( "context" "fmt" "io" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/credentials" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/s3" ) func listGCSBuckets(w io.Write... | https://cloud.google.com/storage/docs/migrating?hl=ca | CC-MAIN-2021-49 | refinedweb | 642 | 50.02 |
JACK engine for ipyclam
Here you have a cute alternative to QJackCtl
if you have it plenty of ardour multichannel ports
connected in fancy ways.
Auto-completion, broadcasting and Python slices on ports will be your friends.
ipyclam design enables other modular systems than CLAM to be controlled with the same interactiv... | http://canvoki.net/coder/blog/2013-02-23-jack-engine-for-ipyclam.html | CC-MAIN-2018-34 | refinedweb | 680 | 55.03 |
Found this recently
Looks like it could provide a basic CNC solution for the Pi without the need for a realtime kernel.
4 stepper axis and three input lines
Briefly it is a usb dongle device with a PIC microcontroller doing the realtime thing with a cut down version of EMC2 - linuxcnc running on the pi providing the br... | https://lb.raspberrypi.org/forums/viewtopic.php?f=37&t=24683 | CC-MAIN-2019-39 | refinedweb | 334 | 75.24 |
Graph traversals are some of the more subtle topics to learn before one can take a deep dive into the more complex algorithmic problems related to graphs. Graph traversal is the process by which one can travel from one node (called the source) to all other nodes of the graph. The order of nodes traced out during the pr... | https://favtutor.com/blogs/depth-first-search-java | CC-MAIN-2022-05 | refinedweb | 1,381 | 62.68 |
ASP.NET and other technologies
It's official! In one of the first of a few dozen posts you'll read about it, Scott Guthrie announces Visual Studio 2008 and the .NET Framework 3.5 Beta 2 have been released...
Lesson 1: You can't disable an HTTP module for a subdirectory. I wanted to remove the HTTP module for one subdir... | http://weblogs.asp.net/pjohnson/default.aspx | crawl-002 | refinedweb | 2,149 | 62.07 |
Revision: 3323
Author: geoffthemedio
Date: 2010-01-13 04:24:31 +0000 (Wed, 13 Jan 2010)
Log Message:
-----------
Changed GetBinDir on Linux and added a special case for FreeBSD to get binary using platform-specific means, with the assistance of olivleh1 on sourceforge.
Modified Paths:
--------------
trunk/FreeOrion/ut... | https://sourceforge.net/p/freeorion/mailman/freeorion-programmers/?viewmonth=201001&viewday=13 | CC-MAIN-2017-09 | refinedweb | 1,339 | 61.16 |
Adding a “mixture” distribution to the simstudy package
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
I am contemplating adding a new distribution option to the package
simstudy that would allow users to define a new variable as a mixture of previously defined (or alread... | https://www.r-bloggers.com/adding-a-mixture-distribution-to-the-simstudy-package/ | CC-MAIN-2020-40 | refinedweb | 1,296 | 62.98 |
Replay with sound?
Nick Sakellariou
Superbacker
on April 12, 2013
Well, the alpha's available as of today - and from $10 and up (for access from the game as of now, incl Steam codes) we can follow this game until its release in Nov. Great news for us all - now let's put our wallets where our mouths are, and support the... | https://www.kickstarter.com/projects/229423802/death-inc/comments | CC-MAIN-2018-22 | refinedweb | 2,408 | 80.72 |
Unicode encoding and decoding¶
Introduction: Why unicode is difficult?¶
Python 2.x does not make a clear distinction between:
- 8-bit strings (byte data)
- 16-bit unicode strings (character data)
Developers use these two formats interchangeably, because it is so easy and Python does not warn you about this.
However, it... | https://docs.plone.org/manage/troubleshooting/unicode.html | CC-MAIN-2017-34 | refinedweb | 641 | 51.55 |
Starter kit contents
The Starter Kits have all you need to compete in the Multimodal Single-Cell Data Integration Challenge. The following sections will use the Python starter kit for the Modality Prediction task. After unzipping the starter kit, the working directory will contain the following files.
├── LICENSE # MIT... | https://openproblems.bio/neurips_docs/submission/starter_kit_contents/ | CC-MAIN-2022-21 | refinedweb | 1,625 | 50.02 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.