Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
171
35.5k
meta
dict
Q: Class tufte-book and R listings code box width problem When I run the following MWE: \documentclass{tufte-book} \usepackage{Sweavel} \usepackage{amsthm} \usepackage{mathtools} \usepackage{soul} %%%%%%%%%% % R example %%%%%%%%%% \newtheoremstyle{rex}{}{}{}{.45\textwidth}{}{}{1 mm}{} \theoremstyle{rex} \newtheore...
{ "pile_set_name": "StackExchange" }
Q: Printing answers with the exam class on a separate page I've seen some questions asking for solutions to this problem in this site; I've had it myself. My code only works for printing the answer as a list with the same numbering as the questions; it doesn't put them on a any particular format nor it makes the grad...
{ "pile_set_name": "StackExchange" }
Q: How to make a captivating executive summary with LaTeX? Here's an excerpt clipped from a nice, colourful executive summary. This is the kind of thing that word processors seem to be really good at. There's often a bunch of presets that you can just browse through using the GUI, pick a theme, and modify it until ...
{ "pile_set_name": "StackExchange" }
Q: Grey scale plot matrix in GGally I want to create a plot matrix using GGally in greyscale. I have tried with functions like scale_colour_grey but GGally only recognises theme objects from ggplot2. Reproducible data and code are provided below: Cluster = c(1, 2, 1, 3, 1, 1, 1, 1, 1, 2, 2, 3, 4, 4, 1, 4, 1, 1, 2, 1,...
{ "pile_set_name": "StackExchange" }
Q: Validating country codes Our enterprise data systems maintain a list of 2-character country codes that I want to enforce inside Salesforce. I'm having trouble writing a validation rule that successfully does this. The rule on Lead.Country is: AND( !ISBLANK(Country), LEN(Country) <> 2, NOT(CONTAINS("00:AD:AE...
{ "pile_set_name": "StackExchange" }
Q: How to wrap lists with proper indentation when using org-indent-mode? In Org-mode I can get headlines wrap with proper indentation by using org-indent-mode. How can I do the same for lists, that is, how can I make it so that lists in Org-mode wrap with proper indentation? If I insert * Very very very very very ve...
{ "pile_set_name": "StackExchange" }
Q: Cross product of records in AWK using Joins I have a dataset with 1994 records with 13 fields. I am trying to get the cross product of the dataset below: Dataset c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 1 2 5 6 7 3 1 8 5 9 7 3 4 2 4 . . . . . . . . . . . 3 9 . . . . . ...
{ "pile_set_name": "StackExchange" }
Q: change space between ticks in first y-axis in plt.imshow Hey I have used the following code: import matplotlib.pyplot as plt import numpy as np Class1=np.array([[1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., ...
{ "pile_set_name": "StackExchange" }
Q: Storing one of two outputs of For loop I have a set of data: Rawdata={-0.462475, -0.477504, -0.393686, -0.217328, 0.105685, 0.443379, 0.627285, 0.534236, 0.165977, -0.296604, -0.432765, 0.0851257, 0.136757, 0.0293745, -0.411645, -0.322851, 0.046951, 0.492951, 0.59958, 0.294237, -0.182859, -0.398524, 0.0981432, 0.0...
{ "pile_set_name": "StackExchange" }
Q: How to modify a boxplot!? (mean, outliers, values: median, ...) I have some issues with my boxplot and I hope someone can help me to fix them. Here my MWE: \documentclass[a4paper]{scrbook} \usepackage[utf8]{inputenc} \usepackage{textcomp} \usepackage[T1]{fontenc} ...
{ "pile_set_name": "StackExchange" }
Q: Read data from GPS Uart I'm using a Mediatek MT3333 GPS receiver (baudrate: 115200 bpS), but all I'm getting is this: b'$GNGGA,132002.448,,,,,0,0,,,M,,M,,*5C\r\n' b'$GPGSA,A,1,,,,,,,,,,,,,,,*1E\r\n' b'$GLGSA,A,1,,,,,,,,,,,,,,,*02\r\n' b'$GPGSV,1,1,00*79\r\n' b'$GLGSV,1,1,00*65\r\n' b'$GNRMC,132002.448,V,,,,,0.00,0...
{ "pile_set_name": "StackExchange" }
Q: How to use different symbols in dotplot based on vector values I have location (coordinates) and environmental data and I would like to create dot plots for each of the environmental variables in the dataset (see sample data and code below). Instead of a single symbol for all of the points in each dot plot (e.g. p...
{ "pile_set_name": "StackExchange" }
Q: Smooth interpolating spline has weird extremities I'm building a soft to reject some trajectories that turn too fast. I managed to smooth them with scipy splrep and splev, but I have some weirdness at the beginning and the end, with some points that does not follow at all the original trajectory. Any idea where it...
{ "pile_set_name": "StackExchange" }
Q: Create a folder using substring of filename I want to fetch two sub string from my file name in order to create Folder String. My file name is "SM-SM-ABC_ab12 cd34_AA 11_abc123.txt" here "ab12 cd34" is 1st folder and "AA 11" is 2nd folder I have written a code but After adding @Compo code I ma not able to move fil...
{ "pile_set_name": "StackExchange" }
Q: CsvHelper throws CsvMissingFieldException I've been trying to parse CSV file: NOTE: All directories are updated daily using information from the previous business day. Company Name,Stock Symbol,DPM,Cycle,Traded at C2,LEAPS 2014,LEAPS 2015,LEAPS 2016,Product Types (NEW) NEWS CORPORATION CLASS A,NWSA,SIG:MU,1,,,,Y,L...
{ "pile_set_name": "StackExchange" }
Q: Why does changing the encoding not work in pdfTeX for Type1 fonts? Using pdftex on the following file changes encoding for bitmap font (this can be checked by copy-pasting the text from resulting PDF): \pdfmapline{=cmr10 <cmr10.enc} `hello world' \end where cmr10.enc is as follows (it differs from default only wi...
{ "pile_set_name": "StackExchange" }
Q: python converting nested list to array shape (x,y) Here is the info on the data: len(train_x) 43907 len(train_x[0]) 120 At this moment, the result of train_x.shape and train_x[0].shape = AttributeError: 'list' object has no attribute 'shape' How can I convert the list to array, so that train_x.shape = (4390...
{ "pile_set_name": "StackExchange" }
Q: Submission on Kaggle Kaggle requires us to upload the CSV file, but I don't understand how to do it. I've a complete code which gives me predictions and I need to write those predictions against their ids and make a CSV file out of them (i.e. containing two columns, one of the id and other of their respective pred...
{ "pile_set_name": "StackExchange" }
Q: Matlab, get the peaks in a vector, this does not work: max_locations = find(A==max(A)) In Matlab, I have the following matrix: A = [0,0,0,0,0,0,0,0,0,0,8,32,52,36,12,0,1,2,0,0,0,0,0,0,0,0,0,1,2,1,163,60, 21,31,34,35,38,38,40,38,38,40,34,37,39,34,32,32,33,31,39,40,37,36,24,39,162, 23,23,22,22,29,25,23,24,25,24,24,2...
{ "pile_set_name": "StackExchange" }
Q: Bingbot is encoding non-ASCII characters in URLs with backslash x rather than percent We have hashbang urls with extended utf-8 characters. For example: https://example.com/#!каталог Bing bot fetches the html snapshot https://example.com?_escaped_fragment_=каталог encoded URL as \xD0\xB0.... Our server respon...
{ "pile_set_name": "StackExchange" }
Q: How to read the MPEG2VideoDescriptor in an MXF file? Here follows the hex dump of the MPEG2VideoDescriptor: 06 0e 2b 34 02 53 01 01 0d 01 01 01 01 01 51 00 83 00 00 f3 3c 0a 00 10 a3 be 51 b2 00 05 e7 11 bf 82 21 97 f7 a0 14 ed 30 06 00 04 00 00 00 02 30 01 00 08 00 00 ea 60 00 00 03 e9 80 00 00 04 01 c9 c3 80 30...
{ "pile_set_name": "StackExchange" }
Q: Transformation from RRD to CSV I use JavaMelody tool to monitoring my application, but the available timeline settings aren't suitable. It means I want to get monitoring scores for only quick timeline, like 30 minutes, but the lowest time range in JavaMelody is 1 day. Probably this feature can be solved by writing...
{ "pile_set_name": "StackExchange" }
Q: Unable to parse a value inside json object in javascript I am trying to parse a value which is residing inside a json object . Below is the response from my API call. var responseData = { "statusCode": 200, "body": "{\"Errors\":\"\",\"Message\":null,\"OrgID\":0,\"Output\":\"{\\\"AllUserDetails\\\":{\\\"UserDet...
{ "pile_set_name": "StackExchange" }
Q: How to remove non alphanumeric characters and space, but keep foreign language in JavaScript I want to remove signs like: !@#$%^&*()_+`-=[]\|{};':",./<>?。,‘“”’;【】『』 and many more. But ensuring all the foreign characters are kept, such as Chinese, French, Greece, etc. In Ruby, I'm able to do it with regex /[^\p{...
{ "pile_set_name": "StackExchange" }
Q: Is the domination number of a combinatorial design determined by the design parameters? Let $D$ be a $(v,k,\lambda)$-design. By the domination number of $D$ I mean the domination number $\gamma(L(D))$ of the bipartite incidence graph of $D$. Is $\gamma(L(D))$ determined only by $v,k$, and $\lambda$, irrespectiv...
{ "pile_set_name": "StackExchange" }
Q: Exception in CURSOR or other solution I have a DB where selling tickets. I have such procedure, where I count all sold money from some race: CREATE OR REPLACE PROCEDURE Total_money(depart IN RACE.DEPART_PLACE%TYPE, dest IN RACE.DESTINATION_PLACE%TYPE, total OUT TICKET.PRICE%TYPE) IS CURSOR tickets IS SE...
{ "pile_set_name": "StackExchange" }
Q: XCOPY overwrite action? in the bat file I got a simply command like : xcopy "C:\Users\me\Documents\ApplyPatchBat" "C:\Users\me\Desktop\Test\" /S/E/K This does the job where it will copy all the files including files inside subfolders. I know you can add /y to make it auto overwrite. How ever I want to create an...
{ "pile_set_name": "StackExchange" }
Q: 3次元配列でitertoolsを用いて組み合わせを求めたい 3次元配列でitertoolsを用いて組み合わせを求めようと考えています。 li1[i]のところから1通りずつ選ぶ総組み合わせを求めたいです。 li1=[[[0, 2],[0,1,2]], [[3]], [[7, 9], [7,8,9],[7,6,9]], [[11]], [[12, 10, 20], [12, 14, 18, 20]]] 例えばli1[i]の先頭を組み合わせた場合はli1[0][0]→li1[1][0]→li1[2][0]→li1[3][0]li1[4][0]で[0,2,3,7,9,11,12,1...
{ "pile_set_name": "StackExchange" }
Q: Profile backup script for XP migrate to Vista I have a .cmd i use to copy our users local files when they change computer. This works very well in XP/2000 but now i can see that we (large enterprise) are moving to Vista. And was wondering if the paths used in my .cmd would work on Vista too... this is a real cut a...
{ "pile_set_name": "StackExchange" }
Q: How to add a page to the contents list without it being a section? I want to add a section to my contents pages so that it includes the cover sheet on the contents page (personally I don't like it but it has to be done). It is easy if I have \section{Cover Sheet} at the start of my cover sheet but I don't want t...
{ "pile_set_name": "StackExchange" }
Q: Flatten XML to CSV (VB.NET / C#.NET / XSLT) I wonder if somebody can help me flatten an XML file to CSV format. I have worked on this all day today, and although I've found some simple examples, my issue is slighlty different. Please see example below... Example XML: <data> <val_A>1</val_A> <val_A>2</val_A...
{ "pile_set_name": "StackExchange" }
Q: Is it possible to embed a scrollable frame inside a PDF? (This is an end-of-year crazy question) Is it possible to embed a (scrollable) frame or a PDF inside a PDF? If so, how to do it in (pdf)LaTeX? This is something pretty common in HTML (see for example http://www.echoecho.com/htmlframes01.htm). Here it is a w...
{ "pile_set_name": "StackExchange" }
Q: Python iterate through connected components in grayscale image I have a gray scale image with values between 0 (black) and white (255). I have a target matrix of the same size as the gray scale image. I need to start at a random pixel in the gray scale image and traverse through the image one pixel at a time (in a...
{ "pile_set_name": "StackExchange" }
Q: Determining which points are within an Elastic Map Service boundary on Kibana I have a set of geographic points and my task is to figure out which USA zip code boundary each point falls within. Each point has a geo_point field and I have successfully imported/indexed the points, and have created a Map in Kibana (r...
{ "pile_set_name": "StackExchange" }
Q: SIFT opencv2.3.1/2.4.3 both Giving very strange descriptors..like 7., 29., 39., 11., 2.3.1 Giving very strange descriptors This is very simple code for SIFT,I am getting is very strange descriptors.Are they correct? descriptor: [ 0., 7., 29., 39., 11., 0., 0., 0., 32., 30., 39., 52., 16., 0., 1., 12., ...
{ "pile_set_name": "StackExchange" }
Q: New to Perl - Parsing file and replacing pattern with dynamic values I am very new to Perl and i am currently trying to convert a bash script to perl. My script is used to convert nmon files (AIX / Linux perf monitoring tool), it takes nmon files present in a directory, grep and redirect the specific section to a ...
{ "pile_set_name": "StackExchange" }
Q: How to find and replace a string in %PATH% system variable with variables in a batch file? I am trying to upgrade Java with a batch file, and I need to change the PATH system variable to reflect that change. At the beginning of the PATH variable I have C:\Program Files\Java\jdk1.8.0_51;... I need to change the jd...
{ "pile_set_name": "StackExchange" }
Q: Pawn confrontations: capture, push past, or leave the tension? When your opponent moves a pawn to a position where it can be captured by one of your pawns, how should you determine whether to capture it, push past it or leave the tension on the board and make a different move? I appreciate that the answer may vary...
{ "pile_set_name": "StackExchange" }
Q: Property initializers not defined until declared I am trying to use property initializers to use arrow functions as methods of a class. But they are not accessible until the method is declared. If i change the order in which they are declared it works. Is it expected behaviour or is it a babel transpilation class ...
{ "pile_set_name": "StackExchange" }
Q: Error while XOR ing C++ I have problem, when i compile this code #include <iostream> using namespace std; int main(){ const unsigned long box[256]= { 0xD1310BA6, 0x98DFB5AC, 0x2FFD72DB, 0xD01ADFB7, 0xB8E1AFED, 0x6A267E96, 0xBA7C9045, 0xF12C7F99, 0x24A19947, 0xB3916CF7, 0x0801F2E2, 0x858EFC16, 0x63...
{ "pile_set_name": "StackExchange" }
Q: NA replacement using median value I have the following dataset: 5 3 3 5 10 10 3 8 2 12 8 6 2 5 6 5 10 4 3 5 4 3 3 5 8 3 5 6 6 1 10 3 6 6 5 8 3 4 3 4 4 3 2.5 1 4 2 2 3 5 10 4 4 6 3 2 3 8 3 4 4 3 3 4 ...
{ "pile_set_name": "StackExchange" }
Q: Matplotlib, the lines in a line graph are too crowded A line graph is generated by matplotlib as follows. The lines are too close and crowed from a certain steps due to their values, how can I make the difference among these lines clear: Line Graph by Matplotlib My code is: import matplotlib.pyplot as plt import n...
{ "pile_set_name": "StackExchange" }
Q: Maximum setlocal recursion level reached in batch The task is to replace the reference path with some new path in collection of html files. I used the below code for that and it throws the maximum setlocal recursion level reached error, @echo off for /r ".\" %%f in (\html\*.htm) do ( SETLOCAL call :SUB .....
{ "pile_set_name": "StackExchange" }
Q: MYSQL | SP | CURSOR - Fetch cursor into variable return null I want to: Create temporary table. Insert partial data into temporary table. Run in Loop on temporary.user_id field. Update each row after data manipulation and calculation. The problem on step #3, i get user_id=NULL instead an integer from cursor. CR...
{ "pile_set_name": "StackExchange" }
Q: Enhance script ping batch I made a script for testing local network in my company. It works but not like I want. It does 1 ping if ok another ping for testing time (>=30ms). So it does 2 ping in my loop. I want 1 ping if ok log only if >=30ms, if nok log. How can I enhance this script ? set /p IP="Saisir une IP : ...
{ "pile_set_name": "StackExchange" }
Q: Understanding an affine transformation I am trying to implement a modified version of sift tracking. I found a matlab implementation of sift to track objects in which, basically, they take the indices of the matches and compute the following transform: pts = [x;y]'; % pts contains the points x and their transform...
{ "pile_set_name": "StackExchange" }
Q: url from another domain in my access log Most of the time when I am looking for 404 errors in my access.log, I see attempts to access something like /phpMyAdmin/scripts/setup.php. This does not bother me so much, but few days ago I was surprised because I saw this in my access.log 95.47.119.124 - - [19/Aug/2013:11...
{ "pile_set_name": "StackExchange" }
Q: error: 'else' without 'if - Cant find solution //I know the coordinates arnt right ill fix them after i can get it complied but i can't figure out why it keeps giving me that message public class DiceRoller Public static void main(String[] args { if (dice1 == 1) StdDraw.square(.5, .4, .2); ...
{ "pile_set_name": "StackExchange" }
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
3