text
stringlengths
20
1.01M
url
stringlengths
14
1.25k
dump
stringlengths
9
15
lang
stringclasses
4 values
source
stringclasses
4 values
Create a function that takes a number as an argument and returns a grade based on that number. Score Grade Anything greater than 1 or less than 0.6 'F' 0.9 or greater "A" 0.8 or greater "B" 0.7 or greater "C" 0.6 or greater "D" def grader(score) if score >= 0.9 return "A" elsif score >= 0.8 return "B" elsif score >= 0....
https://codedump.io/share/FgltD3JuNrGK/1/what-are-the-various-ways-of-doing-this-code
CC-MAIN-2017-13
en
refinedweb
any possibility to get a list of the pairs of atoms that are matched using the align command? cheers, marc Dear Simon and other pymolers, I have realised that the solution to getting cctbx working with pymol on windows I posted no longer works with recent builds of cctbx. I have found that the following solution works...
https://sourceforge.net/p/pymol/mailman/message/10098981/
CC-MAIN-2017-13
en
refinedweb
$NetBSD: README.dirs,v 1.11 2010/05/11 11:58:14 pooka Exp $ The following is a quick rundown of the current directory structure. First, components in the kernel namespace, i.e. compiled with -D_KERNEL sys/rump/librump - kernel runtime emulation /rumpkern - kernel core, e.g. syscall, interrupt and lock support /rumpcryp...
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/rump/README.dirs?rev=1.11&content-type=text/x-cvsweb-markup
CC-MAIN-2017-22
en
refinedweb
Looks like John's comment on yesterday's post had us both up half the night working on the same thing.? John's solution uses B.class.isAssignableFrom(a.getClass()) while mine uses a instanceof B. I think either works in this case because a List can only hold objects, not primitives. If we were dealing with primitives, ...
http://glenpeterson.blogspot.com/2011/08/looks-like-johns-comment-yesterday-had.html
CC-MAIN-2017-22
en
refinedweb
JavaScript - TypeScript: Making .NET Developers Comfortable with JavaScript By Shayne Boyer | January 2013. The growth and capability of JavaScript applications is huge. Node.js, an entire platform for developing scalable JavaScript applications, has become enormously popular, and it’s even deployable on Azure. Moreove...
https://msdn.microsoft.com/en-us/magazine/jj883955.aspx
CC-MAIN-2017-22
en
refinedweb
dird On older SCO, you could print the contents of a directory file in hexadecimal format by the command "hd ." (current directory). With SCO OpenServer you get only 0000. That's not good :-) Typically, the reason for doing this was to either to see the order of the files in the directory (so you could tell how far alo...
http://aplawrence.com/Unix/dird.html
CC-MAIN-2017-22
en
refinedweb
First time question asker here. I used several different threads on here to construct a fullcalendar that opens event information in a fancybox. More specifically, each day has an link (structured as an event) that opens a list of that days events in a fancybox. I constructed the calendar and fancybox links with the fo...
http://bighow.org/tags/event/1
CC-MAIN-2017-22
en
refinedweb
Advanced Text Hit - Online Code Description This code shows a String and on Clicking the Text tells the letter which you are Clicking on the Console. Source Code import java.awt.Font; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.RenderingHints; import java.awt.event.MouseAdapter; import java.aw...
http://www.getgyan.com/show/1023/Advanced_Text_Hit
CC-MAIN-2017-22
en
refinedweb
Multiple Inheritance - Online Code Description best example for multiple inheritance Source Code interface t1 extends mt,mj //this is called multiple inheritance { void display(); } interface mt { void show(); } interface mj { void x(); } public class Third implements t1 { public void show() {... (login or register to ...
http://www.getgyan.com/show/3800/Multiple_Inheritance
CC-MAIN-2017-22
en
refinedweb
Bummer! This is just a preview. You need to be signed in with a Basic account to view the entire video. Accessing Views in Code6:54 with Ben Jakuben Now that we've covered a bit of the generated code, it's time to write our own! In this video we'll see how to write Java code in the FunFactsActivity class that declares ...
https://teamtreehouse.com/library/build-a-simple-android-app-2014/basic-android-programming/accessing-views-in-code
CC-MAIN-2017-22
en
refinedweb
Key scheduling algorithm: for i from 0 to 255 S[i] := i endfor j := 0 for i from 0 to 255 j := (j + S[i] + key[i mod keylength]) mod 256 swap values of S[i] and S[j] endfor What I found interesting about this algorithm is it originally starts with a 256 bytes array/list in sequential order (0,1,2,3,4...253,254,255). Th...
http://hooked-on-mnemonics.blogspot.com/2012/02/visualizing-rc4-key-initialization.html
CC-MAIN-2017-22
en
refinedweb
ulflj said:Thanks, haven't run any graphical things actual, we don't have very much that require any 3D/accel gfx-performance, we mainly runt nvidia because they have nice dual-screen feature and (earlier) very easy installation through their own installer (so much for that now ;). ulflj said:. You must log in to send ...
https://devtalk.nvidia.com/default/topic/572468/linux/nvidia-325-15-linux-rt-old-amp-amp-new-nvidia-rt-patch-methods-questions-about-nvidia-installer/
CC-MAIN-2017-22
en
refinedweb
Advanced Namespace Tools blog 26 December 2016 ANTS 2.6 Release The 9front project has released a new update of the installation .iso image, making this a good moment for me to sync up the ANTS code repositories, documentation, and downloads to the latest revision. I have decided that making "release tarballs" with pre...
http://doc.9gridchan.org/blog/161226.release2.6
CC-MAIN-2017-22
en
refinedweb
On Tue, 2003-06-03 at 22:19, Torsten Knodt wrote: > On Tuesday 03 June 2003 21:46, Bruno Dumon wrote: > > BD> yeah yeah, I agree with that, and for that purpose the tidyserializer is > BD> very valuable. I was only wondering if there were any blocking bugs in > BD> the normal htmlserializer that make it impossible to g...
http://mail-archives.apache.org/mod_mbox/cocoon-dev/200306.mbox/%3C1054676939.8637.93.camel@yum.ot%3E
CC-MAIN-2017-22
en
refinedweb
Web applications (or "Web apps") let you bundle a set of servlets, JSP pages, tag libraries, HTML documents, images, style sheets, and other Web content into a single collection that can be used on any server compatible with servlet version 2.2 or later (JSP 1.1 or later). When designed carefully, Web apps can be moved...
http://www.informit.com/articles/article.aspx?p=26138&seqNum=2
CC-MAIN-2017-22
en
refinedweb
Yes, video textures are only available for AIR projects at the moment. Adobe hasn't added it to the Flash Player (yet). The only fallback I know of is unfortunately to use classic "StageVideo". This is working great! I am running AIR17 on a desktop PC. I am having an issue with a clean video loop. Has anyone found a ni...
https://forum.starling-framework.org/topic/videotexture/page/2
CC-MAIN-2017-22
en
refinedweb
Ppt on role of water resources management Ppt on namespace in c++ Ppt on missing numbers for kindergarten Ppt on edge detection tutorial Free download ppt on resources and development for class 10 Ppt on video conferencing basics Ppt on forward rate agreement quote Ppt on vegetarian and non vegetarian Ppt on centring p...
http://slideplayer.com/slide/1726236/
CC-MAIN-2017-22
en
refinedweb
I'm trying to make a function that makes the number of endlines put into the integer, but it gives me these weird errors. What's wrong with my code? Code:#include <cstdlib> #include <iostream> using namespace std; int nl(int i) { int t = 0; while (i >= t) { cout << endl; t++; } } int main() { int i; cout << "Rock?"; ci...
https://cboard.cprogramming.com/cplusplus-programming/60906-need-help-fuctions.html
CC-MAIN-2017-22
en
refinedweb
IMPORTANT: The techniques in this post, while interesting, are outdated and sub-optimal. In short, follow standard equals() and hashCode() practice, but TEST your classes using something like TestUtils. I find a bug almost every time I use that.This post is the first in a series on Comparing Objects. These three method...
http://glenpeterson.blogspot.com/2010/
CC-MAIN-2017-22
en
refinedweb
In which I explore the very basic usage of the .NET Configuration system and hit an apparent bug in Mono’s implementation of it… As I mentioned in a previous post, I’ve been working a lot recently in MonoDevelop – I’m building a program which can work on any platform (Linux, Mac and Windows) so long as it has the GTK# ...
http://www.martyndavis.com/?p=372
CC-MAIN-2017-22
en
refinedweb
This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site. import java.io.PrintStream; import java.util.Scanner; import java.util.Scanner; public class TriangleArea { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { System.out.pr...
http://www.minecraftforum.net/forums/off-topic/computer-science-and-technology/481546-question-about-java
CC-MAIN-2017-22
en
refinedweb
I will assume you have the following installed: - Internet Information Server - Visual Studio 2010 - Dynamics AX 2012 Client - Dynamics AX 2012 Visual Studio Tools First, let us create a new Project in Visual Studio. I'm want something easy and swift, so let's choose .Net 3.5 and ASP.Net Web Service Application. I'm na...
http://yetanotherdynamicsaxblog.blogspot.com/2013/10/
CC-MAIN-2017-22
en
refinedweb
Comments posted by evilbitz on my Playing with utilman.exe post gave me a great idea for another experiment with utilman.exe: You can compile the following example with Borland’s free C++ 5.5 compiler. Fourth experiment Compile this simple C program, name it utilman.exe and put it in the system32 directory: #include <s...
https://blog.didierstevens.com/2006/08/31/my-second-playdate-with-utilmanexe/
CC-MAIN-2017-22
en
refinedweb
Contents QTimer Class Reference The QTimer class provides repetitive and single-shot timers. More... #include <QTimer> Properties - active : const bool - interval : int - singleShot : bool Public Functions Public Slots Signals Static Public Members Reimplemented Protected Functions Detailed Description. Accuracy and Ti...
http://qt-project.org/doc/qt-4.8/QTimer.html
CC-MAIN-2014-42
en
refinedweb
Enabling Multiple Forest Scenarios in Windows Server 2003 Updated: July 31, 2004 Applies To: Windows Server 2003 with SP1 The Windows Server 2003 technologies that are discussed in the previous section each help to enable a specific functionality across multiple forests. Note that these technologies are limited to trus...
http://technet.microsoft.com/en-us/library/dd560676(v=ws.10).aspx
CC-MAIN-2014-42
en
refinedweb
12 December 2005 16:43 [Source: ICIS news] 13 November 2005 - Explosions at Jilin Petrochemical’s aniline plant, which killed 5 workers, resulted in the leakage of 100 tonne of aniline, benzene and nitrobenzene into the 1,850km Songhua river, a main water source to millions living in Heilongjiang in north eastern China...
http://www.icis.com/Articles/2005/12/12/1003600/timeline-major-global-chemical-disasters.html
CC-MAIN-2014-42
en
refinedweb
This 1 import SCons.Scanner.IDL 2 3 idlCmd = '/blah/bin/idl $_CPPINCFLAGS -base:-Oh${TARGET.dir}:-Oc${TARGET.dir} -poa:-i:-Oh${TARGET.dir}:-Oc${TARGET.dir} $SOURCES' 4 5 def idl_emitter(target, source, env): 6 "Produce list of files created by idl compiler" 7 base,ext = SCons.Util.splitext(str(source[0])) 8 hh = base +...
http://www.scons.org/wiki/CorbaBuilder
CC-MAIN-2014-42
en
refinedweb
In yesterday’s Programming Praxis problem we have to implement two sort algorithms. Let’s get started. First, some imports: import Control.Monad import Data.List import Data.List.HT import Data.Array.IO import Data.Array.MArray For the Comb sort algorithm, we’re going to need a function to swap two elements of an array...
http://bonsaicode.wordpress.com/2009/10/31/programming-praxis-two-sub-quadratic-sorts/
CC-MAIN-2014-42
en
refinedweb
Hi, Long time lurker, first time poster. I have been working on this assignment for days and keep getting stuck. I am supposed to read the contents of a text file (first and last names, e.g. Smith, John ) into a two dimensional array, sort the array, and write it to a new file. Names longer than 25 characters are suppo...
http://cboard.cprogramming.com/cplusplus-programming/59328-problem-file-input-pointers-printable-thread.html
CC-MAIN-2014-42
en
refinedweb
Type: Posts; User: _wall_ I tried contacting the owner..but he was out of reach.. is there a way that we can build this applet without the anonymous class..i haven't used anonymous class ever, so i am a bit confused how it... actually i got this code by decompiling several class file. i plan to extend this project so i...
http://forums.codeguru.com/search.php?s=22d6174b0c6c6e57097759db5261dfb2&searchid=5374889
CC-MAIN-2014-42
en
refinedweb
#include <sys/ddi.h> #include <sys/sunddi.h> int ddi_dma_nextseg(ddi_dma_win_t win, ddi_dma_seg_t seg, ddi_dma_seg_t *nseg); This interface is obsolete. ddi_dma_nextcookie(9F) should be used instead. A DMA window. The current DMA segment or NULL. A pointer to the next DMA segment to be filled in. If seg is NULL, a poin...
http://docs.oracle.com/cd/E36784_01/html/E36886/ddi-dma-nextseg-9f.html
CC-MAIN-2014-42
en
refinedweb
In this section you will learn about BufferedReader in java with example. Java provide java.io.Reader package for reading files, this class contain BufferedReader under the package java.io.BufferedReader. This class read text from input stream by buffering character so that it can read character, array and lines effici...
http://roseindia.net/java/example/java/io/java-BufferedReader.shtml
CC-MAIN-2014-42
en
refinedweb
Hi public class PersonSearchCriteria { public string FirstName {get; set;} public string LastName {get; set;} public int IdCardNumber {get; set;} Expression<Func<TSource, bool>> predicate } this is some pseudo code so I want to be able to create instance of this class and based on this properties values' filter my data...
http://channel9.msdn.com/Forums/Coffeehouse/Lmabda-inside-wcf-operationcontract-parameters
CC-MAIN-2014-42
en
refinedweb
NAME mq_setattr - set message queue attributes (REALTIME) LIBRARY library “librt” SYNOPSIS #include <mqueue.h> int mq_setattr(mqd_t mqdes, struct mq_attr *restrict mqstat, struct mq_attr *restrict omqstat); DESCRIPTION The mq_setattr() system call sets attributes associated with the open message queue description refer...
http://manpages.ubuntu.com/manpages/jaunty/man2/mq_setattr.2freebsd.html
CC-MAIN-2014-42
en
refinedweb
17 August 2005 04:46 [Source: ICIS news] SHANGHAI (CNI)--Shenhua Group has received verbal approval from the central government for its northern China coal-to-olefins (CTO) project, a source from the Chinese company told CNI on Wednesday.?xml:namespace> The company is still waiting for the final approval documents from...
http://www.icis.com/Articles/2005/08/17/2009292/shenhua-receives-approval-for-inner-mongolia-cto-project.html
CC-MAIN-2014-42
en
refinedweb
05 November 2008 22:24 [Source: ICIS news] By Joe Kamalick ?xml:namespace> WASHINGTON (?xml:namespace> the council also noted discretely that during his campaign Obama called for a windfall profits welcoming message noted. Other climate control fifty percent of our electric utility capacity powered by coal unless we fi...
http://www.icis.com/Articles/2008/11/05/9169330/insight-business-is-welcoming-but-wary-of-obama.html
CC-MAIN-2014-42
en
refinedweb
For some reason it never occurred to me that you could use property() as a decorator. Of course, if you want to use getters and setters you can't, but for the (fairly common) case when you have a function that you want to turn into a read-only attribute, it works great: class Foo(object): @property def bar(self): retur...
http://www.ianbicking.org/property-decorator.html
CC-MAIN-2014-42
en
refinedweb
29 December 2010 04:32 [Source: ICIS news] By Felicia Loo SINGAPORE (ICIS)--Asia naphtha prices are expected to firm in early 2011, stoked by robust global crude futures at above $91/bbl (€69/tonne) as a bitter cold winter in Europe and the US northeast sparks demand for home heating, traders said. Meanwhile, refinery ...
http://www.icis.com/Articles/2010/12/29/9422449/outlook-11-asia-naphtha-to-firm-until-cracker-turnarounds-begin.html
CC-MAIN-2014-42
en
refinedweb
Adventures with Fluent NHibernate Over the past few weeks, I’ve taken our existing framework library and reevaluated how we connect to our student information system (SIS) to pull information. Almost all of our applications read from SIS for some bit of information or another; however, nothing writes to it. Changes are...
https://tiredblogger.wordpress.com/2008/12/23/adventures-with-fluent-nhibernate/
CC-MAIN-2018-05
en
refinedweb
wcsncmp - compare part of two wide-character strings #include <wchar.h> int wcsncmp(const wchar_t *ws1, const wchar_t *ws2, size_t n); The wcsncmp() function compares not more than n wide-character codes (wide-character codes that follow a null wide-character code are not compared) from the array pointed to by ws1 to t...
http://pubs.opengroup.org/onlinepubs/7908799/xsh/wcsncmp.html
CC-MAIN-2018-05
en
refinedweb
Two long-standing, well-known and appreciated Azure core services, Azure Service Bus and Azure Event Hubs, just released a preview of an upcoming generally available Geo-disaster recovery feature. With the help of this feature, no client needs to manage Geo-disaster recovery scenarios anymore via code, but can instead ...
https://azure.microsoft.com/en-in/blog/azure-service-bus-and-azure-event-hub-geo-disaster-recovery-preview-released/
CC-MAIN-2018-05
en
refinedweb
This code is quite straight forward, it should explain itself with the help of comments, although it's not very fast :( def generateAbbreviations(word): #Replace characters with '*', collect all the permutations of replacements def permutations(word, mp): ret = [] if not word: return [""] if not mp.has_key(word): nxt =...
https://discuss.leetcode.com/topic/32117/a-straight-forward-python-solution-using-backtracking
CC-MAIN-2018-05
en
refinedweb
For assistance, contact CASL Tech : Usage Requirements 1. System capabilities 5 Instructions for Use.. 6 - Linette Hill - 2 years ago - Views: Transcription 1 CASL Video Conference Guide For assistance, contact CASL Tech : Table of Contents Usage Requirements 1 - Hardware Requirements 2 - Physical connectivity of the P...
http://docplayer.net/5952473-For-assistance-contact-casl-tech-casltech-ucd-ie-usage-requirements-1-system-capabilities-5-instructions-for-use-6.html
CC-MAIN-2018-05
en
refinedweb
This is the eleventh lesson in a series introducing 10-year-olds to programming through Minecraft. Learn more here. The mod is a suggestion from my class :) Goal Fill crafting table with ... - dirt and get 64 diamonds - sand and get 64 emeralds - clay (not blocks) and get 64 obsidian Relevant Classes The class correspo...
http://www.jedidja.ca/mod-something-for-nothing/
CC-MAIN-2018-05
en
refinedweb
Mr CMember Content count89 Joined Last visited Community Reputation137 Neutral About Mr C - RankMember - I was wondering, since UDP is connection-less how do you store new connections? I haven't found a clear example of this. With TCP there is a connection made which you could store in a struct and/or put into a list e...
https://www.gamedev.net/profile/114697-mr-c/?tab=topics
CC-MAIN-2018-05
en
refinedweb
Problem the JSONConverter class. Whilst writing the enum back out to JSON wasn't a concern for me, I have also included it in the example below for posterity's sake. Example Required nuget package install-package Newtonsoft.Json Incoming JSON { "writing_style":"snake_case" } C# Enum public enum WritingStyle { SnakeCase...
https://www.scottbrady91.com/C-Sharp/Deserializing-a-JSON-Enumerated-String-to-a-Different-C-Sharp-Enumerated-Type
CC-MAIN-2018-05
en
refinedweb
#include <cafe/mem.h> void* MEMAllocFromAllocator( MEMAllocator* pAllocator, u32 size ); When the memory block is allocated, the start address of this memory block is returned. When memory cannot be allocated, NULL is returned. Allocates a memory block from the allocator. The implementation depends on the setting of th...
http://anus.trade/wiiu/personalshit/wiiusdkdocs/fuckyoudontguessmylinks/actuallykillyourself/AA3395599559ASDLG/os/Mem/Allocator/MEMAllocFromAllocator.html
CC-MAIN-2018-05
en
refinedweb
This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project. > I'd suggest 2.16 release as that deadline (by which we declare non-updated > architectures to be unmaintained, whether or not they have someone > nominally listed as maintainer). Let's put a firm date on it. We'd like to hav...
http://sourceware.org/ml/libc-alpha/2012-02/msg00134.html
CC-MAIN-2015-22
en
refinedweb
26 April 2012 08:27 [Source: ICIS news] By Nurluqman Suratman ?xml:namespace> Despite the general weakness in the global economy, demand for petrochemicals is expected to remain resilient and should help buoy up product prices going forward, said Nat Panassutrakorn, an analyst with KGI Securities in In the first quarte...
http://www.icis.com/Articles/2012/04/26/9553805/better-chemical-spreads-to-aid-thai-scg-h2-earnings-analysts.html
CC-MAIN-2015-22
en
refinedweb
7 – Moving to Microsoft Azure Table Storage This chapter describes Adatum’s final step in its migration process to the cloud for the aExpense application. It discusses the advantages of using Microsoft Azure storage instead of a relational database for expense items, the design of a suitable schema for storage, and how...
https://msdn.microsoft.com/en-us/library/ff803362.aspx
CC-MAIN-2015-22
en
refinedweb
26 October 2012 04:44 [Source: ICIS news] SINGAPORE (ICIS)--Olin Corp has posted a 39% year-on-year decline in third-quarter 2012 net profit at $28.7m (€22.1m) despite a 5.6% increase in sales, the ?xml:namespace> Sales for the September quarter totalled $581.2m, up from $550.2m in the same period in 2011, the company ...
http://www.icis.com/Articles/2012/10/26/9607578/us-olin-corp-q3-net-profit-falls-39-on-higher-operating.html
CC-MAIN-2015-22
en
refinedweb
public class SortKey extends Object SortControl clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitID- The possibly null ID of the matching rule to use to order the attribute values. If not specified then the ordering matching rule defined for the sort key attribute is used. publi...
http://docs.oracle.com/javase/8/docs/api/javax/naming/ldap/SortKey.html
CC-MAIN-2015-22
en
refinedweb
Hi good afternoon Hi good afternoon write a java program that Implement an array ADT with following operations: - a. Insert b. Delete c. Number of elements d. Display all elements e. Is Empty simple program question simple program question how do i get a java program to take an input from the user and have it terminate...
http://roseindia.net/tutorialhelp/comment/53008
CC-MAIN-2015-22
en
refinedweb
RIF In RDF __NUMBEREDHEADINGS__ - Document title: - RIF In RDF (Second Edition) - Editors - - Sandro Hawke, W3C/MIT - Axel Polleres, DERI, NUI Galway - Abstract. - Status of this Document - This is an in-progress, unstable version. If you want something reliable, use the Latest Published Version.. Copyright © 2010 W3C®...
http://www.w3.org/2005/rules/wiki/RIF_In_RDF
CC-MAIN-2015-22
en
refinedweb
Improvements in Schema Cache Behavior in MSXML 6.0 A number of changes and improvements have been made to the schema cache in MSXML 6.0. There are significant differences between MSXML 5.0 and MSXML 6.0 regarding adding schemas to the schema cache. In MSXML 5.0 and before, when you add a schema, imported schemas were a...
https://msdn.microsoft.com/en-us/library/ms764692.aspx
CC-MAIN-2015-22
en
refinedweb
. Step 1: Concept We attach the magnetic reed sensor to my office door and door-frame. A wire runs from the magReed sensor to a pin in the Arduino circuit. Arduino watches that pin's status, HIGH or LOW, and when the status changes from one to the other Arduino reports on that change through Serial.write(). The Process...
http://www.instructables.com/id/Simple-Tweet-Arduino-Processing-Twitter/CDZ17TAH0OJ2LLL
CC-MAIN-2015-22
en
refinedweb
#369 – Binding a Label’s Content to the Current Date and Time August 22, 2011 Leave a comment You can use data binding to assign the current date and time to a Label control. You start by creating an instance of a DateTime object using the ObjectDataProvider tag. <Window.Resources> <ObjectDataProvider x: </Window.Resou...
http://wpf.2000things.com/2011/08/22/
CC-MAIN-2015-22
en
refinedweb
we were doing this program in 'C' language and it compiled, runs, perfectly without any logical errors this is the 'C' Code: Code : #include <stdio.h> void main() { int age; printf("\nEnter your age: "); scanf("%i", &age); switch (age >= 18) { case 1: printf("You Can Vote"); break; case 0: prinft("You CANNOT Voe!"); br...
http://www.javaprogrammingforums.com/%20loops-control-statements/1058-convert-c-java-switch-printingthethread.html
CC-MAIN-2015-22
en
refinedweb
2008/12/16 Luca Niccoli <lultimouomo@gmail.com>: > I can't really see what I'm doing wrong... Maybe I have a clue: ++file_filter(const struct dirent *dir) ++{ ++ return (DT_REG == (DT_REG & dir->d_type)) || ++ (DT_LNK == (DT_LNK & dir->d_type)) ; ++} But I use XFS, which seems to have some problems with d_type [1] I'm ...
https://lists.debian.org/debian-devel/2008/12/msg00688.html
CC-MAIN-2015-22
en
refinedweb
Used to parse an entire XML file. More... #include <utilities/xmlutils.h> Used to parse an entire XML file. When particular XML components are encountered, this will be signalled by calling corresponding routines from the XMLParserCallback that is passed to the XMLParser constructor. To parse an entire XML file, simply...
http://regina.sourceforge.net/engine-docs/classregina_1_1xml_1_1XMLParser.html
CC-MAIN-2015-22
en
refinedweb
11 October 2011 09:15 [Source: ICIS news] By Fanny Zhang GUANGZHOU (ICIS)--?xml:namespace> The tax liability of PetroChina on resources will likely jump sixfold to more than yuan (CNY) 30bn ($4.72bn) each year, said a company source. The figure is roughly a fifth of the company’s net profit in 2010 at CNY140bn. China’s...
http://www.icis.com/Articles/2011/10/11/9498899/china-expands-new-resource-tax-base-petrochina-takes-big-hit.html
CC-MAIN-2015-22
en
refinedweb
Failure loading data from Local FileDigitalArchitectCanada Jan 5, 2011 5:14 AM Hi All, So I'm assuming that this is just a sandbox violation issue, that alchemy just plain blocks local file system access by anything that isn't an AS3 object capable of doing so (such as the file class.) I'd just like to get a solid conf...
https://forums.adobe.com/thread/773517
CC-MAIN-2015-22
en
refinedweb
Interacting with COM Components Using C# In this article, we will analyze COM components and their application in C#. These components became popular among developers after Microsoft released Active Server Pages. However, the whole scenario changed when Microsoft released its Windows 2000 operating system and subsequen...
http://www.developer.com/net/csharp/article.php/1501271/Interacting-with-COM-Components-Using-C.htm
CC-MAIN-2015-22
en
refinedweb
Easylogging++ entry namespace. More... Easylogging++ entry namespace. Resolving function for format specifier. Definition at line 1635 of file easylogging++.h. Definition at line 2201 of file easylogging++.h. Definition at line 801 of file easylogging++.h. Represents enumeration of ConfigurationType used to configure o...
http://docs.ros.org/en/kinetic/api/librealsense2/html/namespaceel.html
CC-MAIN-2021-49
en
refinedweb
The upstream interface of a transformation module. More... #include <transform-base.hpp> The upstream interface of a transformation module. A module can construct subsequent transformation chain through this interface. Definition at line 156 of file transform-base.hpp. Definition at line 61 of file transform-base.cpp. ...
https://ndnsim.net/2.6/doxygen/classndn_1_1security_1_1transform_1_1Upstream.html
CC-MAIN-2021-49
en
refinedweb
Containerization using, Inc which was later renamed as Docker, Inc. It is written in the software development cycle. Containerization Containerization is OS-based virtualization which creates multiple virtual units in the userspace, known as Containers. Containers share the same host kernel but are isolated from each o...
https://www.geeksforgeeks.org/containerization-using-docker/
CC-MAIN-2021-49
en
refinedweb
4 ContentProvider. Being able to persist structured data in a SQLite database is an excellent feature included in the Android SDK. However, this data is only accessible by the app that created it. What if an app would like to share data with another app? ContentProvider is the tool that allows apps to share persisted f...
https://www.raywenderlich.com/books/saving-data-on-android/v1.0/chapters/4-contentprovider
CC-MAIN-2021-49
en
refinedweb
The WPF Tree Grid control is a data-oriented control that displays self-relational data in a tree structure user interface like multicolumn treeview. Data can be loaded on demand. Items can be moved between parent nodes using the built-in row drag-and-drop functionality. Its rich feature set includes editing with diffe...
https://www.syncfusion.com/wpf-controls/treegrid
CC-MAIN-2021-49
en
refinedweb
Details - Type: Bug - Status: Reported - Priority: P3: Somewhat important - Resolution: Unresolved - Affects Version/s: 5.13.1 - Fix Version/s: None - Component/s: Quick: Dialogs - Labels:None - Environment:KDE Plasma 5.18 on openSUSE Tumbleweed Linux Description This doesn't work: import QtQuick 2.1 import QtQuick.Dia...
https://bugreports.qt.io/browse/QTBUG-81397
CC-MAIN-2021-49
en
refinedweb
Table of Contents - What is Minecraft API? - How does the Minecraft API work? - Target Audience for Minecraft API - How to connect to the Minecraft API Tutorial – Step by Step - Minecraft API Endpoints - Integrating Minecraft API to an Application - Benefits of the Minecraft API - Alternative to Minecraft API - Summary...
https://rapidapi.com/blog/minecraft-api-with-python-php-ruby-javascript-examples/
CC-MAIN-2021-49
en
refinedweb
For all the hype about big data, much value resides in the world’s medium and small data. Especially when we consider the length of the feedback loop and total analyst time invested, insights from small and medium data are quite attractive and economical. Personally, I find analyzing data that fits into memory quite co...
http://austinrochford.com/posts/2015-08-03-counting-features.html
CC-MAIN-2017-13
en
refinedweb
In a previous post I covered how to use namespace qualification with JAXB. In this post I will cover how to control the prefixes that are used. This is not covered in the JAXB (JSR-222) specification but I will demonstrate the extensions available in both the reference and EclipseLink MOXy implementations for handling ...
http://blog.bdoughan.com/2011_11_01_archive.html
CC-MAIN-2017-13
en
refinedweb
Introduction to Lollipop - PDF for offline use - - Related Links: - Let us know how you feel about this 0/250 last updated: 2017-02 This article provides a high level overview of the new features introduced in Android 5.0 (Lollipop). These features include a new user interface style called Material Theme, as well as ne...
https://docs.mono-android.net/guides/android/platform_features/introduction_to_lollipop/
CC-MAIN-2017-13
en
refinedweb
public class BarnesSurfaceInterpolator extends Object Barnes Surface Interpolation is a surface estimating method commonly used as an interpolation technique for meteorological datasets. The algorithm operates on a regular grid of cells covering a specified extent in the input data space. It computes an initial pass to...
http://docs.geotools.org/latest/javadocs/org/geotools/process/vector/BarnesSurfaceInterpolator.html
CC-MAIN-2017-13
en
refinedweb
#include <Pt/Xml/XmlReader.h> Reads XML as a Stream of XML Nodes. More... Inherits NonCopyable. This class operates on an input source from which XML character data is read and parsed. The content of the XML document is reported as XML nodes. The parser will only parse the XML document as far as the user read data from...
http://pt-framework.org/htdocs/classPt_1_1Xml_1_1XmlReader.html
CC-MAIN-2017-13
en
refinedweb
I am trying to add an empty arrayList "patternList" to the "treeList" arrayList created from the treeNode class but I am having trouble populating the treeList arrayList with an empty patternList arrayList shown in the last line of the code. Basically I want an empty arrayList for each item in the treeList that I will ...
https://codedump.io/share/EMmXL428QYjG/1/how-to-add-an-empty-arraylist-to-another-arraylist-created-from-a-class
CC-MAIN-2017-13
en
refinedweb
Details Description Created a new patch review tool that will integrate JIRA and reviewboard - Activity - All - Work Log - History - Activity - Transitions Thanks for the quick review Tejas 1. I believe Guozhang fixed this 2. Updated the reviewboard to include the .reviewboardrc file for checkin to the codebase 3. Adde...
https://issues.apache.org/jira/browse/KAFKA-1053
CC-MAIN-2017-13
en
refinedweb
gnutls_x509_trust_list_iter_get_ca(3)utlsutls_x509_trust_list_iter_get_ca(3) gnutls_x509_trust_list_iter_get_ca - API function #include <gnutls/x509.h> int gnutls_x509_trust_list_iter_get_ca(gnutls_x509_trust_list_t list, gnutls_x509_trust_list_iter_t * iter, gnutls_x509_crt_t * crt); gnutls_x509_trust_list_t list The ...
http://man7.org/linux/man-pages/man3/gnutls_x509_trust_list_iter_get_ca.3.html
CC-MAIN-2017-13
en
refinedweb
PowerPoint From Uncyclopedia, the content-free encyclopedia A typical Powerpoint The Effects of Powerpoints can be frightening. edit History Powerpoint was developed during the reign of Tutankhamen, although in an entirely different part of the world. Genghis Khan is rumoured to be involved in the Quality UnAssurance. ...
http://uncyclopedia.wikia.com/wiki/PowerPoint
CC-MAIN-2017-13
en
refinedweb
>>." It's a silly proposition (Score:5, Insightful) IE's problem is not the engine, it's the shitty interface. (Ditto about Windows 8, many would say.) Re: (Score:3, Insightful) You may call it what you will, (inertia, stubbornness, laziness, unwillingness to change,) but truth is that many people just prefer it and In...
https://tech.slashdot.org/story/13/01/12/0347256/should-microsoft-switch-to-webkit?sdsrc=next
CC-MAIN-2017-13
en
refinedweb
Sum: 1|(factorial) Series - Online Code Description This code performs the sum of 1/(Factorial) series upto 17 terms. Source Code #include <stdio.h> #include <conio.h> long int factorial(int n); void main() { int n,i; float s,r; char c; clrscr(); repeat : printf("You have this series:- 1/1! + 2/2! + 3/3! + 4/4! ..."); ...
http://www.getgyan.com/show/2682/Sum%3A_1%7C%28factorial%29_Series
CC-MAIN-2017-39
en
refinedweb
Transforms jsdoc data into something more suitable for use as template input. Also adds a few tags to the default set: @category <string>: Useful for grouping identifiers by category. @done: Used to mark @todoitems as complete. @typicalname: If set on a class, namespace or module, child members will documented using th...
https://www.npmjs.com/package/jsdoc-parse
CC-MAIN-2017-39
en
refinedweb
1.8TB in a day is not terrible slow if that number comes from the CopyTable counters and you are moving data across data centers using public networks, that should be about 20MB/sec. Also, CopyTable won't compress anything on the wire so the network overhead should be a lot. If you use anything like snappy for block co...
http://mail-archives.apache.org/mod_mbox/hbase-dev/201408.mbox/%3CCALPvCiBLy67v7X6EAKvQdvihs3MCMyBVWkJ_DR_y1V5pAF_nMg@mail.gmail.com%3E
CC-MAIN-2017-39
en
refinedweb
I have a 2811 Cisco router that I configured in my home and I am attempting to setup VPN access. I am able to remotely connect to my home network through VPN client however I only have access to my devices on the native VLAN. I do not have access to VLAN 5 (10.77.5.0). I have scoured the internet, tried numerous differ...
https://community.spiceworks.com/topic/319877-cisco-2811-vpn-setup
CC-MAIN-2017-39
en
refinedweb
In the previous part of CDI, we saw some injection, qualifiers and scope. Now, it’s time to browse through more advanced features. Producers Previous examples cannot resolve all our use-cases. Some of these include: - injection of random values - injection of context-dependent value - in general, places where the injec...
https://dzone.com/articles/cdi-overview-part-2
CC-MAIN-2017-39
en
refinedweb
0 Hi, I am working on a project and when I run my code, I get a segfault. I checked it with valgrind, and it says that I am trying to access a memory location that I maybe not malloc'd, stack'd or recently free'd. The only 'mysterious' thing I'm doing is, passing the pointer of a structure list to a function. Here is t...
https://www.daniweb.com/programming/software-development/threads/297414/passing-a-list-pointer-to-a-function
CC-MAIN-2018-43
en
refinedweb
Calculates the hyperbolic cosine of a number #include <math.h> double cosh ( double x ); float coshf ( float x ); (C99) long double coshl ( long double x ); (C99) The hyperbolic cosine of any number x equals (ex + e-x)/2 and is always greater than or equal to 1. If the result of cosh( ) is too great for the double type...
http://books.gigatux.nl/mirror/cinanutshell/0596006977/cinanut-CHP-17-39.html
CC-MAIN-2018-43
en
refinedweb
You know Python, this is C++ Python does have type, but it does not technically have variables. Python "variables" represent names , C++ variables represent locations . Python was designed to be object-oriented. C++ is C with object-oriented features tacked on. Python is interpreted, C++ is compiled. C++ uses declarati...
https://www.csee.umbc.edu/~chang/cs202.f15/Lectures/modules/m01a-Python/slides.php?print
CC-MAIN-2018-43
en
refinedweb
Hi, I am writting a dll and want to return a result back to the calling code. I have tried putting:- public string oSQL2XStreamBridge( string Name) public class string oMyDll both of which it does not like... the code below errors because there is a return statment and it says you can't have a return statement when it ...
https://www.daniweb.com/programming/software-development/threads/294475/writting-a-dll-and-want-to-return-a-result-back-to-the-calling-code
CC-MAIN-2018-43
en
refinedweb
Question: Let's say I have a class which, internally, stores a List of data: import java.util.List; public class Wrapper { private List<Integer> list; public Wrapper(List<Integer> list) { this.list = list; } public Integer get(int index) { return list.get(index); } } For the sake of this example, pretend it's a useful ...
http://www.toontricks.com/2018/06/tutorial-when-to-be-specific-about-type.html
CC-MAIN-2018-43
en
refinedweb
Hello all. I'm feeling pretty confused about how UDP port forwarding is done. My situation is: I have Comp1 with a local IP (192.168.0.2) connected to Comp2 with external IP and internet connection, and some unknown Internet Client (IC) (three of them actually), who needs to send data to the Server hosted at Comp1 thro...
https://www.daniweb.com/programming/software-development/threads/235716/udp-port-forwarding
CC-MAIN-2018-43
en
refinedweb
Hi, I'm a student learning to code in C. This is what I have only when I compile it, gcc, I get two error messages and I don't understnd why. The messages are '67: error: expected declaration or statement at end of input' and '67: error: control reaaches end of non-void funtion' This is the code as I have it now, line ...
https://www.daniweb.com/programming/software-development/threads/286785/don-t-understand-what-the-problem-is
CC-MAIN-2018-43
en
refinedweb
mlock, munlock, mlockall, munlockall - lock and unlock memory Synopsis Description Errors Availability Colophon #include <sys/mman.h> int mlock(const void *addr, size_t len); int munlock(const void *addr, size_t len); int mlockall(int flags); int munlockall(void); mlock() and mlockall() respectively lock part or all of...
http://manpages.sgvulcan.com/mlockall.2.php
CC-MAIN-2017-47
en
refinedweb
using System; using System.Drawing; using System.Windows.Forms; using System.Collections.Generic; using UIGraphic; namespace Tracker { /// <summary> /// Summary description for ITracker. /// </summary> public interface ITracker { void CreateTargetModel(Bitmap bitmap, int binCountCh1, int binCountCh2, int binCountCh3, W...
https://www.codeproject.com/script/Articles/ViewDownloads.aspx?aid=35895&zep=Tracker%2FITracker.cs&rzp=%2FKB%2FGDI-plus%2FMomentsTracking%2F%2FCVMoments.zip
CC-MAIN-2017-47
en
refinedweb
0 AleMonteiro 238 3 Years Ago Hi, I recieved an VB.NET solution to study and then maintain, but I can't compile it, it's giving a lot of errors about Office integration like 'MsoTriState' is ambiguous in the namespace 'Microsoft.Office.Core' So I checked the object browser and indeed there's the same object in two diff...
https://www.daniweb.com/programming/software-development/threads/482368/net-office-ambiguous-reference
CC-MAIN-2017-47
en
refinedweb
In part 1, we set ourselves up for success by creating the necessary project structure, xaml file and changes to web.config to enable application services for script access. Oh, and I mentioned you need ASP.NET AJAX on your web server as we’ll be needing that JSON serialisation stuff it can do for you. To access the se...
https://blogs.msdn.microsoft.com/mikeormond/2007/07/12/accessing-asp-net-application-services-from-silverlight-part-2/
CC-MAIN-2017-26
en
refinedweb
Dogma Codegen Test Code generation testing for the Dogma libraries Usage Dogma Codegen Test provides helpers for running tests on the code generation pipeline. This is only meant for libraries that build upon Dogma Codegen facilities, not for libraries that are consuming those libraries. To verify the code generation p...
https://www.dartdocs.org/documentation/dogma_codegen_test/0.0.1/index.html
CC-MAIN-2017-26
en
refinedweb
This is a fork of IndexedDBShim with the configuration changed to output a build optimised (using the babel-preset-node6 preset) for Node 6. The existing configuration outputs a single file using Grunt that doesn't work properly with NPM 3 (because it makes assumptions about node_modules) - this sidesteps the whole iss...
https://www.npmjs.com/package/indexeddbshim-node6
CC-MAIN-2017-26
en
refinedweb
- Start Visual Studio 2005. - Create a Web site. - Add Reference of System.Windows.Forms - Add AspCompat="true" in page attribute. - Verify that the following namespaces are included in the ExportWebPageToImage.c using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; u...
http://aspdotnetcodebook.blogspot.com/2009/05/how-to-export-webpage-as-image-in.html
CC-MAIN-2017-26
en
refinedweb
fullcontact is a Node.js module that wraps the fullcontact API. It implements the following API endpoints: The module is distributed through npm (node package manager) and can be installed using: npm install fullcontact --save The --save automatically adds the module to your package.json definition. We are all hackers ...
https://www.npmjs.com/package/fullcontact
CC-MAIN-2017-26
en
refinedweb