text
stringlengths
70
452k
dataset
stringclasses
2 values
IndexOutOfRangeException With Array I am attempting to iterate my array of points, but I am getting the below error: Un unhandled exception of Type 'System.IndexOutOfRangeException' occured This is my syntax -- and i have a comment above the line that is throwing the error How should this syntax be written so I can r...
common-pile/stackexchange_filtered
rebuilding raid array (rocket raid 1740) so my rocketraid 1740 controller has 4 connectors .. i set it up with raid 5. drive on port 4 failed, but it comes back online after computer reboots. array saw this, and started to rebuild the faulty drive. i replaced it with new one. i do not see a way to rebuild the array...
common-pile/stackexchange_filtered
Get to intermediate values in middle of a functional programming chain I'm wondering if there's a concise or specific way to access values in the middle of an FP chain in JavaScript. Example: const somestuff = [true, true, false]; let filteredCount = 0; somestuff.filter((val) => val) .forEach((val) => console.l...
common-pile/stackexchange_filtered
how to see the data in DataLoader in pytorch I see something like the following in the examples on Github. How can I see the type of this data (shape and the other properties)? train_data = MyDataset(int(1e3), length=50) train_iterator = DataLoader(train_data, batch_size=1000, shuffle=True) You can inspect the data w...
common-pile/stackexchange_filtered
Elliptic Integrals of the First Kind Suppose I have $$F(\phi(x), k) = x$$ where the elliptic integral of the first kind is defined to be $$F(\phi, k) = \int_{0}^{\phi} \frac{1}{\sqrt{1-k^2\sin(\theta)}} \, d\theta $$ How could I invert this in order to make $\phi$ the subject? Use Jacobi elliptic functions Maple ha...
common-pile/stackexchange_filtered
How to make an object slide left and right automaticly in Unity 5.6? I'm currently developing a game in Unity 3D with c#. I developed some levels, and now I want to make some levels with auto moving cubes(the thematic of the game is cubes). I searched a lot on the internet but I don't find nothing wich satisfy me. Can ...
common-pile/stackexchange_filtered
How to convert timestamp? I am building an iOS app using Rubymotion. I get data from a Rails 3.2.8 API and I want to convert the timestamp I get (2013-01-24T23:42:59Z) to 2013-01-24 23:42:59. How can I do that with Ruby? What is this format called (2013-01-24T23:42:59Z)? Do you mean printing a String from a timestam...
common-pile/stackexchange_filtered
Replace Unicode escapes with the corresponding character I'm trying to convert code points, such as \u00FC, to the character it represents. import javax.swing.JOptionPane; public class Test { public static void main(String[] args) { String in = JOptionPane.showInputDialog("Write something in here"); ...
common-pile/stackexchange_filtered
Using two different versions of python but sqlmap needs 2.7 I've recently started using sqlmap and found out it needs python2.7. I installed 2.7 and added it to my PATH along with 3.4. My current path looks like this: c:\Other-Programs\;c:\Python27;c:\Python34 So When I try to run sqlmap i follow these steps: 1. Open ...
common-pile/stackexchange_filtered
Passing a string as a regex pattern to String.prototype.replace How to convert a string to a regex pattern that works with the string.replace prototype? Expected solution: var regex = "/(\w+)_(\w+)/i"; var pattern = new RegExp(regex); console.log("some_name".replace(pattern, "$1-$2")); // expected output: some-name // ...
common-pile/stackexchange_filtered
equivalent to hwclock in Solaris? Hi all is there an equivalent in Solaris 10 (i86) for hwclock? I'd like to read the bios time on a machine without rebooting and checking manually. Thanks. On Solaris the hardware and system clock are in sync and are both set to UTC (~GMT). You can use the "date -u" command to display...
common-pile/stackexchange_filtered
Intersection of elements of sets Even I try but I can not understand the following equation: $ Poss(A) = \bigcap_{a \in A}\lbrace e | e \in Poss(a) \rbrace $ where $A=\lbrace a1,a2,a3 \rbrace$ and $Poss(a)$ is a set of sets, for example: $Poss(a1)=\lbrace \lbrace 2,7 \rbrace, \lbrace 1,2,5,7 \rbrace \rbrace $ $Poss(a2)...
common-pile/stackexchange_filtered
How can ClickOnce change the app.config from development to deployment one? I have a development app.config and a deployment app.config. I need clickonce to change it on deployment.Is this posible to be done automatically? An easy way would be to copy the app.config file in the pre-build script that you can define in ...
common-pile/stackexchange_filtered
Pass Email Id as parameter in WCF restful service Suppose I have a web service which accept email id and password as parameter in url . I have to authenticate user by email id and password. using System;using System.Collections.Generic;using System.Linq;using System.Runtime.Serialization;using System.ServiceModel;us...
common-pile/stackexchange_filtered
loop through range and insert unique data to access database Hope you're all having a good day. I'm looping through a range from an open workbook and for each loop i need to check if the details are in my access table and if not insert the details. I have the following code which i think should work well but seems ex...
common-pile/stackexchange_filtered
BigDecimal 2.0 is coming equal to BigDecimal 2.00 I read the Java doc of BigDecimal.equals() says: Compares this BigDecimal with the specified Object for equality. Unlike compareTo, this method considers two BigDecimal objects equal only if they are equal in value and scale (thus 2.0 is not equal to 2.00 when compared...
common-pile/stackexchange_filtered
IIS 7, MVC2 Web Service, HTTP 405 Error on PUT This is a similar question as IIS 7.5, Web Service and HTTP 405 error but a little different. Instead of a WCF web service, I've got an MVC2 web service that returns a 405 error when a PUT is used in the request. And, in my case, POST works just fine. I'm guessing I need t...
common-pile/stackexchange_filtered
Populating dynamic select dropdown in json or xml (AND HOW) I need to populate this type of drop-down dynamically. First is visible by default and on select of a particular option the corresponding 2nd drop-down will show up with its relevant options and hiding others. Then on select of its option the third level drop-...
common-pile/stackexchange_filtered
How do I target arm64, excluding x86_64, in flutter run -d macos? flutter run -d chrome runs with no issues, but -d macos triggers the following warning. I'm on arm64, and am happy compiling during development for just arm64. How do I target arm64 alone? flutter run -d macos Launching lib/main.dart on macOS in debug mo...
common-pile/stackexchange_filtered
Why are accented characters rendering inconsistently when accessing the same code on the same server at a different URL? There is a page on our server that's reachable via two different URLs. http://www.spotlight.com/6213-5613-0721 http://www.spotlight.com/interactive/cv/1/M103546.html There's classic ASP behind the sc...
common-pile/stackexchange_filtered
Overwrite Wordpress Theme's star-ratings with default WooCommerce ones My WordPress theme ("Function") uses an ugly "progress bar" style ratings system which overrides the default WooCommerce star-ratings. See below: http://demo.woothemes.com/function/shop/castillo-cap/#tab-reviews For the life of me I can't figure out...
common-pile/stackexchange_filtered
Put in / remove from the basket using Rx I have two streams of data: Boolean stream, which indicates whether the item exists in the basket. Clicks stream, which initiates item put/delete into/from the basket. Firstly, I want to change caption of the toggle button according to boolean stream. It's simple. Secondly, I ...
common-pile/stackexchange_filtered
How to replace PID controller with fuzzy controller so that it can work exactly the same as PID I have a model in simulink as shown The model has PID controller with Kp=36 Kd=54 Ki=6. Pid controller is minimizing the error given as its input to zero. Now I want to replace it with fuzzy controller so that it exactly wo...
common-pile/stackexchange_filtered
Reusable vector module with tests I'm learning rust with mostly a background in managed languages. I have a little C background. As a learning project I am re-implementing a linear-transformations library I've been working on in C#. This is my first reusable library I've tried to make in Rust and I'd like feedback...
common-pile/stackexchange_filtered
What's the best speech recognition software for Ubuntu? Can someone please suggest to me a good speech recognition software for Ubuntu? I want a software which controls everything. Like for example, on the login screen instead of typing password I can say the password and it recognizes my voice and unlocks. I have alr...
common-pile/stackexchange_filtered
How can I make a POST on http using boost::asio? Hello I'm trying to do a POST using boost::asio but I'm unable to do so. I'm looking at this example code: http://www.boost.org/doc/libs/1_49_0/doc/html/boost_asio/example/http/client/sync_client.cpp How can I make this code using POST instead of GET? I think cpp-netlib...
common-pile/stackexchange_filtered
I need help uploading files with a time delay Hi can someone please help with with this. I wrote a code that moves files from folder to folder. The problem is that code moves all of them at the same time all at once. I need a file to be moved then there is a delay then it will move the next file. I've been trying this ...
common-pile/stackexchange_filtered
single tap (hittest) does not fit with subviews After changing the uiview position (y = -50) the single tap does not fit to the position to my added subviews. Hittest means the touchview starts at -50 and not 0. How to fix this? myview = [[UIScrollView alloc] initWithFrame:CGRectMake(0, -50, mywidth, myheight)]; The s...
common-pile/stackexchange_filtered
Sql query returns 0 rows SELECT * FROM class c Left join sub_inclass s on s.class_id=c.class_id join subject sb on s.sub_id=sb.sub_id The other two except class 'table' are empty, I have left join but class table is still not displaying should be an outer join If you use only join it is an inner join by default. ...
common-pile/stackexchange_filtered
cast with linqToEntity(Esql) my code : public List<Book> GetBook(string NameField, object Value) { var queryESQL = @"select VALUE Book from Book where Cast(Book." + NameField + " as string) like '%M%'"; var query = this.Entities.CreateQuery<Book>( queryESQL); ...
common-pile/stackexchange_filtered
How to configure trusted proxy middleware for Heroku on Laravel 5.6 Heroku has the following documentation for configuring trusted proxies when working with Laravel: https://devcenter.heroku.com/articles/getting-started-with-laravel#trusting-the-load-balancer It says: It is very important to also prevent Laravel from ...
common-pile/stackexchange_filtered
How do processors know the order of registers' values? In assembly one can pass values via less volatile registers or volatile registers. I can for instance pass arguments to printf using edi and esi I can also instead use ebx and ecx This example is a very simple contrived one. I'm more curious to how this works with ...
common-pile/stackexchange_filtered
Split the "Elements" tab and the "Console" in Chrome dev Tools Is there a way to have a view of both the Elements and the Console in two different windows or with the windows split in two part? The Drawer offers the functionality you want. When on the elements panel, just press esc (when DevTools has focus) to open th...
common-pile/stackexchange_filtered
back transformation of log means and log standard deviations I have a set of values reported as the 'log mean'. I know from elsewhere in the text that it is the natural log that is being referred to. I'm trying to ascertain if there is a way I can derive the mean from this 'log mean', and also if there is a way to work...
common-pile/stackexchange_filtered
cannot change wallpaper in Gnome I recently installed Gnome on my Dell OptiPlex 755 computer. Everything seems to work, but I cannot add a wallpaper image on my desktop. I tried Wallch, to no avail. Is there a trick to adding wallpaper to Gnome, or is this system simply meant to use a jet-black background? In Settings...
common-pile/stackexchange_filtered
Refreshing a jsp on some change How can I refresh a jsp on any change automatically? Is there any way to do it? In my application I am using JSP to design the header. Now as per requirement I have to make a change in the jsp which is only reflecting when Iam manually refreshing the page. I want this to be done automat...
common-pile/stackexchange_filtered
How to drop the imaginary part from numbers such as x + 0.0i in R I guess this will be already answered somewhere, so apologies in advance, but I tried to search without luck, so..... ....What is the smart way to deal with numbers of the form x + 0.0i in R ? For example suppose we have y <- 1 + 0.0i So of course: y ==...
common-pile/stackexchange_filtered
TelegramBot 400 Bad Request: media not found I try to send album by telegram bot. Sometimes I get error Telegram.Bot.Exceptions.ApiRequestException: Bad Request: media not found at Telegram.Bot.TelegramBotClient.MakeRequestAsync[TResponse](IRequest 1 request, CancellationToken cancellationToken). InputMedia not is empt...
common-pile/stackexchange_filtered
Backup multiple Exchange Accounts without direct access to exchange server For e-mail, we use Microsoft Exchange and it is hosted by 1and1.com. We have about 30 Exchange accounts that I would like to backup to a PST file. That is, for each account that we have (all 30), I would like to create a single PST file (1.pst...
common-pile/stackexchange_filtered
mvc passing data between controller and view I am developing an application. I have created a view and a controller. The view has a button, on the click of which I am supposed to do database operations. I have put the database operations in the model, I am creating the object of model in the controller. On clicking th...
common-pile/stackexchange_filtered
Changing isVisible property of Xamarin Forms XAML buttons I am trying to dynamically show/hide button inside Xamarin Forms ContentPage. I have two buttons in my XAML code: <StackLayout Orientation="Vertical"> <Button x:Name="start_btn" Clicked="startPanic"> <Button.Text>START</Button.Text> </Button> ...
common-pile/stackexchange_filtered
Why doesn't assigning a new value to a list element inside an if block (which is inside a for loop) not change the actual list itself? I have a list of words (words_list), and w is used to iterate through it. If w is equal to word, which is a user-inputted string, then w is replaced with asterisks. If I print out the ...
common-pile/stackexchange_filtered
Spring boot test how to import data.sql just once during of h2 testing I want to test my spring boot application via h2 in memory database where I would like to use: spring.jpa.hibernate.ddl-auto: update However, once I want to run tests with this command: mvn clean test it will show some errors which are related to c...
common-pile/stackexchange_filtered
Android Bitmap syntax I want to load bitmaps into ImageViews in Android, but I don't want to use the R.drawable syntax because I have a lot of images with a standard naming convention so it's much easier to get the image with some logic. For example, all my images are named: img1.png img2.png img3.png So if a user sele...
common-pile/stackexchange_filtered
Prove that the Pell's Equation $x^2 −Dy^2 = 1$ always has a solution where $y$ is a multiple of $41$ $D$ is a positive integer that is not a perfect square Recently I am taking a introductory number theory course and I met this question right after we learned Pell's equation and Diophantine Approximation. However, I ca...
common-pile/stackexchange_filtered
C# remove all but two least significant bits of color On this page, see the picture of the tree and its caption. I'm planning on implementing a plugin for Paint.NET to do just that... but I'm not sure how. I'm already looping through every pixel (for those wondering, the Paint.NET API makes this efficient) as a ColorBg...
common-pile/stackexchange_filtered
How to SELECT value Where value = ''another SELECT" First of all I searched for correct answer but I didn't find. I have a function: SELECT user_email FROM `registracija_complete` WHERE user_id = (SELECT `id`  FROM `base`  WHERE `sex` = 2  AND gimdat BETWEEN '197...
common-pile/stackexchange_filtered
Jquery/ajax get object from a class and use it in a textbox in my view I am working on a asp.net mv3 application. In a helper class I have a method that return an object of a person based on his ID public Person GetPersonByID(string id) { // I get the person from a list with the given ID and return it } In a view ...
common-pile/stackexchange_filtered
Return data from $.ajax call I want to return an array from an ajax call. Here is the code that I have come up with so far. There are constraints that i need to follow. I cannot write additional functions outside of bookNames. The function signature of bookNames is fixed. bookNames : function(bookUrl){ return $.aja...
common-pile/stackexchange_filtered
Why one should try throw unchecked exception over checked exception? I've been told that I should consider throwing Unchecked exception over Checked exception in my code and not only that, but to extend the RuntimeException with my own one. Now, I do understand the difference between the two, but still doesn't understa...
common-pile/stackexchange_filtered
Github action - Pushing flask application to docker hub Blessings, I made a Flask API application and whenever I try to push it to docker hub repository via GitHub Action it fails, Also when I try to run it using docker build/run the build finishes but says This site can’t be reached. While when running the flask appli...
common-pile/stackexchange_filtered
Op-amp question: Is this circuit possible? I was (re)doing some electronic learning, and tried to come with a "general solution" for all op-amp circuits. I thought I could do so by having an op-amp with both negative and positive feedback, and both voltage accross + and -. But, when I combine both equations V+ - Vs an...
common-pile/stackexchange_filtered
Improving the convergence speed in a Leibniz series I have read the proof for the Leibniz criterion. Underneath there was a remark that I did not understand it says that if we have a Leibniz series than one can obtain $s$ sometimes faster by calculating the (arithmetic) mean value and with index shift. With Leibniz se...
common-pile/stackexchange_filtered
Windows Phone string to color There is no System.Windows.Media.ColorConverter in Windows Phone (or Silverlight) so I need another way to take a string containing a color name e.g. "Red" and generate a Color object from it. I found this possibility but it doesn't work as colorType.GetProperty always returns null. public...
common-pile/stackexchange_filtered
How to find inputs of dask.delayed task? Given a dask.delayed task, I want to get a list of all the inputs (parents) for that task. For example, from dask import delayed @delayed def inc(x): return x + 1 def inc_list(x): return [inc(n) for n in x] task = delayed(sum)(inc_list([1,2,3])) task.parents ??? Yiel...
common-pile/stackexchange_filtered
Display ReportViewer results on Load - ServerReport.Refresh() doesn't do anything I have a ReportViewer control on my webpage. It loads properly and when I click on the "View Report" button, the results are properly displayed. But now I want it to display the results when the page loads and not ask the user to click on...
common-pile/stackexchange_filtered
How do we know what build top players use? One of the sources we can use is http://diablo.somepage.com/popular/witch-doctor#builds However, that's not good enough. Some build, for example, it is awesome for some set items and total junk for other set items. Haunt and Locust Farm are definetly needed for the Jade Harve...
common-pile/stackexchange_filtered
Get the text from an external HTML document My goal is to get the text from a HTML document which does not call any functions from my .jsp file. I've looked around and I thought I had found the answer to my problem but it doesn't seem to be working, and other answers consist of using jQuery (which I am both unfamiliar...
common-pile/stackexchange_filtered
Read .wav file data for every 160 microseconds How to extract data corresponding to definite time intervals from a .wav file? I have been given a few .wav files and asked to separate the header and data. From the obtained data, samples corresponding to every 160-microseconds should be separated and copied to buffers. ...
common-pile/stackexchange_filtered
Two overloaded methods to move an e-mail message to another mailbox folder I have an API for managing an email mailbox. There is a class called Message, and it has two Move overloads: /// <summary> /// Move this message to the mailbox folder whose path is provided. /// </summary> /// <param name="toFolderPath">The pat...
common-pile/stackexchange_filtered
Force linebreak after javadoc @see I want to use the @see tag in javadoc to give a hint to multiple books. Something like this. /** * @see "Book 1" * @see "Book 2" */ public void complexMethod() {} Javadoc produces html code which separates the two books with a comma. I would prefer to separate them with a linebre...
common-pile/stackexchange_filtered
Multiple ipc publishers and one subscriber using python-zmq I'm wondering if is possible set multiple ipc publishers for one subscriber using zmq ipc... Abstractly I have only one publisher like this, but I need run multiple instances of it getting several data types but publishing the same format every time. conte...
common-pile/stackexchange_filtered
How to hit curl to Kong after applying RBAC authentication We have authenticated kong with RBAC credentials. Before this, we are able to hit localhost:8001/default/apis?size=100. But after applying RBAC authentication, we are getting the below error { "message": "Invalid RBAC credentials. Token or User credentials re...
common-pile/stackexchange_filtered
ON DUPLICATE KEY UPDATE ... with WHERE or subselection? i am a bit concerned about one of my mysql queries... The following query receives a variable $DB_id... if a row with that primary key already exists the query performs an update. $this->db->query(" INSERT INTO modules_text ...
common-pile/stackexchange_filtered
Keycloak clustering setup issue I created a test virtual machine to apply Keycloak clustering. I installed Keycloak version 26 there and set it up as follows. conf/cache-ispn-tcpping.xml <infinispan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:infinispan:config:15.0 http...
common-pile/stackexchange_filtered
Python how to check the dictonary have value in list and change to string type? I have below dictionary in which value for some of keys are appeared as list. i need to find those values which are list type and need to convert to string details= { "dsply_nm": [ "1981 test test" ], "eff_dt": [ "2021-04-21T...
common-pile/stackexchange_filtered
Is my guitar action too high or is the bridge too high? I've been trying to play barre chords for a few weeks now, but I can never make the G string to sound properly. Also, I feel like I'm putting on more pressure to play the barre chords than is required. I just wanted to know if it's just improper technique or whet...
common-pile/stackexchange_filtered
Injecting Beans in JSF 2.0 I have a Session scoped bean import javax.faces.bean.SessionScoped; import javax.inject.Named; @Named @SessionScoped public class SessionBean implements Serializable{ I inyect the object in one Filter... public class FiltroSeguridad implements Filter{ @Inject private SessionBean sessionBean...
common-pile/stackexchange_filtered
add back button to first screen of navigation controller in iOS I know that a push segue automatically adds a back button so that the presentee can return to the presenter on click. What I want is for the back button to be available on the first UIViewController of the NavigationController (basically the only view cont...
common-pile/stackexchange_filtered
How to integrate Struts 2 with Hibernate and PostgreSQL How to integrate Struts 2 with Hibernate and PostgreSQL? hibernate.cfg.xml: <property name="hibernate.connection.driver_class">org.postgresql.Driver</property> <property name="hibernate.connection.url">jdbc:postgresql://localhost/jvmhubtutorial</property> <propert...
common-pile/stackexchange_filtered
No instance for show, in Lambda function? This works fine in ghci: printRobot (fight killerRobot gentleGiant) But this throws me a "No instance for show" error, and I can't seem to see why. threeRoundFight a b = (\a b -> printRobot (fight a b)) This is the error: • No instance for (Show ((((t40,...
common-pile/stackexchange_filtered
react-native-navigation V2 : How to nest sideMenu inside stackView I have an initialScreen that checks if the user has logged in before. If yes, user is navigated to the main screen and if not, the user is navigated to the signUp screen(using stack navigation). This works fine but I am trying to use both stack and sid...
common-pile/stackexchange_filtered
look into a way to convert a string to date with python I have a list of date with this format : "190802 (2 august2019)". I would like to format it to "02-08-19" using datetime. Is there a fucntion to do? Thanks Possible duplicate of Converting string into datetime Please post expected output of given sample along w...
common-pile/stackexchange_filtered
Angular momentum conservation during motorbike jump - modelling I have now found 2 ways of describing this phenomenon and I would like to know which way is correct or better: When the rear wheel rotates, we can take a look at the angular momentum (around the rotational axis of the rear wheel). First way: We then take ...
common-pile/stackexchange_filtered
Why is my Laravel Auth not responding as expected? I've created a Laravel project in which I've run the following commands: composer require laravel/ui php artisan ui vue --auth npm install This sets up the controllers and a few other auth related files for the project. The second and third command are there to import ...
common-pile/stackexchange_filtered
how to join 3 tables, topic, comment and user I have 3 tables, tbl_topic, tbl_comment, tbl_user. I want to select all the topics created by the user and also the topics that he commented on even if he is not the creator. Here is my database: tbl_topic ---------- topic_id topic_title user_id tbl_comment ---------- comm...
common-pile/stackexchange_filtered
The link changes, but the contents don't change. What should I do? I don't know what the problem is. No matter how hard I look, I can't see the problem. Please help me! I used React-router. The address of the link points to where I want to go, but the content inside is not what I wanted. The screen of "OpenChats" (the...
common-pile/stackexchange_filtered
Accessing Vuex state object property from component I'm trying to change value of a state object property from a component but I can't find the proper way to do it Here is my state: state: { articles: [ { title: "Lorem ipsum", position: 7 }, { title: "Lorem ipsum", position: 8 } ] } In th...
common-pile/stackexchange_filtered
THREE.js, BufferGeometry, array.length / itemSize != numItems? Take a look at the example http://mrdoob.github.com/three.js/examples/webgl_buffergeometry_particles.html The way the positions buffer is setup is as follows: var particles = 500000; var geometry = new THREE.BufferGeometry(); ...
common-pile/stackexchange_filtered
skype: symbol lookup error: skype: undefined symbol: I am using Ubuntu 12.04 32 bit, skype used to work, but suddenly it stopped. Now when I try to execute through terminal I am getting this error: skype: symbol lookup error: skype: undefined symbol: I tried all these solutions: "skype: symbol lookup error: skype: un...
common-pile/stackexchange_filtered
Accessing property that is filled by an AsyncTask returns null I am trying to get values from my User class (holding all the user information for the logged in user. It is set once logged in, and it is printing out in the log just fine, but then when calling from the class that instantiates it, it returns a null? Here ...
common-pile/stackexchange_filtered
Looking up a deactivated widget's ancestor is unsafe) flutter this is my splash screen and I provide the future method to navigate automatically to another screen, class SplashScreen extends StatelessWidget { @override Widget build(BuildContext context) { Provider.of<DataBaseProvider>(context).getAllEmployees()...
common-pile/stackexchange_filtered
Adding a second html page in a Create React App project I've been developing an embeddable widget using CreateReactApp. It works great when initialised from the index.html Now I want to test what happens when the user changes page in the html. Ill need to save the app's state in storage etc. When I add a second html pa...
common-pile/stackexchange_filtered
Map Literals to Object Properties/Values For eg, my input XML is look like this. <root> <myelemt> <input type="variable"> <variable>STARTDATE</variable> <variable>CUSTOMERNAME</variable> </input> </myelemt> </root> it is deserialized and loaded into the object MyXmlElemtObj in my code i have written like this, if(MyX...
common-pile/stackexchange_filtered
Can’t access DOM elements created by `createDocumentFragment` In my tutorial project, I fill the page with elements created using DocumentFragment. Everything happens as it should: the elements are created, drawn on the page, and displayed in the DOM. The problem is that when I try to access these elements for further ...
common-pile/stackexchange_filtered
How to localize some specifics missing expressions in rails I'm using rails_admin which use devise. Some words still displays in english. I have many yml files for i18n (fr, rails_admin.fr, devise.fr). Is there a quick way to find what yml [tree] I have to put in one of those to i18n these missing expressions ? Devise...
common-pile/stackexchange_filtered
retrieve data from a thread in python I have a thread in python which handled receive OSC packets... I need to retrieve datas from osc in my main function. How could get data from thread out of the thread ? Here's the code to demonstrate my issue: TRY WIH CLASS, BUT STILL "DATA IS NOT DEFINED import OSC import threadin...
common-pile/stackexchange_filtered
Syntax for nested IF statements in SPARQL I'm trying to run the following SPARQL query, but it keeps returning SR171: Transaction timed out. SELECT ?isBusAvailable WHERE { SELECT DISTINCT IF ( ( SELECT ?value2 WHERE { GRAPH data: { ?obsValueID2 ontology:value ?value2 } GRAPH data: { ?obsValueID2 rdf:...
common-pile/stackexchange_filtered
Convert C++ to Python (For Loop multiple assignment) Convert to python: #include <iostream> using namespace std; int main(int argc, char** argv) { for (int i = 0, j = i + 3; i < 100; ++i, j= i+3) cout << i << " j: " << j << endl; getchar(); return 0; } I try: for i in range(99): j = i + 3 ...
common-pile/stackexchange_filtered
Solana RPC Endpoint (metaplex.devnet.rpcpool.com) returns 403 Forbidden - Alternative solutions? I'm developing an application using Solana's devnet and trying to connect to the RPC endpoint https://metaplex.devnet.rpcpool.com/. However, I'm consistently getting a 403 Forbidden error. Here are the details: RPC Endpoin...
common-pile/stackexchange_filtered
What URL is needed to be sent in the Cloudrail AdvancedRequestSpecification to get the LinkedIn Experience or Education profile sections? I implemented the Login with LinkedIn Social Sample, and successfully got back the Id, Name, Email, Gender, PictureUrl, Description and BirthDate using the Github Cloudrail-Xamarin e...
common-pile/stackexchange_filtered
Drupal Non-Admin Toolbar Is there a module I can add a Toolbar on top of the page, like Admin Toolbar but for Authenticated users ? Simple Menu sorta worked, but had way too many bugs. Anything else? There is Administration menu module. You can turn on the permissions for authenticated users, the panel will only show...
common-pile/stackexchange_filtered
XCode bundle identifier formatting from {PRODUCT_NAME} Assume I have an iPhone application whose Product Name is "My App" (with a space between words) in XCode build settings. In my info.plist, the Bundle identifier is specified as com.mycompany.${PRODUCT_NAME:rfc1034identifier} In the resulting info.plist in the appli...
common-pile/stackexchange_filtered
How do I allow the Documents library in an Office 365 Group site allow ASPX pages to be viewed? If I upload an ASPX file to the documents library in a regular SharePoint site, it renders properly when a user clicks on the file. If I do the same for an ASPX file uploaded to the documents library in a SharePoint site tha...
common-pile/stackexchange_filtered
What are the pros and cons of learning English from movies and radio? I dedicate one to two hours each day to learning English. I'm focusing on listening and speaking (and improving my accent, of course). I want to know what the pros and cons are of learning English from movies and television (usually U.S. series such ...
common-pile/stackexchange_filtered
CrossEntropyLoss loss function type problem I am trying to solve a classification problem but something is not working for me in the code. I have a network that receives 30 inputs and outputs 4 actions. Each action can receive an integer value from 0 to 4 (that is, receive a number between 0 and 4, a total of 5 options...
common-pile/stackexchange_filtered
How to get old input array in blade laravel I have some code like this <div class="form-group"> <label for="tag">Tag</label><br> <input type="text" data-role="tagsinput" class="form-control form-control-lg @error('tag') is-invalid @enderror" id="tag" name="tag[]" value="{{old('tag')}}" p...
common-pile/stackexchange_filtered
Google geocode API returns location of motorway rather than postcode area supplied I get the same result if I use the URL or javascript APIs. If I pass (as an address) the location "M5" for geocoding, rather than returning the location of the M5 Postal Area (Salford, Manchester) the location returned is the centre of t...
common-pile/stackexchange_filtered
String Format Constraint On PostgreSQL Column Not Working I am moving a database from SQL Server to PostgreSQL and hitting some issues with a check constraint in one of the tables. PostgreSQL version is 9.5.1. I have a table that I created with a check constraint on one of the columns to enforce format. This worked in ...
common-pile/stackexchange_filtered
Normal Plane and Tangent Line of 2 intersected surfaces without a point Is there a way to find the normal plane and the tangent line to the following surfaces without having a point of intersection, I know you can use Newton-Raphson method to find the approximate intersection point but, is there any way or is even poss...
common-pile/stackexchange_filtered