text
stringlengths
70
452k
dataset
stringclasses
2 values
Why do you need the + between variables in javascript? Why does this line work $('#body-image').css("background-image", 'url('+ backgroundimage +')'); but not this one $('#body-image').css("background-image", 'url('backgroundimage')'); or this one $('#body-image').css("background-image", 'url(backgroundimage)'); T...
common-pile/stackexchange_filtered
How to make Delphi Prism indexed properties visible to C# when properties are not default I have several Delphi Prism classes with indexed properties that I use a lot on my C# web applications (we are migrating a big Delphi Win32 system to ASP.Net). My problem is that it seems that C# can't see the indexed properties i...
common-pile/stackexchange_filtered
how do I send my date from datepickerfragment to another fragment I am new to android development. learning through big nerd ranch android 4e book this is an example from there, methods in the book are depreciated, so how do I sent data of date to another fragment They are using targetfragment technique which is deprec...
common-pile/stackexchange_filtered
Can I test code contained in module files? Generally a module file contains hooks and doesn't have any class nor namespaces. What I have studied so far is that PHP Unit testing is possible only when the code is contained in classes. Can I write unit tests for module files? See: https://drupal.stackexchange.com/a/26735...
common-pile/stackexchange_filtered
If there exists functions $f, g$ such that $f(g(x))=x$ can we say that $g(f(x))=x)$ as well? If there exists functions $f, g$ such that $$f(g(x))=x$$ can we say that $g(f(x))=x$ as well? I don't know but it apparently appears to hold true. Just to clarify, my doubt lies in the fact whether it ALWAYS HOLDS or not. Assu...
common-pile/stackexchange_filtered
Log4j2 Always writing to the same file after rollback I am trying to set up the log so that it will rotate every minute. The date and timestamp works, but once it fires the rollover, the new entry will be written in the previous minute log file. i.e. it did not create a new log file in the next minute. For example. In...
common-pile/stackexchange_filtered
How to add vertical scrollbar to Jpanel which is having SpringLayout in Java? I have below snippet of code in which TestClass is extending jPanel which is using SpringLayout, in which I'm not able to add vertical scrollbar. Could you please help me guys? public class TestClass extends JPanel { ...
common-pile/stackexchange_filtered
Trying to position text specifically with CSS, and allow it to move with the page <!DOCTYPE html> <html> <head> <style type="text/css"> p.titletext { font-family:"arial"; font-size:50px; position:relative; left:425px; top:10px; } </style> </head> <body> <p class="titletext">Hello World.</p> </body> </html> I'm aski...
common-pile/stackexchange_filtered
Find largest number divided by which each element of vector is integer This is my first question on math.stackexchange, and as you will notice, I am not a mathematician at all, and this may be a very simple question. Apologies. I also don't know if I used the right terms when asking the title, so here an example of wha...
common-pile/stackexchange_filtered
converting list to an array of fixed size Could anyone please explain me why this code snippet works? Object[] op = new Object[0]; ArrayList r = new ArrayList(); r.add("1"); r.add("3"); r.add("5"); r.add("6"); r.add("8"); r.add("10"); op = r.toArray(); System.out.println(op[3]); This prints out 6. I know that you c...
common-pile/stackexchange_filtered
The transformer core is running much hotter than our calculations predicted, Michael. The hysteresis losses should be manageable at this frequency. That's because you're using the static loop data, Steven. The actual loop area changes dramatically when you drive the material at higher frequencies. But hysteresis is h...
sci-datasets/scilogues
C++ function returning 'inf' instead of double I have the following simple code that computes the nth harmonic number. No matter what I try I keep getting an 'inf' value in the output. How is this possible, even if all my variables are doubles? #include <cstdlib> #include <iostream> using namespace std; double harmoni...
common-pile/stackexchange_filtered
Complex animations in Android (transitions, backgrounds...) I have in mind one simple application, but I would like to add some animations, transitions and so on. What technologies should I use besides Android SDK? Concrete example: I have an activity with an animated background in constant loop (some waves, fancy shad...
common-pile/stackexchange_filtered
Laravel Echo with Soketi Not Broadcasting Events - Configuration Issue? I want to trigger an event when a user's feed (of articles) is being updated. When the feed is updated, a FeedGenerated event is being broadcasted, and I would like my front-end to catch the event to allow user to manually refresh his feed. The Fee...
common-pile/stackexchange_filtered
Why doesn't the Unix command work in the Perl script? I want to extract part of a text file starting at a certain pattern and store it in another file. My Perl script takes a single argument as the input text file. So far, I have: my $INPUT = $ARGV[0]; my $LINES_TO_DUMP = 4000; my $startline = `egrep -n "^PATTERN" $INP...
common-pile/stackexchange_filtered
Embedding depending on URL I am trying to do something that seems as if it should be simple but it's baffling me! I have a template page that needs to embed something different depending on the URL. There are three possible cases. Case one is that segment_2 is blank. In this case I need to embed option A. Simple enoug...
common-pile/stackexchange_filtered
How do I restrict network access to LAN for visitors How do I restrict network access to LAN for visitors? In my organization's premises any outside visitor can come and connect to the LAN ports in our meeting rooms. We have seen that they are able to ping internal systems. How can I prevent this issue? The solution r...
common-pile/stackexchange_filtered
golang: cannot recover from Out Of Memory crash Under certain circumstances, calling append() triggers an out of memory panic and it seems append() itself doesn't return nil. How could I avoid that panic scenario and show to my user "Resource temporary unavailable" ? Best regards, You can't. If the runtime can't alloc...
common-pile/stackexchange_filtered
How do I receive SNMP traps on OS X? I need to receive and parse some SNMP traps (messages) and I would appreciate any advice on getting the code I have working on my OS X machine. I have been given some Java code that runs on Windows with net-snmp. I'd like to either get the Java code running on my development machine...
common-pile/stackexchange_filtered
Looking for Zigbee and Microcontroller Looking for Zigbee and Microcontroller - Selection What series Zigbee wireless should I get? SAM R21 Xplained Pro for MUC to connect some sensor and zigbee. Wireless adapter should be something special? This's my first project so I have a lot to learn. Thank you all. First pro...
common-pile/stackexchange_filtered
Java - How to write my own exception which looks for a paticular error Ive seen other questions on here that ask how to impliment your own exception but dont specify how to check for an exception. What i mean by that is, for example I want an exception to occur when a number entered is the number 10. How would I write ...
common-pile/stackexchange_filtered
How to query a user by username on controller level? How to query a user by username on controller level? In twig I can do: {% set user = craft.users.username('username') %} How to do that in controller? Thank you for your help. Query for it like use craft\elements\User; $user = User::find()->username('username')->o...
common-pile/stackexchange_filtered
How should variable data related to a point be stored in a database table? I've been having a bit of trouble understanding how a dataset is built/managed for GIS applications. Over the past few weeks (part time) I've been trying to understand the basics of GIS, and how it works with the likes of GeoServer, QGIS, etc......
common-pile/stackexchange_filtered
Do 30% of seniors get a heart attack each year? I saw an ad somewhere that claimed 30% of seniors die each year from heart attack. This sounds way, way too much. Is it really true? Not quite, but 1 in 4 deaths every year (in the USA) are due to heart disease. Sounds like you misunderstood the advert. Can you link to ...
common-pile/stackexchange_filtered
Implementing Completion Block swift I have implemented completion block which has a logic error. I want when the checkOutBtn is clicked checkFields is triggered first to check if all the text fields is not empty before it triggers the addingDeliveryAddress() method to insert into the database before performing the ses...
common-pile/stackexchange_filtered
I2C (TWI): Hold SDA-line low by Slave when line has resistance between Master and Slave Greetings to everyone! The schema in brief: Located at device 1 Located at device 2 Master SDA --------------- <physical connector> --------------- SDA Slave According to I2C specifications: The Sl...
common-pile/stackexchange_filtered
What evolutionary reason is there for having the urinary duct and reproductive organs so close together? As the old joke goes, "God must have been a civil engineer. Who else would put a waste facility straight through a recreational area?" But maybe it wasn't God. Is there any evolutionary reason (or background for) ha...
common-pile/stackexchange_filtered
sound volume settings doesn't do anything I installed Ubuntu the other day, and I am quite new to it. I've noticed that the sound volume setting at the top right hand side of the screen doesn't affect the volume of my media players (it may affect system sounds but i haven't really noticed any difference either). I turn...
common-pile/stackexchange_filtered
Ionic capacitor Facebook login problem creating the facebook app step I'm trying to add the Facebook login on my Ionic Capacitor Firebase app but i'm having a lot of problems creating the app on facebook developers site and associating it with my app, now i'm trying only with Android platform. The problem is that it se...
common-pile/stackexchange_filtered
How can I calculate n-th permutation (or tell the lexicographic order of a given permutation)? This question has two parts, though since I'm trying to compe up with a Prolog implementation, solving one will probably immediately lead to a solution of the other one. Given a permutation of a list of integers {1,2,...,N},...
common-pile/stackexchange_filtered
traveling salesman without return and with given start and end cities I am looking for the name of the following problem: traveling salesman problem (visit each city exactly once) but without returning to the start city and with visiting a given city at the end. In other words, I would like to specify the start and end...
common-pile/stackexchange_filtered
javascript minus sign in variable I've got an XML-file. After converting it to JSON I want to access some content within. This was possible. However, some variable within the JSON contain a - (minus sign). When I try to access it, Javascript interpret this as a calculation. Is the only way to workaround this to replace...
common-pile/stackexchange_filtered
Django contentType and read only database a newbie question I have a Django project with two applications core and nagios each with its model I have two database connections default and nagios The nagios database is read only when I use python manage.py syncdb this error appears Table 'nagios.django_content_type' does...
common-pile/stackexchange_filtered
TestNG - Read custom annotation details Requirement: Read custom annotation details and generate report for all test classes of all suites. Tried Solution: Implemented custom listener using ITestListener. But don't see direct way to get custom annotation details used as part of test methods apart from below way. @Overr...
common-pile/stackexchange_filtered
How to relate these two definition of sheaf of regular function In Gortz and Wedhorn's Algebraic geometry book the sheaf of regular function on $U$ is defined as : Definition 1.39. Let $X$ be an irreducible affine algebraic set and let $\emptyset \neq U \subseteq X$ be open. We denote by $\mathfrak{m}_x$ the maximal id...
common-pile/stackexchange_filtered
Use outer class in my main.cpp I'm using other's class for generating delaunay triangle. Its class has two files: VoronoiDiagramGenerator.h and VoronoiDiagramGenerator.cpp. It is all encapusulated into a class. I want to call the class method in my main.cpp file, so I should include the VoronoiDiagramGenerator.h file...
common-pile/stackexchange_filtered
ActiveRecord::HasManyThroughOrderError for the has many through association We are upgrading the Rails version from 5.0.6 to 5.1.4 I have the following code : class Profile < ApplicationRecord simple_roles has_many :profile_roles has_many :roles, through: :profile_roles end class ProfileRole < ApplicationRecord ...
common-pile/stackexchange_filtered
php errors are not being shown despite display_errors being on My problem is that I have a site, which isn't being shown and when I get rid of my php code it is shown, but there are no php errors being shown at all. Based on answers to other questions I've tried all of these solutions: ini_set('display_errors', 1); ini...
common-pile/stackexchange_filtered
Condition if element exist still continues even if the element is not existing in Selenium Python I have this code that if the element exists, it will print the innerHTML value: def display_hotel(self): for hotel in self.hotel_data: if hotel.find_element(By.CSS_SELECTOR, 'span[class="_a11e76d75 _6b0bd403c"]...
common-pile/stackexchange_filtered
Powershell apply verbosity at a global level Imagine if you have a script containing a single line of code like ni -type file foobar.txt where the -verbose flag is not supplied to the ni command. Is there a way to set the Verbosity at a global PSSession level if I were to run this script to force verbosity? The reaso...
common-pile/stackexchange_filtered
How to add a class to body element if it's a frontpage in WordPress? last days I have been writing my own WordPress theme, but I run into another problem. These times I have no clue, how to make it possible. I would like to add a class to every frontpage on my website. So if a single page becomes a frontpage, it will g...
common-pile/stackexchange_filtered
Mesh is going through random and erratic deformations that only show up when rendering There appear to be some vertices that are suddenly jumping around all over the place. The weird part is that this only happens in render and not in the viewport. It also only occurs when I'm using the cycles render engine and not eev...
common-pile/stackexchange_filtered
Generate random symmetric matrix with largest eigenvalue approximately 1 My goal is to generate a positive (entry-wise) matrix $P\in \mathbb{R}_{>0}^{N\times m}$ and then to set $S=PP^T$ such that the largest eigenvalue of $S$ is $\approx 1$ (or equal). Note that if $y$ is a row vector then $ySy^T=(yP)(yP)^T=\|yP\|^2 \...
common-pile/stackexchange_filtered
Why Exception class isn't abstract? Once all Exceptions that can occur in our program are from specific concrete sub-classes of Exception class or Error class, then why Exception class isn't defined as abstract? because you can throw new exception :) Your statement is not quite correct. All throwable exceptions are...
common-pile/stackexchange_filtered
Custom Vision: Out of upload quota I have two projects on the F0 tier. This morning they both will not let me upload additional images 150 training images uploaded; 0 remain and 1162 training images uploaded; 0 remain The documenation says the limit should be 5,000. https://learn.microsoft.com/en-us/azure/cognitive-s...
common-pile/stackexchange_filtered
causes of Python IOError: [Errno 13] Permission denied When attempting to write a file, I can get this same error when any of following conditions applies: The file exists and is marked read-only. I don't have write permission for the folder and therefore cannot create a file. The file is already open in another proce...
common-pile/stackexchange_filtered
Can I use xpath (in lxml) to find the names of tags not known at the start? I have some xml files I am trying to process. Unfortunately I do not have full access to all of the different elements that constitute all of the possible trees so for example I might have a document that is structured <typeOfBook> <isMyst...
common-pile/stackexchange_filtered
Vorto Dashboard not displaying the device model while running the vorto dashboard im getting the following error JWT expired, getting new Token Wed Aug 26 2020 07:38:56 GMT+0100 (BST)... StatusCodeError: 401 - {"status":401,"error":"gateway:authentication.failed","message":"Multiple authentication mechanisms w...
common-pile/stackexchange_filtered
Pandas - How do I add all my dataframes to a dictionary I have multiple dataframes df1, df2, df3 etc., The dataframes have no relationships with each other. Therefore, I am not looking to Append/Join/Merge them and put them as a single dataframe inside a dictionary. I want to create a dictionary that encloses these d...
common-pile/stackexchange_filtered
how to upload an image in comments? i have a small form in my blog detail view and it has a name,last name,email and an image field. the first three work fine but when i add the imagefield in the form, the form wont save from the page but it works from admin page. this is my views.py: def campaign_detail_view(request, ...
common-pile/stackexchange_filtered
Cast a shadow with HDR world lighting? I have quickly created a bed in Blender and I'm using HDR lighting on the World node in Cycles, is it possible to create a shadow underneath the bed without adding more 'light' to the object? So basically, the bed looks exactly like the below but it has shadows cast underneath / ...
common-pile/stackexchange_filtered
getElementsByTagName doesn't work I have next simple part of code: String test = "<?xml version="1.0" encoding="UTF-8"?><TT_NET_Result><GUID>9145b1d3-4aa3-4797-b65f-9f5e00be1a30</GUID></TT_NET_Result>" DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); Document doc = dbf.newDocumentBuilder().pa...
common-pile/stackexchange_filtered
What is "fundamental" in physics? Sorry about the broad question. I'm still learning to frame the questions on Physics StackExchange. Currently researching the nature of interactions in philosophy. My question is: When physicists use the term "fundamental", what do they mean? In philosophy, most seem to claim that to...
common-pile/stackexchange_filtered
Why should we use DataTemplate.DataType When I am creating a Resource we are specifying the DataType inside it: <Window.Resources> <DataTemplate x:Key="StudentView" DataType="this:StudentData"> <TextBox Text="{Binding Path=StudentFirstName, Mode=TwoWay, UpdateSourceTrigger=PropertyChange...
common-pile/stackexchange_filtered
How do I run my XBOX XNA game without a network connection? I need to demo my XBOX XNA game in college. The college doesn't allow this type of device to connect to the network. I deployed my game to the Xbox and it is sitting in the games list along with my other games. It runs fine with a network connection but when i...
common-pile/stackexchange_filtered
How to handle RESULT_CANCELED state of registerForActivityResult in ViewModel I want to perform an operation on canceled state of registerForActivityResult in ViewModel from the MainActivity. override val resultLauncher = registerForActivityResult(ActivityResultContracts.StartActivityForResult()) { result -> ...
common-pile/stackexchange_filtered
Class within structure I want to define the object of a class within a structure and access function members of the class. Is it possible to achieve this? With the following code I am getting a segmentation fault at ps_test->AttachToInput(2145);. I can't figure out the reason, everything looks correct to me: class test...
common-pile/stackexchange_filtered
Editing files locally with Vagrant Is it possible to edit files using non command-line editors, such as Notepad++, with Vagrant?  If so, how would it be done? If your editor can do that, it is possible to edit code on your box via SSH: :e scp://user@host//some/directory/ in [G]Vim, use the built-in SSH plugin in Note...
common-pile/stackexchange_filtered
Jasper - No secret found for "XXXXX" key in "net.sf.jasperreports.data.adapter" category We use jasper with java 1.7 for report generation. It works fine with Java 1.7 version. Gets the below specified exception after java version updation to Java1.8. Issue No secret found for "XXXXXX" key in "net.sf.jasperreports.data...
common-pile/stackexchange_filtered
Rails searches the wrong database for model data when using multiple databases I am building an application in Rails which requires me to access multiple SQL databases. The resources I found online suggested I use ActiveRecord::Base.establish_connection, however, this seems to interfere with my site's models. After con...
common-pile/stackexchange_filtered
PHP - preg_replace_callback function I have a preg_replace_callback function and when i open my webpage, i get the following warning: Warning: preg_replace_callback(): Requires argument 2, 'stripslashes(strstr("\2\5","rel=\class=") ? "\1" : This is my function: function ace_colorbox_replace($string) { $patter...
common-pile/stackexchange_filtered
A Strange Sequence This puzzle is taken from a French bestseller I read years ago. The solution is much simpler than it looks... Find the following line in this sequence : 1 1 1 2 1 1 2 1 1 1 1 1 2 2 1 3 1 2 2 1 1 An old question, but here's a variant: what starting sequence can go the most steps before reaching a l...
common-pile/stackexchange_filtered
Google Colab recent error: OSError: libcudart.so.10.2: cannot open shared object file: No such file or directory I was successfully running the PyTorch Geometric Graph Classification popular example Google Colab notebook event last week: https://colab.research.google.com/drive/1I8a0DfQ3fI7Njc62__mVXUlcAleUclnb?usp=shar...
common-pile/stackexchange_filtered
How to read the file line by line having matching string into list I want to read a given file line by line and print the lines with matching string and append them into a list. Hello, welcome to Stack Overflow. Please read https://stackoverflow.com/help/how-to-ask and https://stackoverflow.com/help/mcve with open(fi...
common-pile/stackexchange_filtered
SAP HANA : Input parameter filter value '*' issue I want to introduce a problem that we are facing in our project regarding Input parameter filtering issue. Problem: We have 5 input parameters in our SAP HANA view with default value ‘*’ to have the possibilities to select all values. Now when we want to select data fro...
common-pile/stackexchange_filtered
How do I asscociate a payment transaction with a user while consuming the MPESA Express (STKPUSH) api v1 I am using the MPESA-Express also called the STK push api V1 to receive payments from my clients. To get the customer paying, I am looking for the PhoneNumber value in the results body of the response if the payment...
common-pile/stackexchange_filtered
Is there a word for this semi-continuity property? Let $f \colon \mathbb{R} \to \mathbb{R}$ be a function. Recall that $f$ is upper-semicontinuous if $$ \text{for any } x \in \mathbb{R}, \quad f(x) \geq \inf_{\varepsilon > 0} \sup_{|y-x| < \varepsilon} f(y). \tag{$\dagger$}$$ Note that if $g \colon \mathbb{R} \to \math...
common-pile/stackexchange_filtered
Nexus 7 Android Java VideoView, Can't play this video i tried to stream a video on my nexus 7 (android 4.2) with the videoview lib, but my nexus 7 displays "Can't play this Video" when i start the app, hope you can help. my sourcecode: package com.test.prog; import android.app.Activity; import android.net.Uri; import ...
common-pile/stackexchange_filtered
Battery won't hold a charge. 2001 Ford Mustang 2001 Ford Mustang V6. Bought brand new battery in Nov 2013. I tested the core of the alternator at the same time as buying the battery and it tested good. I also switched out a relay in the engine to see if that would help. I can jump start the car but it still will not h...
common-pile/stackexchange_filtered
Emailing attachments with SMTP Relay I currently have one server relaying emails to one main mail server, but when I try to mail something with an attachment, it comes up as: Content-type:text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Email message Content-Type: application/octet-stream; name="test.pdf" Cont...
common-pile/stackexchange_filtered
multiplier to the width and height in objective-c How to give multiplier to the width and height of the UIImageView . I need to add the constraint to the image with have a height of 200*400-1x,400*1600-2x .I have set the constraints in the 12.9 iPad . Please check this link . https://stackoverflow.com/questions/35...
common-pile/stackexchange_filtered
How to add a string to both sides of a found substring I have an input string: 10 birds have found 5 pears and 6 snakes. How can I put html tags around substrings found with a regular expression? For instance, I want all numbers to be bold, like this: <b>10</b> birds have found <b>5</b> pears and <b>6</b> snakes. ...
common-pile/stackexchange_filtered
Is double Q-learning redundant when using target networks? Generally speaking, the purpose behind target networks is to reduce the impact of current changes on the model. i.e. if I performed action a and got some reward r, I want to reduce the impact of this specific tuple on the model. When using double-q learning, I ...
common-pile/stackexchange_filtered
Apostrophes at the beginning of stanzas in Byron's "The Giaour" My question is about Byron's The Giaour and the opening apostrophe at the beginning of a stanza. For example: 'His floating robe around him folding, Slow sweeps he through the columned aisle; With dread beheld, with gloom beholding The rites that sanctify...
common-pile/stackexchange_filtered
pyparsing scanString with spaces not able to parse I am using below regex expression (with pyparsing), which doesn't give any output. Any idea what I am doing wrong here. >>> pat = pp.Regex('\s+\w+') >>> x = " *** abc xyz pqr" >>> for result, start, end in pat.scanString(x): print result, start, end if ...
common-pile/stackexchange_filtered
Mail not sent using gmail smtp Here I want to send mail using gmail smtp.But I shows error The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required on button click insted of sending mail. html <asp:TextBox ID="txtfrom" runat="server"><...
common-pile/stackexchange_filtered
How do I export a JSON file with morph targets from Maya? When I export my model from Maya using the Three.js exporter I can see no option to export morph targets. Here is what is shown in the 'Export Selection Options' window, When I export my model and open up the JSON file, the contents are as follows, I found the...
common-pile/stackexchange_filtered
Can't connect to postgres in docker with port mapping using sequelize I am running a postgres image in a docker container and am trying to connect to it from another container using docker-compose. When I use the standard port of 5432 I am able to connect fine, but when I try to use a nonstandard port along with a port...
common-pile/stackexchange_filtered
Why do universal properties require a unique isomorphism? I am a novice in the field of category theory, and one of the things I struggle to wrap my head around is the notion of universal properties. Precisely, I struggle to understand why universal properties all seem to be stated in terms of the existence of a unique...
common-pile/stackexchange_filtered
Unramified constituent of Weil representation of $U(2)$ Let $E/F$ be a quadratic extension of local field of characteristic zero. Let $\omega$ be the quadratic character of $F^{\times}$ associated to $E/F$ by local class field theory and $\gamma:E^{\times} \to \mathbb{C}$ be a unitary character whose restriction to $F^...
common-pile/stackexchange_filtered
Tablet Pressure with Python on Linux Is there a simple way to get the pen pressure data from a usb tablet using python on Linux? You can do it by reading input events on the input device node. I wrote some modules to do this. you can find it in the Pycopia project. The disadvantage of this is that your program must ru...
common-pile/stackexchange_filtered
Hook error in Route Container component using useParams I am using a route like this: import React from 'react'; import { useParams } from 'react-router-dom'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import AdminBank from 'views/Bank/Bank'; import CustomerBank from 'views/Custo...
common-pile/stackexchange_filtered
Getting the useful words from a word list I have the following strings: Over/Under 1.5 Over/Under 2.5 Over/Under 3.5 Over/Under 4.5 This is not Over/Under 1.5 Other text For me the valid texts are the following Over/Under 1.5 Over/Under 2.5 Over/Under 3.5 Over/Under 4.5 Over/Under X.X where the X.X is a number. How ...
common-pile/stackexchange_filtered
ConditionExpression for PutItem not evaluating to false I am trying to guarantee uniqueness in my DynamoDB table, across the partition key and other attributes (but not the sort key). Something is wrong with my ConditionExpression, because it is evaluating to true and the same values are getting inserted, leading to da...
common-pile/stackexchange_filtered
Align individual Div at the bottom of bootstrap col 1 So I was trying make Related box stick at the bottom and aligns to the height of the next bootstrap div which is the business card section The sort/filter divs should stay on top as they are sticky divs. They stick while scrolling. The structure looks like this: <d...
common-pile/stackexchange_filtered
Existence of a sub-module such that a certain isomorphism holds Let $R$ be a noetherian ring and $M$ be a finitely generated $R$ - Module. Prove that there exists $n\in \mathbb N$ such that there is a finitely generated $R$ sub-module $N\subset R^n$ such that $$R^n / N \cong M$$ Any ideas ? Maybe use the isomorphism ...
common-pile/stackexchange_filtered
"is normally not meant to ..." or "in not normally meant to ..."? Where to put the adverb normally in the following sentence. That is not normally meant to be offensive. or That is normally not meant to be offensive. Both are acceptable, with the first being, in my opinion, the more common form. The adverb "...
common-pile/stackexchange_filtered
How can I solve this Problem with bidirectional dependencies in Objective-C classes? Okay, this might be a very silly beginner question, but: I've got an ClassA, which will create an child object from ClassB and assign that to an instance variable. In detail: ClassA will alloc and init ClassB in the designated initiali...
common-pile/stackexchange_filtered
Save temporary PDF files in a USB flash from an external app Here's a function save_document(), that polls the pressing of a Extract PDF button in an external program and saves a tmp PDF file in a USB drive. import time import os import shutil def save_document(): print("\n\nPreparing to save the document...", en...
common-pile/stackexchange_filtered
Best practice for Native calls from C# I was wondering what are the best practice/design for calling external dependencies from my C# application? My application is distriuted as DLL that is used in other application. I have a class named OCRObject that i don't know if I should make it static or not. This is my code t...
common-pile/stackexchange_filtered
Radial Random Walk I'm trying to generate a spherical distribution of radial random walk points in 3D space. The following code works, but the random walk lines aren't radial. Why ? Where is my mistake ? MinSprite := 0.006; (* min radius of sprites *) MaxSprite := 0.03; (* max radius of sprites *) SpriteOverlap := 0...
common-pile/stackexchange_filtered
NetSuite web serices in C#, setting approvalstatus We've got a project going where we would like to be able to set a Purchase Order to being approved through web services. We cannot find how to do this and every PO created through our web service operations go in pending approval. supervisorApproval doesn't seem to do...
common-pile/stackexchange_filtered
Add Text to a TextField Inside A MovieClip AS3 I have been working on a project in Adobe Flash Pro CS5 and I am trying to add text to a textbox inside of a movieclip. I then want to add this movie clip to a scrollpane. I have this: The instance names are scrollpane = scroller movieclip = achievements textbox = progres...
common-pile/stackexchange_filtered
Why does this function take up a lot of memory overtime I'm trying to understand why does this small function after a reaches around almost 200,000 under about:memory tab it says that the devtools's total memory is: 1079408k? can someone explain why? var a = 0; (function loop(){ a++; console.count(); call = setTimeo...
common-pile/stackexchange_filtered
C exec, awk, not working #include <stdio.h> #include <stdlib.h> #include <unistd.h> #define MAXLINE 512 main(int argc,char* argv[]){ int k; for (k=0; k<=argc; k++) { if (k%2==0) { if (fork()==0){ FILE *fi; FILE *fo; int i; fi=fopen(argv[k], "r"); fo=fopen("temp.txt","w")...
common-pile/stackexchange_filtered
How do I upload using AWS S3 PRESIGNED URL as HTML? Currently, S3 PRESIGNED URL is being obtained through SPRING BOOT. I want to upload an image from FRONT by passing the URL in HTML. However, the CODE you have written now receives SignatureDoesNotMatch. MY SERVER CODE public String getSignedURL(String fileName){ Z...
common-pile/stackexchange_filtered
replacingOccurrences(of: " ", with: "") Not Working I have a text field where a user enters their phone number. When they hit the 'continue' button, the text in the text field is assigned to a global variable called phoneNumber. I then proceed to clean the string of any non-integer values such as '-', ')', and '+'. Whe...
common-pile/stackexchange_filtered
Question is on hold My question was put on hold because it is unclear. I thought it could happen because I have little familiarity with the subject, probably use the wrong terminology etc. Could you tell me what is unclear? Perhaps I was using the wrong forum? https://dba.stackexchange.com/questions/81128/using-cloud-o...
common-pile/stackexchange_filtered
Sculpt brush isn't drawing much detail I already subdivided a lot from the multiresolution modifier, and when I draw with the sculpt brush it doesn't sculpt details. What am I doing wrong? You need to either enable Dynotopo or subdivide the mesh with the modifier again. Does that do what you want? What exactly is ha...
common-pile/stackexchange_filtered
Is there a rigid dense linear order? Does there exist a dense linear order with at least two points that is rigid, in other words, has no nontrivial automorphisms? Ooh, I like this question. In this old paper I showed inter alia that $[0,1]$ has dense subspaces $X$ of cardinality $2^\omega$ with the property that $X\...
common-pile/stackexchange_filtered