text stringlengths 454 608k | url stringlengths 17 896 | dump stringclasses 91
values | source stringclasses 1
value | word_count int64 101 114k | flesch_reading_ease float64 50 104 |
|---|---|---|---|---|---|
General cleanups as part of the libcaps userland threading work.
/* * $FreeBSD: src/sys/i386/i386/mplock.s,v 1.29.2.2 2000/05/16 06:58:06 dillon Exp $ * $DragonFly: src/sys/i386/i386/mplock.s,v 1.11 2003/12/04 20:09:31 dillon Exp $ * * Copyright (c) 2003 Matthew Dillon <dillon@backplane MPLOCK operation * * Each thread... | http://www.dragonflybsd.org/cvsweb/src/sys/i386/i386/Attic/mplock.s?f=h;rev=1.11 | CC-MAIN-2014-49 | refinedweb | 976 | 54.32 |
No niftier tricks -- you will need to drain/restart because of the
commitlog headers. Other than that it should work fine.
On Fri, Nov 26, 2010 at 8:08 PM, David King <dking@ketralnis.com> wrote:
> I'd like to move a CF from one keyspace into another. I'm running 0.6.8. Is this just
a matter of draining the nodes, taki... | http://mail-archives.apache.org/mod_mbox/incubator-cassandra-user/201011.mbox/%3CAANLkTinfz-t9GcbxKDKQxt8DQyXzFCFNHiOVy1JMX_Vt@mail.gmail.com%3E | CC-MAIN-2015-22 | refinedweb | 236 | 74.9 |
, Aspect Oriented Programming (AOP) in C# with SOLID, I talked about AOP, and how it helps with reducing code duplication and code tangling that is encountered while addressing cross-cutting concerns. I also mentioned different approaches for doing AOP in C#. These approaches are:
1. AOP by using the IQueryHandler and ... | https://www.dotnetcurry.com/patterns-practices/1443/aop-csharp-functions | CC-MAIN-2021-25 | refinedweb | 3,338 | 54.52 |
10.9 Maintaining State with a Server
In Chapter 8, Multiple Form Interaction, we looked at several techniques for keeping track of information between multiple forms. They involved using temporary files, hidden variables, and Netscape Persistent Cookies. Now, we will look at yet another method to keep state. This invol... | http://www.oreilly.com/openbook/cgi/ch10_09.html | CC-MAIN-2014-52 | refinedweb | 3,528 | 54.93 |
Lucky catches bugs, returns responses quickly, and helps you write maintainable code. Lucky’s actions help you to process requests and return responses as reliably and productively as possible.
To make Lucky actions rock solid, we looked at the problems we often experience while building apps.
Problems that we wanted t... | https://thoughtbot.com/blog/designing-lucky-actions-routing | CC-MAIN-2020-45 | refinedweb | 1,114 | 63.19 |
Let Them Code Cake!
In TDD and BDD we write small, focused, technical tests, sometimes called micro-tests. One of the core ideas is that these tests should run fast, really fast—each one measured in milliseconds. If you're writing plain Ruby code, that's pretty easy to accomplish. However, when you're using something l... | https://blog.engineyard.com/2010/let-them-code-cake | CC-MAIN-2015-18 | refinedweb | 2,009 | 64.61 |
.. image::
|TRAVIS| |APPVEYOR| |COVERALLS| |VERSION| |LICENSE|
.. |TRAVIS| image:: :alt: Travis Build Status :target:
.. |APPVEYOR| image:: :alt: Build status :target:
.. |COVERALLS| image:: :alt: Coverage Status :target:
.. |VERSION| image:: :alt: GitHub version :target:
.. |LICENSE| image:: :alt: License :target:
Ple... | https://openbase.com/python/cadquery | CC-MAIN-2021-39 | refinedweb | 1,138 | 57.98 |
#include <BTagJetSelector.hpp>
Inheritance diagram for caf_util::BTagJetSelector:
The user then selects which type (algorithm and operating point) of b-jets and how many to select. This code is based on JetSelector.
Usage: Here's a list of all configuration parameters used by the selector, along with their standard val... | http://www-d0.fnal.gov/Run2Physics/working_group/data_format/caf/classcaf__util_1_1BTagJetSelector.html | crawl-003 | refinedweb | 317 | 56.96 |
The QUuid class stores a Universally Unique Identifier (UUID). More...
#include <QUuid>
Note: All functions in this class are reentrant.
The QUuid class stores a Universally Unique Identifier (UUID).
Using Universally Unique IDentifiers (UUID) is a standard way to uniquely identify entities in a distributed computing e... | http://idlebox.net/2010/apidocs/qt-everywhere-opensource-4.7.0.zip/quuid.html | CC-MAIN-2014-15 | refinedweb | 1,060 | 65.62 |
Class::Colon - Makes objects out of colon delimited records and vice versa
This document covers version 0.03 of
Class::Colon.
use Date; use Class::Colon Person => [ qw ( first middle family date_of_birth=Date=new ) ], Address => [ qw ( street city province code country ) ]; Person->DELIM(','); # change from colon to co... | http://search.cpan.org/~philcrow/Class-Colon-0.03/Colon.pm | CC-MAIN-2016-50 | refinedweb | 1,170 | 74.59 |
Bug #13691closed
Word- and symbol array literals not valid where regular array is
Status:
Rejected
Priority:
Normal
Assignee:
Target version:
[ruby-core:81806]
ruby -v:
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]
Description
Not sure if this is a limitation of the design space in the parser, or just a ... | https://bugs.ruby-lang.org/issues/13691 | CC-MAIN-2022-21 | refinedweb | 294 | 58.72 |
Sample Source Code: Casting String and Integers in Java
Get A Website Plus a Free Domain Name in Just 1 Hour!
Bring the new technology in your hands! Share your skills, improve and impress. Get Your Own Website and a Free Domain Name Here!
How to cast in Java
Casting in Java is of many types. You can cast from integer ... | https://hubpages.com/technology/How-to-cast-in-Java-with-Free-Java-Source-Code | CC-MAIN-2017-47 | refinedweb | 487 | 62.88 |
.NET is out there
There is a FAQ on the ASP.NET Forum pinned by Mike and mainly focus on the FAQs for Email Sending in ASP.NET, and Dave also created a web site dedicated in this topic recently!
System.Web.Mail, OH MY!
Complete FAQ for the System.Web.Mail namespace
the number one item there imho is the one about walkin... | http://weblogs.asp.net/coltk/archive/2004/01/04/SystemWebMail.aspx | crawl-002 | refinedweb | 112 | 78.14 |
I'm fairly new to Python and trying to create a function to multiply a vector by a matrix (of any column size).
e.g.:
multiply([1,0,0,1,0,0], [[0,1],[1,1],[1,0],[1,0],[1,1],[0,1]])
[1, 1]
def multiply(v, G):
result = []
total = 0
for i in range(len(G)):
r = G[i]
for j in range(len(v)):
total += r[j] * v[j]
result.appen... | https://codedump.io/share/jFdO9e4RTp0k/1/python-3-multiply-a-vector-by-a-matrix-without-numpy | CC-MAIN-2017-09 | refinedweb | 279 | 53.21 |
After so much dilly-dallying over the extension of the income tax return (ITR) filing deadline of July 31, 2017, the Income Tax Department today extended the deadline for filing tax return by 5 days to August 5. It may be noted that during the last few days of the ITR filing deadline, the Income Tax Department’s e-fili... | https://www.financialexpress.com/money/income-tax-return-last-date-extended-to-august-5-for-fy-2016-17/787918/ | CC-MAIN-2018-22 | refinedweb | 286 | 54.15 |
Today I made a bunch of progress (I can now be a TCP server, kinda!), but I want to talk about problems instead.
The main function right now in this TCP stack is called
handle(), and
it’s responsible for moving from one part of the
state machine
to another.
In particular, it has to
- Drop inappropriate packets
- Increm... | https://jvns.ca/blog/2013/11/12/day-26-trying-to-describe-the-tcp-state-machine/ | CC-MAIN-2017-09 | refinedweb | 605 | 62.24 |
I have been learning C++ for a bit now, and i am noticing that cin.get(); seems to be unpredictable. Sometimes it works (that is it waits for input to continue), other times the program will just continue to input. I have heard it has to do with bad steams (like inputing letter for an integral value) but I made absolut... | http://cboard.cprogramming.com/cplusplus-programming/82560-cin-get-curiosity.html | CC-MAIN-2016-18 | refinedweb | 134 | 85.28 |
I'm fairly new to the java language but I can't seem to get my code to work. It is supposed to read an input file with names and 10 quiz scores for each person, then do a bubble sort until we have the top 8 scores, then create an average of those scores and give it a letter grade. The final output for each person is su... | http://www.javaprogrammingforums.com/whats-wrong-my-code/12238-help-confused-why-im-not-getting-output.html | CC-MAIN-2014-15 | refinedweb | 433 | 70.33 |
In this post, we are going to draw our first image and show it on to the screen! The idea may looks simple to you but it is one of the toughest! But don't worry, I will simplify this by discussing all about Hardware Rendering and skipping most of the Software Rendering. From rendering, we mean drawing our image on the ... | https://caveofprogramming.com/guest-posts/drawing-an-image-sdl.html | CC-MAIN-2018-09 | refinedweb | 1,218 | 63.49 |
Can I have some assistance configuring Visual Code (not Visual Studio) to build a C++ library? Both static and most importantly a dynamic library? Visual Code requires that you create a tasks.json file to tell VS Code how to build (compile) the program. This task will invoke the Microsoft C++ compiler to create an exec... | https://windowsquestions.com/2021/09/18/visual-studio-code-settings-for-c-a-static-and-b-dynamic-library-linking/ | CC-MAIN-2021-43 | refinedweb | 280 | 68.97 |
I was reading this article and thought these would be good to cover in D. However I will cover them in the opposite order.
Splice! Slice! Shoot, I meant Shift!
Laurie ・ Jul 30 '19 ・ 4 min read
Split
There are a number of variation of this, many of which I will use in the other examples.
import std.algorithm; auto data ... | https://practicaldev-herokuapp-com.global.ssl.fastly.net/jessekphillips/slicing-and-dicing-arrays-5akg | CC-MAIN-2021-21 | refinedweb | 805 | 59.9 |
sorry if u didnt see the requirements:
we are only allowed to use ! ~ & ^ | + << >> op's
This is a discussion on Using bitwise operator to see if x>y within the C Programming forums, part of the General Programming Boards category; sorry if u didnt see the requirements: we are only allowed to use ! ~ & ^ | + << ...
sor... | http://cboard.cprogramming.com/c-programming/150826-using-bitwise-operator-see-if-x-y-2.html | CC-MAIN-2015-40 | refinedweb | 1,124 | 73.07 |
A Command-Line Java Application
Let's get started with a "Hello World!" command-line Java application:
public class Test { public static void main(String[] args) { System.out.println("Hello DDJ!"); } }
Once compiled on the host computer, copy the .class file to the device with this command (executed from the host):
> s... | http://www.drdobbs.com/open-source/java-and-the-nokia-n810-internet-tablet/208801979?pgno=3 | CC-MAIN-2018-05 | refinedweb | 773 | 54.42 |
Bug Description
The dialog to edit your business card currently can be opened several times. This may not be. When the user tries to open File-->Edit Business Card... for a second time, the opened dialog should become in focus (*and* updated: otherwise this may introduce a new bug when the user switched profile in the ... | https://bugs.launchpad.net/coccinella/+bug/179936 | CC-MAIN-2017-13 | refinedweb | 1,044 | 63.83 |
Driving Plan 9 226
Glenda_lives_on writes "OSnews has an alternative OS review on Plan 9. Plan 9 is a research OS produced by Bell Labs. It was open sourced a few years back, and has enjoyed a revival of sorts. Los Alamos National Labs is continuing to favor Plan 9 for their new generation of super computing because it... | http://slashdot.org/story/06/07/23/1228225/driving-plan-9 | CC-MAIN-2015-18 | refinedweb | 4,802 | 70.73 |
Programming Jabber
O'Reilly & Associates, Inc., 2002
ISBN: 0-596-00202-5
$39.95 US (hardcover)
I've always been intrigued by the idea of using Jabber as a router for XML messages, which happens to be the topic of D. J. Adam's Programming Jabber.
Things start out well enough. The first example program appears on page 7,... | http://www.linuxjournal.com/article/6499?quicktabs_1=0 | CC-MAIN-2015-35 | refinedweb | 385 | 66.33 |
As there is a growing interest in dynamic languages, more people
are running into a programming concept called Closures or
Blocks. People from a C/C++/Java/C# language background don't have closures
and as a result aren't sure what they are. Here's a brief
explanation, those who have done a decent amount of programming... | http://martinfowler.com/bliki/Closure.html | crawl-002 | refinedweb | 471 | 64.81 |
Pololu Blog ».
[See also: Part 1: selecting mechanical parts, Part 3: encoders, Part 4: a balancing algorithm, or Part 5: popping up and driving around.].
Configuring the gyro
When using the LSM6DS33, the first thing you need to do is configure its angular rate measurement range, which can be set to ±125, ±245, ±500, ±... | https://www.pololu.com/blog/664/how-to-make-a-balboa-robot-balance-part-2-inertial-sensors | CC-MAIN-2020-10 | refinedweb | 1,534 | 57.61 |
Easy automation with the new JSON report.
The ByteBlower GUI and CLT now have a new type of report: JSON. Just like CSV, this format is intended for machines rather than us humans. Actually, JSON is a huge improvement over CSV.
As an example, check out the Python code below. 15 lines to check whether our network device... | https://support.excentis.com/index.php?/Knowledgebase/Article/View/easy-automation-with-the-json-reports | CC-MAIN-2020-40 | refinedweb | 293 | 60.31 |
Closed Bug 858101 (CVE-2013-1697) Opened 10 years ago Closed 9 years ago
[[Default
Value]] on Xray Wrapper can call content-defined to String/value Of methods
Categories
(Core :: Security, defect)
Tracking
()
mozilla24
People
(Reporter: moz_bug_r_a4, Assigned: bholley)
Details
(Keywords: sec-high, Whiteboard: [adv-main... | https://bugzilla.mozilla.org/show_bug.cgi?id=858101 | CC-MAIN-2022-33 | refinedweb | 2,401 | 58.08 |
With the advent of ASP.NET, and Visual Studio.NET with its graphical tools to provide design-time databinding support, the concept of databinding has really come of age. Databinding to ADO.NET
DataSets and
DataTables is a well accepted and well documented technique. However, there is a school of thought that considers
... | http://www.codeproject.com/KB/aspnet/OODatabinding.aspx | crawl-002 | refinedweb | 1,179 | 54.93 |
Automate login) that there is no network connection. Is there any way to use Pythonista to fill out and submit the authentication data?
Are you talking about the redirected page that some wifi spots take you to (where you must read the agreement, maybe login, etc) as opposed to the ios authentication?
For the latter, I... | https://forum.omz-software.com/topic/1229/automate-login | CC-MAIN-2018-13 | refinedweb | 375 | 81.63 |
match font family return from QFont::toString()
so i have a QFont which i convert to QString using toString() which returns something like "Console,12,-2,5,50,0,0,0,0,0". i need to parse this to get the font family. so i tried this regex: ^([^,]*)
which works on this website:, but not in my code. what can be the reason... | https://forum.qt.io/topic/83431/match-font-family-return-from-qfont-tostring | CC-MAIN-2022-33 | refinedweb | 375 | 65.32 |
The". won't last long on the open market. In this chapter we describe the most common and most sensible life cycle implementations for HTTP servlets..
To demonstrate the servlet life cycle, we'll begin with a simple example. Example 3-1 shows a servlet that counts and displays the number of times it has been accessed. ... | http://docstore.mik.ua/orelly/java-ent/servlet/ch03_01.htm | crawl-002 | refinedweb | 234 | 62.78 |
Software Testing for Data Science
From the title “Data Scientist” you would guess that we work with data, and we do some sort of science, but what you might miss is that we write a lot of code. This means that good development practices are good data science practices! A good practice to start with, one that is not onl... | https://alexgude.com/blog/software-testing-for-data-science/ | CC-MAIN-2019-35 | refinedweb | 969 | 65.76 |
Ionic going to see how things were before and how they got improved.
The old way
First let's go to the terminal to create the Ionic app:
ionic start routy tabs --v2
This generates a normal Ionic 3 app with the following imports in the app.module.ts:
import { AboutPage } from '../pages/about/about'; import { ContactPage... | https://javascripttuts.com/ionic-3-new-pages-lazy-loading/ | CC-MAIN-2019-26 | refinedweb | 610 | 51.34 |
RvsPython #4: A Basic Search on Amazon.ca using R and Python
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
This post was inspired by one of Thomas Neitmann’s posts showing how to write some debugging code in R and Python to automatically search code errors on StackOverfl... | https://www.r-bloggers.com/2020/08/rvspython-4-a-basic-search-on-amazon-ca-using-r-and-python/ | CC-MAIN-2022-21 | refinedweb | 397 | 74.49 |
Introduction to Spring Boot MVC
Spring Boot MVC is a module of the spring framework which was dealing with the MVC pattern or model view controller, it will combine all the advantages from the MVC pattern which was spring boot convenience. Spring boot will implement the MVC with a pattern of the front controller by usi... | https://www.educba.com/spring-boot-mvc/?source=leftnav | CC-MAIN-2022-40 | refinedweb | 1,017 | 59.5 |
readonly keyword
This is something new that I learned about the readonly keyword. Have a look at the following class:
1: public class MyClass
2: {
3: public string Name { get; set; }
4: public int Age { get; set; }
5:
6: private readonly double Delta;
7:
8: public MyClass()
9: {
10: Initializer();
11: }
12:
13: public ... | https://weblogs.asp.net/nmarun/readonly-keyword | CC-MAIN-2022-40 | refinedweb | 630 | 61.46 |
A X12,842 Points
Why is code sometimes read from left to right and then others from right to left?
using System; namespace Treehouse.FitnessFrog { class Program { static void Main() { int runningTotal = 0; /*read left to right: we're making an int variable called runningTotal and assigning it the value 0 */ Console.Wri... | https://teamtreehouse.com/community/why-is-code-sometimes-read-from-left-to-right-and-then-others-from-right-to-left | CC-MAIN-2020-29 | refinedweb | 321 | 72.36 |
import "github.com/nhelke/goupnpc/goupnp"
A small library for using the port mapping controls of UPnP-enabled IGDs
backend.go goupnp.go ssdp.go
This function returns a channel which will be sent the first IGD it finds in traversing `net.InterfaceAddrs()` with IP addresses in the private network range.
The channel this ... | https://godoc.org/github.com/nhelke/goupnpc/goupnp | CC-MAIN-2020-05 | refinedweb | 533 | 51.28 |
Hi V?ctor, On Sun, 2006-10-22 at 20:51 +0200, V?ctor Paesa wrote: [...] > >> CFLAGS+=-I$(SRC_PATH)/libswscale $(AMR_CFLAGS) > >> > >> Apart from that the patch looks fine to me. > > Ok, I made this change and I also fixed "make install" (I hope I did it > > in the proper way). If noone complains, I'll apply this tomorr... | http://ffmpeg.org/pipermail/ffmpeg-devel/2006-October/018686.html | CC-MAIN-2013-20 | refinedweb | 256 | 64.41 |
Here's a little snippet for everyone that develops web pages. Today, my boss told me that the text color on a web page element did not contrast enough with the element's background color. Well, she changes her mind more often than Bush denies that Iraq is in the middle of a civil war. For that reason, we had to come up... | http://www.codeproject.com/Articles/16565/Determining-Ideal-Text-Color-Based-on-Specified-Ba | CC-MAIN-2015-35 | refinedweb | 525 | 56.45 |
Help with SpriteNode movement using buttons
- KnightExcalibur
It was difficult for me to figure out because I'm a beginner, but I seem to have gotten the sprite movement halfway working with buttons. The rotation of the walking textures works with the gravity() module,
(see: or part 3 of the pythonista game tutorial)
b... | https://forum.omz-software.com/topic/5895/help-with-spritenode-movement-using-buttons | CC-MAIN-2021-49 | refinedweb | 805 | 54.59 |
The usual way for an administrator to hear that a user's account has been locked out is when the user phones and complains. But occasionally locked-out accounts can signal something more nefarious.
Account lockout policies are typically configured on Active Directory-based networks in order to deter brute-force passwor... | http://www.oreillynet.com/lpt/a/4926 | CC-MAIN-2014-42 | refinedweb | 832 | 65.05 |
KDEUI
#include 283 of file netwm_def.h.
Member Enumeration Documentation
Sentinel value to indicate that the client wishes to be visible on all desktops.
Definition at line 704 of file netwm_def.h.
Actions that can be done with a window (_NET_WM_ALLOWED_ACTIONS).
Definition at line 553 of file netwm_def.h.
Starting co... | https://api.kde.org/4.x-api/kdelibs-apidocs/kdeui/html/classNET.html | CC-MAIN-2019-30 | refinedweb | 288 | 60.82 |
Current Version:
Linux Kernel - 3.80
Synopsis
#include <sys/types.h> #include <ifaddrs.h> int getifaddrs(struct ifaddrs **ifap); void freeifaddrs(struct ifaddrs *ifa);
Description address. (The sa_family subfield should be consulted to determine the format of the address structure.) This field may contain a null pointe... | https://community.spiceworks.com/linux/man/3/getifaddrs | CC-MAIN-2018-34 | refinedweb | 125 | 50.02 |
Important: Please read the Qt Code of Conduct -
[SOLVED] PCAN QList Error when using a USB hub
Hello,
I'm using PCAN to generate and send CAN Messages. Everything worked till now, I could create and send Messages. And I could see all my send CAN Messages on the PCAN-View Tool.
My problem now is that I pluged in a USB h... | https://forum.qt.io/topic/52825/solved-pcan-qlist-error-when-using-a-usb-hub | CC-MAIN-2021-49 | refinedweb | 308 | 59.23 |
A python API to consume transit data from.
Project description
511-transit
Python API to consume transit data from.
In order to use this library, you will need to signup for a 511.org developer token.
Sample usage
from fiveoneone.route import Route from fiveoneone.stop import Stop token = "YOUR_DEVELOPER_TOKEN" route =... | https://pypi.org/project/fiveoneone/ | CC-MAIN-2019-26 | refinedweb | 160 | 61.43 |
C++ Guide for EOS Development - Call by value / reference
This post is part of my C++ Guide for EOS developers
- Basics
- Call by value / reference & Pointers
- Classes and Structs
- Templates
- Iterators & Lambda Expressions
- Multi-index
- Header files
Call by value / reference
How arguments are passed to functions i... | https://cmichel.io/cpp-guide-for-eos-development-call-by-value-reference | CC-MAIN-2019-43 | refinedweb | 1,226 | 56.59 |
Solving Tic-Tac-Toe with R data.tree
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.’:
fields <- expand.grid(letters[1:3], 1:3) fields ## Var1 Var2 ## 1 a 1 ## 2 b 1 ## 3 c 1 ## 4 a 2 ## 5 b 2 ## 6 c 2 ## 7 a 3 ## 8 b 3 ## 9 c 3:
library(data.tree) ttt<- Node$new("ttt") #c... | https://www.r-bloggers.com/2015/09/solving-tic-tac-toe-with-r-data-tree/ | CC-MAIN-2021-10 | refinedweb | 607 | 56.35 |
updated@2013-08-28
java.net.Socket provides a client-side TCP socket. It's a simple exercise to implement Socket communication, on Android as a client.
In the next exercises, I will implement a local Socket Server in Eclipse. Such that you can try the linking between Android device/emulator and the local socket server.... | http://android-er.blogspot.com/2011/01/simple-communication-using.html | CC-MAIN-2018-30 | refinedweb | 4,560 | 61.83 |
Version 1.4.14 (Stable)
* Fixes SQL join when matching item metadata
in a search folder.
* Added workaround for negative search folder
unread count values.
* Fixes Debian #469245: hanging on cache migration
from 1.0 when copying deprecated named pipe
"new_subscription" (reported by Oliver Berger).
Next stable release ... | https://sourceforge.net/p/liferea/mailman/liferea-devel/?viewmonth=200803&viewday=11 | CC-MAIN-2016-30 | refinedweb | 281 | 62.14 |
Suppose you have an n by m chessboard. How many ways can you cover the chessboard with dominoes?
It turns out there’s a remarkable closed-form solution:
Here are some questions you may have.
But what if n and m are both odd? You can’t tile such a board with dominoes.
Yes, in that case the formula evaluates to zero.
Do ... | https://www.johndcook.com/blog/2016/08/19/how-many-ways-can-you-tile-a-chessboard-with-dominoes/ | CC-MAIN-2017-22 | refinedweb | 489 | 75.4 |
with lists
I was trying to remember how to use Haskell. This blog post focuses only on
Control.Monad.liftM function.
The type of
liftM is
(Monad m) => (a1 -> r) -> m a1 -> m r which evaluates the second argument with the first argument as if it's in do block.
Let me explain that with the following example. You need the... | http://ujihisa.blogspot.com/2010/08/haskell-liftm-practice.html | CC-MAIN-2018-22 | refinedweb | 377 | 76.62 |
NAME
fork —
create a new process
SYNOPSIS
#include
<unistd.h>
pid_t
fork(void);
DESCRIPTION
fork()
causes creation of a new process. The new process (child process) is an
exact copy of the calling process (parent process) except for the
following:
- The child process has a unique process ID, which also does not match a... | http://man.openbsd.org/OpenBSD-6.2/fork.2 | CC-MAIN-2022-40 | refinedweb | 132 | 85.39 |
biballah HezareheeAndroid Development Techdegree Student 6,312 Points
Cannot understand why my code is not working.
Hi everyone who see my post In Android Basic track, in the Intent and Multiple Activity that step which I need to get data from the start intent, I cannot understand why my code is not working. I did all ... | https://teamtreehouse.com/community/cannot-understand-why-my-code-is-not-working | CC-MAIN-2022-33 | refinedweb | 292 | 56.15 |
Persisting Node Expanded States in the ASP.NET TreeView
In keeping with my theme of spackling over the shortcomings of native ASP.NET controls, it is time to address our frustratingly forgetful friend, the TreeView.
While based on a Windows control rather than merely being an enhanced web control (like a TextBox or a D... | https://code.jon.fazzaro.com/2008/10/22/treeview-amnesia-and-you/ | CC-MAIN-2018-26 | refinedweb | 1,216 | 61.67 |
#include <LoggingEvent.hh>
The internal representation of logging events. When a affirmative logging decision is made a
LoggingEvent instance is created. This instance is passed around the different log4cpp components.
This class is of concern to those wishing to extend log4cpp.
Definition at line 32 of file LoggingEve... | https://docs.ros.org/en/indigo/api/log4cpp/html/structlog4cpp_1_1LoggingEvent.html | CC-MAIN-2022-27 | refinedweb | 196 | 54.29 |
public class hello { public static void main(String args[]) { System.out.print("hello world\n"); } }or 5 rows of useless stuff... public static void main?! are we joking or what?! to make a white "hello word" appear on the screen?! any plain language should handle this with a single line of code as similar as possible ... | http://c2.com/cgi-bin/wiki?JavaDiscussion | CC-MAIN-2016-40 | refinedweb | 395 | 55.84 |
This action might not be possible to undo. Are you sure you want to continue?
11/06/2012
text
original
1 of 39
New Product Development E91
2 of 39
New Product Development E91
3 of 39
New Product Development E91
LETTER OF THANKS DR TAHIR ALI Instructress University of Karachi. 15TH August 2009. Dear Sir, I am pleased to... | https://www.scribd.com/doc/20218782/Project-of-Marketng-New-Product-Nokia | CC-MAIN-2016-07 | refinedweb | 5,370 | 59.33 |
I am using Flask-MySQL to connect to my database in a view. The view works the first time I go to it, but when I go to it the second time it always crashes with the error:
ProgrammingError: closing a closed connection
from flask import Flask, render_template, request
from flaskext.mysql import MySQL
app = Flask(__name_... | https://codedump.io/share/cCRIVqqXI7pz/1/flask-mysql-gives-quotclosing-a-closed-connectionquot-error-the-second-time-a-view-runs | CC-MAIN-2016-44 | refinedweb | 305 | 53.88 |
Earlier in the week we charted the evolution of Fedspeak from Bernanke to Yellen. In the process, we needed a quick and easy way to grab the text from a collection of FOMC statements. To do this we made use of the Python library BeautifulSoup, which you might remember from our post on SIC code lookup. The following fun... | https://mktstk.com/2015/03/20/how-to-download-fomc-statements/ | CC-MAIN-2018-17 | refinedweb | 426 | 54.83 |
NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.
Project Help and Ideas » CPU/GPU Temp Monitor
I've decided to move this discussion to here, because where I am at is beyond the scope of the original post.
What I have is the MCU setup to display my tempe... | http://www.nerdkits.com/forum/thread/852/ | CC-MAIN-2018-13 | refinedweb | 1,763 | 59.94 |
ipld-garbageipld-garbage
Generate garbage objects conformant with the IPLD Data Model. Useful for fuzzing.
Based on substack's "garbage".
APIAPI
garbage(count = 200, options)
Where
count determines the approximate target number of bytes a garbage object should consume. And
options allows for a
weight object that allows... | https://www.npmjs.com/package/ipld-garbage | CC-MAIN-2022-33 | refinedweb | 363 | 63.59 |
This action might not be possible to undo. Are you sure you want to continue?
) Jump to: navigation, search An example of a Bidding fee auction An online auction is an auction which is held over the internet. Online auctions come in many different formats, but most popularly they are ascending English a uctions, descen... | https://www.scribd.com/document/92364696/b2c-Online-Auction | CC-MAIN-2016-30 | refinedweb | 1,791 | 64.1 |
NetUserAdd function
The NetUserAdd function adds a user account and assigns a password and privilege level.
Syntax
NET_API_STATUS NET_API_FUNCTION NetUserAdd( LPCWSTR servername, DWORD level, LPBYTE buf, LPDWORD parm_err );
Parameters
servername
Pointer to a constant string that specifies the DNS or NetBIOS name of the... | https://docs.microsoft.com/en-us/windows/win32/api/lmaccess/nf-lmaccess-netuseradd | CC-MAIN-2020-05 | refinedweb | 500 | 51.44 |
As time goes by, some parts of the big project I am working on are translated to .NET from native C++. One of the first modules that was translated is a lower level module that should be used by an unmanaged code application. This raised an interesting problem. The lower level library uses Interop to wrap itself in the... | http://www.codeproject.com/KB/COM/InteropEvents.aspx | crawl-002 | refinedweb | 1,109 | 55.54 |
.
One of the easiest performance traps when using WCF services is constant creation of new client proxies when accessing those services. In WSE land, this was common place:
MyProxy prox = new MyProxy();prox.CallServiceMethod();
For example, you might have a class with some instance methods, and in each method, instanti... | http://weblogs.asp.net/pglavich/archive/2007/04.aspx | CC-MAIN-2013-20 | refinedweb | 1,651 | 52.49 |
This is a most frequently asked java interview question. The answer is No, interface cannot have constructors. In this post we will discuss why constructors are not allowed in interface?
As we know that all the methods in interface are public abstract by default which means the method implementation cannot be provided ... | http://beginnersbook.com/2013/12/java-constructor-in-interface/ | CC-MAIN-2016-50 | refinedweb | 256 | 62.27 |
How do you remove the bedrock layer ? can't find a way to do it...
Oh, and there should be a way to go back on the buttons because it's annoying to click 100's of times because you missed the right block
-
- DarkVarano
- Registered Member
- Member for 6 years, 10 months, and 27 days
Last active Sun, Feb, 17 2013 09:01:... | http://www.minecraftforum.net/members/DarkVarano/posts | CC-MAIN-2017-47 | refinedweb | 1,514 | 50.73 |
Today we continue with the IMAP/S of LFCS, by configuring Dovecot.
Dovecot is an open source IMAP / POP3 server written with security in mind. It can be installed on CentOS via the dovecot package.
Inside the
/etc/dovecot.conf file you have to add / edit some settings:
The above also include the secure versions of IMAP... | http://chousensha.github.io/blog/2018/02/19/lfcs-prep-configure-an-imap-service/ | CC-MAIN-2019-09 | refinedweb | 160 | 64.41 |
How to create .jar or .aar file for porting java to c# Android bindings library (xamarin) project in android studio?
I had been tried dozen of times creating jar and aar files for android java library to c# xamarin , but the generated dll has no class and namespace, i changed many build action like EmbededJar, InputJar... | http://quabr.com/53212233/how-to-create-jar-or-aar-file-for-porting-java-to-c-android-bindings-library | CC-MAIN-2018-51 | refinedweb | 423 | 65.01 |
Jim Fulton wrote: > Abstractly, namespace.recipe.foo is appealing except for the directory > management issue. But the directory management issue is a significant one. And it is a technical one, so I think it should be fixed technically, in setuptools, instead of by bending our usage pattern around it. > Maybe not for ... | https://mail.python.org/pipermail/distutils-sig/2007-February/007250.html | CC-MAIN-2017-30 | refinedweb | 379 | 70.53 |
prometheus ~master
Prometheus collectors and metrics
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
Prometheus for D
This library helps you expose your metrics in a Prometheus compatible format. The core... | https://code.dlang.org/packages/prometheus/~master | CC-MAIN-2022-40 | refinedweb | 223 | 52.36 |
Hello -
I have been going through the C++ tutorial about classes. I decided to try a simple program to practice. The program asks the users for a cook time and says if the cooking worked or not depending on if the time entered is positive. I am getting an error that I can't figure out when I try to compile. The error s... | http://cboard.cprogramming.com/cplusplus-programming/147100-noob-question-about-classes.html | CC-MAIN-2015-35 | refinedweb | 186 | 59.4 |
Recently, I've faced the problem to import the European Union thesaurus, Eurovoc, into cubicweb using the SKOS cube. Eurovoc doesn't follow the SKOS data model and I'll show here how I managed to adapt Eurovoc to fit in SKOS.
This article is in two parts:
- this is the first part where I introduce what a thesaurus is a... | https://www.logilab.org/blogentry/6779464 | CC-MAIN-2019-35 | refinedweb | 836 | 61.06 |
08 June 2012 09:45 [Source: ICIS news]
Correction: In the ICIS story headlined "?xml:namespace>
SINGAPORE (ICIS)--South Korea's Hanwha Chemical has shut its 300,000 tonne/year ethylene-based polyvinyl chloride (PVC) plant at
The plant was taken off line on 8 June and will be restarted on 23 June, the source said.
The p... | http://www.icis.com/Articles/2012/06/08/9567451/corrected-s-koreas-hanwha-chemical-shuts-ningbo-pvc-plant.html | CC-MAIN-2015-22 | refinedweb | 145 | 66.57 |
On Mon, 14 May 2001, H. Peter Anvin wrote:> > LILO uses BIOS, for fsck sake. It couldn't care less for device numbers> > on the kernel side. Ask Andries how much do they have in common with> > BIOS drive numbers.> > > > That's not the issue. LILO takes whatever you pass to root= and converts> it to a device number at /... | https://lkml.org/lkml/2001/5/14/173 | CC-MAIN-2018-43 | refinedweb | 137 | 77.74 |
Pardon me for flogging a dead horse here, but I'm trying to understand as clearly as possible some issues pertaining to the instantiation of objects.
Firstly, have I correctly analyzed the functions and uses of each of the various syntaxes related to instantiating objects? Please don't flame me, saying "why don't I rea... | https://www.daniweb.com/programming/software-development/threads/170144/instantiation-and-arrays-structures-really-objects | CC-MAIN-2017-43 | refinedweb | 553 | 51.89 |
Examples of use:
- In educational research: Suppose you want to investigate the impact of an instructional method when tasks of varied difficulty are assigned to students. You randomly distribute your students to three groups and implement the instructional method differently for each group: group-1: no tasks at all, g... | http://pytolearn.csd.auth.gr/d1-hyptest/12/anova-one.html | CC-MAIN-2022-05 | refinedweb | 788 | 53.58 |
- .11 The shared Type Qualifier
We already got acquainted with shared in § 13.3 on page 397. To the type system, shared indicates that several threads have access to a piece of data. The compiler acknowledges that reality by restricting operations on shared data and by generating special code for the accepted operation... | http://www.informit.com/articles/article.aspx?p=1609144&seqNum=11 | CC-MAIN-2017-13 | refinedweb | 637 | 53.1 |
$$\ $$\ $$\ $$\ $$$\ $$ | $$ | $$ | $$$$\ $$ | $$$$$$\ $$$$$$\ $$$$$$\ $$$$$$\ $$$$$$$\ $$$$$$$\ $$$$$$\$$$$\ $$$$$$\ $$ $$\$$ |$$ __$$\ $$ __$$\ \____$$\\_$$ _| $$ _____|$$ __$$\ $$ _$$ _$$\ $$ __$$\ $$ \$$$$ |$$ / $$ |$$ / $$ | $$$$$$$ | $$ | $$ / $$ | $$ | $$ / $$ / $$ |$$$$$$$$ | $$ |\$$$ |$$ | $$ |$$ | $$ |$$ __$$... | http://nopatch.me/2014/12/21/exploit-exercises-protostar-stack5/ | CC-MAIN-2018-47 | refinedweb | 953 | 70.13 |
Community PluginView plugin on GitHub
gatsby-plugin-goober
A Gatsby plugin for 🥜goober with auto pragma config and built-in server-side rendering support.
Install
npm install --save goober gatsby-plugin-goober
How to use
Edit
gatsby-config.js
module.exports = { plugins: [`gatsby-plugin-goober`] };
And now you can crea... | https://www.gatsbyjs.com/plugins/gatsby-plugin-goober/ | CC-MAIN-2022-40 | refinedweb | 157 | 55.95 |
Hide Forgot
Note: I've also sent this bug the bug-gdb mailing list.
Reverting to the version of GDB in RH5.2 solves the problem.
GDB can't seem to resolve calls to member functions of
template classes in a "print" command. This used to work,
but now gives the error message:
Cannot resolve method ... to any overloaded i... | https://partner-bugzilla.redhat.com/show_bug.cgi?id=7497 | CC-MAIN-2020-16 | refinedweb | 351 | 77.33 |
No it's not gone yet, but I'm still digging. THX
No it's not gone yet, but I'm still digging. THX
thank you, I fixed tuna with Tuna. Here is class Tuna:
package Tuna;
public class Tuna {
Hello, how can I fix this bug:
Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - cannot find symbol
s... | http://www.javaprogrammingforums.com/search.php?s=de21115c4e0fb6f0e550a2cb6d113ed9&searchid=1725070 | CC-MAIN-2015-35 | refinedweb | 101 | 76.62 |
5. Hardware timers¶
Timers can be used for a great variety of tasks, calling a function periodically, counting events, and generating a PWM signal are among the most common use cases. Each timer consists of two 16-bit channels and this channels can be tied together to form one 32-bit timer. The operating mode needs to ... | https://docs.micropython.org/en/latest/wipy/tutorial/timer.html | CC-MAIN-2022-21 | refinedweb | 379 | 50.43 |
Just discovered this and thought I would share
Ever site (web) within a site collection has a property called Author which is set to the account that created the site (Wether it be via the SharePoint UI, or the OM). To the best of my knowledge, this is not exposed in the UI. So for example, if I’m logged in a “John Doe... | https://blog.krichie.com/2008/07/24/wherefore-art-thou-author/?shared=email&msg=fail | CC-MAIN-2021-49 | refinedweb | 596 | 64.3 |
Free "1000 Java Tips" eBook is here! It is huge collection of big and small Java
programming articles and tips. Please take your copy here.
Take your copy of free "Java Technology Screensaver"!.
JavaFAQ Home » Story by Dr. Kabutz
Welcome to the 17th issue of "The Java(tm) Specialists'
Newsletter", after a few very busy... | http://javafaq.nu/java-article702.html | CC-MAIN-2017-30 | refinedweb | 1,264 | 55.64 |
One of the advantages of being a developer making your own games is that you have full control over the outcome. You control how a certain element functions or how an enemy character behaves. You can even control the (in-game) world and play around with the physical rules like gravity.
With this kind of freedom though,... | https://jap.alekhin.io/setup-widget-tree-flame-flutter-game | CC-MAIN-2020-24 | refinedweb | 1,040 | 58.99 |
Ville Laurikari schrieb:
I'm not on the autoconf list so excuse me for possibly repeating stuff that has been on the list already. Also, if you want me to reply, CC your list replies to me as well.
there was nothing so far, and even the initial post included your address, so it is most likely all responders will as wel... | http://lists.gnu.org/archive/html/autoconf/2003-01/msg00012.html | CC-MAIN-2015-27 | refinedweb | 532 | 57.07 |
Pressure sensor - arduino low memory (SOLVED)
When I compile pressure sensor sketch I get below error in Arduino IDE.
I can add it to Vera but it only works for few hours (3-4) and then stops responding. I tried disabling DEBUG but that didn't help (it did reduce storage space).
Is there anything else to do in order to... | https://forum.mysensors.org/topic/631/pressure-sensor-arduino-low-memory-solved/10 | CC-MAIN-2019-51 | refinedweb | 1,246 | 59.4 |
Hi,
I am getting the following error when trying to submit a project from Eclipse into the UI5 repository:
Problems during synchronization
Error when updating index for UI5 repository Z.ABC... SAPUI5 compon.xyz... (case ignored) resides in multiple (2) SAPUI5 reposit. SAPUI5 component ... (case ignored) is contained in... | https://answers.sap.com/questions/150344/sapui5-eclipse-synchronization-error-multiple-comp.html | CC-MAIN-2018-43 | refinedweb | 179 | 51.95 |
Struts Core Java section and JSP Tutorial Section?
Now, get ready for Tomcat and JSP... of downloading and Installing is easy and you can learn the process very
i need a quick response about array and string...
i need a quick response about array and string... how can i make a dictionary type using array code in java ... | http://www.roseindia.net/tutorialhelp/comment/99854 | CC-MAIN-2014-23 | refinedweb | 2,897 | 73.98 |
Interview questions are a necessary part of the selection process of any company or organization. To face the interviewer, one needs to be fully prepared for the interview questions. In this C++ interview questions tutorial, you will look at the most commonly asked C++ interview questions that one should know.
In this ... | https://www.simplilearn.com/tutorials/cpp-tutorial/cpp-interview-questions?source=sl_frs_nav_playlist_video_clicked | CC-MAIN-2022-05 | refinedweb | 1,909 | 65.62 |
Intro: ArVolt!
Finally: an Arduino Voltmeter!
NOTE:
this is 100% OPEN SOURCE. Make money on it, for all I care. But please try not to do the exact copy. You could, but please don't.
Customize, too!
Ok. Enough babbling. Lets get to work.
YOU WILL NEED:
1 LCD
an Arduino
Jumpers, a lot (20-25)
A-B Usb cable
Something to m... | https://www.instructables.com/id/ArVolt/ | CC-MAIN-2018-43 | refinedweb | 331 | 79.67 |
Quick
Tomcat Quick Start Guide
This tutorial is a quick reference of starting development application using JSP, Servlets and JDBC technologies. In this quick and very
...;java QuickSort
RoseIndia
Quick Sort... to sort integer values of an array using quick
sort.
Quick sort algorithm
real+page - Java Beginners
Java -... | http://roseindia.net/tutorialhelp/comment/2544 | CC-MAIN-2014-10 | refinedweb | 2,103 | 55.34 |
Closed Bug 1326134 Opened 4 years ago Closed 4 years ago
Record profiling-relevant information in profiles
Categories
(Core :: Gecko Profiler, defect)
Tracking
()
mozilla53
People
(Reporter: sfink, Assigned: sfink)
References
(Blocks 1 open bug)
Details
Attachments
(4 files, 1 obsolete file)
It would be nice if profile... | https://bugzilla.mozilla.org/show_bug.cgi?id=1326134 | CC-MAIN-2020-34 | refinedweb | 1,103 | 64.91 |
bugzilla.mozilla.org has resumed normal operation. Attachments prior to 2014 will be unavailable for a few days. This is tracked in Bug 1475801.
Please report any other irregularities here.
Please report any other irregularities here.
TM: crash in js
_Fill Property Cache
RESOLVED FIXED
Status
()
▸
JavaScript Engine
Peo... | https://bugzilla.mozilla.org/show_bug.cgi?id=449627 | CC-MAIN-2018-30 | refinedweb | 631 | 58.58 |
shards alternatives and similar packages
Based on the "ORM and Datamapping" category.
Alternatively, view shards alternatives based on common mentions on social networks and blogs.
ecto10.0 9.2 shards VS ectoA toolkit for data mapping and language integrated query.
eredis9.7 0.0 shards VS eredisErlang Redis client
post... | https://elixir.libhunt.com/shards-alternatives | CC-MAIN-2021-43 | refinedweb | 1,046 | 52.56 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.