text
stringlengths
70
452k
dataset
stringclasses
2 values
Issue with s-function in simulink test sequence Upon trying to test a test sequence/ test harness (using a test case manager), I get the following error in the test case manager window: Cannot register run-time parameter for dialog parameter 1 for S-function 'sf_sfun' in <test_sequence> because the dialog parameter is ...
common-pile/stackexchange_filtered
PHP Pagination - Limit amount of links So i have my pagination links like this. for ( $counter = 0; $counter <= $page_amount; $counter += 1) { echo "<a href=\"section.php?q=$section&p=$counter\">"; echo $counter+1; echo "</a>"; } And the links grows like: 1 2 3 4 5 6 7 and so on. But i wan...
common-pile/stackexchange_filtered
How to generate a integrity hash for link elements Bootstrap CDN is using the subresource integrity, i'm looking for how to generate this hash. <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpL...
common-pile/stackexchange_filtered
C# Delegates and Function Calls Assuming I have this function: Func<string> fs = () => "test"; var st = fs(); I want to simplify this to: var st = (()=> "test")(); It seems however that I can't define the function and then instantly invoke it. Is this possible in another way? This is possible: var st = (new Func<stri...
common-pile/stackexchange_filtered
Java Collections.sort doesn't call compare method I've read all answers etc, but non of them solved my problem. I have basic function to sort list of custom object array by String InvoiceNumber. List<Invoice> invoiceList = new ArrayList<>(); ... // invoiceList filled here ... Collections.sort(invoiceList, new Compar...
common-pile/stackexchange_filtered
How to remove tags using RegexTokenizer() in Spark/Scala ML? I have a a feature column that has HTML tags in it. I would like to remove all tags. An example of one row of data from column "body" is as follows: "<p>Are questions related to and similar products on-topic?</p>" I would like the output after using RegexT...
common-pile/stackexchange_filtered
PGError: ERROR: relation "schema_migrations" does not exist when I heroku db:push I've a PostGresql database on my local system. I used it during development and I'm trying to test it out on the Heroku system. Note I'm using PostGresql so that I can make use of the schemas. I'm running the system perfectly on my local...
common-pile/stackexchange_filtered
How can I decimal-align tick labels at the left? I use the CustomTicks package, because the built-in tick labeling leaves a lot to be desired. Even just putting the tick marks on the right instead of the left is a real pain without CustomTicks, from what I remember. I think this would be an issue even without this pa...
common-pile/stackexchange_filtered
How do I display an image over a table cell that's larger than the cell? I've got a TABLE that's actually being used for its intended purpose, to display a grid. The cells are fixed-size cells, with both the width and the height of each cell being constant and defined in CSS. I can put text and images into the cells e...
common-pile/stackexchange_filtered
jQuery text() ignores <br /> with nl2br I'm having issues when retrieving, by json, text information and want to display well formated into a <p> tag. Imagine the following text: Description: Retrieve the DOM elements matched by the jQuery object. See: https://api.jquery.com/get/ As you can see it has three lines. W...
common-pile/stackexchange_filtered
How to change a global variable dependent of other global variables inside the Python function My task is to implement Euler's method in Python with five arguments and one of them is a function f dependent on variables t and x (precisely: f(t,x)). When I tried to execute Euler's method with a given function f, I got er...
common-pile/stackexchange_filtered
javascript to change classes of switch buttons and elements Hi, a friend gave me this code that changes the class of the switch buttons but I made a modification so each button change the state of 2 separate elements by pressing them like this function toggleClass(ev){ var el = document.querySelector(".pressed"); v...
common-pile/stackexchange_filtered
ActiveResource and json root element In ActiveResource 4.0.0 I need to have explicit "include_root_in_json = true" like this: class Base < ActiveResource::Base self.include_root_in_json = true end Why this is not default since Rails 4.0.0 need root element for saving objects by default? I ran into the same problem...
common-pile/stackexchange_filtered
"may" or "may well" Today I've found out that may well means probably. I know that may is also used to express probability. What is the difference between using "may well" and "may" then? Some of the examples I've run into are: You may well be right. He may well have missed his bus. I'm wondering if the meaning of t...
common-pile/stackexchange_filtered
JS PHP insert data in database - is it secure enough? I'm working on a webapp and I'm using js/php (php and jquery latest versions). Is there anything I should do to improve security? I'm not super worried about safety as the current users are using a very buggy (pretty much every exploit works) and outdated (php 4) pl...
common-pile/stackexchange_filtered
Access DOM attribute with XML namespace on Freemarker template I have the following XML. <n:wmi xmlns:inventory="http://www.example.com/XMLSchema/mp/v1/item/ItemInventory.xsd" > <items processMode="INCREMENTAL"> <item partnerItemId="SM-290754-US"> <action>UPDATE</action> <inventory:availability code="AC" onHa...
common-pile/stackexchange_filtered
How does asp.net mvc3 instantiate client side validation? This question most closely relates to the asp.net mvc3 framework. It started out as "How can I ensure active validation for dynamically appended input fields using jQuery with asp.net mvc3?" However, after some searching, testing, and coffee I came across this: ...
common-pile/stackexchange_filtered
facebook comments, what happens when domainname change? I am currently developing a new blog platform with some new features. For the commenting on blog posts i'll use facebook comment. (each user has to create their own account for comments on facebook). But i have one problem. Each user can, whenever they want chan...
common-pile/stackexchange_filtered
How can I view more posts per page? From what I know, we can only view 15/30/50 questions per page, or 30 answers per page. I'm wondering if there is a way to load more posts in a page. If yes, how can I do it? I tried to modify this URL, https://stackoverflow.com/questions/tagged/javascript?tab=newest&pagesize=50 and...
common-pile/stackexchange_filtered
Checking vertically and horizontally for a specific JButton? So, im working on my slide puzzel game, which have 16 JButtons in a gridlayout. 15 of them have a number 1-15 and the last one is empty. I have now written the code for the gui and everything except the public void actionPerformed(ActionEvent e). This is how ...
common-pile/stackexchange_filtered
Excel VBA: Google map API - one post code compared to many I am trying to do an Excel VBA: Google map API that returns distance and time but I cannot seem to get it to work? The code does not seem to run which to me would mean it is not picking any postcodes up. Sub main() Dim a, b, i, Str As String Dim lineS ...
common-pile/stackexchange_filtered
How to check if a file exists in a makefile I have a makefile template to compile a single DLL (for a plugin system). The makefile of the user looks like this: EXTRA_SRCS=file1 file2 include makefile.in In the makefile.in I have: plugin.dll: plugin.os $(patsubst %,%.os,$(EXTRA_SRCS)) Where plugin.os is the main C++ f...
common-pile/stackexchange_filtered
Parse Cell Location String into Row & Column i have string col= "AB21" which is an excel cell location. I would like to parse it as string column = "AB" & int row = 21; How can i do that? string col = "AB21"; int startIndex = col.IndexOfAny("0123456789".ToCharArray()); string column = col.Substring(0, startIndex); int...
common-pile/stackexchange_filtered
Exercise of Lie subalgebra Let $e_1,\ldots,e_{2n}$ a canonical basis for $\mathbb{R}^{2n}$ and consider $E=Span(e_1,\ldots,e_{n})$. $O(2n)$ is the orthogonal group with Lie algebra $\mathfrak{o}(2n)$. Define $$C=\{A\in GL(2n;\mathbb{R})| A(E)\subset E\}.$$ (A) Prove that $C$ is a closed subgroup of $GL(2n;\mathbb{R})...
common-pile/stackexchange_filtered
Whenever I install Iceweasel it installs Firefox instead I used the following command to install Iceweasel. sudo apt-get install iceweasel However, instead of Iceweasel, I get Firefox. Not that I'm complaining much, I love Firefox. If you click on Menu > Internet, there are 2 Firefox logos. One says Firefox ESR, and ...
common-pile/stackexchange_filtered
Is embedded C the same for all MCUs? I was coding for Atmel ATmega 32 chips. Now I have shifted to the ARM Cortex-M family. Is there any difference in coding between AVR and ARM, or does it depend on the compiler? How I would learn programming for ARM MCUs? Your question is very broad, almost too broad even. I've trie...
common-pile/stackexchange_filtered
Issue installing Falco on K3s (PopOS) I am trying to install Falco on my home lab (K3s v1.23.6+k3s1 on Pop!_OS v20.04). For work I need to create a response engine, for that I have chosen FalcoSidekick and OpenFAAS - before taking this to EKS I want to test it locally. I am using the standard Helm chart: kubectl create...
common-pile/stackexchange_filtered
Bash: echo string that starts with "-" VAR="-e xyz" echo $VAR This prints xyz, for some reason. I don't seem to be able to find a way to get a string to start with -e. What is going on here? The variable VAR contains -e xyz, if you access the variable via $ the -e is interpreted as a command-line option for echo. Not...
common-pile/stackexchange_filtered
Search values in array of objects js I need to push my new object in array of objects and check: if new object doesnt overlap objects that exists by start and end values. I write this one. Can i make it shorter? Or maybe there is better method to do it? let arr = [ { start: 0, end: 10 }, { ...
common-pile/stackexchange_filtered
Function which returns multiple values In Fortran, is it possible to define a function which returns multiple values like below? [a, b] = myfunc(x, y) It can return multiple values (see below), but you can't have multiple assignments in a single line like in Python. That depends... With functions, it is not possible...
common-pile/stackexchange_filtered
Use Regex to Match relative image URLs and then use string replace to make them absolute using Javascript I want to use javascript regex to find all relative URLs and then make them absolute using the string replace function in javascript. I tried to following but it didn't work:(Note: i have tried searching this site ...
common-pile/stackexchange_filtered
Sound volume indicator in top panel is resetting top panel upon mouse click or hover I've installed the system monitor indicator applet and weather indicator applet. all else is the same. Do you think compiz is the problem? Can I reinstall the volume indicator applet? keep an eye on this filed bug https://bugs.launch...
common-pile/stackexchange_filtered
How do I open files and URLs at runtime in Delphi? I want to add two buttons to a program I'm making in RAD Studio XE7: One that opens a webpage URL in the default browser; One that opens a PDF File in the default PDF reader. How can I do that? P.S.: I tried using ShellExecute for the URL, but it returns the followin...
common-pile/stackexchange_filtered
Unable to update [PFUser currentUser] when Public Updated Disabled I'm recently trying to lock down security on a parse project and have disabled except for public create. However after doing so if I try and link an existing user to Facebook as follows: [PFFacebookUtils linkUser:[PFUser currentUser] permissions:nil bl...
common-pile/stackexchange_filtered
Android String Manipulation crashes activity I am trying to take a String and filter through it until I hit a comma. I have tried this two separate ways and both times my activity has crashed the entire application. Method 1: Bundle gotBasket = getIntent().getExtras(); String stringToSearch = gotBasket.getString("Path"...
common-pile/stackexchange_filtered
TYPO3 Flash Message Works But Has No Styling TYPO3 8.7 In my controller I've included everything I can think of: use TYPO3\CMS\Core\Messaging\FlashMessage; use TYPO3\CMS\Core\Messaging\AbstractMessage; use TYPO3\CMS\Core\Messaging\FlashMessageService; ... And following the documentation at https://docs.typo3.org/m/typ...
common-pile/stackexchange_filtered
Improving Project Quality vs Lowering Project Costs Is it possible to do both these things: To improve the quality of the IT services delivered To reduce the long term cost of service provision To improve quality you need to spend time or money. If you reduce costs, you reduce quality either directly or through increas...
common-pile/stackexchange_filtered
Javascript plugin and environment variables I was reading the documentation here https://developer.shopware.com/docs/guides/plugins/plugins/storefront/add-custom-javascript but cannot find a mention on how to make usage of environment variables in a javascript plugin. Currently I tried to put a .env file at the root o...
common-pile/stackexchange_filtered
grabbing parent records in sugarcrm what I have done? and what I need? I have created two module 1.invoice 2. payment there is one to many relationship between invoice and payment it means one invoice have many payment. for calculating payment I have used a logic hook in payment module. now I want invoice_id in...
common-pile/stackexchange_filtered
Three way relationship model I am working on a small movie database as a personal project. At first, I went with what I think is pretty standard as far as movie databases go when it comes to dealing with actors/directors/writers: Two main entities "Movie" and "People" with a bunch of M2M association tables, such as "M...
common-pile/stackexchange_filtered
too many input fields on a form I have a form which has about 15 fields a user has to input..I'm looking for a way to not scare the user's off. I wanna see if someone implemented forms with too many fields differently or if anyone has any ideas What kind of information you have? do you need ALL these fields? This i...
common-pile/stackexchange_filtered
How to use existing keras model in tensorflow.js I have Keras model which I have converted to tensorflow.js but could not load the model in javascript, what will be the steps for that? model.add(Embedding(vocabulary_size, seq_len, input_length=seq_len)) model.add(LSTM(256,return_sequences=True)) model.add(LSTM(128)) mo...
common-pile/stackexchange_filtered
Can I save the seasoning on my cast iron skillet or do I need to strip it and start anew? I have a Lodge 12" cast iron skillet that I have been cooking in almost every night for about 6 months. I recently scrubbed a little to hard and created a "bald" spot into he middle of my pan. I wanted to know if I can save it or ...
common-pile/stackexchange_filtered
How can compute monthly average price of an invoice in ORACLE (Varray&loop) I have a table for invoices and there are millions of data. In my table, there are invoices and their first and last dates for customers. My target is to compute monthly average price of the invoices. For instance i have: CUSTOMER_ID INVOIC...
common-pile/stackexchange_filtered
Online estimation of quartiles without storing observations I need to compute quartiles (Q1,median and Q3) in real-time on a large set of data without storing the observations. I first tried the P square algorithm (Jain/Chlamtac) but I was no satisfied with it (a bit too much cpu use and not convinced by the prec...
common-pile/stackexchange_filtered
How to deploy the outlook add-in project via Teams toolkit I'm new bee for Teams add-in dev. Thanks for help. It's fine to dev/debug the outlook add-in project with the help of Teams toolkit. but how should I deploy it? After running npm run build, the assets will be compiled into folder. But the manifest is manifest....
common-pile/stackexchange_filtered
Product of Compactly Generated and Locally Compact is Compactly Generated I'm trying to prove that if $X$ is compactly generated and $Y$ is T2 (Hausdorff) and locally compact then $X\times Y$ is compactly generated. First it is clear that since both $X$ and $Y$ are T2 then $X\times Y$ is also T2 and so the first condit...
common-pile/stackexchange_filtered
Textbooks to read after Armstrong Topology I just finished reading through Armstrong - Topology and I'm looking for a logical next step to keep going in learning more topology. I've taken courses in Real + Complex Analysis, Algebra, Geometry and others and am a third-year undergrad for reference. I'm considering Hatc...
common-pile/stackexchange_filtered
Upload File to Server in PHP Error I am uploading a file to server using HTML form and creating a TXT file in server to write error logs but This process running well in my locaal system and in my other server but not in One Server where this operation has to work. The error message: Warning: move_uploaded_file(taskf...
common-pile/stackexchange_filtered
Custom Subject line for Outlook I'm working on automating an Excel database so by clicking a button, the macro will automatically send an email using the email, subject, and body for that specific row entry. For example, I want to press the button and the macro automatically sends out emails to the cells filled in Red...
common-pile/stackexchange_filtered
Calculate item count and return as column I've a sql server 2014 table named Machines with this items ID || ProjectName || MachineTypeID || MachineName ---------------------------------------------------------------------- 1 || project1 || 1 || m1 1 || project2...
common-pile/stackexchange_filtered
Automated email to user-selected contact with copy of webform and uploaded docs (using CiviRules?) I'm using CiviCRM 5.41.2, CiviRules: Version 2.41, Drupal 7.87 I am trying to create a webform where the user submits a number of documents. They also select their region from a drop down list, triggering a conditional th...
common-pile/stackexchange_filtered
Github GraphQL API: How can I gather specific user's repositories? I'm trying to get repositories of user with login name "somelogin". It returns all repositories but I'm trying to get repositories owned by him only. Because new API uses GraphQL I couldn't did it. Currently I'm using: { "query": "query { user(login:...
common-pile/stackexchange_filtered
Insert div and automatically show scrollbar I'm new with front-end, and I want to know how to remove the scrollbar. Codepen example. Here doesn't show my chat. The div responsible for show is: <div id="chat-column-holder" class="responsive-column content-column"> I insert one div blue inside my web chat, and automati...
common-pile/stackexchange_filtered
Can i find the number of pages and size of a tiff file before uploading it? in my application Tiff, PDF and other image files are uploaded. I want to validate if selected tiff file size is less then 10mb and number of pages in it is less then 20 then upload it. Or simply show a prompt. Is this possible in any way? Plea...
common-pile/stackexchange_filtered
How To Display Current Login User Data On His User Dashboard From Database This code show current login username <?php echo $_SESSION['username'];?> As like above code I want to show other user details as. How code for it? Please tell me example code for "age, birthday, etc..." This is too broad a question. Surely th...
common-pile/stackexchange_filtered
Error with cursor in function I need to create Cursor in a function, but when I execute a function I got an error which is "insufficient privileges" on the table in the Cursor, this table is exist on another schema and I have all the privileges even the select. There is also a synonym for this table on my user, and whe...
common-pile/stackexchange_filtered
Volume of arithmetic quotients of symmetric spaces Now let $\textbf{G}$ be some connected semisimple linear algebraic group over a number field $F$. Let $G_{\infty}$ be $\textbf{G}(\mathbb{R}\otimes_{\mathbb{Q}} F)$. Let $K_{\infty}$ be a maximal compact subgroup of $G_{\infty}$. We fix an embedding $G\hookrightarrow ...
common-pile/stackexchange_filtered
Continue taking input in while loop in c. I've tried fflush I'm learning data structures in C and I need to take input from the user. I learned from searching other stackoverflow questions that I need to use fflush after I print something. The issue I'm having is when I type add it doesn't print anything until I break ...
common-pile/stackexchange_filtered
The Korean: value for string 'IDS_ERROR_1609' does not contain a legitimate value for table Error column Message I upgraded my projects from 2009 to 2016, and now one of them is throwing the following errors during compile: ISDEV : error -7354: The Korean: 한국어 value for string 'IDS__DatabaseFolder_ChangeFolder' does n...
common-pile/stackexchange_filtered
Is my answer missing credible references? I've answered a general and speculative question: How long should a person keep blood test results? with an equally general and hypothetical answer (except for a tiny point which I've edited.) Yet - a commenter says my answer lacks credible references. Is it? That is, did I mak...
common-pile/stackexchange_filtered
How to instantiate a generic base class in derived class in C++/CLI? I am new to generics. My derived class need to pass the generic type to base class. My derived class itself doesn't need generic type. class A { public: }; generic < typename T> public ref class Base { public: T m_Instance; void Hello() ...
common-pile/stackexchange_filtered
Run TransformWebConfig on remote server (Microsoft.Web.Publishing.targets) I would like to build packages on a jenkins server without Visual Studio installed there. I was able to copy MSBuild.Community.Tasks.targets locally and run these task but cannot run TransformWebConfig even after copying tasks and targets from C...
common-pile/stackexchange_filtered
Determine if message received through NSURLConnection is complete? I'm using NSURLConnection's connection:didReceiveData: method to intercept incoming data, sent through the Twitter streaming API. Sometimes I notice that the data, such as the JSON dictionary of a tweet, is incomplete, and will usually be finished in th...
common-pile/stackexchange_filtered
Format MySQL code in Markdown/Macdown editors I'm trying to find out which is the smartest way for render some pieces of MySQL queries with Markdown/Macdown editors. I have tried to apply 4 spaces with ˜˜˜sql markup before the query code snippet but it seems not working well because it doesn't show code highlights. See...
common-pile/stackexchange_filtered
Jquery animation for exchanging the position of two elements I have two elements whose position and size I am trying to exchange on click of the second element only <div id="card-1" class="1"> Some Content for 1 </div> <div id="card-2" class="2"> Some Content for 2 </div> using jquery path js $(document).on('...
common-pile/stackexchange_filtered
hide/remove header and footer How I want remove header and footer in SSRS for the last 6 page. Thank You Please see How to create a Minimal, Complete and Verifiable example You cannot conditionally remove the footer or header. The only option is to control visibility of header and footer elements based on page number...
common-pile/stackexchange_filtered
Where does the verbal form しとく come from? In a manga I am currently reading, one of the character exclaims: 安心しな。秘密に しとく から。 The general meaning of the second part ("I'll keep it a secret") is quite obvious, and it seems that "しとく" (ostensibly derived from し, with a suffix appended) has more or less the same meaning ...
common-pile/stackexchange_filtered
How to make an entire <div> selectable? I've seen a couple posts about making an entire div clickable, but I'm looking to make it selectable. What I have is a php while loop that displays a table based on user entries into a mySQL database. That code looks like this: <div class='tracksub'> <div class='headname'>...
common-pile/stackexchange_filtered
How to save and use value of cookie in Gatling? I am relatively new to using Gatling for load testing and all aspects are still not quite clear. The testing scenario involves capturing a cookie value, which can be: 2, 4, 6. I used the following: http("User generation") .get("url") .check(headerRegex("Set-Cookie", """st...
common-pile/stackexchange_filtered
How to pass array(multiple column) in below code using pyspark How to pass array list(multiple column) instead of single column in pyspark using this command: new_df = new_df.filter(new_df.color.isin(*filter_list) == False) eg:- I used this code for removing garbage value(#,$) into single column filter_list = ['##', '$...
common-pile/stackexchange_filtered
VBA macro takes too long to execute This very simple macro is taking 93 seconds just run through 55 iterations. I also tried it as a for next loop, same result. Dim thedate As Date Dim current_cell As Long Dim f As Single f = Timer() current_cell = Range("e65000").End(xlUp).Row thedate = Range("e" & current_cell).Va...
common-pile/stackexchange_filtered
Files deleted from SD card are restored after restart I use my sd to watch movies, everything was working fine, suddenly every time I reboot my tab the deleted files are back in the sd card. I tried to format and still same issue, the deleted files are always coming back. I tried many apps, they seems to delete the fil...
common-pile/stackexchange_filtered
Is there a LGPL/Apache/BSD Python library for rendering modern HTML and Flash with a transparent background on Windows,Mac,Linux? I'm looking for a Python library that's suitable, with DOM access too. I don't mind if the flash transparency doesn't carry over. PyQT's license isn't compatible with the project, and PySide...
common-pile/stackexchange_filtered
jQuery ready function not working Chrome, Opra and IE all show the first alert, but do not show any other alert when clicking on the button. <div id="contact-container" style='display:none'> <div class="sendConfirmation"> <div class='contact-top'></div> <div class='contact-content'> <h1 class='contact-t...
common-pile/stackexchange_filtered
Is it true that only unstressed words in a sentence, which have H at the beginning of the words, will be dropped in American English? Is it true that only unstressed words in a sentence, which have H at the beginning of the words, will be dropped in American English? Off course, these H words will not be the beginning...
common-pile/stackexchange_filtered
How to create the back slash path for file system sink in ADF copy activity? I am trying to write a csv to a windows file system sink using this design while previewing the csv delimited text, it's showing fine but output of look up comes like { "firstRow": { "file_name": "file_TEST.csv", "begin_d...
common-pile/stackexchange_filtered
Experimental DevMode arguments in IntelliJ IDEA launch configuration I cannot use all the devmode parameters in IntelliJ IDEA launch configuration. Because if I add, for instance, -XdisableCastChecking or -XdisableClassMetadata I get the following output in console: Connected to the target VM, address: '<IP_ADDRESS>:55...
common-pile/stackexchange_filtered
Flutter: This requires the 'non-nullable' language feature to be enabled Getting error in MyApp constructor const MyApp({Key? key}) : super(key: key); This requires the 'non-nullable' language feature to be enabled. Try updating your pubspec.yaml to set the minimum SDK constraint to 2.12.0 or higher, and running 'pub...
common-pile/stackexchange_filtered
小手先で済ませるよりは結局早く終わるだろうと、分解しつつ片っ端から手をつけていったら、完全にバラしてまた組み直すような真似をしていた While taking a look at his bicycle the protagonist said. つい気になった部分を、小手先で済ませるよりは結局早く終わるだろうと、分解しつつ片っ端から手をつけていったら、完全にバラしてまた組み直すような真似をしていた。 Regarding the parts I got interest in, thinking it's better to finish it early rather than to finish it superficia...
common-pile/stackexchange_filtered
Java Stream to Array after mapping I have the following Code which is a boiled-down version of something I've stumbled upon: public class Transforming { static interface MyInterface<T> { void consume(T... toConsume); } static abstract class Mapper<T> implements MyInterface<String> { MyI...
common-pile/stackexchange_filtered
Chrome reopens previous tabs even after shutdown On my Nexus 7 when starting Chrome it reopens the previous tabs. I can understand doing this as I switch from Chrome to another running app and then back to Chrome, but not if I've shut the app down, and certainly not if I've rebooted the device. Yet for some reason Chr...
common-pile/stackexchange_filtered
Can I sync sharelatex with onedrive? I want to link sharelatex with my onedrive. However, I don't know how to make it. Hi, welcome. I don't know if you can, ShareLaTeX seems to offer only syncing with Dropbox and Github, and that requires the paid subscription: https://www.sharelatex.com/user/subscription/plans Share...
common-pile/stackexchange_filtered
Redirect Everything After slash (/) to another directory I'm sure this is an easy thing to do but I can't seem to find the answer! I'm trying to redirect https://carddav.example.com/MYUSERNAME to https://carddav.example.com/remote.php/subdomain/addressbooks/MYUSERNAME/contacts where MYUSERNAME can be anything. The curr...
common-pile/stackexchange_filtered
how to update the progress bar from tasks running concurrently I am try to bind parallel task to a listView that contains pprogressBars. I am using a limited scheduler that only allows specified maximum of parallel degree. So far it works OK most of the time but occasionally two tasks updates the same progress bar in t...
common-pile/stackexchange_filtered
Invertibility of an inverse problem Let $p$ be a scalar field $p: \mathbb R^n \to \mathbb R$. I encountered the problem of reconstructing an unknown density $p$ from its integral values $$I(t,z) = \int_{V_t} p(x) dS$$ along a one-parameter family $V_t$ of manifolds. I am interested in conditions $V_t$, so that the reco...
common-pile/stackexchange_filtered
How can I get this "search bar" working with jquery? I have a one page app that is separated by tabs, its pretty much a list of links coming from a database. I want to create a type of search or filter, I don't want to hit the database for it. From my understanding, something like angular could do this but I don't know...
common-pile/stackexchange_filtered
Delete Top 10 record from table I am newbie to database I want to delete top 10 records form table without any condition on column. Why do you want to do that? LIMIT and ORDER BY is my tip. Define "Top 10" if there is no "condition on column" please! Just execute this one-line command : DELETE FROM table LIMIT 10 ...
common-pile/stackexchange_filtered
Why is this battery level service failing to show notifications? I have to create a service that depending on the battery percentage shows a notification. The problem is that it does not work as it should. public class Battery extends Service { BroadcastReceiver batteryInfoReceiverLevel; Notification notificat...
common-pile/stackexchange_filtered
reshape numpy array, do a transformation and do the inverse reshape Here is my problem : I’m trying to do a operation on a numpy array after reshaping it. But after this operation, I want to reshape again my array to get my original shape with the same indexing. So I want to find the appropriate "inverse reshape" so th...
common-pile/stackexchange_filtered
Detecting a change in model I am using Django for a web application and I want to implement some code to detect changes in my model (and use that to update the model). I have fiddled with save: class MyModel(models.Model): def save(self, *args, **kw): if self.somevalue == 0: self.someothervalue ...
common-pile/stackexchange_filtered
React Component not updating even after duplication of state in Redux reducer Context The goal is to have a component with a key name being react-rendered in App.js when I press a specific key, registered in another component. The information is being passed thorugh a redux managed state. The problem It's simple : I'm ...
common-pile/stackexchange_filtered
How do I only get future dates only instead of future and past dates? So this is the issue that I'm facing. Currently I'm running into an issue with a piece of my code. What I'm looking for is to only grab things that haven't reached a specific end date and if it's already ended do not grab, but currently it's grabbing...
common-pile/stackexchange_filtered
How to query rows with distinct column values grouped by date I have a query that counts (using SUM) separated groups depending on a column value, and then groups them by months. I think a better explanation would be to share the concept. Consider this table (myTable): Id ItemID Color CreatedDate ---...
common-pile/stackexchange_filtered
ORDER BY clause to sort by proximity So, I'm working on a search form for my site. I've run into a road block. Seems others have too but I've been unable to find an answer for my question, at least one that I understand. I found a PHP function online that grabs up all the zip codes within a specified radius. I edited t...
common-pile/stackexchange_filtered
Error OJS users and roles error "The current role does not have access to this operation" within OJS when I try to admin the users and roles I got the alert "The current role does not have access to this operation." I'm not able to make changes or update modules. I'm logged with the admin user, the version is OJS 3.2.1...
common-pile/stackexchange_filtered
Linq: Method has no supported translation to SQL - but how to dump to memory? I have a Linq query that reads from a SQL table and 1 of the fields it returns are from a custom function (in C#). Something like: var q = from my in MyTable select new { ID = my.ID, Amount = GetAmount(ID...
common-pile/stackexchange_filtered
Rails Streamio FFMPEG taking a screenshot of the movie and upload with carrierwave I have got a Form where I can upload a movie. Its uploaded with carrierwave. In this process I want to Make a screenshot of the movie while uploading. How can I do this with Streamio FFMPEG. My code Looks like this at the moment. #Laed...
common-pile/stackexchange_filtered
JAVA XML remove Node - only first appearance is removed I have this method for removing a node from an XML file: public static void deleteElement(Document doc, String elementType, String tagName, String valueToCheck) { // <elementType> NodeList nodes = doc.getElementsByTagName(elementType); Syst...
common-pile/stackexchange_filtered
Smog test not passing I need to get my smog check to pass and when I went to the test center they said it wouldn’t pass because the “catalyst converter” is “not ready” (this is what they showed me on their monitor attached to my car) He said he could make me pass the smog test somehow for $$$ OR He suggested to do so...
common-pile/stackexchange_filtered