text stringlengths 20 1.01M | url stringlengths 14 1.25k | dump stringlengths 9 15 ⌀ | lang stringclasses 4
values | source stringclasses 4
values |
|---|---|---|---|---|
GRVY-314 was marked as "Won't Fix".
However, I still think that the current behaviour is wrong.
I'll try to explain why, breaking the observed problem into two parts.
First part
-
Java module has Groovy facet and contains a groovy class.
Groovy code (GroovyBean.groovy):
-
class GroovyBean {
String someString;
}
-
Java ... | https://intellij-support.jetbrains.com/hc/en-us/community/posts/205999069-Java-interop-1-synthetic-accessors-for-Groovy-bean-properties- | CC-MAIN-2020-24 | en | refinedweb |
I'm going through some refactoring of old swing code... in the code
there is code like this:
public class Foo {
private static final JDialog dialog = new JDialog();
...
}
Then everything uses the dialog instance. I think that's just not cool,
and would like to make my life easy by clicking on dialog and choosing a
refa... | https://intellij-support.jetbrains.com/hc/en-us/community/posts/206929935-Refactoring-static-members- | CC-MAIN-2020-24 | en | refinedweb |
- CR
CR may refer to:
Nations
- Coral Sea Islands (FIPS country codes and obsolete NATO country code)
Costa Rica
Czech Republic
Other political places
- Castle Rock (disambiguation)
- Cedar Rapids, Iowa
- Crawford County, Kansas
- Province of Cremona in Northern Italy
Other places
- College of the Redwoods
- public toi... | https://en.academic.ru/dic.nsf/enwiki/165744 | CC-MAIN-2020-24 | en | refinedweb |
import spot spot.setup() from IPython.display import display
This notebook shows you different ways in which states or transitions can be highlighted in Spot.
It should be noted that highlighting works using some special named properties: basically, two maps that are attached to the automaton, and associated state or e... | https://spot.lrde.epita.fr/ipynb/highlighting.html | CC-MAIN-2020-24 | en | refinedweb |
Okay so right now I am working on my 2nd program yet. I just started Java a few days ago and programming--overall-- for only a week, so a lot of information is very foreign to me.
What I've been doing is following some basic tutorials, and with each section I learn, I will make my own program to test my own abilities a... | http://www.javaprogrammingforums.com/object-oriented-programming/34859-classes-classes-%5Bvery-beginner-asking-question%5D-%5Bw-codes%5D.html | CC-MAIN-2017-47 | en | refinedweb |
Introduction:
In first part of the tutorial series we got a glimpse of MVC. In this part we’ll focus on practical implementation of MVC Pattern. I don’t need to explain about theory of MVC as we have already covered this in previous part of the article.
Our Roadmap:
We stick our agenda as follows,
-.
Topics to be cover... | http://csharppulse.blogspot.com/2013/08/learning-mvc-part-2-creating-mvc.html | CC-MAIN-2017-47 | en | refinedweb |
Plan 9 From Bell Labs Operating System Now Available Under GPLv2 223
TopSpin."
Still holds up (Score:5, Insightful)
A model for consistency and simplicity. It validated the concepts underlying Unix, and influenced modern Linux/BSD. It also didn't hurt that they had some category-1 geniuses working on it - Kernighan, Ri... | https://slashdot.org/story/198237 | CC-MAIN-2017-47 | en | refinedweb |
QtCharts causing linking errors (LNK2019)
Hi, I've been trying to use QtCharts for Qt 5.7 for VS 2013, 32 bit. However, whenever I try to use a QtChart object, for example QHorizontalStackedBarSeries, it results in numerous linking errors. Here is an example of a cpp file where this occurs:
#include <qtcharts/qchartvie... | https://forum.qt.io/topic/69915/qtcharts-causing-linking-errors-lnk2019 | CC-MAIN-2017-47 | en | refinedweb |
The long awaited release 8.5.8.0 is here! Originally intended to be released in March of 2016, a shift in strategy has resulted in this release coming out in June. We greatly appreciate everyone’s patience, and hope that we find the result to be rewarding for everyone.
The biggest change in this release is an overhaul ... | http://codeontime.com/blog/2016/06/8580-has-landed-new-form-rendering | CC-MAIN-2017-47 | en | refinedweb |
General A root category General/Appearance A child category under General General/Appearance/Console Another child category under General/Appearance Data Access Another root categoryPreferences lie under a particular category. They are identified by a name called key, which must be unique within that category, but can ... | http://herschel.esac.esa.int/twiki/bin/view/Public/DpHipePreferences | CC-MAIN-2017-47 | en | refinedweb |
gnutls_x509_crq_sign(3) gnutls gnutls_x509_crq_sign(3)
gnutls_x509_crq_sign - API function
#include <gnutls/compat.h> int gnutls_x509_crq_sign(gnutls_x509_crq_t crq, gnutls_x509_privkey_t key);
gnutls_x509_crq_t crq should contain a gnutls_x509_crq_t type gnutls_x509_privkey_t key holds a private key
This function is t... | http://man7.org/linux/man-pages/man3/gnutls_x509_crq_sign.3.html | CC-MAIN-2017-47 | en | refinedweb |
Using Solarium with SOLR for Search – Advanced
Using Solarium for SOLR Search
- Using Solarium with SOLR for Search – Setup
- Using Solarium with SOLR for Search – Solarium and GUI
- Using Solarium with SOLR for Search – Implementation
- Using Solarium with SOLR for Search – Advanced
This is the fourth and final part o... | http://www.sitepoint.com/using-solarium-solr-search-advanced/ | CC-MAIN-2015-11 | en | refinedweb |
I clicked Libaries->add Jar->portlet-2.0.jar so I can use javax.portlet. The files look like they are there but where I try to do
import javax.portlet;
I get
Unused Import
Import section does not correspond to the specified code style rules
----
please help,
thanks
[nbj2ee] Can't access added Jar file
[nbj2ee] Re: Can'... | https://netbeans.org/projects/www/lists/nbj2ee/archive/2013-02/message/29 | CC-MAIN-2015-11 | en | refinedweb |
I'm trying to create a menu style enqueue and dequeue with pointers. I have this so far I want to use the left and right pointers to lets say dequeue a number. I also thought about using two temps. Any suggestions?
Code:#include<iostream> using namespace std; struct qNode{ int num; qNode *next; qNode *left; qNode *righ... | http://cboard.cprogramming.com/cplusplus-programming/96316-enqueue-dequeue-pointer.html | CC-MAIN-2015-11 | en | refinedweb |
. * <p/> 39 * There are some cases where strictly behaving as a compliant caching proxy would result in strange 40 * behavior, since we're attached as part of a client and are expected to be a drop-in replacement. 41 * The test cases captured here document the places where we differ from the HTTP RFC. 42 */ 43 public c... | http://hc.apache.org/httpcomponents-asyncclient-4.0.x/httpasyncclient-cache/xref-test/org/apache/http/impl/client/cache/TestAsyncProtocolDeviations.html | CC-MAIN-2015-11 | en | refinedweb |
NAME
vhangup - virtually hangup the current tty
SYNOPSIS
#include <unistd.h> int vhangup(void); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): vhangup(): _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE < 500) calling process has insufficient privilege to call vhangup(); the CAP_SYS_TTY_CONFIG ca... | http://manpages.ubuntu.com/manpages/precise/en/man2/vhangup.2.html | CC-MAIN-2015-11 | en | refinedweb |
Mike is an independent consultant and developer in Victoria, BC. He can be reached at mjenning@islandnet.com.
Java applets are small Java applications designed to run inside a web browser whenever it encounters a web page that contains an applet. Since Java applets can come from anywhere and be written by anyone, it on... | http://www.drdobbs.com/jvm/how-can-you-establish-a-network-connecti/184404324 | CC-MAIN-2015-11 | en | refinedweb |
#include <hallo.h> * Andreas Metzler [Fri, Jul 23 2004, 09:47:04AM]: > > Sure. But for Sarge, we did have the goal of a new installer and > > that took a long time. Right now, I don't seem to recall any equally > > big release goals for sarge+1 > [...] > > The obvious big blocker is the non-free "data|doc" issue. *Pers... | https://lists.debian.org/debian-devel/2004/07/msg01728.html | CC-MAIN-2015-11 | en | refinedweb |
{-# LANGUAGE Trustworthy #-} {-# LANGUAGE CPP, NoImplicitPrelude, MagicHash #-} ----------------------------------------------------------------------------- -- | -- Module : Data.List -- Copyright : (c) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : libra... | http://hackage.haskell.org/package/base-4.7.0.0/docs/src/Data-List.html | CC-MAIN-2015-11 | en | refinedweb |
...one of the most highly
regarded and expertly designed C++ library projects in the
world. — Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Returns the result type of
remove_if, given the input sequence
and unary MPL
Lambda Expression predicate types.
template< typename Sequence, typename Pred > struct remo... | http://www.boost.org/doc/libs/1_43_0/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/remove_if.html | CC-MAIN-2015-11 | en | refinedweb |
Free Email Notification
Receive emails when we post new
items of interest to you.Subscribe or
Modify your profile
Financial markets can play a valuable role in addressing climate change
It is not immediately obvious what role financial markets can play in addressing climate change. Climate change happens slowly and has... | http://www.imf.org/external/pubs/ft/fandd/2008/03/mills.htm | CC-MAIN-2015-11 | en | refinedweb |
Details
Description
stats.
Activity
Also, food for thought, when (hopefully not if) the VelocityResponseWriter is moved into core, we can deprecate stats.jsp and skin the output of this request handler for a similar pleasant view like stats.jsp+client-side xsl does now.
Any thoughts on the naming of this beast?
How abo... | https://issues.apache.org/jira/browse/SOLR-1750?attachmentOrder=desc | CC-MAIN-2015-11 | en | refinedweb |
Language.Haskell.TH.Syntax
Description
Abstract syntax definitions for Template Haskell.
Synopsis
- class (Monad m, Applicative m) => Quasi m where
- qNewName :: String -> m Name
- qReport :: Bool -> String -> m ()
- qRecover :: m a -> m a -> m a
- qLookupName :: Bool -> String -> m (Maybe Name)
- qReify :: Name -> m I... | http://hackage.haskell.org/package/template-haskell-2.9.0.0/docs/Language-Haskell-TH-Syntax.html | CC-MAIN-2015-11 | en | refinedweb |
Bjorn Helgass wrote:> Allow the default i8042 register locations to be changed at run-time.> This is a prelude to adding discovery via the ACPI namespace.> > Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>> > > +static unsigned long i8042_command_reg = I8042_COMMAND_REG;> +static unsigned long i8042_status_reg = I8... | http://lkml.org/lkml/2004/9/2/188 | CC-MAIN-2015-11 | en | refinedweb |
Victor Duvanenko is an IC design engineer. He has worked on several graphics chips at Intel. Presently he is a consultant at Silicon Engineering Inc. in Santa Cruz. He can be reached at 1040 S. Winchester Blvd., #11, San Jose, CA 95128.
Image compilation is a unique method of image compression whereby an image is trans... | http://www.drdobbs.com/database/image-compression-via-compilation/184408024 | CC-MAIN-2015-11 | en | refinedweb |
.
Sapphire includes a modeling framework that is tuned to the needs of the Sapphire UI framework and is designed to be easy to learn. It is also optimized for iterative development. A Sapphire model is defined by writing Java interfaces and using annotations to attach metadata. An annotation processor that is part of S... | http://www.eclipse.org/sapphire/releases/0.3/documentation/introduction/index.html | CC-MAIN-2015-11 | en | refinedweb |
ASP.NET Request Validation
Description
Request validation is a feature in ASP.NET that examines HTTP requests and determines whether they contain potentially dangerous content. This check adds protection from markup or code in the URL query string, cookies, or posted form values that might have been added for malicious... | https://www.owasp.org/index.php?title=ASP.NET_Request_Validation&redirect=no | CC-MAIN-2015-11 | en | refinedweb |
public class TypeNotPresentException extends RuntimeException
ClassNotFoundExceptionin that ClassNotFoundException.. | http://docs.oracle.com/javase/8/docs/api/java/lang/TypeNotPresentException.html | CC-MAIN-2015-11 | en | refinedweb |
WE_Frontend::MainCommon - common methods for all WE_Frontend::Main* modules
Do not use this module at its own!!! Just consult the methods.
Note that all methods are loaded into the
WE_Frontend::Main namespace.
Use the appropriate publish method according to the WEsiteinfo::Staging config member
livetransport. May retur... | http://search.cpan.org/~srezic/WE_Framework-0.097_03/lib/WE_Frontend/MainCommon.pm | CC-MAIN-2015-11 | en | refinedweb |
26 November 2010 16:50 [Source: ICIS news]
TORONTO (ICIS)--Ethylene producers such as Dow Chemical, LyondellBasell and ?xml:namespace>
Hassan Ahmed, head of research at New York-based equity research firm Alembic Global Advisors, said an estimated 10-15% reduction in Chinese ethylene production, caused by the country’s... | http://www.icis.com/Articles/2010/11/26/9414462/dow-lyondellbasell-to-benefit-from-china-diesel-measure-analyst.html | CC-MAIN-2015-11 | en | refinedweb |
31 July 2012 14:14 [Source: ICIS news]
SINGAPORE (ICIS)--?xml:namespace>
M.Setek failed to make the majority of a scheduled polysilicon delivery in 2011 to JA Solar Holdings because of the 11 March earthquake and tsunami and hence entered a framework agreement with JA Solar in March 2012 to settle outstanding prepaymen... | http://www.icis.com/Articles/2012/07/31/9582241/chinas-ja-solar-concludes-share-transfer-agreement-with-m.setek.html | CC-MAIN-2015-11 | en | refinedweb |
The Legend of Zelda: Link's Awakening
Trading Sequence FAQ by Kaas
Version: 1.02 | Updated: 10/20/05 | Search Guide | Bookmark Guide
|| _||_ | | THE LEGEND OF ______| |_______ ______________ ______ ____ / ____| |__ / \ __ \ / \ "\ \_ \ / / | | / / | | \ | | | |"\ | \ \ /__/ _| |/ / / | | \_| | | | | | | \ / __ / / / | ... | https://www.gamefaqs.com/gameboy/563277-the-legend-of-zelda-links-awakening/faqs/37454 | CC-MAIN-2017-34 | en | refinedweb |
Android Data Binding: The Big Event
And You Don’t Even Have to Dress Up
In previous articles, I wrote about how to eliminate findViewById from Android applications and in some cases eliminate the need for View IDs altogether. One thing I didn’t explicitly mention in those articles is how to handle event listeners, such... | https://medium.com/google-developers/android-data-binding-the-big-event-2697089dd0d7 | CC-MAIN-2017-34 | en | refinedweb |
5 Cloud Computing. 5.1 Introduction. 5.2 Market Trends Sheer Volume of Content Transferred
- Magdalene McKenzie
- 2 years ago
- Views:
Transcription
1 5 Cloud Computing 5.1 Introduction If computers of the kind I have advocated become the computers of the future, then computing may someday be organised as public utilit... | http://docplayer.net/1235896-5-cloud-computing-5-1-introduction-5-2-market-trends-5-2-1-sheer-volume-of-content-transferred.html | CC-MAIN-2017-34 | en | refinedweb |
First, here's a sample:
public class Deadlock {
static();
}
}
In Java, each
Object provides the ability for a Thread to
synchronize, or lock, on it. When a method is synchronized, the method uses its object instance as the lock. In your example, the methods
bow and
bowBack are both
synchronized, and both are in the sam... | https://codedump.io/share/nm8l6QWzC7KB/1/how-does-synchronized-work-in-java | CC-MAIN-2017-34 | en | refinedweb |
A Top Shelf Web Stack—Rails 5 API + ActiveAdmin + Create React App
Blending a rock-solid API and CMS with the absolute best in front-end tooling, built as a single project and hosted seamlessly on Heroku.
Rails is an incredible framework, but sometimes you don’t need all the bulk of the asset pipeline and a layout syst... | https://medium.com/superhighfives/a-top-shelf-web-stack-rails-5-api-activeadmin-create-react-app-de5481b7ec0b | CC-MAIN-2017-34 | en | refinedweb |
Move/Merge articles to external wikis
- 3.3 New dependencies for pacman
- 3.4 vmlinuz26
- 3.5 Switch initscripts to systemd on all pages
- 3.6 ConsoleKit and D-Bus
- 3.7 virtualbox-iso-additions & Co. package name changes
- 3.8 Inconsistent block size value for dd command
- 3.9 Move openjdk6 to jdk7-openjdk
- 3.10 com... | https://wiki.archlinux.org/index.php?title=ArchWiki:Requests&oldid=330061 | CC-MAIN-2017-34 | en | refinedweb |
This is my forst time posting to the list. If I should submit this
patch in some other way, please let me know.
I think this is a bug in Ant.
What happens is that Ant accesses the system properties list not by
using the standard well-defined interface but by accessing its
underlying hash table. The Java Language spec i... | http://mail-archives.apache.org/mod_mbox/ant-dev/200302.mbox/%3C15946.26686.750806.490293@cuddles.cambridge.redhat.com%3E | CC-MAIN-2017-34 | en | refinedweb |
Opened 7 years ago
Closed 3 years ago
#14226 closed Bug (fixed)
Bug in dumpdata dependency calculation involving ManyToManyFields
Description
The manage.py dumpdata command incorrectly interprets ManyToMany relationships as dependencies of the model that declares them (rather than the other way around).
In the example ... | https://code.djangoproject.com/ticket/14226 | CC-MAIN-2017-34 | en | refinedweb |
This morning we became aware of a Twitter campaign run from the website. This campaign is intended to provide Microsoft with feedback about our decision to continue to use Microsoft Word for composing and displaying e-mail in the upcoming release of Microsoft Outlook 2010. The Email Standards Project, which developed t... | http://web.archive.org/web/20090627004005/http:/blogs.msdn.com/outlook/archive/2009/06/24/the-power-of-word-in-outlook.aspx | CC-MAIN-2017-34 | en | refinedweb |
Refer LWP::UserAgent
The great pleasure in my life is doing what people say you cannot do.
# now lets actually get the image..
my $ua = LWP::UserAgent->new;
$ua->timeout(10);
$ua->env_proxy;
my $response = $ua->get($image);
if ($response->is_success) {
#print $response->content; # or whatever
open(WRITEIT,">$save_to") ... | http://www.perlmonks.org/?node_id=765421 | CC-MAIN-2017-47 | en | refinedweb |
PHYSFS_Allocator man page
PHYSFS_Allocator — PhysicsFS allocation function pointers.
Synopsis
#include <physfs.h>
Data Fields
int(* Init )(void)
void(* Deinit )(void)
void *(* Malloc )(PHYSFS_uint64)
void *(* Realloc )(void *, PHYSFS_uint64)
void(* Free )(void *)
Detailed Description.
See also:
PHYSFS_setAllocator
Fiel... | https://www.mankier.com/3/PHYSFS_Allocator | CC-MAIN-2017-47 | en | refinedweb |
I have a parent list something like so :-
ParentList = {a,b,c,a,c,d,b,a,c,c}
ListA = {a,a,a} ListB = {b,b} ListC= {c,c,c,c} ListD = {d}
4
ListC
Assuming you just want the count, and not which character/string gives that count, here is a one liner (you'll need
using System.Linq;)
var highestCount = ParentList.GroupBy(p ... | https://codedump.io/share/vhQ4E8MoYmAW/1/split-list-into-multiple-lists-of-similar-values-c | CC-MAIN-2017-47 | en | refinedweb |
LA3635 - com-
plaining. N, F 10000: the number of pies and the number
of friends.
One line with N integers ri with 1 ri 10000: the radii of the pies.
Output
For each test case, output one line with the largest possible volume V such that me and my friends can
all get a pie piece of size V . The answer should be given a... | http://blog.csdn.net/fljssj/article/details/46821969 | CC-MAIN-2017-47 | en | refinedweb |
What is the meaning of 3d graph?
I read the reference manual. There I see only
x,y. So how is the value of z decided?
Example:
def f(x,y): return math.sin(y*y+x*x)/math.sqrt(x*x+y*y+.0001) P = plot3d(f,(-3,3),(-3,3), adaptive=True, color=rainbow(60, 'rgbtuple'), max_bend=.1, max_depth=15) P.show()
I also don't know how... | https://ask.sagemath.org/question/37707/what-is-the-meaning-of-3d-graph/ | CC-MAIN-2017-47 | en | refinedweb |
How to build a symbol solver for Java, in Clojure
Originally published on my blog
LastSymbol References and Symbol Declarations
First, we have to consider that the same symbol could point to different declarations in different contexts. Consider this absurd piece of code:
package me.tomassetti; public class Example { p... | https://www.codementor.io/ftomassetti/how-to-build-symbol-solver-java-clojure-du107xlqc | CC-MAIN-2017-47 | en | refinedweb |
Recently I had a requirement where using Spring MVC we had to take inputs multiple rows of data from user. The form had many rows which user can edit and submit. Spring MVC provides very simple yet elegant way of collecting data from multiple rows from HTML form and store them in List of Beans in Java.
Lets look at the... | http://viralpatel.net/blogs/spring-mvc-multi-row-submit-java-list/ | CC-MAIN-2017-47 | en | refinedweb |
First solution in Clear category for Painting Wall by Amachua
# This function update the tuple d by taking into account the new data e.
# The output is the amount of value in the N-space which aren't already taken into account in d.
def update(d, e):
# minmin and maxmax are the lowest and highest value for the new adde... | https://py.checkio.org/mission/painting-wall/publications/Amachua/python-3/first/share/ed7f21e806c4c1792a63497ec34c4dc3/ | CC-MAIN-2021-31 | en | refinedweb |
C# Corner
In Part 2 of this three-part series on dataflow programming with the Task Parallel Library, Eric Vogel shows you how to create a Windows 8 application that uses a composite parallel data flow.
In Part 1 of this series on building Windows 8 applications with the Task Parallel Library (TPL) dataflow components ... | https://visualstudiomagazine.com/articles/2012/09/19/parallel-dataflow-part-2.aspx | CC-MAIN-2021-31 | en | refinedweb |
Java enum is a class in java that has a group of variables that cannot be changed. We can also call them constants or final variables. To create an enum, we use the enum keyword. It is used for things which are fixed such as days of the week – Monday, Tuesday, and Wednesday etc. Or the direction – East, West, North and... | https://www.developerhelps.com/java-enum/ | CC-MAIN-2021-31 | en | refinedweb |
A Sordid Little Tale Of Unexpected Security Exceptions
It was a dark and stormy coding session; the rain fell in torrents as my eyes were locked to two LCD screens in a furious display of coding …
…sorry sorry, I just can’t continue. It’s all a lie.
This actually a cautionary tale describing one subtle way that you can... | http://haacked.com/archive/2010/11/04/assembly-location-and-medium-trust.aspx/ | CC-MAIN-2021-31 | en | refinedweb |
In my last post I introduced the all-new Apex Metadata API. In this post we will take a look at the security aspects of this new feature.
When discussing this new API with customers, partners, and Salesforce employees, security is often the first topic raised. The Apex Metadata API empowers developers to automate chang... | https://developer.salesforce.com/blogs/engineering/2017/06/apex-metadata-api-security.html | CC-MAIN-2021-31 | en | refinedweb |
@decoratoror directly), or as a React Hook
Read more in the Times Open blog post.
If you just want a quick sandbox to play around with:
npm install --save react-tracking
import track, { useTracking } from 'react-tracking';
Both
@track() and
useTracking() expect two arguments,
trackingData and
options.
trackingDatarepre... | https://awesomeopensource.com/project/nytimes/react-tracking | CC-MAIN-2021-31 | en | refinedweb |
The Code Style Guide
For end-users, the most important parts of the software are functionality and UI/UX. But for developers, there is one more important aspect - code style. While ugly code can do everything that it has to do, developing it further may be a difficult task, especially if the developer didn't write the ... | https://pythondiscord.com/events/code-jams/code-style-guide/ | CC-MAIN-2021-31 | en | refinedweb |
sqlAlchemy has sessionmaker to create a session from which you can use query to get whatever you need. For example:
someSession.query(SomeTableRepresentationObject).filter...ect
If you’ve used sqlalchemy, nothing new going on here but it wouldn’t be me if I didn’t point out the obvious and take three sentences to do so... | https://byatool.com/uncategorized/mock-sqlalchemy-scoped_session-query-and-why-python-is-my-bff/ | CC-MAIN-2021-31 | en | refinedweb |
Warning: You are browsing the documentation for Symfony 2.5, recipe assumes you need a field definition that holds a person’s gender, based on the existing choice field. This section explains how the field is defined, how you can customize its layout and finally, how you can register it for use in your application.
Def... | https://symfony.com/doc/2.5/cookbook/form/create_custom_field_type.html | CC-MAIN-2021-31 | en | refinedweb |
Built-in filters - Scripted workflow filter (WorkflowFilter)
Introduction
The scripted workflow filter allows conditions and actions that can be executed during content filtering to be defined.
Configuring the scripted workflow filter
Enabling
Edit the
filter.classesparameter in your collectino configuration and add th... | https://docs.squiz.net/funnelback/docs/latest/build/data-sources/document-filtering/builtin-filters-workflow.html | CC-MAIN-2021-31 | en | refinedweb |
A class in java that can be created using ‘new’ keyword is called a concrete class in java. It is also known as the complete blueprint of its own self and can be instantiated. This class has the implementation of all the methods in it. Hence, this class can never contain any unimplemented methods. A concrete class can ... | https://www.developerhelps.com/concrete-class-in-java/ | CC-MAIN-2021-31 | en | refinedweb |
Swap two numbers using bitwise operator There are a number of methods to swap two numbers using Java. Today we will focus on swapping those numbers using a bitwise operator in java. In computers, arithmetic calculations such as addition, division, subtraction, multiplication etc are done at a bit level. To perform thes... | https://www.developerhelps.com/swap-two-numbers-using-bitwise-operator/ | CC-MAIN-2021-31 | en | refinedweb |
Her-)> ...-------------------- Start of forwarded message --------------------Date: Thu, 29 May 2003 09:21:27 +0100From: viro@parcelfarce.linux.theplanet.co.ukTo: Shaya Potter <spotter@cs.columbia.edu>Cc: linux-fsdevel@vger.kernel.orgSubject: [long] per-mountpoint readonlyMessage-ID: <20030529082127.GL14138@parcelfarce... | https://lkml.org/lkml/2003/8/4/253 | CC-MAIN-2021-31 | en | refinedweb |
In the earlier versions of .NET framework, writing code to perform asynchronous IO operations was not possible and hence the IO operations had to be synchronous. The problems that the developers were encountering with the synchronous approach were:
1. Unresponsiveness of UI - if the application is a thick client and ha... | https://mobile.codeguru.com/csharp/.net/net_framework/supporting-asynchronous-io-operations-with-.net-framework-4.5.htm | CC-MAIN-2021-31 | en | refinedweb |
hey guyss..!!
I'm having some difficulties working with strings (cstyle, object oriented strings).
as this is something new for me so I'm not exactly familiar with functions of strings aswell..
write now i have a question for which i was making a solution but the code is missing something please help me out.
Question s... | https://www.daniweb.com/programming/software-development/threads/494420/finding-total-occurrences-of-any-word-in-strings | CC-MAIN-2018-39 | en | refinedweb |
Shows the above error in spite of the input being in the range.
I expect the code to work perfectly.
from random import randint board = [] for x in range(0, 5): board.append(["O"] * 5) def print_board(board): for row in board: print " ".join(row) print_board(board) def random_row(board): return randint(1, len(board)) ... | https://discuss.codecademy.com/t/make-sure-to-enter-a-col-and-row-that-are-on-board-error/75454 | CC-MAIN-2018-39 | en | refinedweb |
I'm having some trouble wrapping my head around this part.
def compute_bill(food):
total = 0
for item in food:
if stock[item] > 0:
total = total + prices[item]
stock[item] = stock[item] - 1
return total
I know item is a variable defined by the for statement, and that it relates to food, so I guess I'm uncertain how it ... | https://discuss.codecademy.com/t/stocking-out/87856 | CC-MAIN-2018-39 | en | refinedweb |
#include "slepceps.h" PetscErrorCode EPSSetInitialSpace(EPS eps,PetscInt n,Vec *is)Collective on EPS and Vec
These vectors do not persist from one EPSSolve() call to the other, so the initial space should be set every time.
The vectors do not need to be mutually orthonormal, since they are explicitly orthonormalized in... | http://slepc.upv.es/documentation/current/docs/manualpages/EPS/EPSSetInitialSpace.html | CC-MAIN-2018-39 | en | refinedweb |
On date Thursday 2011-05-05 01:27:19 +0200, Michael Niedermayer encoded: > On Thu, May 05, 2011 at 01:08:55AM +0200, Stefano Sabatini wrote: > > On date Tuesday 2011-05-03 01:49:19 +0200, Michael Niedermayer encoded: > > > On Tue, May 03, 2011 at 12:20:48AM +0200, Stefano Sabatini wrote: > > > >); > > > > > > i was thi... | http://ffmpeg.org/pipermail/ffmpeg-devel/2011-May/111452.html | CC-MAIN-2016-44 | en | refinedweb |
i would really appreciate if someone can help me out.i would really appreciate if someone can help me out.
import java.util.*; import java.util.GregorianCalendar; import java.text.DateFormat; public class leapYear { public static void main(String[] args) throws Exception { GregorianCalendar newCal = new GregorianCalend... | https://community.oracle.com/message/10606873 | CC-MAIN-2016-44 | en | refinedweb |
id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 293 Typo in Tutorial 4 espen@… Jacob "At the end of [ Write a simple form] you got this: {{{ And edit the detail.html template to add this snippet towa... | https://code.djangoproject.com/ticket/293?format=tab | CC-MAIN-2016-44 | en | refinedweb |
/* * Copyright (C) 1984-2007 Mark Nudelman * * You may distribute under the terms of either the GNU General Public * License or the Less License, as specified in the README file. * * For more information about less, or for information on how to * contact the author, see the README file. */ /* * Code to handle displayin... | http://opensource.apple.com//source/less/less-23/less/linenum.c | CC-MAIN-2016-44 | en | refinedweb |
Write the for loop or do/while loop?
Ads
PHP Factorial Example:
<?php $n = 5; $i = 1; $f = 1; while($i<$n){ $i = $i + 1; $f = $f * $i; } echo $f; ?>
Here is a java example that finds the factorial of a number.
public class math{ public static long factorial(int n){ if(n <= 1) return 1; else return n * factorial(n - 1);... | http://www.roseindia.net/answers/viewqa/PHP/28132-For-Loop-PHP.html | CC-MAIN-2016-44 | en | refinedweb |
User:Duplode/Apfelmus' loop for Control structures
From Wikibooks, open books for an open world
Note
There are legitimate uses of
return () as a placeholder do-nothing action. For instance, take the following action:
loop = do c <- getChar if c == 'Q' then return () else loop putStrLn "" putStrLn [c]
Admittedly, this l... | https://en.wikibooks.org/wiki/User:Duplode/Apfelmus%27_loop_for_Control_structures | CC-MAIN-2016-44 | en | refinedweb |
Login is not possible
Bug Description
* Impact:
connecting to raring vsftpd servers doesn't work
* Test Case:
- install vsftpd on raring, configure the server, try to connect to it
* Regression potential:
the server was failing to accept connections before so should only be better
---
I'm using Ubuntu 13.04 dev with vs... | https://bugs.launchpad.net/ubuntu/+source/vsftpd/+bug/1160372 | CC-MAIN-2016-44 | en | refinedweb |
I have a python script that calls a system program and reads the output from a file
out.txt
out.txt
import subprocess, os, sys
filename = sys.argv[1]
file = open(filename,'r')
foo = open('foo','w')
foo.write(file.read().rstrip())
foo = open('foo','a')
crap = open(os.devnull,'wb')
numSolutions = 0
while True:
subprocess... | https://codedump.io/share/AViaFBLIct4E/1/python-refresh-file-from-disk | CC-MAIN-2016-44 | en | refinedweb |
Angel Perea Martinez wrote: > Hi, I´m relatively new to PIL, so perhaps I`m > overseeing something trivial, but when I use the font > Symbol with truetype (in the truetype mode, i see only > squares. I have no problem with other types, as arial > etc. > > f = ImageFont.truetype(n,fSize) > self.draw.text ((x,y), text.en... | https://mail.python.org/pipermail/image-sig/2003-September/002433.html | CC-MAIN-2016-44 | en | refinedweb |
I have built a few off-the-shelf classifiers from
sklearn
~/anaconda/lib/python3.5/site-packages/sklearn/metrics/classification.py:1074: UndefinedMetricWarning: F-score is ill-defined and being set to 0.0 due to no predicted samples.
'precision', 'predicted', average, warn_for)
stdout
"poor classifier performance"
warn... | https://codedump.io/share/Rg1OHXD9Dnp0/1/python---replacing-warnings-with-a-simple-message | CC-MAIN-2016-44 | en | refinedweb |
Formatting Types in the .NET Framework
Formatting is the process of converting an instance of a class, structure, or enumeration value to its string representation, often so that the resulting string can be displayed to users or deserialized to restore the original data type. This conversion can pose a number of challe... | https://msdn.microsoft.com/en-us/library/26etazsy(v=vs.110).aspx | CC-MAIN-2016-44 | en | refinedweb |
I wanted to update all of you on XAF's Mobile UI (CTP) we first publicly announced in late April (XAF Goes Mobile: CTP Version Ships with v15.2.9). To refresh your memory, this new feature allows you to create iOS, Android and Windows Phone apps alongside its Windows and Web app counterparts. XAF's mobile apps reuse th... | https://community.devexpress.com/blogs/eaf/ | CC-MAIN-2016-44 | en | refinedweb |
in reply to hash ref package
Can you define 'does not work anymore'?
One possible cause: if you move it to a different package and don't export the sub into the namespace of the caller, sort won't know where to find it. If this particular cause of 'does not work anymore' is the reason, then specifying the full class of... | http://www.perlmonks.org/index.pl/jacques?node_id=993764 | CC-MAIN-2016-44 | en | refinedweb |
WL#4739: Physical Structure of Server
Affects: Server-9.x — Status: Assigned — Priority: Medium
In order to simplify working with the server code, both as a developer and when packaging distributions, we want to have a physical structure of the code that makes the code easy to work with. We are also aiming at a long-te... | https://dev.mysql.com/worklog/task/?id=4739 | CC-MAIN-2016-44 | en | refinedweb |
What’s new in Groovy 2.0?
- |
-
-
-
-
-
-
Read later
My Reading List:
import groovy.transform.TypeChecked
void someMethod() {}
@TypeChecked
void test() {
// compilation error:
// cannot find matching method sommeeMethod()
sommeeMethod()
def name = "Marion"
// compilation error:
// the variable naaammme is undeclared
pr... | https://www.infoq.com/articles/new-groovy-20/ | CC-MAIN-2016-44 | en | refinedweb |
At some point of building your project you may wish to allow users to store some extra data. If you use Django‘s built-in authentication system you are in luck - much of the code have been already written and you only have to:
If you are not familiar with Django‘s authentication framework, please refer to Django‘s docu... | https://pythonhosted.org/django-richtemplates/userprofiles.html | CC-MAIN-2016-44 | en | refinedweb |
Like street numbers for a house, the Internet was originally designed so that all network devices could be directly addressed. Every connected device was given at least one unique identifier, or IP address, which could be used to route network packets to and from the device. For a while this worked well and devices had... | http://blogs.msdn.com/b/ncl/archive/2009/07/27/end-to-end-connectivity-with-nat-traversal-.aspx | CC-MAIN-2014-23 | en | refinedweb |
DBIx::Class::Manual::Cookbook - Miscellaneous recipes%',
'%Fear of Fours%'.
Other queries might require slightly more complex logic:
my @albums = $schema->resultset('Album')->search({ -or => [ -and => [ artist => { 'like', '%Smashing Pumpkins%' }, title => 'Siamese Dream', ], artist => 'Starchildren', ], });
This resul... | http://search.cpan.org/~ribasushi/DBIx-Class-0.08250/lib/DBIx/Class/Manual/Cookbook.pod | CC-MAIN-2014-23 | en | refinedweb |
Code. Collaborate. Organize.
No Limits. Try it Today.
Malicious code writers have many attack vectors. Here, I will introduce a JS class which dissects an encoded JavaScript. I will show you a real life example on a script that tries to hide its actions by using some very common techniques and how to bypass them to unc... | http://www.codeproject.com/Articles/11721/Hostile-code-analysis-with-JavaScript?PageFlow=FixedWidth | CC-MAIN-2014-23 | en | refinedweb |
Example scenario
Besides ITCAM for SOA, there are other ITCAM products, such as ITCAM for Response Time, ITCAM for WebResource, and ITCAM for Transaction. However, these products monitor system at the application granularity level. Unlike the other products, ITCAM for SOA can monitor systems at a granularity level rath... | http://www.ibm.com/developerworks/webservices/library/ws-ITCAMpart2/index.html?ca=drs-&ca=dgf-ip | CC-MAIN-2014-23 | en | refinedweb |
Hello
I found that a MIDlet will silently die on Nokia N90 and 6680 when trying to read the content of an HTTP "302 Found" server response.
Here is a small code showing it :
And here is the server-side PHP code to generate a HTTP 302 reply with content :And here is the server-side PHP code to generate a HTTP 302 reply ... | http://developer.nokia.com/community/discussion/showthread.php/77062-KVM-crashes-when-reading-content-with-HTTP-quot-302-Found-quot-response-on-N90-and-6680?p=224125&viewfull=1 | CC-MAIN-2014-23 | en | refinedweb |
> * a built-in mechanism to include build-file fragments - something
> that doesn't use SYSTEM entities at all and therefore is XSchema
> friendly, allows for property expansions ...
+1
> * Let Ant ignore - but warn - if unknown XML elements or attributes
> occur in a build file.
+0 I don't know enough about XML I thin... | http://mail-archives.apache.org/mod_mbox/ant-dev/200104.mbox/%3C01d201c0c9de$194be1e0$012a2a0a@seessle.de%3E | CC-MAIN-2014-23 | en | refinedweb |
CryptoStream Class
Defines a stream that links data streams to cryptographic transformations.
For a list of all members of this type, see CryptoStream Members.
System.Object
System.MarshalByRefObject
System.IO.Stream
System.Security.Cryptography.CryptoStream
[Visual Basic] Public Class CryptoStream Inherits Stream [C#]... | http://msdn.microsoft.com/en-US/library/system.security.cryptography.cryptostream(v=vs.71) | CC-MAIN-2014-23 | en | refinedweb |
Forum:Should VFS be abolished?
From Uncyclopedia, the content-free encyclopedia
I noticed on the VFS page this month that there's a sentiment that the system is more trouble than it's worth. It's led to numerous drama fests in the past (including the banning of PuppyOnTheRadio), and becoming an admin becomes an obsessi... | http://uncyclopedia.wikia.com/wiki/Forum:Should_VFS_be_abolished%3F?t=20120716112643 | CC-MAIN-2014-23 | en | refinedweb |
Difference between revisions of "PHP Security Cheat Sheet"
Revision as of 11:16, 25 August 2012
DRAFT CHEAT SHEET - WORK IN PROGRESS. It is of utmost important that you upgrade your PHP to 5.3.x or 5.4.x right now.
Also keep in mind that you should regularly upgrade your PHP distribution on an operational server. Every... | https://www.owasp.org/index.php?title=PHP_Security_Cheat_Sheet&diff=134759&oldid=118675 | CC-MAIN-2014-23 | en | refinedweb |
Introduction
This series has concentrated on new features in PHP V5.3, such as namespaces, closures, object handling, object-oriented programming, and Phar. While these flashy new features are a welcome addition to the language, PHP V5.3 was also designed to further streamline PHP. It builds upon the popular and stable... | http://www.ibm.com/developerworks/opensource/library/os-php-5.3new5/index.html?ca=dgr-lnxw64Migrate2PHP5.3&S_TACT=105AGY46&S_CMP=grsitejw64 | CC-MAIN-2014-23 | en | refinedweb |
import X between submodules in a package
Discussion in 'Python' started by Donn Ingle, Dec 19, 2007.47
- TG
- Jul 20, 2006
Python submodules and name importsFrank Aune, Aug 23, 2007, in forum: Python
- Replies:
- 1
- Views:
- 797
- =?iso-8859-1?B?UOFkcmFpZw==?=
- Aug 23, 2007
Noddy with submodules?Torsten Mohr, Sep 7, ... | http://www.thecodingforums.com/threads/import-x-between-submodules-in-a-package.562215/ | CC-MAIN-2014-23 | en | refinedweb |
Communication between two phones using NFC
Note: This is a community entry in the Windows Phone 8 Wiki Competition 2012Q4.
What is NFC ?.
NFC was present in a single Windows Phone 7 device, the Nokia Lumia 610 Quiksilver, exclusive for the French market. However, developers didn't have access to this feature .
NFC and ... | http://developer.nokia.com/community/wiki/index.php?title=Communication_between_two_phones_using_NFC&oldid=179306 | CC-MAIN-2014-23 | en | refinedweb |
URIs rather than using memory streams whenever you can. The XAML framework can associate the same media resources. APIs from the Windows.Graphics.Imaging namespace. You might need these APIs if your app scenario involves image file format conversions, or manipulation of an image where the user can save the result as a... | http://msdn.microsoft.com/en-us/library/windows/apps/br242752.aspx?cs-save-lang=1&cs-lang=cpp | CC-MAIN-2014-23 | en | refinedweb |
Ok, so I want to start off by saying that I am finishing my Associates in Computer Information Systems, and I AM NOT A PROGRAMMER!! I am not good at it and it is extremely difficult for me to wrap my head around it (which is odd for me because I love to learning; I am learning to speak Russian just for fun).
So, my ass... | http://www.javaprogrammingforums.com/%20object-oriented-programming/31104-methods-booleans-initializing-oh-my-printingthethread.html | CC-MAIN-2014-23 | en | refinedweb |
Composite Input Components in JSF
Composite components are a great feature of JSF 2.0. The canonical example is a login component with fields for the username and password:
<mylib:login
This has been well explained elsewhere. But here is what always baffled me. I want to have a composite date component, with three menu... | https://weblogs.java.net/blog/cayhorstmann/archive/2010/01/30/composite-input-components-jsf | CC-MAIN-2014-23 | en | refinedweb |
Scout/Tutorial/3.8/webservices/Create WsLogForm
From Eclipsepedia
Create Ws Log Form
On the client node, go to 'Forms'. Right click on the node to create the WsLogForm [1]. As the name of the form, enter
Ws Log and choose to create the Form ID which is the primary key of the log entry[2]. Click next to choose from the ... | http://wiki.eclipse.org/Scout/Tutorial/3.8/webservices/Create_WsLogForm | CC-MAIN-2014-23 | en | refinedweb |
![endif]-->
Project Description:
Module scope:
To trigger a third party software based on data queried from a Mongo DB. The module should check from the MongoDB at regular interval (this should be configurable) for orders which are in a status of “PDF Ready” and not currently being processed by another thread.
If any o... | http://www.freelancer.com/projects/Javascript-Linux/Node-module-trigger-Linux-Commands.html | CC-MAIN-2014-23 | en | refinedweb |
Is there any way, short of using unsafePerformIO, to implement a combinator f :: [IO a] -> IO [a] in a way that the the result is produced lazily? The problem with sequence :: (Monad m) => [m a] -> m [a] sequence = foldr (liftM2 (:)) (return []) where liftM2 f a b = do { a' <- a; b' <- b; return (f a' b') } is that it ... | http://www.haskell.org/pipermail/haskell/2001-November/008349.html | CC-MAIN-2014-23 | en | refinedweb |
Code. Collaborate. Organize.
No Limits. Try it Today.
Bioinformatics is an interdisciplinary field joining the field of Biology and Computer Science. Bioinformatics is concerned with the organization and analysis of biological data. For molecular biologists, it.
My current major goal is developing and providing a softw... | http://www.codeproject.com/Articles/226888/AzharDNA-New-Bioinformatics-Program-Basic-tools-fo | CC-MAIN-2014-23 | en | refinedweb |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.