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 |
|---|---|---|---|---|---|
Difference between revisions of "Code snippets"
Revision as of 14:08, 13",ScriptWorkbench())
A typical module file
This is an example of a main module file, containing everything your module does. It is the Scripts.py file invoked by the previous example. You can have all your custom commands here.
import FreeCAD, Free... | https://wiki.freecadweb.org/index.php?title=Code_snippets&diff=prev&oldid=120 | CC-MAIN-2020-50 | refinedweb | 645 | 65.22 |
I'm trying ti use @RunAs("") annotation so as i can call a secured ejb from other one (TestEJBBean)
I've created an ejb and add this
@DeclareRoles("user")
@Stateless
@RunAs("user")
public class TestEJBBean implements ITestBean {
...
}
but i'm getting an exception The RunAs role "user" is not mapped to a principal. I tr... | https://developer.jboss.org/thread/230533 | CC-MAIN-2018-39 | refinedweb | 112 | 59.3 |
Stateless Session Bean Design Question. (1 messages)Hello, I am implementing a stateless session bean EJB 2.0 on WL 8.1. I am new to EJB, so my understanding is limited. This is more of a design question. I have a session bean, encapsulating a service. public class MySessionBean extends GenericSessionBean{ private MySe... | http://www.theserverside.com/discussions/thread.tss?thread_id=48541 | CC-MAIN-2017-09 | refinedweb | 390 | 68.36 |
by Re Lai
Learn how to take advantage of new features in JSF 2.0 and integrate Flex and JavaFX into your JSF applications
Published March 2011
The JavaServer Faces (JSF) 2.0 specification builds on the success and lessons from the last six years of usage of the JSF 1.0 specification. It takes inspiration from Seam and ... | http://www.oracle.com/technetwork/java/lai-flex-javafx-jsf-301278.html | CC-MAIN-2014-49 | refinedweb | 2,738 | 51.75 |
Basics of "stdio.h" in C
Get FREE domain for 1st year and build your brand new site
We all know that C is a general-purpose and Procedural programming language. And for most of us, It is the entry point or basic to learn other programming languages. In this article we'll discuss a bit about the Standard Header Library ... | https://iq.opengenus.org/basics-of-stdio-h/ | CC-MAIN-2021-43 | refinedweb | 1,073 | 65.93 |
Vuebersicht
Inspired by Üebersicht, built with Vue, Electron, & TypeScript.
Add custom widgets to your desktop background, built as Vue single-file components, either in TypeScript or JavaScript.
Comes with an Üebersicht-like menu
...and Chromium / Vue Dev Tools
Widgets
Widgets are automatically imported from the
./src... | https://vuejsexamples.com/a-reimagining-of-ubersicht-built-with-vue/ | CC-MAIN-2021-10 | refinedweb | 285 | 56.15 |
SPIlib is a thin wrapper to interact with SPI devices using the Linux “SPIdev” interface [1]
See the accelerometer example in the examples directory.
Usage is quite simple. First you have to build a Transfer:
from spi import spi_transfer, SPIDev transfer, buf, _ = spi_transfer(chr(0x1b), readlen=0)
This prepares a tran... | https://pypi.org/project/SPIlib/ | CC-MAIN-2017-09 | refinedweb | 187 | 51.28 |
Release 0.5.7 Support for Retina view tests Fix issue #105 Using CACurrentMediaTime for GHRunForInterval so as to not interfere with swizzled NSDate methods. Release 0.4.29 to 0.5.6 TODO Release 0.4.29 Changing paths to use iOS instead of iPhone Rebuilding iOS project using XCode 4 Release 0.4.28 Building as GHUnitIOS.... | https://cocoapods.org/pods/GHUnitOSX/changelog | CC-MAIN-2018-09 | refinedweb | 1,163 | 54.22 |
Closed Bug 463417 Opened 13 years ago Closed 12 years ago
import win32 nsinstall source into mozilla-central, build by default on win32
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
mozilla1.9.2a1
People
(Reporter: ted, Assigned: benjamin)
Details
Attachments
(2 files)
We currently ship ns... | https://bugzilla.mozilla.org/show_bug.cgi?id=463417 | CC-MAIN-2021-25 | refinedweb | 548 | 62.38 |
Summary: in this tutorial, you’ll learn how to use Pandas fillna() function to fill in NaN value positions with custom value.
Replace NaN with custom value
While you can filter out NaN values out of Pandas data structures, values that could be relevant can also be discarded along with the process.
Rather than get rid o... | https://monkeybeanonline.com/pandas-fillna/ | CC-MAIN-2022-27 | refinedweb | 543 | 67.76 |
Using Swift Scripts with Xcode
Learn how to run Swift scripts as part of the Xcode build phase, giving you control to configure or validate your app while building your project.
Version
- Swift 5.5, iOS 15, Xcode 13
Building apps with Swift is a lot of fun — and it’s also fun to use it in the build process itself.
Xcod... | https://www.raywenderlich.com/25816315-using-swift-scripts-with-xcode?utm_campaign=Mobile%20Developers%20Cafe%27s%20weekly%20newsletter&utm_medium=email&utm_source=Revue%20newsletter | CC-MAIN-2022-21 | refinedweb | 3,517 | 57.77 |
1
Hi everyone I have a issue where I have written the entire program but couple little tweaks are needed for me to get the program done.
I have my super class here "Pet". I have created couple objects in Main, "myRobin" , "myCow", "myBlackMamba" and passed some arguments to them. Im now trying to send those parameters ... | https://www.daniweb.com/programming/software-development/threads/446528/attempting-to-print-object-to-the-tostring-method-and-send-all-the-argument | CC-MAIN-2018-30 | refinedweb | 556 | 57.91 |
Vrije Universiteit Brussel Faculteit Wetenschappen Departement Informatica en Toegepaste Informatica
- Joella Stevens
- 1 years ago
- Views:
Transcription
1 Vrije Universiteit Brussel Faculteit Wetenschappen Departement Informatica en Toegepaste Informatica The use of Semantic Mappings and Ontologies to enrich Virtual ... | http://docplayer.net/988168-Vrije-universiteit-brussel-faculteit-wetenschappen-departement-informatica-en-toegepaste-informatica.html | CC-MAIN-2016-44 | refinedweb | 20,952 | 53.1 |
C and C++ are probably the only viable languages for true cross-platform development.
- Introduction
- The Salami Method
- Beautiful Symmetry
- Write Once, Run Anywhere… Not!
- Meta
Introduction
Over the past several years, I worked on several core C++ libraries that needed to be integrated into multiple platforms. The... | http://videocortex.io/2017/salami-method/ | CC-MAIN-2020-16 | refinedweb | 3,593 | 55.54 |
Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
3 years, 1 month ago.
How can I get the TCPSocketserver to work?
Hi i can't seem to get a simple socket server to work:
This is my code:
#include "mbed.h" #i... | https://os.mbed.com/questions/82557/How-can-I-get-the-TCPSocketserver-to-wor/ | CC-MAIN-2021-49 | refinedweb | 494 | 61.33 |
int p_to_w ( SS_XYZ *pt, int screen_x, int screen_y )
SS_XYZ *pt; // address of 3D point to receive world point
int screen_x; // screen x coordinate
int screen_y; // screen y coordinate
Synopsis
#include "silver.h"
The p_to_w function computes a 3D world coordinate based on the screen coordinates screen_x and screen_y ... | http://silverscreen.com/p_to_w.htm | CC-MAIN-2021-21 | refinedweb | 176 | 62.17 |
Okay so now you have Tomcat integrated with Eclipse. When you integrate with Eclipse, Eclipse keeps what's known as a "metadata" copy of Tomcat information.
The reason for this is apparent if you were using a remote Tomcat that you didn't have the configuration files on some network share that you could access. Tomcat ... | http://ramenboy.blogspot.com/2012/11/getting-examples-and-your-first-tomcat.html | CC-MAIN-2018-13 | refinedweb | 2,123 | 72.46 |
high specificity spread all throughout your stylesheet. However, there are a few problems I have with the syntax that can cause issues in production as well as cause confusion for developers. I prefer to use a slightly tweaked version of the syntax instead. I call it ABEM (Atomic Block Element Modifier):
[a/m/o]-block... | https://css-tricks.com/abem-useful-adaptation-bem/ | CC-MAIN-2019-04 | refinedweb | 5,031 | 61.26 |
,
JSP-related discussion should be kept here.
EJB-related discussion should be kept here.
Struts-related discussion should be kept here.
Hibernate-related thread
Compilation/deployment-related discussion should be kept here.
Hibernate-related discussion should be kept here.
J2EE servers integration-related discussion s... | https://intellij-support.jetbrains.com/hc/en-us/community/posts/206912495-Feedback-on-enterprise-application-development-is-needed-?page=1 | CC-MAIN-2020-40 | refinedweb | 1,286 | 64.71 |
Errata for Domain-Driven Design Using Naked Objects
The latest version of the book is P1.0, released almost (27-Apr-10)
Paper page: 33
Unless I am misunderstanding (hand coding in Netbeans 6.8)
book shows nakedobjects.properties as
nakedobjects.services.prefix = com.pragprog.dhnako.carserv.dom
should read
nakedobjects.... | https://pragprog.com/titles/dhnako/errata | CC-MAIN-2016-50 | refinedweb | 490 | 59.4 |
desktop wallpaper to one of six pre-defined selections?
-- SB
Hey, SB. You know, when the Scripting Guy who writes this column first sat down to tackle this problem he thought he had a really cool solution for you. Recently this Scripting Guy read about Johannes Trithemius, a Benedictine monk from the 1400s who was on... | http://www.microsoft.com/technet/scriptcenter/resources/qanda/jan07/hey0118.mspx | crawl-002 | refinedweb | 1,012 | 58.11 |
At the latest London Unity User Group, the evening kicked off with a beginner talk by Jasper Stocker, and was followed by ‘Open Mic’ talks by myself — demoing a quick Space Shooter demo I made in Unity — and LUUG regular Quickfingers, showing off a game he made for recent Ludum Dare 48 game jam. The headline act was Ri... | https://blogs.unity3d.com/ru/2011/09/01/london-unity-user-group-4-all-your-unity-are-belong-to-us/ | CC-MAIN-2019-35 | refinedweb | 295 | 67.89 |
OpenCV Error: LNK1181: cannot open input file 'opencv_core2410.dll.lib'
- Todd Morehouse
I am new to the Qt ide, and am still learning C++. So I apologize in advance if I do not quite understand something.
I am trying to setup OpenCV to use inside the Qt IDE for my senior project.
I have gone through the grueling proce... | https://forum.qt.io/topic/52741/opencv-error-lnk1181-cannot-open-input-file-opencv_core2410-dll-lib | CC-MAIN-2018-30 | refinedweb | 343 | 67.65 |
Inherits QWidget and QRangeControl.
QSpinBox allows the user to choose a value either by clicking the up/down buttons to increase/decrease the value currently displayed or by typing the value directly into the spin box. If the value is entered directly into the spin box, Enter (or Return) must be pressed to apply the n... | http://www.linuxmanpages.com/man3/qspinbox.3qt.php | crawl-003 | refinedweb | 438 | 56.66 |
What is a Multimethod's Identity?
The key question with multimethods is one of identity. A multimethod is a collection of methods, but when should two piles of identically-named methods be a single method and when should they be separate?
Other ways to phrase the question:
- When do two
defs with the same name collide ... | http://magpie.stuffwithstuff.com/design-questions/what-is-a-multimethods-identity.html | CC-MAIN-2017-30 | refinedweb | 1,394 | 67.25 |
I managed to download and install the .deb package from Album Cover Art Downloader. In Synaptic I can se that albumart is installed. But I can't find the application on any menu. How can I run it?
When I typed sudo albumart-qt in the terminal I got the following lines:
Traceback (most recent call last):
File "/usr/bin/... | http://forums.linuxmint.com/viewtopic.php?f=47&t=9996 | CC-MAIN-2015-18 | refinedweb | 114 | 52.26 |
Sometimes..
22 thoughts on “When You Need A Scope, You Need A Scope”
This is funny. I am just sitting down to troubleshoot an i2c issue. I turned on my scope and then checked my email to find this. I call an oscilloscope a time microscope — which is most certainly what it is. Almost the equivalent of “put a printf in t... | https://hackaday.com/2016/08/04/when-you-need-a-scope-you-need-a-scope/ | CC-MAIN-2019-35 | refinedweb | 2,031 | 70.53 |
This lesson teaches you to
- Subclass a View
- Define Custom Attributes
- Apply Custom Attributes to a View
- Add Properties and Events
- Design For Accessibility
You should also read
Try it out
CustomView.zip
A well-designed custom view is much like any other well-designed class. It encapsulates a specific set of func... | http://developer.android.com/training/custom-views/create-view.html | CC-MAIN-2015-48 | refinedweb | 1,227 | 53.51 |
21 March 2012 11:18 [Source: ICIS news]
SINGAPORE (ICIS)--Taiwanese producer Nan Ya Plastics will bring forward a turnaround at its No 4 720,000 tonne/year monoethylene glycol (MEG) unit to late April from an original date of late June, a company source said on Wednesday.
“We decided to bring forward this turnaround to... | http://www.icis.com/Articles/2012/03/21/9543508/taiwans-nan-ya-to-bring-forward-no-4-meg-unit-turnaround-to-april.html | CC-MAIN-2014-10 | refinedweb | 122 | 66.07 |
Your Code Sunk My Battleship!
Starting Out:
We thought we had come up with a cool concept, and I knew it wouldn't be that difficult to build. After calling our dev-team into the office I started on it, by myself in my apartment. My goal was to have a single method to send any type of message that would then be picked u... | https://channel9.msdn.com/coding4fun/articles/Inherited-Message-Distributing | CC-MAIN-2017-51 | refinedweb | 1,713 | 57.57 |
CR There was a discussion a while ago, about using W3C icons.
LK Since it deals with branding can not modify the W3C icons.
CR You can not have the two icons together as one.
LK Right. If they are on the same page that's fine, but can't join them.
Resolved: You can not modify W3C icons but may use them along side a log... | http://www.w3.org/WAI/ER/IG/2000/08/21-minutes.html | CC-MAIN-2015-22 | refinedweb | 1,206 | 86.5 |
How. In the Oracle database we will be having a table Employee Details with three columns Employee_ID, FirstName and LastName, having more than 10,000 data. Based on the Employee_ID we can search for the employees using this Silverlight search page.
Steps Involved:
Creating a Silverlight Application:
I. Open Visual Stu... | https://www.thetechplatform.com/post/how-to-connect-to-oracle-database-using-wcf-in-silverlight-1 | CC-MAIN-2022-21 | refinedweb | 230 | 52.56 |
Today, I conclude my story to your myths about C++. These myths are around function parameters, the initialisation of class members, and pointer versus references.
When a function takes its parameter and doesn't want to modify it, you have two options.
This was the correctness perspective, but what can be said about th... | https://www.modernescpp.com/index.php/more-myths-of-my-blog-readers | CC-MAIN-2020-50 | refinedweb | 1,003 | 57.27 |
On Tue, 22 Sep 2009, Joe Perches wrote:> On Tue, 2009-09-22 at 10:38 -0700, Sage Weil wrote:> > These headers describe the types used to exchange messages between the> > Ceph client and various servers. All types are little-endian and> > packed.> []> > diff --git a/fs/ceph/ceph_fs.h b/fs/ceph/ceph_fs.h> > new file mode... | http://lkml.org/lkml/2009/9/22/442 | CC-MAIN-2015-22 | refinedweb | 155 | 57.16 |
TestNG Tutorial: This post, we are going to share the complete TestNG tutorials for both fresher and experienced testers. TestNG is an automation testing framework where NG stands for “Next Generation.”
It is an open-source testing framework, and also it is inspired by the JUnit and NUnit. But TestNG has introduced som... | https://www.softwaretestingo.com/testng-tutorial/ | CC-MAIN-2019-51 | refinedweb | 2,306 | 62.17 |
When new Python syntax is introduced, the usual approach will be to give both specific examples and general templates. In general templates for Python syntax the typeface indicates the the category of each part:
A more complete example of using this typography with several parts would be a description of an assignment ... | http://anh.cs.luc.edu/python/hands-on/3.1/handsonHtml/functions.html | CC-MAIN-2016-22 | refinedweb | 3,658 | 55.34 |
0
So I've been trying to make a VERY simple calculator program, but I tried so many things, and all of my methods failed. I've been at this for weeks, and I'm pretty frustrated up to this point. Nothing calls back on the entry box correctly, and although at certain points I was able to make numbers appear on the entry ... | https://www.daniweb.com/programming/software-development/threads/90614/completely-lost-with-entry-widget | CC-MAIN-2017-43 | refinedweb | 239 | 53.88 |
code not working properly
code not working properly protected void doPost(HttpServletRequest...);
String target="jsp/hrms_default.jsp";
String action... from the jsp page */
System.out.println("inside action_submit
output not coming properly - JSP-Servlet
Here i am showing the source code of above jsp...output not comi... | http://www.roseindia.net/tutorialhelp/comment/36592 | CC-MAIN-2014-49 | refinedweb | 1,187 | 66.64 |
Lecture 2 – The Gospel of John, part 2
Card Set Information
Author:
crunchybunnies27
ID:
150770
Filename:
Lecture 2 – The Gospel of John, part 2
Updated:
2012-04-28 19:18:04
VLI John Gospel
Folders:
Description:
Lecture 2 – The Gospel of John, part 2
Show Answers:
List (in one phrase each) the main story lines of the G... | https://www.freezingblue.com/flashcards/print_preview.cgi?cardsetID=150770 | CC-MAIN-2016-44 | refinedweb | 1,054 | 69.52 |
Visiting the Microsoft campus in Redmond, Washington in August, I asked a couple of developers what the difference is between using the thread class and using the thread pool. The answer I got was that there is no real difference. The thread pool is easier because it manages thread objects for you; when you create a th... | http://www.informit.com/articles/article.aspx?p=25869 | CC-MAIN-2018-17 | refinedweb | 4,352 | 64.61 |
Hello,
I’m trying to write a utility to run an external process and capture
it’s stderr. It seems that IO.popen only lets me read the stdout. Any
tips for how to read stderr?
Mike
snippet of code…
def process_file(filename)
@filename = filename
puts "Processing: " + @filename
cmdline = "ffmpeg -i " + @filename
ffmpeg =... | https://www.ruby-forum.com/t/using-io-popen-to-capture-stderr/82155 | CC-MAIN-2021-43 | refinedweb | 107 | 78.45 |
#include "cache.h"
#include "sha1-lookup.h"
static uint32_t take2(const unsigned char *sha1)
{
return ((sha1[0] << 8) | sha1[1]);
}
/*
* Conventional binary search loop looks like this:
*
* do {
* int mi = lo + (hi - lo) / 2;
* int cmp = "entry pointed at by mi" minus "target";
* if (!cmp)
* return (mi is the wanted on... | https://gitlab.com/pclouds/git/blame/5c2b4ca06ee2803bd5329cb0ccfc12cfaa40afe7/sha1-lookup.c | CC-MAIN-2019-35 | refinedweb | 498 | 80.04 |
Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
@m_adam Thank you for your answer. C++ documentation have a "Example" ... | https://plugincafe.maxon.net/user/jmelon | CC-MAIN-2022-27 | refinedweb | 489 | 60.72 |
Bummer! This is just a preview. You need to be signed in with a Pro account to view the entire video.
Build Fast and Beautiful Native Apps with Web Tech Using PhoneGap and TopCoat56:47 with Brian LeRoux
Everyone knows you can build an app for many platforms using HTML, CSS, and JavaScript but the jury has been out as t... | https://teamtreehouse.com/library/build-fast-and-beautiful-native-apps-with-web-tech-using-phonegap-and-topcoat | CC-MAIN-2018-17 | refinedweb | 11,398 | 83.15 |
I need to calculate the average of values that are between 2 indices. Lets say my indices are 3 and 10, and i would like to sum up all the values between them and divide by the number of values.
Easiest way would be just using a for loop starting from 3, going until 10, summing 'em up, and dividing. This seems like a r... | https://codedump.io/share/Y5z5K7OBd3ni/1/numpy--calculating-the-average-of-values-between-two-indices | CC-MAIN-2016-44 | refinedweb | 175 | 67.59 |
A set of plugins for setuptools_scm to enable better version tracking
Project description
A set of plugins for setuptools_scm to enable better version tracking
Installation
pip install pygitversion
Usage
The usage is almost exactly the same as using setuptools_scm, so follow those guidelines. This package merely adds a... | https://pypi.org/project/pygitversion/ | CC-MAIN-2022-27 | refinedweb | 220 | 51.75 |
Extract and count countries and cities (+their synonyms) from text
Project description
flashgeotext :zap::earth_africa:
Extract and count countries and cities (+their synonyms) from text, like GeoText on steroids using FlashText, a Aho-Corasick implementation. Flashgeotext is a fast, batteries-included (and BYOD) and n... | https://pypi.org/project/flashgeotext/0.3.0/ | CC-MAIN-2021-25 | refinedweb | 255 | 53.81 |
, implement the valueBound() and valueUnBound() method. The valueUnbound() method will
be trigger if this object being unbound (This happen when the object is being replaced or session is invalid). In here, you can get the invalid session and delete away the record from the database.
public class BoundObj implements Ht... | https://www.experts-exchange.com/questions/20285032/Question-for-coreyit.html | CC-MAIN-2018-22 | refinedweb | 107 | 51.85 |
In this post we will build a Serverless Microservice that exposes create, read, update, delete (CRUD) operations on a fully managed MongoDB NoSQL database. We will be using the newly release Lambda Layers to package the 3rd party libraries needed to integrate with MongoDB. We will use Amazon API Gateway to create, mana... | https://hackernoon.com/building-a-serverless-microservice-crud-restful-api-with-mongodb-6e0316efe280 | CC-MAIN-2019-39 | refinedweb | 4,467 | 63.29 |
money 1.1.0
Python Money Class
Money class with optional CLDR-backed locale-aware formatting and an extensible currency exchange solution.
All code examples use Python 3.x.
Contents
Installation
This package is compatible with Python 2.7, 3.3, 3.4, but there are important Differences between Python versions.
pip instal... | https://pypi.python.org/pypi/money/1.1.0 | CC-MAIN-2015-27 | refinedweb | 753 | 52.66 |
Orange Widgets Reference Guide for Developers¶
Channels Definitions, Data Exchange¶
Input and output channels are defined anywhere within the __init__ function of a main widget class. The definition is used when running a widget, but also when registering your widget within Orange Canvas. Channel definitions are option... | http://orange.biolab.si/docs/latest/extend-widgets/rst/api/ | CC-MAIN-2014-10 | refinedweb | 726 | 55.13 |
Running PyTorch code on GPU - neural network programming guide
In this episode, we will learn how to use GPU and PyTorch. We will see how to use the general methods of GPU, and we will see how to apply these general techniques to train our neural networks.
Deep learning using GPU
If you haven't seen the episode about w... | https://algorithm.zone/blogs/pytorch-on-gpu-training-neural-network-with-cuda-pytorch-series-30.html | CC-MAIN-2022-27 | refinedweb | 2,156 | 67.04 |
Macro at Startup
Introduction
This documentation will explain how to set up a macro to automatically run at FreeCAD startup.
Before starting, following things shall be considered :
- Automatically running macro at startup can be considered a security risk. You should only run macro that you trust and that you previousl... | https://wiki.freecadweb.org/Macro_at_Startup | CC-MAIN-2020-50 | refinedweb | 731 | 53.51 |
Re: "pointers" in /clr
- From: beginthreadex <beginthreadex@xxxxxxxxxxx>
- Date: Wed, 16 Nov 2005 17:09:11 +0000
I really liked what you said Tom. It gives me great pause and I'll have to
think about some of the things you have said. With that, you have a
perspective that I am only starting to understand by reading you... | http://www.tech-archive.net/Archive/DotNet/microsoft.public.dotnet.languages.vc/2005-11/msg00345.html | crawl-002 | refinedweb | 1,152 | 63.19 |
The Portal Zone is closed for business
Today is my last day in Sun Portal.
This blog will no longer be active, but I would continue to blog on my old java.net blog. You can catch me here: Navaneeth Krishnan's Blog
[update] Check out the new and improved Portal Zone.
Posted at 02:45AM Mar 02, 2007 by Navaneeth Krishnan ... | http://blogs.sun.com/nav/ | crawl-002 | refinedweb | 1,490 | 54.42 |
Hi gradlebrains!
I’m working on migrating our entire build environment to Gradle; build, test, deploy, backup, restore, the whole shebang. I’m having trouble with restore of a MySQL dump.
I made the backup work like this:
task backupdb(dependsOn: 'setupBackup') << { exec { commandLine mysqldump, 'db_name', '--host=loca... | https://discuss.gradle.org/t/restore-mysql-database-dump/4509 | CC-MAIN-2018-51 | refinedweb | 223 | 52.46 |
Question :
I’d simply like to convert a base-2 binary number string into an int, something like this:
'11111111'.fromBinaryToInt() 255
Is there a way to do this in Python?
Answer #1:
You use the built-in
int function, and pass it the base of the input number, i.e.
2 for a binary number:
int('11111111', 2) 255
Here is d... | https://discuss.dizzycoding.com/convert-base-2-binary-number-string-to-int/ | CC-MAIN-2022-33 | refinedweb | 566 | 57.87 |
by blockstack
GitHub Readme.md
This document describes the high-level design and implementation of the Gaia storage system. It includes specifications for backend storage drivers and interactions between developer APIs and the Gaia service.
Developers who wish to use the Gaia storage system should see the
blockstack.js... | https://elements.heroku.com/buttons/blockstack/gaia | CC-MAIN-2021-04 | refinedweb | 3,181 | 53.41 |
Friday 26 May 2017
Martin Duhem, Guillaume Massé and Denys Shabalin
It has been a little bit more than two months since Scala Native 0.1 has been released. What’s new in Scala Native? What should you expect for future releases?
Scala Native 0.2
In April, Scala Native 0.2 was released. The main focus of this release was... | https://www.scala-lang.org/blog/2017/05/26/whats-new-scala-native.html | CC-MAIN-2021-43 | refinedweb | 1,142 | 57.37 |
The chips seem to do just fine as long as I plug them in the right order with no heat
I power on all the chips, wait a few min and they are all fine and cool to touch.
I plug in the arduino that has a different power source with a shared ground and 3 of the chips fry.
I have a bunch of 3w rgb leds with 350ma per led an... | http://forum.arduino.cc/index.php?topic=80779.msg750911 | CC-MAIN-2015-11 | refinedweb | 212 | 84.68 |
Hi,
I wonder why the training loss does not decrease?
The input image batch has the shape of: [batch_size1200*200]. The true labels are in “one hot” form: [1,0,0], [0,1,0] and [0,0,1].
I have only 5000 images, so I decided to start from transfer learning.
I loaded pretrained ResNet18 to classify my images into 3 catego... | https://discuss.pytorch.org/t/cross-entropy-loss-not-decreasing-3-category-image-classification/25223 | CC-MAIN-2022-21 | refinedweb | 307 | 62.54 |
Welcome to the Wiki and blog space of Apache Cayenne
- a powerful and developer-friendly Java Object Relational Mapping (ORM) framework. To post comments, you need a Confluence account. If you don't have one yet, signup here
.
Contents
- Website
- Cayenne FAQ
- Board Reports
- Cayenne Examples
- Release 3.0 (release un... | http://cwiki.apache.org/CAY/ | crawl-002 | refinedweb | 114 | 53.37 |
- LESS and SASS. There are some others, but I have experience with only these two. In the first part of this article I'll share with you what I don't like about preprocessors and then in the second part I'll show you how I managed to solve most of the problems that I had.
The Problems
Setup
No matter which CSS preproc... | https://code.tutsplus.com/tutorials/absurdjs-or-why-i-wrote-my-own-css-preprocessor--net-36003 | CC-MAIN-2016-50 | refinedweb | 2,845 | 66.84 |
TypeError: Error # Cannot access a property or method of a null In a loop I was disposing all the items before getting them back from the pool and. My connection problems crop up when I try to start a battle. :P TypeError: Error # Cannot access a property or method of a null object reference. TypeError: Error # cannot ... | https://sprers.eu/battle-loop-error-error-1009-null.php | CC-MAIN-2022-40 | refinedweb | 3,894 | 66.33 |
Michael HuletTreehouse Moderator 47,600 Points
Phone Numbers Print Twice
I've gotten to the part of the video where we write the
print_phone_numbers method, and for some reason, all my phone numbers print twice. Here is my version of the aforementioned method:
def print_phone_numbers puts "\nPhone Numbers\n" + ("-" * 2... | https://teamtreehouse.com/community/phone-numbers-print-twice | CC-MAIN-2020-24 | refinedweb | 533 | 62.58 |
Accessing or modifying shared objects in signal handlers can result in race conditions that can leave data in an inconsistent state. The two exceptions (C Standard, 5.1.2.3, paragraph 5) to this rule are the ability to read from and write to lock-free atomic objects and variables of type
volatile sig_atomic_t. Accessin... | https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?pageId=87152213 | CC-MAIN-2019-22 | refinedweb | 1,205 | 54.02 |
I'm trying to figure out what Catalyst has done in my project from an Illustrator comp I imported through Flash Catalyst.
I went through the process of designing my own Button component in Illustrator, and assigned the artwork as a button in Catalyst. When I look at the generated Button1.mxml file for the button, it be... | https://forums.adobe.com/thread/505425 | CC-MAIN-2018-34 | refinedweb | 201 | 62.27 |
In this tutorial, we will develop a program that can recognize objects in a real-time video stream on a built-in laptop webcam using deep learning.
Object recognition involves two main tasks:
- Object Detection (Where are the objects?): Locate objects in a photo or video frame
- Image Classification (What are the objec... | https://automaticaddison.com/real-time-object-recognition-using-a-webcam-and-deep-learning/ | CC-MAIN-2021-21 | refinedweb | 3,649 | 51.04 |
Let's begin with a little bit of theory. The idea behind the filter is to allocate a bit vector of length m, initially all set to 0, and then choose k independent hash functions, h1, h2, ..., hk, each with range [1 m]. When an element a is added to the set then the bits at positions h(a)1, h(a)2, ..., h(a)k in the bit ... | http://glowingpython.blogspot.com/2013/01/bloom-filter.html | CC-MAIN-2016-18 | refinedweb | 824 | 61.87 |
DLLs and Visual C++ run-time library behavior
When you build a Dynamic-link Library (DLL) by using Visual Studio, by default, the linker includes the Visual C++ run-time library (VCRuntime). The VCRuntime contains code required to initialize and terminate a C/C++ executable. When linked into a DLL, the VCRuntime code p... | https://learn.microsoft.com/en-us/cpp/build/run-time-library-behavior?redirectedfrom=MSDN&view=msvc-170 | CC-MAIN-2022-40 | refinedweb | 1,540 | 50.67 |
Add "configure" as a tier for build metrics
RESOLVED FIXED in Firefox 48
Status
People
(Reporter: chmanchester, Assigned: chmanchester)
Tracking
(Depends on: 1 bug)
Firefox Tracking Flags
(firefox48 fixed)
Details
Attachments
(1 attachment)
Not sure exactly how complicated this will be, but it would be very nice to be ... | https://bugzilla.mozilla.org/show_bug.cgi?id=1264703 | CC-MAIN-2019-09 | refinedweb | 461 | 65.12 |
2 years, 4 months ago.
RN2483
This question is relevant to any project trying to bridge a platform's built in USB to UART controller with a second on board UART.
Quote:
In my case, I'm trying to type AT style commands on a computer connected by USB to a NXP FRDM microcontroller that exposes UART0 (hardwired to USB) as ... | https://os.mbed.com/questions/78298/RN2483/ | CC-MAIN-2019-47 | refinedweb | 328 | 58.79 |
Please report
issues and
patches to siftgpu@github.com
Search Criteria
Package Details: siftgpu 0.5.400-9
Dependencies (6)
- devil>=1.7 (devil-ilut-vanilla)
- glew>=1.8 (glew-libepoxy, glew-git, glew-egl-glx)
- freeglut>=2.7 (freeglut-x11-svn, freeglut-wayland-svn)
- cuda (cuda65, cuda-11.0) (make)
- git (git-git) (mak... | https://aur.tuna.tsinghua.edu.cn/packages/siftgpu/ | CC-MAIN-2021-04 | refinedweb | 369 | 50.63 |
I'm attempting to use unicode with eGUI(D4D). Everything works fine when just using ASCII but I can't get things to compile once I #define D4D_UNICODE. I've never used unicode before so there is probably just something I'm missing. I'm running on a Kinetis K70 with MQX 4.1 with the eGUI 3.01 from github Gargy007/eGUI ·... | https://community.nxp.com/thread/356729 | CC-MAIN-2018-43 | refinedweb | 224 | 83.66 |
I think people mix up this: char *buf = new char;
with this: char *buf = new char[256];
They mix up number of elements with number of bytes.
this means allocating 256 element.this means allocating 256 element.Code:char *buf = new char[256];
file.append(buf); and here you are using only one element of 256 and you can as... | http://cboard.cprogramming.com/cplusplus-programming/118397-new-char-vs-new-char%5Bsize%5D.html | CC-MAIN-2014-42 | refinedweb | 137 | 82.75 |
Reminder: Migrate Your JInitiator Clients to Sun JRE Now!
By Steven Chan - EBS-Oracle on Dec 30, 2008
The on December 31, 2008 at 02:49 AM PST # on December 31, 2008 at 08:04 AM PST #
It might be worth noting that JRE6u11 (and possibly u10 as well) don't push out properly via an .msi, it should be fixed in u12 though.
... | https://blogs.oracle.com/stevenChan/entry/reminder_migrate_your_jundefinediator_clients_to_sun_jre_now | CC-MAIN-2016-36 | refinedweb | 6,123 | 66.64 |
In this beginner tutorial I will show you how to use Python programming language to write a simple command line app for sending emails via Gmail!
You will only need 11 lines of code!
Step 1: Download Python
Download Python 3.6.0 from
Step 2: Install Python & Add to Path
Open up the python installer you just downloads.
... | http://www.instructables.com/id/Send-Email-Using-Python/ | CC-MAIN-2017-22 | refinedweb | 632 | 76.72 |
Introduction
Web services through deployment of Service Oriented Architectures (SOA) is increasingly more common. An SOA is several Web services working together for a common goal, and the new PHP SCA extension has been developed to lower the barrier for PHP developers to develop easily maintained Web services. You see... | http://www.ibm.com/developerworks/webservices/library/ws-soa-scasdo/ | CC-MAIN-2015-27 | refinedweb | 2,643 | 54.12 |
Sun's posted the Java XML Pack Winter 01 Release. This bundles together the:
I've tried the latest Mozilla 0.9.7 on both Windows and the Mac. The Windows build fixes the one bug I had noticed in 0.9.6 (a minor problem involving saearch pop-up menus in the location bar). It also lets me configure cookie preferences to e... | http://www.ibiblio.org/xml/news2001.html | CC-MAIN-2015-06 | refinedweb | 43,195 | 64.71 |
I have sometimes wondered if the 'with' statement would work in C/C++, just like in pascal. Meaning that it would in it's nearest scope automatically recognize class/struct members for the ones mentioned with a . or maybe -> operator.
Maybe something like:
TestClass* tc;
float test;
...
with tc {
test = .memberx * .mem... | http://www.codeproject.com/Tips/136183/Cplusplus-Syntax-Uncovered | CC-MAIN-2016-30 | refinedweb | 108 | 69.48 |
Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
5 years ago.
Why does this function crash my program?
This program function causes my program to instantly crash. A print imediately before the function call... | https://os.mbed.com/questions/68900/Why-does-this-function-crash-my-program/ | CC-MAIN-2021-21 | refinedweb | 501 | 63.19 |
Components and supplies
Necessary tools and machines
Apps and online services
About this project
Hohoho... Santa is here!.
The idea of this project is simple: Use LEDs to show where the Santa have been and the current location of Santa on a world map. Here is what I get at the end of the project:
System Architecture
Ov... | https://create.arduino.cc/projecthub/user127218626/iot-santa-tracker-on-colorful-world-map-095fe3 | CC-MAIN-2017-13 | refinedweb | 2,351 | 52.15 |
This article was originally written in December 2002 as part of the ACCU Mentored Developers [MDevelopers] XML [XMLRec] project. It has now been revised, with considerable help from Jez Higgins, for publication in Overload.
The first exercise set for the project students by the project mentors was as follows:
Incorpora... | https://accu.org/index.php/journals/238 | CC-MAIN-2019-47 | refinedweb | 3,131 | 54.83 |
I.
Pingback from Twitter Trackbacks for Enterprise Search Web Parts are still Sealed! Unseal them! (SP2010) - Corey Roth - DotNetMafia.com - Tip of [dotnetmafia.com] on Topsy.com
Pingback from Sharepoint 2010 Search Web Parts unsealed (partially)
This post was mentioned on Twitter by jthake: #SharePoint #Link: Enterpri... | http://dotnetmafia.com/blogs/dotnettipoftheday/archive/2009/12/09/enterprise-search-web-parts-are-still-sealed-unseal-them-sp2010.aspx | CC-MAIN-2018-05 | refinedweb | 302 | 67.04 |
Let's create a modular Groovy application! Why?! Modularity is an enabler of scaleability. As your Groovy application increases in size, you increasingly need to manage code dependencies, structure your code in units that are larger than packages, and distribute pieces of your application to developers located in diffe... | https://dzone.com/articles/how-create-modular-groovy | CC-MAIN-2016-50 | refinedweb | 428 | 55.95 |
Rejected when making POST calls.Jack Lee Jun 3, 2016 7:56 AM
Dear Qlik users.
I'm trying to integrate with our Qlik Sense service in a .NET-program.
I don't have problem running these tutorials / examples:
Creating a working ASP.NET MVC example ‒ Qlik Sense
Connecting using Microsoft Windows authentication ‒ Qlik Sense... | https://community.qlik.com/thread/219476 | CC-MAIN-2017-43 | refinedweb | 1,731 | 66.33 |
Hello. I'm very new to Java, and I have just recently found a tutorial that I am using. I cut-and-pasted a bit of code -- some code that I saw the tutorial use successfully from the command line -- from the tutorial's website into Eclipse. Here is the code:
Code java:
import java.awt.Canvas; import java.awt.Graphics; i... | http://www.javaprogrammingforums.com/%20whats-wrong-my-code/30675-java-eclipse-code-error-printingthethread.html | CC-MAIN-2015-48 | refinedweb | 258 | 67.65 |
Quick Links
RSS 2.0 Feeds
Lottery News
Event Calendar
Latest Forum Topics
Web Site Change Log
RSS info, more feeds
Topic closed. 5 replies. Last post 3 years ago by diamondpalace.
P3Fans:
Here's a new program we just finished testing called, P3PairPredictor. Based on the last 50 draws, the program outputs( most often) ... | http://www.lotterypost.com/thread/195324/prev | crawl-003 | refinedweb | 1,112 | 76.25 |
- Write a C program to print all prime factors of a number.
- Wap in C to find all prime factors of given number.
Required Knowledge
- C printf and scanf functions
- For loop in C
- C Program to find factors of a number
- C program to check prime numbers
A Prime Factor of a number is a factor that is also a prime numbe... | https://btechgeeks.com/c-program-to-find-prime-factors-of-a-numbers/ | CC-MAIN-2021-43 | refinedweb | 226 | 66.81 |
20883/decrypt-result-query-when-using-hyperledger-client-sdk-node
In the Hyperledger Client SDK for Node.js , how can I decrypt the results of the query that are returned in the results variable below ?
tx.on('complete', function (results) {
console.log('Results [%j]', results);
The console.log shows a message like :
R... | https://www.edureka.co/community/20883/decrypt-result-query-when-using-hyperledger-client-sdk-node?show=20885 | CC-MAIN-2021-49 | refinedweb | 194 | 54.39 |
On Wed, 30 Jul 1997, Steve Lamont wrote:
>
> I'm all for just adding
>
> fl_set_menu_timeout( int timeout_sec );
>
> At absolute worst, an environment variable or application resource
> could be used.
>
> Diddling with the forms.h file is (IMHO) the wrong way to go. First
> of all, it breaks the largely consistent API ... | http://xforms-toolkit.org/old-archive/1997/1369.html | CC-MAIN-2022-05 | refinedweb | 201 | 74.59 |
2.2.2.49 MessageClass
The MessageClass element is an optional element that specifies the message class of this e-mail message. It is defined as an element in the Email namespace.
The value of this element is a string data type, as specified in [MS-ASDTYPE] section 2.7.
The MessageClass element value provides a hint tha... | https://msdn.microsoft.com/en-us/library/ee200767(v=exchg.80).aspx | CC-MAIN-2018-47 | refinedweb | 216 | 53.81 |
Philip or Troy - would you care to prepare and test the backport to ensure
we can commit this for the next 0.9 release, coming within days?
Bill
Philip Martin wrote:
> Troy Heber <troyh@debian.org> writes:
>
>> In any case, this looks like the culprit.
>
> Agreed, I've cc'd dev@a.a.o. The C implementation of apr_atomic... | http://mail-archives.apache.org/mod_mbox/apr-dev/200609.mbox/%3C45146E24.8030109@rowe-clan.net%3E | CC-MAIN-2015-35 | refinedweb | 252 | 72.36 |
It’s Our Tree is a social genealogy website. It is the English language site of Verwandt.de, which operates multiple sites to support multiple locales.
One problem with social genealogy sites is that your data is on some server outside your control. Most sites allow you to backup the data to your own PC by exporting it... | http://www.tamurajones.net/ItsOurTreeHomeEdition1.0.xhtml | CC-MAIN-2013-48 | refinedweb | 5,333 | 71.75 |
properties v/s constants
aparna chi
Greenhorn
Joined: May 19, 2004
Posts: 16
posted
Dec 28, 2004 08:44:00
0
Consider the scenario that you have some strings in your application. Whose value may change some time in future.
What would be the best possible solution for this?
Using properties file and loading them through... | http://www.coderanch.com/t/375493/java/java/properties-constants | CC-MAIN-2015-40 | refinedweb | 799 | 63.59 |
#include <c4d_raytrace.h>
Filled by VolumeData::GetSurfaceData().
The surface color at a point.
The reflection color. Note the result of the reflection ray is not part of this color.
The transparency color. Note the result of the transparent ray is not part of this color.
Obsolete.
The reflected ray.
The transmitted ra... | https://developers.maxon.net/docs/Cinema4DCPPSDK/html/struct_surface_data.html | CC-MAIN-2021-10 | refinedweb | 118 | 63.66 |
Diverting trains of thought, wasting precious time.
[/devel] permanent link.
[/devel] permanent link.
[/devel] permanent link.
[/devel] permanent link.
[/devel] permanent link contact....
[/devel] permanent link contact.]
[/devel] permanent link contact
When I was less experienced with C++, I would avoid creating any s... | https://www.cs.kent.ac.uk/people/staff/srk21/blog/devel/ | CC-MAIN-2019-51 | refinedweb | 6,280 | 55.84 |
I recently decided to publish an NPM module. I wrote it in TypeScript and went with Rollup for bundling. It was my first time publishing a module and my first experience with Rollup, so I’d like to write a tutorial on how to do it, both as a reference for myself and for anyone who may find this useful. Let’s get starte... | https://hackernoon.com/building-and-publishing-a-module-with-typescript-and-rollup-js-faa778c85396 | CC-MAIN-2019-35 | refinedweb | 1,593 | 67.65 |
This tutorial was extracted from Erich Styger blog with his agreement.
Question: What makes 8 times ‘beep’, but I cannot hear it?
Answer: My ultrasonic range finder
FRDM-KL25Z with HC-SR04
What I have added to my FRDM-KL25ZFRDM.
HC-SR04 Front Side
The backside features all the electronics to which simply usage of the s... | http://www.element14.com/community/docs/DOC-51641/l/codewarrior-tutorial-for-frdm-kl25z-arduino-ultrasonic-ranging-with-the-freescale-freedom-board | CC-MAIN-2015-35 | refinedweb | 1,308 | 50.16 |
When accessing the Kubernetes API for the first time, we suggest using the
Kubernetes CLI,
kubectl.
To access a cluster, you need to know the location of the cluster and have credentials to access it. Typically, this is automatically set-up when you work through and complete documentation is found in the kubectl manual... | http://kubernetes.io/docs/user-guide/accessing-the-cluster/ | CC-MAIN-2016-50 | refinedweb | 731 | 55.24 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.