id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_14600 | I have a page on my site which allows users to upload photos to the website. I have a particular user who says its taking around 2 minutes to upload a photo. However, when he uploads the same photo onto flickr, it takes about 20 seconds. He has provided me with the photo, I have logged into his account and used the sam... | |
doc_14601 | The problem is that the facebook login dialog has no cancel button.
What is the recommended approach for offering a "post to facebook" button, yet getting the user safely back to my app if they change their mind?
Many thanks.
A: If you are referencing source and not the bundle, you need to include the close.png. It l... | |
doc_14602 | lets call them t1 and t2
and i want to show data from both of them BUT they may have identical rows (lets say these rows have the same id )
in that case i only want to get the row from table 1 and ignore the one from second table .
so
SELECT column_name(s) FROM t1 UNION SELECT column_name(s) FROM t2
but how should i... | |
doc_14603 | The stylesheet applies a font-family style to a certain class, but I want that class to defer to the globally defined font.
So this is how the inheritance is working:
style.css:383
div#main-superfish-wrapper ul {
font-family: Georgia,"Times New Roman",Times,serif;
}
style.css:10
body {
font-family: Droid Sans;
}
... | |
doc_14604 | I calculate:
`this.maxBounds = new L.LatLngBounds(L.CRS.Simple.pointToLatLng(southWestPoint,
this.maxZoom),
L.CRS.Simple.pointToLatLng(northEastPoint,
this.maxZoom));`
where southWestPoint is (0, -700) and northEastPoint is (1162, 0). In LatLng, this corresponds to (0,0) and (21.8, 36.3), all of which once again se... | |
doc_14605 | RelativeLayout inner=new RelativeLayout(this);
inner.setBackgroundColor(Color.RED);
outerLayout=new RelativeLayout(this);
ScrollView scroll=new ScrollView(this);
TextView qty=new TextView(this);
qty.setId(1111);
inner.addView(qty);
qty.setTextColor(Color.WHITE);
qty.setText("Qty");
setContentView(o... | |
doc_14606 | In my app, I have to load data from mysql using jquery using jQuery. The amount of data is huge. I have 3 tabs and data in each tab is linked with each other based on selection. Below is the screenshot,
Data loading Tabs
In the first tab, got about 5k rows, second got 20k and third got about 50k rows. I wrote the whole... | |
doc_14607 | @Component
public class Worker {
@Scheduled(fixedDelay = 100)
public void processEnvironmentActions() {
Job job = pickJob();
}
public Job pickJob() {
Job job = jobRepository.findFirstByStatus(Status.NOT_PROCESSED);
job.setStatus(Status.PROCESSING);
jobRepository.save(jo... | |
doc_14608 | I'm searching for something similar to
#ifdef DEBUG
Can't find anything in the cocoapods docs.
A: Looks like it's scheduled for next release. See here:
https://github.com/CocoaPods/CocoaPods/issues/731
A: There is an issue on the CocoaPods github that is discussing the ability to dynamically link a pod based on the ... | |
doc_14609 | In my application I have several pop ups to be shown and each has
different UI layouts so it was difficult to code everything and during my
search to make my coding life easier, I
stumbled upon QUiLoader and thought it would make it easier. But
here is the problem:
I have created a QDialog class with a
setD... | |
doc_14610 | geoip_time_zone_by_country_and_region()
but seems it needs geoip ext to be installed which is not supported anymore
and seems geoip2 just works with IP but I want to get the timezone by country and region(state) name
is there any solution?
I'm using Laravel 9 and PHP 8.1
A: 2 choices
Get free versions of maxmind geoi... | |
doc_14611 | I'm trying to do the following rewrite rules:
http://website1.com/ --> /website1/ (static)
http://website2.com/ --> /website2/ (static)
http://website1.com/app/ --> http://localhost:8080/web-app/web1/
http://website2.com/app/ --> http://localhost:8080/web-app/web2/
The user will be redir... | |
doc_14612 |
A: You can create a VIEW that contains the count and has other permissions than the table;
CREATE VIEW ReviewCount AS SELECT COUNT(*) FROM Reviews;
This view will have the read access of the defining user, and you can hide the underlying table from the other user, while he can still use the view to get the count.
The... | |
doc_14613 | array(
array('label'=>'Home', 'url'=>array('site/index')),
array('label'=>'About', 'url'=>array('/site/page')),
array('label'=>'Contact', 'url'=>array('/site/contact')),
)
But if I am clicking on an item, it doesnt get the class active.
I am using the urlmanager and url paths.
I still dont know whats going wr... | |
doc_14614 |
Expected Output:
myvar desc fname lname sdate edate id
title1 desc1 cina jhon 1483920000000 1484524800000 14
title2 desc2 jhon lname2 1483920000000 1483910000000 16
title3 desc3 diesel zier 1483920000000 1484524800000 17
SELECT * FROM cro... | |
doc_14615 | <class name="Person" table="person">
<id name="uid_" type="java.lang.String" column="uid">
<generator class="native" />
</id>
<property name="name_" type="java.lang.String" column="pName" />
<property name="age_" type="integer" column="age" />
<property name="birthday_" type="date" column=... | |
doc_14616 | SoapObject results = (SoapObject) envelope.bodyIn;
result = results.getProperty("getAlertsResult").toString();
the result string is below. How can I get single alert message, name and priority from the soap object? Thank you.
anyType{schema=anyType{element=anyType{complexType=anyType{choice=anyType{element=anyType{co... | |
doc_14617 | select t.columna1,(sum(v.val::float) as suma from t
cross join lateral unnest (string_to_array(columna2,',') as v(val)
group by t.columna1;
in the first one, together with the user_id and I see who is in the pos_payment table
SELECT DISTINCT pos_payment.pos_order_id, pos_order.user_id, SUM(pos_order.amount_paid) FROM ... | |
doc_14618 | yarn is not working when I'm off network. can any one help me out?
A: Yarn by default works in online mode, unless it is launched using its offline switch.
yarn install –offline
However, the above command works only when yarn is preconfigured with a offline cache. the below commands will help to get it done.
*
*ya... | |
doc_14619 |
A: Elasticsearch doesn't have any API that copy only mappings, so you would need to first get your mapping for bishkek index and create new index based on the mapping. To get the mapping you can run this GET Request.
GET /bishkek/_mapping
After getting the mapping you create your new Index:
PUT /bishkek_v2
{
"mappi... | |
doc_14620 | i.e. on Tuesday, the reporting needs to show Mondays invoices.
Is it possible to create a string whereby dates are automatically set.
So far I have realized that DateAdd exists :)
I have created this.
SELECT * FROM [CData].[MYOB].[SaleInvoices] where Date>DATEADD('d', -1, CURRENT_DATE())
But this returns all the inv... | |
doc_14621 | from tkinter import Tk, Label, Button
from tkinter import *
from tkinter.ttk import *
class One:
def __init__(self, master):
self.master = master
master.title("Test")
self.greet_button = Button(master, text="Test", command=self.do)
self.greet_button.pack()
def do(self):... | |
doc_14622 | Situation: I have already created the simple terraform script to create some Bigquery datasets, tables, views and an IAM entries also. Especially, I create two datasets (source_dataset and target_dataset), some tables in the source_dataset and views in the target_dataset, which are based on the source_database. The clu... | |
doc_14623 | It works fine if I'm using the in-memory broker. I really appreciate your help on this, and the following is the sample code.
Broker: Amazon MQ (uses Active MQ internally)
version: 5.15.0
WebSocketConfig.java
@Override
public void configureMessageBroker(MessageBrokerRegistry registry) {
registry.enableStompBrokerR... | |
doc_14624 | var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/html'});
var mysql = require('mysql');
var con = mysql.createConnection({
host: "localhost",
user: "root",
password: "123",
database: "mydb"
});
con.connec... | |
doc_14625 | Include it to other .xhtml like:
<ui:composition template="/template/templ.xhtml">
Define conditionals in templ.xhtml like:
<h:head>
<h:outputText value="<!--[if lt IE 8]><h:outputStylesheet library="css" name="styleie8.css" /><![endif]-->" escape="false" />
</h:head>
styleie8.c... | |
doc_14626 | I haven't figured out an answer from any of the tutorials,
So of someone could explain this to me as simple as possible, and tell me what I am doing wrong, I would greatly appriciate it.
Here is my class - the goal fpr this simple class is to add
1 to any number given to it, in this case that number is 5.
class do_mat... | |
doc_14627 | ssh 10.1.18.135 java -jar D:/Jenkins/slave.jar
The slave.jar is present in the above path, It fails with this error:
[07/01/13 14:16:11] Launching slave agent $ ssh 10.1.18.135 java -jar
D:/Jenkins/slave.jar The system cannot find the file specified ERROR:
Unable to launch the slave agent for test123 : T... | |
doc_14628 | Is there a way to do this with C#, without any library?
A: It is not really easy without any library.
You can use native code though, DnsQueryEx is a good starting point...
You'll need tons of code to get it working in C# though.
Why not just use an existing library?
I just wrote one for donet core /xplat support ... | |
doc_14629 | > textList <- list(sections=sections[(length(sections)-2):length(sections)])
> textList$sentences <- sapply(textList$sections, function(x) strsplit(as.character(x), "(?<=und/KON)\\s(?!\\S+/V)|(?<=oder/KON)\\s|(?<=/\\$[[:punct:]])\\s(?!dass/KOUS)(?!dann/ADV)(?!weil/KOUS)", perl=TRUE))
> sent <- textList$sentences
Th... | |
doc_14630 | aws ecs list-services --cluster CLUSTER_NAME | jq -r '.serviceArns | .[] | select(. | contains("SERVICE_NAME"))|split("/")|last' |xargs -I {} aws ecs describe-services --cluster CLUSTER_NAME --services {}|jq -r '.services[0].taskDefinition|split("/")|last'| xargs -I {} aws ecs describe-task-definition --task-definition... | |
doc_14631 | I have tried to use the image as a frame but did not work.
I have an image in mainwindow and i would like to add a button under the image. When i apply this the image disappears and i see only a little button somewhere on the screen. I add the button in the header method and below i share the picture with button and wi... | |
doc_14632 | I have to go through all the created xml files and add that new namespace. It is a big project with 100+ xml files. Adding to the complexity, only certain xml files need the new namespace so if I do a global find and replace, other tests will break.
Here is an example of how the mockserver do the comparison. I am usin... | |
doc_14633 |
A: Other than load time and download time, no.
A: As Mitch says, no.
In fact it is actually recommended by Microsoft to create a smaller number of larger sized assemblies over many small assemblies. This earlier question provides very useful information and references.
In your case you should definitely test the l... | |
doc_14634 | After a little research I came to know that I have to use dynamic programming for this problem. But I don't know how to approach it to this problem.
A: Here's a naive dynamic program with search space O(n^2 * m). Perhaps others know of another speedup? The recurrence should be clear from the function f in the code.
Ja... | |
doc_14635 | write/read nfc tag with password protection for write operation only
i prefered NFCTAG215 documentation
i have idea about page address and byte present in ntag215 architecture ....but didnt understanding how to set values in it .....
i prefer this example but dont know about PACK value and after setting pass to tag how... | |
doc_14636 | can anyone help me ??? I also tried same code in my friend's laptop but still not working.
Ui.R
library(shiny)
library(plotly)
library(ggplot2)
library(sentimentr)
library(syuzhet)
library(stringr)
shinyUI(fluidPage(
titlePanel("Analysis of online food ordering websites"),
titlePanel(""),
tags$head(
tags$s... | |
doc_14637 | This is it:
SELECT * FROM news_articles WHERE published = '1' AND news_category_id = '4' ORDER BY date_edited DESC LIMIT 1;
This takes up to 20-30 seconds to execute (the table has ~200.000 rows)
This is the output of EXPLAIN:
+----+-------------+---------------+-------------+----------------------------+-------------... | |
doc_14638 | select id from tableA where MOD(id,10)=1
database is mysql. How to covert this sql to django orm filter?
A: You can make use of the % operator:
from django.db.models import F
MyModel.objects.annotate(
id10=F('id') % 10
).filter(
id10=1
)
| |
doc_14639 | data = [
104, 117, 130, 143, 156, 169, 182, 195, 208,
112, 126, 140, 154, 168, 182, 196, 210, 224,
120, 135, 150, 165, 180, 195, 210, 225, 240,
128, 144, 160, 176, 192, 208, 224, 240, 256,
136, 153, 170, 187, 204, 221, 238, 255, 272,
144, 162, 180, 198, 216, 234, 252, 270, 288,
152, 171, 190, 209, 228, 247, 266, 2... | |
doc_14640 | -(void) addObstaclesToNode:(NSString *)pattern
{
for(int index = 0; index<[self getPattern:pattern].arrayOfSprites.count; ++index)
{
id o = [[self getPattern:pattern].arrayOfSprites objectAtIndex:index];
o.position = CGPointMake(o.position.x + windowW, o.position.y);
[concreteGround addC... | |
doc_14641 | element.style {
width: 1566px;
height: 425px;
}
Is there a way of inspecting that to find that "this width and height" is from "this script file" and "this line"? just like the css source map which points out the partials from which individual styles are applied? Any browser plugins of any sort that can do the... | |
doc_14642 |
Obvious explanation: list shows all the entities, if you click on an entity you can edit it in the form that is hidden by default and similar action applies to adding a new entity.
the issue
I know it is basic example so here the solution might be an overkill but I want to separate the logic of 'Add new entity', 'Edit... | |
doc_14643 | I can easily authorize requests by the below code snippet, but it only works with Keycloak's realm role, it does not work with client role.
private void configureMyRole(HttpSecurity http) throws Exception {
http.authorizeRequests()
.antMatchers("/api/**").hasAnyRole("MyClientRole")
.anyRequest().permitAll()... | |
doc_14644 | {{item.value | number:2}}
but the result is not what I expected:
10000.2
What is wrong? How can I add both thousand separator and decimal comma?
A: Try something like this.
app.filter('toLocaleDecimal', ($filter) => {
return function(input) {
let number = Number(input);
if (number && !Number.isNaN(number)) ... | |
doc_14645 | import re
import codecs
import csv
import nltk
import sklearn
from sklearn import cross_validation
import pandas as pd
# variaveis
tweets = []
caracteristicas = []
testBase = []
testset = []
# Tweet pre-processing
def preProcessamentoText(tweet):
# converte para minusculas
tweet = tweet.lower()
# remove... | |
doc_14646 | So far I have:
$(window).on('load',function() {
UIkit.scrollspy('menus','cls:uk-animation-slide-top');
});
A: Alright I've played around and I got it to do what I want however the animation acts a little differently. Here's what I've got:
$(window).on('load',function() {
$('#loading').fadeOut(500); // Hide lo... | |
doc_14647 |
<style>
::-webkit-scrollbar {
width: 24px;
height: 8px;
background-color: #143861;
}
</style>
How can I change scroll style for a specific element? These solutions don't work:
<style>
#element::-webkit-scrollbar {
width: 24px;
height: 8px;
background-color: #143861;
}
</style>
<v-d... | |
doc_14648 |
*
*CSS Resets styles
*CSS Normalizer styles
*CSS3 Helpers (box radius, gradients, box shadow, transition)
*Basic Colors Setup
*Basic Styling for some common UI elements (buttons, tables, inputs,
typography etc.)
*Responsive images
I don't have much control over the markup, so I'm looking to write alot of cust... | |
doc_14649 | find ~/web_project -name "config_*.php" -print | xargs vim
In vim, anything is ok. But, if exit vim, terminal is freeze.
My env: osx 10.6, macvim
A: vim $(find ~/web_project -name "config_*.php")
frequently I want to check my find command first, so
find ~/web_project -name "config_*.php"
vim $(!!)
A: You could try... | |
doc_14650 | In one view of my app, I show the count of courses a user has taken - this query works fine and shows the total count, including duplicate versions of a user+course combination.
I then have a subsequent view, where I want to list out all of the courses the logged in user has taken, with course details. My issue is tha... | |
doc_14651 | I would also like to be able to pass in a dictionary into the pypy program.
I can get the file to open using...
subprocess.Popen(['c:\pypy-2.0-beta1\pypy.exe', os.path.expanduser('Main.py')])
but I have no idea how to pass in a dictionary or how to open a specific function within the pypy program.
A: I suggest you... | |
doc_14652 | import urllib.request as ur
import urllib.parse as up
auth_handler = ur.HTTPBasicAuthHandler()
auth_handler.add_password(realm='something',
uri='http://api/api',
user=username,
passwd=passw)
opener = ur.build_opener(auth_handler)
opener.addheader... | |
doc_14653 | @app.route("/quote", methods=["GET", "POST"])
@login_required
def quote():
if request.method == "POST":
quote=lookup(request.form.get("symbol"))
if quote == None:
return apology ("invalid symbol", 400)
return render_template ("quoted.html", quote=quote)
else:
retu... | |
doc_14654 |
A: The following bash script will find all the links in the current directory and determine whether the target path exists:
for i in $(find . -type l -mindepth 1 -maxdepth 1); do
links_to=$(readlink $i);
echo -n "$i links to $links_to and that path ";
if [[ -e $links_to ]]; then
echo "exists";
else
... | |
doc_14655 | user_id | grade
1 k
1 3
2 4
2 5
3 2
I would like to be able to make a table that looks like user_id, grade_k, grade_1, etc, with a true or false for each grade if the user teaches that grade.
It seems like you could use crosstab to do this, but could someone show me an example?... | |
doc_14656 |
*
*Cookies?
*Sessions?
*Cache?
A: There is no single "best" - as it will depend on the structure of the application and the size of the lump of data you want to transfer. It will also depend on what you are doing with it at either end.
At the most basic level the answer is in Session state - cookies are inapprop... | |
doc_14657 | Or is the approach below ok in terms of performance?
Snippet from one of my Shapes ..
private Body body; // initialized elsewhere
private float width = 1.0f;
private float height = 1.0f;
public void draw(ShapeRenderer sRenderer) {
sRenderer.begin(ShapeType.Filled);
sRenderer.setColor(1.0f, 0.0f, 0.0f, 1.0f);
... | |
doc_14658 | The following is the code site:
https://github.com/bquast/rnn
It has a very nice example for financial time series prediction.
I have read the code and I understand it uses the sequence of the time series to predict in advance the value of next day instrument.
The following is an example of run with 10 hidden nodes and... | |
doc_14659 | I create script
-HTTP Request where I used ${__UUID()} function to create random UID
-Create HTTP Req with parameters
-Add listener to view result
Script execurted successfully but when i check in application the data not added /displyed
I create script
-HTTP Request where I used ${__UUID()} function to create random U... | |
doc_14660 | the content is from http://who.godaddy.com/whoisverify.aspx
here are some result that i found from godaddy.
Created on: 26-Dec-03
Record created on 2009-01-15.
Creation date: 27 Oct 2006 19:43:06
Created on..............: 1997-03-28
I would like to get the year and subtract it to the current year to get the domain age... | |
doc_14661 |
import "net/http"
func main() {
req, err := http.NewRequest("GET", "http://domain_does_not_exist", nil)
if err != nil { panic("NewRequest") }
client := http.Client{ }
_, err = client.Do(req)
if err == ???
}
I would like to check my GET request for specific error(DNS resolve error). How to ac... | |
doc_14662 | my question is how can i load all the related nodes to first node that i am searching for.
here is a code sample in neo4jclient :
q.Return(post => post.As<Post>()).OrderBy("post.creationDate");
which produce something like this in cypher but without the result part:
MATCH (post:Post)-[:HAS_MentionedUsers]->(assignee... | |
doc_14663 | It's possible that I'm doing this the entirely wrong way, too, and that there's some other way to make sure I'm not overwriting or appending to an existing file. If there is, I'd love to hear about that, too.
My reproducing code:
package main
import (
"net/http"
"fmt"
"appengine"
"appengine/file"
)
... | |
doc_14664 | Here is the PHP code:
<?php
if (isset($_POST['submit'])) {
include_once 'dbh.inc.php';
$first = mysqli_real_escape_string($conn, $_POST['first']);
$last = mysqli_real_escape_string($conn, $_POST['last']);
$email = mysqli_real_escape_string($conn, $_POST['email']);
$college = mysqli_real_escape_str... | |
doc_14665 | My question is, is it possible to force a library to NOT to load all object files when the project uses -ObjC or -all_load flags?
I'm using some clang features (particularly __has_include directive) in order to control importing of some headers, but when -ObjC flag is used, this directive is having no effect, all obje... | |
doc_14666 | Here's my function as it stands:
function onContentPrepareForm($form, $data) {
$app = JFactory::getApplication();
$option = $app->input->get('option');
switch($option) {
case 'com_content':
if ($app->isAdmin()) {
JForm::addFormPath(__DIR__ . '/forms');
if ... | |
doc_14667 | Important Code snippets
var session = require('express-session');
app.use(session({ secret: 'testQWERTY',cookie: { maxAge: 3600000 }}));
app.get('/route 1', function(req, res , next) {
var apiPortalURL = "testUrl";
request({
url: apiPortalURL,
qs: {},
json: req.body,
... | |
doc_14668 | As:
NotesView sent = _NotesDatabase.GetView("($Sent)");
if (sent != null)
{
NotesDocument docSent = sent.GetFirstDocument();
if (docSent != null)
{
while (docSent != null)
{
String Subject = ( (object[]) ... | |
doc_14669 | for example
I have a class
class user{
username: string,
password: string,
}
now my options object is as
{
"firstName":"string
}
so now I want to add this firstname property to my user class how to do it
A: This, my friend. Is all you need https://github.com/typestack/class-transformer
Class transformer can transfor... | |
doc_14670 | NSOpenPanel *panel = [NSOpenPanel openPanel];
[panel setCanChooseDirectories:NO];
[panel setAllowedFileTypes:[NSImage imageFileTypes]];
[panel beginWithCompletionHandler:^(NSInteger result)
{
if (result==NSFileHandlingPanelOKButton)
{
NSString *name = [panel.URL lastPathCo... | |
doc_14671 | With this I am able to process the request but the dictionary is always empty for some reason. Is it because I am using the wrong datatype?
Or is there something else that is not right?
static List<string> strings = new List<string>();
[HttpPost]
public void Post(Dictionary<string,string> value) //why is th... | |
doc_14672 | NSMutableArray *shadowColors = [NSMutableArray arrayWithCapacity:2];
color = [UIColor colorWithRed:0 green:0 blue:0 alpha:1]; // Declaration using components
[shadowColors addObject:(id)[color CGColor]];
color = [UIColor colorWithRed:1 green:1 blue:1 alpha:0.0]; // Declaration using components
[shad... | |
doc_14673 |
A:
If a website is accessed from a HTTP Secure (HTTPS) connection and a
link points to anywhere except another secure location, then the
referrer field is not sent.
The upcoming standard HTML5 will support the attribute/value rel =
"noreferrer" in order to instruct the user agent not to send a
referrer.
Sour... | |
doc_14674 | In the image, I have given text field white color background with an alpha value.
In first case color is visible, however in the second case, background color seems to be the clear color.
These text fields are inside UIStackView.
A: When textfield is in stackView call
self.field1.isHidden = false
self.field1.... | |
doc_14675 | I can't add prefixes to these files so how does one usually work around this problem ?
I saw other answers that suggest renaming classes with prefixes, yet this isn't really the solution since it's correct that these files have duplicates - it's an open source code.
A: You could remove the SBJSON (.m) files from the l... | |
doc_14676 | low1 = -1; high1 = 1;
n_p = 20
range1 = np.linspace(low1, high1,n_p/2, endpoint=False)
X = np.dstack(np.meshgrid(range1, range1)).reshape(-1, 2)
But what is the best way to make a meshgrid like on the picture below?
Right now I am just building 8 rectangles and stack them. What is a better way of doing it?
A: You c... | |
doc_14677 | The security states that the header should contain a timestamp and an X509 certificate and that both should be signed. Nothing else should be signed or encrypted.
I ended up with this configuration on the server side:
The binding:
public override BindingElementCollection CreateBindingElements()
{
BindingElementColl... | |
doc_14678 | I want to make two sets of data bases(development, production). But it does not allow me to make multiple databases. Any possible solution to fix this problem?
The paid solutions seem to only increase store capacity and other few features related to monitoring
A: I have sent an email to mLab. The response is that it i... | |
doc_14679 | var a = 1;
var b = 1 + function(){ return 10; }// This could be the wrong way to do it. But it could come from a third party, so it's undeterminded when it's returning. S
console.log(b);
A: If you want that function to work you have to execute it:
var a = 1;
var b = 1 + function(){ return 10; }()// This could be the ... | |
doc_14680 | Possible Duplicate:
What is the difference between a definition and a declaration?
I am confuse about the function declare on head file. does this is same as java, declare function on one file,in that that file has function also has method.
does in C, make the function and method in two different files?
here is a exa... | |
doc_14681 |
A: Here is another trick using only one element and multiple linear-gradient as background and you can adjust the size/position of each arrow individually:
.arrows {
width:300px;
height:100px;
position:relative;
background:
/* For the 3 lines*/
linear-gradient(#000,#000) 10px 25px/2px calc(100% - ... | |
doc_14682 | Now by emitting a signal in one object it is sent to the second object. I have a system that takes user inputs and if there are too many user inputs I want my "queue" to fill up and not accept any more inputs.
I could implement a reply mechanism on the receiving object, but I want to know if we can make a queue size of... | |
doc_14683 | lines = f.readlines()
x=lines[LineToBeTested - 1]
paste(x)
This is the code I have so far does anyone know a way to take line x and put it into the code to be ran and then taken out when the code is stopped? Thanks
A: I think you can just use the built-in function eval
https://www.programiz.com/python-programming/me... | |
doc_14684 | Any help would be greatly appreciated as I have searched thoroughly online and found nothing but more methods to get the target id of the drop area. Here is a snippet of my current code fiddle:
function allowDrop(ev) {
ev.preventDefault();
}
function dragStart(ev) {
ev.dataTransfer.setData('Text/html', ev.target.id);... | |
doc_14685 | However, it only shows information about C# object. My WP Runtime component contains some C++ libraries that could potentially cause memory leaks. How to perform memory profiling WP runtime component ?
| |
doc_14686 | This can cause issues by removing helpful images that simply cannot be output in the foreground.
Does anyone know if there is a way to detect the state of this setting in an end-users browser?
Ultimately it could be used to display alternative styles depending on the state of this setting, so if it can be detected usin... | |
doc_14687 | <p>Already registered? <span class="link">Log In</span></p>
If I add th:text="#{prompt}" to the <p> tag, the inner span will be replaced by the property value.
Is there any way to internationalize the whole text of <p> element with just one property in my resource bundle? (maybe with placeholders or I don't know)
A: ... | |
doc_14688 | ├── directory
| ├── sub-directory_1
| | ├── img1.jpg
| | └── img2.jpg
| |
| ├── sub-directory_2
| | ├── img1.jpg
| | └── img2.jpg
. .
. .
. .
.
| └── sub-directory_n
| | ├── img1.jpg
| | └── img2.jpg
I have... | |
doc_14689 | [dev]
region = us-east-1
output = json
mfa_serial = arn:aws:iam::1111:mfa/user
How do I retrieve that mfa_serial from the config in boto3 so I don't have to specify the arn in the py script?
sts = session.client('sts')
mfa_code = input("Enter the MFA code: ")
mfa_session = sts.get_session_token(
DurationSeconds=36... | |
doc_14690 | package main;
import java.util.Scanner;
import tabla.TablaDeVerdad;
public class Main {
public static void main(String[] args) {
Scanner entrada = new Scanner(System.in);
int inicializador = 1;
int contador = 1;
TablaDeVerdad tabla;
while(inicializador == 1){
... | |
doc_14691 |
An internal error occurred on the report server. See the error log for more details. (rslInternalError) For more information about this error navigate to the report server on the local server machine, or enable remote errors.
I searched with Google and I found that I should look in the SQL Server Report Logs to see w... | |
doc_14692 | main.exe is my core algorithm. Control.dll can send some control signal through UDP to main.exe while running. It let other program to control the process of main.exe.
There is a variable int A in main.exe. The value of A changes during main.exe running. I can also call Get_A() or Set_A() from control.dll to control th... | |
doc_14693 | A=[9.6, 7.9, 19.4, 13.3, 31.0, 16.1, 44.3, 16.4, 55.7, 16.5, 66.6, 16.7, 77.7, 17.7, 88.7, 19.0, 101.8, 21.0]
It is actually a 1-D representation of a series of 2-D points. The even-indexed values are x values, and the odd ones are y.
I now wish to convert A into
B=[(9.6, 7.9), (19.4, 13.3), (31.0, 16.1), (44.3, 16.4)... | |
doc_14694 |
.centered-content {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
}
/* END */
* {
box-sizing: border-box;
margin: 0%;
padding: 0%;
/* background-color:#1d1b1b; */
}
body {
background-color: #161A1A;
color: white;
background-repeat: space;
-webkit-background-... | |
doc_14695 | I'm using Autodesk.Viewing.MarkupsCore library to draw annotations over model in forge viewer. For that I'm loading Autodesk.Viewing.MarkupsCore extension as _markupsExtension .
I tried drawing some markup annotation and saved viewer state. When I tried loading these previously drawn annotations, It failed to restore v... | |
doc_14696 | Here's the current code I have;
@ECHO OFF
SETLOCAL
:Input
SET /P "source=Please enter or paste the location you want backed up and press ^<Enter^>."
IF "%source%"=="" GOTO Error
GOTO :DoTask
:Error
ECHO You did not specify a location to be backed up! Please try again. & goto :Input
::SET source="":: Obsolete for now,... | |
doc_14697 | I normally use Jupyter notebook for all my prototyping and exploratory work, however I find that the notebook does not provide a similar experience as RStudio. Although, I do not prefer coding in R.
I want to be able to do things like:
*
*explore dataframe objects and variables in a text editor
*have a workspace d... | |
doc_14698 | I want to be able to insert the elements "toBananas[0], toBananas[1]" into the var result, but suppose I don't know how many elements I need to insert overall. The amount of [elements] could range from [1] up to [99]. Is there a way to make it so the amount of elements lists out to the amount of elements I have without... | |
doc_14699 | Currently we packed all this info into a "RequestBag"-object somewhere centrally when request arrives and passed it along to classes in logic. This however results that it's passed pretty much everywhere.
Is there a better way? Basically what I would like to do is call some static method and say GetCurrentUserState(), ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.