text
stringlengths
70
452k
dataset
stringclasses
2 values
Plot a graph with individual years from specific package? So I have package wq (https://cran.r-project.org/web/packages/wq/vignettes/wq-package.html) and it has a section to graph decomposed time series: chl27 <- sfbayChla[, "s27"] d1 <- decompTs(chl27) plot(d1, nc = 1, main = "Station 27 Chl-a decomposition") Is it po...
common-pile/stackexchange_filtered
List view not showing any records for Customer Community user When I log in as a Customer Community user, when I go to the Orders tab, in the Recent section it is showing Orders of which I am the owner. But when I am going to the list view to display all orders, not a single record is showing. As the records are showin...
common-pile/stackexchange_filtered
Database of chess results I'm looking for a database or a collection of the chess results of all FIDE-rated games (standard time control). The data I'm interested in is: the white player, the black player, the result and the date for each game. I've checked the FIDE-website, however, I could only find the published rat...
common-pile/stackexchange_filtered
Verb similar to "synchronize" but not for time I am looking for a word that describes adjusting status to conform another. Let us say the status of the account is active but in our system shows inactive. Synchronize describes the situation with respect to time. Can I say "I conformed the status" if I want to say that ...
common-pile/stackexchange_filtered
Agitation during mindfulness tickling I was following an older thread, however I would love if someone could respond with an answer as to how I can handle the following situation. This happens almost every time I do mindfulness. As I sit in mindfulness I almost always get a tickling or tingling sensation from my cloth...
common-pile/stackexchange_filtered
Could an organism theoretically produce a metamaterial-like structure? I'm curious to know if this is physically feasible because during my reading up on synthetic biology and just general research i realise that life is capable of producing some exquisitely complex materials and biological structures and wondered if t...
common-pile/stackexchange_filtered
Converting a sequence of bytes to ASCII representation and vice-versa Suppose we have a vector of uint8_t: { 0x12 0x34 0xab 0xcd }. I've found that I can use ostringstream in order to convert it to a string "1234abcd" (no spaces, no 0x prefixes). But I couldn't simply convert it back with istringstream, apparently sinc...
common-pile/stackexchange_filtered
writing on external interrupt pin I have connected 7segment display to PORTB (RB1-RB7), RB0 is external interrupt pin which is turned on to display number 8, I wrote 0b11111110, so what will happen to external interrupt when I write 0 on 0th bit // IM TRYING THIS unit8_t sevenSegDigit[10]={ 0b11111110, // 0 0b1001...
common-pile/stackexchange_filtered
Why would my brake pedal go halfway to the floor before the brakes engage? I've got a 2008 Mazda 3i with 120k miles on it, manual transmission. The brake pedal started going halfway to the floor before the brakes engage, although braking action seems normal after that, maybe a little soft pedal. Brake fluid level looks...
common-pile/stackexchange_filtered
Multilevel / multiple level group by using lodash, underscore or array functions I have below array of objects that was my output on getRawMany from typeOrm query: [{ "contents_id": "0e362978-ec0a-4851-9f58-e2ad23ec9ee9", "contents_title": "Content mock 1", "contents_created_at": "2020-11-28T23:42:23.717Z",...
common-pile/stackexchange_filtered
Why does it say file is in use VB I can't work out why is says that the file is open. Error is about half way through. Dim worldWriter As New System.IO.StreamWriter(cmbworldsave) (this is the line that i am having trouble with) Imports System.IO Imports System.Text Public Class frmindex 'Variables Dim vcmbw...
common-pile/stackexchange_filtered
How to access JSON data using PHP Trying to access 'access_token' from this PHP cURL response. None of my attempts have been able to access the JSON data so I can append it to the header 'Authorization: Bearer $accessToken' Here is my PHP cURL (Username and password redacted) <?php $ch = curl_init(); curl_setopt($ch,...
common-pile/stackexchange_filtered
ORA-01219: database or pluggable database not open: queries allowed on fixed tables or views only I'm using oracle 19c. When i tried to open pluggable database as: alter pluggable database pdbname open; I got this error: ORA-01219: database or pluggable database not open: queries allowed on fixed tables or views only...
common-pile/stackexchange_filtered
How to run android qpython script from cmd (DroidEdit, terminal)? I would like to run qpython scripts from the editor "DroidEdit" as the external commands. And also from the command line in terminal "Terminal Emulator for Android." I tried this method: http://wiki.qpython.org/en/diveinto/#how-to-execute-qpythons-python...
common-pile/stackexchange_filtered
Bind vs Assignment in Haskell I'm working through the Write Yourself a Scheme tutorial, and one code block made me wonder about the difference between bind and assignment: parseAtom = do first <- letter <|> symbol rest <- many (letter <|> digit <|> symbol) let atom = first:rest retu...
common-pile/stackexchange_filtered
Numpy Cosine Similarity difference over big collections I need to use the Scikit-learn sklearn.metric.pairwise.cosine_similarity over big matrixes. For some optimizations i need to compute only some rows of the matrixes, and so i tried different methods. I found that in some cases the results were different depending ...
common-pile/stackexchange_filtered
Characterization of differentiability For a normed space $(V, \lVert\cdot\rVert_V)$ let us define: \begin{equation} \forall x, y \in V \quad [0,1] \mapsto \gamma_x^y (t) = (1-t)x + ty. \end{equation} I would like to ask whether the following characterization of (Fréchet) differentiability holds: Let $(X, \lVert \cdot ...
common-pile/stackexchange_filtered
Some doubts about package with Vagrant I'm new working with Vagrant. I have some doubts about the package command, because I did some changes in my basebox precise32.box and i want to reuse this box but I want to know what is meaning of [vm-name] parameter because it not appears on --help report. And what kind of files...
common-pile/stackexchange_filtered
How to add email addresses from a message to a textbox? I'm making a webpage to send a list of email addresses to each user. I have a script called add_book.php to allow me to input a list of email addresses in the message like this: I want to output a list of email addresses to input each of them in the textbox inclu...
common-pile/stackexchange_filtered
How to scrape a web page's CSS line contents using a loop, and separate out the contents I am trying to scrape the following web page, and I encountered some issues that I couldn't solve. As a fish in scraping, I didn't get deep into the beautiful soup nor html, css. I am just browsing some tutorials but the examples t...
common-pile/stackexchange_filtered
Text and lines don't look right Since I updated my video drivers, sometimes text and lines on the screen don't appear quite right. Everything looks fine with default drivers that come with Windows, but I had to update the drivers due to errors when using VirtualBox. The symptom comes and goes. It's hard to tell what ex...
common-pile/stackexchange_filtered
How to find out whether a number is float when number of zeroes after decimal are 16 or more? I have the following code for checking whether a number passed to the function is float or not. function isFloat(n){ return (n % 1 === 0) ? false : true ; } isFloat(4.000000000000000002); I am passing value 4.0000000000000000...
common-pile/stackexchange_filtered
Is this a valid proof of set membership Let $S=\{x \in\mathbb{Z}: x\geq0, x=b-a ×m$ for some $m\in\mathbb{Z}\}$. Prove that if $b\geq0$ then $b$ is an element of $S$. Pf: suppose $b\geq 0$ Let $a$ be an integer define $b=b-a×m$ Where $m=0$. So $b=b-a×0=b$ Thus $b$ is an element of $S$. Is this a correct proof? I f...
common-pile/stackexchange_filtered
Bazel googleapi gRPC cc_grpc_library output was not created I am running into Bazel build issues when I try to build googleapis texttospeech_proto and speech_proto with gRPC service. In the root directory of my project, I receive the following error: ERROR: <>/BUILD:42:1: output 'external/com_google_googleapis/google/c...
common-pile/stackexchange_filtered
confusion_matrix error 'DataFrame' "object is not callable" What am I doing wrong? I set both vars to list. Also tried np.array. y = list(y_test.values) yhat = list(predictions) print(y) print(yhat) confusion_matrix = pd.DataFrame(confusion_matrix(y, yhat), columns=["Predicted False", "Predicted True"], index=["Actua...
common-pile/stackexchange_filtered
Why is this Dafny Method not holding when it should? method search(a: array<int>) returns (i : int) requires a.Length > 1 && a[0] == a[a.Length-1] ensures 0 <= i < a.Length-1 && a[i] >= a[i + 1] { i := ......; var j := ......; while i != j invariant ......; { var m := (i + j) / 2; if a[....] >= ...
common-pile/stackexchange_filtered
Animations crash App after going into background After looking for some feedback on how to clean up animations once they've finished I implemented the following; - (void)onAnimationComplete:(NSString *)animationID finished:(NSNumber *)finished context:(void *)context { UIImageView *AnimationImageEnd = context; ...
common-pile/stackexchange_filtered
Redirect Not Found URLs of old m.domain.com to domain.com I had subdomain like m.domain.com and now I removed it and changed the website to responsive. Now I want to redirect all not found url's of m.domain.com to domain.com like below urls m.domain.com/categoryname/post/ to domain.com/categoryname/post/ m.domain.com/c...
common-pile/stackexchange_filtered
I don't draw bar chart same scatter Hello everyone! I do not know how to create a bar chart with a persoalization with pgfplots. I have questions with the command and settings. I tried to make some additions with ycomb and scatter, but to no avail. Thank you and awaiting. Follow de code: \documentclass{article} \us...
common-pile/stackexchange_filtered
Seeking an Advanced Content-Based Photo Organization Android App I am searching for a Android application capable of intelligently organizing a large collection of photos and graphics, such as screenshots and downloaded images. Key features I'm looking for include: Content Analysis: Ability to analyze and categorize im...
common-pile/stackexchange_filtered
how do I create dictionary of dictionaries in Javascript In python, a dictionary of dictionaries can be created mainDict = {} mainDict[subDict][subDict_Key1]=[subDict_value1] I want to create a similar dictionary of dictionaries or array of dictionaries in Javascript. I have check multiple threads on SO but yet t...
common-pile/stackexchange_filtered
Configure sendmail to send email for a specific user through another server? When a local user sends email via our sendmail, I want to have all his email forwarded through one another web server that I have control over. I need this temporary fix, because he's off site, and has a lot of devices. He can't easily change...
common-pile/stackexchange_filtered
Is it possible to have multiple conditions in a conditional statement? I've searched the internet for this answer, but could not find it. Say I had the conditional statement: totalRooms += bathrooms > 0 ? bathrooms : totalRooms; but I wanted to have two or three conditions to check if they were true, or if I wanted to...
common-pile/stackexchange_filtered
How to simulate a person in pepper emulator? I'm trying to make pepper robot to listen to basic voice commands. The trouble is that the language is not supported and I have to use google speech to text for this instead of robot's default recognition libraries. It would be more convenient to test this with emulator rath...
common-pile/stackexchange_filtered
Select only text visible on webpage, from DOM parent element Inside a content script of my work-in-progress Firefox add-on, I have a variable named element containing the reference toward a generic DOM element. This element may contain children or grandchildren, which in turn may contain text nodes visible on the rende...
common-pile/stackexchange_filtered
How do I assign the correct ID to my y_pred? I have a pd.Dataframe dataset with columns: index, text, label, ID The ID is given in a specific way, so that the texts can be assigned into groups by ID. I Preprocessed the Text, made a Pipeline, did a sklearn.model_selection.train_test_split and predicted using gridsearch...
common-pile/stackexchange_filtered
Placing to List Items side by side in android ListView i would like to place items with in a listview side by side like masonry view. but i would also like to have a tile that spreads over the two columns. i have found a few projects in git but non have a tile which spreads over the two columns. I have made 4 different...
common-pile/stackexchange_filtered
Efficiently find elements which are out of place in an otherwise sorted list I have some data that includes two columns for dates, and I want to retrieve - based on these two columns - all the instances where an illegal operation has occured. An operation is illegal if the value in Col B breaks chronology in the column...
common-pile/stackexchange_filtered
How to get a row from coo_matrix as a dense vector in Python? I'm new to Python and could you help me about some basic sparse matrix operation: How to extract a dense row vector from a sparse matrix without make the whole matrix dense beforehand? coo_matrix.getrow() only returns a sparse representation How to extract...
common-pile/stackexchange_filtered
gdb print a number as binary with leading zeros (again) Yes, I have seen GDB print binary with leading zeros - but that post seems to deal with printing values of memory locations; instead, I want to print the value 1 as 32-bit binary with leading zeroes in gdb. So this is what I try: $ gdb -q -ex 'p/t 0x0001' -ex 'q' ...
common-pile/stackexchange_filtered
pass optional parameter in wcf service I had a function in WCF that takes one parameter and is being called from another application. Now, I want to add a optional parameter in the WCF so that it does not affect the method being called in the previous code. getData(int number, int type=0) I tried using default value i...
common-pile/stackexchange_filtered
Formatting Text.DateStyle in SwiftUI to Only Show Days I am putting together a timer app and want the countdown to display how many days until the end of the timer. Text(date, style: .relative) -> ## days, ## hr The above gets me 90% of the way there but I don't want hours to show up alongside my days counter. I have t...
common-pile/stackexchange_filtered
Tweet Link and Facebook Like & Send Buttons Horizontal in Chrome, Safari, and Firefox, but not in Internet Explorer 8 The code below echoes out a Twitter API tweet link and the Facebook Like and Send buttons. They function correctly. I want them to display horizontally with the Tweet link on the left and the Faceboo...
common-pile/stackexchange_filtered
Example of a local ring which is not an integral domain Ring of integers is an integral domain which is not a local ring. Ring of p adic numbers is a local ring which is also an integral domain. Are there any example of a local ring which is not an integral domain? Thank you in advance! What about $10$-adic numbers? ...
common-pile/stackexchange_filtered
Using Isotope v2 with RequireJS First question so please be nice! I've been able to get Isotope working fine, but as soon as I try to use RequireJS to load it alongside jQuery, I can't seem to get it to work. It's definitely loading the files because I can see them in the head of the dev toolbar, so the paths are fine....
common-pile/stackexchange_filtered
Python: How to append list values into the list properly? I want to add the values of temp list into the main list. I tried to add some values into the temp list and then append the temp list into the main list as following, but it shows always latest values in the main list. >>> temp =[] >>> temp.append(123) >>> temp....
common-pile/stackexchange_filtered
XAML - Personalize button behavior I'd like to personalize my button's behavior on some states, like PointerOver or Disabled. I've found this answer, wich gave me a big help, but I still don't get how to personalize the button with my personal resources. i.e. I'd like to change the button's background when it's disable...
common-pile/stackexchange_filtered
How to limit entered text by pixel width, not character count Given a fixed pixel width (text needs to fit on an 80px button; assume no padding), how can I limit the text a user enters into a text field to that limit (80px). If it helps, I know the font (Arial) and the font size (12pt). The limit should be enforced re...
common-pile/stackexchange_filtered
Upload directory for a field instance I've been searching a lot for this, but no luck. I've created a custom file field along with an instance for my custom content type in the .install file. I've set up everything except that I want that by default this instance of the file file that I created to upload to the 'priv...
common-pile/stackexchange_filtered
STOP player for web radio I built a custom audio player for a web radio. The problem is I cant find a way to STOP it. If paused, when resumed audio continues to play from the point that has been paused. So if you pause the player, when you resume it you hear the song from where you paused it but the stream server has a...
common-pile/stackexchange_filtered
Pig: Slow Group By operator After benchmarking Hive and Pig, I found that the Group By operator in Pig is drastically slower that Hive's. I was wondering whether anybody has experienced the same? And whether people may have any tips for improving the performance of this operation? (Adding a DISTINCT as suggested by an ...
common-pile/stackexchange_filtered
Requirements to run own mail server I have the idea of setting up "MS Exchange mail server" in windows and "Squirrel/sendmail/postfix mail server" or something in linux. I have some domain names publicly registered. I am using google hosted mail domain(paid) for sending and receving mails to one another. One thing I do...
common-pile/stackexchange_filtered
Breadth first search, and A* search in a graph? I understand how to use a breadth first search and A* in a tree structure, but given the following graph, how would it be implemented? In other words, how would the search traverse the graph? S is the start state Graph Here what is the goal of the traversal? Find shorte...
common-pile/stackexchange_filtered
What's the URL to my blogs (from my home page - which is a "page") How do I add a link under my home page banner to my blog summary page. My default page is a "page", not a "post". http://nealwalters.com on 3.0.4 Create a empty page called "Blog", go in Settings > Reading and select "Blog" as the Posts page. Then ...
common-pile/stackexchange_filtered
Call constructor from base class - 2 level above In WinDev, I have a base class, let say BaseClass. This base class has a constructor: PROCEDURE CONSTRUCTOR(param1, param2, param3) I have a first child class that extends the base class, let say childClass1. This first child has a constructor with the only 2 firsts arg...
common-pile/stackexchange_filtered
App freezes then crashes on all iPhones but runs on simulator This json is loading restaurants by taking state and city of USA and showing it on Map with Markers along with address and restaurant name. This App works on Simulator but doesn't run on iPhones and iPods when it searches the restaurant. do{ ...
common-pile/stackexchange_filtered
Included PHP file that references a file - location always changes Bit hard to put this into words for the title. Basically, I have a PHP class that reads and writes data to a file in the file system. I need to access this data from several scripts so I created 1 central instance of the class that loads the data and tr...
common-pile/stackexchange_filtered
How to achieve required in select box in Angular 5? I have the following template in Angular 5 app: <div class="form-group"> <select [(ngModel)]="trip.country.code" (ngModelChange)="onSelectCountry($event)" name="country" required> <option>Please select...</option> <option *ngFor="let c of count...
common-pile/stackexchange_filtered
Python web scraping - timeout_ConnectTimeoutError_MaxRetryError_ConnectTimeout I'm new to programming and I'm trying to scrape sofifa to get an historical info on football players on fifa. I wrote some lines of code following a tutorial. The code works fine till I get some errors (timeout, ConnectTimeoutError, MaxRetry...
common-pile/stackexchange_filtered
kubernetes-dashboard broken via AWS ALB ingress I need some help getting kubernetes-dashboard working properly with an AWS ALB ingress. I have successfully deployed kubernetes-dashboard using the helm chart, and everything works correctly when accessing via kubectl proxy or kubectl port-forward. However, I get just a b...
common-pile/stackexchange_filtered
Regex not replacing as Expected I have a node script that I use to build my vue project. I need to update some vue source links from: :src="\'./src/img/\' to :src="\'./img/\' My code to do this is: const regEx6 = /:src="'.\/src\/img/gi; const regEx7 = /^:src=(?:"(?:\\\'\.\/src\/img\/\\|\'\.\/src\/img\/)\')?$/gi; i...
common-pile/stackexchange_filtered
How can I get a specific part of element in arrays The title may a little confusing. But i think it is clear: var a = ["A1", "B13", "C123"]; I want to ignore first value in elements and get rest of them. So my new array should look like this: var b = ["1", "13", "123"]; Use .map() to create a new Array of modified v...
common-pile/stackexchange_filtered
The .reset() method of common smart pointers It seems to me that the reset method in the boost scoped_ptr and shared_ptr lead to incorrect order of construction and destruction: boost::scoped_ptr<Component> component(GetDefaultComponent()); component.reset(new BetterComponent); // 1. Creation of the new object ...
common-pile/stackexchange_filtered
mysql Group by week and add totals to every week I'm trying to create a query that will return totals of a number based on every week so I can create a rising trend line chart. In my table I have a number of records that record a completion date (completed). I'd like to be able to create a query that generates a roll...
common-pile/stackexchange_filtered
Security::hash() does not return the same hash I have done a lot of changes in my new website. I just noticed that Security::hash('password', null, true) does not return the same thing as the previou version. I upgrade cake from 2.3.1 to 2.3.9 but I am using the same 'Security.salt' and 'Security.cipherSeed' values. Wh...
common-pile/stackexchange_filtered
Best normalization practice: Scoping all models to an organization I have a ROR app that manages data like tasks and notes. It has a user model that can edit those items. Now I want a user and all other items to belong to an organization. My question is: What's the best practice to achieve that? Usually I'd say: Let's ...
common-pile/stackexchange_filtered
How to avoid redirect if url match a string in Apache I have a web server that redirects any HTML 404 error to another domain: ErrorDocument 404 https://error domain My goal if to avoid redirection when Let’s Encrypt tries to renew the certificates. All Let’s Encrypt challenges starts with: /.well-known/acme-challenge/...
common-pile/stackexchange_filtered
bundle.js not found with webpack Learning to use webpack to set up a MERN stack project. After running webpack to bundle everything and starting the express server I see that bundle.js is not found and I see a localhost:3000/bundle.js 404 status code in the console. Maybe my paths are incorrect or I'm missing something...
common-pile/stackexchange_filtered
Dynamically loading WebComponents Polyfill before page ready I'm working on a widget library so that a customer only has to import a single javascript file in the <head> of their document. After that file has been loaded, the user should be able to use custom elements that were loaded from that single script loaded in ...
common-pile/stackexchange_filtered
how to use tokio::spawn with &self? I'm made a multithreaded server using std::thread (1 thread / connection), but now I want to convert it to use tokio and async/await.I don't know how to get over this error: error[E0521]: borrowed data escapes outside of associated function --> src/server/mod.rs:52:24 | 50 | ...
common-pile/stackexchange_filtered
MySql update statement with subquery please take a look at this statement i'm writing in MySql Workbench: update customer set flag = 1 where id in (select id from customer group by phoneNumber having count(phoneNumber) > 1); The following message is shown: Error Code: 1093. You can't specify target table 'customer' fo...
common-pile/stackexchange_filtered
Aurelia using featherjs dependency failing to properly import feathers-socketio How do you import featherjs-socketio using the technique common in Aurelia projects. A previous question helped me past the second dependency, but the last one seems to have the same fate as the first without a similar workaround. Aurelia ...
common-pile/stackexchange_filtered
Grails 2.4 throws EHCache class not found error I created a fresh Grails 2.4 project, removed hibernate and database migration plugin added latest spring security and mongo db plugin and when I ran grails compile I got following error | Error Fatal error during compilation java.lang.NoClassDefFoundError: net/sf/ehcache...
common-pile/stackexchange_filtered
How to change the time in moment.js to show time like Two and half hours ago I am developing an application in which I have used the moment.js to show the pretty time. It is working completely fine other than one of my problem, If a user updates something 1 hour ago moment.js give "an hour ago" but for the update made ...
common-pile/stackexchange_filtered
How do I have a breakpoint get triggered if an instance variable in the class has its value changed? Say I have a variable, self.position, how do I get Xcode to break whenever it changes its value (a number of methods could change it). If self.position is a property, add a method -(void)setPosition:(CGPoint)pos {_posi...
common-pile/stackexchange_filtered
breaking from outer loop while looping through inner loop I have 2 nested loops that look like this: for (var i = 0; i < SomeArray.length; i++) { for (var prop in SomeArray[i]) { if (SomeCondition) { break; // here I need to break from the outer for-loop } } } The break statement exits t...
common-pile/stackexchange_filtered
How find this sum $I\sum_{k=1}^{\infty}\frac{B_{2k}}{2k(2k-1)}=1-\frac{1}{2}\ln{(2\pi)}$ Question: show that $$I=\sum_{k=1}^{\infty}\dfrac{B_{2k}}{2k(2k-1)}=1-\dfrac{1}{2}\ln{(2\pi)}$$ where $B_{n}$ is Bernoulli number:Bernoulli number I think we can $$I=\sum_{k=1}^{\infty}\left(\dfrac{1}{2k-1}-\dfrac{1}{2k}\right...
common-pile/stackexchange_filtered
How to GREP words, not lines, that contain specific characters, and print entire word I have a file with tons of lines and words such as this example: C742 C743 C744 C745 C835 C836 C837 C838 C839 C840 C841 C842 C843 C844 C845 C935 C936 C937 C938 C939 C940 C941 C942 C943 C944 C945 C1035 C1036 C1037 C1038 C1039 C1040 C10...
common-pile/stackexchange_filtered
I have a question while creating a Singly Linked List I got curious while making shift method. Please look at the code first. class Node { constructor(val) { this.val = val; this.next = null; } } class SinglyLinkedList { constructor() { this.head = null; this.tail = null; ...
common-pile/stackexchange_filtered
Simple HTML forms Vs Django forms in django (Select in django forms not updating on refresh) I have a drop down list of trainers. I am using this get the html form. class AssignTrainerForm(forms.Form): TRAINER = [] for use in User.objects.filter(Q(role='trainer') & Q(is_active=True)): opt = use.username...
common-pile/stackexchange_filtered
sort tab delimited file with header I have a file with a header specify with @blabla - different files have different number of header lines but they all specify the header lines by the @ sign. I.e., @HI this is header line 1 @Bye this is header line 2 2 210 hi 1300 hl df de 9 179 hi 110 hl df de 2 190 hi 1310 hl df de...
common-pile/stackexchange_filtered
EF Linq to Entities calling ToList() on entity set generates SQL command containing multiple left outer join My entity "Progetto" map a view with name VW_AMY_PRG_WCS_Lookup Progetto has five navigations property: ClienteDiFatturazione, ClienteDiLavorazione, PercentualeSuccesso, Agente having multiplicity 0..1 and Doc...
common-pile/stackexchange_filtered
Finding time differences between each row in a specific column in SQL Server Still learning SQL, but I'm trying to see if there are any Customers that have a time frame within 24 hours of each other. So in this example ID 1 and 4 meet this criteria. CustID Date 1 2018-04-10 11:21:00.000 1 2018-03-05 18:14:00.000 ...
common-pile/stackexchange_filtered
How to retrieve Key from Interface builder In my storyboard I define a key value for my viewController as shown: How can I retrieve the value of this key path in viewDidLoad on Swift 4? Please read "category" not "catAgory" ;-) I think you didn't understand the defined runtime attributes. I will provide in my answer ...
common-pile/stackexchange_filtered
menu close on click on body page i have created a dropdown menu which opens on clicking the nav button. But i couldn't find a way to close the dropdown menu when the mouse clicks on the body of the page. I you can figure it out, please help me (function(){ var bodyEl = $('body'), navToggleBtn= bodyEl.find('.nav...
common-pile/stackexchange_filtered
What is the correct way to spawn a model to Gazebo using a Python script? Hi, I'm kinda fuzzy on this part. Here's my attempt: rospy.wait_for_service("/gazebo/spawn_urdf_model") try: spawner = rospy.ServiceProxy("/gazebo/spawn_urdf_model", SpawnModel) spawner(rover_name, str(open("/home/anh/catkin_ws/src/rove...
common-pile/stackexchange_filtered
How to prevent iframe from processing url's from an outside domain? I'm working on a project where I need to restrict the iframe from displaying any url that we put in it other than the original domain. for example, my website is www.myweb.com. having an iframe src="www.yourweb.com" should prevent anything to continue....
common-pile/stackexchange_filtered
Why does sudo not add root's PATH with Ubuntu 12.04? I've recently upgraded my server to Ubuntu Server 12.04. Previously it was running 11.04. Ever since then I've been having trouble carrying out root user commands through sudo. An example of this would be: > sudo ufw status sudo: ufw: command not found > sudo su - ...
common-pile/stackexchange_filtered
splitting a string by a list How do I split a string according to the variables in a given list? (I am using python 2.7). for example: given_list = ['c', 'c#', 'd', 'd#', 'e', 'f', 'f#', 'g', 'g#', 'a', 'a#', 'b'] st="c#cd#e" expected result: new_list = ['c#','c', 'd#', 'e'] The problem is that some of the variab...
common-pile/stackexchange_filtered
XCode 4.6 - Document.xib + MainMenu.xib action from MainMenu shall set outlet in Document.xib I have a MainMenu which should call an action in an AppController which then should send a message to an outlet of the MainDocument. When I instantiate an object in Interface Builder in MainMenu.xib this cannot send a message ...
common-pile/stackexchange_filtered
removing text layer and replacing with image I have this code, which works fine, but I would like to be able to make it so when an image appears the text layer disapears, and there would be a link to bring the xt back and remove the image. How would I do this..., something to do with changing isibility and overlaying? ...
common-pile/stackexchange_filtered
Manage display of actions in datagrid If have this in my datagrids.yml : actions: update: type: navigate label: test.datagrid.address.update link: update_link icon: eye rowAction: false default_address: type: navigat...
common-pile/stackexchange_filtered
Command line ios app upload with Xcode 6 We have been using the answer provided here (How to upload an iOS app to the app store via command line) by Tomer Shiri to automate the uploading of our apps to the iTunes Connect using a script. This has been worked fine with Xcode 5.X but now we have installed Xcode 6 this fai...
common-pile/stackexchange_filtered
How to insert bulb in this fluorescent socket? I hope someone can advise me. I'm trying to insert an F40 bulb (1.5" diameter, 4' long) into the socket shown below. With every other fluorescent socket in my home, I simply orient the two bulb pins vertically, push the bulb up into the socket, and then rotate the bulb 90 ...
common-pile/stackexchange_filtered
XNA ContentLoadException I'm starting to learn "some" XNA and - as expected - I've run into an obstacle pretty early. I've created a WP7 XNA Game solution I've removed the default content project I've added my own content project "Sprites" I've added 3x *.png files to the "Sprites" project (MyImage1.png, MyImage2.png,...
common-pile/stackexchange_filtered
data binding information from knockoutjs to the view page - info not showing In my javascript file i have mix of knockout and jquery which contains two different view models and i am having trouble displaying the results: Javascript: POSITION ViewModel var positionViewModel = function (data) { var _self = this;...
common-pile/stackexchange_filtered
How to write to a file in a recoverable (transactional) way? I have files on disk that contain critical information that needs to be updated every so often. It's safe to assume that only one process accesses that file, that the app is running on Windows and on an NTFS file system. My goal is to prevent possible data co...
common-pile/stackexchange_filtered
Json to google charts with variable number of columns and array Switch my variable chart witch contains this JSON: [{ "month": "January", "values": [0, 0, 0, 0, 0, 0, 0, 0, 0] }, { "month": "February", "values": [0, 0, 0, 0, 0, 0, 0, 0, 0] }, { "month": "March", "values": [35, 3, 8, 18, 0, 0, 0,...
common-pile/stackexchange_filtered
How to return from promise before non-async function return? At some point in the code, if a condition is true, I need to use data from external API, which is fetched asynchronously like this: # ./helper/currencyConverter.js const axios = require('axios').default; const convert = async (curr, amount) => { try { ...
common-pile/stackexchange_filtered
Converting base-8 to base-32 without using any other base? I have base-8 number 64276. How would I convert this number directly into base-32 without converting it into binary, decimal or any other base. Edit: I am trying to solve the problem with pencil and paper With difficulty. 5 base-8 digits map cleanly onto 3 b...
common-pile/stackexchange_filtered