text
stringlengths
175
47.7k
meta
dict
Q: python requests 400 error Hi I am using python requests module. My code is: import requests payload = {'AWSAccessKeyId':'AKIAJHSXAECVML4XJT7NvVLAQ', 'Action':'ListOrders', 'CreatedAfter':'2015-05-31T18%3A30%3A00Z', 'MarketplaceId':'A21TJRUUN4KGV', 'SellerId':'A3AZITEDAVC4SLU02M7', 'S...
{ "pile_set_name": "StackExchange" }
Q: How does slicing work with double square brackets? I created a string variable stro. How will the slicing stro[7:][-6] work on stro? stro = "Python is fun" print(stro[7:][-6]) # output: i A: You are slicing, then indexing: stro = "Python is fun" x = stro[7:] # 'is fun' y = x[-6] # 'i' Since strings are i...
{ "pile_set_name": "StackExchange" }
Q: How can I validate Date format in FeatherJS I am trying to validate user input send a notification when the user types wrong input. This is what I have so far. const { BadRequest } = require('@feathersjs/errors'); module.exports = function () { return async context=> { const { data } = context; if(type...
{ "pile_set_name": "StackExchange" }
Q: The type or namespace name 'FileIO' does not exist in the namespace 'Microsoft.VisualBasic' I am using visual studio 2012 and .Net framework 4.5. I have included 'Microsoft.VisualBasic' in my project reference. I am getting the following error while executing the project. Compilation Error Description: An erro...
{ "pile_set_name": "StackExchange" }
Q: Azure Web App (.NET) connecting to Oracle Database without installing client I'm trying to connect to an Oracle database from my Azure .NET web app. The objective is to not have to install the Oracle client on the Azure Web App. I've tried the few options out there but nothing seems to work. Any suggestions? Cur...
{ "pile_set_name": "StackExchange" }
Q: How to get the other posts on a current post page I have custom post type called services which have taxonomies named service-categories. Lets say I have added a taxonomy called A which has posts x,y,z . The single CPT pages must have a sidebar which displays other posts from the category. For Eg: If we are on the...
{ "pile_set_name": "StackExchange" }
Q: put pointer values in a array I have the following part of the code: i = 0; while (ptr != NULL) { if (i == 0) strcat(machine, ptr); if (i == 2) strcat(number, ptr); if (i == 4) strcat(hr, ptr); if (i == 6) ...
{ "pile_set_name": "StackExchange" }
Q: What's the general word for cheese? What's the general word for "cheese"? I've tryed to look it up in the dictionary but there are so many options!! What's the most general, the word that native speaker would use to say "I want a piece of cheese"? A: The general term in mainland China is 奶酪. 乳酪 is seen as well. ...
{ "pile_set_name": "StackExchange" }
Q: How to select record from table whose id is not there in another table using Laravel model? List item I need to select data from a table whose id does not exits in another table or if exists then check other conditions. i can achieve this by Task::join('events','events.task_id' ,'=','tasks.id') ->where('e...
{ "pile_set_name": "StackExchange" }
Q: adding separate custom header for inner pages of wordpress I am newer to wordpress.i have added a header image for the home page using custom header from Appearance->Header.I have to add different image to the inner pages.how can i? A: use featured image http://robcubbon.com/featured-images-wordpress/
{ "pile_set_name": "StackExchange" }
Q: Is it possible to add multiple event handlers to ServerClick in an .aspx page? I have an aspx page with two custom buttons that looks like this: <cfw:Button runat="server" OnServerClick="CreateProduct" name="Create product" /> <cfw:Button runat="server" OnServerClick="OrderProduct" name="Order product" /> I want ...
{ "pile_set_name": "StackExchange" }
Q: Adding Table Cell Contents to PHP $_POST From my understanding, the only way to retrieve $_POST data is using the name attribute of the element, like so: <INPUT type="text" name="txt"> and the PHP portion: <?php $text = $_POST["txt"]; ?> I've got a table with cells containing plain text, for example: <td class="...
{ "pile_set_name": "StackExchange" }
Q: Передача данных с debian на ВМ windows через туннель Здравствуйте. На моей рабочей машине установлен debian. Далее я соединяюсь с сервером, где создаю туннель до ВМ на Windows. Далее я могу просматривать рабочий стол на Windows через "просмотр удалённых рабочих столов". Существует ли возможность перекидывать данн...
{ "pile_set_name": "StackExchange" }
Q: java applet doesn't work on my html page i am learning java at this moment and i've read somewhere that i can also run my java codes in a browser with an applet. if i try to use it, it says error click here for details. the problem is that the java program does work in command prompt but not in the browser. here i...
{ "pile_set_name": "StackExchange" }
Q: angular4 angular2 - XSRF protection We are currently working on an Angular4 app with Slim-PHP REST Backend. Now we want to implement XSRF protection. Is it correct that there is no official tutorial on Angular2 or Angular4, how to use the classes XSRFStrategy, CookieXSRFStrategy, etc. on the client side? (We put a...
{ "pile_set_name": "StackExchange" }
Q: Symfony: How to hide form fields from display and then set values for them in the action class I am fairly new to symfony and I have 2 fields relating to my table "Pages"; created_by and updated_by. These are related to the users table (sfGuardUser) as foreign keys. I want these to be hidden from the edit/new form...
{ "pile_set_name": "StackExchange" }
Q: Fitting Training Labels on a 2D List in Scikit-learn I am trying to map rows in a 2d to list to elements in a list of labels with Scikit-learn. For example: from sklearn import tree clf = DecisionTreeClassifier() #2D list of training data: training_data = [[1, 2, 3], [1, 2, 4, 5, 6], [5, 7], [1, 2, 3]] #1...
{ "pile_set_name": "StackExchange" }
Q: Why doesn't Ruby have a ThreadPool built-in? I have a program that creates 10000 threads at once, and runs 8 at the same time. But ruby doesn't have a ThreadPool built-in as Java. Is there a good reason? A: probably because it's easy to roll your own using the standard library "Queue" class. q = Queue.new 3.time...
{ "pile_set_name": "StackExchange" }
Q: How to properly utilize RPI 1391 I'm trying to get going with the RPI-1391 sensor but I'm obviously doing something wrong. I'm connecting it to a Raspberry Pi, where: Pins 1 and 3 are connected to Pi's ground Pin 2 is connected to physical pin 2 on the raspberry (5V) Pin 5 is connected in series to a 270 ohm re...
{ "pile_set_name": "StackExchange" }
Q: How to open file inside folder in current directory using fopen I want to open a file that is inside a folder in the current working directory like so: fopen("/folder/file.txt","r"); I'm unable to do so in this way, i get a "No such file or directory" error. How can i do this properly? Thank you in advance for an...
{ "pile_set_name": "StackExchange" }
Q: Is there any difference between extensible records and dependent maps In a typed setting, records can be thought of as a map from field to type. If there is a well-typed record merge operation (which allows overlapping fields), is there any real difference between the resulting type and a dependent map in a depend...
{ "pile_set_name": "StackExchange" }
Q: Javascript $window is not defined when adding paralax scrolling I am currently building a time line based page with the different years, as this is a single page with a lot of info, I decided to go with the paralax scrolling effects available, to construct my page to work in the following manner: I have added par...
{ "pile_set_name": "StackExchange" }
Q: What do all these の's do in this sentence? 病人を気遣って何が悪いののさ is the sentence a friend sent me. The meaning is "What's wrong with worrying about a sick person?". However, what do the trailing の's do and what is さ doing here? My professor explained it briefly as being similar to ですよ but I don't understand why it is...
{ "pile_set_name": "StackExchange" }
Q: What is the applescript code to open a folder Right now I am using this code: open folder and it seems like it can not find the folder. Do I have to specify a folder? A: Basically open does not open folders. You have to open a folder via the Finder and specify an HFS string path, alias or Finder folder spec...
{ "pile_set_name": "StackExchange" }
Q: Why segmentation fault Following block of code is giving segmentation fault.Please help. #include<stdio.h> int main(){ int testcase,num; int i,j,*array; scanf("%d",&testcase); for(i=0;i<testcase;i++){ scanf("%d",&num); for(j=0;j<num;j++){ ...
{ "pile_set_name": "StackExchange" }
Q: DataMapper: Create new record or update existing Does DataMapper provide a convenient way to create a new record when none exists or update an existing one? I couldn't find anything in the API documentation. This is what I have at the moment which doesn't seem very elegant: foo = Foo.get(id) if foo.nil? foo = Fo...
{ "pile_set_name": "StackExchange" }
Q: Mapping and Reducing an Array within an Array of Objects in Javascript I'd appreciate any advice on the below. I need to extract the keywords from the array within an array of objects below, and reduce them to show all keywords without repetition. My data JSON object is below: [ { "word":"Cat", "answer":...
{ "pile_set_name": "StackExchange" }
Q: Android - Play Sound on Button Click I have been following an online tutorial on how to play sound on button click. I am getting no errors with my Java code which leads me to believe that the code is correct. However, they did not provide a tutorial on what the xml should read. So I left it as it is but when the A...
{ "pile_set_name": "StackExchange" }
Q: Play application unexpected exception after running the server I have a scala play application for simple CRUD operations. I was able to run this application and did fair amount of testing with it. However, now when I tried to run the application, the server started, but is unable to accept any http requests and f...
{ "pile_set_name": "StackExchange" }
Q: Pandas mean function returns all NaN I have this dataframe: df = [{'A1':10, 'A2':''}, {'A1':11,'A2':110}, {'A1':12,'A2':120}] And I'd like to average the different columns ignoring the '' (empty string) values. This is the desired output df_AVG = [{'A1':10, 'A2':'','avg':10}, {'A1':11,'A2':110,'avg': 60.5}, {'A1'...
{ "pile_set_name": "StackExchange" }
Q: Using crypt_gen_random to generate unique Serial Numbers Trying to generate unique serial numbers with alphanumerics (A-Z,a-z,0-9) and no special characters.Used below code where sLength was min 10 and max 12 as defined in front end. declare @sLength tinyint declare @randomString varchar(50) declare @counter tiny...
{ "pile_set_name": "StackExchange" }
Q: C++ templates: Accessing template variables I am new to C++ world. I am trying to implement code using templates. template<class PageType> class Book { //implementation public: PageType* FreeQ; //holds the pointers to pages which are yet to be written PageType* BusyQ; //holds the pointers to pages which are ...
{ "pile_set_name": "StackExchange" }
Q: Why is this angular app breaking on reload? I am trying to figure out why my page breaks when I reload it, if the url is already populated. Here is a link to a video of the issue. https://drive.google.com/file/d/0B7y4F6sYl0HxcnpCa1lhazRCRHc/view?usp=sharing Here is the code I am using for my app.js and my index.ht...
{ "pile_set_name": "StackExchange" }
Q: jQuery script not working with pre populated Array I hope I am not repeating an existing question, I have tried really hard to find what I need on the site, but now feel I need to ask the question, so here goes, I hope you guys can help me out :s I have an array; var 1Results = somecontent; var 2Results = somecont...
{ "pile_set_name": "StackExchange" }
Q: how to add background image to activity? using theme or ImageView ? A: use the android:background attribute in your xml. Easiest way if you want to apply it to a whole activity is to put it in the root of your layout. So if you have a RelativeLayout as the start of your xml, put it in here: <?xml version="1.0" e...
{ "pile_set_name": "StackExchange" }
Q: Keeping header element always on top when scrolling? I've read numerous articles on this topic and tried implementing a few, but I just can't seem to get it right. I have a simple HTML table, which compares products: <table> <tr> <th>Product:</th> <th>Product 1</th> <th>Product 2</th> <th>Product...
{ "pile_set_name": "StackExchange" }
Q: View pager skipping to irregular position when I click button in second fragment android? I am using view pager in activity and the sequence is - when I click the next button in first page, it should go to the second page. If I click the button in second page, it should go to third and so on. But my current app is...
{ "pile_set_name": "StackExchange" }
Q: How to change TCP Server In C from Blocking Mode to Non-Blocking Mode when it's already blocking Or How to shutdown a blocking TCP Server properly? I have no problems with running the TCP Server and I like the fact that it's in blocking to avoid useless loops and sleeping code and useless cpu cycles. The problem h...
{ "pile_set_name": "StackExchange" }
Q: Doubt in Rudin's Proof: Once I go through the proof of the below theorem, I could encounter that he used dominated convergence theorem to prove $(f)$, in that how they claim that $$\frac{e^{-ix(s-t)}-1}{s-t}\leq |x|$$ Kindly explain. A: $$ \frac{e^{ixu}-1}{u}=\left.\frac{1}{u}e^{ixv}\right|_{v=0}^{u}=\fra...
{ "pile_set_name": "StackExchange" }
Q: TypeError: Cannot read property 'opacity' of null I'm trying to implement opacity changes when hovering over the legend in React recharts: https://jsfiddle.net/alidingling/1p40zzfe/ However, I'm always getting the error: TypeError: Cannot read property 'opacity' of null. Is there a reason why? Its the Legend compo...
{ "pile_set_name": "StackExchange" }
Q: Slick MTable.getTables always fails with Unexpected exception[JdbcSQLException: Invalid value 7 for parameter columnIndex [90008-60]] I have written this very simple code object PersonDAO { val db = Database.forConfig("h2mem1") val people = TableQuery[People] def checkTable() : Boolean = { val action = ...
{ "pile_set_name": "StackExchange" }
Q: Creating a triangle with text on the sides I am creating a puzzle with triangle pieces, like the picture below. The idea is to have a bunch of equilateral triangles, with different math questions/answers written on the sides of the triangle. I have no idea where to even start, so any information is helpful. While ...
{ "pile_set_name": "StackExchange" }
Q: Can I mix Client-Side-Rendering and Server-Side-Rendering in AngularJS? and How? I'm building a Web site which is not SPA(single page app). It would have several pages and I want to change current page partially. That is why I want to use Client-side rendering. But, it also has totally different pages which will ...
{ "pile_set_name": "StackExchange" }
Q: How to pass a Box value to a function If I have the following method: fn borrow_func(c: Box<i32>) { // some code } fn main(){ let a = Box::new(5i32); let b = a; borrow_func(b); println!("b contains: {}", b); } because the resource in heap will be released in the borrow_func, Is there any way...
{ "pile_set_name": "StackExchange" }
Q: Finding peak value in a bell shaped curve signal using R I have data such as this. This is for one participant steering for 2.5s. I'm interested in the yaw rate (diff_YR) signal df <- structure(list(ppid_trialn = c("1_5_39", "1_5_39", "1_5_39", "1_5_39", "1_5_39", "1_5_39", "1_5_39", "1_5_39", "1_5_39", "1_5_39",...
{ "pile_set_name": "StackExchange" }
Q: Optimize the Game - Make Fair Game with Biased Coins The traditional question states that given an unfair coin, with 0.7 probability of heads, how would you make a fair game? The answer is only consider two outcomes. If two trials yields $HT$ then the player wins, else if $TH$ the player loses. Now the interesting...
{ "pile_set_name": "StackExchange" }
Q: Visual Studio IDE Types and Members selectboxes lost The two dropdown list that display the Types and Members on the open document, right on top of the source editor is lost. How can I re-enable them? A: Go to Tools -> Options -> Text Editor -> (either the language choice e.g C#, or All Languages) and make sure...
{ "pile_set_name": "StackExchange" }
Q: Just how common are Betan Hermaphrodites? In the Vorkosigan series, it is casually mentioned several times in early books that around a hundred years ago, there was a failed social experiment with artificial hermaphrodites. But we still keep seeing plenty of them as of the last book, without comments about the fai...
{ "pile_set_name": "StackExchange" }
Q: How do I group my LINQ query correctly? I am having an issue getting my LINQ query to output as I would like. I am unsure I am taking the right approach. Tables: I have two tables Contacts and Permissions with which I perform a LEFT OUTER JOIN. Join Query: from contact in Contacts join permission in Permissions ...
{ "pile_set_name": "StackExchange" }
Q: Apache Camel get Thread pool queue size I have Thread pool profile like below: <threadPoolProfile id="myThrottler" poolSize="5" maxPoolSize="20" maxQueueSize="1000" rejectedPolicy="CallerRuns"/> I'm using t...
{ "pile_set_name": "StackExchange" }
Q: google drive sdk and the handling of folders I'm considering adding support for Google Drive in an iOS application I've written. That's not my issue - there is plenty of decent documentation on how to do that. My issue is that the data source for this application is a folder. This folder could conceivably contain...
{ "pile_set_name": "StackExchange" }
Q: Did the Germans attempt the easier or harder of two possible objectives in the Caucasus? During the summer and fall of 1942, German Army Group A advanced into the Caucasus pursuant to Fall Blau. This consisted of two armies, the First Panzer Army and the Seventeenth Army. The advanced started (mostly) south from t...
{ "pile_set_name": "StackExchange" }
Q: Is there a method reference way to express a (Runnable) lambda that does nothing? I have an AutoCloseable class that executes a Runnable within close(), like this: static class Whatever implements AutoCloseable { Runnable r; public Whatever(Runnable r) { this.r = r; } @Override public ...
{ "pile_set_name": "StackExchange" }
Q: Kind signatures and Type families I expect type family Rep a and type family Rep :: * -> * to be the same, but it seems there is a difference type family Rep a type instance Rep Int = Char -- ok type family Rep :: * -> * type instance Rep Int = Char -- Expected kind * -> *, but got 'Int' instead Have I ...
{ "pile_set_name": "StackExchange" }
Q: tesseract.js sample code not working I'm trying to make Tesseract.js working. I have taken a very simple code from the web, apprarently declared as working, but it doesn't. <html> <head> <script src='https://cdn.rawgit.com/naptha/tesseract.js/1.0.10/dist/tesseract.js'></script> <title>Tesseract...
{ "pile_set_name": "StackExchange" }
Q: Identicality, equality and linearity of i.i.d random variables. What are some examples if iid r.vs are unequal among themselves? I need to understand some underlying concepts and facts regarding i.i.d random variables. The problem is $$\textrm{Suppose } \mathrm{X_1, X_2, X_3 } \textrm{ are i.i.d positive valued r...
{ "pile_set_name": "StackExchange" }
Q: Creating a Compatibility Shim for ExampleClass to be targeted both to .net framework and .net core 2.0 Intro: Before showing the actual code for review, let me show you an ExampleClass to create a shim for. using System.Windows; public class ExampleClass { public void ExampleMethod(string line) { MessageBox.S...
{ "pile_set_name": "StackExchange" }
Q: Maclaurin series expansion of $f(x) = \ln(3x^2 +4x +1)$ Can someone please explain how I do the following Maclaurin series? $$f(x) = \ln(3x^2 +4x +1)$$ A: Hint: $$\ln(3x^2 + 4x + 1) = \ln(3x+1) + \ln(x+1)$$
{ "pile_set_name": "StackExchange" }
Q: java -version doesn't display the value of JAVA_HOME I've installed jdk 7 and set up the "JAVA_HOME" to this version. Then, I've installed jdk 6 and I've updated the "JAVA_HOME" to point to jdk 6. After closing and reopening the system, when typing "java -version", I got always : java version "1.7.0_40" Java(TM) S...
{ "pile_set_name": "StackExchange" }
Q: conditioning on continuous value Is there a formula like this $$P(A)=\int P(A|x)p(x)dx $$ where $x$ is a continuous random variable? If yes, what is a good book for learning about this? Thanks! A: Yes, there is such a result (or, rather, this is the defining equation of the conditional probability $\mathbb{P}(A|...
{ "pile_set_name": "StackExchange" }
Q: FF can play mp3, but not using the javascript Audio API I have this javascript audio player which plays mp3 files. On FF v23.0.1 (Mac) it doesn't work (the reason for this is explained everywhere and here) What I don't understand is, if I point the URL directly to the mp3 file FF shows its own player and the song ...
{ "pile_set_name": "StackExchange" }
Q: Stored Procedure or Calculated Columns This is a question of what is the best practice and best performance. I have inherited a database that contains data for turbine engines. I have found 20 data points that are calculated from several fields from the turbine. The way it was done in the past is a view was crea...
{ "pile_set_name": "StackExchange" }
Q: Why did the horse keep on walking when Glass was not on it? During the scene in The Revenant where Glass tricked Fitzgerald by setting up his commander's body on his horse, why did the horse keep on walking? Doesn't the horse need to be signaled in order to keep going? A: Most likely the horse was trained and it...
{ "pile_set_name": "StackExchange" }
Q: Spring and Thymeleaf - Cannot initialize: no template resolvers have been set I am currently working on a Spring Boot application.Am getting error when trying to create an Email Service. application.properties : spring.thymeleaf.prefix=classpath:/static/ spring.thymeleaf.suffix=.html spring.thymeleaf.mode=LEGACYHT...
{ "pile_set_name": "StackExchange" }
Q: What html/css attributes are mail safe? I have recently been developing a newsletter for a client of mine. How ever I can't seem to find good information on what css and html are safe to use in the major mail clients. I thought that maybe there are people here that have the knowledge and we can create some sort of...
{ "pile_set_name": "StackExchange" }
Q: Is it possible to declare a Global variable that gets used for all forms? I am wondering if there is a way to declare a Global HTML- tag, that gets submittet with each form that gets called. I mean something in the way like this: <input type="hidden" name="x" value="200"> <form action="test.php" method="POST" enc...
{ "pile_set_name": "StackExchange" }
Q: How to add border to listview and different row colors at the same time I'm trying to have a border on the outside of my listview and a different color for every other row at the same time here's the getView method from my adapter viewHolder.dateView.setText(entry.getDateString("yyyy-MM-dd HH:mm")); ...
{ "pile_set_name": "StackExchange" }
Q: Converting Image VB.net I have the following code Public Sub ConvertImage(ByVal Filename As String, _ ByVal DesiredFormat As System.Drawing.Imaging.ImageFormat, _ ByVal NewFilename As String) ' Takes a filename and saves the file in a new format Try Dim imgFile As System.Drawing.Ima...
{ "pile_set_name": "StackExchange" }
Q: UserProfile WebService understanding permission required to create user I've currently written a proof of concept console application to add a single user to our user profile service, using the SharePoint web services http://sharepoint/_vti_bin/userprofileservice.asmx. I have found that reading in a user can use...
{ "pile_set_name": "StackExchange" }
Q: Why signal interval is -T/2? While going over some notes for the past year, I never really understood why many of the integrals for signals and systems, integrate over \$ [- \frac{T}{2},\frac{T}{2}]\$ rather than just \$[0,T]\$. (The same is can be true for \$ [-T,T]\$ vs \$[0,2T]\$ ) Why is that a common interval...
{ "pile_set_name": "StackExchange" }
Q: New Data is Replacing Older Data Instead Adding New Data in C I am making simple C program. This program should be able to store data in memory (not using database). But when i tested it, it can not store more than 1 data. Every time i store new data, the old one get replaced. I hope these screenshot could help yo...
{ "pile_set_name": "StackExchange" }
Q: Math function returns wrong value I have the following calculations: let sinX = sin(150.0) //returns -0,71487 let cosY = cos(150.0) // returns 0,699250 But the real values for sinX = 0,5 and for cosY = -0,86. Does anybody know where is the error? A: The calculation is correct. However sin and cos take their par...
{ "pile_set_name": "StackExchange" }
Q: Any good Python HTTP proxies? There is a long list of python http proxies. Does anyone have experience with them and have any recommendations? I need to run a proxy for automation tests running on a windows machine in IE. I want a proxy that has an API for monitoring traffic, so I can give go signals to the automa...
{ "pile_set_name": "StackExchange" }
Q: Python - Scatter mode error for plotly library I'm using VS Code with Jupyter notebook extension. The function call below is generating an error def _generate_traces(name_df_color_data): traces = [] for name, df, color in name_df_color_data: traces.append(go.Scatter( name=name, x=df.index, ...
{ "pile_set_name": "StackExchange" }
Q: Including column headers in track listings in Spotify apps I have been working on a Spotify app which displays a track listing using code like this: var tpl = new models.Playlist(); var tempList = new views.List(tpl); body.document.appendChild(tempList.node); tpl.add(track1); tpl.add(track2); ... tpl.add(trackn); ...
{ "pile_set_name": "StackExchange" }
Q: Solaris: Encrypting a zpool NOT a dataset within a pool? What is the way in Solaris to encrypt a zpool? All the documentation supporting ZFS encryption talk about using "zfs create" and specifying a dataset WITHIN a pool. I just became SA for several Solaris servers and they all have encrypted zpools, but no docum...
{ "pile_set_name": "StackExchange" }
Q: Capture and playback of audio (WP8.1 XAML) I'm attempting to get to grips with the basics of capturing audio from a phone and then allowing playback. Currently I have a 'Start' button and an 'End' button. The Start button invokes my asynchronous 'CaptureAudio' method, and an 'End button which invokes a 'StopCaptur...
{ "pile_set_name": "StackExchange" }
Q: Conditional formatting not displaying cell highlights on coworkers computer My boss has a spreadsheet that uses macros and conditional formatting to rearrange data and whatnot; he is running at least Office 2010. When my coworker opens it, however, it does not show cell fill colors; he is running 2007. It shows up...
{ "pile_set_name": "StackExchange" }
Q: How do I get XSLT to stop using scientific notation when outputting the results of numeric operations? I have a bit of XSLT which is performing some magic on integer database identifiers. The relevant code snippit is <xsl:variable name="releaseId" select="@ID + $contentOffsetId"/> <xsl:attribute name=...
{ "pile_set_name": "StackExchange" }
Q: Building a web application for Internet enabled televisions With Google TV around the corner, I started thinking about developing a web application aimed at television users. There's not much info for Google TV yet, but I did manage to find a developer tips page on the site. I have a few questions that specific ...
{ "pile_set_name": "StackExchange" }
Q: BigQuery insert into a partitioned table from an existing table I have to tables with the same schema tab1 and tab1_partitioned where the latter is partitioned by day. I am trying to insert data into the partitioned table with the following command: bq query --allow_large_results --replace --noflatten_results --de...
{ "pile_set_name": "StackExchange" }
Q: Back propagate type inference when currying in typescript I hope the title makes sense. What I want to do is to have a factory function that takes a function taking an argument which will be supplied in later call of the returned function. In essence: const f = <B extends keyof any>(arg: B, fn: (props: A) => void)...
{ "pile_set_name": "StackExchange" }
Q: TypeError: message.guild.members.filter is not a function I'm new in bot developing. I'm trying to use a bot coded by another developer then I faced this TypeError error. Can anybody help me to get rid of this? I badly need help to fix this error. The code is given below: const Discord = require("discord.js"); ...
{ "pile_set_name": "StackExchange" }
Q: ng-repeat is not updating when array is changed I have an ng-repeat that isn't updating upon changing the data in the array that it is using. I've researched for quite a while but nothing seems to be working. Initially, when the page loads, the ng-repeat displays the first page of a dataset, upon getting new dat...
{ "pile_set_name": "StackExchange" }
Q: XCode 3.x to 4.0 upgrade issue I have just upgraded XCode 3.x to 4.0 and ran into following build error. Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1 I tried juggling around this error but couldn't get rid of it. Does anyone know fix for this please? Complete er...
{ "pile_set_name": "StackExchange" }
Q: what does "<()" mean in bash? I'm trying to install RVM. There is a magical command line: bash < <(curl -s https://rvm.io/install/rvm) I know what bash and curl are. I know the first < is the I/O redirection. But what does <() syntax mean? What's the difference between this command and bash < `curl -s https://rv...
{ "pile_set_name": "StackExchange" }
Q: Symfony2 - How to validate an email address in a controller There is an email validator in symfony that can be used in a form: http://symfony.com/doc/current/reference/constraints/Email.html My question is: How can I use this validator in my controlelr in order to validate an email address? This is possible by usi...
{ "pile_set_name": "StackExchange" }
Q: Working with Android Objects and Methods I have a quick Android development question. I am working on an exercise and I have a class that gets the current date and time. The exercise wants me to try and format the date's text to something in a more readable human form. This is what I had which returned a date time...
{ "pile_set_name": "StackExchange" }
Q: How to change row order using order & group in PgAdmin, sql? I would like to re-order rows from two columns in an existing table without creating a new one. I have this script, that works, table name test.table: SELECT value, variety FROM test.table group by value, variety order by value, variety; ...
{ "pile_set_name": "StackExchange" }
Q: Can't load jQuery locally in node-webkit app I get the following error in my console: Failed to load resource file:///var/folders/n7/94blrknd6639zt8ngcfp9l4m0000gn/T/.org.chromium.Chromium.RRLqW8/js/jquery-2.0.3.min.js index.html loads it with: <script src="js/jquery-2.0.3.min.js"></script> A: I didn't include ...
{ "pile_set_name": "StackExchange" }
Q: К какому типу относится предложение? К какому типу односоставных вы отнесли бы предложение: По бороде Авраам, а по делам Хам? A: Я отнес бы это предложение не к односоставным, а к неполным, которые считаются двусоставными. Мотивация: "По бороде (он есть, был, будет) Авраам" (то же относится и ко второй части пр...
{ "pile_set_name": "StackExchange" }
Q: SQl query to get unique records I have the below data: pdtid version col1 col2 col3 1 1 0 0 0 1 2 0 0 0 1 3 0 0 0 2 1 0 0 0 2 2 1 1 0 3 1 0 0 0 4 1 0 0 0 4 2 0 1...
{ "pile_set_name": "StackExchange" }
Q: IIS site with multiple IPs? Is it possible to setup an IIS hosted site so that it is setup with multiple IPs? I'm not sure if this is practicle or if we should stick to a single IP per site. We are using IIS6 on Windows 2003 A: Yes. When you go to the site bindings, you can specify which IP address you want to ...
{ "pile_set_name": "StackExchange" }
Q: No search result on Github Issue tracker? I started using a personal github. I didn't push any codes up yet; I only played with the issue tracker. I created few issues but found out that the "search" function doesn't return any search result doesn't matter what keyword I type in. I went to someone's repository and...
{ "pile_set_name": "StackExchange" }
Q: How can I make a factor in a data frame numeric permanently? Let me begin by saying that I am very new to programming and R, so this might be a stupid question. But here it goes. I am working with a large data frame containing metadata from a corpus. One column contains the proficiency of a text (i.e. "B1", "B2",...
{ "pile_set_name": "StackExchange" }
Q: Is it possible to have a default copy constructor and a templated conversion constructor? If I have a class like this template <typename T> class MyClass { T myData; public: T getValue() { return myData; } template <typename V> MyClass(const MyClass<V>& other) : myData((T) other.g...
{ "pile_set_name": "StackExchange" }
Q: Linux Firewall + Loadbalancer distribution Can anyone recommend a Linux specialized distribution (or appliance) which provides both Firewall and Load-balancer? Something similar to IPCop for example, but containing LB as well? Thanks in advance. A: The opensource firewall pfsense can do load balancing (see the l...
{ "pile_set_name": "StackExchange" }
Q: toggle visibility of chain group in constraint layout In previous xml layout, I have multiple view groups with few elements inside. Hide each view group will also hide all of its child elements. Since I wanted to have flat structure and tried ConstraintLayout. Cool I know how to chain element with spread to align ...
{ "pile_set_name": "StackExchange" }
Q: Voltage drop assumption on diodes (LEDs, etc.) I've always wondered why is it valid to assume some voltage drop (different from the junction voltage drop) on diodes or LEDs from the power up of a circuit. It simplifies the analysis, but it's unclear to me why it is a valid approach. For example, in the question Ca...
{ "pile_set_name": "StackExchange" }
Q: Merging a Data Frame in R I have a large data frame with financial data that looks like this : id Tradedate name hour open close 19897 2013-01-30 instrument1 1 18.01 13.50 19898 2013-01-30 instrument2 2 15.72 8.99 19899 2013-01-30 instrument3 3 12.80 11.42 19900 ...
{ "pile_set_name": "StackExchange" }