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
19819/how-to-do-a-batch-insert-in-mysql I have 1-many number of records that need to be entered into a table. What is the best way to do this in a query? Should I just make a loop and insert one record per iteration? Or is there a better way? You can try out the following query: INSERT INTO tbl_name (a,b,c) VALUES(1,2,...
https://www.edureka.co/community/19819/how-to-do-a-batch-insert-in-mysql
CC-MAIN-2022-21
refinedweb
200
79.26
#include <ACEXML/common/FileCharStream.h> Inheritance diagram for ACEXML_FileCharStream: Default constructor. [virtual] Destructor. Returns the available ACEXML_Char in the buffer. -1 if the object is not initialized properly. Implements ACEXML_CharStream. Close this stream and release all resources used by it. Determi...
http://www.theaceorb.com/1.4a/doxygen/acexml/classACEXML__FileCharStream.html
CC-MAIN-2017-51
refinedweb
119
70.9
c++.stl.port - STLport453 Working I finally got a good build on my STLport. I finally deleted the stlport that came with the purchased package and downloaded and installd 453 from the web site. It built correctly first time around. I do have one apparent learning curve issue with the namespace std - - I think I saw a s...
http://www.digitalmars.com/d/archives/c++/stl/port/STLport453_Working_323.html
CC-MAIN-2016-30
refinedweb
132
73.98
:Maybe a doubly linked list of/in the namecache entries. Locking would :always lock either just the first entry in the list (I think that's :sufficient) or at least always obey the same order to prevent deadlocks. : This way renames to self (in another incarnation) can be detected as :well (by running through the list)...
https://www.dragonflybsd.org/mailarchive/kernel/2006-01/msg00015.html
CC-MAIN-2017-04
refinedweb
188
67.99
This tutorial covers the switch case statement in C++. Along with the if else statement, the switch case statement is a way of decision making in C++. It’s a more precise way of decision making than if statements which are better for covering a wide range of possibilities. The C++ switch statement comprises of many cod...
https://coderslegacy.com/c/c-switch-case-statement/
CC-MAIN-2021-21
refinedweb
447
66.07
Item Pickup System in Unreal Engine Using C++ Last time, in history's most impromptu blog post I complained that the resources surrounding Unreal and C++ specifically can be a bit lacking. Never let it be said that I complain about things and don't do anything about it. I've decided to outline how I eventually built my...
http://expletive-deleted.com/2015/06/17/item-pickup-system-in-unreal-engine-using-c/
CC-MAIN-2019-22
refinedweb
2,659
51.31
addressbook.wsiftypes;59 60 import java.util.*;61 import org.w3c.dom.*;62 import javax.xml.parsers.*;63 64 import addressbook.wsiftypes.*;65 66 /**67 * Sample service that provides add/get functionality.68 *69 * @author Matthew J. Duftler (duftler@us.ibm.com)70 * @author Aleksander Slominski71 */72 public class Addres...
http://kickjava.com/src/addressbook/wsiftypes/AddressBook.java.htm
CC-MAIN-2020-50
refinedweb
173
53.17
On Thursday, July 27, 2017 at 9:01:11 AM UTC-4, Matthew Flatt wrote: > Declaring (as opposed to instantiating) a compiled module will normally > not raise an exception. Probably it's possible to construct a set of > embedded modules where there will be a declare-time error due to > conflicting or missing declarations, ...
https://www.mail-archive.com/racket-users@googlegroups.com/msg35845.html
CC-MAIN-2017-39
refinedweb
285
61.06
Groovy Goodness – ReadWriteLocks We often use synchronization. Imagine you have a use case in which there is some resource upon which writing is not done as much as compared to reading. So multiple threads should be able to read concurrently same resource without any problems. But if a single thread wants to write to t...
http://www.tothenew.com/blog/groovy-goodness-readwritelocks/
CC-MAIN-2018-05
refinedweb
278
56.15
The .NET Framework defines both byte and character stream classes. However, the character stream classes are really just wrappers that convert an underlying byte stream to a character stream, handling any conversion automatically. Thus, the character streams, although logically separate, are built upon byte streams. Th...
http://www.loopandbreak.com/the-stream-classes/
CC-MAIN-2021-10
refinedweb
268
57.77
Commonly used escape sequences are \n, \t and \a. The escape sequences are enclosed in single quotes. \n is a new line character and helps in transferring control to the next line. If more than one line is to be skipped, \n is repeated as many times as the number of lines to be skipped. \n can also be combined with any...
http://mail.ecomputernotes.com/cpp/introduction-to-oop/escape-sequences-and-manipulators
CC-MAIN-2019-35
refinedweb
781
58.58
Memory issues when loading videos into frames I have folder with 160 FLV videos, each having 120 frames of size 152, 360 with RGB colors (3 channels) that I would like to load into the numpy array frames. I do this with the code: import numpy as np import cv2 import os directory = "data/" # frames = [] frames = np.empt...
https://answers.opencv.org/question/199301/memory-issues-when-loading-videos-into-frames/
CC-MAIN-2022-05
refinedweb
472
74.9
This is something I've been thinking about a bit lately. Actually, I guess "thinking about" is the wrong turn of phrase, since I haven't so much been thinking about as building one. I'll be "thinking about" public-key auth and OpenId next, hopefully, but the first thing I want to put together is an old-style password-b...
http://langnostic.blogspot.com/2012/06/authentication.html
CC-MAIN-2017-39
refinedweb
3,448
56.35
#include <stdio.h> int ferror(FILE *stream); int feof(FILE *stream); void clearerr(FILE *stream); int fileno(FILE *stream); The ferror() function returns a non-zero value when an error has previously occurred reading from or writing to the named stream (see Intro(3)). It returns 0 otherwise. The feof() function returns...
http://docs.oracle.com/cd/E36784_01/html/E36874/ferror-3c.html
CC-MAIN-2016-26
refinedweb
124
55.84
This 3-part article series presents how to use the Model-View-View-Model (MVVM) design pattern in MVC Core applications. The MVVM approach has long been used in WPF applications but hasn’t been as prevalent in MVC or MVC Core applications. This article illustrates how using MVVM in MVC makes your applications even more...
https://www.codemag.com/Article/2005031/Use-the-MVVM-Design-Pattern-in-MVC-Core-Part-1?utm_source=2005031&utm_medium=articleviewer&utm_campaign=articlelinks
CC-MAIN-2020-40
refinedweb
6,633
54.63
What are possible reasons for empty service responses? Hey, I have a problem regarding a service call. My code is very similar to the example given below. This example WORKS WELL, I am aware of that. However, in my very long code I have the problem that in a similar situation, the response in printer.cpp is empty after...
https://answers.ros.org/question/247458/what-are-possible-reasons-for-empty-service-responses/
CC-MAIN-2020-10
refinedweb
469
51.95
You can access the quosure components (its expression and its environment) with: get_expr() and get_env(). These getters also support other kinds of objects such as formulas quo_get_expr() and quo_get_env(). These getters only work with quosures and throw an error with other types of input. Test if an object is a quosu...
https://www.rdocumentation.org/packages/rlang/versions/0.2.2/topics/quosure
CC-MAIN-2021-25
refinedweb
359
57.47
Introduction to JLabel in Java JLabel is of the many Java classes from the Java Swing package. The JLabel class from the swing package is able to display a text or a picture or both. Similar to other classes in the Swing package, the label and label’s contents displayed by JLabel are aligned using horizontal and vertic...
https://www.educba.com/jlabel-in-java/?source=leftnav
CC-MAIN-2021-21
refinedweb
1,334
61.56
LinkedIn connections are a very important thing for an IT professional, so we need to send connection requests to a lot of people who can be useful to us. But sometimes sending connection requests one at a time can be a little annoying and hectic. It would be nice to automate this work but How? Python to rescue! In thi...
https://www.geeksforgeeks.org/automate-linkedin-connections-using-python/
CC-MAIN-2021-25
refinedweb
420
58.89
Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. ccefront [-batch] [-auto] [-roba] [-t ccetempl] [-first F] [-last F] [-vmode ] [-brate N] [-brate_minmax N M] [-pass <1-...
http://forum.doom9.org/showthread.php?t=92157&amp;highlight=ccefront
CC-MAIN-2019-18
refinedweb
1,372
70.29
Ditch Photoshop: making on-the-fly edits and enhancements to images using Python. Last week the Refresh DC community had the opportunity to listen to some of the supremely talented folks at nclud discuss their latest redesign, from concept to technical implementation. They pushed a lot of boundaries developing a highly...
https://wellfire.co/learn/python-image-enhancements/
CC-MAIN-2019-18
refinedweb
1,002
64.2
Mar 12, 2008 03:55 AM|isjf|LINK hi there I saw these code from a C# project , just wondering why there using Microsoft.visualBasic.ControlChars.CrLF is it a VB controls or..something else? ( I'm not sure how to call it) and what is 【Microsoft.visualBasic.ControlChars.CrLF】function? thank you textBox1.Text += strMsg + M...
http://forums.asp.net/t/1232284.aspx
CC-MAIN-2015-22
refinedweb
559
67.55
Recently I have seen some questions about reading a text file content on OTN forum, though it is very simple task still some find it confusing. That’s why here I am showing how to read text file in java using FileInputStream This is a sample text file and here goes the java code to read text file using FileInputStream ...
http://www.awasthiashish.com/2018/11/read-text-file-in-java-using-fileinputstream.html
CC-MAIN-2019-26
refinedweb
235
63.49
JS: JSON JSON is the value of the property key "JSON" of the global object. [JS: the Global Object] console.log( window.JSON === JSON ); // true Type Type of JSON is object. [see JS: Value Types] console.log ( typeof JSON === "object" ); // true console.log ( Object.prototype.toString.call( JSON ) === "[object JSON]" )...
http://xahlee.info/js/js_json_methods.html
CC-MAIN-2019-35
refinedweb
240
71.51
I have updated to latest Django version 1.0.2 after uninstalling my old Django version.But now when I run django-admin.py I get the following error. How can I resolve this? Traceback (most recent call last): File "C:\Python25\Lib\site-packages\django\bin\django-admin.py", line 2, in <module> from django.core import man...
https://pythonpedia.com/en/knowledge-base/312549/no-module-named-django-core
CC-MAIN-2020-16
refinedweb
292
73.03
Blogs by Author & Date A situation arises where you have a system that includes a PLC, an HMI, and some peripheral devices. The HMI displays some information to a user and allows for some basic control and the PLC manages data collection and communication through an RS485 network using a Modbus RTU protocol. Easy, righ...
https://www.dmcinfo.com/latest-thinking/blog/id/9468/categoryid/10/turning-an-arduino-into-a-modbus-device
CC-MAIN-2018-34
refinedweb
859
55.34
A role account is an e-mail address which serves a particular function, not an individual person, for example "sales@" or "info@". Postmaster@domain (RFC2821) and abuse@domain (RFC2142) are the two role accounts which every ISP, webhost, mail service and DNS host must have in order to promptly identify spam and abuse r...
http://www.spamhaus.org/faq/section/ISP%20Spam%20Issues
CC-MAIN-2015-40
refinedweb
4,234
63.19
Expressional Inference Rule Engine Release Notes Bloomreach offers Enterprise support for this feature to Bloomreach Experience customers. The release cycle of this feature may differ from our core product release cycle. Releases 3.1.0 (unreleased) Released: TBD - SERVPLUG-103 - Correct the demo project, moving all plu...
https://documentation.bloomreach.com/13/library/enterprise/services-features/inference-engine/release-notes.html
CC-MAIN-2021-04
refinedweb
174
50.23
Nodes unable to join TTN via LoPy nano gateway Hi all, I am trying to set up the LoPy as a nano gateway. I followed the tutorial, but still run into some connectivity issues. The nano gateway is registered, I ticked the box 'I'm using a packet forwarder' and I can see in the console that it is connected to TTN. In orde...
https://forum.pycom.io/topic/1262/nodes-unable-to-join-ttn-via-lopy-nano-gateway/3
CC-MAIN-2019-30
refinedweb
880
68.91
Neural Network Lab Learn how to create a perceptron that can categorize inputs consisting of two numeric values. A perceptron is computer code that models the behavior of a single biological neuron. Perceptrons were one of the very earliest types of machine-learning techniques and are the predecessors to neural network...
http://visualstudiomagazine.com/articles/2013/04/01/classification-using-perceptrons.aspx
CC-MAIN-2014-42
refinedweb
2,648
57.67
On Sun, Oct 28, 2007 at 10:39:00AM -0400, Ronald S. Bultje wrote: > Hi, > > On 10/28/07, Ronald S. Bultje <rsbultje at gmail.com> wrote: > > > >? > > > [...] > Index: ffmpeg/libavformat/rtsp.c iam not rtsp maintainer :) [...] > @@ -303,15 +314,6 @@ > /* fill the dest addr */ > url_split(NULL, 0, NULL, 0, hostname, size...
http://ffmpeg.org/pipermail/ffmpeg-devel/2007-October/038367.html
CC-MAIN-2016-44
refinedweb
246
60.14
I have written a C++ template library for KD-Trees, trying to stay as close as possible to STL containers. The library is not (yet) complete and it's not thoroughly tested. However, given the effort and grief I went through in writing it, I would like to make it available to folks, get people to test it, and hopefully ...
https://lists.debian.org/debian-devel/2004/05/msg00394.html
CC-MAIN-2018-17
refinedweb
274
51.68
import java.util.Iterator; 20 21 /** 22 * Defines an iterator that operates over a <code>Map</code>. 23 * <p> 24 * This iterator is a special version designed for maps. It can be more 25 * efficient to use this rather than an entry set iterator where the option 26 * is available, and it is certainly more convenient. 2...
http://commons.apache.org/proper/commons-collections/xref/org/apache/commons/collections/MapIterator.html
CC-MAIN-2013-20
refinedweb
521
51.07
Introdu about it can search in my website (link on my profile). I do not want to insist on it too much. Let's say it's a project I'm working on long ago and has undergone many transformations over time. I think it will not ever finish it, but working on it I discovered/learned many interesting things, some of which wil...
http://www.instructables.com/id/XY-MIDI-Pad-with-Arduino-and-TFT/
CC-MAIN-2018-13
refinedweb
1,597
66.64
(For more resources on Yui, see here.) Q: What is the YUI? A: The Yahoo! User Interface (YUI) Library. Q: Who is it for and who will it benefit the most? A:. Q: How do I install it? A: The simple answer is that you don’t. Both you, while developing and your users can load the components needed both from Yahoo! CDN and ...
https://www.packtpub.com/books/content/faqs-yui
CC-MAIN-2016-36
refinedweb
2,634
71.85
A simple linear solver for use by NOX::LAPACK::Group. More... #include <NOX_LAPACK_LinearSolver.H> A simple linear solver for use by NOX::LAPACK::Group. This class provides a simple linear solver class that stores a NOX::LAPACK::Matrix and provides routines to apply the matrix and solve it using BLAS and LAPACK routine...
http://trilinos.sandia.gov/packages/docs/r11.2/packages/nox/doc/html/classNOX_1_1LAPACK_1_1LinearSolver.html
CC-MAIN-2014-10
refinedweb
130
58.08
Backport module for sys.audit and sys.addaudithook from Python 3.8 Project description Backport module of sys.audit and sys.addaudithook from Python 3.8. Note: This module does not backport any of the built-in audit events. Installation pip install sysaudit Quick Usage sysaudit can be used as a drop-in replacement for ...
https://pypi.org/project/sysaudit/
CC-MAIN-2022-21
refinedweb
129
63.96
quick overview here. We can use Lightning components in visualforce, using $A.createComponent and $Lightning.use. The concept is same in Lightning Web Components as well. You can find How to use Lightning Components in Visualforce here. First we will create a simple Lightning Web Component component which display reco...
https://newstechnologystuff.com/2019/05/27/use-lightning-web-components-in-visualforce/
CC-MAIN-2019-35
refinedweb
601
51.04
This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of C++11 status. Section: 24.3.7 [array] Status: C++11 Submitter: Nicolai Josuttis Opened: 2010-01-24 Last modified: 2016-02-10 Priority: Not Prioritized View all other issues in [array]. View all i...
https://cplusplus.github.io/LWG/issue1306
CC-MAIN-2022-21
refinedweb
144
56.96
Testing JavaFX UIs - Part 3 of ?: Node-based Robot and Fixtures (with Demo) After I learned how to launch a compiled JavaFX UI and a little bit about JavaFX's node hierarchy, I thought I had enough information to start working a JavaFX-specific node-based Robot and fixtures (similar to the ones in FEST-Swing.) I did li...
http://java.dzone.com/articles/testing-javafx-uis-part-3-node
CC-MAIN-2014-10
refinedweb
527
55.74
Web Services using Play! Open your command prompt at the directory where you have unzipped and type. play new currency Follow the on-screen prompts to set up your new application. Next start the server by typing play new currency Now, open the file currency/app/views/Application/index.html. In this page we want to have...
http://java.dzone.com/news/web-services-using-play
CC-MAIN-2013-20
refinedweb
856
55.24
[solved] MQTT and tls Hello there, I have to use mqtt over tls connection. right now I am using simple mqtt lib Can you recommend me a library, or some code snippet? So far googleing doesn't brought me any luck Just want to share actual working sample. NOTE: Checking server certificate is DISABLED in this case. You nee...
https://forum.pycom.io/topic/4775/solved-mqtt-and-tls
CC-MAIN-2022-05
refinedweb
479
67.96
The Samba-Bugzilla – Bug 10976 rpcsvc/yp_prot.h: No such file or directory Last modified: 2014-11-29 18:06:54 UTC In file included from default/source3/librpc/gen_ndr/ndr_wbint.c:3:0: ../source3/include/includes.h:113:28: fatal error: rpcsvc/yp_prot.h: No such file or directory #include <rpcsvc/yp_prot.h> ^ this happen...
https://bugzilla.samba.org/show_bug.cgi?id=10976
CC-MAIN-2016-50
refinedweb
112
54.29
This is a tracking bug for the various about:memory reporters that need to be added.); This simply attaches a huge nested array to the DOM tree (yeah, i know, bad practice) and gobbles up about 1GB of memory which doesn't show up in about:memory. If you don't get the "done" alert the script possibly failed due to an OO...
https://bugzilla.mozilla.org/show_bug.cgi?id=563700
CC-MAIN-2017-26
refinedweb
2,450
62.04
Hi All. I spent about a day of seeking what is wrong and found out, there is a problem with eqauls/hasCode generator in IDEA (I am using 12.1.3 community edition) . What is wrong from my point of view is using super.hashCode()/equals. It seems to me, if I decided to override equals and hasCode for some classes, it mean...
https://intellij-support.jetbrains.com/hc/en-us/community/posts/206873545-Strange-generated-hashCode-?page=1
CC-MAIN-2020-40
refinedweb
647
56.96
Acme::Your - not our variables, your variables use Data::Dumper; use Acme::Your "Data::Dumper"; your $Varname; # This is really $Data::Dumper::Varname print "The default variable name for DD is $Varname"; Acme::Your gives you a language construct "your" that behaves similarly to Perl's own "our" constuct. Rather than d...
http://search.cpan.org/~rclamp/Acme-Your-0.01/lib/Acme/Your.pm
CC-MAIN-2014-15
refinedweb
285
62.17
Hi, I am very new to python and am coming across an issue that I haven't been able to work out on my own. I have 9 rasters that I need to sum. Nothing fancy, just a simple sum. I have this code that I used in another script (found on some blog somewhere) and it worked without any issue whatsoever: rasters = arcpy.ListR...
https://community.esri.com/thread/211907-sum-rasters-failing-with-unexpected-error
CC-MAIN-2018-47
refinedweb
436
58.38
Hey, I’m a little new to pytorch and have been playing around. I noticed that after computing the loss, I am unable to affect the value of loss whatsoever. For eg, if say the loss value is 10, if I do (loss * 1.5).backward() or any number for that matter, it doesn’t seem to affect the weights any differently than when ...
https://discuss.pytorch.org/t/using-a-coefficient-for-loss/120443
CC-MAIN-2022-21
refinedweb
814
69.79
Slow select operation after many times of insert different Table (1) By anonymous on 2021-02-11 09:07:03 [link] [source] Hi all, I am using sqlite3 with python3 When I insert each row by row to different tables and then select all columns, It is really slow. If I insert all rows at once then everything goes fine. One t...
https://sqlite.org/forum/info/ab401e72904d5342
CC-MAIN-2022-33
refinedweb
1,624
66.23
Control to hold an image and getting X,Y in that control - EverydayDiesel last edited by EverydayDiesel Hello, Is there a control designated to hold an image in QT? I started using an QLabel but I am not sure this is the right control. This is basically how I draw the image ``` QPixmap pm1(sFilePath); ui->label->setPix...
https://forum.qt.io/topic/113372/control-to-hold-an-image-and-getting-x-y-in-that-control
CC-MAIN-2022-27
refinedweb
553
52.39
Blazor is the latest in a series of what I'd call "magnificent" developer-friendly web frameworks that .NET has built. In this tutorial, we'll be reviewing how to send an SMS using Blazor and the Vonage SMS API. Jump Right to the Code All of the code from this tutorial is located in GitHub. Prerequisites - wherever you...
https://developer.vonage.com/blog/2020/07/08/how-to-send-an-sms-with-blazor
CC-MAIN-2022-27
refinedweb
933
61.87
On Fri, 27 Apr 2001, Mike Galbraith wrote:>> ran itself into the ground. Methinks I was sent the wrooong patch :)Mike,Please apply this patch on top of Rik's v2 patch otherwise you'll get thelivelock easily:--- linux.orig/mm/vmscan.c Fri Apr 27 04:32:52 2001+++ linux/mm/vmscan.c Fri Apr 27 04:32:34 2001@@ -644,6 +644,7...
https://lkml.org/lkml/2001/4/27/38
CC-MAIN-2022-21
refinedweb
127
62.38
Feature #12205 update missing/strl{cat,cpy}.c Description The attached git diff updates missing/strlcat.c from 1.8 to 1.15, missing/strlcpy.c from 1.5 to 1.12 and also the LEGAL file. There is no important reason. But there was a license change: new style-BSD to a less restrictive ISC-style license. Other changes inclu...
https://bugs.ruby-lang.org/issues/12205
CC-MAIN-2020-29
refinedweb
232
68.97
Can anybody tell me how can i use the keyboard keys while automating the mobile apps? I want to press the go button in mobile keyboard while making the script. Usage of keyboard in mobile testing Which device OS (Android/ iOS) you are using? Different OS will have different ways to handle keyboard Currently i am doing ...
https://forum.katalon.com/t/usage-of-keyboard-in-mobile-testing/8701
CC-MAIN-2021-43
refinedweb
832
56.86
i need a quick response about array and string... i need a quick response about array and string... how can i make a dictionary type using array code in java where i will type the word then the meaning will appear..please help me..urgent about JVM - Java Beginners about JVM Hello Rose india.net team I want to ask that ...
http://roseindia.net/tutorialhelp/comment/15483
CC-MAIN-2014-10
refinedweb
2,739
57.37
This tip is extracted from the book, jQuery, jQuery UI, and jQuery Mobile: Recipes and Examples by Phillip Dutson and Adriaan de Jonge, published by Pearson/Addison-Wesley Professional, Nov 2012, ISBN 9780321822086. For more info, please visit the publisher site. Related video training includes: "jQuery Fundamentals Li...
http://www.itworld.com/article/2832934/enterprise-software/jquery-tip--creating-custom-selectors.html
CC-MAIN-2014-52
refinedweb
497
59.94
The 450 Movement I do peer review and I want you to pay me four hundred and fifty dollars. I’ll even say please. Introduction It’s amazing how quickly a perspective can change. I thought I’d be an academic forever, maybe longer. That was Plan A. For all its ridiculous foibles, and the resulting incipient hair loss, and...
https://jamesheathers.medium.com/the-450-movement-1f86132a29bd
CC-MAIN-2022-27
refinedweb
2,522
76.22
Java language provides three styles (Single Line, Multi-line, and Javadoc) of comments. Before talking of a particular Java comment type we should know that a Java comment can be inserted anywhere in a program code where a white space can be. Java compiler does not include them in final executable. So, you can insert a...
http://cs-fundamentals.com/java-programming/java-comments-javadoc-single-multi-line.php
CC-MAIN-2017-17
refinedweb
1,735
54.83
Apache OpenOffice (AOO) Bugzilla – Issue 22516 bullets turn into > when file imported from Word v.X is reexported to v.X Last modified: 2013-08-07 14:38:26 UTC Create a file in the OS X version of Word. Simple file: * 1 * 2 import into OO 1.1 (version in contrib directory). Export to .doc format again. The resulting fi...
https://bz.apache.org/ooo/show_bug.cgi?id=22516
CC-MAIN-2020-45
refinedweb
668
76.01
wcsncmp − compare two fixed-size wide-character strings #include <wchar.h> int wcsncmp(const wchar_t *s1, const wchar_t *s2, size_t n); The wcsncmp() function is the wide-character equivalent of the strncmp(3) function. It compares the wide-character string pointed to by s1 and the wide-character string pointed to by s...
https://manpag.es/f19/3+wcsncmp
CC-MAIN-2022-40
refinedweb
128
65.42
What is the best way to get the first item from an iterable matching a condition? In Python, I would like to get the first item from a list matching a condition. For example, the following function is adequate: def first(the_iterable, condition = lambda x: True): for i in the_iterable: if condition(i): return i This fu...
http://unixresources.net/faq/2361426.shtml
CC-MAIN-2019-09
refinedweb
951
58.32
Django, Databases, and Decorators: Routing Requests to Different Databases Connecting and using multiple databases in Django As a growing company with a growing customer base, we’re always thinking about ways to boost the performance of our app (but who isn’t?). We’ve got some long-running queries that occasionally res...
https://adriennedomingus.medium.com/django-databases-and-decorators-14fa1f9a5c97
CC-MAIN-2021-21
refinedweb
711
53.92
>>> +/**>>> + * rol16 - rotate a 16-bit value left>>> + * @word: value to rotate>>> + * @shift: bits to roll>>> + */>>> +static inline __u16 rol16(__u16 word, unsigned int shift)>>> +{>>> + return (word << shift) | (word >> (16 - shift));>>> +}>>>> This doesn't work for shift values of 0: you get word >> 16, and>> shif...
http://lkml.org/lkml/2008/3/11/367
CC-MAIN-2014-42
refinedweb
112
79.09
Tutorial How to Deploy a Resilient Go Application to DigitalOcean Kubernetes The author selected Girls Who Code to receive a donation as part of the Write for DOnations program. Introduction Docker is a containerization tool used to provide applications with a filesystem holding everything they need to run, ensuring th...
https://www.digitalocean.com/community/tutorials/how-to-deploy-resilient-go-app-digitalocean-kubernetes
CC-MAIN-2020-40
refinedweb
4,341
60.35
Practical Uses for Closures The closure is a powerful tool in JavaScript. It is commonly used in functional programming languages, but often misunderstood. Like other JavaScript fundamentals, understanding closures is necessary to write expressive, concise and maintainable scripts. What is a closure? At first glance, a...
http://pat-whitrock.github.io/blog/2014/04/29/practical-uses-for-closures/
CC-MAIN-2022-05
refinedweb
377
53.51
XLink and XML Base are implemented or partially implemented by Mozilla. This hack explores these technologies, using Mozilla as a platform. The XML Linking Language or XLink () defines a vocabulary for creating hyperlinks to resources using XML syntax. XLink goes beyond the simple linking in HTML and XHTML by adding co...
http://etutorials.org/XML/xml+hacks/Chapter+2.+Creating+XML+Documents/Hack+28+Explore+XLink+and+XML/
CC-MAIN-2017-22
refinedweb
1,189
64.2
Following a keynote speech which laid out the new features of Facebook (see earlier news story), the rest of yesterday’s F8 conference in London saw speakers dig into the Open Graph API and explain how app developers could take advantage of it. Second on stage was platform engineer Simon Cross, who did a live demo cent...
https://www.creativebloq.com/netmag/report-f8-london-part-2-10116692
CC-MAIN-2018-13
refinedweb
784
61.56
Code snippets are a great productivity feature in Visual Studio 2005 (or a mind rot – depends on your perspective). Michael Palermo even has a site dedicated to code snippets: GotCodeSnippets.com. Code snippets are easy to author. I became tired of typing in the same keystrokes to start a unit test, and wrote a snippet...
https://odetocode.com/blogs/scott/archive/2005/12/06/snippets.aspx
CC-MAIN-2019-18
refinedweb
259
74.49
Using wrapped Qt segfaults on Linux with only a basic example I posted this exact thing on Stack Overflow, but then I thought I would have better luck here. I've been experimenting with wrapping some Qt classes with a C interface to use with my latest D project. For what ever reason, this code works fine on Windows but...
https://forum.qt.io/topic/44136/using-wrapped-qt-segfaults-on-linux-with-only-a-basic-example
CC-MAIN-2018-26
refinedweb
524
50.12
Since one of my clients had a high interest in “embedded analytics” they decided to start a (in their eyes) “simple” project. The goal is to show a couple of KPIs within the standard transactions for shipments (VT01N, VT02N & VT03N) to help the transport planners in optimizing the outgoing trucks. Ideally before going ...
https://blogs.sap.com/2014/05/16/building-your-own-embedded-analytics-application-part-1/
CC-MAIN-2017-30
refinedweb
1,054
70.13
It might be fun doing small tests to test how the tests work, but let's remember our goal - to test our Game class! So, we’ve now got 2 targets in the project - the main app and tests. They are somewhat independent. Let’s connect the 2 together and perform the actual testing! Importing an application The code in both t...
https://openclassrooms.com/en/courses/4554386-enhance-an-existing-app-using-test-driven-development/5095701-perform-tests-on-a-class
CC-MAIN-2022-21
refinedweb
1,530
57.37
Multithreading and Memory Contention in Excel Last modified: May 06, 2010 Applies to: Excel 2010 | Office 2010 | VBA | Visual Studio In this article Thread-Safe Functions Memory Accessible by Only One Thread: Thread-Local Memory Memory Accessible Only by More than One Thread: Critical Sections Versions of Microsoft Exc...
https://msdn.microsoft.com/en-us/library/bb687868(v=office.14).aspx
CC-MAIN-2015-14
refinedweb
1,807
50.36
FFI Introduction From HaskellWiki Revision as of 11:38, 1 August 2013 Haskell's FFI is used to call functions from other languages (basically C at this point), and for C to call haskell functions. 1 Links - Definition#Addenda to the report has the official description of the FFI. - FFI cook book has useful examples. - ...
https://wiki.haskell.org/index.php?title=FFI_Introduction&oldid=56485&diff=prev
CC-MAIN-2017-30
refinedweb
742
69.58
21 S safe load: A process of loading a file in which additional error checking is performed and various corruption patterns in the file are detected and repaired. salt: An additional random quantity, specified as input to an encryption function that is used to increase the strength of the encryption. sample: (1) A unit...
https://msdn.microsoft.com/en-us/library/dd950864
CC-MAIN-2016-40
refinedweb
9,202
55.03
Having your computer know how you feel? Madness! Or actually not madness, but OpenCV and Python. In this tutorial we’ll write a little program to see if we can recognise emotions from images. How cool would it be to have your computer recognize the emotion on your face? You could make all sorts of things with this, fro...
http://www.paulvangent.com/2016/04/01/emotion-recognition-with-python-opencv-and-a-face-dataset/
CC-MAIN-2019-30
refinedweb
23,047
66.03
I'm having some trouble implementing the Karatsuba algorithm. My project limits me to the following libraries: iostream, iomanip, cctype, cstring. Also, I'm limited to only using the integer built-in type and arrays/dynamic arrays to handle numbers (only unsigned integers will be input). I've built a class to handle in...
https://codedump.io/share/vZEAb7UZJzoJ/1/karatsuba-c-implementation
CC-MAIN-2017-13
refinedweb
377
53.31
public class jq extends java.lang.Object jqfunction. For example, jq('#id'); ZK 5 Client Engine is based on jQuery. It inherits all functionality provided by jQuery. Refer to jQuery documentation for complete reference. However, we use the global function called jq to represent jQuery. Furthermore, for documentation pu...
https://www.zkoss.org/javadoc/latest/jsdoc/_global_/jq.html
CC-MAIN-2021-43
refinedweb
2,661
59.3
LONDON (ICIS)--The majority of participants in the northwest ?xml:namespace> However, etac price hikes have been accepted more easily in some parts of “It’s a mixed picture [in terms of customers accepting higher prices],” one producer said. " Indian sellers reported healthy demand from European customers, shortages of...
http://www.icis.com/resources/news/2014/07/04/9798492/higher-feedstock-costs-see-europe-etac-prices-start-to-rise/
CC-MAIN-2016-26
refinedweb
162
55.84
This notebook can be used to subset the 2012 medicare provider utilization and payment data by state. The raw data are available here: The files are downloaded in a zip archive. After extracting the files, compress the main data file. We used gzip here, if you compress it in a different way you will need to edit some o...
http://nbviewer.jupyter.org/urls/umich.box.com/shared/static/0wfjux0rktzd5n1zbc0ymlpas693fv75.ipynb
CC-MAIN-2018-05
refinedweb
220
78.14
? Let me know if you figure out how to do this—I tried briefly a while ago but I don't think I found anything. Normally it's simply part of the args variable: import sublime, sublime_plugin class TestPluginCommand(sublime_plugin.TextCommand): def run_(self, args): print args'event'] I tried to play with this but i had ...
https://forum.sublimetext.com/t/customizing-ctrl-click/6016/5
CC-MAIN-2016-07
refinedweb
1,041
65.01
Lots of code below, since it's usually the details that matter. Bit of a long one, but I think it's generic enough to be a good one for the archives. Experimenting with how to extend ActiveRecord. So I picked a little example project of an input scrubber. The purpose for the code is to automatically sanitize attribute ...
http://www.ruby-forum.com/topic/184014
CC-MAIN-2018-34
refinedweb
942
58.79
User talk:Dkf Welcome to Rosetta Code! My name is Mike Mol, and I write C++, Perl and PHP for a living in a small shop catering to specialized industries. I'm the guy on top around here, but, honestly, I do what I can to avoid interfering with the activity of the site. I watch the Recent Changes feed and step in if I f...
http://rosettacode.org/wiki/User_talk:Dkf
CC-MAIN-2013-20
refinedweb
4,446
67.59
Kevin diagnosed and found this issue. I'm just filing for him. In bug 579488 (typing in twitter) nsWindow::DispatchStarvedPaints forces us to paint after every character typed. The paints take a long time. This forces us to paint more often, instead of coalescing paints, making things worse then they could be. We shoul...
https://bugzilla.mozilla.org/show_bug.cgi?id=627628
CC-MAIN-2017-34
refinedweb
652
65.42
Re: Re: chr() .Net equivalent - From: Just_a_fan@xxxxxxxx - Date: Thu, 10 Apr 2008 11:58:44 -0700 This is WELL SAID! You show great depth of experience. I hope folks will take this as gospel! Also, modifying make the new code unlike the old and a direct comparison, later, to see if there was a simple conversion "typo" ...
http://www.tech-archive.net/Archive/DotNet/microsoft.public.dotnet.languages.vb/2008-04/msg00596.html
crawl-002
refinedweb
499
72.46
- Name - Synopsis - Description - Methods - Function - Example - Variables - Data Types - Limitations - Reference - Author Name Teradata::SQL - Perl interface to Teradata SQL Synopsis use Teradata::SQL; use Teradata::SQL qw(:all); # Exports variables $dbh = Teradata::SQL::connect(logonstring [,tranmode]); $dbh->execute...
https://metacpan.org/pod/release/GROMMEL/Teradata-SQL-0.05/SQL.pm
CC-MAIN-2020-50
refinedweb
1,795
59.19
I would like to make a alphabetical list for an application similar to an excel worksheet. A user would input number of cells and I would like to generate list. For example a user needs 54 cells. Then I would generate 'a','b','c',...,'z','aa','ab','ac',...,'az', 'ba','bb' I can generate the list from [ref] from string ...
https://codedump.io/share/I5KWT7wMwEww/1/how-to-make-a-continuous-alphabetic-list-python-from-a-z-then-from-aa-ab-ac-etc
CC-MAIN-2017-09
refinedweb
185
66.94
Responsive Applications This article covers multi-threaded GTK# programing as well as how to keep your GTK# application responsive. Background The Gtk# toolkit is an event-based system. At the core of the Gtk.Application.Run method there is a loop like this: while (Gtk.Application.EventsPending ()) Gtk.Application.RunI...
http://www.mono-project.com/docs/gui/gtksharp/responsive-applications/
CC-MAIN-2018-26
refinedweb
2,349
54.83
The previous labs in this chapter dealt with client connections, where an application initiated a connection to a remote server. However, Twisted can also be used for writing network servers, where the application waits for connections from clients. This lab will show you how to write a Twisted server that accepts conn...
https://flylib.com/books/en/2.407.1/accepting_connections_from_clients.html
CC-MAIN-2020-10
refinedweb
436
52.26
Well I guess, I will eventually whip up such a plugin myself, cause I really need to cleanup quite a code-generation mess. Eventually based upon the GraniteDS libs, as does the Flexmojos plugin. Chris -----Ursprüngliche Nachricht----- Von: bmathus@gmail.com [mailto:bmathus@gmail.com] Im Auftrag von Baptiste MATHUS Gese...
http://mail-archives.apache.org/mod_mbox/maven-users/201303.mbox/%3C66E38C42347D6446BF7FCB22C3D3878072EB8CD176@ECCR06PUBLIC.exchange.local%3E
CC-MAIN-2015-40
refinedweb
1,072
55.74
But the reported values are always numbers and never letters (like 5A), so for one distance I can get 58,58,59,58,59,60,60,59 etc. But since this is in hex there is a gap from -89 to -96 dBm. Is it suppose to be like this? Is it really in hex? What can I do about it? I also first set "rssi" as an int and sent it to the...
https://forum.sparkfun.com/viewtopic.php?f=13&t=46059
CC-MAIN-2018-09
refinedweb
195
70.5
Name | Synopsis | Description | Return Values | Errors | Attributes | See Also #include <sys/types.h> #include <dirent.h> void seekdir(DIR *dirp, long int loc); The seekdir() function sets the position of the next readdir(3C) operation on the directory stream specified by dirp to the position specified by loc. The valu...
http://docs.oracle.com/cd/E19082-01/819-2243/seekdir-3c/index.html
CC-MAIN-2014-10
refinedweb
160
55.03
On Mon, 2004-09-20 at 10:07, Donovan Preston wrote: >). The twisted 1.3 release will available for download for the forseeable future, for those who need it. I don't believe we should release stuff with subtle, broken semantics in twisted 2.0 - the release number implies that we are changing a few things, so this would...
http://twistedmatrix.com/pipermail/twisted-python/2004-September/008660.html
CC-MAIN-2016-26
refinedweb
378
62.48
CStrings are a useful data type. They greatly simplify a lot of operations in MFC, making it much more convenient to do string manipulation. However, there are some special techniques to using CStrings, particularly hard for people coming from a pure-C background to learn. This essay discusses some of these techniques....
http://www.codeproject.com/Articles/542/CString-Management?msg=3356698
CC-MAIN-2014-41
refinedweb
6,654
61.16
A constructor is that one which is called implicitly when an object is created in Java. A constructor gives properties to an object while it is being created itself. Else, separate methods are required to give properties to the object after it is created. Both styles are given hereunder. Observe the code where properti...
https://way2java.com/constructors/what-is-java-constructor/
CC-MAIN-2020-40
refinedweb
313
57.57
The linked list is one of the most important concepts and data structures to learn while preparing for interviews. Having a good grasp of Linked Lists can be a huge plus point in a coding interview. Problem Statement Given two linked lists, our task is to check whether the first list is present in the second list or no...
https://www.prepbytes.com/blog/linked-list/sublist-search-search-a-linked-list-in-another-list/
CC-MAIN-2022-21
refinedweb
1,217
76.35
Investors in BCE Inc (Symbol: BCE) saw new options become available today, for the November 15th expiration. At Stock Options Channel, our YieldBoost formula has looked up and down the BCE options chain for the new November 15 BCE, that could represent an attractive alternative to paying $48.10.11% return on the cash c...
https://www.nasdaq.com/articles/bce-november-15th-options-begin-trading-2019-09-23
CC-MAIN-2021-10
refinedweb
336
62.88
Introduction What if your customer asks you to integrate Dynamics AX with your Mobile application? In that case you need to be smart. If you have worked with WCF, you would be having an idea that when you host WCF you get a WSDL link which you can use to add a service reference. Dynamics AX has AIF (Application Integra...
https://social.technet.microsoft.com/wiki/contents/articles/32497.integrating-dynamics-ax-with-mobile-apps-using-asp-net-web-api.aspx
CC-MAIN-2021-49
refinedweb
1,121
53.51
Before you can run your trainer application with Cloud Machine Learning Engine, your code and any dependencies must be placed in a Google Cloud Storage location that your Google Cloud Platform project can access. This page shows you the steps to package your code and stage it in the cloud. You can find a detailed descr...
https://cloud.google.com/ml-engine/docs/packaging-trainer
CC-MAIN-2017-43
refinedweb
1,886
53.51
#include <rte_crypto_sym.h> Authentication / Hash transform data. This structure contains data relating to an authentication/hash crypto transforms. The fields op, algo and digest_length are common to all authentication transforms and MUST be set. Definition at line 367 of file rte_crypto_sym.h. Authentication operatio...
https://doc.dpdk.org/api-20.11/structrte__crypto__auth__xform.html
CC-MAIN-2022-27
refinedweb
253
59.8
I have the following plot build with Python and Seaborn using factorplot() method. Is it possible to use the line style as a legend to replace the legend based on line color on the right? graycolors = sns.mpl_palette('Greys_r', 4) g = sns.factorplot(x="k", y="value", hue="class", palette=graycolors, data=df, linestyles...
https://codedump.io/share/4ckzObSkAATQ/1/python-seaborn-matplotlib-setting-line-style-as-legend
CC-MAIN-2017-09
refinedweb
215
56.35