text
stringlengths
70
452k
dataset
stringclasses
2 values
Permission error, having trouble loading parquet files from AWS S3 to SQL Server 2022 Basically every time I try to connect to AWS bucket to grab a parquet file in SQL Server 2022, I am getting a permission error Cannot find the CREDENTIAL 's3_dc', because it does not exist or you do not have permission. Code: exec s...
common-pile/stackexchange_filtered
How to iterate over pandas multiindex dataframe using index I have a data frame df which looks like this. Date and Time are 2 multilevel index observation1 observation2 date Time 2012-11-02 9:15:00 79.373668 224 9:16:00 1...
common-pile/stackexchange_filtered
security of cipher due to subsequent permutations I am recently studying Mathematics of Cryptography from book by B. Forouzan in which I came across permutation groups. a set of permutations with the composition operation is a group. This implies that using two permutations one after another cannot strengthen the...
common-pile/stackexchange_filtered
I want to insert a link in an email in cakephp i want to send a mail to users, the mail is sending , but the link in it is now showing as a link, I also want to embed a logo in the mail but the logo is not showing, below is my code. I am using cake 2.8 $Email = new CakeEmail(); <EMAIL_ADDRESS>Africal College of Surgeon...
common-pile/stackexchange_filtered
What is the difference between / and /* in web.xml I am seeing 2 different URL pattern in web.xml. May I know what kind of URL matches with this pattern. It would be great if anyone explain this with example. <filter-mapping> <filter-name>samplewithstar</filter-name> <url-pattern>/*</url-pattern> </filt...
common-pile/stackexchange_filtered
Approach to roll down a Covered Call If I sell a covered call and the stock declines some time before expiry, what would be a strategic approach to roll down the call to protect the downside, or are there any other approach to do it? Do I just buy back the call and sell another at lower strike? I am not worried about l...
common-pile/stackexchange_filtered
Multiple Full outer join on store number I have a SQL Server query that shows each store number, sales for today vs. sales for last year. From two different tables. Now I would like to add another table that shows the store name. How can I do that? The store name is found in a table called [Company$Store] and the field...
common-pile/stackexchange_filtered
PDF digital signature: seed value dictionary, MDP (PDF 1.7 32000-1:2008) The PDF 1.7 specification says: seed value dictionary, Key MDP: "[..] A value of 0 defines the signature as an author signature (see 12.8, “Digital Signatures”). The values 1 through 3 shall be used for certification signatures and correspond to ...
common-pile/stackexchange_filtered
How do I get link and text when the <a> wraps another element using XPath? The example below reflects data similar to what I'm using (I can't show my live data, due to company policy). It is pulled from this answer and this answer. My goal is to pull the text of the <a> element, as well as the link itself. from lxml im...
common-pile/stackexchange_filtered
An integral inequality involving exponentials and $H^1(\mathbb{R}^2)$ Let $\beta, \alpha>1$, and $u \in H^1(\mathbb{R}^2$). I'm trying to show that $$\int_{\mathbb{R}^2}\left(e^{\beta u^2(x)} -1\right)^{2\alpha}dx \leq \int_{\mathbb{R}^2}(e^{2\alpha \beta u^2(x)}-1)dx$$ I tried to use a series expansion of the exponent...
common-pile/stackexchange_filtered
asp sitemap for a folder I want to create a sitemap for my application. Is it possible to point a node to a folder so all pages in this folder will have the role set by the node? <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode title="Private Pages" roles="Provate" url=""> <siteM...
common-pile/stackexchange_filtered
How to understand the proof of disjoint closed set with distance $d > 0$ I am not student in Mathematics. The following proof comes from the book: Real Analysis, by Elias and Rami (p.18): The folloing is my problem: It seems the yellow part implies the result (but it does not prove anything). What is the difference b...
common-pile/stackexchange_filtered
How to fetch an entire paginated list / refetch the entire paginated list? I have a "classic" cursor based pagination of items. I have to do two things with this items: fetch all items of this list when components did mount refetch all the list when a button is pressed Using react-apollo for the first point my soluti...
common-pile/stackexchange_filtered
android studio doesn't start on mac I installed Android Studio, but it doesn't run normally. OS: macos Big Sur 11.1 (20C69) android studio version: android-studio-ide-201.6953283-mac java version: 1.8 ~ java -version java version "1.8.0_231" Java(TM) SE Runtime Environment (build 1.8.0_231-b11) Java HotSpot(TM) 64-Bit ...
common-pile/stackexchange_filtered
Removing .php extension with htaccess I'm trying to remove the extensions from my pages in the URL bar. Example: ../about.php => ../about The code I'm using right now in my htaccess file is one I found here: RewriteEngine on RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule !.*\.php$ %{REQUEST_FILENAME}.php [QSA,L] ...
common-pile/stackexchange_filtered
How to get the ProgID of an installed application by a command? There are some applications that are not shown by name but by ProgID, is there any way to get the name of that key in the registry? https://learn.microsoft.com/en-us/windows/win32/com/-progid--key Where are these applications shown? There are several, i...
common-pile/stackexchange_filtered
what happens with items/lists when the creating user is deleted? I have a user usr1 that i need to remove completely from a site collection. usr1 has created several lists and items within these lists. If i remove the user programmatically: ClientContext.Web.SiteUsers.Remove(usr1) What happens to the lists and items? ...
common-pile/stackexchange_filtered
Xamarin Forms Custom renderer ios I am trying to create a custom control . Below is my code public class BoxControlRenderer:ViewRenderer<BoxControl,BoxControlView> { BoxControlView boxControlView; protected override void OnElementChanged (ElementChangedEventArgs<BoxControlView> e) { ...
common-pile/stackexchange_filtered
Knock Sensor using 555 Timer with a timed light I have seen a few Knock Sensors using the Piezo Speaker and the Arduino. I am wondering if there is a way to eliminate the Arduino and utilize a 555 Timer and other simpler components so that when the Piezo sensor detects a Knock it triggers a Relay to illuminate a light ...
common-pile/stackexchange_filtered
Tikz drawing layer by layer I wanted to make a similar structure based on this example. But I'm currently stuck at this point: The top layers should be left and rigth aligned I think the code can be WAY better Here is my MWE: \documentclass{article} \usepackage{xcolor} \usepackage{tikz} \usetikzlibrary{chains} ...
common-pile/stackexchange_filtered
How to know what $q$ is when $p$ and $f(p)$ are known in $f(p) = qpq^{-1}$ I keep running into a problem when I try to figure out a generalized way of rotating about $(1, 0, 0)$ or $(0, 0, 1)$, then trying to do the equivalent of either pitch up or turn. I would have gone to stackoverflow, but I don't have any proper c...
common-pile/stackexchange_filtered
Synchronize Timer with real time I am trying to refresh my frame every 17ms with a timer. Timer timer = new Timer(17); timer.Elapsed += ResetFrame; timer.Start(); But instead of waiting for 17ms and then repeating, it waited for the frame refresh to complete and then wait for 17msfor the next repeat. This causes the f...
common-pile/stackexchange_filtered
Target of \label placed inaccurately by hyperref I have a line like '\begin{thm}\label{tPrimes}', where thm is defined using \newtheorem. It generates a line starting with 'Theorem 1.2' in bold. It seems that the target defined by \label is always one line above the word 'Theorem'. Which is not what I expect but could ...
common-pile/stackexchange_filtered
Injecting Django attributes into Java script I am trying to add the title of my post to a javascript but I am doing wrong it is not showing correctly. My objective is the show the title and the link of the Django page to the Facebook sharing button. The name of the app is score Here is the models.py class Post(models.M...
common-pile/stackexchange_filtered
Custom loss function does not minimize in PyTorch I am using a PyTorch code to train over a custom loss function in an unsupervised setting.However, the loss doesn't go down and stays the same over may epochs during the training phase. Please see the training code snippet below: X = np.load(<data path>) #Load dataset w...
common-pile/stackexchange_filtered
How do I mock an ActiveRecord object in Yii? In Yii I want to perform some unit tests on a class that uses ActiveRecord objects. For example, I have a Translation ActiveRecord. When I try to create a mock object for it I get an error. In my test I have the line: $translation = $this->getMock("Translation"); And then ...
common-pile/stackexchange_filtered
What are your steps for setting up a guitar? I'm just wondering what the ideal steps are to set up a guitar. For instance, it needs a complete setup, you're changing the string gauge, setting the action, getting it intonated. I'm not asking about more technical issues like changing pots, electronic issues etc., more ju...
common-pile/stackexchange_filtered
How can I find the bandwidth of a sinc function? I have a solved problem and it says the bandwidth of the function: $$sinc(\frac \omega {20000}) \cdot rect(\frac \omega {20000 \pi})$$ is 10 kHz. Why it is not 20 kHz or 40 kHz ? What equation does the solved problem give you, and where does it come from? If w is mea...
common-pile/stackexchange_filtered
ARM11 bad instruction `num resb 5' Assembly Attempting to compile the following in order to read a 5 byte char from stdin: .bss num resb 5 .text .global _start _start: mov r0, $1 mov r1, num mov r2, $5 mov r7, #3 swi $0 Via the following as -o readstdin.o readstdin.s But I...
common-pile/stackexchange_filtered
SEGFAULT with embedded python after changing entry point I'm trying to use python embedded in c and change the entrypoint. The motivation for this is that I'm also Unity to write unit tests and I need an different (ie non-main) entry point in my test runner because some of the code I'm testing resides in the same file...
common-pile/stackexchange_filtered
What exactly is the formula for the expected number of edges in a graph? G ∈ ER(250, 0.5) My teacher said the formula for the expected number of edges in a graph, is: N over 2 * the probability of p. So for example, in a random graph, I have 250 vertices and a probability of 0.5. His formula would give me 250 over 2 t...
common-pile/stackexchange_filtered
Problem when I export dae objects I totally got stuck on a problem: I'm trying to create a landscape for an IOS Game, and everything's fine till I export the object in .dae. Basically, I am able to export everything correct, but the "real" shape of the model is wrong. The object is the same as in Blender, but it is lik...
common-pile/stackexchange_filtered
Can AngularJS route a user to the same instance of the same view in memory? I have an AngularJS 1.6 app. There is one particular route to a view that displays a calendar to the user. When the user clicks on entries in the calendar, they are routed to a view with information about that entry. Before the user is routed...
common-pile/stackexchange_filtered
KnockoutJs Observable Arrays and Dropdownlists I'm new to KnockoutJs and I wonder if anyone can help with this. I have a viewmodel, populated from a Mvc3 controller, bound to a dropdown and this is working fine. I have additional data stored in the "platforms" observableArray, and I would like this data to be displayed...
common-pile/stackexchange_filtered
Codeigniter base_url() not working properly i have set my base_url() like this $config['base_url'] = 'http://example.com/'; Now the problem is all links works fine if there is no www before the url. But if try to access website using www before the url like http://www.example.com/ than the base_url() is not working...
common-pile/stackexchange_filtered
Calculation of posterior distribution of a Gaussian process Suppose I have a set of points $Y$, $X$ and I model them by using a Gaussian process $\mathcal{GP}(m,K)$. Let the noisy observations be given by $$y^i = f^i + \sigma^2$$ $p(f)$ gives the prior on the Gaussian process. Then what will be the posterior $p(f|Y,Z)$...
common-pile/stackexchange_filtered
Java. BufferWriter I'm new in java and currently learning how to read a file, do the work, and write the result to a file. My code can run with error free but I don't know why the output file can not print out anything from the consoles(it must print the last word of each line). Can anyone point me out how I can fix t...
common-pile/stackexchange_filtered
Migrate Drupal site from XAMPP to MAMP I created a Drupal website in a XAMPP environment, but would like to further develop it in a MAMP environment. That is, without losing all the content I already added. I changed the settings.php file like this $databases = array ( 'default' => array ( 'default' => ar...
common-pile/stackexchange_filtered
Does NHibernate SysCache work in a non-web app? I know SysCache uses ASP caching under the hood, but since I'm not aware of the implementation of the ASP cache (and if it depends on anything IIS), I was wondering if SysCache would work in a non-web application (like a Windows Service)? Activating it and using NHprofile...
common-pile/stackexchange_filtered
SAML Auth in asp.net core web Api I am working on an angular - asp.net core web API project with windows authentication. We are planning to implement SAML auth in this project. https://developer.okta.com/blog/2020/10/23/how-to-authenticate-with-saml-in-aspnet-core-and-csharp This article explained the implementation of...
common-pile/stackexchange_filtered
Mongoose populate not provided joined result I have two models called TodaysDeals and Products export class TodaysDeal { _id: ObjectId; @Property({ required: true, type: Schema.Types.ObjectId, ref: "ProductsModel" }) products: Products } export const TodaysDealModel = getModelForClass(TodaysDeal); and ex...
common-pile/stackexchange_filtered
Industrial control systems lab, reviewing actuator design specifications. The cascade structure in your controller design assumes we can treat each subsystem independently, but doesn't that ignore the coupling effects? Not if we handle the strict-feedback form properly. Each virtual control $z_{i+1}$ acts as a stabil...
sci-datasets/scilogues
How did the young man take his turn? (spoilers) The sequence of events: The old man pots the two balls The younger man attacks him just as they are potted The old man dies (or is knocked out or something) in the fight Young man returns to the table and proceeds to pot the rest of his balls After the old man pots the ...
common-pile/stackexchange_filtered
IoC or Dependency Injection frameworks to support for an MVVM framework I have been developing a new MVVM framework here. It has some interesting concepts, but I'd like to support multiple IoC containers. Right now I'm supporting just MEF, because it comes with .Net 4.0. What are some of the more common IoC/DI framewo...
common-pile/stackexchange_filtered
Facebook developer app: Unable to save Contact Email or app Domains In short, i am not able to save any information in the facebook developer app > settings > basic section. Whether it be adding a platform, updating a platform, or even adding a Contact Email or domain. I have another FB app and its setup just fine. I h...
common-pile/stackexchange_filtered
Can the radial blur zoom outwards not inwards? How do you create the effect in photoshop to make shapes appear to shoot out from the center of an image, a bit like light rays. Radial blur with zoom seems to blur both out from the center and towards to the center (the effect you would see if you were moving in relation ...
common-pile/stackexchange_filtered
Creating a Wrapper .exe for launching Kite with Intel SDE for use in Sublime Text I have an old CPU (Intel Pentium G3450 @ 3.4Ghz) and 6GB of DDR3 RAM. I wanted to run Kite Autocomplete In Sublime Text but the installer said my PC Needs to support AVX. Then I Found Out about "Intel SDE", It is an emulation layer which ...
common-pile/stackexchange_filtered
android activity: how to avoid multi-activity because time-delay I use remote or keyboard with android. I have a list in XActivity and when keyPress listitem and start YActivity, and there some data need download before YActivity, so, when keyPress, there exist a time-delay, about several seconds later and then pop up ...
common-pile/stackexchange_filtered
Compile resx to Javascript Is there a way to compile resx file to Javascript during build time? I found only this: Localize Strings in Javascript which is useless in my case because I have really many strings to put in javascript. Because I will need generator to output 200 properties. I think some of the answers in ...
common-pile/stackexchange_filtered
gnuplot unable to read .dat file I have been stuck with this error 'gnuplot:unable to read data.dat' error from 2 days. I have put the file path also, but still the error is coming.I searched the internet and I am not getting it. Thank you void plotgraph(float *xvals, float *yvals, float *x1vals, int NUM_POINTS) { ...
common-pile/stackexchange_filtered
Can regular drip coffee grounds be used for pour over coffee and achieve good results? Can you use regular drip coffee for pour over, and if you do will the coffee taste OK? Yes, it'll be fine. Drip brewing and pour-over coffee are essentially the same process: Pour hot water over ground coffee to extract flavor comp...
common-pile/stackexchange_filtered
Submit datefrom html form to controller I want to submit a date to my controller using html form, I tried this but doesn't work: <form action="/Home/Index" method='get'> <input type="date" name="Choisir une date"><br> <input type="submit" value="Submit"> <input type="reset"> </form> A...
common-pile/stackexchange_filtered
interface angular usage in for loop import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; export interface User { id: number; name: string; } @Component({ selector: 'app-typeof-otcsection', templateUrl: './typeof-otcsection.component.html', styleUrls: ['./typeof-otcsection.c...
common-pile/stackexchange_filtered
CakePHP: Passing $this->params['form'] in a requestAction call? How can I pass $this->params['form'] to the controller action I specify in requestAction so that I can use the variable in the same way by calling $this->params['form']? Here is what I'm trying (but isn't working): $this->requestAction('/reports/grid', arr...
common-pile/stackexchange_filtered
float left causes hover on right side of menu I am curious if there's any way to correct this behavior using css only... Notice that when you hover over the white space to the right of the menu it causes the blur of the menu items. If you hover over the white space to the left of the menu it does not blur the menu item...
common-pile/stackexchange_filtered
What's the main purpose of using java rmi activation system? First of all, I am reading the java official document about rmi specification. http://docs.oracle.com/javase/7/docs/technotes/guides/rmi/index.html http://docs.oracle.com/javase/7/docs/platform/rmi/spec/rmi-activation2.html The features in java rmi listed in ...
common-pile/stackexchange_filtered
jquery validate user has entered text into 1 of 2 textboxes Hi I am struggling to find an answer to this, if it can be done? I have a login form that contains 3 textboxes: UserID, Post code, Date of Birth The user id is fine I can add a required attribute to validate, but I was wanting to validate that they had also en...
common-pile/stackexchange_filtered
how to flatten photo image which contains text only? how can I detect the document has been folded (and possibly folded by none, once, or multiple times) how can I correct section II so that it's turned into a rectangle? what did you already try? do you want a completely automatic solution? Or is it feasible to cli...
common-pile/stackexchange_filtered
URLs not working as HTML frame src I have the following HTML code which is not giving any output on neither Mozilla nor IE. The status bar shows connected to www.Facebook.com & www.yahoo.com but then the pages are not displayed. I've tested in Mozilla & IE. <HTML> <head> <script src="scripts.js"></script> ...
common-pile/stackexchange_filtered
WOPI host and WOPI client example I am a bit confused about WOPI host and WOPI client. Can anyone tell me exactly the meaning of above 2 terms. I want to know what exactly means WOPI host (either my web application or a WOPI server on Microsoft side) and same for WOPI client. WOPI host = WOPI server = a web API that s...
common-pile/stackexchange_filtered
Using alternative for Visual Studio for cmake Actually my computer has a low space. That's the reason for taking an alternative of Visual Studio. I am trying to use the face-recognition library in python. As we know that cmake is a C-Based language. We also need to install a compiler too. So please help me by letting m...
common-pile/stackexchange_filtered
calculate average letters in string I need to calculate the average number of letters in each word from the user input. But I don't know how to do that. I know I need to find the total letters, then divide. private void button1_Click(object sender, EventArgs e) { var wordCount = countMethod(textBox1.Text); Mes...
common-pile/stackexchange_filtered
Alpha channel not working So I am writing a basic app for the windows phone but the alpha channel doesn't seem to be showing up in any of the images I use. In Fireworks I can see the alpha channel in there. <Image Source="Assets/Images/OnBar.png" Width="100" Height="60" Margin="280, -560, 0, 0" /> That is the xaml co...
common-pile/stackexchange_filtered
Image Resizing not working using s3reader I m using Image resizer to resize the amazon images. I m not getting any errors but i m not also able to resize my image. I have tried to open the image url directly, it doesn't show any errors there as well. Also i m using this on visual studio web server so the IIS is not the...
common-pile/stackexchange_filtered
Using external action output in outer git action step I have this git action for my build ... - name: Building S3 Instance uses: charlie87041/s3-actions@main id: s3 env: AWS_S3_BUCKET: 'xxx' AWS_ACCESS_KEY_ID: 'xxx' AWS_SECRET_...
common-pile/stackexchange_filtered
error: incompatible types: <anonymous Callback<List<UserDataResponse>>> cannot be converted to OnNoteListener What is the problem from this code? I used Activity and passing it to fragment RecyclerView OnClickListener the one i use in this coding method. i just want to click the recyclerview to send me in to another pa...
common-pile/stackexchange_filtered
why boolean field is not working in Hive? I have a column in my hive table which datatype is boolean. when I tried to import data from csv, it stored as NULL. This is my sample table : CREATE tABLE if not exists Engineanalysis( EngineModel String, EnginePartNo String , Location String, Position String, InspectionR...
common-pile/stackexchange_filtered
Hibernate @GeneratedValue(name=???): ID gets incremented by five not by one I am using Hibernate 4 orm and search for my twitter application. The problem is when I start persisting tweets into MariaDB table, id (primary key) gets incremented by five fold: 2 7 12 17 22 27 I tried all Generation Types which are availabl...
common-pile/stackexchange_filtered
How to install a package from within my application? Possible Duplicate: Install a ‘recommended’ package when user asks for corresponding action I am a developer and for my application i require some packages to be installed. So when for example the user tries to activate a feature of the programm (that requires a p...
common-pile/stackexchange_filtered
Debian 10 not in grub menu I was rebooting my computer because it was being really slow. On boot, the GRUB menu wasn't showing my installation. only windows. (also my windows installation got messed up awhile ago, so I can't use that) Maybe a drive died, maybe I need to reinstall grub, but I don't know how I can acces...
common-pile/stackexchange_filtered
Office 2010 and VBA show different font sizes I have a powerpoint template created in Office 2003. When I opened the SlideMaster of the template in Office 2010, I saw that the font sizes of bulleted body are 24, 22, 20, 18, 16 for level 1, level 2, level 3, level 4, level 5 respectively. The strange thing is that when ...
common-pile/stackexchange_filtered
How do I rebind jQuery DataTable when the table is auto refreshed by background process I have a table that I build with data coming from MySQL via PHP code and binding it to DataTable, the table and DataTable work just fine, but I have added a delete button for the table row, when I click that it calls a backend PHP w...
common-pile/stackexchange_filtered
Calling one R Installation from Another I seem to be unable to compile RPostgreSQL for Windows x64, and after extensive searching, I've not been able to find a precompiled binary. To get on with my work, I've installed a 32 bit version of Postgre and have been using 32 bit R for all database ops. I need to do much o...
common-pile/stackexchange_filtered
Finding details about an immigration from England to New Zealand / Australia Here is a Immigration Certificate: According to the source it says: Departure Date: May 1919 Departure Port: England Ship Name: Prinzessin Destination Port: Auckland, New Zealand I have several questions and I do not know how to go about fi...
common-pile/stackexchange_filtered
How to display selective items in a binding list in grid control I have implemented below code: gridControl.DataSource = CusColumnList CusColumnList is of type MyBindingList which inherits BindingList, in my case T is class MyColumn. The binding works well. But now my problem comes, I don't want the data source to bin...
common-pile/stackexchange_filtered
How to determine if day light saving is in effect for a given date and TimeZone using Javascript? Is there any library for JavaScript which I can use to check if the day light saving is in effect for a specific time in a specific location. For example, I would like to know for a date, say "July 1 05:30:00 UTC+0500 200...
common-pile/stackexchange_filtered
Make multiple splits in CSS grid I was wondering if it was possible to use CSS grids to do intermediate splits in columns, is this doable? Below a graphical example. Thank you very much. EDIT: I am using display: grid, what I am trying to achieve is something responsive that would put each cell under each other on a ...
common-pile/stackexchange_filtered
Changing color of specific tab of top menu in wordpress I am using wordpress. I am messed up with a problem and still i am unable to find it's solution. I am trying to change color of only 1 tab in whole navigation menu ! I mean if my navigation bar include 5 tabs and i want to highlight one tab with a specific backgr...
common-pile/stackexchange_filtered
How to create a new function from a method, with fewer arguments? I have two classes, ClassA and ClassB. ClassA has three methods: double Foo(double, ClassB); double Bar(double (*f)(double)); double Baz(double, ClassB); I would like to define a function Qux inside Foo, based on Baz but without the argument of type Cla...
common-pile/stackexchange_filtered
How to install two versions of MySQL on MacOS (High Sierra)? I need two separate development environments in MacOS 10.13 to accommodate clients running different versions of MySQL on their servers (5.5 and 5.7.22). I've installed MySQL 5.7.22 from a package, but need to install a different environment and binary for 5....
common-pile/stackexchange_filtered
Send active workbook by e-mail but changing the name So at the moment I have a workbook that gets sent to e-mail when pressing a button, but I want to change the name of the file when e-mailing it, how can I do this? What I have right now is this code that just sends the file with the name of the current workbook, but ...
common-pile/stackexchange_filtered
VBA Dynamic Range Vlookup Defined Name world! Well, this is my first time in here, so dont be angry if I did something wrong. I need to populate a ComboBox RowSource based on another Combobox value. Userform with combobox In my project there are two ComboBox that are dependent: Laboratorie and Test They initialize wit...
common-pile/stackexchange_filtered
How can I get rid of repetition in the for loop for line in file2.splitlines(): for l in file1.splitlines(): if line in l: print l How can i get rid of the repetition? Umm, did you just re-ask the same question? why would you post it twice? To be fair, it is very unlikely that a question with no upvotes ...
common-pile/stackexchange_filtered
Questions on Pascal's Principle I am aware that Pascal's principle says that if a pressure acts on an enclosed liquid, the pressure will be transmitted uniformly throughout the liquid. Can Pascal's Principle be applied to a manometer? When you apply pressure on one end, would that pressure be transmitted uniformly to ...
common-pile/stackexchange_filtered
django ImageField - 'NoneType' object This is my file forms.py class RegisterForm(forms.ModelForm): password = forms.CharField(widget=forms.PasswordInput()) password2 = forms.CharField widget=forms.PasswordInput()) username = forms.CharField(max_length=15) email = forms.CharField(max_length=25) avatar = forms.ImageFiel...
common-pile/stackexchange_filtered
Changing node version from node@16 to node@14 on Mac OS I‘m using brew. As I need an older version of node I installed node@14 (brew install node@14) unlinked the recent version (brew unlink node) linked the old version that I want (brew link node@14) At the end it says If you need to have this software first in your...
common-pile/stackexchange_filtered
Center Text by using middle of character as baseline Is it possible to update the baseline in a Compose Text component to center vertically with its pivot point as the center of the Character instead of the bottom. Usecase is for a Keyboard, each key should be Centered in its own box, but some characters look off cente...
common-pile/stackexchange_filtered
Github - Why would HTTPS stop working while SSH works fine With no changes on my system over a weekend, on Monday I was no longer able to pull from an organizations github repos; other github repos worked fine. This was the message I got: $ git pull remote: Repository not found. fatal: repository 'https://github.com/my...
common-pile/stackexchange_filtered
Why does PHP parse some floating point numbers as weird dates? Today is 21 September. Why do the following floating point numbers get parsed as weird dates? I realise they're converted to strings first, then parsed, but the format doesn't seem to make any kind of sense. Are these following some format I'm not aware of,...
common-pile/stackexchange_filtered
ERROR: Could not build wheels for phik, which is required to install pyproject.toml-based projects While running this command on command prompt: PS D:\Mitali> pip install pandas-profiling I am getting this error: ERROR: Could not build wheels for phik, which is required to install pyproject.toml-based projects The en...
common-pile/stackexchange_filtered
Extract Text with Python from Webpages within div class I try to get songtexts from a webpage. Below I have two versions of how I want to achieve that because with the first one I only could get the text from within the first <p> paragraph but sometimes within the div class songbook there are several <p>. With the seco...
common-pile/stackexchange_filtered
For which positive integers n does there exist a prime whose digits sum to n? Motivated by this earlier question, I thought of this problem: Question: For which positive integers $n$ does there exist a prime whose decimal digits sum to $n$? We can make two "easy" observations: $1$ is not the sum of the digits of a p...
common-pile/stackexchange_filtered
How do I utilize Webclient.DownloadFile or DownloadString if the website uses SSL? I'm writing a small utility that scrapes a webpage and emails me if the class I want has open seats. See the follow url: Math Classes However, I get an error everytime I execute the following code: private void timer1_Tick(object sen...
common-pile/stackexchange_filtered
Attempting to load the view of a view controller while it is deallocating. CoreSpotlight I integrate CoreSpotlight in my app. I want that user will find need information in spotlight search and after user will open this information in spotlight information opens in DetailViewController. I made it, spotlight works nice,...
common-pile/stackexchange_filtered
'You rather not' construction What would be a correct way to say this: If you rather not wait, you can always do sth else. or If you'd rather not wait, you can always do sth else. And what about the comma? Is it needed here? The correct way would be: If you'd rather not wait, you could always do something else. ...
common-pile/stackexchange_filtered
Parallax images overflowing even after CSS is overflow hidden I have a project where I am using parallax effect. My code is exactly like this in that project: $(window).scroll(function(){ var wScroll = $(this).scrollTop(); $('.flying-man').css({'transform':'translateY( -'+ ( wScroll- $('.flying-man').offset().top...
common-pile/stackexchange_filtered
How will changing taxonomy term affect tagged nodes What happens when a taxonomy term is changed? Will the term just change for all nodes tagged with the original term or will the relationship be deleted? The taxonomy term relationship is stored in the database using the term ID. So if you change that term's name, but...
common-pile/stackexchange_filtered
Cannot return value - Expression Expected? I'm having an issue with my return Car; I was under the impression it would return the "KEY_IMAGE" String. KEY_IMAGE is a string which will be put inside a BitmapFactory: byte[] logoImage = getLogoImage(IMAGEURL); private byte[] getLogoImage(String url){ try { ...
common-pile/stackexchange_filtered
File gets corrupted when transferring it via socket My Java client sends a file to a C++ server using this code: FileInputStream fileInputStream = new FileInputStream(path); byte[] buffer = new byte[64*1024]; int bytesRead = 0; while ( (bytesRead = fileInputStream.read(buffer)) != -1) { if (bytesRead > 0) { ...
common-pile/stackexchange_filtered
Proper Join/GroupJoin implementation I have been trying to work with the Join and GroupJoin method. The problem seems simple. Given TableA and TableB as datamaps such that: class MyDataContext : DataContext { public Table<tblA> TableA; public Table<tblB> TableB; } ...I am using TableA as my primary table and w...
common-pile/stackexchange_filtered