id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_21300 | --******************
declare @sql nvarchar(4000)
DECLARE @MyTable nvarchar(50);
DECLARE @SecondaryTargetField nvarchar(100)
DECLARE @FoundFields int
set @sql = N'
select
@FoundFields=(count(*))
from
sys.tables AS t
INNER JOIN sys.columns c ON t.OBJECT_ID = c.OBJECT_ID
where
c.name LIKE @SecondaryTargetField
a... | |
doc_21301 | For example, say I have the following graph that has edge attributes:
import networkx as nx
import networkx.algorithms.isomorphism as iso
G = nx.MultiDiGraph()
G.add_edge(1, 2, label="A")
G.add_edge(1, 2, label="D")
G.add_edge(2, 1, label="B")
G.add_edge(2, 3, label="C")
And I'm trying to find a subgraph with the fol... | |
doc_21302 | public class FSSWebInitializer extends AbstractAnnotationConfigDispatcherServletInitializer {
@Override
protected Class<?>[] getRootConfigClasses() {
System.out.println("********** getRootConfigClasses");
return new Class[] {FSSRootConfig.class};
}
@Override
protected Class<?>[] getServletConfigCla... | |
doc_21303 | I know that .env is used to specify the app's database connection, for example but I would like to understand it deeper.
A: .env file, as its name suggest, is a local where you put all your environment setup, such as database credentials, cache drivers and etc. Everything that is about the server that the project is r... | |
doc_21304 | One way is to have columns in the album table for these with one of them have a FK ID and rest be null. But problem is as i add more owner types i have to keep altering the table to add more columns
The other way is to have separate photo tables for each of these owner types.
None of these methods scale well. Any other... | |
doc_21305 | Now, I want to sort the Submission based on the weighted total score the Submission had. So, I created a method in submission.rb:
def total_score
scores.sum('(0.15 * scores.score1) + (0.15 * scores.score2) +
(0.20 * scores.score3) + (0.25 * scores.score4) + (0.25 * scores.score5)')
end
def sorted_by_tota... | |
doc_21306 | {
"username" : "John",
"shopping_cart" : {
"coffee" : 2,
"chocolate" : 3
(...will have about 50 different products that can be added to the shopping cart)
},
}
Is there a way to aggregate all items that a user had added in the shopping cart and get a total sum of the entire quantity o... | |
doc_21307 | class UserSensorDeviceCount(generics.ListAPIView):
authentication_classes = (authentication.TokenAuthentication,)
permission_classes = (permissions.IsAuthenticated,)
serializer_class = serializers.UserSensorDeviceSerializer
def get(self,request,format=None):
queryset = models.UserSensorDevice.o... | |
doc_21308 | B: A
quick-custom-script < $< > $@
C: B
slow-custom-script < $< > $@
Also assume that it may well happen that changes in A would produce the same B. I would like to achive that in such a case the complex making of C is left out because that is certainly unnecessary work when it has unchanged input.
My idea wa... | |
doc_21309 | Some of the values in these tables will be wrong. Examples of errors that I can encounter are:
*
*Null values or empty strings
*Truncated strings and/or numbers
*String formatted numbers
*Weird date formats
*Bad or missing references between tables
Up until now, the best option I can envision is to run some unsu... | |
doc_21310 | I have a button which starts the downloading process of two txt files - the contents of these are put into two different textboxes.
The txt files are encoded with UTF-8, and look like this:
line1
line2
line3
etc.
I have placed these two files on two different servers (two files on each server). On server 1, both files... | |
doc_21311 | The problem is that on selected row change the grid is not getting the right row because it does a post back, and gets rid of the data in the grid
Protected Sub grid_load(ByVal sender As Object, ByVal e As System.EventArgs) Handles WebDataGrid1.Load
If Not IsPostBack Then
Me.WebDataGrid1.DataSource = Member... | |
doc_21312 | <html>
<head>
<SCRIPT>
var timer = setInterval(Run,500);
flag = 1;
function Run(){
img1 = document.getElementById("PacMan");
var init=0;
var x = 0;
var dest_x = 800;
var interval = 10;
if(x<dest_x)
x = x + interval;
img1.style.left = x+"px";
if (x+interval <... | |
doc_21313 | mystr = "saddas das"
for x in range(0, len(mystr)):
if not(mystr[x].isdigit() or mystr[x].isalpha or mystr[x]=="@" or mystr[x]=="_" or mystr[x]=="."):
print (x)
Unfortunately it doen't detect anthing while it should return the index of the space.
A: for x in range(0, len(mystr)):
if not(mystr[x].isdig... | |
doc_21314 | Also, maybe I can make the whole form follow the "label above widget" pattern. Just not sure where that might be.
Current layout code:
myForm->addRow(tr("My Label:"), m_thicknessSlider);
Weirdly, I accidentally did the following, which provides the layout I'm looking for, mostly. But this seems wrong?
myForm->add... | |
doc_21315 | template <class T>
void writeData(QVector<T> &vec, const QString &fp, void(T::*method_ptr)(QFile&) )
{
QFile f(fp);
if(!f.open(QIODevice::WriteOnly | QIODevice::Append) )
{
qDebug() << "File error" << f.error();
}
else
{
QThread::currentThread();
for(T &tw : vec)
... | |
doc_21316 |
@font-face {
font-family: 'Hind';
src: url("../fonts/Hind/Hind-Regular.ttf"); }
body, nav, header, div, footer, section {
margin: 0px;
padding: 0px; }
body {
overflow: hidden;
background-color: #2F2E33;
font-family: "Hind"; }
header {
position: fixed;
top: 0;
right: 0;
left: 0;... | |
doc_21317 | <CustomDetails xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Fields>
<Field>
<Name>Selected City</Name>
<Value>Central</Value>
</Field>
<Field>
<Name>Address Provided</Name>
<Value>New Address</Value>
</Field>
</Fields>
<... | |
doc_21318 | I want PHP to read the status column from MySql and if the status column reads -1 where $username = ($_POST["username"]) I want PHP to initially send them to a "change password" screen and then after its changed send an update script to MySql to update column "status" from the default -1 to 1.
If its 1 I want it to l... | |
doc_21319 | <div id="mydiv" style="font-size:16px;height:40px;line-height:40px;width:160px;background:orange;text-align:center;">
hello world
</div>
I have an input text that allow changing the font size
<input type="text" id="input">
<button> change size </button>
JS :
$('button').on('click', function(){
var value = $('#... | |
doc_21320 | class RegisterEmailPage extends HookWidget {
@override
Widget build(BuildContext context) {
final formState = useState(GlobalKey<FormBuilderState>());
return Scaffold(
floatingActionButton: FloatingActionButton(
onPressed: () {
bool? validated = formState.value.currentState?.val... | |
doc_21321 | override func viewDidLoad() {
super.viewDidLoad()
self.navigationController?.isNavigationBarHidden = true
self.searchBar.delegate = self
let tap: UITapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(LoginViewController.dismissKeyboard))
view.addGestureRecognizer(tap)
... | |
doc_21322 | The date format in the csv file is among the lines of "29-SEP-17". When this is imported to access, it translates it as 2029/09/17 - basically mixing up the day and year parts of the date.
I can resolve this by going to excel before importing and changing the date fields in the file to short date, but I would prefer t... | |
doc_21323 | so my messenger config is totally default. however I set multiple buses like it is showen below
services:
# default configuration for services in *this* file
_defaults:
autowire: true # Automatically injects dependencies in your services.
autoconfigure: true # Automatically registers your s... | |
doc_21324 | I have the following form:
form do |f|
f.inputs 'Details' do
f.input :orders_file, as: :file
end
actions
end
Which displays this:
I would like to translate or change that 'Choose file' and 'No file chosen' texts.
I've tried with
input_html: { title: 'this', text: 'will', label: 'work', value: ... | |
doc_21325 | I'm not sure what exactly I changed, but for some reason I'm getting a 403 on my localhost now. Any Suggestions?
A: Hard to know, but here are so many possible solutions http://www.cyberciti.biz/faq/apache-403-forbidden-error-and-solution/
A: Goto C:/wamp/alias/
open phpmyadmin.conf with a text editor
Find something... | |
doc_21326 | In The Internet Sales sample database, let's consider Location dimension and Sales fact table. I am looking for a way to generate the following report:
State Sales
NY $100
NJ $20
CA $120
WA $80
East Caost $120
West Coast $200
I could achieve this in Mu... | |
doc_21327 | I understand that it is stated in the documentation that for horizontal scroll direction, only the width used and the height is stretched to fill the entire collection view. (first method provided in the code below)
Is there anyway I can override this using flow layout?
I have tried to change the minimum line spacing a... | |
doc_21328 |
A: Yes, Singleton is the best option. You can use a common instance to access the database.
If you want to share DB with external activities, then go for content provider.
A: This was an issue for me when I first started out with Android, as there aren't many tutorials on the web that describe how to correctly allow... | |
doc_21329 | Everything goes perfect but the layout of the image.
I need to trim the image like this:
Is there any simple way that I can do this? For example something like this:
canvas.trim(0,15,canvas.width-30,canvas.height);
BTW, I want to do this with pure JavaScript.
Thanks for any kind of tips.
A: Yes you can do that, here... | |
doc_21330 | hc <- df %>%
hchart(
"pie", hcaes(x = name, y = count))
hc
My output is just a pie chart with name but no number or percentage.
I want output something like this
Thanks for any help.
A: Use tooltip.pointFormat (or tooltip.format,tooltip.formatter) and dataLabels.format (or dataLabels.formatter). In this is cas... | |
doc_21331 | TForm.ListView1MouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
var
li: TListItem;
lv : TListView;
begin
lv := TListView(Sender);
li := lv.GetItemAt(X, Y); // we get our ListItem
end;
But with the Firemonkey ListView i don't see any GetItemAt function .
So please how... | |
doc_21332 |
A reusable building block for an application
And it is made up of HTML/CSS/Javascript. What confuses me here is the styling.
Now what actualy makes me worried here is the styling. The reason this makes me worried is because concerning the DOM, the styles of one element are usually affected by those available to the p... | |
doc_21333 | in my main loop when a press a key, it handle more than one time, and I want handle it just on time when I type on it.
I don't know how to fix this problem
Idealy I want to limit this event one time each 5 secondes for example. How I can do this ?
There is my event file
event.h
#ifndef __EVENT_H__
#define __E... | |
doc_21334 | POST we use to create a resource in database, byt sending data in request body
PUT we use to update an existing resource in database
My understanding is, RESTful best practice says, a handler need to serve an API resource(say /) for all requests GET, POST & PUT
We want the same handler to process PUT request, but the A... | |
doc_21335 | the thing which i wanted to know is how to increase the count of the products in the tbl-product when inserting products using supply module.
i wrote the insert function but i couldn't write the update function to increase the count
if someone can help to solve this i'll be very thankful
A: When you add a supply in ta... | |
doc_21336 | function get_id_from_coords (x, y)
{
x = parseInt(x);
y = parseInt(y);
if (x < 0)
{
x = (x + 6) * 60;
}
else
{
x = (x + 5) * 60;
}
if (y < 0)
{
y = (y + 6) * 60;
}
else
{
y = (y + 5) * 60;
}
$('#planets').children().each(funct... | |
doc_21337 | This is my code:
var num = 0;
document.addEventListener("DOMContentLoaded", function(event) {
var template = '<ul><li>{{name}}</li></ul>';
var data = {name: 'nome' + num}
while (num < 6)
{
num++;
data = {name: 'nome' + num};
}
The output is:
... | |
doc_21338 | ||
doc_21339 | Any button connected to this method will succesfully add and remove text from said string. This is being done in the method via:
UIButton *tempbutton = (UIButton *)sender;
I then get the title from this tempButton and append to a string. Now i have many buttons the user can press on in this menu but what i'd like to b... | |
doc_21340 | public static void updateQuery(String date) throws SQLException{
String query = "update parks set flag=? where nick=? and day=?";
PreparedStatement ps = mia.connect.prepareStatement(query);
ps.setString(1,"y");
ps.setString(2,user.getNickname());
ps.setDate(3, Date.valueOf(date));
ps.executeUp... | |
doc_21341 | SonarQube.Exclusions: >
**/ClientApp/src/shared/data/XXXXX.ts
But it still shows up in SonarQube:
Anyone know what I'm doing wrong?
| |
doc_21342 |
I am making an emoji viewer app with cycleJS, where the user can click on any emoji to add/remove it from their list of favorites. The list is also saved to localstorage on every change. I'm constructing the list using xstream by folding the click stream (either adding or removing the emoji on each click):
const favEm... | |
doc_21343 | Can you please help me ??
A: you shoukd be able to apply conditional formatting formula. E.g. if your columns are A and B your formula would be =ABS(b1-a1)<=0.05
As for the other sheet. You could use the same formula in an if statement and drag down. E.g. if (abs (sheet1!b1-sheet1!a1)<=.05, sheet1!a1, "") . you could ... | |
doc_21344 | It would be something like this:
Select ID, FieldA, FieldB, FieldC, ...
From TableX
Where ID in (list of ID's from flat file)
I was hoping there would be some way to refer to a flat file with all the ID's in it either in the WHERE clause or via somekind of ForEach Loop. I've setup other ForEach loops but am unsure of... | |
doc_21345 | I have fixed it how i put my code on onCreate at my Fragment. But i haven't found any documentation about that. Am i missing something or i should keep using SharedFlow collections at onCreate in Fragment ?
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
lifecycleScop... | |
doc_21346 | "Once you have Docker for Windows installed, you can pull the Emulator image from Docker Hub by running the following command from your favorite shell (cmd.exe, PowerShell, etc.)"
docker pull microsoft/azure-documentdb-emulator
From screenshot you can see that the container downloading fails with an "unknown blob" erro... | |
doc_21347 | g = engine.CGeometry()
vertexes = {}
vertexes[1] = 0
vertexes[2] = 0
vertexes[3] = 0
vertexes[4] = 0
vertexes[5] = -1
vertexes[6] = 0
vertexes[7] = -1
vertexes[8] = 0
vertexes[9] = 0
print "adding vertexes"
g:SetVertexes(vertexes)
where g:SetVertexes() isimpleme... | |
doc_21348 | const buildings = [
{ id: 111, status: false, image: 'Test1' },
{ id: 334, status: true, image: 'Test4' },
{ id: 243, status: false, image: 'Test7' },
{ id: 654, status: false, image: 'Test9' },
{ id: 222, status: true, image: 'Test8' }
];
And new bulding
const building = { id: 222, status: false, image: 'T... | |
doc_21349 | However, when it does this, my pipeline crashes on the following:
$ php artisan key:generate
In Facade.php line 258:
A facade root has not been set.
I've tried to set the key locally in various ways, removed composer depenencies and reinstalled them, but in none of those scenarios, I encounter this error in my ... | |
doc_21350 |
*
*On mousedown, a sine wave should be played. I did this by generating a sine wave in the background and when the event is fired, the volume is set to 1 or 0 accordingly
*When a user clicks on a div, a sequence of samples is being played. Other userinput is paused during this time
I could manage to do both indepen... | |
doc_21351 | My question is:
I have a folder with 31 MP3 files, one to each day of the month.
I need a batch to create folders named 01 02....31 and copy the 01.mp3
to 01 folder, 02.mp3 to 02 folder and so forth.
This is possible in the windows server 2k8 r2 command?
I try to use the following:
FOR /F %%j in (filelist.txt) do (
FOR... | |
doc_21352 |
A: Unfortunately, there is no permission to restrict PRs. The only way is set branch policies to protect target branch. You can use the workaround you mentioned, or you could add required reviewer for the affected path:
| |
doc_21353 | x y
255 0
255 0
5 10
5 0
5 1
5 0
255 0
255 0
2 5
2 2
2 5
255 0
The first step is to identify unique values of X:
SELECT distinct(X) FROM nodes ORDER BY X
Result:
2
5
255
Note: Order by isn't necessary, it's there to make the result easier to read.
For each of... | |
doc_21354 | But I Need to integrate a "backpress function"
MainActivity.java
package com.example.metehan.hbc;
import android.app.Activity;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.ImageButton;
publ... | |
doc_21355 | SET name=test
SET %name%=helloworld
ECHO %test%
And if it's not possible, are there some sort of associative arrays in Batch?
Here's my JSON file:
{ "test" : "helloworld" }
Thanks in advance!
A: This is my full code:
@ECHO OFF
SETLOCAL
PING www.google.com -n 1 -w 1000 >NUL
powershell -command " Get-Content -Path \mo... | |
doc_21356 | Each task is calling a bash script on different dir, and I wanted to add dependency between them:
class ATask(ExternalProgramTask):
def program_args(self):
return my_script_a.split()
class BTask(ExternalProgramTask):
def requires(self):
return ATask()
def program_args(self):
return... | |
doc_21357 | <div>
<input value="@Html.Raw(str)" />
</div>
This works just fine:
<div>
<input value="@str" />
</div>
As does this:
<div>
Values is: @Html.Raw(str)
</div>
So it's not an issue of @Html.Raw not being able to accept a NULL parameter. I'm not sure what exactly it returns in that case though; but it's somehow differen... | |
doc_21358 | $.ajax({
url: 'some/url',
dataType: 'json',
method: 'GET',
data: {
param1: 'param1',
param2: 'param2'
},
success: function(response){
var data = response;
// bind data to Dropdown or Grid
// THEN SHOULD I DO "data = null;"
},
... | |
doc_21359 | I wanted to store the sensor data of watch in a file in mobile. So I started sending sensor data at a sampling rate of 200ms along with the recognized gestures. Now I can see a lot of delay in displaying the recognized gesture in the phone since the amount of data being sent is too high. The delay increases as time goe... | |
doc_21360 | I want to know the URL addresses that try to access the API server address with file_get_contents yada-like methods.
A: There is an array in PHP named $_SERVER which gives you various useful information about the request, including all HTTP headers, request type, IP address, browser User-Agent and more. Have a look at... | |
doc_21361 | Executor executor = Executors.newFixedThreadPool(3);
Now let's say one of the active tasks must sleep for 3 seconds (for whatever reason).
executor.execute(() -> {
try {
Thread.sleep(3000L);
} catch (InterruptedException ignore) {}
});
How can we implement such a thread-pool in way that, when a task s... | |
doc_21362 | Thanks.
A: I threw together an iOS app that would do a binary search using this library to interact with the keychain, and determined that the most I could store was an NS(Mutable)String with length 16,777,110. So noticeably less than either the max length of an NSString or the default value of SQLITE_MAX_LENGTH as su... | |
doc_21363 | The menu with fadeOut() goes "display: none", and my page goes up the height of the nav.
How can I get a smooth movement?
$(window).scroll(function(){
if($(this).scrollTop() > pos.top+menu.offset().top-menu.height() && menu.hasClass('menudefault')){
menu.fadeOut('500', function(){
$(... | |
doc_21364 | const fetchWatchlist = async (request: express.Request, response: express.Response) => {
// fetch the watchlist according to the logged in user
const watchlist = admin.firestore().collection('userdata').doc(request.userData.uid).collection('watchlist');
const movieIds: string[] = [];
const snapshot: admin.fir... | |
doc_21365 | I have added a field group with the location rule to show the field group if taxonomy term is equal to categories. I have then added the <?php the_field( 'add_featured_image' ); ?> to single.php
The custom field is displaying in the category options, allowing me to select a featured-image, but it is not displaying whe... | |
doc_21366 | 1 problem) when I press the button, it should return my position data, but it doesn't return it and I think I understand why, but I can't solve it. the problem is the logic contained in the locationManager func.
2 problem)
I retrieve the weather info by inserting latitude and longitude.
I added another "textField" to d... | |
doc_21367 | Canada 1 5 3
Afghanistan 3 7 2
Brazil 2 4 6
How do I remove the line for Afghanistan?
I'm using BlueSky 10.0.0, R package version 8, on windows 10. I want to remove the row, using BlueSky menu.
Thanks
I read a guide to blueSky, couldn't find how to do this. I searched stackoverflow, couldn't... | |
doc_21368 | <amount value="myValue" neg-class="negative" />
myValue is a scope value (should be a number)
negative is simply the name of a css class.
The idea behind the directive is that I wan't to show currency to the user and when the amount that's bound is negative, negClass get's applied to the rendered element.
The problem ... | |
doc_21369 | %typemap(javaimports) Outer "
/**
* Outer class
*/"
%typemap(javaimports) Outer::Inner "
/**
* Outer::Inner class
*/"
%javamethodmodifiers Outer::outer_method(int) "
/**
* Outer::outer_method(int)
*/
public";
%javamethodmodifiers Outer::Inner::inner_method(int) "
/**
* Outer::Inner::inner_method(int)
*... | |
doc_21370 | //Possible solution for logging a user in below.
if($result = mysqli_query($db,"SELECT password FROM USERS WHERE password = '". $password ."' AND username = '". $username ."'")){
$count = $result->num_rows;
$accounttype = mysqli_query($db, "SELECT AccountType FROM USERS WHERE username ='". $username."'");
... | |
doc_21371 | [ServiceContract]
public interface IRestServiceImpl
{
[OperationContract]
[WebInvoke(Method = "PUT", ResponseFormat = WebMessageFormat.Xml,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "Execute")]
ExecuteResponse Execute(ExecuteRequest request);
[OperationContract]
[WebInv... | |
doc_21372 |
A: You need to add reference of each dependent dll in ISClrWrap table. e.g.
| |
doc_21373 | result: 1111.22
>>> print('result:%9.2f' % 11111.225)
result: 11111.23
>>> print('result:%9.2f' % 111.225)
result: 111.22
>>> print('result:%9.2f' % 11.225)
result: 11.22
>>> print('result:%9.2f' % 1.225)
result: 1.23
In the above example, you can see that 111.225 and 11.225 are rounded downwards, while the ... | |
doc_21374 | If the variable is set at the page level, then use that.
If it's a blog archive or blog post, then use the blog options settings.
If they're not available, use the theme settings.
if they're not available, use the default.
If it's not a blog, then use the theme settings if available, otherwise, use the hard-coded defau... | |
doc_21375 | Here is my table:
date time res
2021-03-22 10:00:01 20210322100001001
2021-03-22 10:00:02 20210322100002001
2021-03-22 10:00:02 20210322100002002 <=
2021-03-23 10:00:05 20210323100005001
We have a date column, a time column, and a res column.
The date and time are give... | |
doc_21376 |
A: You are actually trying to build a DAG from your infrastructure graph. Note that a directed graph is a DAG if and only if it can be topologically sorted.
So, let's go from the end to the beginning. First create the topological sort, and then connect nodes in a way that obey the sort.
*
*First, remove all "undete... | |
doc_21377 | type Res = Result<(), Box<dyn std::error::Error + Send + Sync>>;
// defined before-hand
pub trait Attr {
fn method(&self) -> Res;
}
// a struct, a block of code provided by user
// which is unknown by far
pub struct S;
// the trait implemented for provided struct
// user does this manually
// which is unknown by ... | |
doc_21378 | Thanks
Example
A: sum(int([class]=“high”)) / count([class])
| |
doc_21379 | This is my echo code:
while($row = mysql_fetch_array( $result )) {
echo "<tr>";
echo '<td>' . $row['id'] . '</td>';
echo '<td>' . $row['fullname'] . '</td>';
echo '<td>' . $row['message'] . '</td>';
echo '<td>' . $row['country'] . '</td>';
echo '<td>' . $row['email'] . '</td>... | |
doc_21380 | <ImportFile Name="32201">Type Action </ImportFile>
I am using xmlbeans to set the value in tags:-
ImportFile importFile = importOption.addNewImportFile();
importFile.setName("Id");
importFile.setStringValue(value);
But by using above all trailing whitespaces get deleted and result in following structure:-
<ImportF... | |
doc_21381 |
A: Reduced sign-on adds another verification mechanism on top of Kerberos.
Reduced Sign On: This concept handles the above scenario by prompting another set of verification when you try to access critical applications. This extra layer of authentication could be any one of below list:
1) Challenge Question
2) Digital... | |
doc_21382 | #weekly correlation
require(ISOweek)
datacfs_date$FeedbackWeek <- ISOweek(datacfs_date$FeedbackDate)
raw_timecor_matrix <- table(datacfs_date$SubCategory, datacfs_date$FeedbackWeek)
raw_timecor_matrix <- t(raw_timecor_matrix)
timecor_matrix <- cor(raw_timecor_matrix)
#Invert correlation to get distance matrix
inverse_... | |
doc_21383 | However, I would like an easy way to save these (as JPG) to a different location (ideally into a Stream or object that can be passed around).
Is it possible using BitmapImage or do I have to use other means? If so what other means are there for either loading an Image and saving as JPG or converting a BitmapImage into ... | |
doc_21384 | If I try to simply remove from parent I get the following warning:
UWidget::RemoveFromParent() called on '/Engine/Transient.UnrealEdEngine_0:GameInfoInstance_C_0.DamageWidget_C_12' which has no UMG parent (if it was added directly to a native Slate widget via TakeWidget() then it must be removed explicitly rather than... | |
doc_21385 | I have read some questions and answers about this, but I can not find a way to implement what I saw in my form, since my knowledge of PHP and Javascript is scarce.
I have added a simple REQUIRED, but as I have read, that is not enough for my purpose.
I show them my HTML, PHP and JS files to see if they give me ideas of... | |
doc_21386 | # PAQUETES
import os
import pandas as pd
import psycopg2 as pg2
entidadinput="00022"
fechainput="202202"
tabla="admcrcd.v_rcd_anexo6"
variables="*"
userRCD=os.getenv('JUPYTERHUB_USER')
con = pg2.connect(user=userRCD,
password="post",
host="172.XX.ABC... | |
doc_21387 | Image image = Image.FromFile(@"/_layouts/15/images/Project/x-mark-3-xxl.png");
As I've said, the link works in the browser (https://servername/_layouts/15/images/Project/x-mark-3-xxl.png) but when I try to get that Image (System.Drawing) it gives me an error. Perhaps I need to do something else? My goal is getting the... | |
doc_21388 | function my_function(req, res, input) {
try {
// This sanitizeInput() function throws error message if input is invalid
sanitizeInput(input);
catch (err) {
res.status(500).json({id:"sql_error",message:err});
return;
}
dbCreateRowPromise(input)
.then(result => {//Handle success})
.catch(... | |
doc_21389 | class post_Wells(UserPassesTestMixin, LoginRequiredMixin, UpdateView):
model = Wellinfo
template_name = 'Home/WELLINFO/detailw2.html'
form_class = NewWells
def form_valid(self, form):
form.instance.author = self.request.user
return super().form_valid(form)
def test_func(self):
... | |
doc_21390 | I am using this doc: https://docs.expo.io/versions/v36.0.0/sdk/google/
A: Expo doesn't provide the button for you. You can use react-native-elements. They have a SocialIcon component, which does exactly what you need. Just give it type={"google"} as a prop.
<SocialIcon
title={"Sign In With Google"}
button={true}
... | |
doc_21391 | I hope someone can help me fix this because this looks awful.
These are mij codes:
<div id ="content">
<form>
<table>
<tr>
<td>
Gebruikersnaam
</td>
... | |
doc_21392 | This operation requires a connection to the 'master' database. Unable to create a
connection to the 'master' database because the original database connection has
been opened and credentials have been removed from the connection string. Supply
an unopened connection.
For reference, I'm using the EF Code First CTP4, im... | |
doc_21393 | This is generally for VBA. Is there a way to stop users doing this, or is it just worksheet protect and cross your fingers?
A: You probably should be more specific on what formulas are you trying to protect: Excel Worksheet formulas of the VBA code?
In general, you can create a custom VBA Add-in (i.e. .xla file) and... | |
doc_21394 | The following code is for the index page where I'll apply the filter.
<nav aria-label="DemandPaging">
@await this.Component.InvokeAsync("Pager", new { pagingList = this.Model.Esas })
</nav>
<nav aria-label="Paging">
<vc:pager paging-list="@Model" />
</nav>
<form asp-controller="Esa" asp-action="Index" method="... | |
doc_21395 | I looked into TaskScheduler and I found examples like,
@Configuration
@EnableAsync
@EnableScheduling
public class MyComponent {
@Async
@Scheduled(fixedDelay=5000)
public void doSomething() {
System.out.println("Scheduled Task");
}
}
Same task happen over and over again in regular intervals. It ... | |
doc_21396 |
At the moment, I fetch data from db using a simple mysql query, eg. select * from my_photos.
I don't know how to do this with jQuery and PHP, so I'd be thankful if you can give me some example.
A: You can use load() like this:
$('#div').load('sections.php #section1');
The #section1 part will filter out sections.php... | |
doc_21397 | I'm developing a chat application that looks like WhatsApp. I need the received messages to be saved on the user's mobile device. Until then everything was ok, because I was saving the messages when the user received the push notification on the mobile, but the problem happens when the application is closed because whe... | |
doc_21398 | jenkinsfile relevant chunk:
tc_test{
repo = 'test1'
folder = 'test2'
submodules = true
refs = params.GitCheckout
}
That results in error
java.lang.NullPointerException: Cannot get property 'GitCheckout' on
null object
This, however, works:
def a1 = params.GitCheckout
tc_test{
repo = 'test1'
... | |
doc_21399 | @using umbraco.MacroEngines
@inherits umbraco.MacroEngines.DynamicNodeContext
@{
//Check the currentpage has a value in the property 'photos'
if (Model.HasValue("sliderImages"))
{
var MediaFolder = Library.MediaById(Model.sliderImages);
<ul>
@foreach (var photo in MediaFolde... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.