text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
How to work with complex numbers in C without the complex.h library in a non-C99 compliant program?
I'm trying to create a Discrete Fourier Transform in C for a university project, which is a guitar tuner. The university basically forces us to use CodeVisionAVR because it works well with the ATmega168p they gave us. CV... | common-pile/stackexchange_filtered |
react native how to memoize inline function
I want to memoize a button if anyone click it.
I heard this creates a new Instance which is bad:
onPress={() => makeData('hello')}
So I should make it like this:
onPress={makeData}
But I have to pass a Parameter so I have to do this in the first example.
So what I can do no... | common-pile/stackexchange_filtered |
How to get range of dates that are representable/accepted by date(1)/mktime(3)?
On my modern 64bit Mac, the date 1901-12-14 is the earliest accepted by the following command:
date -ju -f "%F" "1901-12-14" "+%s"
I checked the source for the macOS date command here (Apple Open Source) and it is a failed mktime call that ... | common-pile/stackexchange_filtered |
Domain name suggestions
Note:
We are closing this domain naming thread. It is asking the entirely wrong question. See this blog post for details: Domain Names: Wrong Question
We're going to keep the name apple.stackexchange.com. But we WILL be setting up redirects from the more "popular" domains names. (e.g. seasonedad... | common-pile/stackexchange_filtered |
How to switch the views form address book to mailing view
This might be a trivial thing but I am new to xamarin/monotouch or iPhone/IOS development,
I am trying to make an application(sort of gallery+mail) in which I want to share the image.At longpress
it should open the contacts from where I can select the person f... | common-pile/stackexchange_filtered |
How to implement == or >= operators for generic type
I have a generic type Foo which has a internal generic class Boo. Boo class a property Value of type K. In a method inside Foo i want to do a boo.Value >= value Note that second operand value is of type T. while compiling i am getting following error:
Operator '>=' ... | common-pile/stackexchange_filtered |
Why is the computed property being updated even though I didn't specify its dependencies?
I have a schema structured something like this:
App = {};
App.Outer = Ember.Object.extend({
inner: null,
quantity: 0,
count: function () {
var self = this, inner = self.get('inner');
return self.get('... | common-pile/stackexchange_filtered |
How is the Jacobian linked to the determinant of a transformation?
I need to show that
if $(X,Y,Z)^T = A(x,y,z)^T$ then
$\dfrac{\partial(X,Y,Z)}{\partial(x,y,z)} = \det(A)$
I sort of understand the link between change in volume and Jacobians and determinants but I have no idea how to show this.
Any hints would be ap... | common-pile/stackexchange_filtered |
Why can't I set the default Ruby version in Ubuntu?
I'm trying to set my Ruby version to be 1.9.2, but I can't change it from the system Ruby installation. What am I doing wrong?
My terminal output is:
$ rvm list
rvm rubies
=> ruby-1.9.2-p180 [ i386 ]
$ rvm use default
Using /usr/share/ruby-rvm/gems/ruby-1.9.2-p180... | common-pile/stackexchange_filtered |
How to create nested JSON response using Node Js
I am using Node.js and My-SQL to create a rest API. I want my response like nested JSON object which will easy to read on my frontend. I tried with for loop, but it does not give me the proper result, is there any plugins available to format this response or is there any... | common-pile/stackexchange_filtered |
Start Google Maps for navigation not working when using longitude and latitude
I have my longitude and latitude values in my andoroid app and i am passing them to the url as the official android docs says, like so -
String query_string = "google.navigation:q=" +location.getLatitude()+","+location.getLongitude();
Uri... | common-pile/stackexchange_filtered |
Select two ranges, one immediately after another using regular expressions
Long story short, I'm trying to "clean up" a script file from a drawing program for playback. The program (ArtRage for iPad) will record all strokes to an XML script file that. You can then export this file and play back the entire drawing proce... | common-pile/stackexchange_filtered |
Renovate prevent query for local dependencies in maven
I have maven multi module project.
Parent pom.xml:
<groupId>com.group</groupId>
<artifactId>product-parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
Child pom.xml:
<parent>
<groupId>com.group</groupId>
<artifactId>product-parent</artifactId>
<vers... | common-pile/stackexchange_filtered |
Ubuntu 17.04 why chrome-remote loops back ubuntu default dekstop environment?
I have installed Ubuntu 17.04. For a while it worked great. Then I have installed a couple of packages which I don't remember. When I rebooted my laptop, I couldn't login from the default login desktop environment. Every time I try to login, ... | common-pile/stackexchange_filtered |
Prevent Logout on page refresh in React+Redux App
Logging out on page refresh in React + Redux Application, but if I store token in localstorage, then it works fine, but i don't want to store token in localstorage. Is there any other way to achieve it?
keep the token in Cookies. And pick the token directly from cookie... | common-pile/stackexchange_filtered |
Returning array to show in the html ANGULAR
I'm not sure how this is done in Angular.
i have this mapped item
currentSuper?: any[];
this.currentSuper = response.builder?.superintendents?.filter((x) => x.id ===
this.builderSuperintendentId);
response.builder.superindentents returns
[0:{id:'', firstName: '', lastNam... | common-pile/stackexchange_filtered |
Alternative ways to display available rooms in drop-down menu?
For some time now, I'm trying to generate a reservation form, where only available rooms are listed for the arrival and departure dates chosen in that same reservation form. Unfortunately, until now I didn't manage to do so.
I set out a question already on ... | common-pile/stackexchange_filtered |
AADSTS54005: OAuth2 Authorization code was already redeemed, please retry with a new valid code or use an existing refresh token
xamarin forms with office 365 authentification
the authentification works fine but lately i receive this error message :
AADSTS54005: OAuth2 Authorization code was already redeemed, please ... | common-pile/stackexchange_filtered |
What is the definition and purpose of a pre-amplifier?
I find in many places mentions of pre-amplifiers being used to boost audio signals prior to feeding to a power amplifier.
Wikipedia's article on pre-amps gives some hints at their usage, but it doesn't really explain why it would be necessary to have two amplifiers... | common-pile/stackexchange_filtered |
RemotingMultiClientsHelp c# code
I am making a remote desktop application. When I connect one client I can easy remoting but I cant connect more clients.
MyCode:
Server
void start()
{
try
{
URI = "Tcp://"+textBox1.Text+":6600/MyCaptureScreenServer";
chan = new TcpChannel();
ChannelServi... | common-pile/stackexchange_filtered |
Confusing Behavior with Array Initialization -- Processing (Java)
I'm encountering some confusing behavior when trying to create an array of certain length. The length is obtained by a file read in the function getTermNums. When I try to create an array of this size, my code runs in a strange order, my i values are s... | common-pile/stackexchange_filtered |
Possible? Internet connected VST audio plugin placed on midi/audio tracks on DAWs, e.g. Ableton, Logic, etc
Is this possible to create?
Requirements
VST can send messages to a webserver
VST can receive messages from a webserver
VST can automatically receive/send messages to/from the webserver, e.g. in the background, ... | common-pile/stackexchange_filtered |
convert from long long to int and the other way back in c++
How to convert from long long to int and the other way back in c++ ??
also what are the properties of long long , especially its maximum size,
thank in advance ..
Type long long is typically 64 bits.
Type int is likely to be 32 bits, but not on all machines.
... | common-pile/stackexchange_filtered |
Compensating for an iPhone Safari Rotation Bug
Here are some steps to mess up the iPhone's rotation when in Safari
Holding the phone in vertical mode and navigate to google.co.cr with Safari
Rotate the phone horizontally
Rotate the phone vertically
The page is clipped as seen here:
A simple horizontal sw... | common-pile/stackexchange_filtered |
Use LaTeX to simulate old typewriter written texts
This question led to a new package:
typewriter
I'm giving my students an old exam and barely remembered to change the date at the top. A colleague and I joked about how long we could reuse the same exam, and it made me wonder if I could use LaTeX to create an exam th... | common-pile/stackexchange_filtered |
Customizing a UITableView with Searchbar
I have a TableView with a search bar. But I want to add another view (lets say a label) in to the TableView (so it scrolls with the tableview) . For an example, if you open iPhones Phone Contacts application, under All Numbers, you can see a lable called "My Number:". Which must... | common-pile/stackexchange_filtered |
C++ Postfix Calculator not working with 2 operands in a row
Hello I have written a postfix calculator using vectors (which is required) and have run into trouble. When I enter two operands in a row, it won't give the correct answer. For example, "5 4 + 3 10 * +" gives the answer "36" when it should give 39. I understan... | common-pile/stackexchange_filtered |
how to create and make a custom.css file work
I need to create custom.css file using local.xml. I tried adding this command
<action method="addCss"><stylesheet>css/custom.css></stylesheet></action> to local.xml file but it doesn't do anything, I can't edit my page. I'm not even sure where the custom.css saves. Could so... | common-pile/stackexchange_filtered |
how to disable all smileys and char combinations in teams?
MS Teams was selected as a communication tool in our company. We do post code into it. And that code contains asterisks, underscores and even numbers! I understand it's business critical feature, but will never, ever, ever need smiley face, smiley face with sun... | common-pile/stackexchange_filtered |
Timezone Datetime with offset in php , getting it easy
I have timestamp from specific timezone (Jamaica) and i want to get GMT timestamp of it. Is there more elegant solution than this one :
$start = DateTime::createFromFormat('U',<PHONE_NUMBER>);
$start->setTimezone(new DateTimeZone('America/Jamaica'));
... | common-pile/stackexchange_filtered |
Find the next date based on Interval (month/quaterly)
CREATE TABLE @Temp(
Date datetime,
Flag bit)
@Temp table as data from 01-04-2019 to 31-04-2020 (366 records) and flag=0
DECLARE startdate date='12-04-2019', interval int =1 OR 3
Expected Result: If interval is 1 month, based on startdate, flag to be ... | common-pile/stackexchange_filtered |
Why does Windows 10 add files to the desktop in columns, but selects files in rows?
When I save files to the Desktop, it automatically stacks them in columns. Meaning, each added file is placed underneath the previous until it reaches the bottom. Then it wraps, and starts stacking files in a new column.
When selecting ... | common-pile/stackexchange_filtered |
Why do M_PI_2, M_PI_4, M_1_PI, and M_2_PI exist?
I do understand why we have this in standard headers:
#define M_PI 3.14159265358979323846 // pi
However, I don't see much benefit in having these:
#define M_PI_2 1.57079632679489661923 // pi/2
#define M_PI_4 0.785398163397448309616 // pi/4
#define M_1... | common-pile/stackexchange_filtered |
How do I set the height (width) of vertically set column headers in a datagrid?
I am using this code for my DataGrid:
<DataGrid
Grid.Row="1"
Name="myDataGrid"
SelectedItem="{Binding chosenReport, Mode=TwoWay}"
ItemsSource="{Binding Reports, Mode=TwoWay}"
IsReadOnly="True"
FontSize="14"
AutoG... | common-pile/stackexchange_filtered |
Can't get my ZF2 application to work on a shared server
After developing my Zend Framework 2 website in local, I just bought a hosting and deployed it, but can't get it to work!
First of all, my hosting service doesn't allow me to use the public folder as root, so I found this solution (adding an index.php to the root ... | common-pile/stackexchange_filtered |
Error constructing an Object from a custom C++ Library in Arduino
I attempted to compile this Arduino sketch with a custom library in it (jtaServoController), and the Arduino IDE claims that my constructor in the Arduino sketch was written incorrectly (more precisely, 'jtaServoControllerFour' does not name a type).
#in... | common-pile/stackexchange_filtered |
Can it be defined as inner product of two vectors?
I have formulated something like
For $V_n$ where ${\bf x}=(x_1,x_2,x_3, \ldots,x_n)$, ${\bf y}=(y_1,y_2,y_3,\ldots,y_n)$
and I define ${\bf x} \cdot {\bf y}$ to be $(x_1+x_2+x_3+ \cdots+x_n)(y_1+y_2+y_3+\cdots+y_n)$
it seems like it works for all four axioms.
Is there... | common-pile/stackexchange_filtered |
WSO2: Configuring xml multiple in a single project
I am using WSO2 ESB 6.5.0.
In the WSO2HOME/conf/synapse.properties I set property
synapse.commons.json.output.xmloutMultiplePI=true
for set the XML output to an xml-multiple processing instruction in XML to JSON transformations. (As this says )
This works fine, but In... | common-pile/stackexchange_filtered |
SQL - How do I calculate the sum only for distinct rows of another column?
I have a table with covid data containing a lot of different data entries. Each row has the Country, Continent, Population and different data which is not relevant for this.
I want to simply calculate the population per CONTINENT, but I can't fi... | common-pile/stackexchange_filtered |
Mechanize visit a link and get page title
I am using mechanize to scrape some data. Unfortunately I can't seem to get it to visit the link and get the page title of the visited page.
here is my task:
task :estimateone => :environment do
require 'mechanize'
mechanize = Mechanize.new
page = mechanize.get('https://... | common-pile/stackexchange_filtered |
removing numbers from a list python
Trying to create a function which removes odd numbers. When I run this code, it prints out only [2,3,4,5,6,7,8,9]. Is this because the return is cancelling my loop after the first iteration? If so, how can I modify this to run the loop and print out a list with all the odd numbers... | common-pile/stackexchange_filtered |
Share HTML content between pages
I'm sure this is an FAQ and probably answered many times on Google but I'm struggling to work out what to search on.
I want to write a bit of HTML on one page and then include a reference to the same HTML on another page. The pages will be in different sites but the same site collection... | common-pile/stackexchange_filtered |
MacBook won't eject DVD on bootup
I'm trying to do a fresh install of OSX on a new hard drive and the MacBook keeps ejecting the installation DVD. To see if the dvd reader has the problem itself, I tried another random dvd. The problem is it didn't get ejected and now I'm stuck because holding down the eject button do... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.