text stringlengths 20 1.01M | url stringlengths 14 1.25k | dump stringlengths 9 15 ⌀ | lang stringclasses 4
values | source stringclasses 4
values |
|---|---|---|---|---|
We.
Measuring real-world performance of websites is difficult and error prone today. Developers are forced to use hacks, such as injecting low resolution JavaScript timestamps throughout their code, which slows down the pages for end users, introduces an observer effect, and provides inaccurate results which can drive ... | https://blogs.msdn.microsoft.com/ie/2010/06/28/measuring-web-page-performance/ | CC-MAIN-2017-09 | en | refinedweb |
Hi guys,
I'm working on this problem I've been struggling with for a while now. I'm still confused about parameters and I'm getting all these error messages, saying that a lot of my variables are undefined. I'm sorry, I know this probably looks like a mess right now, but if anyone could help me out as to what I need to... | https://www.daniweb.com/programming/software-development/threads/120888/c-beginner-struggling-with-parameters | CC-MAIN-2017-09 | en | refinedweb |
I am using irb/ruby1.9.1.
def isUppercase
self>= ?A && self<= ?Z
end
class String
def abbreviate
abbr = ""
each_byte do |c|
if c.isUppercase
abbr += c.chr
end
end
abbr
end
end
"Unidentified Flying Object".abbreviate
irb(main):044:0> load("abbrevi.rb")
=> true
irb(main):045:0> "Unidentified Flyng Object".abbreviate Argu... | https://codedump.io/share/qOwz1CMsvuwg/1/what-is-wrong-my-code-trying-to-abbreviate | CC-MAIN-2017-09 | en | refinedweb |
.
Setup SSH and sudo
I started with a blank application, and "capified" it. If you don't have Capistrano installed, install it via RubyGems.
sudo gem install capistrano --no-ri --no-rdoc rails slicehost cd slicehost/ capify .
Open up config/deploy.rb and start configuring it as you would for any other Rails application... | https://www.viget.com/articles/building-an-environment-from-scratch-with-capistrano-2 | CC-MAIN-2017-09 | en | refinedweb |
Check buttons are used to be able to select which task to be edited/deleted. Unless someone comes up with something easier/simple i will stick with this.
I have already started working on it. Its not much but this is what i have til now:
- Code: Select all
import sys
from Tkinter import *
mGui = Tk()
mGui.geometry("450... | http://www.python-forum.org/viewtopic.php?f=12&t=3277 | CC-MAIN-2017-09 | en | refinedweb |
I wrote “what’s up with containers: Docker and rkt” a while ago. Since then I have learned a few new things about containers! We’re going to talk about running containers in production, not on your laptop for development, since I’m trying to understand how that works in September 2016. It’s worth noting that all this s... | https://jvns.ca/blog/2016/10/02/i-just-want-to-run-a-container/ | CC-MAIN-2017-09 | en | refinedweb |
I have a computer with an Iwill VD133 motherboard doingUSB-to-PS/2 keyboard emulation (built into the chipset somewhere)for a BTC 7932M USB keyboard. Under this configuration, theSETLEDS command in atkbd_probe fails (the first atkbd_sendbytein atkbd_command fails), but the keyboard otherwise works ifthat failure is ign... | https://lkml.org/lkml/2002/9/9/92 | CC-MAIN-2017-09 | en | refinedweb |
Friday
Dec092016
Stuff The Internet Says On Scalability For December 9th, 2016
Hey, it's HighScalability time:
Here's a 1 TB hard drive in 1937. Twenty workers operated the largest vertical letter file in the world. 4000 SqFt. 3000 drawers, 10 feet long. (from @BrianRoemmele)
If you like this sort of Stuff then please ... | http://highscalability.com/blog/2016/12/9/stuff-the-internet-says-on-scalability-for-december-9th-2016.html | CC-MAIN-2017-09 | en | refinedweb |
get_end(3) get_end(3)
NAME
get_end, get_etext, get_edata - get values of UNIX link editor defined symbols
SYNOPSIS
#include <mach-o/getsect.h> unsigned long get_end(); unsigned long get_etext(); unsigned long get_edata();
DESCRIPTION
These routines provide a stopgap measure to programs that use the UNIX link-editor def... | http://www.manpagez.com/man/3/end/ | CC-MAIN-2017-09 | en | refinedweb |
User account creation filtered due to spam.
The following program should print true, but prints false when compiled with gcj -C because the wrong field o is selected in the anonymous inner class (the protected field named o in the super class is more specific than the field o in the enclosing method).
public class t
{
... | https://gcc.gnu.org/bugzilla/show_bug.cgi?id=32638 | CC-MAIN-2017-34 | en | refinedweb |
Using.
There is already a blog post dealing with using Unity.MVC5 and Unity.WebAPI in the same project but this will not be enough to get Umbraco working 100%. Your own controllers should all function correctly but if you run the /umbraco admin area and try navigating, you will soon come across the following:
Failed to... | https://www.devtrends.co.uk/blog/using-unity.mvc5-and-unity.webapi-in-umbraco | CC-MAIN-2017-34 | en | refinedweb |
Password Hashing Using JAAS
Integrating authentication services into your Web apps is a serious business. Serious both in terms of demand and repercussions of doing a sloppy job. For best results, it's best to use a tried and true library. If you're working with Java, the Java Authentication and Authorization Services ... | http://www.developer.com/java/ent/password-hashing-using-jaas.html | CC-MAIN-2017-34 | en | refinedweb |
This action might not be possible to undo. Are you sure you want to continue?
Reserve Bank of India: Functions and Working
RESERVE BANK OF INDIA
ž¸¸£·¸ú¡¸ ¹£ö¸¨¸Ä ¤¸ÿˆ
2
from the beginning. began operations on April 01. We hope that readers would find the book . managing supply of good currency notes within the country... | https://www.scribd.com/doc/61939408/Funtions-of-Rbi-WWE080910 | CC-MAIN-2017-34 | en | refinedweb |
import "golang.org/x/exp/io/spi"
Package spi allows users to read from and write to an SPI device.
Example illustrates a program that drives an APA-102 LED strip.
Code:
dev, err := spi.Open(&spi.Devfs{ Dev: "/dev/spidev0.1", Mode: spi.Mode3, MaxSpeed: 500000, }) if err != nil { panic(err) } defer dev.Close() if err := ... | http://godoc.org/golang.org/x/exp/io/spi | CC-MAIN-2017-34 | en | refinedweb |
Number of downloads: 448Hi,
I will be using the basic example from the tutorial here
The code is reproduced here:
Note: There is no change in web.xml
public class CheckServlet extends HttpServlet { static int count=0; public void init(ServletConfig config) throws ServletException { super.init(config); } public void ser... | http://www.dreamincode.net/forums/topic/45511-servets-maintaining-sessions-using-url-rewriting/ | CC-MAIN-2017-34 | en | refinedweb |
Well, you have gone through a lot of theory to get you started with your first program.
So let’s get your hands dirty.
Go to the command prompt if you are on linux and type : python. You will now be prompted into a shell where you can enter python commands.
Open PyCharm editor to get you started with your first python ... | http://knowledgetpoint.com/python/writing-your-first-python-program/ | CC-MAIN-2017-34 | en | refinedweb |
Announcements
TunahMembers
Content count45
Joined
Last visited
Community Reputation126 Neutral
About Tunah
- RankMember
[.net] resolved problem, can be closed
Tunah replied to Elovoid's topic in General and Gameplay Programming[quote name='Elovoid' timestamp='1308224117' post='4824036'] Edit: Problem solved, based on m... | https://www.gamedev.net/profile/2415-tunah/ | CC-MAIN-2017-34 | en | refinedweb |
If you use the AWS Elastic Load Balancer (ELB) you’ll need to decide what to use as an endpoint on your application server for the health checker. This is how the ELB will determine if an instance is healthy, or not.
If you use the default “/” path, this may mean that a session in your application is kicked off every t... | http://blog.adeel.io/tag/health-check/ | CC-MAIN-2018-30 | en | refinedweb |
1 /*--2 3 $Id: XSLTransform.java,v 1.8 2004/09/07 06:29:07 import org.jdom.*;58 import org.jdom.input.*;59 import org.jdom.output.*;60 import org.jdom.transform.*;61 import javax.xml.transform.*;62 import javax.xml.transform.stream.*;63 64 public class XSLTransform {65 66 public static void main(String [] args) throws ... | http://kickjava.com/src/XSLTransform.java.htm | CC-MAIN-2018-30 | en | refinedweb |
I wrote this post on this blog. I thought that We didn't have the Azure SDK for Log Analytics. However, I was wrong.
They have. It is great one.
Only problem is the documentation and sample code is not shown until now. So I wrote a sample code for it. Also the code becomes very simple than used to. I realize they use b... | https://blogs.technet.microsoft.com/livedevopsinjapan/2017/08/30/searching-log-analytics-using-azure-sdk-with-new-simpler-library-fluent/ | CC-MAIN-2018-30 | en | refinedweb |
dev_New()
Create a new device.
#include "device.h" LResult dev_New ( LDeviceName deviceName, LDevice * deviceOut );
dev_New() retrieves the device definition from the device database and allocates memory for the device data structure and initializes it with the device definition. It does not try to open the device. Dev... | http://www.advancedrelay.com/laygodoc/laygodev/new.htm | CC-MAIN-2018-30 | en | refinedweb |
Keywords are the reserved words in Python. We cannot use a keyword as variable name, function name or any other identifier.
Here's a list of all keywords in Python Programming.
If we give the function an odd number,
None is returned implicitly.
>>> True and False False >>> True or False True >>> not False True:
>>>.
Le... | https://www.programiz.com/python-programming/keyword-list | CC-MAIN-2018-30 | en | refinedweb |
Technical Information
- Miranda Francis
- 1 years ago
- Views:
Transcription
1 Technical Information TI 50A01A10-01EN FAST/TOOLS System Hardening Windows XP SP3/ Windows 2003 SP1 TI 50A01A10-01EN Copyright May (YK) 1st Edition May (YK)
2 Blank Page
3 i Introduction About This Document This manual describes System Harde... | http://docplayer.net/23929742-Technical-information.html | CC-MAIN-2018-30 | en | refinedweb |
I am currently writing a programme using Biopython and part of it involves searching Pubmed using an entry specified by the user. This returns all the records that match this entry. I then want to search just these records for a specific author, again specified by the user, however I am having issues with how to do thi... | https://www.biostars.org/p/225044/ | CC-MAIN-2018-30 | en | refinedweb |
Hi Everyone. Consider this part two after solving part one of my output window issie
basically 7zip i needed to output its text to a output window i had created inside my main menu where the button "backup" exists.
The window within the window code looks like this.
outputLabel = Label(root,text="7Zip Output Window") ou... | https://www.daniweb.com/programming/software-development/threads/206803/output-window-not-behaving | CC-MAIN-2018-30 | en | refinedweb |
I’m trying to write a regular expression that validates a date. The regex needs to match the following
- M/D/YYYY
- MM/DD/YYYY
- Single digit months can start with a leading zero (eg: 03/12/2008)
- Single digit days can start with a leading zero (eg: 3/02/2008)
- CANNOT include February 30 or February 31 (eg: 2/31/2008... | http://w3cgeek.com/regular-expression-to-match-valid-dates.html | CC-MAIN-2018-30 | en | refinedweb |
Introduction to MobX 4 for React/Redux Developers
shawn swyx wang 🇸🇬
Mar 17
Updated on Mar 19, 2018
MobX uses the "magic" of observables to manage state and side effects. This not only has a learning curve but is a different programming paradigm altogether, and there is not a lot of up-to-date training material on ho... | https://dev.to/swyx/introduction-to-mobx-4-for-reactredux-developers-3k07 | CC-MAIN-2018-30 | en | refinedweb |
I've been working on this script all weekend and am almost done with it accept for one last detail; implementing a "process another number?" prompt after a user input is processed.
The script works like this: First, the user enters a number to test (to find the two prime numbers that make up that number). Next the prog... | https://www.daniweb.com/programming/software-development/threads/114252/need-some-help-implementing-a-continue-or-quit-prompt | CC-MAIN-2018-30 | en | refinedweb |
Tue Sep 4 09:40:36 PDT 2001 <blair@orcaware.com> Blair Zajac * Release version 1.05. Sun Sep 2 23:06:10 PDT 2001 <blair@orcaware.com> Blair Zajac * lib/DateTime/Precise.pm: Change the default value of $USGSMidnight from 1 to 0, which in dprintf now disables treating midnight (00:00) of one day as 24:00 from the previou... | https://metacpan.org/changes/distribution/DateTime-Precise | CC-MAIN-2018-30 | en | refinedweb |
Document Number: P1097R1
Date: 2018-06-22
Audience: SG16, EWG, CWG
Author: R. Martinho Fernandes
Reply-to: cpp@rmf.io
This paper proposes a new character escape sequence that enables the programmer to refer to a character by its name or alias.
Currently C++ provides four ways to specify characters in string literals:
\... | http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p1097r1.html | CC-MAIN-2020-10 | en | refinedweb |
Angular: How to support IE11
In this article I will show you the steps I took to support Internet Explorer 11 with Angular. The first half of this will quickly show the steps you need to take, and the second half will break these steps down in more detail for anyone wishing to learn more. At the end I’ll add some addit... | https://medium.com/javascript-in-plain-english/angular-how-to-support-ie11-d3b8c3d3494e?source=---------2------------------ | CC-MAIN-2020-10 | en | refinedweb |
Keeping Javascript test naming updated after refactoring
Jan Küster
・2 min read
Some days ago I ran into a problem. I refactored (simply renamed) some Functions and faced the situation, that I also had to update all the names in my tests, too... manually!
This is because I did not assigned the Functions a proper name, ... | https://dev.to/jankapunkt/keeping-javascript-test-naming-updated-after-refactoring-1l6n | CC-MAIN-2020-10 | en | refinedweb |
Table of Contents
Introduction
Developing never stays in one place. New technologies are increasingly emerging to implement better software solutions. If you want to create a multi-functional, clearly-described system now, you should pay attention to APIs. Today we will take a look at the API principles, specifically f... | https://rapidapi.com/blog/how-to-use-an-api-with-c-sharp/ | CC-MAIN-2020-10 | en | refinedweb |
DOM.
See also the Document Object Model (DOM) Level 3 Core Specification.
Constant Summary
Field Summary
Public Constructor Summary
Inherited Method Summary
Constants
public static final short DOMSTRING_SIZE_ERR
If the specified range of text does not fit into a
DOMString.
public static final short HIERARCHY_REQUEST_ER... | https://developers.google.com/j2objc/javadoc/jre/reference/org/w3c/dom/DOMException?hl=es-419 | CC-MAIN-2020-10 | en | refinedweb |
Hi everyone,
I am currently working on a Python script that enables me to create multiple layouts out of bounding curves and zooms the detail to each one of them. For some reason, the script only fails for the 1st curve on the list, not zooming in correctly. If you test for 1 curve (by only puttting on curve on the sel... | https://discourse.mcneel.com/t/layout-zoomboundingbox-fails/81111 | CC-MAIN-2020-10 | en | refinedweb |
The country converter (coco) - a Python package for converting country names between different classifications schemes.
Project description
The country converter (coco) is a Python package to convert and match country names between different classifications and between different naming versions. Internally it uses regu... | https://pypi.org/project/country-converter/0.6.6/ | CC-MAIN-2020-10 | en | refinedweb |
Automatic topsis for decision making
Project description
TOPSIS implementation
Class project for DATA ANALYSIS AND VISUALISATION 2020 - UCS633 Thapar University, Patiala Submitted by: Paras Arora 101703382 (COE 18)
Output is a dataframe with 3 columns
- Alternatives
- Score
- Rank
Installation
pip install topsis-101703... | https://pypi.org/project/topsis-101703382/ | CC-MAIN-2020-10 | en | refinedweb |
In this post, post, we are going to create a simple chat application using Angular 8, ASP.NET Core and SignalR
In this post, we are going to create a simple chat application using Angular 8, ASP.NET Core 2.2.0, and SignalR 1.1.0 as shown below.
We need to install all the below-mentioned prerequisites on our development... | https://morioh.com/p/ba45ee4cb717 | CC-MAIN-2020-10 | en | refinedweb |
This is a document with tips and usage details about Jython that I've come across. I intend to document handy features of Python as well as some clever inter-op facilities provided by Jython.
I'm going to assume you're not a complete beginner to Java and Python languages. If you find anything off or have a suggestion t... | https://sharats.me/posts/jython-pillow-guide/ | CC-MAIN-2020-10 | en | refinedweb |
I got this effect from a very good French Flasher. I found
the code on his site,
flasheur.com , broke it down, and improved it a little
bit, all this just for you.
You'll find that in this tutorial, I also took the code from
the
Random motion tutorial, that I use the
swapDepths and duplication functions, and a lot of
a... | http://www.kirupa.com/developer/actionscript/outline.htm | crawl-002 | en | refinedweb |
By: Oleg Zhukov
Abstract: The article explains how to implement the Command pattern in CodeGear ECO applications, making use of ECO Undo/Redo facilities
Implementing the Command pattern in ECO applications
The idea of turning operations into objects had great influence upon the software development methods. Expressed i... | http://edn.embarcadero.com/article/36514 | crawl-002 | en | refinedweb |
Windows Live Hotmail, a completely rebuilt web based mail client set to replace MSN Hotmail, started its rollout to selected markets this week. This morning, I talked on the phone with two members of the Windows Live Hotmail team from their offices in Mountain View, California. Omar Shahine and Ellie Powers-Boyle have ... | http://www.liveside.net/interview/archive/2007/04/18/windows-live-hotmail-rolls-out-our-interview-with-omar-shahine-and-ellie-powers-boyle.aspx | crawl-002 | en | refinedweb |
> hash.zip > hash.h
/* +++Date last modified: 05-Jul-1997 */ #ifndef HASH__H #define HASH__H #include
/* For size; } hash_table; /* ** This is used to construct the table. If it doesn't succeed, it sets ** the table's size to 0, and the pointer to the table to NULL. */ hash_table *construct_table(hash_table *table,siz... | http://read.pudn.com/downloads/sourcecode/math/1609/hash.h__.htm | crawl-002 | en | refinedweb |
07, 2008 01:11 PM
Patrick Smacchia is a Visual C# MVP involved in software development for over 15 years. He is the author of Practical .NET 2 and C# 2, a book about the .NET platform conceived from real world experience. After graduating in mathematics and computer science, he has worked on software in a variety of f... | http://www.infoq.com/articles/patrick-smacchia-interview | crawl-002 | en | refinedweb |
Day 9: Tic tac toe
Who didn't play Tic tac toe with his friends? :)
What to expect
Today we will implement tic tac toe game in Nim, with 2 modes
- Human vs Human
- Human vs AI
Implementation
So, let's get it. The winner in the game is the first one who manages to get 3 cells on the board to be the same in the same colu... | https://xmonader.github.io/nimdays/day09_tictactoe_cli.html | CC-MAIN-2019-51 | en | refinedweb |
Initialize TensorFlow Variables With Matrix
Initialize TensorFlow variables with matrix of your choice. Example with identity matrix.
< > Code:
Transcript:
We import TensorFlow as tf.
import tensorflow as tf
Then we print out what version of TensorFlow we are using.
print(tf.__version__)
We are using TensorFlow 1.0.1.
... | https://aiworkbox.com/lessons/initialize-tensorflow-variable-as-identity-matrix | CC-MAIN-2019-51 | en | refinedweb |
0 Members and 1 Guest are viewing this topic.
Instead of exposing a global variable, you write a function that returns the value and another function that sets the value. Yes, hanging a global variable out in the wind is easier, in a Fortran kind of way, but it isn't better.
Einstein was right: Code should be as simple... | https://www.eevblog.com/forum/microcontrollers/(c)-do-i-need-a-*-h-file-for-every-*-c-file/msg2138806/ | CC-MAIN-2019-51 | en | refinedweb |
convert a string to a node ID
#include <sys/vc.h> nid_t qnx_strtonid( const char *nodename, char **str );
The qnx_strtonid() function converts a string representing a node ID into an object of type nid_t. Typically, this function is used by programs that take a node ID as a command line parameter (for example, -n node)... | https://users.pja.edu.pl/~jms/qnx/help/watcom/clibref/qnx/qnx_strtonid.html | CC-MAIN-2022-33 | en | refinedweb |
Monitoring Spring Boot Application With Prometheus and Grafana
Learn step by step process of monitoring your Spring Boot application with Prometheus and Grafana.
Join the DZone community and get the full member experience.Join For Free
In this article, we will be looking into how we can monitor our Spring Boot applicat... | https://dzone.com/articles/monitoring-spring-boot-application-with-prometheus | CC-MAIN-2022-33 | en | refinedweb |
hey, would appreciate advice from anybody more knowledgeable:)
i am plotting a figure, and below i have multiple fields that the user is to enter after inspecting a figure. i expect the user to zoom in, and then enter the values. problem is, that any time you enter anything, the plot resets. i don’t want that.
my desir... | https://discuss.streamlit.io/t/cant-enter-values-without-updating-a-plotly-figure/28066 | CC-MAIN-2022-33 | en | refinedweb |
README
¶
service-catalog
Introduction
The service-catalog project is.
As an example:
Most applications need a datastore of some kind. The service-catalog allows Kubernetes applications to consume services like databases that exist somewhere in a simple way:
A user wanting to consume a database in their application brow... | https://pkg.go.dev/github.com/ericavonb/origin/cmd/service-catalog/go/src/github.com/kubernetes-incubator/service-catalog | CC-MAIN-2022-33 | en | refinedweb |
pip install aiobotocore
The Python aiobotocore library is among the top 100 Python libraries, with more than 43,241,528 downloads. This article will show you everything you need to get this installed in your Python environment.
How to Install aiobotocore on Windows?
- Type
"cmd"in the search bar and hit
Enterto open th... | https://blog.finxter.com/how-to-install-aiobotocore-in-python/ | CC-MAIN-2022-33 | en | refinedweb |
In this user guide, we will learn how to incorporate Wi-Fi manager with our ESP32/ESP8266 boards. WiFi manager let us connect ESP32 or ESP8266 to a network without having to hardcode our network credentials in a script. We will be using a previous example when we learned how to build a web server (ESP32/ESP8266 MicroPy... | https://microcontrollerslab.com/micropython-wi-fi-manager-esp32-esp8266/ | CC-MAIN-2022-33 | en | refinedweb |
External data representation and marshalling
SENG 41283 — Distributed and Cloud Computing
External data representation
The information stored in running programs is represented as data structures. In a distributed system information in messages transferring between components consists of sequences of bytes. So, to comm... | https://nsa94.medium.com/external-data-representation-and-marshalling-fcd51381b513?source=user_profile---------6---------------------------- | CC-MAIN-2022-33 | en | refinedweb |
On 9/1/06, Daniel Rall <dlr@collab.net> wrote:
> Any particular reason why one error message complains about the lock
> element "wrong location", while the other complains about an element
> at an "unexpected location"?
Because I was kind of inconsistent ;-)
I'll make one of them consistent with the other.
> ...
> > -/... | http://svn.haxx.se/dev/archive-2006-09/0064.shtml | CC-MAIN-2013-20 | en | refinedweb |
In some situations it is desirable to use editable combo boxes which keep a historical list of choices for future reuse. This conveniently allows the user to select a previous choice rather than typing identical text. A typical example of an editable combo box with memory can be found in find/replace dialogs in many mo... | http://www.javafaq.nu/java-bookpage-20-4.html | CC-MAIN-2013-20 | en | refinedweb |
csDirtyAccessArray< T, ElementHandler > Class Template ReferenceA templated array class. More...
#include <csutil/dirtyaccessarray.h>
Inheritance diagram for csDirtyAccessArray< T, ElementHandler >:
Detailed Description
template<class T, class ElementHandler = csArrayElementHandler<T>>
A templated array class.
class cs... | http://www.crystalspace3d.org/docs/online/api-1.0/classcsDirtyAccessArray.html | CC-MAIN-2013-20 | en | refinedweb |
jdbc mysql - JDBC
jdbc mysql import java.sql.*;
public class AllTableName...=DriverManager.getConnection("jdbc:mysql://localhost:3306/ram","root","root... this problemm thank u
---------- java ----------
Listing all table name in Database!
SDKH
jdbc mysqll - JDBC
jdbc mysqll import java.sql.*;
public class AllTableName... | http://www.roseindia.net/tutorialhelp/comment/74806 | CC-MAIN-2013-20 | en | refinedweb |
Timeline
10/12/08:
- 16:16 Changeset [2938] by
- ThePimp?: target GTK# 2.10 instead of 2.12.
- 16:04 Changeset [2937] by
- Improve the Win32 cross-build script. Still doesn't work well.
- 16:03 Changeset [2936] by
- Add a bunch of .gitignore files for git-svn users.
- 16:03 Changeset [2935] by
- Do not install example ... | http://caca.zoy.org/timeline?from=2008-10-12T16%3A03%3A48%2B02%3A00&precision=second | CC-MAIN-2013-20 | en | refinedweb |
in the games plugin i set the palette, before i draw anything the first time: for (int i=0; i<COLORS; i++) { #if VDRVERSNUM < 10307 if (screen) screen->AddColor(PALETTE(i)); #else if (screen) { screen->GetBitmap(0)->SetColor(i, PALETTE(i)); } #endif } is this useful in any way, except that i know which color is on a sp... | http://www.linuxtv.org/mailinglists/vdr/2004/05-2004/msg00568.html | CC-MAIN-2013-20 | en | refinedweb |
How To: Use Regular Expressions to Constrain Input in ASP.NET input.
Overview:
- Constrain the acceptable range of input characters.
- Apply formatting rules. For example, pattern-based fields, such as tax identification numbers, ZIP Codes, or postal codes, require specific patterns of input characters.
- Check lengths... | http://msdn.microsoft.com/en-us/library/ff650303.aspx | CC-MAIN-2013-20 | en | refinedweb |
I'm still early into learning to code, so sorry if the code is wonky...
I'm making a number guessing game that guesses based on a first guess from two numbers the user gives and then puts those numbers into a list ascending. then my issue, i want to remove numbers lower/higher from my first guess then just do random.ch... | https://codedump.io/share/e9TqnLB6b1oL/1/remove-numbers-from-a-list-less-than-variable | CC-MAIN-2017-47 | en | refinedweb |
With Statement (Redux)
My previous implementation of the with_statement in ruby had one major flaw: It allowed only a single context manager per with block. While effective, it leads to cluttered code, like the following:
with(open("hello.txt")){|f| with(open("bonjour.txt")){|g| puts f.read() puts g.read() } }
Effectiv... | http://aaron.maenpaa.ca/blog/entries/2008/04/19/with-statement-redux/ | CC-MAIN-2017-47 | en | refinedweb |
Developing
- Manuel StrehlOverwrite PHP’s built-in functions in unit testsIn unit tests you might run in problems, when your code uses PHP built-in functions, that emit certain hard-coded values like
session_start(). When you use PHP namespaces, however, you can solve this problem in an elegant way.
- Manuel StrehlMini... | http://www.manuel-strehl.de/dev/index.en.html | CC-MAIN-2017-47 | en | refinedweb |
So, I'm a big fan of creating global namespaces in javascript. For example, if my app is named Xyz I normally have an object XYZ which I fill with properties and nested objects, for an example:
XYZ.Resources.ErrorMessage // = "An error while making request, please try again"
XYZ.DAL.City // = { getAll: function() { ...... | https://codedump.io/share/p86HCG7OMU65/1/nodejs-single-object-with-all-requires-or-quotstandardquot-paths-in-code | CC-MAIN-2017-47 | en | refinedweb |
querylocale(3) BSD Library Functions Manual querylocale(3)
NAME
querylocale -- Get locale name for a specified category
SYNOPSIS
#include <xlocale.h> const char * querylocale(int mask, locale_t loc);
DESCRIPTION
Returns the name of the locale for the category specified by mask. The mask is scanned starting at the least... | http://www.manpagez.com/man/3/querylocale/ | CC-MAIN-2017-47 | en | refinedweb |
Hi and thanks in advance for helping me out. I am writing a class in C++ called PolyLine.cc I am supposed to include prototypes for all my methods in a header file (PolyLine.h). I am working on a unix server using the GNU compiler.
I have experience in Java and a little in C but this is my first real C++ program. So fa... | https://cboard.cprogramming.com/cplusplus-programming/2296-simple-class-header-file-printable-thread.html | CC-MAIN-2017-47 | en | refinedweb |
I dont understand why my code does not work. Here it is:
n = [3, 5, 7]
def print_list(x):
for i in range(0, len(x)):
print x[i]
It returns an error message saying " It looks like you either didn't call print_list(n) or there is something wrong because 3 wasn't printed."
Any help is more than appreciated!
Well you didn'... | https://discuss.codecademy.com/t/12-printing-out-a-list-item-by-item-in-a-function-error/26323 | CC-MAIN-2017-47 | en | refinedweb |
I want select all the elements of this array that begin with a. Here is my code
a = ['bananas', 'apples', 'pears', 'avocados']
def select_elements_starting_with_a(a)
a.select { |str| str.start_with?('a') }
end
puts select_elements_starting_with_a
Untitled.rb:3:in `select_elements_starting_with_a': wrong number of argum... | https://codedump.io/share/vuOxQfDzZzw7/1/select-elements-from-an-array-starting-with-a-certain-character | CC-MAIN-2017-47 | en | refinedweb |
Pointer analysis.
This class is the main analysis class for pointer detection. See the Rose::BinaryAnalysis::PointerDetection namespace for details.
Definition at line 165 of file BinaryPointerDetection.h.
#include <BinaryPointerDetection.h>
Default constructor.
This creates an analyzer that is not suitable for analysi... | http://rosecompiler.org/ROSE_HTML_Reference/classRose_1_1BinaryAnalysis_1_1PointerDetection_1_1Analysis.html | CC-MAIN-2017-47 | en | refinedweb |
We don't always need to loop through the whole list in the first place.
I believe most of us are using the two pointers. So if k is greater than the list's length, the fast pointer will iterate to the end of the list while iterating from 1 to k. And at this point we know the length of the list, which equals i (current ... | https://discuss.leetcode.com/topic/52681/java-1ms-solution-without-iterating-the-whole-list-first | CC-MAIN-2017-47 | en | refinedweb |
Name
CYGPKG_DEVS_FLASH_M68K_MCFxxxx_CFM — eCos Flash Driver for MCFxxxx CFM On-chip Flash
Description
Some members of the Freescale MCFxxxx family, for example the MCF5213,
come with on-chip flash in the form of a ColdFire Flash Module or CFM.
This package
CYGPKG_DEVS_FLASH_M68K_MCFxxxx_CFM
provides an eCos flash devic... | http://doc.ecoscentric.com/ref/mcfxxxx-cfm.html | CC-MAIN-2019-30 | en | refinedweb |
hi all,
I am trying to create a most simple 1 linear layer network to fit a linear regression. Just to help myself better understand how Pytorch works. However, I encountered a strange issue with the model training.
in my model’s init() method, I have to add a manual initialization step(shown below) to have the model q... | https://discuss.pytorch.org/t/why-the-model-fail-to-converge-without-a-manul-weight-initialization/50431 | CC-MAIN-2019-30 | en | refinedweb |
Hello Andrew,After the discussion with Eric and Vivek the following patchseems to be a good solution to me. Could you accept this patch?When two CPUs call panic at the same time there is apossible race condition that can stop kdump. The firstCPU calls crash_kexec() and the second CPU callssmp_send_stop() in panic() bef... | https://lkml.org/lkml/2011/10/26/153 | CC-MAIN-2019-30 | en | refinedweb |
You want to match all section headers in an INI file.
This one is easy. INI section headers appear at the beginning of
a line, and are designated by placing a name within square brackets
(e.g.,
[Section1]). Those rules are
simple to translate into a regex:
^\[[^\]\r\n]+]
There aren’t many parts to this regex, so it’s e... | https://www.oreilly.com/library/view/regular-expressions-cookbook/9780596802837/ch08s12.html | CC-MAIN-2019-30 | en | refinedweb |
public class Scope extends java.lang.Object
A Scope defines a SINGLE THREADED local lifetime management context,
stored in Thread Local Storage. Scopes can be explicitly entered or exited.
User keys created by this thread are tracked, and deleted when the scope is
exited. Since enter & exit are explicit, failure to exi... | http://docs.h2o.ai/h2o/latest-stable/h2o-core/javadoc/water/Scope.html | CC-MAIN-2019-30 | en | refinedweb |
The
Find / Hey: down to find "hey" / [Az]: look down to find lower case letters, enter n: Find next match at the input after the N: the last match at the ? Hey: look up "hey" Replace : S / vim / vi: vim replace the next vi :% S / vim / vi
case letters, linux, vim, lower case, last matchJuly 27
mysqld process - the dire... | http://www.quweiji.com/tag/case-letters/ | CC-MAIN-2019-30 | en | refinedweb |
If you searching the internet for jqGrid and ASP.NET MVC you will find many examples,
but all of them always define the jqGrid columns – see for an example the blog post from Phil Haack.
If you have a lot of jqGrids in your project you don’t want to define every single column for all the grids.
>
So I came up with the ... | https://blog.lieberlieber.com/2010/07/07/asp-net-mvc-and-a-generic-jqquery-grid-jqtgrid/ | CC-MAIN-2019-30 | en | refinedweb |
Created on 2008-02-28 18:26 by bwmcadams, last changed 2016-03-08 12:48 by deronnax. This issue is now closed.
URLLIB2 seems to have issues attempting to digest authenticate against a
Windows-based IIS 6.x server. The IIS server requests MD5-sess support,
and URLLIB2 throws an exception that ... far from explains this:... | https://bugs.python.org/issue2202 | CC-MAIN-2019-30 | en | refinedweb |
Hide Forgot
Description of problem:
I started the program from Gnome's program search (super button, then type in the program name) and it crashed.
Version-Release number of selected component:
texstudio-2.10.4-1.fc23
Additional info:
reporter: libreport-2.6.3
backtrace_rating: 4
cmdline: texstudio
crash_function: qglx... | https://bugzilla.redhat.com/show_bug.cgi?id=1283359 | CC-MAIN-2019-30 | en | refinedweb |
Here is the documentation of the LeptoquarkModel class. More...
#include <LeptoquarkModel.h>
Here is the documentation of the LeptoquarkModel class.
Definition at line 24 of file LeptoquarkModel.h.
Make a simple clone of this object.
Reimplemented from Herwig::StandardModel.
Return the coupling of the leptoquark to rig... | https://herwig.hepforge.org/doxygen/classHerwig_1_1LeptoquarkModel.html | CC-MAIN-2019-30 | en | refinedweb |
public class Rapids extends java.lang.Object
Rapids is an interpreter of abstract syntax trees.
This file contains the AstRoot parser and parser helper functions. AstRoot Execution starts in the AstExec file, but spreads throughout Rapids.
Trees have a Lisp-like structure with the following "reserved" special character... | http://docs.h2o.ai/h2o/latest-stable/h2o-core/javadoc/water/rapids/Rapids.html | CC-MAIN-2019-30 | en | refinedweb |
android.hidl.manager@1.0
IServiceManager
interface IServiceManager
Manages all the hidl hals on a device.
All examples in this file assume that there is one service registered with the service manager, "android.hidl.manager@1.0::IServiceManager/manager"
Terminology:Package:"android.hidl.manager" Major version:"1" Minor... | https://source.android.com/reference/hidl/android/hidl/manager/1.0/IServiceManager | CC-MAIN-2019-30 | en | refinedweb |
STRTOK(3P) POSIX Programmer's Manual STRTOK(3P)
This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
strtok, strtok_r — split string ... | https://www.man7.org/linux/man-pages/man3/strtok.3p.html | CC-MAIN-2022-33 | en | refinedweb |
I use VS Code as text editor, and I install jQuery library as local
I make link to my js file(custom.js) like this
`import 'jquery'`
In VS Code the auto-import work, which mean the editor can suggest the syntax for me. But the problem is when I try to open the file in browser(index.html with the link to custom.js) it d... | https://forum.freecodecamp.org/t/how-to-link-jquery-library-to-my-javascript-file/260967 | CC-MAIN-2022-33 | en | refinedweb |
On Fri, Sep 18, 2020 at 10:38 AM Steven D'Aprano steve@pearwood.info wrote:
On Fri, Sep 18, 2020 at 09:05:39AM +1000, Chris Angelico wrote:
f-strings are not literals. They are a form of eval().
Oh, that makes 'em sound way too scary :) They're more akin to a list display - a syntactic structure that yields a well-defi... | https://mail.python.org/archives/list/python-ideas@python.org/message/HTO7BQTMDWMTVHMMIAIEHZ4PSJWTEL3N/ | CC-MAIN-2022-33 | en | refinedweb |
SETUP(2) Linux Programmer's Manual SETUP(2)
NAME
setup - setup devices and filesystems, mount root filesystem
SYNOPSIS
#include <unistd.h>
int setup(void);
DESCRIPTION
setup() is called once from within linux/init/main.c. It calls ini-
tialization functions for devices and filesystems configured into the
kernel and the... | http://man.yolinux.com/cgi-bin/man2html?cgi_command=setup(2) | CC-MAIN-2022-33 | en | refinedweb |
A table that depicts the frequency of occurrences of several categories is called a frequency table. This particular kind of table is especially helpful for gaining an idea of the distribution of the values contained in a dataset. This tutorial will walk you through the process of creating frequency tables in Python. W... | https://www.askpython.com/python/examples/frequency-tables | CC-MAIN-2022-33 | en | refinedweb |
Pythonista xCode template adventure
Hi Pythonistaers!
I have a problem with a discrepancy between the xCode template and Pythonista 1.6 betaversions of an app, resulting in different code paths depending on if it's run from within the Pythonista app or it's own app /in an xCode simulator. (xCode simulator and self-cont... | https://forum.omz-software.com/topic/2328/pythonista-xcode-template-adventure/18 | CC-MAIN-2022-33 | en | refinedweb |
Here's a fun program in C programming language to find the number of 500, 100, 50, 20, 10, 5, 2, 1 rupee notes in a given amount. It'll surely help cashiers to mange things properly.
# include <stdio.h> # include <conio.h> void main() { int rs, a, b, c, d, e, f, g, h ; clrscr() ; printf("Enter the amount in Rupees : ")... | http://cprogramming.language-tutorial.com/2012/01/finding-number-of-500-100-50-20-10-5-2.html?showComment=1462211580566 | CC-MAIN-2022-33 | en | refinedweb |
KEYCTL_READ(3) Linux Key Management Calls KEYCTL_READ(3)
NAME
keyctl_read - Read a key
SYNOPSIS
#include <keyutils.h>
long keyctl_read(key_serial_t key, char *buffer,
size_tbuflen);
long keyctl_read_alloc(key_serial_t key, void **_buffer);
DESCRIPTION allo-
cates a buffer big enough to hold the payload data and places ... | http://man.yolinux.com/cgi-bin/man2html?cgi_command=keyctl_read(3) | CC-MAIN-2022-33 | en | refinedweb |
>>
Bessel’s Interpolation in C++
Interpolation is a type of estimation technique of unknown value which lies between know values. Interpolation is the process of constructing new data points between the range of a discrete set of know data points.
An application or reason to use interpolation is that it might reduce co... | https://www.tutorialspoint.com/bessel-s-interpolation-in-cplusplus | CC-MAIN-2022-33 | en | refinedweb |
I want to enforce constraints the parameter values for Scala methods at compile-time.
For example:
case class Foo(numberOfFoo: Int, ...)
numberOfFoo
Int
val n: Int = ...
val f: Foo = Foo(n)
n > 0
n <= 0
Option[Foo]
Foo
Foo.numberOfFoo != n
case class Foo(bar: Bar) {val n = bar size}
Another way of doing this is by usin... | https://codedump.io/share/9TLIUcfOTiUk/1/how-can-i-enforce-compile-time-constraints-on-values-for-scala-methods | CC-MAIN-2017-13 | en | refinedweb |
#include <dh2.h>
Inheritance diagram for DH2:
Definition at line 12 of file dh2.h.
[inline, virtual]
generate static private key
Implements AuthenticatedKeyAgreementDomain.
Definition at line 27 of file dh2.h.
generate static public key
Definition at line 29 of file dh2.h.
generate private/public key pair
Reimplemented... | http://cryptopp.sourceforge.net/docs/ref521/class_d_h2.html | CC-MAIN-2017-13 | en | refinedweb |
/*
* Element;
import org.simpleframework.xml.strategy.Type;
import org.simpleframework.xml.stream.Format;
import org.simpleframework.xml.stream.Style;
/**
* The <code>ElementLabel</code> represents a label that is used to
* represent an XML element in a class schema. This element can be
* used to convert an XML node in... | http://simple.sourceforge.net/download/stream/report/cobertura/org.simpleframework.xml.core.ElementLabel.html | CC-MAIN-2017-13 | en | refinedweb |
Vert.x HTTP Client
Vert.x contains a HTTP client that makes it easy to make HTTP requests asynchronously. Remember, every IO action
in Vert.x must be performed asynchronously to avoid blocking the event loop. The event loop is the thread(s) that
manages your verticles and their handlers. Java's built-in
URL and
URLConn... | http://tutorials.jenkov.com/vert.x/http-client.html | CC-MAIN-2017-13 | en | refinedweb |
If you have been following me for the last few weeks then you know I’ve been playing with ECMAScript 6, Web Components and Polymer quite extensively. This is all leading towards a major single page application that I want to be driven by the latest standards. My last step is in integrating a web framework. There are lo... | https://shellmonger.com/2015/03/31/aurelia-and-visual-studio-2015/ | CC-MAIN-2017-13 | en | refinedweb |
I have a requirement that some registered users with specific role should be able to create articles, but they should not have access to CMS administration UI. Is there any built-in feature to support such case? As I remember EPiServer CMS 6 had on-page editing without CMS menus etc.
Currently I see only option to crea... | http://world.episerver.com/forum/developer-forum/-Episerver-75-CMS/Thread-Container/2015/3/on-page-editing-outside-cms-admin/ | CC-MAIN-2017-13 | en | refinedweb |
#include <Pt/System/Timer.h>
Notifies clients in constant intervals. More...
Timers can be used to be notified if a time interval expires. It usually works with an event loop, where the Timer needs to be registered. Timers send the timeout signal in given intervals, to which the interested clients connect. The interval... | http://pt-framework.org/htdocs/classPt_1_1System_1_1Timer.html | CC-MAIN-2017-13 | en | refinedweb |
Created on 2015-04-07 16:23 by serhiy.storchaka, last changed 2016-06-06 02:30 by python-dev.
Here is a (perhaps incomplete) list of documented names absent in __all__ lists of respective modules. Perhaps some of them (but not all) are worth to be added to __all__ lists.
calendar.Calendar
calendar.HTMLCalendar
calendar... | https://bugs.python.org/issue23883 | CC-MAIN-2017-13 | en | refinedweb |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.