In terms that an OOP programmer would understand (without any functional programming background), what is a monad?
What problem does it solve and what are the most common places it's used?
EDIT:
To clarify the kind of understanding I was looking for, let's say you were converting an FP application that had monads into an OOP application. What…
Given a GUI application where widgets can be composed of other widgets: If the user triggers an event resulting in a lower level widget needing data from a model, what's the cleanest way to be able to send that request to a controller (or the datastore itself)? And subsequently get the response back to that widget?
Presumably one wouldn't want…
With respect to OOP best practices, why do some people feel it's poor design if you call something a WhateverManager or WhateverController? Is this widely accepted as a best practice (to avoid this)? And what is the recommended alternative?
Broad design/architecture question. If you have nested components in a GUI, what's the most common way for those components to interact with data?
For example, let's say a component receives a click on one of its buttons to save data. Should the save request be delegated up that component's ancestors, with the uppermost ancestor ultimately…
Oracle Enterprise Manager 12c Database as a Service (DBaaS) empowers Self Service/SSA Users to rapidly spawn databases on demand in cloud. The configuration and structure of provisioned databases depends on respective service template selected by Self Service user while requesting for database. In EM12c, the DBaaS Self Service/SSA…
Getting following exception in Jboss 5.0 EAP but it work fine in JBoss 5.1 GA.
we are using POI 3.7 and jars included are
poi-3.7.jar
poi-ooxml-schemas.jar
poi-ooxml.jar
The stack trace is
ERROR [org.apache.catalina.core.ContainerBase.[jboss.ueb].[localhost].[fesbcon-Fig].[Faces Servlet]]
3;13;44.4g3pM…
I am trying to plot the following numbers on a log scale as a scatter plot in matplotlib. Both the quantities on the x and y axes have very different scales, and one of the variables has a huge dynamic range (nearly 0 to 12 million roughly) while the other is between nearly 0 and 2. I think it might be good to…
Hello everyone!
I am looking for client-side javascript plugin for jquery(prefered, or maybe other framework) or other javascript framework, that implements dynamic, interactive user interface (fig. 1)
Requirements:
1) user interface shall be dynamic (client-side, javascript).
2) the displaying of the next…
I was unsuccessful browsing web for a solution for the following simple question:
How to draw 3D polygon (say a filled rectangle or triangle) using vertices values?
I have tried many ideas but all failed, see:
from mpl_toolkits.mplot3d import Axes3D
from matplotlib.collections import PolyCollection
import…
I have a C++ function returning a std::vector and I want to use it in python, so I'm using the C numpy api:
static PyObject *
py_integrate(PyObject *self, PyObject *args){
...
std::vector<double> integral;
cpp_function(integral); // this change integral
npy_intp size = {integral.size()};
PyObject…
Did you miss this general session on Monday morning presented by Amit Zavery, VP of Oracle Fusion Middleware Product Management? There will be a recording made available shortly and in the meanwhile, here is a recap. Amit presented 5 strategies customers can leverage today to extend their applications.
…
Did you miss
this general session on Monday morning presented by Amit Zavery, VP of Oracle
Fusion Middleware Product Management? There will be a recording made available
shortly and in the meanwhile, here is a recap. Amit presented 5 strategies
customers can leverage today to extend their applications.
…
In Ubuntu 11.04 I usually edit my *.fig files by clicking on the icons. The application (script) which opened the file was texfig. This script was chosen by "open with..." in nautilus. But now there is no possibilities to choose other applications than the predefined ones appropriate to the mimetype. How…
What is "Raid 5 + Spare" (excerpt from User Manual, Sect 4.17.2, P.54):
RAID5+Spare: RAID 5+Spare is a RAID 5 array in which one disk is
used as spare to rebuild the system as soon as a disk fails (Fig. 79).
At least four disks are required. If one physical disk fails, the data
remains available…
I have 4 files and the code 'works' as expected.
I try to clean everything up, place code into functions, etc... and everything looks fine... and it doesn't work. Can somebody please explain why MatLab is so quirky... or am I just stupid?
Normally, I type
terminator =…
I am trying to create a program that will do some simple calculations, but am having trouble with the program not doing the correct math, or placing the decimal correctly, or something. Some other people I asked cannot figure it out either.
Here is the code:…
Hi,
I'm kind of new to Python and trying to create a plotting app for values read via RS232 from a sensor. I've managed (after some reading and copying examples online) to get a plot working that updates on a timer which is great. My only trouble is that I…
Hi, I've hit an annoying problem in LaTeX. I've got a tex file of about 1000 lines. I've already got a few figures, but when I try to add another figure, It barfs with:
! Undefined control sequence.
<argument> ... \sf@size \z@ \selectfont \@currbox…
Hello all. Firstly - thanks again for all your help. Sorry not to have accepted the responses to my previous questions as I did not know how the system worked (thanks to Mark for pointing that out!). I have since been back and gratefully acknowledged the…
I want to generate high-quality diagrams for a presentation. I’m using Python’s matplotlib to generate the graphics. Unfortunately, the PDF export seems to ignore my font settings.
I tried setting the font both by passing a FontProperties object to the…
My laptop is overheating so I need to save all my files before I format the hard drive. I learned how to copy dev/sdX using dd command. However, I am not sure what to copy.
Picture from GParted here: http://is.muni.cz/www/256590/fig.png
should I copy…