text
stringlengths
70
452k
dataset
stringclasses
2 values
how to submit object with list of sub-objects from JSP to Controller? I have a class A having field of List of class B class A{ private String x; private String y; private List<B> list; } class B{ private string x1; private String y1; } In JSP, I have a form where there is input fie...
common-pile/stackexchange_filtered
Generate revision history with rcs-multi Is it possible to generate a page that collates all the revisions logs in multiple tex files with rcs-multi? And while trying to understand the example file, the line \rcsid{$Id: example.tex,v 1.2 2009/03/23 19:07:46 martin Exp martin $} gets a "File ended while scanning use ...
common-pile/stackexchange_filtered
Calculate an Average in RPN (Reverse Polish Notation) To calculate an average in reverse polish notation (RPN) is the following correct (assuming a-j are variables representing numbers): a,b,+,c,+,d,+,e,+,f,+,g,+,h,+,i,+,j,+,10,/ If it is correct, are there other ways that this could be expressed in RPN? It's much ea...
common-pile/stackexchange_filtered
Read file of any extension in android programmatically Just want to confirm that is it possible that when i click on file of any extension will open up with its compatible software in android phone or display me the list of software’s present in mobile which can open the file and if it didn't found any software it will...
common-pile/stackexchange_filtered
I want to round line items of orders and then sum the aggregate of the rounded values. Is it possible to round line items UP and then SUM them? Essentially the query works like this: Select Sum(Ceiling((Exp_Cart)*Exp_Qty) from Table_X where Item in ('3') I am receiving an error in my query and wondering if there is a ...
common-pile/stackexchange_filtered
how to launch different view controllers for different local notifications in ios 10 I am receiving multiple local notifications in my app at different times. I want to launch different view controllers for my app depending on the local notification received. I know about the launch options in didfinishlaunching and di...
common-pile/stackexchange_filtered
iOS Line spacing attribute on NSMutableAttributedString How can we set line spacing or line height on NSMutableAttributedString. I have tried with NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle defaultParagraphStyle] mutableCopy]; [paragraphStyle setLineSpacing:150] ; paragraphStyle.minimumLineHe...
common-pile/stackexchange_filtered
Business Card codelab layout I am on this part of the android dev course: https://developer.android.com/codelabs/basic-android-kotlin-compose-business-card?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-1-pathway-3%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs...
common-pile/stackexchange_filtered
Is using php destructor appropriate for displaying HTML? If a class is implemented that builds HTML for a page by constructing it and calling various methods, is it appropriate to define the display/echo part of the class within the destructor? Instead of having a explicit Class:displayHTML(); method, having the echo...
common-pile/stackexchange_filtered
Batch job for - textembedding-gecko-multilingual@latest on VertexAi from BigQuery table I am trying to create a batch job with textembedding-gecko-multilingual@latest with no success. After several failures of Failed to import data. Not found: Dataset he5311ce8b310161b-tp:llm_bp_tenant_dataset_2558528304743186432 was n...
common-pile/stackexchange_filtered
I am trying to deploy my website on Pythonanywhere.com but I having "ModuleNotFoundError". How do I debug? Error running WSGI application ModuleNotFoundError: No module named 'starclone' File "/var/www/wholes_pythonanywhere_com_wsgi.py", line 16, in application = get_wsgi_application() Do you expect a module called s...
common-pile/stackexchange_filtered
This problem of probabilities can be solved? "John and Peter are solving a math problem. Probability that John will get a correct solution is 1/8. Probability that Peter will get a correct solution is 1/12. Both solving independently. If both compute incorrectly, they receive same result with probability 1/1001. Both ...
common-pile/stackexchange_filtered
ZK Hflex not working when using MVVM and include approaches When I use Hflex property in a included page in a MVVM approach, it doesn't work. The problem happens when I include some page inside another, and this page has components whose sizes are controlled by hflex property. I already tried to force the rendering of ...
common-pile/stackexchange_filtered
Circuits for electric storage heating I have been looking at some flats in UK (apartments) which have electric storage heating. One flat has very old storage units, with two power supplies: one for the night (economy) rate, and one for the day rate. This I understand. The night circuit is independantly controlled by a ...
common-pile/stackexchange_filtered
Change UIPopover background I'm looking to change the popovers border. It's just a solid flat color, so no image required. Is there a property that I can tap in to, or will I have to subclass? Changing the look of a popover being shown via a UIPopoverController isn't supported. I wouldn't even try, as you may do a lo...
common-pile/stackexchange_filtered
How to instantiate a variable of forall in a hypothesis in Coq? I have two hypotheses IHl: forall (lr : list nat) (d x : nat), d = x \/ In x l' -> (something else) Head : d = x I want to apply IHl on Head as it satisfies d = x \/ In x l of IHl. I tried apply with tactic which fails with a simple hint Error: Unable to ...
common-pile/stackexchange_filtered
Jenkins CLI to install Jenkins plugins - error I'm trying to use Jenkins CLI to install a Jenkins plugin, however receiving an error. Plugin install command: java -jar jenkins-cli.jar -s http://<jenkins_ip>:8080/ -auth @/home/ec2-user/credentials install-plugin parameterized-trigger http://updates.jenkins-ci.org/downlo...
common-pile/stackexchange_filtered
Remove duplicates from ArrayLists I have an ArrayList of custom objects. I want to remove duplicate entries. The objects have three fields: title, subtitle, and id. If a subtitle occurs multiple times, I only need the first item with thats subtitle (ignore the remaining object with that subtitle). If you don't want ...
common-pile/stackexchange_filtered
Memcopy Instruction in Risc V I designed a Risc V 32-bit single cycle processor without pipelining for a project. We are given to implement a new instruction called "Memcopy". It copies an array of size N from one location to another location (N>1). But is it possible to implement this kind of instruction in a single c...
common-pile/stackexchange_filtered
Pycharm does not show if package is not import Maybe it's me did something wrong, my Pycharm cannot give underlines on questionable packages. For example, if you create a python file from scratch and only put one line as below. df = pd.read_csv('abc.csv') This will not give any red lines below 'pd' or give hitns on ab...
common-pile/stackexchange_filtered
Multiple Statements For The Ternary Operator Of PHP I'm wondering if I could use the ternary operator for something like this: var string = ""; if (something) { string = "foo" } else if (somethingElse) { string = "bar"; } else if (bla) { string = "pool"; } else if (xxxxx) { string = "coffee"; } else { string ...
common-pile/stackexchange_filtered
open specific view controller upon tapping local notification title says it all. i've went through a number of posts trying to put together a solution but to no luck.. i have a notification whose name i'm not sure of... let request = UNNotificationRequest(identifier: "timerDone", content: content, trigger: trigger) q1...
common-pile/stackexchange_filtered
JUnit4 @Test(expected=MyException.class) VS try/catch I'm pondering on exception handling and unit tests best practices because we're trying to get some code best practices in place. A previous article regarding best practices, found on our company wiki, stated "Do not use try/catch, but use Junit4 @Test(expect=MyExcep...
common-pile/stackexchange_filtered
C# WPF SelectionChangedEvent - reset selection - better options? I have a datagridview populated with items and I am using a SelectionChanged event to populate textboxes from that data when selected. If I make a selection, everything works. If I click elsewhere in the App and then come back to click the SelectionChang...
common-pile/stackexchange_filtered
Trim a HTML text in a div with CSS In order to display a list of news headers, I need a div of a fixed max-height. That div should cut-off the text if the text overflows the div, and finish with an ellipsis in case of the cutt-off... #lipsum { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; ...
common-pile/stackexchange_filtered
copy video to uipasteboard I have successfully able to copy or add the image to pasteboard by using following code: if (ver_float < 6.0) { UIPasteboard *pasteboard; pasteboard = [UIPasteboard generalPasteboard]; NSString *filePath =pathToImage; [pasteboard setImage:[UIImage imageWithContentsOfFile:fileP...
common-pile/stackexchange_filtered
LilyPond missing repeat bar end line New to LilyPond and trying to use it to transcribe some bagpipe music. In this score there are two sets of repeats, however it is not adding the repeat bar end to the first, only the second. Even if I try to force it with \bar ":|." it is just ignored. \score { \header { } { ...
common-pile/stackexchange_filtered
Convolution of functions with modified variables I come across with a convolution like this: $f(at+b)\ast\delta(t-k)$, and I am puzzled. I am wondering in general how to convolute two functions both with scaled/complicated variables, like $f(ax+b)\ast g(cx+d)$. What is exactly the formula for this convolution? At leas...
common-pile/stackexchange_filtered
BlackBerry:List Field-How to Highlight only the text instead of the whole field I have a list field displaying text, and I want only the text to display as focused when the field is selected. Instead of the whole field being highlighted in blue, I want only the text to be highlighted. I have found methods to change th...
common-pile/stackexchange_filtered
how can we apply masked language modelling on the images using multimodal models? How can we implement such a thing and get MLM scores? It might not be clear from the question what I want to say, but how can we apply masked language modelling with the text and image given using multimodal models like lxmert. For exampl...
common-pile/stackexchange_filtered
Is serial voting detection script run for meta-sites, too? I have noticed on one meta site a bunch of nice answer badges awarded to the same user more-or-less around the same time. This can be caused by something else, but nevertheless, it made me think whether serial up/down-votes occur at meta sites, too, and whether...
common-pile/stackexchange_filtered
Serializing Object containing BitmapImage This is a further question about this topic: How to use deserialized object? I have a Problem with some variables in my class, right now I just put [XmlIgnore] infront of the variables wich cannot be serialized, so the serialazation of the class works for now. My class looks l...
common-pile/stackexchange_filtered
Django model - dynamically decide which table to user according to model field I have a Django model, for the example, I will call it Book: class Book(Model): class Meta: db_table = 'book' i need dynamically to change 'db_table' according to book instance attribute for example: when id>100 choose 'book_new...
common-pile/stackexchange_filtered
Values in my dataframe are not the same as ones in my database table(R and MySQL)) I am getting tweet_id from a table in my database and storing them in a dataframe in r. The problem is that the tweet_id values are not being added correctly in dataframe. snapshot of my table: snapshot of my dataframe in rstudio: As y...
common-pile/stackexchange_filtered
Unable to get an ArangoSearch view working properly in ArangoDB I'm having trouble with ArangoSearch. Here is some dummy data that I have in a collection called things (for simplicity I have removed each of their "_id", "_key" and "_rev" properties): {"text":"eat a cookie"} {"text":"I like cookies"} {"text":"Timmy ...
common-pile/stackexchange_filtered
How clone duplicate existing project in SonarQube I have one Project in SonarQube with some history and some Confirmed Issues and I need split this project, because of two versions of source code, but I need the history and Issue changes in both projects. How to do this? It is possible somehow clone, duplicate existing...
common-pile/stackexchange_filtered
I want the string pattern aabbcc to be displayed as 2a2b2c I have somehow got the output with the help of some browsing. But I couldn't understand the logic behind the code. Is there any simple way to achieve this? public class LetterCount { public static void main(String[] args) { String str = "aabbcccddd"; ...
common-pile/stackexchange_filtered
How well does SharePoint support mobile devices? Has anyone experience of setting up MOSS 2007 to optimise for mobile devices? How can I get up to speed on support for mobile devices? What does Sharepoint offer out of the box? (would some kind person with rep add some tags e.g. mobile iphone pda) have a look at the re...
common-pile/stackexchange_filtered
Storing HTML in NOSQL Database? Is it safe/possible to store HTML pages in a NoSQL database like firebase for a page builder that users can edit? I want to store the whole HTML content (not including) js and HTML/BODY tags in as a sting in firebase. Which users can load to a client-side editor and edit. Storing just ...
common-pile/stackexchange_filtered
Retrieving value of element using HTMLAgility pack I am using HTMLAgility pack to parse html and then using xpath retrieve a table column with a specific class. HtmlAgilityPack.HtmlWeb web = new HtmlWeb(); HtmlAgilityPack.HtmlDocument doc = web.Load("www.url.com"); foreach (HtmlNode row in doc.DocumentNode.SelectNode...
common-pile/stackexchange_filtered
TFS Branching Advice I am new to Branching and Merging but I have been tasked with making future development on an application possible while still allowing bug fixes to production. Usually I am the only developer on the application unless I am on leave. I have watched a Pluralsight video on Branching and done some for...
common-pile/stackexchange_filtered
Texture Fading in SDL2 - Using SDL_image I can load an image in (png) no problem using SDL_image and also display it perfectly. What I would like to do though is gradually fade the image in from fully transparent to fully opaque. I have seen some tutorials mentioning SDL_SetAlpha but this is for use on a an SDL_Surface...
common-pile/stackexchange_filtered
Horizontal list with rounded corner background I would like to display the elements of a list (enumerate) horizontally. As I read I can achieve this by using the inline option. Furthermore I would like to highlight the items with a box that has a background color and rounded corners. As I understand I could achieve the...
common-pile/stackexchange_filtered
VS Code - How to change the line spacing This is how my code looks like in VS code. Please note the small yellow marking I made in the 3rd line. My code I want to reduce that space (again please check small yellow marking in the 3rd line). Tutorial code Basically, I want to reduce the size of whitespace allocated to ea...
common-pile/stackexchange_filtered
MVC5 Single Sign On with AD and Windows Auth I am Devloping a MVC5 Intranet Web Page and for Auth i want a single sign on with windows auth. What I have so far is, Configured Windows Auth in IIS and Configured Windows Auth in my Web.config For my AD I assume, I only need a Membershipprovider config in my web.config and...
common-pile/stackexchange_filtered
How Ejb object make associated entity bean restore the last content before passivation For example in this scenario : A client has reference to an EjbOBject which is associated to an Entity bean ,after long time without using this bean , container decides to passivate the bean and kick it to the pool. Making the Ejb no...
common-pile/stackexchange_filtered
Create tables and controller I want to create TODO List application. So I want to create an admin page, and a worker page. In order to do that, I need two controllers: rails generate controller Admins rails generate controller Workers now, I want to create two tables and use them in the controllers: first table will ...
common-pile/stackexchange_filtered
How to speedup for and if loop in R In my current project, I have around 8.2 million rows. I want to scan for all rows and apply a certain function if the value of a specific column is not zero. counter=1 for(i in 1:nrow(data)){ if(data[i,8]!=0){ totalclicks=sum(data$Clicks[counter:(i-1)]) test$Clicks[i]=totalclicks c...
common-pile/stackexchange_filtered
How to dynamically get value of input fields in ruby active admin form I have this form in rails and I am using active admin form to take inputs. I want to show the state_value input or zipcode_value input only on the basis of value selected in type_dropdown. active_admin_form_for('', :post) do |f| f.inputs do ...
common-pile/stackexchange_filtered
How to check which version of R a package supports I have tried to install the R package swiRcharts and received the following message: package ‘swiRcharts’ is not available (for R version 3.3.1) Where in the package files (available on GitHub) on from R console can I check which version of R the package was made fo...
common-pile/stackexchange_filtered
How to install libffi-dev on Mac OS X I am trying to implement micropython on unix, which requires libffi-dev. I installed in this way brew install libffi-dev. But it seems that there is no libffi-dev can be found. Is there any way to install libffi-dev on Mac os. Thank you. Try brew install libffi. If this worked y...
common-pile/stackexchange_filtered
Slow domain user logon after promotion of ADC to DC I had DC and ADC server of Windows 2016 R2 in a domain environment. The DC crashed and I promoted ADC to DC and shifted all five FSMO roles to new DC. After the crashed DC was removed from the network, the Users are facing very slow logins. It is taking 4 to 5 minutes...
common-pile/stackexchange_filtered
angular directives not working **Hello.html** html code of what i want to do by making a directive <script src="angular.min.js"></script> <script src="world.js"></script> <link rel="stylesheet" type="text/css" href="bootstrap.min.css" /> <body ng-app="myApp"> <record></record> </body> **world.js** i just make a d...
common-pile/stackexchange_filtered
Given one can change the sign of numbers, find Minimum Sum of array I came across this question in a coding competition- You're given an array of positive integers and are allowed to change the sign of any of the integers whenever you require. Write a program to calculate the minimum sum of this array. This sum should ...
common-pile/stackexchange_filtered
Field _id missing in toObject.transform in Mongoose I am using schema.toObject.transform in mongoose. My schema is really simple const nodeSchema = new Schema({ }, { toObject: { transform: function (doc, ret) { return { myId: ret._id, }; } } }); const Node = mongoose.model('Node', nodeS...
common-pile/stackexchange_filtered
Is term or whole life better? So this is all very confusing to me I don’t understand the difference and what I need. I am a 48 year old female of average health. One dependent child. Trust age is offering me 20k whole life for $47 mo . I keep seeing people say term is better and to invest the difference. What does that...
common-pile/stackexchange_filtered
Pointers based code giving Segmentation fault in CodeBlocks This is my code. I keep getting a segmentation fault at the end of code. All the things running fine but the segmentation fault comes at the end. I am trying to prepare checkers game and the first step is to initialize each piece with a symbol. This code tries...
common-pile/stackexchange_filtered
c# - Returning a JPEG in web api, cant delete file because it is being used by another process I am trying to retrieve a image from the file system and pass it's content through a HttpResponseMessage and then delete the image after. I can get the response to pass the image succesfully but cannot delete it because of th...
common-pile/stackexchange_filtered
How can mean value of a quantity $be$ an operator? In Laundau & Lifshitz Quantum Mechanics. Non-relativistic theory in $\S29$ a problem is given: PROBLEM Average the tensor $n_in_k-\frac13\delta_{ik}$ (where $\mathbf{n}$ is a unit vector along the radius vector of a particle) over a state where the magnitude but not t...
common-pile/stackexchange_filtered
@PostConstruct method init() is never invoked on a ManagedBean I'm still a beginner at JSF programming and I'm trying to do a little example to understand how it works. I'm facing the problem where the @PostConstruct method of a managed bean is never invoked (the instanciations in it are never made, and the println in ...
common-pile/stackexchange_filtered
Introducing FOREIGN KEY constraint may cause cycles or multiple cascade paths. in asp.net core when i was trying to create database tables using EF core it is showing error error is Introducing FOREIGN KEY constraint 'FK_PRDetails_PR_Prid' on table 'PRDetails' may cause cycles or multiple cascade paths. Specify ON DELE...
common-pile/stackexchange_filtered
Hide reputation and badges The greatest tension in this website is that StackExchange is designed to be "gamified", rewarding users who answer questions well with little positive reinforcements that they helped people. The prevailing notion is that this is to the detriment of MSE specifically, as nearly any question w...
common-pile/stackexchange_filtered
How to get nested relational models in laravel I have 3 models. Post Comment Reply The relation between the model: Post has many Comment Comment has many Reply I want to get all the replies of all the comments of a single post. Is there any query to get all the replies of a post? $post->load('comments.replies'); ...
common-pile/stackexchange_filtered
Swift 2.x to swift 3, XCode complaining error : 'String!' is not convertible to 'String' When migrating from Swift 2.x to swift 3, I have the error "'String!' is not convertible to 'String'" which appears on line self.cartItemController.textCombinationsToDisplayInCart[pCombinationsPickerView.combinationName as String]=...
common-pile/stackexchange_filtered
protect specific url with .htaccess I have a central script 'web' in the root of my site that handles everything. In the .htaccess the following lines tell appache to handle 'web' as a php file: <Files web> ForceType application/x-httpd-php </Files> The script 'web' splits the REQUEST_URI in parts so it can generate ...
common-pile/stackexchange_filtered
How do I display returned JSON from RESTful API call with JavaScript After parsing a JSON object, how do I display the returned data from a RESTful API call with vanilla JavaScript? Do I create HTML elements with the data and add them to the page or do I have hidden HTML elements and innerHTML the returned data then di...
common-pile/stackexchange_filtered
Prove $\arctan(x)$ can be estimated by $\frac{\pi}{2}-\frac{1}{x}$ when $x$ is large What I tried: Let $f(x)= \arctan(x)$, then by mean value theorem, $\frac{f(x)-f(0)}{x-0}=f'(a)$, where $0<a<x$. So $f(x)=f'(a)x=\frac{x}{1+a^2}$. I don't know where to go from here, and there is a hint to use $\frac{\pi}{2}- \arctan(x)...
common-pile/stackexchange_filtered
How to keep checkmarks from disappearing from TableView when scrolling I currently have a tableView that gets it data from a API that outputs JSON and allows the user to tap to add a checkmark accessory to the right side. The issue I am having is after tapping on a cell in a long list of records and scrolling that row ...
common-pile/stackexchange_filtered
c# copy file from textbox to selected directory I'm working with c# on wpf and running into a problem where I select some files and their filenames go into my my 'filespicked' textbox. I then have a button that is supposed to copy the files, the same ones that were selected in the textbox, to another folder. This butto...
common-pile/stackexchange_filtered
How django "Timefield" can be timezone aware without date? I want to make these fields timezone aware without date, default_start_time = models.TimeField(null=True, blank=True, default=None) default_end_time = models.TimeField(null=True, blank=True, default=None) so this value will show to the user based on activated...
common-pile/stackexchange_filtered
Integer goes garbage after iteration. struct pointer manipulation messed up other variables in memory I'm writing a library for Charlieplexed LED display (trying to write a common one actually). The library is working quite fine. In my arduino sketch, I'm using an integer to keep track of the LED, currently on. The int...
common-pile/stackexchange_filtered
How to suspend main loop processing in JavaScript until a key is pressed? I'm converting an old terminal-mode text game to JavaScript. The gameplay conversion is simple and nearly done. But a part of the UI -- getting user input -- is proving so difficult that I'm turning to the experts on StackOverflow for help. I hav...
common-pile/stackexchange_filtered
Android web view and html multiselect dropdown I have html page with multiselect drop down HTML Code. <select multiselect> <option>0 months</option> <option>12 months</option> <option>13 monhts</option> <option>14 months</option> </select> This is showed in android web view This shows first option(0 months) in labe...
common-pile/stackexchange_filtered
How to create another array set that guarantees prediction Card#0 Card#1 Card#2 Card#3 Card#4 1, 3, 5, 7 2, 3, 6, 7 4, 5, 6, 7 8, 9, 10,11 16, 17, 18, 19 9, 11, 13, 15 10,11,14,15 12,13,14,15 12,13,14,15 20, 21, 22, 23 17, 19, 21, 23 18,19,22...
common-pile/stackexchange_filtered
Why can't my GWT Editor see its custom sub editor when flushing? I have a custom GWT sub editor that I want to include as part of a working uibinder setup. All the behavior is in tact, and all the "normal" editors (Textbox, ListBox, etc.) flush properly to the pojo. But when I put the reference to the sub editor into...
common-pile/stackexchange_filtered
find out how many times does that inputed sign appear in the document In this program, I want print a document; count the lines and the number of a specific character you ask for in the input part. I want to find out how many times does that inputed sign appear in the document. But the program returns the same number ...
common-pile/stackexchange_filtered
Running a recorded script on command line with Jmeter gives Null Pointer Exception I record the test script using Blaze Meter and run it on GUI of Jmeter, it works fine. But the same script when running on Command Line gives Null Pointer. Why would this be the case? My second question is: Can I manipulate the Same Rec...
common-pile/stackexchange_filtered
How to disable creation of kv_json JSON field in Oracle NoSql from spring data jpa, and have all fields in entity as key-value pairs? Here is the spring data oracle nosql persistence model link: https://docs.oracle.com/en/database/other-databases/nosql-database/20.3/java-driver-table/persistence-model.html In the Stud...
common-pile/stackexchange_filtered
creating a grid of rectangles dynamically I wanted to create Conway's Game of Life. I read the Java 2d API, but the Graphics class only provides methods to drawRect() and fillRect() on the paintComponent of a JPanel. I mean that the rectangles cannot be handled individually as objects i.e. so that i can check which one...
common-pile/stackexchange_filtered
rigorous proof or reference request for nonlinear systems I used to Numerical Analysis by Richard L. Burden for my $3$rd year numerical analysis course. But the section $10$ (Numerical solutions of nonlinear systems of equations) wasn't cover rigorous proof or analysis for $(i)$ Fixed points for functions of several va...
common-pile/stackexchange_filtered
is it possible to have dynamic struct members dependent to another member in c# in this case a binary file is written with the file format based on a struct struct fileformat { struct mask { bool mem1present bool mem2present bool mem3present ...
common-pile/stackexchange_filtered
.NET 2.0 application on windows server 2008 fails I have installed my .NET 2.0 application on windows server 2008. Its a ASP.NET application. But when I type the service url I get the following error Compilation Error Description: An error occurred during the compilation of a resource required to service this request....
common-pile/stackexchange_filtered
using Process.Start in an IIS Website I have created an ASP.NET website using VB.NET. The functionality of the website generates a .bat file and saves it in a location - it then uses Process.Start(filelocation) to run the bat file. This works fine when in debug mode on my PC - but when I have uploaded the website on t...
common-pile/stackexchange_filtered
All PDFs default as a picture of ImageMagick Cinnamon Mint. All PDFs suddenly now open in default to a ghastly image of an 'ImageMagick' clown. i tried every one of your recommendations : Setting 'Document Viewer' as 'default' don't work, resetting system defaults don't work. i uninstaled 'ImageMagick' in terminal but,...
common-pile/stackexchange_filtered
Laravel Livewire: Jquery doesn't work in a livewire component I can use jquery in my view, but not in my livewire component. This is my livewire component where i want to use Jquery: \resources\views\livewire\search.blade.php <div> <h1 id="id">Test</h1> <script> $('#id').css("background-color", "red");;...
common-pile/stackexchange_filtered
Magento2 : How to add Observer for catch when new order placed I wanted to save the orders from magento2 to my local Database. I am planning to Create a module and add Observer to catch once a order is placed. I don't know much about the Events & observer, just gone through this link Please help me is there any Event...
common-pile/stackexchange_filtered
How to get scripts to work with phones and tablets I'm writing scripts for a google docs spreadsheet that run when cells are edited using the onEdit function. So far it performs things beyond what spreadsheet functions can achieve such as: Validates all data based on where they are entered Provides mechanism for prote...
common-pile/stackexchange_filtered
Is it possible to estimate real world objects relative height if I only have fundamental matrix with a uncalibrated camera I already get the epipolar lines and fundamental matrix from images taken by uncalibrated camera. Is it possible to know 2 real world objects relative height? I am thinking can it calculate by tria...
common-pile/stackexchange_filtered
Prevent User from committing to the same event twice I currently have a User model and a Event model. Right now a the current user can "commit" to an event. The method basically pushes the event on the user if they click the button_tag. I'm trying to figure out how to prevent a user from committing the same event twice...
common-pile/stackexchange_filtered
Why so many mounted filesystems on recent distributions? I've been using Linux on servers since about 1996 and I'm used to seeing something like this: $ mount proc on /proc type proc /dev/sda1 on / type ext3 /dev/sda2 on /usr type ext3 /dev/sdb1 on /home type ext3 (I've removed the "options" because they aren't releva...
common-pile/stackexchange_filtered
Loadbalanced website what about emails? Hi i have webshop and want to setup loadbalance with database on separate server, but what will happen when there is newsletter sendind mail. My modest idea is that those webserver wont know who is sent what and may happen to send multiple times? For example, WEB1 trigers sending...
common-pile/stackexchange_filtered
rotate camera up and down, left and right with pan gesture I want to rotate camera up or down and left or right to look around an object, (360 degrees view) with pan gesture using opengl lookat function, I use swift and Metal(in this case Metal = opengl es). here is the code: the lookat function(this function is in an...
common-pile/stackexchange_filtered
PHP unexpected return value I am using a class from somebody else and are getting an unexpected result. I already have an idea how to work around it, but I would like to understand why this happens. class Pay { public function checkStatus { $check[0] = "000000 OK" return $check[0] } } $status = $cart->che...
common-pile/stackexchange_filtered
c# visifire(charts) I have developed one silverlight application on .net framework and used visifire for charting i.e. getting updated through MS SQL database. The main thing is that when i am updating the database the data on chart are getting affected, but the look and feel of the chart is not happening smoothly duri...
common-pile/stackexchange_filtered
Within a monorepo (using Turborepo) is it possible to start dev and Storybook (lives in a child package) with a single command? In a dev environment instead of spinning up my monorepo first with npm run dev (which uses Turborepo) then cd'ing into a package where Storybook lives and executing npm run storybook, is there...
common-pile/stackexchange_filtered
Clear list of Complex object Type I have a search function in my application which gets me customers. Therefore I got an complex "Customer" object. So the list is of type Customer. This list is filled properly on button click. But when I want to clear the list on Button click a error is thrown in my browser console: T...
common-pile/stackexchange_filtered
Process to determine RAM compatibility Crucial.com has a database to identify the correct RAM for a PC. It indicted my project PC uses RAM specs: http://www.crucial.com/usa/en/pavilion-a1330n-series/CT509296 At these prices, I would be better off buying a new computer for my nephew. That being said, If I could pur...
common-pile/stackexchange_filtered
What is the difference between using Object.create() and using assignment operator? Here are a few examples. // case 1: var obj1 = {msg : 'Hello'}; var obj2 = obj1; obj2.msg = "Hi!"; //overwrites alert(obj1.msg); //=>'Hi!' // case 2: var obj1 = {msg : 'Hello'}; var obj2 = Object.create(obj1); obj2.msg = "Hi!"; //does...
common-pile/stackexchange_filtered
knp_paginator failed to open stream After updating to Symfony 2.6, pages using kn._paginator no longer load: An exception has been thrown during the rendering of a template ("Warning: file_get_contents(/Users/steve/dev/sites/virtual/newgt/ vendor/knplabs/knp-paginator-bundle/Knp/Bundle/PaginatorBundle/Resources/views ...
common-pile/stackexchange_filtered
Why does command up (⌘↑) from /Documents take me to /iCloud instead of /Users? In a fresh install of Mojave 10.14.2, the behavior of command up (⌘↑) in the Finder is odd... In a Finder window, (⌘↑) from /Documents takes me to /iCloud instead of to /Users as expected. When I option-click on 'Documents' in the finder w...
common-pile/stackexchange_filtered