text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
What is wrong with this JavaScript code?
I have two checkboxes name check1 and check2. I wanted for either one to be disabled if the other one was checked. This is what I did:
var male = document.getElementById("check1");
var female = document.getElementById("check2");
male.disabled = (female.checked == true) ? true :... | common-pile/stackexchange_filtered |
swf adaptative resolution, change depending user's monitor
Is it posible to make a flash site, which will change the size when the vistors resolution is diferent? Practicly, every visitor will see the same size of the site, even if he has 800x600 or 1280x1024??
Maybe making html go fullscreen but make the swf occupy on... | common-pile/stackexchange_filtered |
Is there any precedence for symbols for constructing parse trees?
I am wondering if some symbols such as the ones in propositional logic have precedence over others in drawing parse trees.
For example, the sentence: p ∧ q → r, would ∧ take precedence over → in becoming the root of the parse tree or vice versa?
Or is ... | common-pile/stackexchange_filtered |
Is it safe to delete a sender() with deleteLater() here?
Suppose some slot was called by some QDialog based class ,
I create the dialog elsewhere , e.g
MyDialog *dlg = new MyDialog (this);
connect (dlg , SIGNAL(valueSet(QString)) , SLOT(slotGetValue(QString)));
dlg->exec ();
And in the slot , I delete the object b... | common-pile/stackexchange_filtered |
Convert a Linked List of type Integer to Set of type String in JAVA
I have a List of Integers but I would like to take that List and convert it to a HashSet.
For example my list is as follows:
1234
5678
1234
7627
4328
But I would like to take that list and convert the string of integers to a HashSet so it doesn't incl... | common-pile/stackexchange_filtered |
Error while getting public data from twitter
String status;
IEnumerable<TwitterStatus> twitterStatus = twitterService.ListTweetsOnPublicTimeline();
foreach(String status in twitterStatus)
{
Console.WriteLine(twitterStatus);
}
Why it give can not convert s... | common-pile/stackexchange_filtered |
How to attach a scroll bar from tool box to a panel so that it expands in relation to the form/panel?
I have dragged a scroll bar on a panel on my form. Now i want to bind that scroll bar with the form. such that whenever i expand my form the scorll bar expands and remains at the right (incase of vertical scroll bar) a... | common-pile/stackexchange_filtered |
How can I make a clean build of microsoft/vscode source tree?
I am trying to make a clean new build of microsoft/vscode.
Being new to JS, TS, NPM, and Yarn what command do I have to execute to clear all build artifacts and output files and build the code I changed?
$node --max_old_space_size=4095 ./node_modules/gulp/b... | common-pile/stackexchange_filtered |
How to configure kubernetes so that I could issue commands against the master machine from my laptop?
I'm trying to setup a cluster of one machine for now. I know that I can get the API server running and listening to some ports.
I am looking to issue commands against the master machine from my laptop.
KUBECONFIG=/home... | common-pile/stackexchange_filtered |
Use Laravel as a webservice and client
Is this possible to use laravel framework on one side as a RESTful webservice and on other side as a client ?
I have a project thats has a internal database. And on other side a web application. I would like to make a REST API for the internal db and consume it with laravel frame... | common-pile/stackexchange_filtered |
ReactJS auth redirect before application loads
I am designing a React application consisting of multiple components.
In my organisation they use a kind of Authentication mechanism wherein one needs to check a particular cookie; if available user is considered authenticated and is allowed to view app. If cookie is not t... | common-pile/stackexchange_filtered |
What does 'return $next($request)' do in Laravel middleware?
Please respect that I'm new to programming and Laravel, so this question might seem a little odd to the most of you.
But I think this is what stackoverflow is for, so:
When I created a new middleware with the command php artisan make:middleware setLocale ther... | common-pile/stackexchange_filtered |
Regexp.escape adds weird escapes to a plain space
I stumbled over this problem using the following simplified example:
line = searchstring.dup
line.gsub!(Regexp.escape(searchstring)) { '' }
My understanding was, that for every String stored in searchstring, the gsub! would cause that line is afterwards empty. Indeed, ... | common-pile/stackexchange_filtered |
Regex replace keeping digits after comma AND the sign at the end of the number
I would like to replace all characters after the first 2 digits after a comma, as well as keep the negative sign at the end of the string.
E.g. having a string of 1234,56789- should result into 1234,56-.
Using (,\d{2}).* and replacing with "... | common-pile/stackexchange_filtered |
Change default keyboard language in mobile app
I am developing a html5 based hybrid application and it is for a german client. Everything is completed and stumbled into one problem.
The web app is in german, but while accessing the application, the keyboard is english one and i need to change it to german.
Specifying ... | common-pile/stackexchange_filtered |
Integration problem of a modified 'standard integral'
Consider $\int\limits_0^\infty ye^{-y}e^{-xy}dy$ I can use the fact that $\int\limits_0^\infty u^ne^{-u}=n!$
Clearly, $\int\limits_0^\infty ye^{-y}e^{-xy}dy=\int\limits_0^\infty ye^{-y(1+x)}dy$. Hence, for $\int\limits_0^\infty ye^{-y}dy=1!=1$. However I don't under... | common-pile/stackexchange_filtered |
Datadog extracting value from logs
i have the following being output in my logs
Finished processing [154976] items for user id [1234]
is there any way in datadog i could output that on a widget with
userid -> number
basically process the logs, similar to how we do with errors from logs and creating alerts.
Create a l... | common-pile/stackexchange_filtered |
SU question closed as Exact Duplicate, but it does not seem to be the same to me.
I posted this question yesterday evening:
Good software to take a blog and format it for printing
It is a question looking for a software tool that will take a blog and format it for printing.
This morning I checked on it and found it had... | common-pile/stackexchange_filtered |
How to run linear regression with constraints in R?
If I have the following data
n<-1000
x1<-rnorm(n,1,1)
x2<-rnorm(n,2,2)
x3<-rnorm(n,3,3)
e<-rnorm(n)
y<-3+0.5*x1+0.2*x2+0.3*x3+e
I want to fit a linear model between $y$ and $x$ like:
$$y=\alpha+\beta_1x_1+\beta_2x_2+\beta_3x_3+\epsilon$$
The unconstraint linear regre... | common-pile/stackexchange_filtered |
How do php echo use for smart phones
I am using codeigniter for my project and I want to know how codeigniter can use for echo to shows a message that send to a mobile phone. it shows the php code instead of the message.
https://i.sstatic.net/HF0xf.png
$this->sms->message('Thank you for your order Your order has been r... | common-pile/stackexchange_filtered |
Equalizers and Basic limit theorem in Category theory
I think I've found an error in Benjamin Pierce's Basic Category Theory for Computer Scientists proof of the Basic Limit Theorem. This usually means I've misunderstood something. Can you point out the flaw in the following reasoning?
Theorem: Let $\textbf{D}$ be a d... | common-pile/stackexchange_filtered |
Make all buttons rounded
Using swift, I tried with this code to make a button rounded, and it works:
button.layer.borderColor = UIColor.grayColor().CGColor
button.layer.borderWidth = 1
button.layer.cornerRadius = 8
Unfortunately, I've got a lot of buttons and I would like to know if there's a way to make all buttons r... | common-pile/stackexchange_filtered |
How to create OneNote 2010 section
How can you create a new section in a OneNote 2010 notebook with c#? According to the API there is no method to do so. But there is a CreateNewPage Method so I wondering if there is something similiar for sections? If not, how can this be achieved except for manipulating the XML files... | common-pile/stackexchange_filtered |
Are we going to enforce the prior research aspect of good questions or not?
A question was asked about resistance and voltage today which struck me as off-topic because of no apparent research. Also, there was no conceptual discussion which indicated a difficulty about understanding.
At this Meta question the PSE comm... | common-pile/stackexchange_filtered |
"Unable to perform" issue in IIS Manager (localhost)
When I'm trying to open any app in IIS Manager (local machine) like CGI, Handler mappings etc. I got an error There was an error while performing this operation:
I'm unable to find out this issue.
Make sure Web.config exists in the home directory of the website and... | common-pile/stackexchange_filtered |
Unique Facebook Comments with Viddler Playlist Videos
Is it possible to change the Facebook Comments box on a page to a new one when a user changes a video within our Viddler playlists?
The playlist changes on the same page with no refresh, so if I just insert one FB comment box it will stay the same no matter what vid... | common-pile/stackexchange_filtered |
React Refs' value not showing
This is a very simple example. I have a form and I need the value of a hidden field so I need to use ref:
<form>
<input ref="num" type="hidden" name="amount" value="99"/>
</form>
var number = this.refs.num.value;
console.log(number); // nothing
console.log(this.refs.num); // shows the f... | common-pile/stackexchange_filtered |
Replace NULL by default value in LEFT JOIN, but not in ROLLUP
I have a query having LEFT JOIN, group by and ROLLUP, like this:
Select * from
(
Select user_agent,
value,
recoqty,
count(recoqty) as C
from august_2016_search_stats SS
LEFT JOIN august_2016_extra E
on (SS.id = E.stats_id and ... | common-pile/stackexchange_filtered |
Using wp_handle_upload() to Direct Specific Path by Using $overrides
How do you use wp_handle_upload function and apply_filters together to upload files on a specific path? What is going to be the override?
For example:
$overrides = array('file' => 'C:\\uploads\\filename.pdf','message' => 'File written');
apply_filter... | common-pile/stackexchange_filtered |
"Show in Finder" switches Desktops
Here's an odd problem I noticed with Chrome and the Finder. I'm new to OS X so I'm not really sure if this is a bug, or there is some setting that may fix it.
Select Assign To..None for the Finder app.
Open a Finder window on desktop 1.
Open a Chrome window on desktop 2.
Download a f... | common-pile/stackexchange_filtered |
Is there dry land on Earth if the moon orbits just above its Roche limit?
Imagine an Earth-like world in all respects except that the Moon is much much closer.
I think I’m right to say if the Moon were very close that tidal forces would slowly rob it of momentum and it would probably eventually hit the Earth destroying... | common-pile/stackexchange_filtered |
Is there a way to manipulate/interfere sun light?
What happens when yellow light is passed through a prism?
If the speed of a light wave decreases, doesn't the frequency decrease as well?
is there a way to manipulate/interfere sun light or a way to somehow produce a kind of resonance, to create microwave (in singular?... | common-pile/stackexchange_filtered |
How to keep track of line number in files when its being updated continuosuly
We are pushing IIS Log files via API to DB for monitoring via SPLUNK but we are sending the duplicate data since our C# job runs every five minutes and it sends all the lines
// Read the file and display it line by line.
Sys... | common-pile/stackexchange_filtered |
error: expected expression when initialising a two dimensional structure variable in C
So I am trying to learn about structures in C and tried having a 2D character array in a structure. When I try to initialise it in main, I get an error saying "error: expected expression".
struct students
{
char roll_no[9][2];
}s... | common-pile/stackexchange_filtered |
How can I detect blur event in React Native tab component?
I'm using rmc-tabs for tab component in React Native.
I'm using video component and want to pause the video when I move to other tab, but I don't know how to do this.
How can I get the blur event in rmc-tabs or are there any other ways to handle blur event in R... | common-pile/stackexchange_filtered |
Let $f : R → R^{2}$ be $ C^{∞} $. Does there exist $t_{o} ∈ (0, 1)$ such that $f(1) − f(0)$ is a scalar multiple of $df/dt| t=t_{o}$
Let $f : R → R^{2} $ be $C^{∞} $(i.e., has derivatives of all orders). Then there exists $t_{o} ∈ (0, 1)$
such that $f(1) − f(0)$ is a scalar multiple of $df/dt| t=t_{o}$ (true/false) $?$... | common-pile/stackexchange_filtered |
How can I write to a specific line range with sed or awk?
I simply want to write a command's output to a file's particular line range.
For instance first command should be written into range 0-1000 then second command into 1001-2000 etc.
I've successfully managed to write to a single line with sed -i command which do... | common-pile/stackexchange_filtered |
Equality of the totient function of two multiples of $x$
I'm looking to solve for $x \in \mathbb{N}$ in the equation $\phi(4 x) = \phi(5 x)$. I know the totient function $\phi(y)$ just gives the number of integers less than or equal to $y$ that are coprime to $y$. I tried approaching it like a normal equation and expan... | common-pile/stackexchange_filtered |
Bitmaps or Binary search tree
Which is the following data structures be best suited for insertion, deletion, lookup, set intersection, union? Optimize time complexity.
Bitmaps
Binary search tree
binary search is better until some array length because bitmaps need some decoding encoding. binary search time... | common-pile/stackexchange_filtered |
1: This constraint system keeps rejecting valid configurations. Let me trace through why $(p \land q) \to r$ combined with $p$, $q$, and $\neg r$ creates conflicts.
2: Start by marking each constraint true and the conclusion false. So we have T: $(p \land q) \to r$, T: $p$, T: $q$, and F: $r$.
1: The implication rule... | sci-datasets/scilogues |
Do you set yourself daily goals and stop once you've reached them?
I don't follow any kind of time or word limit. I write when I have time and stop when the time is over (e.g. time to eat, to work, to sleep).
But now I'm thinking of setting myself some daily goals to see if this improves the quality of my writing (e.g.... | common-pile/stackexchange_filtered |
Pip cannot install anything on ubuntu server
I had deleted an existing virtual environment. I created a new one and activated it. Now I am trying to install site packages using
pip install -r requirements.txt
But I keep getting the error
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any do... | common-pile/stackexchange_filtered |
CUDA C++ shared memory and if-condition
i have a question i couldnt find an answer to myself, and i was hoping some of you could offer me some insight regarding a possible solution. Within a kernel call, i would like to insert an if-condition regarding access to shared memory.
__global__ void GridFillGPU (int * gridGL... | common-pile/stackexchange_filtered |
imshow() pixels are not accurately aligned with grid lines
I would like to draw line segments and polygons on top of an image displayed with imshow(). My problem is that the coordinates are precisely aligned with the pixels. I prefer maximum precision.
I created a minimum reproducible example with a checker pattern to... | common-pile/stackexchange_filtered |
Is this the correct way to control the speed of a 4-wire CPU fan?
The circuit is used outside of a PC.
The fan hums (but still spins) on the MED and LO settings. Does this mean the circuit is the wrong way to control the fan? If this circuit is the wrong way to control the fan, please edit the schematic to make it rig... | common-pile/stackexchange_filtered |
How to fix (MAKEPKG) installation problem?
I want to install yay for downloading package from AUR ArchLinux,
I don't know what to do?!
Thanks for your helping.
When I use git clone and then use the makepkg -si command , it gives me this error:
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
Error text:... | common-pile/stackexchange_filtered |
Different uv or normal value for the same vertex in indexed geometry
Look at the following indexed geometry:
there are 2 faces and only 4 vertices so the buffers in three.js look like this (in pseudocode but the idea is clear):
position = [A, B, C, D]
index = [0, 1, 2, 2, 1, 3] //[A, B, C, C, B, D]
vertices B and C a... | common-pile/stackexchange_filtered |
Join two Json arrays to one with key and value postgresql
I have two jsonb columns(keys,values). Eg: keys colum value = ["key1","key2","key3","key4"] values column = ["val1","val2","val3","val4"]
I want to write a select query to get the output as below based on the array index.
{"key1":"val1","key2":"val2","key3":"val... | common-pile/stackexchange_filtered |
Enemies are penetrating in each other when following player
As you can see the image my enemy (when following my player), penetrate each other. How can i avoid it? I am using NevMeshagent to follow the player.
void Update () {
currentNavMeshAgent.destination = player.transform.position;
}
I have added a Rigidbody... | common-pile/stackexchange_filtered |
jQuery Image Swap Not Showing Immediately
I'm using the jQuery code below to replace part of the image src. Basically it converts example.com/200x200/sample.jpg into example.com/500x500/sample.jpg.
It works fine only problem is it renders the old image first before showing the new one. Is it possible to load the swappe... | common-pile/stackexchange_filtered |
Reason for using `Any` over `AnyAsync` in async code
In the Microsoft tutorial for using ASP.NET Core with EF Core here, there is this sample code:
[HttpPut("{id}")]
public async Task<IActionResult> PutTodoItem(long id, TodoItem todoItem)
{
if (id != todoItem.Id)
{
return BadRequest();
}
_conte... | common-pile/stackexchange_filtered |
Trouble with positioning elements
In my page i'm having trouble with getting the right position with my element outside of the header div. I want it to automatically position after/below the div not inside it.
I guess that the "position: fixed" is ruining the document flow, is there any way around that so i don't need ... | common-pile/stackexchange_filtered |
CGImageRef uses lot of memory even after release
I'm using CGImageRef and noticed that it uses a lot of memory that doesn't get deallocated.
So I tried experimenting with the following code
- (void)photofromAsset:(ALAsset *)asset completion:(void(^)(NSError *error))completionHandler
ALAssetRepresentation *represen... | common-pile/stackexchange_filtered |
Unknow value in field UserPrincipalName. Getonedriveactivityuserdetail graph API
When accessing the https://graph.microsoft.com/beta/reports/getOneDriveActivityUserDetail(period='D7')?$format=application/json graph API from a specific tenant, the value of the userPrincipalName field in response is an unknown string. Ex... | common-pile/stackexchange_filtered |
Disable a Share link for wall post
I am developing an application that will be posted on the wall of the private Facebook Group by using Open Graph. If I have a general post in this group there is no view of the "Share" link, but with Open Graph it is. What I need is to disable the possibility to "Share" this post out ... | common-pile/stackexchange_filtered |
Contents of file as input to hashtable in Objective-C
I know to read the contents of file in Objective-C, but how to take it as the input to hashtable.
Consider the contents of text file as test.txt
LENOVA
HCL
WIPRO
DELL
Now i need to read this into my Hashtable as Key value pairs
KEY VAlue
1 LENOVA
2 ... | common-pile/stackexchange_filtered |
How to create a custom skimage.future.graph.rag which is given as a input to cut_normalized and ncut?
I am trying to create a custom adjacency graph with RAG but all the examples only have graph creation using rag = graph.rag_mean_color(img, labels)
I DON'T want to use this function and want to define the weights with ... | common-pile/stackexchange_filtered |
Microsoft Flow mapping values dynamically
We are connecting one our applications to Microsoft Flow. To achieve one of our functions we need to have Microsoft Flow serve outputs to dynamic data.
Let me explain what I meant,
{
'Firstname': 'John',
'Lastname': 'Doe'
}
if this is the input our API needs it's easy ... | common-pile/stackexchange_filtered |
Good Design for adding business logic to Java Bean
In the following code, does it make sense to have isMatched() in here (in a Value object/java bean)
? What's a good design. btw, I tried compareTo, compare, hashSet etc. by following other posts of Stack overflow and somehow that still does not work for me to remove du... | common-pile/stackexchange_filtered |
Android Button Sizing
I have several buttons in my application that are displayed at the bottom of the screen. Right now the buttons have text in them. When running on the emulator, the buttons with text fit nicely. Now, that I am running on the actual device, some buttons' text takes more than two lines and the screen... | common-pile/stackexchange_filtered |
Writing a script to guess foreign keys in Oracle SQL
I am trying to write a SQL script that guesses foreign keys. My approach is to eliminate every column that can't be a foreign key. The rest would be manual work.
SELECT
atc1.table_name atc1_tn,
atc1.column_name atc1_cn,
atc2.table_name atc2_tn,
atc2.c... | common-pile/stackexchange_filtered |
Can I create a link into rundeck that goes straight to the execution of the job?
I have a job without parameters that I would like to give my users to start from a HTML page outside of rundeck.
I'd prefer to not go through additional clicks with the output selection and debug options, but go straight to e.g. https://ho... | common-pile/stackexchange_filtered |
Page LDAP query against AD in .NET Core using Novell LDAP
I am using the Novell LDAP library for making queries to an Active Directory from a .NET Code application. Most of the queries succeed, but some return more than 1000 results, which the AD server refuses. I therefore tried to find out how to page LDAP queries us... | common-pile/stackexchange_filtered |
getx navigation Error Null check operator used on a null value
I need when the user click the button to add data to firebase, the snake bar pop up with a success message, then go back. But there is NO navigation occurs.
the error is occurs when i use navigator is:
Error Null check operator used on a null value
the co... | common-pile/stackexchange_filtered |
How can I get jquery roundabout to work?
I am having a hard time getting it to work at all. I'm sure it's something simple but I can't figure it out. I have the file saved as index.html, I have uploaded to my FTP server along with my jquery.js file, and the roundabout files. I have them linked in my index.html file, wi... | common-pile/stackexchange_filtered |
Trustless exchange without a third party
Is there a cryptographic (or even not entirely cryptographic) way of exchanging objects between Alice and Bob that would not require a third party, and Alice and Bob would not need to trust each other? For example, Alice and Bob have Y and X objects (some information) and want t... | common-pile/stackexchange_filtered |
How to update database after drag and drop using javascript/ajax?
For some context, I have have three divs for dragging and dropping items. The first div will be the default div to start things off. Then I want the second two divs to update the database when I drop content in there. These divs will be dynamic and I may... | common-pile/stackexchange_filtered |
React-Native: How to scale font size to support many different resolutions and screens in both Android and iOS?
I have huge trouble trying to figure the correct font size on the many different screens that exist.
Currently I have a helper function called getCorrectFontSizeForScreen.
export function getCorrectFontSizeFo... | common-pile/stackexchange_filtered |
Diffuclty using java-gnome in maven
I am using Netbeans 12 IDE on Ubuntu 18.04 LTS and have installed java-gnome using command :
sudo apt-get install libjava-gnome-java
I created a small project to test the notification with the main class code as following :
package com.mycompany.notifytest;
import org.gnome.gtk.Gtk;
... | common-pile/stackexchange_filtered |
What would happen if ocean currents suddenly stopped (or changed)?
I'm thinking about a device (in a story I'm writing) that could control ocean currents, and I'm wondering how it could be weaponized. For example, if an ocean current was suddenly stopped, what might happen to the climate around it? Would stopping one o... | common-pile/stackexchange_filtered |
Node.js - What's the scope of the require()d modules?
I am trying to organize a Node.js application developed with Express 4 and am confused about the scope of modules which are imported with require().
Imagine that I use require('./services/user') to import a service in a module such as routes/user.js:
var userService... | common-pile/stackexchange_filtered |
Simple IF/ELSEIF not comparing properly
I'm new to PHP and this was asked before but the answers just won't cut it in my scenario.
I have this piece of code:
if ($node->field_available_for_payment[LANGUAGE_NONE][0]['value']==0){
} elseif($node->field_available_for_payment[LANGUAGE_NONE][0]['value']==1){
$stat... | common-pile/stackexchange_filtered |
Android add chips anywhere inside EditText
I would like to do something similar to this:
In other words, these "tags" are optional and can be placed anywhere inside a text.
These tags are used to indicate how the text after it will be treated when the user submits it to the server.
Seems like you're asking for a thir... | common-pile/stackexchange_filtered |
Version controlled South migrations in virtualenv
I have a Django site placed in folder site/. It's under version control. I use South for schema and data migrations for my applications. Site-specific applications are under folder site/ so they are all version-controlled along with their migrations.
I manage a virtu... | common-pile/stackexchange_filtered |
We Need a Crystal Clear "Rules for Asking Questions" - Agree or no?
I hesitate posting assertions/questions like this for fear of offending members who have worked hard to improve Health.SE and Stack Exchange in general. Therefore, please accept my suggestion in the spirit of continuous quality improvement, as I do not... | common-pile/stackexchange_filtered |
Does the order of columns in a WHERE clause matter?
Does the order of the columns in a WHERE clause effect performance?
e.g.
Say I put a column that has a higher potential for uniqueness first or visa versa?
With a decent query optimiser: it shouldn't.
But in practice, I suspect it might.
You can only tell for your ca... | common-pile/stackexchange_filtered |
How do we see reflections in water when looking nearly straight down at the surface?
According to Snell's law and Fresnel's equations, using IOR of 1.33 for water, my calculation of Fresnel's suggest the reflectivity of water at an angle of incidence of 0 is approx 0.02 (i.e. 2%). Googling turned up multiple references... | common-pile/stackexchange_filtered |
Active only specific dates in jQuery Datepicker Calendar
I am trying to active only few dates (5, 10, 17, 25) of every month in jQuery Datepicker calendar. The rest of the dates should be disable. I am using just default code for datepicker:
$( function() {
$( "#pacdate, #pay_date" ).datepicker({
dateForma... | common-pile/stackexchange_filtered |
How to see the average milliseconds of functions by VS2022 Performance Profiler?
I use VS2022 Performance Profiler to analysis my app.
I want to analyze the average time in milliseconds of some hot path functions. But Performance Profiler only show the total milliseconds and percentage.
Is it possible to show average m... | common-pile/stackexchange_filtered |
Migration Prefect1-2 and multithreading
Please, need your help.
I am seeking a way to migrate my quiet complexity Flow code from Prefect-1 to Prefect-2. Flow worked perfectly on the old Prefect version. But when I remade it to 2-nd version it started working well only on local runs.
So, initial code that work on prefec... | common-pile/stackexchange_filtered |
What is the force of friction between two bodies given their masses and a force pulling them as a unit accross a surface?
Where a force of 200N pulls two blocks together(as one system) across a horizontal table top(µ=0.800)
$m_A$ = 5.00kg, $m_B$ = 10.0kg
Find the acceleration of the system.
Find f$_k$ between B and A... | common-pile/stackexchange_filtered |
Residue for quotient of functions
Let $f, g$ be holomorphic functions on a disk $\mathbb{D}(z_0,r)$ centered at $z_0$ and of radius $r>0$. Suppose $f$ has a simple zero at $z_0$. I want to find an expression for $Res(g/f, z_0)$. But I'm not sure what this expression should look like.
Here's my guess:
Since $f$ has a si... | common-pile/stackexchange_filtered |
Remove svn:externals property from a folder
I have a branch of the trunk. I need to re-set the properties of the externals in the branch to a different point.
My idea was to remove them all and re-set them with propset.
When I type svn propdel svn:externals http://path-to-branch/externals
I get
svn: E200009: Targets ... | common-pile/stackexchange_filtered |
Calculating power using a for loop instead of applying the Math.pow method
Trying a method to find the power of a number using a for loop and without using Math.pow. For this result I just got 2.0 as it doesn't seem to go back round through the loop. Help please.
public void test() {
{
double t... | common-pile/stackexchange_filtered |
Map of highway fuel stops in Germany
I'm looking for a map of highway fuel stops in Germany. I've seen the what-looks-like official site Tank and Rast, but they are very obviously outdated (at least by 10 years, looking at the missing pieces of A6).
I'm planning a long journey and I'd like to know where to stop in adva... | common-pile/stackexchange_filtered |
Play! framework 1.2.4, dependencies and Netbeans 7
I switched to the "new" dependency system in Play! Framework. I'm using Netbeans 7. In Netbeans, all my code compiles and there are no complaints. My site also runs nicely if I start it from the terminal. However, if I run it from Netbeans, I get some runtime errors (i... | common-pile/stackexchange_filtered |
TypeError: Expected a job store instance or a string, got NoneType instead
Why I am getting this error?? I am trying to apscheduler in my django project. But the function is working very well. After sending some email it turns off automatically.
here is my code :
import logging
from django.conf import settings
from aps... | common-pile/stackexchange_filtered |
How to implement a composite event after p:calendar value is set?
I've a composite component with calendar inside.
I need to catch an event when calendar was changed but in my mainBean (not composite bean)
So, I've got 4 files: mainBean.java, main.xhtml and coposite: myCalendar.xhtml with calComp.java.
I want to call '... | common-pile/stackexchange_filtered |
iTunes Connect yellow warning icon
What does the yellow warning symbol beside my build number on iTunes Connect mean?
Will my app get rejected because of this?
I'm submitting an app with an apple-watch extension.
Thanks
If your app gets rejected by Apple, they'll usually provide a description of what you need to fix,... | common-pile/stackexchange_filtered |
vector of struct pointer
Following is my problem
struct point{
int x;
int y;
};
struct OuterStruct
{
std ::vector <point *> pa;
std ::vector <point *> pb;
};
OuterStruct atest; // global variable
Now in my main i am doing this
point n ;
n.x=1;
n.y =2;
atest.pa.push_back(n);
atest.pb.push_back(n... | common-pile/stackexchange_filtered |
C++ cannot pass objects of non-POD type
This is my code:
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <stdio.h>
#include <curl/curl.h>
using namespace std;
int main ()
{
ifstream llfile;
llfile.open("C:/log.txt");
if(!llfile.is_open()){
exit(EXIT_FAILURE);
}
string wo... | common-pile/stackexchange_filtered |
Right way to fit image to CALayer contents in swift programmatically?
I am new to programming.
@IBOutlet weak var myView: UIView!
var l: CALayer {
return myView.layer
}
override func viewDidLoad() {
super.viewDidLoad()
setUpLayer()
}
func setUpLayer() {
l.contents = UIImage(named: "IMG_3682.jpg"... | common-pile/stackexchange_filtered |
Android - Bitmap and memory management?
I've seen in a lot of samples, that developers call recycle() on bitmap, and then set it to null.
Why is this necessary, doesn't the garbage collector take care of releasing the bitmap?
Bitmap bitmap = BitmapFactory.decodeStream(inputStream);
bitmap.recycle();
bitmap = null;
Jo... | common-pile/stackexchange_filtered |
Update birthdate incase the date is Hijri by the value of converting hijri birthdate to Gregorian
Table contains many records with Hijri date value and Gregorian value in BirthDate column, so please how to update Birthdate by the value of converting Hijri date to Gregorian
thanks
I tried this script but it dosen't work... | common-pile/stackexchange_filtered |
OMD : Thruk doesn't detect nagios config
I've installed on a CentOS 7 system latest version of OMD (omd-2.90-labs-edition).
It installs ok.
I use the default naemon monitoring engine and Thruk as the web GUI.
I was using before an old version of OMD with Shinken and Thruk.
Naemon seems to work ok, and reuses my host an... | common-pile/stackexchange_filtered |
SQL ERROR ORA-00923: FROM keyword not found where expected
SELECT Person_ID, CONCAT('First_name','Surname') AS "Person_Name", Next_of_kin, '~ No next of kin ~' AS Next_of_kin_name, Next_of_kin_age AS NULL
FROM PERSON
WHERE Next_of_kin IS NULL
UNION
SELECT Childs.Person_ID, CONCAT('Childs.First_name','Childs.Surname... | common-pile/stackexchange_filtered |
Is there a way to prevent Excel from automatically forcing my character string to a date from within R?
Within R, I have a character string ID formatted like XX-XX where XX is any integer number between 01 and 99.
However, when the numbers that make the character string could resemble a date, Excel is automatically fo... | common-pile/stackexchange_filtered |
In-App Purchase Android
I am developing an application for android and implemented in app purchase. When I click a button it works fine.
I don't want to show in app purchase dialog one more time when user uninstalls application and installs it again.
Please help me with suitable example.
Thanks in advance.
Once your m... | common-pile/stackexchange_filtered |
Failed to enable constraints using TableAdapters
I'm trying to check if a username exists in my table when everytime a character is entered in the TextBox. Here is my code:
Within the register.aspx.cs file I have a TextChanged event on the TextBox:
protected void username_txt_TextChanged(object sender, EventArgs e)
{
... | common-pile/stackexchange_filtered |
contao isotope image size etc
i've got a problem regarding the image size in the productoverview in isotope, when i upload an image to a product and then watch it back on the page the image is covering the whole page.
now i tried to make it smaller by going to : store configuration > galleries but the only thing that g... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.