text stringlengths 20 1.01M | url stringlengths 14 1.25k | dump stringlengths 9 15 ⌀ | lang stringclasses 4
values | source stringclasses 4
values |
|---|---|---|---|---|
On Fri, 2009-10-16 at 15:22 +0200, Martijn van Steenbergen wrote: > I propose the addition of the following two functions to module Debug.Trace: > > > traceM :: Monad m => String -> m () > > traceM msg = trace msg (return ()) > > > > traceShowM :: (Show a, Monad m) => a -> m () > > traceShowM = traceM . show I gladly s... | http://www.haskell.org/pipermail/libraries/2009-October/012624.html | CC-MAIN-2014-10 | en | refinedweb |
First if you are unsure about how application preferences are setup on Android go read this tutorial and then come back I'll wait. Oh great, your back. Let's crack on with things.
Functionality
Okay, so the application preferences plugin will provide you with four methods that you can use to interact with the native An... | http://simonmacdonald.blogspot.com/2012/06/phongap-android-application-preferences.html | CC-MAIN-2014-10 | en | refinedweb |
Terry Carroll wrote: > On Fri, 11 Feb 2005, Bob Gailer wrote: > > >>Whenever you find yourself writing an if statement ask whether this >>would be better handled by subclasses. Whenever you find yourself about >>to write a global statement, consider making the variables properties of >>a class. > > > Bob -- > > Brian a... | https://mail.python.org/pipermail/tutor/2005-February/036085.html | CC-MAIN-2014-10 | en | refinedweb |
Ive got MySQL on my local system and would like to
use C++ to connect to the database
I downloaded an example script from mysql.com
but it throws all sorts of errors when i compile
Ive done
#include <mysql.h>
Is there a quick way i can connect to MySQL
Ive installed MyODBC so i just need the
code syntax to make a conne... | http://cboard.cprogramming.com/cplusplus-programming/4146-odbc-connection.html | CC-MAIN-2014-10 | en | refinedweb |
import "github.com/stretchr/testify/mock"
Package mock provides.
const ( // Anything is used in Diff and Assert when the argument being tested // shouldn't be taken into consideration. Anything = "mock.Anything" )
AssertExpectationsForObjects asserts that everything specified with On and Return of the specified objects... | https://godoc.org/github.com/stretchr/testify/mock | CC-MAIN-2020-16 | en | refinedweb |
Hey there,
I am making a 2D top-down game.
I was able to get the enemies to follow the players correctly. But, I want them to retreat when they are too close to the player.
How can I accomplish this?
Hey there,
I am making a 2D top-down game.
I was able to get the enemies to follow the players correctly. But, I want th... | https://forum.arongranberg.com/t/make-seekers-retreat-when-too-close-to-target/7755 | CC-MAIN-2020-16 | en | refinedweb |
After writing the article about event-based firmware, I realised there are some misunderstandings how real-time counter are working and should be used. Especially there is a misconception about an imagined problem if such counter overflows. In this article, I try to explain this topic in more detail, using example code... | https://luckyresistor.me/2019/07/10/real-time-counter-and-integer-overflow/ | CC-MAIN-2020-16 | en | refinedweb |
March 2011
Volume 26 Number 03
Forecast: Cloudy - Cloud Services Mashup
By Joseph Fultz | March 2011
Up until now, I’ve spent time on solutions using Microsoft Azure or SQL Azure to augment solution architecture. This month I’m taking a look at how to combine multiple cloud services into a single app. My example will c... | https://docs.microsoft.com/en-us/archive/msdn-magazine/2011/march/msdn-magazine-forecast-cloudy-cloud-services-mashup | CC-MAIN-2020-16 | en | refinedweb |
/*
Well, credit goes to all those great coders in the amx forums,
nothing could have been acomplished if those 'veterans' wouldn't
have answered all the stupid questions that newbies like myself
ask time after time. lol. thank you guys.
Based on Ka0s' DualMP5s plugin developed by KaOs, thanks to RadidEskimo, FreeCode &... | https://forums.alliedmods.net/showthread.php?s=7201f0e209947376545f265aa1128d2f&t=2633 | CC-MAIN-2020-16 | en | refinedweb |
These are chat archives for coala/coala-bears
I get these error messages when i run pytest for the coala-bears repo
___ ERROR collecting tests/general/CPDBearTest.py __
ImportError while importing test module '.../tests/general/CPDBearTest.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceba... | https://gitter.im/coala/coala-bears/archives/2017/12/08?at=5a2aa277a2be466828781945 | CC-MAIN-2020-16 | en | refinedweb |
Provided by: allegro4-doc_4.4.3.1-1_all
NAME
fixup_datafile - Fixes truecolor images in compiled datafiles. Allegro game programming library.
SYNOPSIS
#include <allegro.h> void fixup_datafile(DATAFILE *data);
DESCRIPTION
If you are using compiled datafiles (produced by the dat2s and dat2c utilities) on a platform that ... | http://manpages.ubuntu.com/manpages/focal/man3/fixup_datafile.3alleg4.html | CC-MAIN-2020-16 | en | refinedweb |
Downloading files from the Internet is one of the most common daily tasks to perform on the Web. Also, it is important due to the fact that a lot of successful softwares allow their users to download files from the Internet. In this tutorial, you will learn how you can download files over HTTP in Python using requests ... | https://www.thepythoncode.com/article/download-files-python | CC-MAIN-2020-16 | en | refinedweb |
When writing truth tables, please list rows in the order used in all examples: FF, FT, TF, TT. For three-input tables, use the above four lines preceded by F, then the above four lines preceded by T.
Exercise 2.5.15
In a truth table for two inputs, provide a column for each of the sixteen possible distinct functions. G... | http://www.opentextbooks.org.hk/node/9562 | CC-MAIN-2020-16 | en | refinedweb |
The Update function allows you to monitor inputs and other events regularly from a script and take appropriate action. For example, you might move a character when the “forward” key is pressed. An important thing to remember when handling time-based actions like this is that the game’s framerate is not constant and nei... | https://docs.unity3d.com/Manual/TimeFrameManagement.html | CC-MAIN-2020-16 | en | refinedweb |
import "github.com/spatialmodel/inmap/emissions/aep/aeputil"
Package aeputil provides commonly used configuration and functions for the AEP library.
doc.go excel.go inventory.go iterator.go scale.go spatial.go speciate.go
Scale applies scaling factors to the given emissions records.
type InventoryConfig struct { // NEI... | https://godoc.org/github.com/spatialmodel/inmap/emissions/aep/aeputil | CC-MAIN-2020-16 | en | refinedweb |
our attention will be fully concentrated on the scripting and dynamic languages support in Java. Since Java 7, the JVM has a direct support of modern dynamic (also often called scripting) languages and the Java 8 release delivered even more enhancements into this space.
One of the strength of the dynamic languages is ... | https://www.javacodegeeks.com/2015/09/dynamic-languages-support.html | CC-MAIN-2020-16 | en | refinedweb |
Panel Panel Panel Panel Class
Definition
public : class Panel : FrameworkElement, IPanel
public class Panel : FrameworkElement, IPanel
Public Class Panel Inherits FrameworkElement Implements IPanel
// This API is not available in Javascript.
- Inheritance
-
- Attributes
-
Inherited Members
Inherited properties
Inherite... | https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.panel | CC-MAIN-2017-43 | en | refinedweb |
The Windows 10 Technical Preview brings key advances to Chakra, the JavaScript engine that powers Internet Explorer and store based Web apps across a whole range of Windows devices – phones, tablets, 2-in-1’s, PC’s and Xbox. As with all previous releases of Chakra in IE9, IE10 and IE11, this release is a significant st... | https://blogs.msdn.microsoft.com/ie/2014/10/09/announcing-key-advances-to-javascript-performance-in-windows-10-technical-preview/?replytocom=12363 | CC-MAIN-2017-43 | en | refinedweb |
Sometimes it’s tempting to re-invent the wheel to make a device function exactly the way you want. I am re-visiting the field of homemade electrophysiology equipment, and although I’ve already published a home made electocardiograph (ECG), I wish to revisit that project and make it much more elegant, while also plannin... | https://www.swharden.com/wp/2012-06-14-multichannel-usb-analog-sensor-with-atmega48/ | CC-MAIN-2017-43 | en | refinedweb |
In this tutorial we are going to learn how to programmatically change the Theme Accent color in Windows Phone device. In our previous article we have seen how programmatically detect the theme running in the background (). This article is an extension of the previous article where we are going to programmatically detec... | https://dzone.com/articles/how-play-theme-accent-color | CC-MAIN-2017-43 | en | refinedweb |
Declared Overloaded Record Fields (DORF)
Thumbnail Sketch
This proposal is addressing the narrow issue of namespacing for record field names by allowing more than one record in the same module to share a field name. Specifically the record is under usual H98 namespace and module/qualification control, so that for the r... | https://ghc.haskell.org/trac/ghc/wiki/Records/DeclaredOverloadedRecordFields?version=27 | CC-MAIN-2017-43 | en | refinedweb |
Most of my career has been in .Net development and I’m pretty comfortable applying design patterns in C#, but as I’m learning Ruby, I was finding it difficult to figure out how to implement them without creating awkward, hard-to-read code. Recently a local Ruby guru, Nate Klaiber, recommended that I pick up the book De... | http://www.gembalabs.com/2009/04/24/comparing-design-patterns-in-ruby-and-c-the-template-pattern/ | CC-MAIN-2017-22 | en | refinedweb |
Question: Refer to Problem 12 11 If OhYes was a load fund
Refer to Problem 12.11. If OhYes was a load fund with a 2% front-end load, what would be the HPR?
Answer to relevant QuestionsYou are considering the purchase of shares in a closed-end mutual fund. The NAV is equal to $22.50 and the latest close is $20.00. Is th... | http://www.solutioninn.com/refer-to-problem-1211-if-ohyes-was-a-load-fund | CC-MAIN-2017-22 | en | refinedweb |
Patent application title: Fixed content storage within a partitioned content platform, with replication
Inventors:
David B. Pickney (Andover, MA, US)
Matthew M. Mcdonald (Quincy, MA, US)
Benjamin J. Isherwood (Tewsbury, MA, US)
IPC8 Class: AG06F1730FI
USPC Class:
707617
Class name:
Publication date: 2011-05-05
Patent a... | http://www.faqs.org/patents/app/20110106757 | CC-MAIN-2014-41 | en | refinedweb |
Symbol Handling
Wolfram Language symbols are the ultimate atoms of symbolic data. Every symbol has a unique name, exists in a certain Wolfram Language context or namespace, and can have a variety of types of values and attributes.
ReferenceReference
Symbol — the head of a symbol; create a symbol from a name
SymbolName ... | http://reference.wolfram.com/language/guide/SymbolHandling.html | CC-MAIN-2014-41 | en | refinedweb |
07 January 2010 03:38 [Source: ICIS news]
SINGAPORE (ICIS news)--Taiwan’s Chinese Petroleum Corp has bought a 30,000-tonne cargo of heavy naphtha at a premium of $20-$25/tonne (€14-17/tonne) to Japan spot quotes for February delivery, traders said on Thursday.
Prices were much higher, compared with what CPC paid for it... | http://www.icis.com/Articles/2010/01/07/9323082/taiwan-cpc-buys-february-naphtha-at-20-25tonne-premium.html | CC-MAIN-2014-41 | en | refinedweb |
This module provides convenient access to the database classes
(Db) of wxWindows. These classes have been donated to the wxWindows
library by Remstar International. (Note: these classes are not supported
on MacOS X at the time of writing (november 2003)).
These database objects support ODBC connections and have been te... | http://hackage.haskell.org/package/wxcore-0.10.1/docs/Graphics-UI-WXCore-Db.html | CC-MAIN-2014-41 | en | refinedweb |
When coordinating code between a master page, a child page and several controls, it can be very useful to have a listing of when each event is fired. There are a lot of lists on the web but they are rarely complete, and I have yet to find the code on how the lists were created. In the end, I wrote my own testing framew... | http://www.codeproject.com/Articles/106781/Documenting-the-Life-Cycle-of-an-ASP-Page?fid=1586043&df=90&mpp=10&sort=Position&spc=None&tid=3626606&PageFlow=FixedWidth | CC-MAIN-2014-41 | en | refinedweb |
Syntax Highlighting
You can establish a custom font and color scheme, for more information, see
Default syntax highlighting:
Code Highlighting
When ReSharper detects an error and highlights it with a red curly line or displays an unresolved symbol
in red. Hover the
pointer over the error to display its description as a... | http://www.jetbrains.com/resharper/webhelp60/ReSharper_by_Language__Visual_Basic__Code_Analysis_and_Coding_Assistance.html | CC-MAIN-2014-41 | en | refinedweb |
java.lang.Object
javax.swing.tree.DefaultMutableTreeNodejavax.swing.tree.DefaultMutableTreeNode
oracle.javatools.ui.tree.lazy.LazyParentNodeoracle.javatools.ui.tree.lazy.LazyParentNode
public class LazyParentNode
A LazyParentNode is a type of DefaultMutableTreeNode that doesn't compute its children until the user attem... | http://docs.oracle.com/cd/E16162_01/apirefs.1112/e17493/oracle/javatools/ui/tree/lazy/LazyParentNode.html | CC-MAIN-2014-41 | en | refinedweb |
Introduction. Using these two posts, you should now be able to get up and running and create a working external list that not only leverages SQL Azure as your line-of-business (LOB) data, but also gives you a little jQuery veneer.
However, the question I’ve been wrangling with of late is how to leverage BCS in SP-O usi... | http://blogs.msdn.com/b/steve_fox/archive/2011/11/12/leveraging-wcf-services-to-connect-bcs-with-sharepoint-online.aspx | CC-MAIN-2014-41 | en | refinedweb |
But you can also find currently supported latest release on CodePlex website.
CodePlex website: Mad Library
I'm not planning to put here sourcecode, because it's being actualized regularly.
This article is about how to make some part of project programming done faster than before with usage of Mad Library. Mad Library ... | http://www.codeproject.com/Articles/405309/Making-some-parts-of-programming-easier-Mad-Librar | CC-MAIN-2014-41 | en | refinedweb |
This article is in the Product Showcase section for our sponsors at CodeProject. These reviews are intended to provide you with information on products and services that we consider useful and of value to developers.
Spokes offers different ways to use its API and there are some interesting thing that can be done to ge... | http://www.codeproject.com/Articles/530394/Connecting-to-Spokes-REST-API-in-Python | CC-MAIN-2014-41 | en | refinedweb |
31 August 2009 16:54 [Source: ICIS news]
SINGAPORE (ICIS news)--Sinopec has proposed selling its purified terephthalic acid (PTA) and monoethylene glycol (MEG) for September delivery within the Chinese domestic market at lower and rollover prices, respectively, compared with the previous month, company officials said M... | http://www.icis.com/Articles/2009/08/31/9243839/sinopec-seeks-lower-pta-price-for-sept-rolls-over-meg.html | CC-MAIN-2014-41 | en | refinedweb |
in reply to
Newbie, AD problem
lastLogon is stored as a large integer that represents the number of 100 nanosecond intervals since January 1, 1601 (UTC). A value of zero means that the last logon time is unknown.
I use an incantation like follows to get date type values out of AD:
sub msqtime2perl { # MicroSoft QuadTim... | http://www.perlmonks.org/?node_id=906789 | CC-MAIN-2014-41 | en | refinedweb |
Create Radio Buttons in SWT
Create Radio Buttons in SWT
This section illustrates you how to create radio button.
In SWT, the style RADIO defined in the Button class allows to create radio
button. We
SWT
Radio Buttons in SWT
In SWT, the style RADIO defined in the Button... SWT
The given example will show you how to crea... | http://www.roseindia.net/tutorialhelp/comment/98818 | CC-MAIN-2014-41 | en | refinedweb |
Ticket #1145 (closed defect: fixed)
ran_migration receives the app name as string, but migration as migration object.
Description
I have a code snippet as such:
def check_need_to_run(app=None, migration=None, method=None, *args, **kwargs): if app == "foo" and migration == "0041_add_new_bar": process_post_migration() ra... | http://south.aeracode.org/ticket/1145 | CC-MAIN-2014-41 | en | refinedweb |
Choosing a Replication Method
Updated: March 28, 2003
Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2
If you plan to use multiple targets and you want to synchronize data in those targets, you need to choose a replication method. You have several metho... | http://technet.microsoft.com/en-us/library/cc759493(v=ws.10).aspx | CC-MAIN-2014-41 | en | refinedweb |
it is to add or change functionality without impacting existing core system functionality.
Let’s take a simple example. Suppose your company have a core product to track all the users in a sports club. Within your product architecture, you have a domain model represented by JPA POJOs. The domain model contains many POJ... | http://www.javacodegeeks.com/2012/01/extending-your-jpa-pojos.html | CC-MAIN-2014-41 | en | refinedweb |
Since this is ultimately covered by the [MS-CFB] Open Specification Document, I will present a means of examples of using python to alter Windows specific file-system security.
Python provides a means for native file manipulation using the win32security module. This module allows the application in question call all re... | http://blogs.msdn.com/b/openspecification/archive/2011/06/10/exploring-the-cfb-file-format-9.aspx | CC-MAIN-2014-41 | en | refinedweb |
Lately I’ve been involved on starting up my team blog: if you read Italian and want to listen about stories from Support Engineers working on various technologies, you can’t avoid signing up to the feed:
Now guess what’s been the topic of the posts I’ve been writing there… yes! Memory Management on Windows CE\Mobile a... | http://blogs.msdn.com/b/raffael/archive/2009/11.aspx | CC-MAIN-2014-41 | en | refinedweb |
celNopActivationFunc< T > Class Template Reference
An identity activation function for the neural network property class. More...
#include <propclass/neuralnet.h>
Detailed Description
template<typename T>
class celNopActivationFunc< T >
An identity.none", where TYPE is either int8, int16, int32, uint8, uint16, uint32 o... | http://crystalspace3d.org/cel/docs/online/api/classcelNopActivationFunc.html | CC-MAIN-2014-41 | en | refinedweb |
Paul Russell wrote:
>
> * Berin Loritsch (bloritsch@apache.org) wrote :
> > I discovered something incredible. The XSP system is our major
> > performance sink-hole. This I find to be amazing.
>
> > I have my suspiscions as to where the problems may lie: Class
> > validation (is it current?) and sending too many namesp... | http://mail-archives.apache.org/mod_mbox/cocoon-dev/200102.mbox/%3C3A8B0375.8273E5A2@apache.org%3E | CC-MAIN-2014-41 | en | refinedweb |
16 November 2009 17:20 [Source: ICIS news]
LONDON (ICIS news)--A study which found that young boys exposed to high doses of certain phthalates, common chemicals present in PVC, would show less male-typical behaviour should be treated with extreme caution, an industry body said on Monday.
The research, carried out at th... | http://www.icis.com/Articles/2009/11/16/9264298/new-phthalates-health-study-to-be-treated-with-caution-epci.html | CC-MAIN-2014-41 | en | refinedweb |
My name is Kathy Kam and I am the newest addition to the Common Language Runtime (CLR) Program Management (PM) team. Like another PM on my team, JoelPob, I also grew up in the "Land Down Under". I left Sydney to pursue a degree in Computer Engineering and Mathematics at the University of Michigan - Ann Arbor. Upon grad... | https://blogs.msdn.microsoft.com/kathykam/2005/09/21/hello-world-reflection-style/ | CC-MAIN-2017-43 | en | refinedweb |
I wouldn't be surprised to find that the "void" has been inserted by
some well meaning IDE and has been overlooked by some lenient compiler,
and Jikes is about the least lenient compiler I've seen (although
that's not a bad thing). My advise is to remove the keyword "void" and
see if the problem goes away.
The other pr... | http://mail-archives.apache.org/mod_mbox/tomcat-users/200009.mbox/%3C20000904095709.26667.qmail@web2106.mail.yahoo.com%3E | CC-MAIN-2015-18 | en | refinedweb |
NAME
vga_screenoff, vga_screenon - turn generation of the video signal on or off
SYNOPSIS
#include <vga.h> int vga_screenoff(void); int vga_screenon(void);
DESCRIPTION
The functions turn the generation of the video signal on or off. On some video boards, SVGA memory access is faster when no video signal is generated. O... | http://manpages.ubuntu.com/manpages/karmic/man3/vga_screenon.3.html | CC-MAIN-2015-18 | en | refinedweb |
On Tue, Dec 02, 2008 at 01:17:37PM +0000, Justin B Rye wrote: > Christian Perrier wrote: > >. > > (This seems like namespace-hogging to me - thanks to cron-apt I've > been happily doing periodic unattended upgrades since before Ubuntu > even existed...) Fair enough, it would be easy enough to have a apt::periodic::unat... | https://lists.debian.org/debian-l10n-english/2008/12/msg00009.html | CC-MAIN-2015-18 | en | refinedweb |
Hello, :: TERMINOLOGY :: watch : data that describes a file or directory that should be audited watchlist : a linked list of watchlist entries residing on a directory watchlist entry (wentry): an entry to a watchlist that contains a watch :: INTRODUCTION :: In an effort to make the mainline kernel's audit subsystem Con... | https://www.redhat.com/archives/linux-audit/2005-March/msg00237.html | CC-MAIN-2015-18 | en | refinedweb |
Neat :-)
I was wanting to apply this to a field, which sorts on INT.??
Is there a case for...
public class Sorting {
public static SortField getSortField(String fieldName, int type, boolean
reverse, boolean nullLast, boolean nullFirst) {
// ...
}
}
....and handling all feasible SortField types?
-----Original Message---... | http://mail-archives.apache.org/mod_mbox/lucene-java-user/200607.mbox/%3C20060714175035.43DC0187BE@mail.seseit.com%3E | CC-MAIN-2015-18 | en | refinedweb |
Opened 6 years ago
Last modified 18 months ago
#10244 new Bug
FileFields can't be set to NULL in the db
Description
Saving FileFields with a none value sets the field to a empty string in the db and not NULL as it should.
Attachments (4)
Change History (19)
comment:1 Changed 6 years ago by oyvind
- Needs documentation ... | https://code.djangoproject.com/ticket/10244 | CC-MAIN-2015-18 | en | refinedweb |
).
The accessor and mutator methods read from and write to the
NSUserDefaults object directly, with
setPreferencesTwo using an assertion to verify that the supplied value is legal.
).
Build and run the NewPreferencesExample application in Xcode. If everything goes to plan, a window will appear in screen. Hit
Command-
Q... | http://www.macdevcenter.com/lpt/a/6440 | CC-MAIN-2015-18 | en | refinedweb |
I went from C to C++, but I am sure that isn't the problem. Perhaps strcmp() cannot compare two char's?
Thanks!
Code:#include <iostream> #include <stdio.h> #include <stdlib.h> #include <string.h> using namespace std; int main() { string chain; string input; int done = 0; int compare; char YN; while (done==0) { cout << ... | http://cboard.cprogramming.com/cplusplus-programming/141913-simple-problem-i%27m-sure.html | CC-MAIN-2015-18 | en | refinedweb |
Name | Synopsis | Description | Return Values | Errors | Attributes | See Also
#include <sys/mman.h> int posix_memalign(void **memptr, size_t alignment, size_t size);
The posix_memalign() function allocates size bytes aligned on a boundary specified by alignment, and returns a pointer to the allocated memory in memptr.... | http://docs.oracle.com/cd/E19082-01/819-2243/6n4i0999m/index.html | CC-MAIN-2015-18 | en | refinedweb |
[Java3D] New to java3D and need some help here
Hey guys, I'm still learning java3D and not even run any examples program
yet.
This is because tehre some error occured when I run the .class file.
After compile the example program that I get from net, it has no error and
successed to create the .class file. But when I ru... | https://www.java.net/node/654735 | CC-MAIN-2015-18 | en | refinedweb |
HELLO I wrotr this code. It's meant to accept all the 8 inputs the user gives as an element in the array. I was just wondering if somebody could please help me do that.
Code:
#include <stdio.h>
#define s 20
#define sof 10
typedef struct {
int day;
int month;
int year;
} Date;
typedef struct {
float cost;
} Price;
typed... | http://cboard.cprogramming.com/c-programming/70735-almost-there-just-need-little-help-printable-thread.html | CC-MAIN-2015-18 | en | refinedweb |
Mastering FXML
3 FXML—What's New in JavaFX 2.2
This page contains a list of FXML enhancements added in JavaFX 2.2.
<fx:constant> tag
The <fx:constant> tag has been added to FXML to facilitate lookup of class constants. For example, the
NEGATIVE_INFINITYconstant defined by the
java.lang.Doubleclass can now be referenced... | http://docs.oracle.com/javafx/2/fxml_get_started/whats_new2.htm | CC-MAIN-2015-18 | en | refinedweb |
- Author:
- wolfram
- Posted:
- January 16, 2008
- Language:
- Python
- Version:
- .96
- template tag trim spaceless
- Score:
- 2 (after 2 ratings)
This tag is meant to override the current implementation of '{% spaceless %}' tag and remove spaces at the beginning of a line too. I.e. a template like this:
<div> <div>us... | https://djangosnippets.org/snippets/547/ | CC-MAIN-2015-18 | en | refinedweb |
Remedy::ARSTools - a perl wrapper to the ARSperl project, providing a simplified object interface with field definition caching.
use Remedy::ARSTools; #create a new object with a new field definition data cache my $Remedy = new Remedy::ARSTools( Server => $server_host_or_ip, User => $username, Pass => $password, Config... | http://search.cpan.org/~ahicox/Remedy-ARSTools-1.07/ARSTools.pod | CC-MAIN-2015-18 | en | refinedweb |
The nis_cachemgr command starts the NIS+ cache manager program, which should run on all NIS+ clients. The cache manager maintains a cache of location information about the NIS+ servers that support the most frequently used directories in the namespace, including transport addresses, authentication information, and a ti... | http://docs.oracle.com/cd/E19455-01/806-1387/6jam692aa/index.html | CC-MAIN-2015-18 | en | refinedweb |
On Fri, 2006-11-03 at 10:27 +0000, David Howells wrote:> Anyway, it's not just vfs_mkdir(), there's also vfs_create(), vfs_rename(),> vfs_unlink(), vfs_setxattr(), vfs_getxattr(), and I'm going to need a> vfs_lookup() or something (a pathwalk to next dentry).> > Yes, I'd prefer not to have to use these, but that doesn'... | http://lkml.org/lkml/2006/11/3/66 | CC-MAIN-2015-18 | en | refinedweb |
On 26.4.12 17:22, Angela Schreiber wrote:
> hi all
>
> i would like to start the discussion again regarding
> exception handling in oak-core and the api.
>
> the current situation is as follows:
> - runtimeException every here and there
> - invalidArgumentException
> - unspecific commitFailedExceptions
>
> now that we ... | http://mail-archives.apache.org/mod_mbox/jackrabbit-oak-dev/201204.mbox/%3C4F9A862F.5070309@apache.org%3E | CC-MAIN-2015-18 | en | refinedweb |
08 August 2012 11:41 [Source: ICIS news]
LONDON (ICIS)--Oxea will invest in additional hydrogenation capacities at the group’s ?xml:namespace>
Higher alcohols are components used in the fragrance and flavour industry, and required for the production of varnish, paint and lubricant additives.
Investment and capacity det... | http://www.icis.com/Articles/2012/08/08/9584948/oxea-expands-higher-alcohols-portfolio-with-germany.html | CC-MAIN-2015-18 | en | refinedweb |
- Code: Select all
<binding key="ctrl+m,/(\d)/" command="moveTab $1"/>
class MoveTab(sublimeplugin.TextCommand):
def run(self, view, args):
win = view.window()
group, tab = win.getViewPosition(view)
win.setViewPosition(view, group, int(args[0]))
print "MoveTab from %d to %s: end position is %d" % (tab, args[0], win.get... | http://www.sublimetext.com/forum/viewtopic.php?f=3&t=925 | CC-MAIN-2015-18 | en | refinedweb |
Pluggable foundation blocks for building loosely coupled distributed apps.
Includes implementations in Redis, Azure, AWS, RabbitMQ, Kafka and in memory (for development).:
To summarize, if you want pain free development and testing while allowing your app to scale, use Foundatio!
Foundatio can be installed via the NuGe... | https://awesomeopensource.com/project/FoundatioFx/Foundatio.Kafka | CC-MAIN-2022-33 | en | refinedweb |
Plugin Structure
Your project can become an Act! plugin through the following key files:
- A manifest describing your plugin
- The use of the
@act/pluginslibrary for any data access or application hooks
- The use of the
@act/web-componentslibrary to give your application the look and feel of Act!
Let's discuss the two ... | https://plugindeveloper.actops.com/plugins/getting-started/structure/ | CC-MAIN-2022-33 | en | refinedweb |
GREPPER
SEARCH
WRITEUPS
DOCS
INSTALL GREPPER
All Languages
>>
Java
>>
Java Create a Scanner Object in Java
“Java Create a Scanner Object in Java” Code Answer
Java Create a Scanner Object in Java
java by
SAMER SAEID
on May 25 2022
Comment
0
// read input from the input stream Scanner sc1 = new Scanner(InputStream input)... | https://www.codegrepper.com/code-examples/java/Java+Create+a+Scanner+Object+in+Java | CC-MAIN-2022-33 | en | refinedweb |
Migrating Spring-based Application Configuration to Alibaba Cloud ACM
Recently, some of my developer friends want to migrate their Java Spring application configuration to Alibaba Cloud Application Configuration Management (ACM). During the migration process, they asked some interesting questions. This article uses a s... | https://alibaba-cloud.medium.com/migrating-spring-based-application-configuration-to-alibaba-cloud-acm-b8ecfc4220f0 | CC-MAIN-2022-33 | en | refinedweb |
Developers & Practitioners
Scalable ML Workflows using PyTorch on Kubeflow Pipelines and Vertex Pipelines
Introduction
ML Ops is an ML engineering culture and practice that aims at unifying ML system development and ML system operation. An important ML Ops design pattern is the ability to formalize ML workflows. This a... | https://cloud.google.com/blog/topics/developers-practitioners/scalable-ml-workflows-using-pytorch-kubeflow-pipelines-and-vertex-pipelines | CC-MAIN-2022-33 | en | refinedweb |
Simply copy and paste the following command line in your terminal to create your first Strapi project.
npx create-strapi-app my-project --quickstart
Strapi and Laravel are both powerful tools that are making developers' lives easier. Both are different in their domains.
We will look at these two technologies and see ho... | https://strapi.io/blog/strapi-and-laravel | CC-MAIN-2022-33 | en | refinedweb |
,
What’s CRIU?
Snapshotting of virtual machines is used on a daily basis now. Red Hat Enterprise Linux 7.4 beta comes with Checkpoint/Restore In Userspace (CRIU,) version 2.12 which allows snapshot/restore of userland processes, so let’s have a look at that.
Did you ever start a process on a remote system, just to reme... | https://www.redhat.com/zh/blog/how-can-process-snapshotrestore-help-save-your-day | CC-MAIN-2022-33 | en | refinedweb |
There’s a lot of new material in Python Latest version and much of it is pretty simple. For example, str, bytes and bytearray now have an isascii() function that returns ‘true’ if they only include ASCII characters.
THE BELAMY
Sign up for your weekly dose of what's up in emerging technology.
In this article, we list do... | https://analyticsindiamag.com/whats-new-in-python-3-7-2-look-at-7-features-that-you-should-know/ | CC-MAIN-2022-33 | en | refinedweb |
guys i need help im stuck on the Grande Finale lesson
here’s the code im using
from datetime import datetime
now = datetime.now()
print ‘%s/%s/%s’ % (now.month, now.day, now.year)
print ‘%s:%s:%s’ % (now.hour, now.minute, now.second)
but it says. Your printed date and time do not seem to be in the right format: mm/dd/y... | https://discuss.codecademy.com/t/grand-finale-i-need-help/41382 | CC-MAIN-2022-33 | en | refinedweb |
Hi,
I am having trouble trying to extend a non-abstract (though non-final)
java class. I get the following exception from JRuby:
Exception in thread “main” java.lang.RuntimeException: java_object
returned null for NewEdge
at org.jruby.javasupport.JavaUtil.convertRubyToJava(JavaUtil.java:825)
at
org.jruby.gen.InterfaceI... | https://www.ruby-forum.com/t/exception-thrown-from-jruby-when-attempting-to-extend-java-class/184387 | CC-MAIN-2022-33 | en | refinedweb |
MicroSD TinyShield Tutorial
This TinyShield allows you to add a lot more memory to your TinyDuino projects. The Adapter TinyShield works directly with the Arduino SD Card libraries that are already installed in the Arduino IDE.
Learn more about the TinyDuino Platform
Description and including 5V.
Note: This does not in... | https://learn.tinycircuits.com/Memory/MicroSD_TinyShield_Tutorial/ | CC-MAIN-2022-33 | en | refinedweb |
apache_beam.typehints.typehints module¶
Syntax & semantics for type-hinting custom-functions/PTransforms in the SDK.
This module defines type-hinting objects and the corresponding syntax for type-hinting function arguments, function return types, or PTransform object themselves. TypeHint’s defined in the module can be ... | https://beam.apache.org/releases/pydoc/2.21.0/apache_beam.typehints.typehints.html | CC-MAIN-2022-33 | en | refinedweb |
AWS News Blog
Extending AWS CloudFormation with AWS Lambda Powered Macros
Today I’m really excited to show you a powerful new feature of AWS CloudFormation called Macros. CloudFormation Macros allow developers to extend the native syntax of CloudFormation templates by calling out to AWS Lambda powered transformations. ... | https://aws.amazon.com/blogs/aws/cloudformation-macros/ | CC-MAIN-2022-33 | en | refinedweb |
Re: Working out what face is used
Norman Walsh writes: > In this case, I can’t put the cursor on the text. I’ve made a quick > skim of org-sticky-header.el and don’t see any obvious use of a > specific face. So I’m a bit stumped. FWIW, I made a rainbow out of the background colors and worked out what face it was, but I... | https://www.mail-archive.com/search?l=emacs-orgmode%40gnu.org&q=from:%22Norman+Walsh%22&o=newest&f=1 | CC-MAIN-2022-33 | en | refinedweb |
12 minute read
Notice a tyop typo? Please submit an issue or open a PR.
A common vulnerability that we are going to discuss is a buffer overflow.
A buffer overflow occurs when the amount of memory allocated for a piece of expected data is insufficient (too small) to hold the actual received data. As a result, the recei... | https://www.omscs.io/information-security/software-security/ | CC-MAIN-2022-33 | en | refinedweb |
table of contents
NAME¶
libblkid - block device identification library
SYNOPSIS¶
#include <blkid.h>
cc file.c -lblkid
DESCRIPTION¶ the extraction of determine.
CONFIGURATION FILE¶
The standard location of the /etc/blkid.conf config file can be overridden by the environment variable BLKID_CONF. For more details about th... | https://manpages.debian.org/testing/libblkid-dev/libblkid.3.en.html | CC-MAIN-2022-33 | en | refinedweb |
Music¶
This is the
music module. You can use it to play simple tunes, provided
that you connect a speaker to your board. By default the
music module
expects the speaker to be connected via pin 0:
This arrangement can be overridden (as discussed below).
To access this module you need to:
import music
We assume you have ... | https://microbit-micropython-hu.readthedocs.io/hu/latest/music.html | CC-MAIN-2019-30 | en | refinedweb |
Swift OpenGL Loader
This is a simple OpenGL loader library. The repo currently contains code to load a Core profiles from 3.3 to 4.6. The included profiles do not load any extensions.
This repository has been adapted from code originally written by David Turnbull. His code can be found here:
This fork allows generating... | https://swiftpack.co/package/Satook/sw-OpenGLLoader | CC-MAIN-2019-30 | en | refinedweb |
Check whether product of digits at even places is divisible by sum of digits at odd place of a number
Given a number N and numbers of digits in N, the task is to check whether the product of digits at even places of a number is divisible by sum of digits at odd place. If it is divisible, output “TRUE” otherwise output ... | https://www.geeksforgeeks.org/check-whether-product-of-digits-at-even-places-is-divisible-by-sum-of-digits-at-odd-place-of-a-number/ | CC-MAIN-2019-30 | en | refinedweb |
Friend function in C++ Programming. user may need to add the sales of two or more goods or compare the marks of two or more students. In such cases, friend function acts as a bridge for two or more objects.
An example of using friend function to access private member of an object is shown below:
#include <iostream> #in... | https://www.programtopia.net/cplusplus/docs/friend-function | CC-MAIN-2019-30 | en | refinedweb |
October 15, 2009
Introduction
Thanks to the Task Queue API released in SDK 1.2.3, it's easier than ever to do work 'offline', separate from user serving requests. In some cases, however, setting up a handler for each distinct task you want to run can be cumbersome, as can serializing and deserializing complex arguments... | https://cloud.google.com/appengine/articles/deferred?hl=zh-TW | CC-MAIN-2019-30 | en | refinedweb |
icollectionview
2720
Changing UILabel text from UICollectionView custom delegate class
9109
How do I display the standard checkmark on a UICollectionViewCell?
7685
Implementing swipe on view on top of UICollectionViewCell without swiping during scrolling
1676
I need help animating UICollectionView cell size when collec... | http://www.brokencontrollers.com/tags/uicollectionview/page1.shtml | CC-MAIN-2019-30 | en | refinedweb |
From: Jeremy Siek (jsiek_at_[hidden])
Date: 2001-01-23 18:00:52
This situation is like when you're sitting in your car, stopped in front
of a broken stop-light stuck on red. Carefully look both ways, and then
run the red light!
I think the best short-term solution is to use std::abs and std::swap tell
people to define ... | https://lists.boost.org/Archives/boost/2001/01/8377.php | CC-MAIN-2019-30 | en | refinedweb |
.
Tip
This topic describes how to write code that displays route and directions inside your app. If you simply want to display directions, you can also use the Maps directions task, which launches the built-in Maps app. For more info, see How to use the Maps directions task for Windows Phone 8.
Consider the possibility... | https://docs.microsoft.com/en-us/previous-versions/windows/apps/jj244363(v%3Dvs.105) | CC-MAIN-2019-30 | en | refinedweb |
import BackNav from 'react-storefront/BackNav'
The text to display representing the previous location.
The url to navigate to when clicked. If omitted, this component will navigate back in the history when clicked.
When displaying this component on a search results page (such as a subcategory), you can supply the Searc... | https://pwa.moovweb.com/v6.9.1/components/BackNav | CC-MAIN-2019-30 | en | refinedweb |
Introduction
This is a pwn challenge on CodeBlue CTF. As a part of my tutorial plan, I take this one as an example on House of Force technique.
Vulnerability Analysis
The source code of this challenge was already given on [1] and I also list the vulnerable part below for analysis.
char *cgiDecodeString (char *text) { c... | https://dangokyo.me/2017/11/29/codeblue-ctf-2017-pwn-nomamestill-write-up/ | CC-MAIN-2019-30 | en | refinedweb |
MigrateAsync after using EnsureCreatedAsync
I have an asp.net core mvc site in production.
The DbInitializer was using this code:
await context.Database.EnsureCreatedAsync()
Now I found out that a migration was not being applied and I've seen this:
In addition, the database that is created cannot be later updated using... | http://quabr.com/56633708/ef-core-migrateasync-after-using-ensurecreatedasync | CC-MAIN-2019-30 | en | refinedweb |
🐘 Non-blocking, event-driven Swift client for PostgreSQL built on SwiftNIO.
Major Releases
The table below shows a list of PostgresNIO major releases alongside their compatible NIO and Swift versions.
Version | NIO | Swift | SPM
--- | --- | --- | ---
1.0 (alpha) | 2.0+ | 5.0+ |
from: "1.0.0-alpha"
Use the SPM string t... | https://swiftpack.co/package/vapor/postgres-nio | CC-MAIN-2019-30 | en | refinedweb |
1621/selenium-diff-between-pom-page-object-model-and-page-factory
Seems like Page object model & page factory are doing similar things.
IpmObjectInitializer initialize = new IpmObjectInitializer(driver.getWebDriver());
By using page factory: Initialize elements in BatchCreationPageFactory class
batchCreationPageFactory... | https://www.edureka.co/community/1621/selenium-diff-between-pom-page-object-model-and-page-factory?show=41208 | CC-MAIN-2019-30 | en | refinedweb |
Run thread next to UI Thread
I am currently developing a game using Google Maps. I want to run a thread which is executed next to the UI Thread.
How can I do that?
See also questions close to this topic
- How to compare objects in two ways?
I know how to compare objects on a single basis.
I want to show the User class ... | http://quabr.com/56463755/run-thread-next-to-ui-thread | CC-MAIN-2019-30 | en | refinedweb |
customization
9079
How can I customise the worldpay help pages?
4968
Need help to change Custom tab bar (in top) icon when receive a notification from background in iPad app
6957
Display label if key exists, leave blank if it doesn't
7271
Mantis Bug tracker severity options customization
638
CKEditor add CSS styling t... | http://www.brokencontrollers.com/tags/customization/page1.shtml | CC-MAIN-2019-30 | en | refinedweb |
In this Java Video Tutorial I cover how to use Java threads.
A thread is just a block of code that is expected to execute while other blocks of code execute. That’s it. When you want to execute more than one block of code at a time you have to alert Java.
In this video I show you how to alert the interpreter. Part 1 of... | http://www.newthinktank.com/2012/02/java-video-tutorial-17/ | CC-MAIN-2019-30 | en | refinedweb |
.
Other possible titles:
Over on the Claims Based Identity Blog they made an announcement that they have stopped development of CardSpace v2. CardSpace was an excellent technology, but nobody used it. Some of us saw the writing on the wall when Microsoft paused development last year, and kept quiet about why. For bette... | https://blogs.objectsharp.com/?tag=/Claims | CC-MAIN-2019-30 | en | refinedweb |
import java.util.Map ;52 import java.util.WeakHashMap ;53 54 /**55 * CacheStorage implementation which is backed by a WeakHashMap.56 *57 * @author Anthony Eden58 */59 public class HashMapCacheStorage extends AbstractCacheStorage {60 61 private Map cache = new WeakHashMap ();62 63 /**64 * Get the specified cached objec... | http://kickjava.com/src/org/jpublish/cache/HashMapCacheStorage.java.htm | CC-MAIN-2017-17 | en | refinedweb |
PROfile
All time reputation: 22
AchievementYou have not received any achievements.
remysharp's Recent Snippets Tagged 'namespace'
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
« Prev [Page 1 of 1] Next »
JavaScript textmate namespace saved by 1 person
JavaScript namespaces
posted on February 4,... | http://snipplr.com/users/remysharp/tags/namespace/ | CC-MAIN-2017-17 | en | refinedweb |
SBT Native Packager 1.2.0
Native Packager 1.2.0 will come with a bunch of new features and some necessary changes. Some of this features are already implement in the current milestone (1.2.0-M5). Feel free to try them and provide feedback in our gitter channel or open an issue if you find a bug.
The features are in no ... | https://medium.com/@muuki88/sbt-native-packager-1-2-0-a93e305888c5 | CC-MAIN-2017-17 | en | refinedweb |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.