text
stringlengths
70
452k
dataset
stringclasses
2 values
Jenkins Changes link What is the purpose of the "Changes" link in the Jenkins UI? Can anyone point to the Jenkins documentation that describes the "Changes" link? When Jenkins pull the source code, it get a new SVN revision or a new Git SHA1. This link displays the SCM changes since the last build: I did some searc...
common-pile/stackexchange_filtered
How to read the app settings (from iPhone Settings app) when app is launched How can read the app settings when app is launched? For instance, for some gaming application, you set the sound, vibration setting in iPhone Settings app. So, how to read those settings when that gaming app is launched? Look through the docu...
common-pile/stackexchange_filtered
Calculate LAG variable after filtering in Tableau I have a dataset with 4 columns: ID (unique identifier of user), Year, Country and Level in this format: +----+------+---------+-------+ | ID | Year | Country | Level | +----+------+---------+-------+ | 1 | 2015 | USA | 1 | | 1 | 2016 | China | 2 | | 2 ...
common-pile/stackexchange_filtered
Bash checking to see if a line only has a certain characters i am wanting to check that the first line of a file to see if it contains only "X", if it contains somthing other then "X" on the first line then i want to echo "yes" if not echo "no" for example: the first line in a file is XXXXXXX i need the output to be ye...
common-pile/stackexchange_filtered
Regular Expression - remove digits if surrounded by square brackets I have a regular expression statement that should remove digits and square brackets that are preceding and following the digits. For example if the input text is: "William Henry Gates III (born October 28, 1955) is an American software developer and p...
common-pile/stackexchange_filtered
Creating algorithm with several conditions I'm pretty new to mathematica and was wondering if you guys could help me out. Example: We have the following coordinates: {1, 1}, {2, 1}, {3, 1}, {5, 1}, {1, 2}, {2, 2}, {3, 2}, where {x,y} And I need an algorithm which returns (or prints) "01 Xx Yy" if the y-coordinate is ...
common-pile/stackexchange_filtered
How to create pointer variable from a reference type in c++? I want to create a global pointer so that all the functions can access the reference. I've tried assigning the address of reference to a pointer but when I try to access the values getting compilation error. vector<vector<char>>* table; class Solution { publ...
common-pile/stackexchange_filtered
How do scripts and modules get cached? I understand for assets like images, there is a src associated with them, which means that a browser will check the expiration date of that asset before making a new request for that asset at the src to download that asset again and then render it onto the page. How does this work...
common-pile/stackexchange_filtered
Check whether a type is an instance of Show in Haskell at runtime? Suppose I have a simple data type in Haskell for storing a value: data V a = V a I want to make V an instance of Show, regardless of a's type. If a is an instance of Show, then show (V a) should return show a otherwise an error message should be return...
common-pile/stackexchange_filtered
Opening modal doubles the request every time user clicks - Rails I'm adding https://github.com/kylefox/jquery-modal - Jquery Modal. To my project. I added it to my application.js //= require jquery //= require jquery.turbolinks //= require jquery_ujs //= require jquery.modal.min //= require pickadate/picker //= require...
common-pile/stackexchange_filtered
Make the bibliography entry link to online resource without showing the href/address So i have my bibliography, and it looks exactly as i want, there's no problem with that. I don't want the entries in the bibliography show the url (unless it's specifically an online resource), and i have achieved this using the custom...
common-pile/stackexchange_filtered
Predicting on GCP Ai Platform I deployed a tensorflow model on GCP AI Platform. This model predicts whether a text is sarcasm (1) or not (0). A text is represented (with a given function "tokenize_text") as two tensors. That could look like this: text = tokenize_text('This is a text') print(text) >>> <tf.Tensor: shap...
common-pile/stackexchange_filtered
JSF h:outputStylesheet renders nothing This <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets"> <h:outputStylesheet name="test.css" /> renders nothing. Do I have to add some configuration? The test.css is avaible in my resource folder. still...
common-pile/stackexchange_filtered
Why flush dns often doesn't work After we change name server we often want to see how our new site look like. Sometimes the name server hasn't propagated properly to our site. So we flush dns. It doesn't work. It never work C:\Users\jim2>ping goldslady.com Pinging goldslady.com [<IP_ADDRESS>] with 32 bytes of data: Re...
common-pile/stackexchange_filtered
Stopping python-shell if a script has an endless loop I'm working on a Node.js application which accepts submitted Python code and runs test suites on those submissions. I've been using python-shell package to run Python within Node.js. When submissions fail or pass test cases, everything is fine. The problem appears w...
common-pile/stackexchange_filtered
Asynchronous FIFO Design I found the following piece of code in the internet , while searching for good FIFO design. From the linkSVN Code FIFO -Author Clifford E. Cummings . I did some research , I was not able to figure out why there are three pointers in the design ?I can read the code but what am I missing ? modul...
common-pile/stackexchange_filtered
Unicode escape syntax in Java In Java, I learned that the following syntax can be used for mentioning Unicode characters that are not on the keyboard (eg. non-ASCII characters): (\u)(u)*(HexDigit)(HexDigit)(HexDigit)(HexDigit) My question is: What is the purpose of (u)* in the above syntax? One use case that I underst...
common-pile/stackexchange_filtered
Node code keeps a sequence instead of asynchronous execution Can anyone explain why this piece of code is executed in sequence with Node? console.log('Main code, first line'); doThings(10000000, doThingsAfter); function doThings(x,callback){ console.log('Am in doThings(x,callback), value received is ' + x); fo...
common-pile/stackexchange_filtered
Clicking on a hidden button in Python using Mechanize I have a button that looks like this: <a id="bRegister" class="button bRegister disabled" onclick="void(0);">Register</a> The button gets enabled once a previous checkbox is checked. How do I click on the button? I am using Python with Mechanize. possible duplicat...
common-pile/stackexchange_filtered
jQuery and JSON: break object into a table I need a little bit of help navigating through this object: {"COLUMNS":["ID","TYPE","NAME"],"DATA":[[1,"Image","My Image"],[2,"Text","My Text"],[3,"Video","My Video"],[4,"video","test"],[5,"Image","testName"],[6,"Image","testName"],[7,"Image","testName"],[8,"Image","testName"]...
common-pile/stackexchange_filtered
Running Varnish on Windows 7 We are planning on using Varnish Cache 3.0.2 (latest version) for our production environment, however, for development we would like to run Varnish on our local computers, some of us have Win7. The only easy option I could only find to install it was an older version of Varnish (2.1) bundl...
common-pile/stackexchange_filtered
If the Quran is such a miracle, then why do so many Arabs still reject Islam today? We know that even during the Prophet's (pbuh) days, many Arabs did not believe that he was a prophet. And even today, there are many christian arabs who don't believe that the Quran is a miracle. There are even some christian arabs who ...
common-pile/stackexchange_filtered
Access android native code from Ionic I have created my Android application Ionic but later on realized that i want to access some hardware from my android device which is possible with android native code, so is there any way that i can access the Android code from Ionic app (Apache Cordova) ? You can call a Native ...
common-pile/stackexchange_filtered
Set custom size to custom cordova plugin I have created a custom cordova plugin and implemented it in an app - all works well. But now i need to make my custom plugin to take specific size and be at specific position in the screen. Everything i tried ONLY resizes the content of the plugin but not the activity itself as...
common-pile/stackexchange_filtered
Check if two pandas dataframe have the same values and order I have time series dataframe, and want to compare two dataframes (In detail, I need to check if dataframe is a subset of other dataframe.) like that: I've already tried to find a way, but I could only find it if it had the same value. Is there a way to compa...
common-pile/stackexchange_filtered
Do I need to get a noble in order to win Splendor? Is it necessary to win a noble in order to win the game of Splendor? I have heard two different sets of rules, one is to reach 15 points, the other is to reach 15 points and possess at least one noble. Which one is the correct rule? No. From the rulebook, hosted on th...
common-pile/stackexchange_filtered
js and css do not work properly with ini_set I used ini_set('include_path', '../'); to change include path and then I included include '../header.php' ; The problem is css files and js files do not work properly due to an error in directory! How can I include files from other directories and keep css directories wo...
common-pile/stackexchange_filtered
How can I hide 1 pager website's slug for each section? I made a 1 pager website that has a pagination for each section like if you press the first page it will just scroll to top most while pressing the last page will bring you to the bottom most section. The url will become websitename.com/#1stpage, websitename.com/#...
common-pile/stackexchange_filtered
Spring boot hibernate/jpa batch update not working application property spring.datasource.url=jdbc:as400://localhost/ spring.jpa.properties.hibernate.jdbc.batch_size = 30 spring.jpa.properties.hibernate.order_updates = true spring.jpa.properties.hibernate.batch_versioned_data = true Entity - @Data @NoArgsConstructor ...
common-pile/stackexchange_filtered
How was Lord most likely understood and how should it be understood today in Luke 1:76 “And you, child, will be called the prophet of the Most High; for you will go before the Lord κυριου to prepare his ways,” ‭‭Luke‬ ‭1:76‬ What did those listening to Zachariah’s prophetic utterance as coming directly from God under...
common-pile/stackexchange_filtered
HTTP/2 for ALB with EKS on AWS I'm experimenting with AWS EKS and have created the following setup: EKS cluster with a single service/pod/node AWS ALB ingress controller ALB I try to configure the ALB to: create access logs provide HTTP/2 support My alb ingress controller definition: apiVersion: apps/v1 kind: Deplo...
common-pile/stackexchange_filtered
I have a problem installing ubuntu I have been trying to install the latest version of ubuntu from a flash drive that i setted up with rufus. When the process begins i’m not able to succesfully pass through the point where it ask if you want to delete Windows because it sends a pop up that says “the attempt to mount a ...
common-pile/stackexchange_filtered
Indentation in nested list Can anybody please explain how the value of level is working for indenting the list items. I have the code written. But is it that the value of level is getting incremented each time fn() is being called recursively? How does the value of level become 0 when it comes back to the item '8' in...
common-pile/stackexchange_filtered
Python Sentiment Analysis : IndexError - list index out of range I am trying to compile a program for detecting sentiment analysis. However, I am really new with Python and this is the first time I'm dealing with it. Whenever I compile the source code, the following error appears Traceback (most recent call last): ...
common-pile/stackexchange_filtered
How to configure Protégé to perform Closed World Reasoning? I want to validate instances against the minimum cardinality restrictions of my ontology. To do so, I have to perform Closed World Reasoning. According to several posts, Protégé supports such reasoning with Pellet reasoner. However, I could not find any tutor...
common-pile/stackexchange_filtered
unable to resolve org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'soapenv:Envelope' Below is the code import java.io.File; import java.io.IOException; import javax.xml.XMLConstants; import javax.xml.transform.stream.StreamSource; import javax.xml.validation.Schema; impo...
common-pile/stackexchange_filtered
Javabridge PHP and installation MPXJ I'm not sure how to proceed with this one but I want to get MPXJ working to write MPX files with my PHP app. The Javabridge documentation says that I should copy the application's jar file that I want to bridge into the /WEB-INF/lib folder of the javabridge package. So I extracted m...
common-pile/stackexchange_filtered
GraphQL, Dataloader, [ORM or not], hasMany relationship understanding I'm using for the first time Facebook's dataloader (https://github.com/facebook/dataloader). What I don't understand is how to use it when I have 1 to many relationships. Here it is a reproduction of my problem: https://enshrined-hydrant.glitch.me. I...
common-pile/stackexchange_filtered
Retrieving value of integer from within method? I'm currently making a game that has blocks falling and the user controls them. I want to be able to detect when the blocks have stopped moving, because they have landed on another block or hit the bottom, in order to create a new block to drop (kind of like how Tetris sp...
common-pile/stackexchange_filtered
How can I retrieve a list of a Wordpress page's sibling pages? I am trying to create a list of sibling pages (not posts) in WordPress to populate a page's sidebar. The code I've written successfully returns a page's parent's title. <?php $parent_title = get_the_title($post->post_parent); echo $parent_title; ?> As I...
common-pile/stackexchange_filtered
$f^{(j)}(a) = 0$ except for the last derivative. Under which conditions $a$ can be a minimizer of $f$? Let $f:\mathbb{R}\to\mathbb{R}$ and suppose that $f^{(j)}(a) = 0, j=0,\cdots,n-1$ and $f^{(n)}(a) \neq 0$. Under which conditions the point $x=a$ can be a minimizer of $f$? Based on your answer: $f(x) = x^{13}$ h...
common-pile/stackexchange_filtered
Converting text to binary in java I want to convert every character of a String to a new binary String. Here is what I do : public static void main(String args[]) { String MESSAGE = "%"; String binaryResult = ""; for (char c : MESSAGE.toCharArray()){ binaryResult += Integer.toBinaryString( (int) c);...
common-pile/stackexchange_filtered
Modal bottom sheet on flutter with interactive background I want to dim (gray) the background when the bottom sheet opens, like a modal bottom sheet, but still be able to interact with the rest of the UI while the bottom sheet is open - like a regular bottom sheet. Any ideas? Can you show something relatable? Even t...
common-pile/stackexchange_filtered
Why DC supply voltage is increasing when inverter is connected to powerful three phase induction motor? If I connect my inverter to a resistive load or small inductive load the DC supply voltage (in my application it is 56 V) stays constant. However, if a powerful induction motor is connected, the DC supply voltage gr...
common-pile/stackexchange_filtered
What is the smallest positive floating point value? How can I express a number in Objective-C "infinitely" close to zero but still larger. Essentially I want the smallest positive number. I want to express the number, .0000000000000001 in a simpler form. What's the smallest number I can get without it being zero? The ...
common-pile/stackexchange_filtered
How to change ownership in docker image during build? 1. FROM node:16.17-alpine 2. 3. RUN addgroup app && adduser -S -G app app 4. USER app 5. 6. WORKDIR /app 7. COPY . . I then run: docker build -t mytest . [+] Building 3.3s (9/9) FINISHED => [internal] load build definition from Dockerfile ...
common-pile/stackexchange_filtered
Being html_safe in Rails while retaining html entities? Let's say I'm outputting a post title and in our database, it's Hello Y&#8217;all -- can I output it without using .html_safe, but in such a way that it doesn't get output in html as Hello Y&amp;#8217;all? That is, if a user copies a post title from a word process...
common-pile/stackexchange_filtered
java delete a component Current I can add a bunch of customed component objects to the JPanel by pressing "add" JButton. I also got a "delete" JButton which I wish to do the opposite of "add". My intention is that I can select a component with a mouse and click the delete button and pressto!, the component is gone. I h...
common-pile/stackexchange_filtered
How do I run a Python script from command line in a WPF application I am trying to run a Python script from cmd line in a WPF application. I have this code which opens cmd line to the correct directory: string cmd = @"webplus_builder.py"; Process p = new Process(); p.StartInfo.FileName = "cmd....
common-pile/stackexchange_filtered
'Associated' data in ElasticSearch For an ecommerce platform, we're looking to index products. Default fields are simple as: name_en, name_de, name_fr, description. But, price and stock are dependant on another value: Product A, for webshop 1, has price = 1.99, stock = 10, and fits under categories 1, 10, and 50. Prod...
common-pile/stackexchange_filtered
how to do fix+fast using quickfix? I consider to buy this connector: MICEX FIX/FAST Market Data Adaptor http://www.b2bits.com/trading_solutions/market-data-solutions/micex-fixfast.html But I don't like propriety software by some reasons and would prefer to replace this connector with QuickFix + DIY code. 100 usec perfo...
common-pile/stackexchange_filtered
How can I serve an Angular app using Jetty and also use the same server along with Jersey? I'm working on an application whose front end will be developed using Angular, the back end using Java / Jersey. I am using Jetty as the http-server. My directory structure is as follows: src main java com...
common-pile/stackexchange_filtered
How to implement password reset functionality without becoming susceptible to cross-domain referer leakage? I have typically implemented password reset functionality by sending a link that included something like this: http://example.com/pwreset?id=userId&resetToken=superSecretResetToken On my pwreset page I will typic...
common-pile/stackexchange_filtered
How to install a program with a graphical installer in Ubuntu 12.04? I want to install yEd (http://www.yworks.com/en/products_yed_about.html). It has a .sh installer which first unpacks and then starts a graphical installer. I have tried sudo and gksudo but so far without success. The installer terminates with: 'Could ...
common-pile/stackexchange_filtered
Shortcut created when mount any drive I am using Linux Mint 17.3. When I mount any drive partition, a shortcut is created on my desktop with the drive name. How can I stop this shortcut creation process? How do you mount the drive? I don't know which desktop environment you are using, but assuming it's Cinnamon, this...
common-pile/stackexchange_filtered
Class cast Exception while using Comparable interface When I am trying to execute the below code,the compiler is throwing error at line 13 as "java.lang.ClassCastException". Can someone let me know what's wrong with below code? package chapter11; import java.util.*; public class ComparableExample { public static...
common-pile/stackexchange_filtered
Why in SELECT query syntax as use ID = '140qwe4' it is treated ID like '140' i have a SQL syntax: SELECT * FROM matches LEFT JOIN predictions ON matches.matchid = predictions.matchid and predictions.userid = '8' where matches.matchid = '140qwe4' SQL returns me result where matches.matchid = 140. I`m looking not for...
common-pile/stackexchange_filtered
How do I include routes.url_helpers into a view renderer in rails? I am trying to render html in my model (for Mandrill inline code) but i cant seem to get the url_helpers to render correctly questions.haml %a{:href => email_question_url(question)} model.rb view = ActionView::Base.new(ActionController::Base.view_pa...
common-pile/stackexchange_filtered
Did Hillary Clinton admit in her memoirs to creating ISIS? The Iranian religious leader Ayatollah Khamenei claimed in a speech posted on his official website that: Some Americans have confessed in their own memoirs [including Hillary Clinton's memoirs] that they have played a role in creating, developing and estab...
common-pile/stackexchange_filtered
A Command works fine when (defined) outside of a LaTeX3 Environment, but yields "Undefined control sequence" when (defined) inside the Environment A Command, e.g. \Subentry, works fine when defined outside a LaTeX3 Environment, e.g. {mainentry}, but as soon as one would like to put its definition inside the (definition...
common-pile/stackexchange_filtered
Is this Possible to retrieve a report names specific to object reference. Ex:Like for account object how many reports/dashboards are associated Requirement:-I want to fetch a report and Dashboard names which using Account ,contact,Opportunity,Lead And some custom object reference(Fields)). Is this Possible to retrieve ...
common-pile/stackexchange_filtered
In the T/Z/F/Chi sq test, are we looking at the Distribution of the Control dataset or Treatment dataset? Pretty straight forward question. Even if we are looking at the shape of the sample's distribution, are we sampling from the Control group or the Treatment group, or both? What is a "T/F/Z test"?? The standard st...
common-pile/stackexchange_filtered
Custom View Filter for "viewmode" change I'm implementing View (controller by AJAX) for Commerce project and would like to have the ability to display Commerce Products in two viewmodes in my View. I was thinking about using Contextual Filters to accept "viewmode" query parameter and then in hook_views_post_execute I w...
common-pile/stackexchange_filtered
Do CEOs hire employment contract lawyers for contract negotiation? Do CEOs generally hire employment contract lawyers for contract review and/or negotiation? What about other C-level executives? If yes, at which point on the corporate ladder is it typical for an employee to hire such a lawyer? A concrete example: When ...
common-pile/stackexchange_filtered
Why does sending Epaphroditus to the Philippian Christians make Paul less anxious? Philippians 2:28 (NA28) reads: σπουδαιοτέρως οὖν ἔπεμψα αὐτόν, ἵνα ἰδόντες αὐτὸν πάλιν χαρῆτε κἀγὼ ἀλυπότερος ὦ. I am specifically interested in the meaning of κἀγὼ ἀλυπότερος ὦ, which simply translated is: "and I might be less anxious...
common-pile/stackexchange_filtered
Using "not" Jquery selector does not deselect I have several divs with the same classes that need to be hidden after certain interval, except one. I identified the one with an id attribute: <div id="reload-server-status-message" class="alert alert-warning" style="display: none"> <strong>Please wait! It may take ...
common-pile/stackexchange_filtered
RHEL 7.9: rpm --eval "%dist" is now .el7_9 instead of just .el7 Here, we've recently upgraded some of our systems from RHEL 7.8 to RHEL 7.9, and I'm facing an issue related to the "dist" returned by the rpm tool. In some scripts, we share between RHEL7 and RHEL8 systems, we use the command: rpm --eval "%dist" to determ...
common-pile/stackexchange_filtered
DirectX 9 light class At the moment I am trying to create a tech demo in directX 9. I have a good understanding of basic lighting but, in my game/demo, I want to be able to create and light a scene like the following: Could someone please help me and point me in the direction of a good base light class, or where I cou...
common-pile/stackexchange_filtered
android gridlayout row and column not match the result I want to create a GridLayout Here is my setting from server: items.add(listOf(4, 3, 0, 0)) -> start at x: 0 - y:0 expand horizontal : 4, vertical 3 items.add(listOf(1, 1, 0, 3)) -> start at x: 0 - y:3 expand horizontal : 1, vertical 1 items.add(listOf(1, 1, 1, ...
common-pile/stackexchange_filtered
How to model a 2x2x2 dataset for a 3 way repeated measures ANOVA analysis I have some data derived from a 2x2x2 experimental design. There are 3 IV's, each with 2 levels. My DV is reaction time (measured in seconds). I've used a repeated measures design (n=10). I have 20 repetitions per condition, per participant. I am...
common-pile/stackexchange_filtered
Failed to start Kubernetes API Server duo to unknown reason the service is not starting and the listener is not activated on port 8080. here is my kubernetes configuration: KUBE_LOGTOSTDERR="--logtostderr=true" KUBE_LOG_LEVEL="--v=0" KUBE_ALLOW_PRIV="--allow-privileged=false" KUBE_MASTER="--master=http://centos-master:...
common-pile/stackexchange_filtered
SPLITTING COLUMN BY DELIMITER INTO UNIQUE ROWS IN HIVE I have a dataset. Please see below a sample row: 94654 6802D326-9F9B-4FC8-B2DD-F878EADE31F2<PHONE_NUMBER>:440507;1460777656:440515;1460778054:440488;1460778157:440481,440600; Each column is separated by a space(in total 3 columns). The columns names are id (int),...
common-pile/stackexchange_filtered
Does iloc[ :, 1:2 ]. values and .iloc[ :, 1].values work differently? If I slice a pandas dataframe with dataset.iloc[:, 1:2].values, it's giving me a 2 dimensional(matrix) structured data where dataset.iloc[:, 1].values is giving me 1 dimensional data. So, my doubt is iloc[:,1:2] & iloc[:,1] dont do the same thing ? H...
common-pile/stackexchange_filtered
iPhone - Display smoothly 2 successive modal view controller I'm searching a way to be able to display one modal view controller after another one, and make the second appear while the first is disapearing. The problem is that the dismiss call that is done inside the first modalviewcontroller applies to both and Second...
common-pile/stackexchange_filtered
I cannot put each object side by side With the reference to the subject, I cannot put each object which should be bracketed by the i tag. I would like to align it side by side. However I used a li tag and float:left and right on CSS, it was not changed. Does anyone know how to change the position? <section id="mypassi...
common-pile/stackexchange_filtered
Elements doesn't react to reactive props being changed I have this code for a "Show Code", which will render the Code Snippet with different props based on the language selected by the user on the Code Header (working fine). image here <template> <div> <CodeHeader @language-selected="onLanguageSelected" /> ...
common-pile/stackexchange_filtered
How to sqoop big table from oracle db to hdfs? One of my Oracle table contains 265 million records, I need to push that table from Oracle database to hdfs but this table doesnt have any primary key/Unique column. Hence, I cant use multiple mappers. If I use multiple mappers, I have to specify Split by column. Whats the...
common-pile/stackexchange_filtered
slideup and slide down with animate easing I need a smooth slide effect and i cant seem to understand what I am doing wrong. I have tried the following $(document).ready(function(){ $('.drop2').click(function(){ var $next = $(this).parent().next('li.drop_down2'); if($next.is(':visible')) { ...
common-pile/stackexchange_filtered
Should I use acronyms in dialogues before telling the readers what it stands for in fiction? There are occasions where you basically just start a chapter with a short descriptive passage and go straight to dialogues, so in those situations I am not sure how to deal with acronyms in dialogues. As Mike settled down for ...
common-pile/stackexchange_filtered
C UDP socket connection isn't assigning the ports right way I have the following schema: program in terminal A (<process 1>): Stored: <process 1>: <portnumber 51340> <process 2>: <portnumber 58432> program in terminal B (<process 2>): Stored: <process 1>: <portnumber 51340> <process 2>: <portnumber 5...
common-pile/stackexchange_filtered
How can I take off www(sub-domain) if url contains it? I've just switched from Apache to Nginx. Then I'm stucked with this problem. When I was using Apache, first www(sub-domain) could be removed automatically by having this .htaccess If I want the same on Nginx, how can I do that? Here's my old .htaccess .htaccess (I ...
common-pile/stackexchange_filtered
Showing that a group of order $231$ is a semi direct product I am having a real hard time with this problem. My understanding is that to show that $G$ is a semi direct product, I must find 2 subgroups of $G$ such that one is normal, they have trivial intersection, and their product is $G$. From Sylow theorem I get that...
common-pile/stackexchange_filtered
Webfont alternative to Segoe UI Need to find a replacement for Microsoft fonts for a 'metro-style' UI design project. Just wondering what the best replacement might be because of Segoe's evolution from Fruitger. In terms of a suitable font replacement, I would have thought that the main criteria is for the font family...
common-pile/stackexchange_filtered
Can't suggest an edit for specific question I found this question, and it has horrid spelling/grammar/formatting that I'd like to correct. Usually I find an Edit link under a question so I can suggest a revision to it. In this case, it's missing, as pictured here: Why can't I suggest an edit for this question? Oh yo...
common-pile/stackexchange_filtered
What does mean "stdin is not a tty" and what can cause it related to only R scripts? I have been running R scripts from the cywing terminal (i'm on my local windows, no remote sessions), it had worked normaly, until now, out of the blue, I get: stdin is not a tty whenever I try running R scrips as 'Rscript script_nam...
common-pile/stackexchange_filtered
PostMan Test scripts: Inspecting contents of response JSON PostMan 6.0.10 here. I'm trying to understand how to write test scripts a little better, and after reading their otherwise superb documentation I still have some confusion surrounding how to query & examine the JSON response coming back from requests. Specifica...
common-pile/stackexchange_filtered
Invalid Syntax in lambda function - Python I am trying to impute missing values in a column known as own_house_age. Pardon me for not being able to see this but what's invalid about this syntax? own_house_impute = lambda x: (x['Own_House_Age'].replace(np.nan, value = 0)) if (x['House_Own'] == 0) ...
common-pile/stackexchange_filtered
Looking for array_map equivalent to work on keys in associative arrays Suppose I have an associative array: $array = array( "key1" => "value", "key2" => "value2"); And I wanted to make the keys all uppercase. How would I do than in a generalized way (meaning I could apply a user defined function to app...
common-pile/stackexchange_filtered
Android ViewPager tutorial makes no sense I went on the Android developer site to read how to swipe between pages. So I followed their tutorial: http://developer.android.com/training/animation/screen-slide.html#viewpager I created a Fragment which inflates the desired views which I want on each swipe page. I then creat...
common-pile/stackexchange_filtered
flash drive available space lower than expected with ext4 I recently formatted a 256G flash drive with ext4 on debian. Afterwards I set the reserved disk space to 0 via tune2fs -m 0 /dev/sdb1. However when I call df -h the available space shows only 229G. With a 256G capacity I would expect it to be around 238G. The de...
common-pile/stackexchange_filtered
Read Text File from specific places I have a question about read a text file, because i dont know if i'm thinking right. I want to read from specific string to specific character. My text would look like this: ... ... CM_ "Hello, how are you? Rules: Don't smoke! - love others End"; ... CM_ "Why you?"; ...// M...
common-pile/stackexchange_filtered
How to override default sort order in scoped_collection of active admin 0.5.0 I have the following code in my events.rb. By default I am setting sort_order as updated_at_desc. But if url is has a parameter ride_id (http://localhost:3000/admin/events?ride_id=3009) I need to sort it based on created_at asc. It not workin...
common-pile/stackexchange_filtered
AWS Lambda function to connect to a Postgresql database Does anyone know how I can connect to a PostgreSQL database through an AWS Lambda function. I searched it up online but I couldn't find anything about it. If you could tell me how to go about it that would be great. If you can find something wrong with my code (no...
common-pile/stackexchange_filtered
In what sense are usual probability distributions like normal, binomial, etc distributions in the formal definition? I just learned the formal definition of a distribution: a linear continuous functional $T$ from the vector space of test functions $C_{c}^{\infty}$ to its field of scalars $\mathbb{K}$. Ok, I guess. But ...
common-pile/stackexchange_filtered
In "One More Day," did Spider-Man really have to make a deal with Mephisto? I'm writing this question on shaky ground, as I've not read the comics in question (still looking for an opportune moment to step in and I don't want to be too spoiled), but I've reccently(ish) heard Spiderman made a deal with the devil to save...
common-pile/stackexchange_filtered
How to adjust the TextField to be on the same horizontal alignment as the search icon? The text in TextField seems to be aligned to the bottom of the box instead of being aligned horizontally as the search icon. How do i fix this part of the UI? Here's the code in flutter/dart: void main(List<String> args) { runApp( ...
common-pile/stackexchange_filtered
Is .xdp file dependent on hardware IBM RTRT tool I'm new to RTRT tool. I want to configure a TDP for a new hardware. While creating the TDP I require a .xdp file. So, my question is whether the .xdp file is dependent on hardware? If yes, then from where will I get the .xdp file? XDP i.e., the target deployment port is...
common-pile/stackexchange_filtered
C# pointer - Static calling My short code : class A { private B b; public void b(){}; } class B { private void a() { A.b(); } } I can make void b in A static but I has some Controls like this.Controls.Add(); They must be static too, but I don't know how to implement it, can you show me or do we hav...
common-pile/stackexchange_filtered
Replacement Rule for Functions Attempting to write a rule that will substitute an undetermined function of several variables by some other undeterminate functions (also, of the same several variables). I can do it in an inelegant way that is not very reusable (requires the specification of all the arguments individuall...
common-pile/stackexchange_filtered
If $\frac{\log a}{b-c}=\frac{\log b}{c-a}=\frac{\log c}{a-b}$ show that $a^a \cdot b^b\cdot c^c=1$ . If $\frac{\log a}{b-c}=\frac{\log b}{c-a}=\frac{\log c}{a-b}$ show that $a^a \cdot b^b\cdot c^c=1$ . My Working: $\frac{\log a}{b-c}= \frac{\log b}{c-a}$ $ (c-a)\log a=(b-c) \log b$ $ \log a^{c-a}=\log b^{b-c}$ $ \fra...
common-pile/stackexchange_filtered