text
stringlengths
175
47.7k
meta
dict
Q: Mapkit, how to detect annotations have loaded I want the annotations callout to popup when the pin has finished it's drop animation. Currently I am able to simulate it with the following method: - (void)showCallOut { [myMapView selectAnnotation:[myMapView.annotations objectAtIndex:0] animated:YES]; } In my v...
{ "pile_set_name": "StackExchange" }
Q: C++: I need some guidance in how to create dynamic sized bitmaps I'm trying to create a simple DBMS and although I've read a lot about it and have already designed the system, I have some issues about the implementation. I need to know what's the best method in C++ to use a series of bits whose length will be dyna...
{ "pile_set_name": "StackExchange" }
Q: Xamarin cross-platform visual studio bottom navigation I just started using xamarin in visual studio for building cross-platform apps, and i was searching on the internet for some tutorial etc, and i ran into a website "material.io" and i found this amazing bottom navigation So i searched on google for a tutorial ...
{ "pile_set_name": "StackExchange" }
Q: sed over ssh doesn't escape backslash I'm trying to add a line before "rezhome" in the file as it would look like below: ... app3-reservation, \ app4-reservation, \ app5-reservation, \ rezhome When I run locally with below command it works fine. sed -i 's/rezhome/app5-reservation, \\\n&/' grouphost.cfg But using...
{ "pile_set_name": "StackExchange" }
Q: Generalization of Lévy's continuity theorem for nuclear spaces I am interested in a generalization of the following finite-dimensional results in infinite dimensional vector-space with nuclear structure, especially for the cases of the spaces of distributions $\mathcal{D}'(\mathrm{R}^N)$ and $\mathcal{S}'(\mathrm{...
{ "pile_set_name": "StackExchange" }
Q: SSRS 2008 R2 / 2012 Width Property Unit of Measure Default Setting Is there a way to configure the default unit of measure for the width / height properties used to size cells / rows? If I add a table and configure the width of the columns to a value specified in "pt" rather than "cm" I have to change them all as...
{ "pile_set_name": "StackExchange" }
Q: What's the simplest way to deploy a Grails-generated WAR file? I've been having persistent problems (for several weeks) getting Tomcat to deploy a WAR file. I'm looking for a simple server. It does not need to have a lot of functionality-it just needs to be simple to set up. In particular I'm looking for a program...
{ "pile_set_name": "StackExchange" }
Q: is it possible to have getline() function accept wistream& Just for clarification, I'm referring to the global getline() function in the string class. What I want to do is to have something like this: int main() { wifstream in(L"textfile.txt"); someFunc(in); return 0; } void someFunc(const wistream& rea...
{ "pile_set_name": "StackExchange" }
Q: What accounts for the dots in the names of these functions I'm debugging why my Boost.Python module won't load in Ubuntu. Interestingly, the problem comes before my module is actually loaded. A simple, foo C++ module confirms this. The stack trace shows calls to boost::python::* which are absent in our larger l...
{ "pile_set_name": "StackExchange" }
Q: Boostrapvalidator not fired simple form I am trying to validate my form, the form is having simple elements: but however, the boostrap validator is not called. https://jsfiddle.net/dtjmsy/24hzp7mk/16/ $('#form_hr').bootstrapValidator({ i don' t know where the problem is coming from, can you help me out Cheers...
{ "pile_set_name": "StackExchange" }
Q: Integrating OAuth 2.0 with CodeIgniter https://github.com/alexbilbie/CodeIgniter-OAuth-2.0-Server I have found this on GitHub however the steps to implement don't really help with installing the OAuth code into CodeIgniter and haven't found any really good articles on how to do this Has anyone already done this th...
{ "pile_set_name": "StackExchange" }
Q: Approximations for the partial sums of exponential series Though the question here (Partial sums of exponential series - Stack Exchange) is similar, it is more specialized and I rather need a general approximation for an arbitrary partial sum. Essentially, I am trying to approximate the probability mass function ...
{ "pile_set_name": "StackExchange" }
Q: How to return a value See my code and please see what is my problem $('#StartPiCam').click(function(){ $.ajax({ url: "StartPiCam", type: "GET", data: "value=1", //dataType: "json", //success: onDataReceived }); ...
{ "pile_set_name": "StackExchange" }
Q: Go: Anonymous Function Here is the code I've been trying to understand: package main import ( "fmt" ) func squares() func() int { var x int return func() int { x = x + 2 return x * x } } func main() { f := squares() fmt.Println(f()) fmt.Println(f()) fmt.Println(f(...
{ "pile_set_name": "StackExchange" }
Q: Which is a better implementation of a stack data structure (based on an array)? This is a version I made: #include <stdio.h> #include <stdbool.h> #define MAX_STACK_SIZE 255 typedef struct { int array[MAX_STACK_SIZE]; unsigned int count; unsigned int max; } Stack; void initialize(Stack*); void push(S...
{ "pile_set_name": "StackExchange" }
Q: Sketch f(x,y)=(21/4)x^2y over the region x^2 <= y <= 1 Can someone share a technique using MATLAB to plot the surface f(x,y)=(21/4)x^2y over the region x^2 <= y <= 1? Also, if anyone is aware of some tutorials or links that would help with this type of problem, could you please share them? Thanks. Here is another...
{ "pile_set_name": "StackExchange" }
Q: Binding multivalued column's data into combo box via vba ms access I have a table as follows Where the BranchIds column is a multivalued column referering the ids of the branches table. Some how i need to bind the id and its related value in a combo box residing in another access forms as follows The permission ...
{ "pile_set_name": "StackExchange" }
Q: Proper way to use @Transactional on a service I have a service, which uses multiple DAOs to do a unit of work like following. The DAOs fetch the data/save by creating a session and commit. In that case, why do i need to have transactional on the service when the dao is managing the session by itself? If something...
{ "pile_set_name": "StackExchange" }
Q: Print negated words that follows "no,not,never" in a sentence in Python How do I print all negated word that follows "no","not", "never" so on. The sentence is SENTENCE="It was never going to work.I'm not happy" Desired output going,happy (Which follows never and not) Any help ! A: You may not need ntlk for t...
{ "pile_set_name": "StackExchange" }
Q: Audio won't play in iOS Cordova Phonegap app I am creating a cross platform Cordova Phonegap soundboard app. Everything works fine on the android version but on the iOS version the sound refuses to play. I use SoundJS and PreloadJS to load and play the audio. I used the Phonegap remote debugging server and found o...
{ "pile_set_name": "StackExchange" }
Q: How valid is lying to players about the rolls they are making in The Dresden Files? In last weeks Dresden Files game, the players followed the bad guy using a tracking spell, and found him in the projects at an apartment that they knew little about. Seeing his car, they decided to set it aflame to get him out of ...
{ "pile_set_name": "StackExchange" }
Q: Вывод текущего месяца, задваиваются цифры на php Всем добрый вечер! Нужно вывести месяц, выходные отметить красным, текущую дату обвести. При выводе удваиваются цифры. Подскажите, в чем причина? Заранее спасибо. <style> .normal:hover { background-color: black; color: white; } .weekend:hover { backgr...
{ "pile_set_name": "StackExchange" }
Q: how to hide kestrel console? I have a .net core app that I want to run in background, but I can't seem to get rid of the console window of Kestrel. Is there any way to hide it without running the app as a windows service? I've tried to remove any reference related to Logger, it didnt help. here is my Program.Main:...
{ "pile_set_name": "StackExchange" }
Q: ajax post return the html I have this ajax function (refer below) $.ajax({ url: "processor.php", type:"POST", data: { 'id' : "itemid, 'itemname' : itemname, 'itemdesc' : itemdesc" } , success:function(e){ if(($.trim(e) == "success")){ alert("success"); }else{ ...
{ "pile_set_name": "StackExchange" }
Q: Tosca - Java Exception while running Swing Application (JTree) I am learning tosca and currently we are trying to run a regression test suite for a legacy Java Swing application. My Test suite contains 4 modules (in JTree) and it is getting failed while clicking a node. The Error I received on the module is, at.t...
{ "pile_set_name": "StackExchange" }
Q: LaPlace Transform of a step function Consider the function $f(t)=\begin{cases} 0 \;\;\;\;\;\;\;\;\;\;\;t<\pi \\t-\pi \;\;\;\;\; \pi\leq t \leq2\pi \\ 0 \;\;\;\;\;\;\;\;\;\;\; t\leq 2\pi \end{cases}$ Find the laplace transform of this function. What I did was I wrote it in terms of the step function $f(t...
{ "pile_set_name": "StackExchange" }
Q: How to have opacity on my texture in directx 9? Been trying hard to find a solution to this, but the results are pretty bad. Basically I want to draw a texture (it's made up of 2 triangles so it's a quad), and make them have alpha values (0-255, but 0-1 will do too). This is so that I can have that fade in/out eff...
{ "pile_set_name": "StackExchange" }
Q: GREP numeric range I have log file in following format 14:15 14:16 14:17 14:30 14:31 14:41 I want to grep based on 15 minute time interval. So in one case I want to grep time b/w 14:0-14:15 in another case I want to grep time b/w 14:15 14:30 Is there a way to do that in grep ? A: $ awk -v start=14:15 -v end=1...
{ "pile_set_name": "StackExchange" }
Q: IIIF: Get list of ids for all pages in book given one page in book I'm trying to download all page images from a book, and those images are hosted on a IIIF server. Here's the page: https://iiif.bodleian.ox.ac.uk/iiif/image/c444f7e2-ca30-48ae-87b5-54f93d6ed046/full/full/0/default.jpg (I got the id for that page fr...
{ "pile_set_name": "StackExchange" }
Q: How to detach a process from terminal in unix? When I start a process in background in a terminal and some how if terminal gets closed then we can not interact that process any more. I am not sure but I think process also get killed. Can any one please tell me how can I detach that process from my terminal. So eve...
{ "pile_set_name": "StackExchange" }
Q: SQL Server 2000: search through out database Some how some records in my table are getting updated with value of xyz in a certain column. Out of hundred of stored procedures, functions, triggers, how can I determine which code is doing this action. Is there a way to search through the database some how through eac...
{ "pile_set_name": "StackExchange" }
Q: Does `git commit` commit changes that were not added I'm trying to learn git using the 'Pro Git' book by Scott Chacon. When explaining how to Stage modified files (page 18), i understand with git add the files are scheduled for commit and then commited with git commit. It mentions that a commit is done, only the c...
{ "pile_set_name": "StackExchange" }
Q: Does $A=\{x\in\mathbb{Q}: x>0\}$ have any isolated points? Let $A=\{x\in\mathbb{Q}: x>0\}$ and $B=\{x\in\mathbb{R}: x>0\}$. I think that it is easy to understand and to prove that the set $B$ does not contain any isolated points, but can we say the same about set $A$? Are the point's in $A$ all isolated? A: If ...
{ "pile_set_name": "StackExchange" }
Q: Can you give an example why the active player wants to have priority in Beginning of Combat first? I've read this article published on blogs.magicjudges.org explaining the combat shortcut which is about (contrary to the normal proceeding) the Not Active Player (NAP) receiving priority prior to the Active Player (A...
{ "pile_set_name": "StackExchange" }
Q: Calculating area of sphere with constraint on zenith Let $\mathbb S_R$ be the sphere of radius $R$ centered about the origin. Consider $$A_R= \left\{ (x,y,z)\in \mathbb S_R \mid x^2+y^2+(z-R)^2\leq 1 \right\}.$$ I want to calculate the area of this region of the sphere with radius $R$ about the origin. I already c...
{ "pile_set_name": "StackExchange" }
Q: How does Sodium Valproate cause neural plasticity I have been reading a fascinating paper: Valproate reopens critical-period learning of absolute pitch 18 individuals were given Sodium Valproate (VPA) for a fortnight during which they trained on a pitch-training game. Results suggest that VPA reopens the plasticit...
{ "pile_set_name": "StackExchange" }
Q: DataGrid In Java Struts Web Application After scouring the web I have edited my question from the one below to what it is now. Ok I seem to understand that I don't need all the capabilities of excel right now. I think i am satisfied having a data grid to display data. Basically i am working on Struts 2 and I wat m...
{ "pile_set_name": "StackExchange" }
Q: How do I get to the "Fowl Lair" In a separate forum I was reading, a poster described an easter egg area called "The Fowl Lair". I could imagine that this is the replacement for the Cow Level from Diablo II, but I hope that is not the case. How do I get to this area? Are there any monsters or treasure to be had...
{ "pile_set_name": "StackExchange" }
Q: How do I ensure a sequence has a certain length? I want to check that an IEnumerable contains exactly one element. This snippet does work: bool hasOneElement = seq.Count() == 1 However it's not very efficient, as Count() will enumerate the entire list. Obviously, knowing a list is empty or contains more than 1 el...
{ "pile_set_name": "StackExchange" }
Q: catch integrity constraint error in symfony and doctrine I have two tables which are: Category: |id | cat_name | | 1 | nameone | | 2 | nametwo | | 3 | namethree | News: | id | id_cat | title | | 1 | 1 | title1 | | 2 | 2 | title2 | | 3 | 3 | title3 | | 4 | 3 | title4 | | 5 | 3 ...
{ "pile_set_name": "StackExchange" }
Q: How to Java doc an invariant for a class? I'm wanting to know where exactly the comment should go and what keyword I should use as I cant really seem to find an example online, should I for example do this? /** * @invariant invariant example */ public class Example { } A: There are a few possibilites @Contr...
{ "pile_set_name": "StackExchange" }
Q: perform Action<> in main thread I'm writing an app, that performs very long requests at background. After each request I need to send result to main form. So, here is a code: Form1.cs private async void StartButton_Click(object sender, EventArgs e) { await Logic.GenerateStackAsync(stackSettings, delegate(FullO...
{ "pile_set_name": "StackExchange" }
Q: Auto threshold in ImageJ/FIJI with Python I'm trying to write python scripts in ImageJ and I'm having problems with autothresholding. It won't let me use the IJ.setAutoThreshold("Default dark"). An example bit of code is below (with a few things left out for clarity): from ij import IJ, ImagePlus from java.lang im...
{ "pile_set_name": "StackExchange" }
Q: Right way to create a background job in an elixir phoenix app def create(conn, %{"data" => %{"attributes" => user_params}}) do changeset = User.changeset(%User{}, user_params) case Repo.insert(changeset) do {:ok, user} -> UserMailer.send_welcome_email(user) conn |> put_sta...
{ "pile_set_name": "StackExchange" }
Q: How to calculate Fourier transform of this function? the function is given by $$f(t)=\dfrac{1}{e^{at}-1}$$ Now, i know from the definition i've to evaluate this integral $$\begin{align}\mathcal{F}[f(t)]&=\int_{0}^{\infty}e^{-j \omega t}\left(\dfrac{1}{e^{at}-1}\right)\,dt \\&=\sum_{n=1}^{\infty}\int_{0}^{\infty}e^...
{ "pile_set_name": "StackExchange" }
Q: How to get Canonical ID from GCM I am trying to get a unique ID for my device so I can get push notifications from my server. As all turorials say : I register using GMC: GoogleCloudMessaging gcm = GoogleCloudMessaging.getInstance(context); String regid = gcm.register(PROJECT_NUMBER); // <---- duplicated if u...
{ "pile_set_name": "StackExchange" }
Q: Poll about your proof of resolution of singularities and a request for advice The questions first: What is the proof of resolution of singularities that you know? Why am I asking?: There are a number of proofs of resolution of singularities of varieties over a field of characteristic zero, all with more or less s...
{ "pile_set_name": "StackExchange" }
Q: How do I retain an Android alertdialog sometime I have an AlertDialog in the activity I used, as: AlertDialog.Builder ad = new AlertDialog.Builder(this); ad.setTitle("Unanswered Questions"); ad.setMessage("You have not answered all the questions."); ad.setPositiveButton("OK", new DialogInterface.OnClickLis...
{ "pile_set_name": "StackExchange" }
Q: How to create a Google Reader? I need to create a web tool like Google Reader for my college project. I have 2 question about it: 1) How Google Reader track the read and unread posts ? 2) Google Reader save every post in the db or load the feeds at the moment ? A: assign a hash to a single feed post (ie. date+ur...
{ "pile_set_name": "StackExchange" }
Q: php Content-type: text/css not working I have a style.css: <link href="/file.css" rel="stylesheet" type="text/css" property='stylesheet'/> #menu{ background:red; //file.css content } and after that a php: <link rel='stylesheet' type='text/css' href='/color.php' /> //color.php content: header("Content-type: te...
{ "pile_set_name": "StackExchange" }
Q: How to convert Int To String in C# without using library functions? What is the most effective code to convert int to string without using a native convert function. public static void Main(string[] args) { string y = Convert(990); Console.WriteLine(y); Console.ReadLine(); } ...
{ "pile_set_name": "StackExchange" }
Q: Photomosaic non-georefferenced images using open-source software I have a directory of images that were captured by drone. The images have GPS info in the EXIF tags but are not georefferenced and do not have world files. I would like to merge these photos into a single mosaic file that I can then georefference i...
{ "pile_set_name": "StackExchange" }
Q: Replace text in the Title In a string displayed by <?php the_title(); ?> I have to replace all & characters with and. Here is the code I've tried without success: <?php $wptitle = the_title(); $wptitle = str_replace('&', 'and', $wptitle);?><?php echo $wptitle; ?> The full code to be replaced: <h2><a href="<?php ...
{ "pile_set_name": "StackExchange" }
Q: Android Studio 3.2 canary build is not rendering Navigation tag Android studio 3.2 canary 14 is not rendering the navigation tag. It just shows the waiting for a build to finish. navigation_graph <?xml version="1.0" encoding="utf-8"?> <navigation xmlns:android="http://schemas.android.com/apk/res/android" xmlns...
{ "pile_set_name": "StackExchange" }
Q: Error when trying to select menu with Selenium-Python My Selenium IDE recording on Chrome that opens a URL and then do click on a dropdown menu that seems to generate some code dinamically shows 3 actions, Open, Click, and Mouse Over commands. It works and the id, cpath, css_selector stored by Selenium IDE are sho...
{ "pile_set_name": "StackExchange" }
Q: Checkbox event and holding array - how to handle in code? I have the following code in my phonegap app: function onDeviceReady() { var listOfSports = new Array(["Aikido"],["Air Sports"],["American Football"],["Angling"],["Archery"],["Yoga"]); $.each(listOfSports, function (i) { ...
{ "pile_set_name": "StackExchange" }
Q: Removing a index.php from codeginiter url using htaccess not working on server .htaccess code: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php?/$1 [L] also change in config file: $config['index_page'] = ' '; $config['uri_protocol'] = "REQUES...
{ "pile_set_name": "StackExchange" }
Q: React: Do children always rerender when the parent component rerenders? It is to my knowledge that if a parent component rerenders, then all its children will rerender UNLESS they implement shouldComponentUpdate(). I made an example where this doesn't seem to be the true. I have 3 components: <DynamicParent/>, <St...
{ "pile_set_name": "StackExchange" }
Q: Solved: What's the equivalent of Aspose.Pdf.Kit.PdfPrivilege in the "merged" version of Aspose (6.x) I am migrating a project how to replace this class. Aspose documentation says that the Aspose.Pdf.kit namespace has migrated to Aspose.Pdf.Facades, but there is not Aspose.Pdf.Facades.PdfPrivilege Any clues ? A: ...
{ "pile_set_name": "StackExchange" }
Q: How to change which modules are auto-applied in Darktable? When I open a raw file in Darktable sharpening and a base curve are automatically applied. How do I alter this? I would like to add lens correction. A: Automatic presets would do that, see the section "Module presets" in Darktable's user manual. Note th...
{ "pile_set_name": "StackExchange" }
Q: SSIS and JSON Flat Files Whats the best way to get JSON flat files into SQL Server using SSIS? Currently I've tried parsing the data in a script component, but with amount of JSON files I'm parsing (around 120 at a time) it takes upward of 15 minutes to get the data in. I also don't consider this very practical. ...
{ "pile_set_name": "StackExchange" }
Q: Was there doctrinal difference between Lollards and Waldenses? Lollards and Waldenses are two historical movements that spread out of Catholic church, in England and France, respectively. I know they had similar views such as opposing the corruption of the wealthy church, advocating lay service, focusing on the sc...
{ "pile_set_name": "StackExchange" }
Q: Trying to draw an ellipse in a WPF window, but it is not visible I am trying to create my own graph user control, I have one already working on win forms and I am trying to move it into WPF world. I am starting with learning how to do drawing, so first thing I was trying to draw a black ellipse that fills an entir...
{ "pile_set_name": "StackExchange" }
Q: With response JSON.parse my error is this: Uncaught SyntaxError: Unexpected token H in JSON at position 0 I am trying to make a calendar in laravel 5.3, but I have this error in the console with a json response, in json and javascript I am new, the calendar is an example and I am trying to adapt a laravel. Where ...
{ "pile_set_name": "StackExchange" }
Q: Naming 1, 2, 3, ... millennial celebrations I know that after 100 years there are centennial celebrations, after 200 years bicentennial, tricentennial, etc., Similarly, are there terms for 2000, 3000, etc., years of celebration? A: Sure. Picking up where you left off, we have: 250 years - Sestercentennial 300 ...
{ "pile_set_name": "StackExchange" }
Q: Code unable to handle big loops Setup: Starting with the number 32, the sum of squares is 13 because 3x3 + 2x2 = 13. The sum of squares for 13 is 10 because 1x1 + 3x3 = 10. The sum of squares for 10 is 1, so 32 is a happy number. sample input The input will be a single positive integer. Several examples are given ...
{ "pile_set_name": "StackExchange" }
Q: Rate of growth colony of ants The rate of growth of a colony of ants is proportional to the square root of the size of the population...... Show that if $P$ is the size of the population and $t$ is the time in days then $\dfrac{dP}{dt} = k\sqrt{P}$, where $k$ is a constant. When $t=0$, $P=100$ and when $t=5$, $P...
{ "pile_set_name": "StackExchange" }
Q: Using Kerberos authentication for SQL Server 2008 I am trying to configure my SQL Server to use Kerberos authentication. My setup is like this - My setup is like this- I have 2 virtual PCs in a Windows XP Pro SP3 host. Both VPCs are Windows Server 2003 R2. One VPC acts as the DC, DNS Server, DHCP server, has Act...
{ "pile_set_name": "StackExchange" }
Q: How to identify counterfeit Analog Device products? Recently I bought two AD9850 DDSs from a friend ( I think he had bought them from his home country).They worked just for minutes! After hours challenging with them, I thought problem is because of my PCB layout and re-designed it. Finally I found out that the de...
{ "pile_set_name": "StackExchange" }
Q: Generate different combinations of arrays using positive integers as elements Given a certain integer n and a different integer k (both positive) I want to generate all the possible different arrays of size k containing integers in the interval [0..n]. For example with n = 2 and k = 2 I want to generate an array o...
{ "pile_set_name": "StackExchange" }
Q: SQL single table with two columns I have a single table: Checking, with two columns: ID, Memo ID is the primary key. I would like a query that returns both columns: ID, Memo BUT only where Memo is DISTINCT I can do the following to get the distinct values from Memo: SELECT DISTINCT(memo) FROM checking How do I re...
{ "pile_set_name": "StackExchange" }
Q: Error when installing bookmark+ package in emacs I'm trying to install bookmarks and I get the error. When I tried byte-compiling the files it also failed. Is there a current git for bookmarks+. Error below: Invalid function: bmkp-menu-bar-make-toggle Here is the full trace: Debugger entered--Lisp error: (invalid...
{ "pile_set_name": "StackExchange" }
Q: genes with highest RPKM/FPKM for a human RNA-seq experiment? Which genes/transcripts show up as having the highest RPKM/FPKM on a human RNA-seq experiment? Is it usually the same genes/transcripts? EDIT: mRNAs (e.g. poly-A RNA-seq preps) and not including small RNAs. A: As asked as it is, the answer is probably ...
{ "pile_set_name": "StackExchange" }
Q: Python run_in_executor and forget? How can I set a blocking function to be run in a executor, in a way that the result doesn't matter, so the main thread shouldn't wait or be slowed by it. To be honest I'm not sure if this is even the right solution for it, all I want is to have some type of processing queue separ...
{ "pile_set_name": "StackExchange" }
Q: Python Turtle how to create collision I am attempting to create pong using Turtle, however, I am having an issue with the collision system. I am using a basic pythagorean function for this, however, when the ball hits a bumber, it gets stuck at the bumper and starts shaking. I am not sure how to fix this problem. ...
{ "pile_set_name": "StackExchange" }
Q: Using CSS to put some DIVs over a picture (+explaining images) '.$row['titulo'].''.$contenido.time_since(strtotime($row['dt'])).' '); } ?> The styles are in a separate file and they are: .newsticker-jcarousellite { width:600px; } .newsticker-jcarousellite ul li{ list-style:none; disp...
{ "pile_set_name": "StackExchange" }
Q: Why can't decomposition declarations be constexpr? Consider the following snippet to test the upcoming C++17 feature decomposition declarations (formerly known as structured bindings) #include <cassert> #include <utility> constexpr auto divmod(int n, int d) { return std::make_pair(n / d, n % d); // in g++7, a...
{ "pile_set_name": "StackExchange" }
Q: Creating log files in SQL Server 2012 I'm sure this is probably SQL 101 but Google searches keep finding 'creating logins' entries. Let me give a quick overview. I have drifted into SQL reporting from general IT Support as a result of the need for more detailed reports than our systems can provide. My company runs...
{ "pile_set_name": "StackExchange" }
Q: how to scroll embedded chromium in Delphi Hi is there any way to simulate the Delphi embedded chromium scroll position? or simulate SPACE key to scroll when pressing a TButton. A: What you can do is inject some javascript that will scroll to the bottom ChromiumComponent.Browser.MainFrame.ExecuteJavaScript( 'wi...
{ "pile_set_name": "StackExchange" }
Q: OpenCV color identification Hi I'm trying to built simple color identifying program. I have taken a image (yellow & pink) with and convert it in HSV color space. Then used threshold to identify yellow color region. I getting the output (black image). I want yellow region to be filled with while color and rest wit...
{ "pile_set_name": "StackExchange" }
Q: Updating an existing Android app in Eclipse? I already created a free app using Eclipse and have it on Google Play. Now I am wanting to add some extra features into it and have it as a paid app. Now I am wondering if I have to create a whole new program or will changing the existing package name and export key suf...
{ "pile_set_name": "StackExchange" }
Q: How to submit a PR against a now-broken upstream? I'm a Git(Hub) neophyte. I forked, changed and submitted a PR against a GitHub repo (R'). The PR has not been reviewed|accepted. Meanwhile I wanted to submit a separate (non-overlapping) PR and followed instructions here to create a 2nd copy of the remote repo in m...
{ "pile_set_name": "StackExchange" }
Q: Copy a basic_string to vector Please suggest an efficient way to copy bytes from a basic_string< char16_t> to vector< uint8_t>. I am not concerned with the encoding, and just want to copy the bytes to the bytearray. It will later be interpreted with the correct encoding downstream. Thanks. A: An option is to get...
{ "pile_set_name": "StackExchange" }
Q: Did China ever consider a phonetic writing system? I was surprised to learn the following about the Japanese and Korean languages: Japanese used a lot of Chinese characters in their language and had no phonetic system, until around the year 800 when they made their first kana. (They still use a lot of Chinese char...
{ "pile_set_name": "StackExchange" }
Q: How to exclude dependencies from maven assembly plugin : jar-with-dependencies? Maven's assembly plugin enables the creation of a big jar including all dependencies with descriptorRef jar-with-dependencies. How can one exclude some of these dependencies? It seems like it does not have such a configuration? Is ther...
{ "pile_set_name": "StackExchange" }
Q: Does digestion require hydrochloric acid? Would our digestion function any differently if we secreted something else, like sulfuric or nitric acid, instead? I'd assume an acidic environment may be required, but not sure if chloride is also required as well! Perhaps we just use it out of convenience—e.g., presumabl...
{ "pile_set_name": "StackExchange" }
Q: Присвоение элементам class с помощью js, работа с innerHTML и получение данных из адресной строки Если в адресной строке нет ничего после знака "?" - то должен присваиваться определенный class некоторым элементам и вноситься изменения в элемент с class="error", чего не происходит. В каком месте я ошибся? Вроде все...
{ "pile_set_name": "StackExchange" }
Q: How to generate square thumbnail of an image? I want to create thumbnails of size 75x75 square from originals. The thumbnail will not look stretched in one dimension as it will not follow the aspect ratio. If have used Flickr, you will see they generate square thumbnails. I need the same thing. Any clue or help is...
{ "pile_set_name": "StackExchange" }
Q: What exactly does "import *" import? In Python, what exactly does import * import? Does it import __init__.py found in the containing folder? For example, is it necessary to declare from project.model import __init__, or is from project.model import * sufficient? A: The "advantage" of from xyz import * as oppose...
{ "pile_set_name": "StackExchange" }
Q: Understanding how Git LFS repository works for developers who don't have LFS extension installed As the title already says, I am interested in how would a git repository with LFS files behave for developers who don't have LFS git extension installed (cloning of affected files, committing of affected files, etc). W...
{ "pile_set_name": "StackExchange" }
Q: link_to action "show" to another controller ruby 1.9.2p290 rails 3.1.1 Basically I have two models: CHEFS and RECIPES. class Chef < ActiveRecord::Base has_many :recipes end class Recipe < ActiveRecord::Base belongs_to :chef end And the following routes: resources :recipes resources :chefs do # list of reci...
{ "pile_set_name": "StackExchange" }
Q: How to change the name of a variable in a for loop I would like to change the name of a variable within a for loop, using the loop index in the name of the variable. I've tried the following syntax: A= [1,2,3] for i = 1:3 global x{i} x{i}=A[i] end This isn't the right syntax, and googling has not led me ...
{ "pile_set_name": "StackExchange" }
Q: How to get and set / access and modify a global variable between components I'm new to Angular, currently using Angular 5 Cli with VS Code. I have 2x components (Comp1 & Comp2) that need to access the same variable which is ultimately a string. This variable is rendered in the 3rd Component's (Comp 3) View/HTML te...
{ "pile_set_name": "StackExchange" }
Q: Return one result from LINQ Query if you have a select LINQ query that should only return one result, do you have to have a foreach loop to get the result? Or is there a better way? A: // Will return a default value if no object is found in the DB db.Table.SingleOrDefault(x => x.something == someParameter); or ...
{ "pile_set_name": "StackExchange" }
Q: Plotting More than 2 Factors Suppose I ran a factor analysis & got 5 relevant factors. Now, I want to graphically represent the loading of these factors on the variables. Can anybody please tell me how to do it. I can do using 2 factors. But can't able to do when number of factors are more than 2. The 2 factor plo...
{ "pile_set_name": "StackExchange" }
Q: Sleeping for an exact duration My understanding of the Sleep function is that it follows "at least semantics" i.e. sleep(5) will guarantee that the thread sleeps for 5 seconds, but it may remain blocked for more than 5 seconds depending on other factors. Is there a way to sleep for exactly a specified time period ...
{ "pile_set_name": "StackExchange" }
Q: Rubymine and running rspec "rspec-core is not part of the bundle" I am trying to run a rails app which was not created using rubymine. Its is a very different sort of app using rails engines loaded...When I try running tests, I get the following error message Testing started at 12:29 ... /Users/userbnamexxxx/.rben...
{ "pile_set_name": "StackExchange" }
Q: same branch same quarter number calculation What I need to add is when employee title X switches to a different title (Y or Z) within the SAME branch, to modify their Total FTE for the time in the quarter that they were in that new title (Y or Z). So the logic is: For position X to Y IF [Position Start Date] is be...
{ "pile_set_name": "StackExchange" }
Q: How do you pronounce the הוי״ה in hataras nedarim (annulment of vows) before Rosh HaShanah? In the siddurs I've seen, we ask for annulment for vows made "with the name הוי״ה ". That word is left unvowelized. How is it pronounced? A: Usually I hear it pronounced "havaya." I think we refer to the four-letter ...
{ "pile_set_name": "StackExchange" }
Q: On free Jazz and Ornette Coleman Why is Ornette Coleman considered one of the best musicians on the Jazz world? I have had the chance to listen to one of his albums, "The Shape of the Jazz to Come," and to be honest, I don't find it easy to follow. One friend, who loves Jazz, by the way, once told me that Ornette ...
{ "pile_set_name": "StackExchange" }