id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_33300 |
<select>
<option>
testing
</option>
</select>
<select>
<option>
testing
</option>
</select>
A: There are a few ways to resolve this - one solution would be to use flex-box to remove this spacing by adding the following CSS to your document:
<!-- Add this styling -->
<style>
body {
... | |
doc_33301 | Any help would be appreciated.
A: As moteus observes, winapi can access the registry, among other useful things.
https://github.com/stevedonovan/winapi
There are .bat files for building with mingw and MVSC - look at the link in the summary for the online documentation.
| |
doc_33302 | <?php
include 'database.php';
$pdo = Database::connect();
$sql = 'SELECT * FROM products ORDER BY product_id DESC';
foreach ($pdo->query($sql) as $row) {
echo '<tr>';
echo '<td>'. $row['cat_id'] . '</td>';
echo '<td>'. $row['brand_id'] . '</td>';
echo '<td>'. ... | |
doc_33303 | ~/current/directory git-branch*
$ echo 'hello...
A: short: no, there's no such command.
long: you could write a script. Here's a brief introduction to the topic.
The clear program clears the whole screen. Your shell will draw a new prompt (at the top of the newly cleared screen). But suppose that you wanted to cle... | |
doc_33304 |
A: Not sure if I understand your requirement correctly but this might be the direction for you.
Since by default all objects are private, basically you generate a pre-signed URL and share with the intended users for them to download the objects within the time
All objects by default are private. Only the object owne... | |
doc_33305 | And its integrated successfully with my website.
But i need to resize the google maps according to the circle's radius. Means i need to show the google map covered by that circle.
Right now my container's size is height :600px; and width : 700px;
and circle's radius is 10000 i.e 10km.
but i need to increase the contain... | |
doc_33306 |
A: In C++ an object always has a fixed size. If constructors can add members at runtime, that guarantee goes out the window. In addition, in C++ all objects of the same type have the same size. Since a class can have multiple different constructors, the different constructors could specify different sizes.
This single... | |
doc_33307 | I thought mutate_if would work, but I get an error (below). mutate_each works, but for all columns rather than the select few.
For example, I were looking to lag only the Sepal measurements:
iris %>%
tbl_df() %>%
group_by(Species) %>%
slice(1:3) %>%
# mutate_each(funs(lag(.)))
mutate_if(contains("Sepal"), f... | |
doc_33308 | Here is my code
$width = 100; //*** Set a Fix Width & Height (Auto caculate) ***//
$size = GetimageSize($images);
$height = round($width * $size[1] / $size[0]);
$images_orig = imagecreatefromjpeg($images);
$photoX = ImagesX($images_orig);
$photoY = ImagesY($images_orig);
$images_fin = ImageCreateTrueColor($width, $heig... | |
doc_33309 |
Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre6\bin;....
A: They're not related, the message is just a warning...
It's not saying JRE was not found. It just mentions where did it look for Apache Native, which ... | |
doc_33310 | I can make him jump but only once.
Heres the javascript:
document.addEventListener('keydown', function(event) {
const key = event.key;
switch (key) {
case "ArrowUp":
document.getElementById('player').style.animation = "playerJump 0.75s"
}})
It works but only once i want to know how to make the ev... | |
doc_33311 | <?php
session_start();
$_SESSION[some_value] = 1;
?>
<img src="image.php" alt="some image"/>
<?php
$_SESSION[some_value] = 0;
?>
my image.php file i have look like ( basic code ) :
<?php
session_start();
header("Content-Type: image/png");
$im = @imagecreate(400, 20)
or die("Cannot Initialize new GD im... | |
doc_33312 |
A: No, there is nothing provided. For e4 you can only use the SWT and JFace dialogs, anything else you will have to write yourself.
| |
doc_33313 | Last night I received the 403 error that said my daily quota has been exceeded. If I look at the chart under quotas in the developer console, it says there was 10,000 requests yesterday. This is totally impossible as I am only using this locally.
Here is the quota chart
If I click on credentials in the left hand menu ... | |
doc_33314 | Does anyone how to do this?
A: As AdSense publisher currently there is no way to force only AMP ads serving. AdSense publishers get regular HTML5 ads. Can you elaborate on why you want to get AMP ads on your non-AMP website?
| |
doc_33315 |
A: My work-around is:
*
*Generate Docbook xml file with changes:announcement-generate an a custom velocity template.
*Generate PDF file with docbkx-maven-plugin.
| |
doc_33316 | So far I have a map reference that looks something like this:
my $object;
$object = {
'code1' => sub {
print $_[0];
},
'code2' => sub {
return 'Hello, World!';
},
'code3' => sub {
$object->{code1}->($object->{code2}->());
}
};
$object->{code3}->();
I would like to be abl... | |
doc_33317 | public class MainClass extends Activity {
// ...
btn1 = (CustomButton)findViewById(R.id.button_one);
btn2 = (CustomButton)findViewById(R.id.button_one);
btn1.ignoreMotionEvent(true);
btn2.ignoreMotionEvent(true);
// ...
@Override
public boolean onTouchEvent(MotionEvent event)
{
if(r1 == null)
{
//r1 a... | |
doc_33318 | Document document = DdlReader.DocumentFromString(ddl);
_renderer = new DocumentRenderer(document);
_renderer.PrepareDocument();
than the EZFontResolver is being asked for fonts with names like "customfont|b|b" (it doesn't happen when I use only PdfDocument.Save(...)) instead of "customfont".
My pdf viewer overrides Do... | |
doc_33319 | However, when i try to count the total no. of comparisons made, it shows incorrect count.
I am counting through the global variable tot_comparisons.
Suggestions,where am i going wrong ?
Is there some silly error that i am making?
def swap(A,i,k):
temp=A[i]
print "temp is "
print temp
A[i]=A[k]
A[k]=... | |
doc_33320 | We've run into issues with play's asset routes when we've been using submodules.
It's well documented how to create a new task, but how do I call a task on a subproject?
A: Based on the example by Jacek Laskowski I've come up with the following plugin that should be placed in your /project folder:
import sbt._
import ... | |
doc_33321 | [Sin,S2,S3,...,Sout]
and following rules:
*
*it is possible to go back from S(n) to S(n-1) if there is such
S(n-1)
*it is not possible to go back from S(out)
*a sentence always begins with S(in) and ends with S(out)
I would like to have a rule that could be activated like this:
?- sentence(X, backs)
in which... | |
doc_33322 | can i make page flipping in pure CSS?
This is a small snippet of the code
function drawFlip( flip ) {
// Strength of the fold is strongest in the middle of the book
var strength = 1 - Math.abs( flip.progress );
// Width of the folded paper
var foldWidth = ( PAGE_WIDTH * 0.165 ) * ( 1 - flip.progres... | |
doc_33323 | Here's the code for one of the buttons:
a4.addEventListener('click', function()
{
//makes sure all the other buttons aren't chosen
var button = document.getElementsByClassName('unchosen');
for (var i = 0; i < button.length; i++)
{
button[i].classList.remove('chosen');
}
a4.class... | |
doc_33324 | My questions for the experts are:
1. Is my research correct? Is PHP/XMPP only one-way?
2. Is there any way to go around this problem with PHP?
3. Does Ruby on Rails have the same issue, or does it work with XMPP in a "two-way" manner?
Thanks a lot, I appreciate any help on this!
Cheers
A: It sounds like you are t... | |
doc_33325 |
*
*date picker is wrapped up in form so when its hit it doesnt act like numerous pickers and navigate to picker only screen instead it creates datepicker view within the list is there a way to navigate to it or at least resize it to a smaller size
A: You can create your custom year picker by using a simple Picker ... | |
doc_33326 | Now the issue is after printing n words, I have to print all the ties at the last position
for instance if I printed 10 frequently used words based on the highest count
and the output comes like this when I use a for loop.
CODE
int listSize = newList.size() >= 10 ? 10 : newList.size();
for (int k = 0; k < lis... | |
doc_33327 | A:
{
"user_token": "test",
"accounts":{
"any_key":[0, 1]
}
}
or this
B:
{
"user_token": "e29a64c4c9f08414cc2999a0166664f8",
"accounts":{
"some_other_key":[0, 1]
}
}
but not this
C:
{
"user_token": "e29a64c4c9f08414cc2999a0166664f8",
"accounts":{}
}
it should basically accept an object under accounts th... | |
doc_33328 | Consider this simple example:
A vector contains objects of type A.
An object of class B must reference an A object that resides in the vector. (Edit for clarification - class B must have a member that references the A instance)
Back in the day you would just declare an A* and be done with it, but how would one do it t... | |
doc_33329 | If I run the following function
var result = await UserManager.CreateAsync(newUser, "");
It will ofcourse complain the password is not valid.
Is there a way I can temporarily ignore the password requirement so I can create my users?
Notes:
private ApplicationUserManager _userManager;
public ApplicationUserManager ... | |
doc_33330 | PS> dir *.ext | Convert-xyz
Here's what I tried below. Except, it only processes the first item listed by dir *.ext and then exits.
function Convert-xyz {
[CmdletBinding()]
param(
[Parameter(Mandatory=$True,
ValueFromPipeline=$True,
ValueFromPipelineByPropertyNam... | |
doc_33331 | This is my pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframewo... | |
doc_33332 | @-webkit-keyframes aaa {
to {
background: red;
}
}
input:checked + div {
-webkit-animation-fill-mode: forwards;
-webkit-animation-name: aaa;
-webkit-animation-duration: 1s;
}
div {
width: 100px;
height: 100px;
background:blue;
-webkit-animation-fill-mode: forwards;
-webkit-animation-name: aaa;
... | |
doc_33333 | I have data with one column for the date (everyday from 1998 to today) and one column for the prices.
What I want to do is for every year, on the same day as today, show what was the price, on a different excel sheet.
For example : if today is 28/08/2018, I want to know what was the price on 28/08/2017, 28/08/2016,..... | |
doc_33334 | <div class="bigfont-m capsletter"></div>
<div class="headfont6 text-overhide"></div>
Is it possible to select both at once and use the .wrap() JQuery method ?
I know about the multiple selector (,) but not working on my side.
What I want is the new div to be like that
<div>
<div class="bigfont-m capsletter"><... | |
doc_33335 | The problem is, I have three templates for three kinds of clients, and I want to use different templates for my directive based on the result of client type after detection
The results I found after Googling was all about adding attributes to the directory tag, but by the time I have detection result ready, the templat... | |
doc_33336 | Say I have a signed 16 bit hexadecimal in 2's complement representation
for example, take 0xfaa
if it's 16 bit, i need to expand it cause it only has 12 bits now. I know i have to expand the left side, so it'd be made into 0xffaa.
that means that my number is negative, is that correct?
A: If I understand your question... | |
doc_33337 | taken definitions of CPU usage and load from here and the corresponding metricbeat fields from here:
*
*CPU usage:
CPU usage is a measurement, in a percentage, of how much time the CPU spends actively
computing something.
available on system.cpu.system.pct
this picture shows how much time my host's CPU cores were ... | |
doc_33338 | Normally when I do changes on my Ubuntu computer I push to master by:
git add .
git commit -m "message"
git push
And everything works fine. Then I simply do:
git push origin master:production
And everything works fine. But now for some reason when I do the 'git push origin master:production' in Terminal I get the mes... | |
doc_33339 | Sorry for not being able to post the image... Click this link
Now, there is a cookie provided by the webserver called TrackingId (It seems to be a session cookie with random value), and I used this cookie for Blind SQL injection.
At first time, I input 1' OR 2=1 -- %20 for TrackingId cookie value. And after reloading ... | |
doc_33340 | * sha0 *
| ... ~50 commits | ... ~50 commits
* *
* sha1 --> * sha1
|\ * sha2
* * *
* |\ ...
|/ *
* |
* /
| /
|/
* sha2
*
...
What's the best way to go about doing... | |
doc_33341 | The only issue is, the image rendered from YouTube video is too small. I checked the source and this what I have: .../blablabla/default.jpg. Is there a way to replace the default.jpg to maxresdefault? I need the thumbnail to be in hi-res.
A: In the widget code, you will have to add an extra replace directive to the me... | |
doc_33342 | import React, { useState, useEffect } from "react";
import "../styling/ClassGrades.css";
import { Bar } from "react-chartjs-2";
import Axios from "axios";
function ClassGrades() {
let studentsArray = [];
useEffect(() => {
Axios.get("http://localhost:1337/api/getStudentsFromClass", {
params... | |
doc_33343 | onClick(obj, index) {
if (data.chosenBets[index]) {
// Remove object.
data.chosenBets.splice(index, 1);
} else {
// Add object.
data.chosenBets.splice(index, 0, obj);
}
}
This does not trigger a re-render in my UI. How do I update the array (in the same way as above) while triggering a re-render... | |
doc_33344 | EDIT:
I want to reduce my UIImageView’s size and get about this result:
How can I accomplish this in the storyboard and not use any code?
my UIViewController in storyboard:
A: This can be achieved with auto-layout, which means no code. You need to adjust the constraints depending on the size of the screen. This is ... | |
doc_33345 |
A: An interrupt is handled by the executing process. If Fred's process is running while the CPU gets an interrupt caused by Bill's process reading this disk, Fred's process handles Bill's interrupt. After the interrupt handler is finished, it executes an INTERRUPT RETURN instruction (exact name varies among systems) a... | |
doc_33346 | Can some one please let me know how to do in cocoa or objective C
Any help is much appreciated.
Thanks.
A: Use CFUUIDCreateFromString() to convert the string to a CFUUIDRef, then use CFUUIDGetUUIDBytes() to get at the raw bytes.
A: Below is the code helped me to resolve the issue.
NSString *str3 = @"16433D43-C5DC-43A... | |
doc_33347 | when I load a certain 3d model my scene looks like this ,
but without the model ,the background looks like this (after enabling alpha true and changing the bg of the canvas to a gradient)
the object im trying to load is this,
Im assuming it has something to do with the camera angle or object scale ,Below is my compl... | |
doc_33348 |
System.InvalidCastException:
MyApplication.cs
public class MyApplication : Application
{
public MyApplication(IntPtr handle, JniHandleOwnership ownerShip) : base(handle, ownerShip)
{
}
public override void OnCreate()
{
base.OnCreate();
getDataFromDB();
}
public void get... | |
doc_33349 | Is there any way I can do that?
A: I don't believe you can halt redrawing entirely, however, for big batch processes I always make sure to do togglePalettes(); before and after the main code execution. This will hide all the tool palettes which should speed things up a bit by avoiding updating them while your script r... | |
doc_33350 | My current code (without what I want here) is availlable on GitHub: https://github.com/crakmaniaque/trouvezmoi
What I want is to create a version of my game which will be timed, so the computer generates numbers, the user finds it, it generates a new one and the player have 90 seconds to find a max lot of random number... | |
doc_33351 | Currently I am doing it using the following:
!$User.FirstName} {!$User.LastName}
Is there any way I can display the User's Account as well using this without writing SOQL.
I would not like to create a controller just to display the user's account and am hoping there is a simpler and easier way using just Visual force.... | |
doc_33352 | Thank you very much for every reply.
A: The very link that you gave to the OpenCV docs tells what algorithms are used:
INPAINT_NS Navier-Stokes based method.
INPAINT_TELEA Method by Alexandru Telea [Telea04].
Here are links to papers on the two methods used
http://iwi.eldoc.ub.rug.nl/FILES/root/2004/JGraphToolsTelea... | |
doc_33353 |
Is this some kind of bug or they just made it wrong?
Shouldn't the dark gray be DARKER then the default grey?
HTML
<div class="lightgrey">Light Grey</div>
<div class="grey">Grey</div>
<div class="darkgrey">Dark Grey</div>
CSS
.lightgrey {background: lightgrey}
.grey {background: grey}
.darkgrey {background: darkgrey}... | |
doc_33354 | Assume that in 'column A' of 'Worksheet B' a new entry is added under 'Client Name' = "John Smith"
Upon data entry in column A, I want an action where 'Worksheet A' is duplicated
I'm trying to keep it basic here so that maybe I can get some help with the framework of the script and do the rest myself.
A: try like thi... | |
doc_33355 | #1273 - Unknown collation: 'utf8mb4_unicode_520_ci'
What can I change the collation to that will allow it to submit successfully and work correctly with WP? and is that one of a few options or the only option to take?
Additional Info:
I am copying from a Server version: 5.6.32-78.0-log to a Server version: 5.5.43-37... | |
doc_33356 | In my Startup.cs -> Configure(IApplicationBuilder app, IWebHostEnvironment env) I've added:
// localization
app.UseRequestLocalization(options =>
{
// get the cultures from app-setting
var supportedCultures = Configuration.GetSection(Constants.Configuration.Keys.Cultures).GetChildren().ToDictionary(c => c.Key, ... | |
doc_33357 | However, when I attempt to package my project, I get the following error:
LogUObjectHash: Compacting FUObjectHashTables data took 0.88ms
LogMainFrame: Selected target: HoloLensTest
LogLauncherProfile: Unable to use promoted target - ../../../../../../Users/sealfoss/Documents/Unreal Projects/HoloLensTest/Binaries/Holo... | |
doc_33358 | I do not want to use the "Save" button on the ckeditor toolbar to submit my form. Is there a workaround to make the submit button work? Tried googling out for possible solutions but could not find any.
P.S: I would also like to know if there are other html text editors like ckeditor that would work well with symfony2 ... | |
doc_33359 | My leaflet map works fine in Rstudio viewer. However, when the 'knitted' page is viewed in Firefox, no OSM map tiles appear although other components of the map are okay. Similarly OSM tiles missing in saved html widget.
I made a simple example to demonstrate.
```{r}
library(leaflet)
library(htmlwidgets)
rand_lng = f... | |
doc_33360 | First, i've read for 2 hours trying to implement the title one, with suggestion from another article here.
I have this line working for many months getting my current URL (i use it for "copy link to this page" button)
$url = 'https://'."{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}";
$escaped_url = htmlspecialchar... | |
doc_33361 | I also need to find the exact row in case I don't have the User ID available, so I made another column "id" and made it as a global secondary index.
In my case, should I make the "id" column the primary key and remove the "userId" as the partition key or will this remove the feature of what "Partitioning" actually does... | |
doc_33362 |
WARNING: Logging before flag parsing goes to stderr.
W0617 03:18:36.916876 139928036104064 deprecation_wrapper.py:119] From
/usr/local/lib/python3.6/dist-packages/keras/backend/tensorflow_backend.py:74:
The name tf.get_default_graph is deprecated. Please use
tf.compat.v1.get_default_graph instead.
W0617 03... | |
doc_33363 | Show the algebraic simplification of ab(!c) + !ab(!c) to b(!c).
A: I have created three variables as per your needs and have chosen random values.
boolean a=true;
boolean b=false;
boolean c=true;
boolean res1;
boolean res2;
boolean final_Res;
res1=(a && b) &&(!c) || (!a && b && !c);
res2=(b && !c);
final_Res=res1==... | |
doc_33364 | Which has 12 columns with variable names and 24 rows df
Like:
Var1 Var2 Var3 Var4 Var12
1 NA 2 3 4
5 6 2 3 3
NA 7 8 NA 4
And I want to calculate the mean for each column while ignoring the Na's
For example:
colMeans(df)
And get the result like:
Var1 Var2 Var3 Var4 Var12
3 ... | |
doc_33365 | https://github.com/rq/django-rq#support-for-rq-scheduler
task = scheduler.schedule(
scheduled_time=datetime.utcnow(), # Time for first execution, in UTC timezone
func=func, # Function to be queued
args=[arg1, arg2], # Arguments passed into function when executed
kwargs={'... | |
doc_33366 | set list1 "1 2 3 4 5 6" ##line 1
set list2 {1 2 3 4 5 6} ##line 2
are these two lines both declare a list?
what is the difference between them?
A: In your specific example, there is no difference.
Neither really declare a list, as you cannot really declare a list in Tcl. But both set your variables to a valid list re... | |
doc_33367 | I used this line of code to set the path:
private static pdftron.PDFNetLoader loader = pdftron.PDFNetLoader.Instance().Path(String.Format(@"{0}\{1}",
System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetAssembly(typeof(IndexUIZoom)).Location), @"PDFNet"));
I got this error every time (bin is where the... | |
doc_33368 | pub trait Test {
fn mk_pair(self) -> (Self, Self)
where
Self: Sized + Clone,
{
(self.clone(), self)
}
}
impl<T> Test for T {}
pub fn testy<T>(x: T) -> (T, T)
where
T: Clone,
{
x.mk_pair()
}
Silly example but as you can see I can now call x.mk_pair() instead of mk_pair(x). Prob... | |
doc_33369 | I realized that the method does not use the session created by the attribute. What should I do to make it use that one ? Any suggestions are greatly appreciated.
public class ValuesController : Controller
{
private readonly IRepository _repository;
public ISessionContainer NHibernateSession { get; set; }
p... | |
doc_33370 | String[] strs = new String[]{"15158133110", "15158133124", "15158133458"};
JComboBox com = new JComboBox(strs);
A: You need to create a Renderer then apply it to the JComboBox
DefaultListCellRenderer dlcr = new DefaultListCellRenderer();
dlcr.setHorizontalAlignment(DefaultListCellRenderer.CENTER);
com.setRendere... | |
doc_33371 | I am aiming for the rows to lock when the select command executes. This code block executes without any errors, however the rows do not lock during the lifespan of the transaction. Are these hints supported or is there a way that this can be done?
This is the Visual Studio code. I will be adding update commands at a la... | |
doc_33372 | I am having an issue where the True or False value passed into the automation in step 7 via the validPassword variable is not getting resolved when passed into Step 8. Instead, only the Automation variable identifier is passed ({{CheckNewPassword.validPassword}})".
Does anyone know why this is this happening? I assume ... | |
doc_33373 | I want all the datetimes like '2021-10-27 04:55:00.000' to show the hour data, so: '2021-10-27 04:00:00.000'
What query do i run to get this?
Thanks in advance!
A: Use date maths and a "magic" date:
DATEADD(HOUR,DATEDIFF(HOUR,0,YourColumn),0);
This gets the number of hours between the "date" 0 (1900-01-01) and your d... | |
doc_33374 | master
|
v
A--B--C--D--E--F--G
\
\
H--I
^
|
feature
I was working on the feature branch and once I was done, I merged into master. This resulted in merge conflicts that I had to fix manually ... which I thought... | |
doc_33375 | and I am trying to keep one row per minute using the following query:
delete bt
from table1 bt
join (select date, min(time) as time
from table1
group by date, hour(time), minute(time)
)
btt
on btt.date = bt.date
and hour(bt.time) = hour(... | |
doc_33376 |
A: This is my stab at it: https://github.com/Koolistov/Image-Cache
A: I found this one the best > HJCache.
A: If you're loading them from disk, just check out the UIImage api:
http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIImage_Class/Reference/Reference.html
... for example:
[UIImage imageW... | |
doc_33377 | Refer this URL
http://www.washingtonpost.com/opinions/narendra-modi-and-barack-obama-a-us-india-partnership-for-the-21st-century/2014/09/29/dac66812-4824-11e4-891d-713f052086a0_story.html
The adsense ads are showing after some content
I am wondering is there any div or css class to find out center of the page to s... | |
doc_33378 | Issues that I face (BTW just started learning ExtJS and Rally SDK yesterday):
- I need to understand how can I use the currently selected project as the one sued in the grid as a filter
- how should a test set pass/fail totals be queried and then displayed in a column in the grid - example : Test set 123 | 45/70
... | |
doc_33379 | Input the command and reload the special page
tail -f /var/log/php-fpm/error.log
then got the error:
[26-Aug-2014 14:12:58] WARNING: [pool www] child 5622 exited on signal 11 (SIGSEGV) after 14.420797 seconds from start
[26-Aug-2014 14:12:58] NOTICE: [pool www] child 5635 started
At the same time the nginx error log ... | |
doc_33380 | my code is as undergiven
https://onlinegdb.com/aYdKFJSTy
i tired researching on various sites and with my collegues but no one was able to fnd the solution as we all are new to c and are in early learning phase
A: ok so firstly, you should stop posting a complete 900 lines of code and just give a snippet code of the p... | |
doc_33381 | Currently I can think for writting middleware in next.js for checking that, but getting window is not defined in console.
in _middleware.ts file
declare let window: any
export function middleware() {
if (typeof window === 'object' && window.ethereum) {
console.log('HAVE METAMASK')
window.ethereum.on('account... | |
doc_33382 | Lets start with the basics: what I need to do.
I'm building a web application that manipulate some data, do some computation and give the user an output. There will be also a standalone version, with some simplifications.
So I thought this is the right time to use EAR packaging structure and EJB. I've created with netb... | |
doc_33383 | My problem is that I would like to play some chunk1, and then play second iteration of chunk1 overlapping the first. I am trying to play a single chunk in rapid succession, but it instead plays the sound repeatedly at a much longer interval (not as quickly as I want). I've tested console output and my method of playing... | |
doc_33384 | import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable, Subject } from 'rxjs';
import { catchError, map } from 'rxjs/operators';
import { User } from '../shared/user';
import { baseURL } from '../shared/baseurl';
import { ProcessHTTPMsgService } from './proce... | |
doc_33385 | {
"url": "***/releases/1491",
"assets_url": "***/releases/1491/assets",
"upload_url": "***/releases/1491/assets{?name,label}",
"html_url": "***/releases/tag/1.0.6",
"id": 1491,
"tag_name": "1.0.6",
"target_commitish": "release-1.0.6",
"name": "1.0.6",
"draft": false,
"prerelease"... | |
doc_33386 | import some
some_copy = some
print some.version # v1.0
# modify code and reload package
# ...
print some.version # v1.1
print some_copy.version # v1.0
So I want to have two different versions of module/package running simultaneously (in one process).
A: Assume you have two scripts. The first, called some.py like ... | |
doc_33387 | on: push
jobs:
runner-job:
runs-on: ubuntu-latest
services:
postgres:
# Github Registry image here
image: ghcr.io/orgname/reponame:tag
But we are getting an unauthorized error, which is normal, becuase the registry is private. Is there some way to login? I have not found any way or doc... | |
doc_33388 | In the logs this showed up:
java.lang.RuntimeException: com.intellij.util.io.PersistentEnumeratorBase$CorruptedException: PersistentEnumerator storage corrupted /home/francesco/.cache/JetBrains/IdeaIC2021.3/caches/names.dat at com.intellij.util.ExceptionUtil.rethrow(ExceptionUtil.java:132) at com.intellij.openapi.vf... | |
doc_33389 | Sorry if this is a non-sensical question, I had no experience working with Linux drivers until two days ago and Google has been my greatest teacher so far! Thanks
| |
doc_33390 | This is my controller:
import_file($this->css,
array('colorbox.css',
'jquery.timepicker.css',
'calender/default.css',
'calender/default.time.css',
'calender/default.date.css',
'responsive-tables.css'));
import_fil... | |
doc_33391 | <int-http:inbound-gateway id="someId"
request-channel="queue-channel"
reply-channel="reply-channel"
request-payload-type="java.lang.String"
supported-methods="POST"
... | |
doc_33392 | Can anybody help me as how to do this..?
How to add CVS in eclipse..?
A: *
*Right click on Project and choose Team -> Share Project
*Select a repository type(for your needs CVS)
*Create new/use existing repository location and do accoriding to a wizard
see this!
A: I'm not sure if I know what you mean, but... Yo... | |
doc_33393 | When I do the manual scale-out from 1 instance to 2 instances. it costs about more than 30 minutes and I think it is too slow.
My questions:
*
*What reasons are effecting to the scale time? (number of resources, apps?)
*What can I do to reduce the manual scale time? ( I mean the best practice of configuration)
*If ... | |
doc_33394 | Please suggest me best approach here
Also provide me below information:
*
*What is the no. of Services (end points) can Docker/ AWS ECS Container can support ?
*Is there any limit on exposing the endpoints from the same?
*How can we increase or decrease it?
*Is there a way to check the status of no. of supported ... | |
doc_33395 | f = open('file.txt','r')
for line in f:
if line.find("N2:42.61.0.69")
print line
The pattern that I am trying to match is "node number":"IP address", where
"node number" is the alphabet 'N' followed by a 'number'. Such as N23, N456, N98765, etc.
I used the pattern N2:42\.61\.0\.69, but it didn't yield any... | |
doc_33396 | Suppose I have the following relationships:
model C - FK -> model B - FK -> model A
model C - FK -> model R - FK -> model T - FK -> model Z
Given an instance of model A how can I get all Zs associated with it?
One approach (that I think is working - but not very efficient) is as follows:
class A(models.Model):
@pro... | |
doc_33397 | Array: (
{
claveTipo = 15;
color = Azul;
patron = "A Rayas";
prendas = (
{
claveTipo = 15;
color = Azul;
patron = "A Rayas";
precio = 25;
tipo = BUFANDA;
},
{
claveTipo = 1... | |
doc_33398 | USE MyFakeDB
GO
DECLARE @month VARCHAR(16)
SET @month = 'October2021'
;
DECLARE @cmd VARCHAR(8000)
, @sql NVARCHAR(max)
, @return INT
, @filepath VARCHAR(512)
, @servername VARCHAR(255) = @@ServerName
, @username VARCHAR(255) = 'me'
, @password VARCHAR(255) = 'password1234'
, @dbname VARC... | |
doc_33399 | def otherImages(self):
self.wfile.write(bytes("<div id='menu_button'><a href='/narrow'><img src='../images/menu_button.png'></a></div>", "utf8"))
#^word I want to replace
def contentList(self, skip_name=''): # All content methods in list
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.