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
Nested-purpose types. Nested types are best suited for modeling implementation details of their enclosing types. The end user should rarely have to declare variables of a nested type and almost never should have to. √ DO use nested types when the relationship between the nested type and its outer type is such that memb...
https://msdn.microsoft.com/en-us/library/ms229027(v=vs.110).aspx
CC-MAIN-2015-22
refinedweb
209
63.8
This article covers how to implement custom fields for Piranha. If you want to read more about the standard field included, please refer to Fields in the section Content.. In order to create a custom field your class has to implement the IField interface from the Piranha.Extend namespace. The interface contains the fol...
https://piranhacms.org/docs/extensions/fields
CC-MAIN-2020-40
refinedweb
558
56.86
The Fast Way to Test Django transaction.on_commit() Callbacks2020-05-20 Django’s transaction.on_commit() hook is useful for running tasks that rely on changes in the current database transaction. The database connection enqueues callback functions passed to on_commit, and executes the callbacks after the current transa...
https://adamj.eu/tech/2020/05/20/the-fast-way-to-test-django-transaction-on-commit-callbacks/
CC-MAIN-2021-04
refinedweb
493
64.81
Im programming with PYTHON... I have two diferent dates...and I want to know the difference (in days) between them. The format of the date is YYYY-MM-DD To explain myself in a better way... I have a function that can ADD or SUBSTRACT a given number and get the date....for example: def addonDays(a,x): ret = time.strftim...
https://codedump.io/share/adgzR976r696/1/difference-between-two-dates
CC-MAIN-2016-44
refinedweb
121
62.75
Python has a collection of scientific libraries that is called the SciPy stack 1 . It consists of powerful data structures to manipulate multidimensional using simple expressions and powerful routines to perform analysis and data manipulation. The SciPy stack consists of the following Python modules: NumPy. Multidimens...
http://pyageng.mpastell.com/book/scipy.html
CC-MAIN-2018-39
refinedweb
1,194
66.64
Using an external solver with Aspen Posted June 17, 2013 at 09:49 AM | categories: programming | tags: aspen | View Comments One reason to interact with Aspen via python is to use external solvers to drive the simulations. Aspen has some built-in solvers, but it does not have everything. You may also want to integrate ...
http://kitchingroup.cheme.cmu.edu/blog/2013/06/17/Using-an-external-solver-with-Aspen/
CC-MAIN-2020-05
refinedweb
260
53.27
Since a long time, Visual Basic and Visual Studio have Crystal report with it. People are saying that since 1993. But in VS2010, they excluded Crystal reports. Yes, what you just heard is right, Crystal Report has been dropped from Visual Studio 2010. But don't worry, it is available as a separate download from the SAP...
http://www.codeproject.com/Articles/166291/Generate-a-report-using-Crystal-Reports-in-Visual?fid=1613977&df=90&mpp=25&sort=Position&spc=Relaxed&tid=4363751
CC-MAIN-2014-52
refinedweb
2,328
74.39
How to split string but keep all delimiters Jack Bush Ranch Hand Joined: Oct 20, 2006 Posts: 235 posted Jul 17, 2011 09:03:54 0 Hi All, I need your regular expression skill to help with finetuning this Java String.split("(?=\\b[\\d{1,4}/?-?|\\$\\d{1,3},\\d{1,3}(,\\d{1,3})?])" that is not retaining all the delimiter co...
http://www.coderanch.com/t/545716/java/java/split-string-delimiters
CC-MAIN-2015-06
refinedweb
1,320
70.13
Following up on my previous post about Prism for WinRT applications, I thought I’d start digging in and trying to see what’s present in the Prism framework libraries. I wasn’t entirely sure how to approach this. With the Prism bits you get three things; - The Prism libraries for Windows Store applications - A number of...
https://mtaulty.com/2013/06/12/m_14859/
CC-MAIN-2021-25
refinedweb
4,738
52.02
Asked by: Variable Array I am wanting to create an Array or Collection of mixed data - like a list of names, addresses and phone numbers for multiple groups and people. I am new to C# and have only been able to locate information for what I would describe as a 1 dimensional array or list. For example if I want to have ...
https://social.msdn.microsoft.com/Forums/en-US/e175b9e8-d110-4e2a-bafa-5615c2334be8/variable-array?forum=csharpgeneral
CC-MAIN-2018-17
refinedweb
671
54.36
the problem is for me to compute and approxiamte value for euler's constant by summing the series (adding up the terms 1, 1/2, ...., 1/n in that order and then subtracting the value fo In(n)). I have to do this with both double and float arithmetic. Here is what I have so far. import java.io.*; public class PP2 { publi...
http://forums.devx.com/showthread.php?147037-Compute-and-approximat-value-for-euler-s-constant&p=437558&mode=threaded
CC-MAIN-2017-09
refinedweb
168
51.65
Iteratees for cats I figured I better bring this topic to iteratee channel. As mentioned in Circe channel, I want to produce json with Circe in a streaming fashion. I’ve tried to start and faced one question. Basically I need a function like this (imports omitted): def writeJson[T: Encoder](enum: Enumerator[Task, T], f...
https://gitter.im/travisbrown/iteratee?at=585bff9d0730ce6937fa3a5d
CC-MAIN-2022-21
refinedweb
187
50.63
I am making a game, and the player has multiple weapons, and I want to display which weapon is being used. I made two pictures to show which picture is being used. But I have no idea how to make it switch from one to another. I understand how to access the GUITexture, but I don't understand how to access the Texture th...
https://answers.unity.com/questions/383479/how-to-change-the-image-texture-of-a-guitexture-in.html
CC-MAIN-2021-04
refinedweb
374
63.29
Class instance with names defined by string In 'pure ruby' (not rails), given a class: class Person end ...and an array of strings: people_names = ['John', 'Jane', 'Barbara', 'Bob'] how can I instantiate the Person class, with each instance variable named one of the elements in my array? John = Person.new Jane = Person...
http://thetopsites.net/article/58331441.shtml
CC-MAIN-2020-34
refinedweb
1,431
63.19
I am completely convinced that the patch you are using (which Ibelieve is the same as the one Andrew calls"tty-shutdown-race-fix.patch") is the problem. What happens is thatrelease_dev() in tty_io.c calls cancel_delayed_work(), which callsdel_timer_sync() without decrementing nr_queued for keventd_wq.When flush_schedul...
http://lkml.org/lkml/2003/4/9/2
CC-MAIN-2015-06
refinedweb
518
58.58
I am looking for a way to round a floating point number up or down to the next integer based on a probability derived from the numbers after the decimal point. For example the floating number 6.1 can be rounded to 6 and to 7. The probability for beeing rounded to 7 is 0.1 and the probability to be rounded to 6 is 1-0.1...
https://codedump.io/share/Bppnq02M681k/1/random-rounding-to-integer-in-python
CC-MAIN-2017-04
refinedweb
280
78.75
Knights on a chess board The power and beauty of Markov Chains. By Vamshi Jandhyala November 19, 2020 Problem A white knight and a black knight are situated on diagonally opposite corners of a $3 \times 3$ square. In turn, starting with White, they move randomly until (inevitably) Black captures White. What is the expe...
https://vamshij.com/blog/2020-11-19-knights-on-a-chessboard/
CC-MAIN-2022-21
refinedweb
463
65.01
Programmers We perform small, isolated experiments when we need more information. You’ve probably noticed by now that XP values concrete data over speculation. Whenever you’re faced with a question, don’t speculate about the answer—conduct an experiment! Figure out how you can use real data to make progress. That’s wha...
https://www.safaribooksonline.com/library/view/the-art-of/9780596527679/ch09s07.html
CC-MAIN-2016-50
refinedweb
239
56.55
Iterate works with firstobject, not with tagobject On 30/10/2014 at 08:58, xxxxxxxx wrote: Hi, I have a project which contains these methods: def GetNextObject(self, op) : if op == None: return None if op.GetDown() : return op.GetDown() while not op.GetNext() and op.GetUp() : op = op.GetUp() return op.GetNext() def Ite...
https://plugincafe.maxon.net/topic/8269/10778_iterate-works-with-firstobject-not-with-tagobject
CC-MAIN-2020-45
refinedweb
294
70.19
This bug affects 1 person Bug Description Hi, Yes, pickle is not guaranteed to be cross-compatible between python versions, but it's so close !! ---------- Dump in python 2: import pickle, pytz, datetime with open("date.pickle", "wb") as fp: pickle. ---------- Load in python 3: import pickle with open("date.pickle", "r...
https://bugs.launchpad.net/pytz/+bug/1631989
CC-MAIN-2017-51
refinedweb
107
70.7
Most consumers don't want to rely on blind faith to know that what they eat is GM-free. Belgian experts concluded that growing this GM oilseed rape would have negative impacts on biodiversity that could not be brought under control, and that guidelines for farmers to prevent contamination of non-GM crops are unworkable...
http://www.greenpeace.org/international/en/news/features/gm-oilseed-rape-setback-in-eur/
CC-MAIN-2014-15
refinedweb
321
52.8
« Playing with the new Validator API | Main | Celebrating OWL interoperability and spec quality ».. Filed by Dan Connolly on October 28, 2006 1:23 AM in HTML, Opinions and Editorial | Permalink | Comments (53) | TrackBacks (0) I think it's very brave to try and reinvent something that's got such a widespread adoption a...
http://www.w3.org/QA/2006/10/reinventing_html_discuss.html
CC-MAIN-2013-20
refinedweb
5,713
72.97
automating or running a process back Hi everyone I would like to automate sending SMS with an application i am writting but i don't how i to do it. My application must be connected to a server from where it get informations to send via SMS. I am wondering how to create for example a class that inherit QMainWindow and r...
https://forum.qt.io/topic/81728/automating-or-running-a-process-back
CC-MAIN-2018-43
refinedweb
1,206
61.67
what i am trying to do here is ask user for an ip address to ping then an ending ip address. so if they want to test a c class all they have to do is run the program and type in starting ip then ending ip. Next step will be saving result to a file. But that will come later. Can someone tell me how to get this working. ...
http://cboard.cprogramming.com/c-programming/42240-array-user-input.html
CC-MAIN-2015-11
refinedweb
192
86.2
Parent Directory | Revision Log Avoid reserved names for functions and variables, bug 516092. elibtoolize: Allow undefined symbols on AIX, needed by and work fine with module libs. namespace ECLASSDIR_LOCAL incase some other eclass tries to use the same var elibtoolize: accept explicit dir args on command line #496320 ...
https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/eclass/libtool.eclass?view=log&r1=1.84
CC-MAIN-2015-32
refinedweb
1,206
63.9
#include <mudlib.h> #include <ansi.h> #pragma strong_types inherit ROOM; void reset (int arg) { ::reset (arg); if (!present("soldier")) { place_objects("/players/orbital/projects/wiki/amob.c",2); tell_room(environment(this_player()),"Two guards arrive and take up station patrolling the area.\n"); }"); if (present("sold...
http://dune.servint.net/coding:mobroom
CC-MAIN-2018-34
refinedweb
113
54.39
NAME¶ FBB::Cidr - Compares IP4 addresses to CIDR specifications SYNOPSIS¶ #include <bobcat/cidr> Linking option: -lbobcat DESCRIPTION¶ Objects of the class Cidr can be used for testing whether IP4 Internet addresses belong to address ranges defined by Classless Inter-Domain Routing (CIDR) address block specifications. ...
https://manpages.debian.org/bullseye/libbobcat-dev/cidr.3bobcat.en.html
CC-MAIN-2021-43
refinedweb
976
66.84
Mark McSpadden - Home tag: Mephisto Noh-Varr 2007-10-15T21:14:02Z markmcspadden tag: 2007-10-15T21:12:00Z 2007-10-15T21:14:02Z The Ruby Abandonment Threshold Survey <p>If you work with Ruby, check out this survey:</p> markmcspadden tag: 2007-09-13T20:54:00Z 2007-09-13T21:04:47Z TMobile + iPhone = Awesomeness From my tw...
http://feeds.feedburner.com/MarkMcSpadden
crawl-002
refinedweb
4,359
72.16
In this tutorial I will walk you through some of the uses of the Twitter REST API, and how you can use it to create a game that not only displays real-time Tweets, but uses them to generate objects the player can interact with. Before you read this tutorial, I recommend that you read the AS3 101 sessions by Dru Kepple,...
https://code.tutsplus.com/tutorials/golden-eggs-build-a-flash-game-using-twitter-api-calls--active-9686
CC-MAIN-2017-51
refinedweb
6,457
68.2
- What Is a Heap? - Heap Corruptions - Summary In Chapter 5, "Memory Corruption Part I—Stacks," we discussed how stack-based buffer overflows can cause serious security problems for software and how stackbased buffer overflows have been the primary attack angle for malicious software authors. In recent years, however, ...
http://www.informit.com/articles/article.aspx?p=1081496&amp;seqNum=3
CC-MAIN-2018-51
refinedweb
6,341
58.01
Comment: Re:A video about MOFs (Score 1) 96 This is a very illustrative video, worth spending a few minutes on if you are new to this topic like I am. This is a very illustrative video, worth spending a few minutes on if you are new to this topic like I am. It might get in the way of computer geeks like you, but won't ...
http://slashdot.org/~Martin+Soto/tags/bertoni
CC-MAIN-2014-42
refinedweb
1,131
66.27
Is there any way to combine 2 item number boxes for a repeat region? attached is an example of what I would like my BOM to look like. I would like one item number for two different part numbers. Merging of cells in repeat region is not possible. You could do something close with a little leg work, but no, you can't mer...
https://community.ptc.com/t5/Detailing-MBD-MBE/Combining-Bill-of-Material-Columns/m-p/342244
CC-MAIN-2020-29
refinedweb
295
70.02
It's July, and that means our second major release of 2016 has been released into the wild. You'll find some fantastic new controls and a lot of great enhancements. -! - Platform News See What's New in Release 2.0, released July 2016 Top News FlexChart for UWP, WPF, and WinForms We're in the process of a full-scale ref...
https://www.grapecity.com/blogs/componentone-studio-whats-new-in-v2-2016/
CC-MAIN-2019-30
refinedweb
2,482
50.23
Gyrex/Concepts/Http Applications The OSGi HTTP service allows registering servlets and resources which can then be accessed over HTTP. Gyrex makes heavy use of the OSGi HTTP service. All offered services are made available over HTTP. Additionally, an admin interface will be provided which can also be accessed over HTTP...
https://wiki.eclipse.org/Gyrex/Concepts/Http_Applications
CC-MAIN-2017-04
refinedweb
948
50.43
#include <deal.II/lac/sparse_vanka.h> Point-wise Vanka preconditioning. This class does Vanka preconditioning on a point-wise base. Vanka preconditioners are used for saddle point problems like Stokes' problem or problems arising in optimization where Lagrange multipliers occur and the Newton method matrix has a zero b...
http://www.dealii.org/developer/doxygen/deal.II/classSparseVanka.html
CC-MAIN-2017-43
refinedweb
1,508
62.98
A. In most applications, the RTC is used primarily to preserve a valid time even during periods where the primary power supply is unavailable. For this reason, these systems include some type of backup battery (usually a CR2032) driving the RTC. In this case you obviously can’t derive the RTC clock from HSE/HSI as thes...
https://techoverflow.net/2014/11/01/using-the-lwip-sntp-client-with-chibios/
CC-MAIN-2018-05
refinedweb
822
55.24
12 January 2012 22:42 [Source: ICIS news] WASHINGTON (ICIS)--?xml:namespace> The department said retail spending last month was at a seasonally adjusted pace of $400.6bn (€316.5bn), just 0.1% higher than the November level. The flat sales figures for December were seen as disappointing by economists, many of whom had p...
http://www.icis.com/Articles/2012/01/12/9523413/us-retail-sales-flat-in-dec-but-full-year-spending-rises-by-7.7.html
CC-MAIN-2014-52
refinedweb
165
53.92
gnutls_record_set_max_empty_records — API function #include <gnutls/gnutls.h> is a gnutls_session_t structure. is the desired value of maximum empty records that can be accepted in a row. Used to set the maximum number of empty fragments that can be accepted in a row. Accepting many empty fragments is useful for receiv...
https://man.linuxexplore.com/htmlman3/gnutls_record_set_max_empty_records.3.html
CC-MAIN-2021-31
refinedweb
122
62.68
Xacobeo::UI::Window - Main window of Xacobeo. use Gtk2 qw(-init); use Xacobeo::UI::Window; my $xacobeo = Xacobeo::UI::Window->new(); $xacobeo->signal_connect(destroy => sub { Gtk2->main_quit(); }); $xacobeo->show_all(); Gtk2->main(); The application's main window. This widget is a Gtk2::Window. The following properties...
http://search.cpan.org/~potyl/Xacobeo-0.15/lib/Xacobeo/UI/Window.pm
CC-MAIN-2016-44
refinedweb
222
63.15
Hello, I'm trying to have a STL set of pointer-to-member-functions in my class. I already know how to declare and define pointers-to-functions and use them with an ordinary array, but using the STL containers has proven problematic. It kind of works with vectors if I choose to use .push_back(), but .insert() gives me e...
https://cboard.cprogramming.com/cplusplus-programming/110041-set-pointer-methods.html
CC-MAIN-2017-43
refinedweb
124
82.75
The Python runtime sees all Python objects as variables of type PyObject*. A PyObject is not a very magnificent object - it just contains the refcount and a pointer to the object's ``type object''. This is where the action is; the type object determines which (C) functions get called when, for instance, an attribute ge...
http://python.org/doc/2.2/ext/dnt-basics.html
crawl-002
refinedweb
1,094
62.78
I'm thinking of building a 24 1TB disk NAS box, but I'm not sure what the best drive configuration is. I'm looking at using the areca ARC-1280ML-2G controller, and hanging all 24 drives off of it. I'd like it all to be mounted as one volume, due to the type of data we're storing on it. One crazy idea we had was to conf...
http://serverfault.com/questions/30362/raid-configuration-for-large-nas
crawl-003
refinedweb
1,276
77.47
Hi folks. Recent meditations on sorted hash implementations reminded me of a module that I hacked together about a year ago and never did much with. I dug it out and did a little bit of extra stuff on it to make it complete, wrote some tests for it (not enough as yet alas) and now i'm presenting here. Partially becuase...
http://www.perlmonks.org/index.pl?node_id=289584
CC-MAIN-2014-41
refinedweb
2,959
75
Hi, On Fri, Sep 09, 2011 at 01:57:38AM +0200, Michael Niedermayer wrote: > > One decoder breaks with this patch: mpegaudio. It seems to do weird things > > with two get bit context and switching them while decoding. I will try to > > have a look at it (unless someone would volunteer to explain me what it is > > doing :...
http://ffmpeg.org/pipermail/ffmpeg-devel/2011-September/114580.html
CC-MAIN-2016-22
refinedweb
296
58.96
python day 26: When i was in Partial Differential Equation class, my deskmate would take out a notebook and play five-in-a-row with me. Many years have passed by, I bearly recall anything about PDE, but i still remember the little definite joy when i was late to class, I knew my deskmate would have the board ready and ...
https://fangya18.com/2020/08/15/python-with-tic-tac-toe/
CC-MAIN-2021-17
refinedweb
322
66.78
The following Error Message shows up in the last 'Plot' procedure: In Z(Q), 'numpy.float64' object is not iterable. I would like Z(Q) returns value that sum each i in the range (0, len(p)), which is a function with variable Q. And finally the plot is Q(X Axis) and Z(Q)(Y Axis) for each Q it can be plotted. How can I mo...
https://programmersheaven.com/discussion/438393/how-to-change-this-define-function
CC-MAIN-2019-22
refinedweb
172
86.5
What are Observables in Angular? In this tutorial, I am going to explain What is Observable and Where/When we use it. We use Observable to perform asynchronous operations and handle asynchronous data. Another way of handling asynchronous is using promises. We can handle asynchronous operations using either Promises or ...
https://kasunprageethdissanayake.medium.com/what-are-observables-in-angular-5e89d159a4e6?source=user_profile---------0----------------------------
CC-MAIN-2022-40
refinedweb
1,184
59.6
showell30@yahoo.comBAN USER @tpcz, How is this problem not inherently exponential? The numbers from positions i to j can generate 3 ^ (i+j-1) different sums, depending on where you put the minus signs and/or omit numbers. How does your DP matrix look for the use case of target 12 and elements 9999, 9998, 11? Aren't the...
https://careercup.com/user?id=14941696
CC-MAIN-2021-49
refinedweb
6,435
60.14
This action might not be possible to undo. Are you sure you want to continue? 8827 Credit For Prior Year Minimum Tax—Corporations Attach to the corporation’s tax return. OMB No. 1545-1257 Department of the Treasury Internal Revenue Service Name Employer identification number Minimum Tax Credit for 1992 1 2 3 Alternativ...
https://www.scribd.com/document/542766/US-Internal-Revenue-Service-f8827-1992
CC-MAIN-2016-50
refinedweb
724
55.27
CONTENTS. Is there a Windows version of Salome? 1.3.2. Where I can check if there a version of Salome for my operating system? 1.3.3. Can I have Salome platform ported to my operating system? 1.3? 4.11.6. How to do local mesh refinement in the Salome V3.2.1? 4.11.7. How to export/import groups to UNV? 4.11.8. How to me...
http://www.salome-platform.org/faq/
crawl-001
refinedweb
1,601
56.55
The Windows Phone SDK includes the launcher “MarketplaceReviewTask” that launches the Windows Phone Marketplace client App and shows the review page for the current Application . To add the Marketplace ReviewTask in Windows Phone , follow the below steps 1. Add the namespace MIcrosoft.Phone.Tasks to your Code Behind fi...
http://developerpublish.com/marketplace-reviewtask-in-windows-phone/
CC-MAIN-2018-13
refinedweb
147
53.21
This extension adds information about the code block to each closing bracket of your code. This helps you understand the code faster, as you don't need to search for the opening bracket first.. Header information for each block of code Icons for each type of condition/header. Eg: public class , do while , ... Fast navi...
https://marketplace.visualstudio.com/items?itemName=KhaosPrinz.CodeBlockEndTag
CC-MAIN-2021-43
refinedweb
103
56.96
Hi Stefan, just a few things : 1) as we are using Junit4, you don't need to specify that the class extends TestCase 2) you just need to add the @Test annotation in front of each test method : @Test public void testEqualsForDifferent() throws ParseException 3) To do so, you will have to add those imports : import org.ju...
http://mail-archives.apache.org/mod_mbox/directory-dev/200709.mbox/%3Cd45b08f00709301431t1c4f9fb3p62630f8c1918a6c8@mail.gmail.com%3E
CC-MAIN-2016-18
refinedweb
157
63.32
Parent Directory | Revision Log Again with a more up to date copy Updating all the dates I changed some files. Updated copyright notices, added GeoComp. It begins Round 1 of copyright fixes Data.cpp: Removed some namespace ambiguities which fixes doxygen warnings, some cleanup and reindent. *: doxygen fixes. First pass...
https://svn.geocomp.uq.edu.au/escript/branches/subworld2/escriptcore/src/DataTypes.h?view=log&amp;pathrev=5505
CC-MAIN-2019-18
refinedweb
324
60.31
Hi everyone, I have been working on this for about a week, looking at examples from all over the place and pouring through datasheets, but I cannot get this to work(or many ARM Features for that matter) I have worked with AVRs for a while and I love them, but I wanted to move up to ARM. I know a reasonable amount of C,...
http://embdev.net/topic/130731
CC-MAIN-2017-04
refinedweb
767
71.34
#include <MFnKeyframeDeltaTangent.h> A MFnKeyframeDeltaTangent function allows API programmers to read changes in keyframe tangent values. It captures changes in tangent type, as well as, changes in tangent time/value pair. MFnKeyframeDeltaTangents are generated by a MAnimMessage::addAnimKeyframeEditedCallback. Because...
http://download.autodesk.com/us/maya/2009help/API/class_m_fn_keyframe_delta_tangent.html
crawl-003
refinedweb
208
60.41
Table of Contents - Introduction - Quick Start Guide - I want to know more! Introduction Welcome to the official Mixpanel Flutter SDK. The Mixpanel Flutter SDK is an open-source project, and we'd love to see your contributions! We'd also love for you to come and work with us! Check out Jobs for details Quick Start Guid...
https://pub.dev/documentation/mixpanel_flutter/latest/
CC-MAIN-2021-31
refinedweb
391
50.23
add constraints to a route. For example, the following route maps browser requests to a controller named Blog and an action named Archive: routes.MapRoute( "BlogArchive", "Archive/{entryDate}", new { controller = "Blog", action = "Archive" } ); This route, named BlogArchive, maps three parameters. The controller param...
http://weblogs.asp.net/stephenwalther/archive/2008/08/06/asp-net-mvc-tip-30-create-custom-route-constraints.aspx
crawl-002
refinedweb
1,621
50.02
The original version wasn't passing anymore because of new test cases that cause overflow. So now we're avoiding computing the differences below if the result will be negative. This avoids overflow in cases where the rectangles are far apart. It looks like this is basically the same thing that @shw1500 was suggesting, ...
https://discuss.leetcode.com/topic/15830/simple-0ms-c-solution-using-min-and-max-updated-again-to-avoid-overflow
CC-MAIN-2017-47
refinedweb
1,872
64.1
how to validate if response field is expected to return X and Y. Hello , I want to assert on a a response field(string comparison assert) . But the response field value returns X and Y . Both values are Valid. I want my assertion to pass the test in both cases. I know we can assert on one expected value. can you please...
https://forums.parasoft.com/discussion/2862/how-to-validate-if-response-field-is-expected-to-return-x-and-y
CC-MAIN-2019-09
refinedweb
387
74.69
AMucha 2009/09/21 Use the excellent little package pdf4tcl. It can directly transform a canvas into a pdf-file. Leave the rest of the hard work for the people from Adobe :-) (See Printing under Windows) # Example printing a canvas with pdf4info package require pdf4tcl ; # Get the package pdf4tcl::new mypdf -paper a4 -m...
http://wiki.tcl.tk/949
CC-MAIN-2014-52
refinedweb
1,177
64.2
Configuration and deployment of an dynamic-server Resin cluster. Resin's cloud support is an extension of its clustering. It is the third generation of Resin clustering, designed for elastic clusters: adding and removing servers from a live cluster. A triple-redundant hub-and-spoke network is the heart of a Resin clust...
http://caucho.com/resin-4.0/admin/cluster-cloud.xtp
CC-MAIN-2015-35
refinedweb
2,214
57.57
0 Hey! So i have started learning c, quite refreshing when i normally code in Java :) I have this task where i need to store three int values in an unsinged int via bitwise operators. Its for a RGB picture where the colour is limited to 256. I have done this succesfully(i hope :) ) : unsigned int make_pixel(int red, in...
https://www.daniweb.com/programming/software-development/threads/434139/store-three-ints-in-one-unsigned-int-and-retrieve-them
CC-MAIN-2016-50
refinedweb
267
54.16
Published 2 months ago by segun i am trying to update my user details in the database but i am getting the above error here is my code on a gist file thanks in advance : Missing argument 2 ... obviously your id that you are not passing to the controller. How is Laravel supposed to know which profile to update? Look at ...
https://laracasts.com/discuss/channels/laravel/missing-argument-2-for-apphttpcontrollersprofilecontrollerupdate
CC-MAIN-2017-22
refinedweb
824
65.35
Microsoft Reacts To Feedback But Did They Get Windows 8.1 Right? 543 MojoKid." I tested Windows 8.1 (Score:5, Funny) Windows 8.1 is by far the best Windows there is! Re:I tested Windows 8.1 (Score:4, Interesting) So how much are they paying for posts these days? I figure it must be down from the glory days of slashdot....
https://tech.slashdot.org/story/13/07/01/1754242/microsoft-reacts-to-feedback-but-did-they-get-windows-81-right?sdsrc=popbyskidbtmprev
CC-MAIN-2016-44
refinedweb
7,790
73.27
The Cable Guy - March 2004 Local Server-Less DNS Name Resolution for IPv6 Local Server-Less Domain Name System (LSLDNS), also known as multicast DNS, is a new capability in the IPv6 protocol that is provided with Microsoft Windows CE version 4.1 and later. LSLDNS is described in the Internet draft titled "Local Server-...
https://technet.microsoft.com/en-us/library/bb878001.aspx
CC-MAIN-2017-09
refinedweb
1,474
52.12
PVS-Studio Probes into Linux' Innards (3.18.1) - What was checked - How the check was done - A few words about security for a start - Suspicious fragments - Conclusion For the sake of advertisement, we decided to analyze the Linux kernel with our static code analyzer. The difficulty of this task makes it especially int...
http://www.viva64.com/en/b/0299/
CC-MAIN-2016-30
refinedweb
5,482
58.18
This sample demonstrates how you can use the AutoCompleteExtender control from ASP.NET AJAX Control Toolkit and customize its behavior without modifying it. I like Google's suggest feature and was thinking of using it in any of my projects. ASP.NET's AJAX Control Toolkit has a similar control ( AutoCompleteExtender) wh...
http://www.codeproject.com/KB/ajax/autosuggestextender.aspx
crawl-002
refinedweb
577
61.77
Dino Esposito One of the things I like most in ASP.NET MVC is the ability to expose a façade of methods that can be easily invoked from HTTP clients, including jQuery-based pages, mobile apps and plain C# back ends. For a long time, building this service layer took place in the realm of Windows Communication Foundation...
http://msdn.microsoft.com/en-us/magazine/dn574797.aspx
CC-MAIN-2014-23
refinedweb
1,502
54.52
Console Applications Hi all, through this wizard: File > New file or Project > Application > Qt console application, I created a project and wrote this into main.cpp: #include <QCoreApplication> #include <qtextstream.h> QTextStream cout(stdout, QIODevice::WriteOnly); int main(int argc, char** argv) { // avoid compiler ...
https://forum.qt.io/topic/76952/console-applications
CC-MAIN-2017-39
refinedweb
3,556
73.47
Write a C, C++ program to find largest element in an unsorted array. You can solve this problem using multiple approach. First Approach Sort an array. Once array is sorted, last element of an array is largest. For sorting you can use selection sort, Bubble Sort , QuickSort, MergeSort etc. Quicksort and MergeSort is bes...
http://www.cprogrammingcode.com/2012/05/write-program-to-find-largest-element.html
CC-MAIN-2021-17
refinedweb
235
62.17
jLinq – Extending A Method It wasn’t until late into the jLinq project that I had the idea that you should be able to extend your own methods onto the main library. jLinq ended up having quite a rewrite in order to make it fit that model. jLinq is actually entirely composed to extension methods which I suppose is a for...
https://somewebguy.wordpress.com/2009/05/03/jlinq-extending-a-method/
CC-MAIN-2017-17
refinedweb
574
61.06
Python provides a powerful set of tools to create and manipulate lists of data. In this part, we take a deep dive into the Python list type. We use Python lists to implement and optimize the Sieve of Eratosthenes, which will produce a list of all prime numbers up to a big number (like 10 million) in a snap. Along the w...
https://nbviewer.jupyter.org/github/MartyWeissman/Python-for-number-theory/blob/master/P3wNT%20Notebook%203.ipynb
CC-MAIN-2019-43
refinedweb
6,475
75.81
wcscpy, wcscpy_s From cppreference.com 1) Copies the wide string pointed to by src(including the terminating null wide character) to wide character array pointed to by dest. The behavior is undefined if the destarray is not large enough. The behavior is undefined if the strings overlap. / sizeof(wchar_t) destszis less ...
http://en.cppreference.com/w/c/string/wide/wcscpy
CC-MAIN-2017-26
refinedweb
147
57.37
19 May 2010 09:31 [Source: ICIS news] SHANGHAI (ICIS news)--China’s top economic planning body, the National Development and Reform Commission (NDRC), has issued an initial permit for a joint-venture refinery and petrochemical complex between Sinopec and Kuwait Petroleum Corp (KPC) in Guangdong province, a local offici...
http://www.icis.com/Articles/2010/05/19/9360655/chinas-ndrc-issues-initial-permit-for-sinopec-kpc-project.html
CC-MAIN-2014-52
refinedweb
192
53.55
In server-side Swift projects, Apple’s Swift Package Manager, or SPM, lets you manage your project dependencies, allowing you to import libraries into your applications with ease. In this tutorial, you’ll build a website to display random idioms. You’ll learn how to manage projects and dependencies, and how to read and...
https://linksoftvn.com/an-introduction-to-swift-package-manager/
CC-MAIN-2019-18
refinedweb
2,560
65.32
since there is no support for autologin using kde-keyring, gnome-keyring is the only option. most build time switcher are documented here (aka read the f****** code) Search Criteria Package Details: retroshare 0.6.2-1 Dependencies (14) - curl (curl-git, curl-http2-git) -) - libmicrohttpd (libmicrohttpd-git) - libupnp -...
https://aur.archlinux.org/packages/retroshare/?comments=all
CC-MAIN-2017-34
refinedweb
4,095
67.65
might help you for setting the correct parameters of LV_FINDINFO-structure: int CMyGridList::FindItemData( // --- In : dwItemData : Original data to search for // --- Out : // --- Returns : The index of the item that has this original data associated with it // --- Effect : This functions calls the underlying window p...
https://www.experts-exchange.com/questions/10064671/How-do-u-find-string-in-a-CListCtrl.html
CC-MAIN-2018-22
refinedweb
368
62.48
Curl Syntax in Elasticsearch with Examples Curl syntax We use HTTP requests to talk to ElasticSearch. A HTTP request is made up of several components such as the URL to make the request to, HTTP verbs (GET, POST etc) and headers. In order to succinctly and consistently describe HTTP requests the ElasticSearch documenta...
http://mindmajix.com/elasticsearch/curl-syntax-with-examples
CC-MAIN-2016-44
refinedweb
920
57.16
look VoIP Keep Your Number VoIP Keep Your Number VoIP Keep Your Existing Phone Number Changing your phone service to Lingo VoIP phone service is easy, even better since you can keep Keep servlet session alive - Development process Keep servlet session alive Hi, I am developing an application in java swing and servlet. ...
http://www.roseindia.net/tutorialhelp/comment/91697
CC-MAIN-2015-06
refinedweb
3,094
56.66
libidn-framework From GNU IDN Library - Libidn. This podspec uses a fork of libidn to fix a few minor issues related to CocoaPods integration. UsageUsage To run the example project, clone the repo, and run pod install from the Example directory first. InstallationInstallation libidn is available through CocoaPods. To i...
https://cocoapods.org/pods/libidn
CC-MAIN-2018-47
refinedweb
157
52.36
This patch creates a list of allowed filesystems per-namespace. The goal is to prevent users inside a container, even root, to mount filesystems that are not allowed by the main box admin. My main two motivators to pursue this are: 1) We want to prevent a certain tailored view of some virtual filesystems, for example, ...
http://article.gmane.org/gmane.linux.kernel.cgroups/723
CC-MAIN-2017-30
refinedweb
287
60.92
I run a pair of GNU/Linux VPS's, one running Plex as a client and the other as a storage server for media. They both run on "the cloud" hosted by different providers. I've been noticing lately that transfer rates between them over SSHFS have been lagging, causing buffering and drop issues for some of my media streams. ...
https://practicaldev-herokuapp-com.global.ssl.fastly.net/joshbaptiste/replacing-openssh-sftp-with-sftpgo-gkc
CC-MAIN-2021-21
refinedweb
1,299
57.98
import "gopkg.in/kubernetes/kubernetes.v0/pkg/clientauth" Package authcfg defines a file format for holding authentication information needed by clients of Kubernetes. Typically, a Kubernetes cluster will put auth info for the admin in a known location when it is created, and will (soon) put it in a known location with...
https://godoc.org/gopkg.in/kubernetes/kubernetes.v0/pkg/clientauth
CC-MAIN-2019-30
refinedweb
350
51.65
ClassCastException after redeployAlexander Hachmann Oct 11, 2006 9:30 AM Hi there, I am quiet frustrated with having a strange behavior I do not understand. I have an EAR Application containing an EJB and a WAR. In the EJB I have a small HelloWorld Class being remote and local. I Call this class from the Servlet in the...
https://developer.jboss.org/thread/120975
CC-MAIN-2019-04
refinedweb
899
56.55
October 9, 2017 | Written by: David Provan Categorized: Compute Services | How-tos | Integration Share this post:. As we dug deeper to find previous artifacts and frameworks that we could take advantage of, we found Spring Social as one of the Spring Projects. It has core support for both Twitter and Facebook and linke...
https://www.ibm.com/blogs/bluemix/2017/10/using-spring-rest-liberty-buildpack/
CC-MAIN-2018-17
refinedweb
940
51.34
GPIO Mappings¶ This document explains how GPIOs can be assigned to given devices and functions. Note that it only applies to the new descriptor-based interface. For a description of the deprecated integer-based GPIO interface please refer to gpio-legacy.txt (actually, there is no real mapping possible with the old inte...
https://www.kernel.org/doc/html/latest/driver-api/gpio/board.html
CC-MAIN-2018-43
refinedweb
885
53.1
So I checked the .Net framework forum, and there was no 'general' section, nor was there a 'Windows.Forms' section (but there was a WPF section...). I attempted posting a similar question to this post in the VB.Net forum, with no assistance. The only reason is because the job is in VB. But really the question I have is...
http://www.dreamincode.net/forums/topic/197955-return-focus-to-a-windowsformsdatagridview/
CC-MAIN-2017-17
refinedweb
644
68.91
I now have the final list of sessions that I will be attending at VMworld. As I noted last time I had a lot of waitlists which it now appears I have not made the cut for most of the sessions. That means I will be at our booth (#2422) almost all of today (Aug 31, 2009) and at the times when I am not attending a session....
https://blogs.technet.microsoft.com/virtualization/2009/08/31/follow-us-on-twitter-and-get-a-chance-to-win-a-zune-hd/
CC-MAIN-2018-30
refinedweb
169
71.85
Our saltstack is based on hostnames (webN., dbN., etc.). But for various things I need IPs of those servers. For now I had them stored in pillars, but the number of places I need to sync grows. I tried to use publish + network.ip_addrs, but that kinda sucks, because it needs to do the whole salt-roundtrip just to resol...
https://codedump.io/share/Liss1k7VZMQQ/1/how-to-get-ip-address-of-hostname-inside-jinja-template
CC-MAIN-2017-43
refinedweb
150
69.48
Development/Tutorials/Plasma4/Ruby/SimplePasteApplet Warning: This tutorial has not yet been completely tested and might contain incorrect information or examples. Contents Abstract This tutorial will explain how to make simple KDE Plasma applet using Ruby. The applet will be a simple version of the paste applet. It wi...
https://techbase.kde.org/index.php?title=Development/Tutorials/Plasma4/Ruby/SimplePasteApplet&oldid=37587
CC-MAIN-2020-50
refinedweb
983
67.25
Archive Implementing IEPNGFix as a Reusable Control Even with IE 8.0 on the horizon, a great deal of our internal users are still using IE 5.5 and 6.0. While, for the most part, our current coding techniques are unaffected, we did move to using PNG files quite a while ago and are faced with rendering issues as the targ...
https://tiredblogger.wordpress.com/category/windows-xp/
CC-MAIN-2016-44
refinedweb
1,398
67.25
Project Euler #17: Number to Words Project Euler #17: Number to Words + 13 comments Thanks all for discussion! I want to share some hints, that helped me to complete this challenge. All of them were mentioned in the discussion. - Test yout code against powers of 10: 10, 100, 1000 etc - Make sure you have not misspelled...
https://www.hackerrank.com/contests/projecteuler/challenges/euler017/forum
CC-MAIN-2022-05
refinedweb
395
58.92
From Python to Rust: Part 3. In our last article we looked at how we can use Strings in Rust to store Genome data (DNA sequences). We will be using Strings extensively in our future code as they are very convenient when it comes to storing and manipulating DNA/RNA data. In this article we are taking a look at one more,...
https://rebelscience.club/2020/06/from-python-to-rust-part-3/
CC-MAIN-2020-45
refinedweb
1,412
72.56
The last Ajax feature we will look at in this chapter is remote validation. This is a hybrid of the model validation techniques I showed you in Chapter 29. The validity of a property is evaluated by an action method invoked using an Ajax call at the client. The first step in setting up remote validation is to add an ac...
https://www.safaribooksonline.com/library/view/applied-aspnet-4/9781430234678/performing_remote_validation.html
CC-MAIN-2018-13
refinedweb
131
50.73
This the third part in a four part series about how to use Python for heart rate analysis. In this part you will learn about how to improve peak detection using a dynamic threshold, signal filtering, and outlier detection. > - Part 1: Opening the data, detecting the first peaks and calculating the BPM; - Part 2: Extrac...
http://www.paulvangent.com/2016/03/30/analyzing-a-discrete-heart-rate-signal-using-python-part-3/?replytocom=120
CC-MAIN-2020-24
refinedweb
5,677
63.7
OfxMessageSuiteV2::setPersistentMessage — Post a persistent message on an effect, using printf style varargs, and set error states. New for V2 message suite. #include "ofxMessage.h" \returns kOfxStatOK- if the message was sucessfully posted kOfxStatErrBadHandle- the handle was rubbish kOfxStatFailed- if the message cou...
http://openeffects.org/documentation/reference/re91.html
CC-MAIN-2018-26
refinedweb
144
50.87
These three patches (for discussion only, NOT to be applied) implement a mutex system that lets the user limit the number of libguestfs instances that can be launched per host. There are two uses that I have identified for this: firstly so we can enable parallel-tests (the default in automake >= 1.13) without blowing u...
https://www.redhat.com/archives/libguestfs/2013-February/msg00087.html
CC-MAIN-2020-05
refinedweb
294
59.43
Automatic differentiation with dual numbers Project description HyperJet — Algorithmic Differentiation with Hyper-Dual numbers for Python and C++ A header-only library for algorithmic differentiation with hyper-dual numbers. Written in C++17 with an extensive Python interface. Installation pip install hyperjet Quicksta...
https://pypi.org/project/hyperjet/
CC-MAIN-2021-21
refinedweb
496
58.89
Created on 2014-09-20 23:50 by rhettinger, last changed 2016-09-09 23:48 by orsenthil. This issue is now closed. The use of urllib for REST APIs is impaired in the absence of a "Accept: */*" header such as that added automatically by the requests package or by the CURL command-line tool. # Example that gets an incorrec...
https://bugs.python.org/issue22450
CC-MAIN-2020-29
refinedweb
1,401
63.9