id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_43200 | I then want to use this time zone in a Javascript function to create a digital clock for that city.
Currently I am trying to set the time_zone variable from
Here's a code snippet from Default.aspx:
function showtime() {
zone(hiddenZone,clock);
}
window.onload = showtime;... | |
doc_43201 | Currently I am getting the last uploaded object like this:
tips_by_employee_report = StoreReports.objects.latest('tips_by_employee_report')
I have tried .url and .path but these methods do not work on this class. I have looked all around and in the Django docs but can only find accessing the url in the templates.
How... | |
doc_43202 | the function looks like:
<in header>
template <typename T> static T getItems(const char* xpath, T (*getThings)(xpath_node_set*));
<in body>
template <typename T>
T XMLAdapter::getItems(const char* cpath, T(*getThings)(xpath_node_set*)){
return getThings(head.select_nodes(path));
}
and the function i'm passing int... | |
doc_43203 |
*
*the version of R I have installed is 3.3.1;
*my environment variable $R_LIBS_USER is set to $HOME/my/R_lib/%V; and
*I have a directory $HOME/my/R_lib/3.3.1 containing a large number of packages I've installed over time.
Now I want to upgrade my version of R, to 3.4.1, say.
I'm looking for a convenient way to ... | |
doc_43204 |
A: You must specify host IP there, currently your app is serverd only for localhost, if you are using webpack try to run npm start --host 0.0.0.0
| |
doc_43205 | The issue is that I want to declare attributes in this library module, for which I will be able to set values in app modules of aforementioned projects.
The funny thing is, that my current solution works on emulator but not on physical devices.
Here is how I have it now (simplified, irrelevant parts omitted):
Library's... | |
doc_43206 | This works:
import GHC.TypeLits (type (+))
This is a parse error in GHC 9.0:
import GHC.TypeLits (type (*))
See for example:
ghci -XTypeOperators
GHCi, version 9.0.2: https://www.haskell.org/ghc/ :? for help
ghci> import GHC.TypeLits (type (+))
ghci> import GHC.TypeLits (type (*))
<interactive>:2:28: error: parse e... | |
doc_43207 | public class City
{
public string Name { get; set; }
}
public class State
{
public List<City> Cities { get; set; }
}
public class Country
{
public List<State> States { get; set; }
}
Is there a simple way to query a List<Country> to get all the cities?
A: How about countryList.SelectMany(c => c.States).S... | |
doc_43208 | Is there a better way of doing this?
Here is the DataFrame that I'm using:
NBL NBT NBR SBL SBT SBR EBL EBT EBR WBL WBT WBR
DATETIME
2020-01-01 10:00:00 9 2 28 8 6 5 4 92 9 21 124 5
2020-... | |
doc_43209 | So I'm having the following error:
Serializer for ABSRotas.Routing.Entities.Models.Integration does not
have a member named RuleActions.
I think it might be something with the mapping, but this error only occurs when I try to make calls using linq.
My calls to mongo are generic, here is the query:
public async Task<I... | |
doc_43210 | font:normal 15px helvetica,arial,sans-serif;
padding:6px;
On Windows, regardless of the browser (IE/Firefox/Chrome), this increase the FORM submit button and give the button spacing padding of 6px.
However, on OS X (Mac), the form submit button is not stylized at all. Meaning, the font size is the default and no paddi... | |
doc_43211 | raw_data = {'cities': ['LA', 'LA', 'LA', 'Chicago', 'Chicago', 'Chicago', 'Chicago', 'Boston', 'Boston', 'Boston', 'Boston', 'Boston'],
'location': ['pub', 'dive', 'club', 'disco', 'cinema', 'cafe', 'diner', 'bowling','supermarket', 'pizza', 'icecream', 'music'],
'distance': ['0', '50', '100', '5', '7... | |
doc_43212 | My markup should look something like this
<grid [observable]="users$">
<column key="Username" caption="Username"></column>
<column key="Name" caption="Name"></column>
<grid property="UserGroups">
<column key="GroupNo" caption="Group-No"></column>
</grid>
</grid>
Here is my component:
... | |
doc_43213 | from 7 am to 10.30 pm - Rate $0.60 per 30 min
Night charge 10.30 pm to 7 am - Flat fee of $5
If the parking duration spills over from day time rates to night time rate, how do I calculate this? Below is where I am right now. I'm not sure where to go from here or if it's the right way to start.
def getCharge(self, endTi... | |
doc_43214 | https://codelabs.developers.google.com/codelabs/cloud-mongodb-statefulset/index.html?index=..%2F..index#0
I am able to access the database using "kubectl exec -ti mongo-0 mongo" as shown in the tutorial.
However, my Node JS- Mongoose Application is unable to connect to it throwing the following error
MongoDB connection... | |
doc_43215 | for (int i = 0; i < 4; i++){
for (int j = 7; j > 3; j--){
cout << array[i];
cout << array[j];
}
}
Here, the value of j is changed for four times first, and then the program starts to change the value of i.
Edit: Let's say, the array contains numbers that are relevant to the... | |
doc_43216 |
Database id 65, page (1:4825) is marked restorepending, which may indicate disk corruption. To recover from this this state, perform a restore
My table name is temp_f.
I used a drop query like this
Drop table temp_f
Drop table #temp_f
Drop table ##temp_f
But I still get the same error.
| |
doc_43217 | Users can allocate students into either this 3. and once allocated, it will be removed off the dropdown list thus user cannot add them in anymore thereafter leaving 'B' and 'C' available. How do i do that using query statements?
A: SELECT *
FROM venues
WHERE venues.id NOT IN (
SELECT venue_id
FROM students
WHERE... | |
doc_43218 | Is it true that Core Graphics is quite capable of handling it? But since both cocos2D and OpenGL ES are said to be super fast when handling graphics, is using one of them good for the situation above, making it more smooth or is it not that different from using Core Graphics?
(Or maybe it matters for type of applicati... | |
doc_43219 | I have created a button with the following code below, which I want to filter my reports by IDENT NO entered by a user when clicked (When the user clicks the button, a pop-up will ask for the IDENT NO, and then I want to only open the single report associated with that IDENT NO). However when I do so, it will load only... | |
doc_43220 | (key -> String) and (key -> Int), but i can have Map either of
Map[String,String] or Map[String,Int].
I can't use class because number and order of keys are not fixed.
Is there any way to wrap String and Int to a generic class so that i can return map as Map[String,Any]
A: You can use HMap as @Harnish suggested, but t... | |
doc_43221 | open System;;
#r @"r:\projects\currentprjLibs.dll";;
#r @"r:\external\unquote.dll";;
#time;;
This is just an example, but I find myself asking: can this be automated? Now, I could have an fsx script for each project and do a "send to interactive", but this is still quite a bit of work (and #r or #time won't work there... | |
doc_43222 | "reference to a non-shared member requires an object reference"
I'm not sure what to change or how to get around this. Does anyone out there have any suggestions?
Here is the code that i have so far. It's a simple app that has a combobox that you choose the company from and on button click it will get the script and sh... | |
doc_43223 |
*
*Compile my code (in C),
*Use the command: mips-mti-linux-gnu-objdump -d myapp.elf> objdump.txt
*My function in objdump.txt file: 9d003350: 42000828 myfunction 0x1
Now, I want to identify this function in myapp.bin when reading this from memory. But, I get this: 28080042.
I tried to use the command: xxd -ps myap... | |
doc_43224 | <div class="foo some-content">
...content...
</div>
<div class="bar some-content">
...different content...
</div>
I would like to wrap each of the .some-content divs to achieve a nested structure when using base.html in certain places:
<div class="row">
<div class="foo some-content">
...content...
... | |
doc_43225 | // Animate any number
jQuery('.animateNumber').each(function(){
var value = new Number;
// Grab contents of element and turn it into a number
value = jQuery(this).text();
value = parseInt(value);
// Set the starting text to 0
jQuery(this).text('0');
/... | |
doc_43226 | export class DashboardComponent implements OnInit {
heroes: Hero[] = [];
constructor(private heroService: HeroService) { }
ngOnInit(): void {
this.heroService.getHeroes()
.then(heroes => this.heroes = heroes.slice(1, 5));
}
}
And my question about this code part:
.then(heroes => this.heroes = heroes.... | |
doc_43227 |
A: You could use a tree set. http://docs.oracle.com/javase/7/docs/api/java/util/TreeSet.html
If you have to use an array, try using binary search to find the element or the position the element should be at (the while loop commonly used exits in both cases, providing you one index in the array). See http://docs.oracle... | |
doc_43228 | import pickle
def saveDbase(filename, object):
file = open(filename, 'wb')
#pickle.dump(object, file) # pickle to file
#pickle.dump(object, open(filename, 'wb'))
pickle.dump(object, file)
file.close() # any file-like object will do
def loadDbase(filename):
file = open... | |
doc_43229 |
A: Following suggestions:
*
*Check the run iterations settings
*Use a for loop to iterate through the rows in datatable.
Count the number of rows and set the counter for each row.
rowcount = DataTable.GetSheet("Global").GetRowCount
DataTable. SetCurrentRow(2)
| |
doc_43230 | I thought one of the best ways to do this is to have a job manager daemon that is a stand alone process, that:
*
*Accepts new jobs via a TCP connection.
*Accepts user-commands, typically to terminate or restart a process.
*Reports on the status of a job.
I am struggling with the structure of this code. I am thin... | |
doc_43231 | from functools import reduce
import numpy as np
import pandas as pd
np.random.seed(0)
data_df = pd.DataFrame({
'id': ['a']*5 + ['b']*5 + ['c']*5,
'chan1': range(15),
'chan2': np.random.uniform(0, 10, size=15),
'chan3': np.random.uniform(0, 100, size=15)
})
There is a second table that tells us how t... | |
doc_43232 | The actual question is how it can affect the performance of indexing, searching and mapping in the ES cluster?
Is it take more time to search through one huge index than from a hundreds of big indices?
A: It will take less time to search through one large index, rather than hundreds of smaller ones.
Breaking an index... | |
doc_43233 | var request:URLRequest = new URLRequest(url);
and the PHP end receives the URL and processes it (i.e. inserts data to MySQL) like this:
$text = @$_GET['text'];
$text = urldecode($text);
$pdo->query("INSERT INTO mytable(thetext) VALUES ('$text')");
Now, when the variable URL in ActionScript is this:
http:... | |
doc_43234 | To get an element by its id I use:
css=#may-not-exist
and to get the fall-back element (say, the body) I use:
css=body
How do I combine these two expressions above into a single expression (get #may-not-exist else get body)?
A: Using body as the default is possible. It will come first from the expression, because it... | |
doc_43235 | My C++.sublime-build (which are the default settings):
{
"cmd": ["g++", "${file}", "-o", "${file_path}/${file_base_name}"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c, source.c++",
"variants":
[
{
"name": "Run... | |
doc_43236 |
this is the code
$('#add-user').on('click', function(){
var myform = document.getElementById("form_user");
var data = new FormData(myform );
$.each($('#user_photo')[0].files, function(i, file) {
data.append('file', $('#user_photo')[0].files[0]);
});
var user = {
user:{
fi... | |
doc_43237 | I guess it's because I use a shallow nested model !
I get this error : Template is missing
Missing template pprojects/create with {:formats=>[:html], :handlers=>[:builder, :erb, :haml, :rjs, :rhtml, :rxml], :locale=>[:en, :en]}
It looks like my app is trying to do HTML and no JS because my server console says the foll... | |
doc_43238 | Using the simulated Nexus One I have a log message related to OpenGL out of memory and I've found out that OpenGL support for simulators it's usually bad, but using physical note n8000 I have nothing in my logs that can help me. The app behaves like it should but I loose debugging.
Does anyone had a problem similar to ... | |
doc_43239 | I am new to python and am unsure of proper syntax for f.write.
I have already used input to get a student name, which is in "stud" which is of type "Student"
I have been attempting to amend the syntax, but to no avail
from studentStruct import Student
from assignments import Assignments
def SaveStudentToStudentList(st... | |
doc_43240 | I want :
A) to take the 0.05 % of each category and
B) to take different proportion from each group.
my data frame population is :
category = c(rep("a",15),rep("b",30),rep("c",50))
num = c(rnorm(15,0,1),rnorm(30,5,1),rnorm(50,10,1))
pop = data.frame(category,num);pop
i am thinking of the sample_n() function from dply... | |
doc_43241 | String accountNum = "3456";
Static list that 30k strings like 1334,3345,7776,7788,5566....up to 30k.
If accountNum exists in 30k static list then display yes else display no.
What is the best way to handle this situation in java in terms of performance, memory ?
A: convert your strings to integers and use java.util.Bi... | |
doc_43242 | I tried adding it to the globals:
"globals": {
"Filters": false
}
And that had no effect, so I tried:
"predef": [ "Filters" ]
Again, no effect.
These are also present:
"undef" : true,
"latedef" : false,
What am I missing here?
A: In this example, I would normally just put the following at the top of... | |
doc_43243 | public void swap(Object[][] array, int a, int b) {
Object temp;
temp = array[a];
array[a] = array[b];
array[b] = temp; // Error, Why?
}
But there is a compile time error in last line.
For example, i want to swap array[i][j+1] and array[i+1][j] elements, How should call this method?
(i and j are int... | |
doc_43244 | When I call hclust from the console or in an .Rmd, the clustering occurs perfectly exactly as I want it. But additionally, I receive the error message:
must have n >= 2 objects to cluster
I can force knitr to continue processing using error=TRUE, but the error is there and the value not assigned.
tree = hclust(dist(t(... | |
doc_43245 | A json model like the one below makes me return via an api.
{
"data": [
{
"countryStats": {
"order": 2,
"confirmedCount": 15679,
"deathCount": 277,
"recovryCount": 333,
"name": "Türkiye"
},
"cityStats": [
]
},
{
"countryStats": {
... | |
doc_43246 | I then run this function to convert the values to the camera pose:
void GetCameraPoseEigen(cv::Vec3d tvecV, cv::Vec3d rvecV, Eigen::Vector3d &Translate, Eigen::Quaterniond &quats)
{
Mat R;
Mat tvec, rvec;
tvec = DoubleMatFromVec3b(tvecV);
rvec = DoubleMatFromVec3b(rvecV);
cv::Rodrigues(rvec, R); /... | |
doc_43247 | The Json looks something like this:
{
"data": {
"page1": {
"last_name": "suraj",
"first_name": "singh",
"dob": "2020-06-02",
"gender": "Male",
"address1": "asdf",
"city": "asdf",
"state": "ID",
"Zip": "34324",
"phone": "2343243242",
"emailaddress": "sura... | |
doc_43248 | Unfortunately, I cannot find any examples in their documentation.
*
*http://dojotoolkit.org/api/?qs=1.10/dojo/throttle
*http://dojotoolkit.org/api/?qs=1.10/dojo/debounce
At the moment I am trying to debounce the following event with no success
... Using require 'dojo/on'.
on.debounce(window, 'resize', 2000, functio... | |
doc_43249 | void TextEditor::setBold(){
if (editor->fontWeight() == 75)
editor->setFont(QFont::setBold(false));
else
editor->setFont(QFont::setBold(true));
}
I am getting error: cannot call member function 'void QFont::setBold(bool)' without object
not sure how to assign an object here?
A: The method set... | |
doc_43250 | Here is my server(C#) side code
public ActionResult DownloadChartImage(string base64Data, string chartType)
{
byte[] fileInfo = null;
fileInfo = Convert.FromBase64String(base64Data);
return File(fileInfo, "application/octet", chartType + "_" + DateTime.Now.Ticks + ".png");
}
My client side code
function ... | |
doc_43251 |
*
*Prompt to choose external workbook
*Copying all the data from that wb
*Pasting exactly 1:1 in main wb
*Close and Save from .xlsm to .xlsx but with a name of my main wb
Sub CopySheetFromClosedWorkbook2()
'Prompt to choose your file in the chosen locatioon
Dim dialogBox As FileDialog
Dim FilePath As S... | |
doc_43252 | <CardGroup className="cardgroup">
<Card className="card"><div>other stuff</div></Card>
<Card className="card">stuff two<div>whatever</div></Card>
<Card className="card">stuff three</Card> <--- KEEP BORDER BOTTOM HERE
</CardGroup>
I have borders on all of the children..(Card). I want to remove the Card border ... | |
doc_43253 | 0.00902317 0.0270695 0.0451159 0.0631622 \
0000010 6.962980e-05 7.063750e-05 7.165970e-05 7.269680e-05
1000010 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00
2000010 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00
The first row is an ID number, and the columns are... | |
doc_43254 | TreeMap<[team name], TreeMap<[team wins], [opponents]>>
Where as [team name] and [opponents] are strings and [team wins] is int.
My current aim is to print the data, by team wins in descending order. It has to look like:
Liverpool: //map key
wins: <wins> //nested map key
opponents: <opponents>
My thought was to ord... | |
doc_43255 | I'm relatively new to doing these things in Javascript, so maybe I am expecting too much out of it, apparently crashes within intensive for loops are just something that happen. Does anyone have some tips?
var Cloud = function(point) {
this.origin = point;
this.initBound = new Size(600,200);
this.RoM = 40... | |
doc_43256 | But I realized that a CheckBox does not have a value, its value is checked or not.
var listType = SettingsManager.Get("CRMCaseTypes");
var listStatus = SettingsManager.Get("CRMStatusReasons");
var listTypeItems = ParseSettingList(listType);
var listStatusItems = ParseSettingList(listStatus);
cblCRMType.DataSource = l... | |
doc_43257 | lateinit can not, however, be used with the primitive types. Why is it so?
A: A short answer is that with primitives you can always use 0 as the default, and with nullable types null as a default. Only non-nullable non-primitive types may need lateinit to work around the type safety system.
Actually, there is no need ... | |
doc_43258 | @Entity
public class User {
@Id
private String id;
private String firstName;
private String lastName;
private String nickName;
@ElementCollection
private final List<String> emails = new ArrayList<>();
@OneToMany(mappedBy = "user", cascade = CascadeType.ALL)
private final List<Address... | |
doc_43259 | here I link my files:
progetto.html
<html>
<head>
<script type="text/javascript" src="funzioni.js"></script>
<title>Pagina iniziale</title>
</head>
<body align='center'>
<p>Gymnasium</p>
<p>icona</p>
<form id="ajaxForm" name="ajaxForm">
<table align="center">
<tr>
... | |
doc_43260 | One option I know is that the app itself can have a downloader to retrieve the files from a server, but I don't prefer to host a server for that.
And I notice there is an APK expansion option in Google Play now, but my app is likely an in-house application that can not public in google play.
What I am thinking now, is ... | |
doc_43261 | VkDeviceQueueCreateInfo queueCreateInfo = {};
queueCreateInfo.sType = VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO;
queueCreateInfo.queueFamilyIndex = queueFamily;
queueCreateInfo.queueCount = 1;
queueCreateInfo.pQueuePriorities = &queuePriority;
The C++ way, using and abusing the vulkan.hpp header, is:
... | |
doc_43262 | However, what about automating modifications to the project to itself prior to build? Things like:
*
*Set the version string / build counter based on TeamCity values
*Set the Build Identifier based on configuration type
What are some best practices for approaching this? Sure, I can shell out and modify the Xcode ... | |
doc_43263 | Build B is quick running tests, that take about 5 minutes, B uses A output through snapshot/artifactory dependencies.
Output from A is also used in two other build task which are long running tests and installer creation.
For now, when some tests in B fail, I don't see changes made to A from withing test job B (or c or... | |
doc_43264 | My working project directory structure looks like this:
app -> components -> Button -> __test -> test.jsx
Karma has no problem finding the tests above and runs successfully.
The directory structure in question looks like this:
app -> components -> List -> ListHeader -> __test -> test.jsx
Karma does not pick up the test... | |
doc_43265 | {"vr":1,"tm":1312816191516,"tms":"08-08-2011 15:09:51.516 GMT","as":1002,"pb":1102,"cts":[1204,1205],"ctgs":[1304,1305],"op":1400,"ev":2,"dv":1503,"dvgs":[1605,1606],"cnt":"cnt5","usr":"usr8","atts":[{"id":8002,"val":"ccc"},{"id":8003,"val":"ddd"}],"sel":{"cm":2102,"ty":"PRE","ag":3002,"ad":4002,"fl":5002,"fla":6002,"h... | |
doc_43266 | Right now, the only problem I have is that the fa fa-bars is not showing when I go into responsive mode. Why is that? Here is where I got the responsive nav bar from. https://www.w3schools.com/howto/howto_js_topnav_responsive.asp.
Tell me what am I missing. Thanks. You can run the code snippet below to see what I'm tal... | |
doc_43267 | Below are the two tests I composed to test element-wise multiplication between the modules. I would like to know:
*
*Have I designed these tests correctly? I understand that there can be a large number of intricacies involved with this type of testing.
*If these tests are designed correctly, then how come Numpy's u... | |
doc_43268 | which returns the list of countries. I have written a angular2 component which would invoke the CountryService component to consume the actual restapi service and then iterate the list and dispaly to the user.
I have created a plunkr for testing this. Plunker URL.
I am running into a issue like below in the chrome ... | |
doc_43269 | I have database like this:
I'm using database first approach to generate models for that database.
After that I'm adding following type of controller for product_info table:
Which will also generate Views. My question is - how can I display attributes from other tables in drop-down of Create View.
Here is example of... | |
doc_43270 | On API description page i found Request template:
<form method="post" action="https://captchasiteapi.com/in.php" enctype="multipart/form-data">
<input type="hidden" name="method" value="post">
Your key:
<input type="text" name="key" value="YOUR_APIKEY">
Captcha file:
<input type="file" name="file">
<input type="submit"... | |
doc_43271 | FROM d_employee e
LEFT JOIN [dbo].[t_etl_employee] t
ON e.customer_nr = t.employee_nr
AND (t.dep_id = @dep_id OR @dep_id IS NULL)
Requirement is to replace "AND (t.dep_id = @dep_id OR @dep_id IS NULL)" in above query by dynamic sql or handle with IF statement but in any case OR should be avoided.
Thanks All! I will ... | |
doc_43272 | def js_r(filename):
with open('num.json', 'r')as f_in:
json_d = f_read()
How to return the dict function?
A: Use the json module to decode it.
import json
def js_r(filename: str):
with open(filename) as f_in:
return json.load(f_in)
if __name__ == "__main__":
my_data = js_r('num.json')
prin... | |
doc_43273 | if __name__ =="__main__":
lst1= ['3 6 2 5'];
lst1=str(lst1);
a = [int(i) for i in lst1.split(' ') if i.isdigit()]
print(a);
Outputs
[6, 2]
What I am looking for is
[2,3,5,6]
I think its due to the split characters which it finds after the 3(first element), but not sure how to resolve it.
A: When you c... | |
doc_43274 | //i create new class with "QStyledItemDelegate" as base class
//QAlignmentDelegate.h
#ifndef QALIGNMENTDELEGATE_H
#define QALIGNMENTDELEGATE_H
#include <QStyledItemDelegate>
class QAlignmentDelegate : public QStyledItemDelegate
{
public:
QAlignmentDelegate(Qt::Alignment alignment);
virtual void paint(QPainter... | |
doc_43275 | 2.call the excel sheet when i want to access.
please suggest some ways through which this can be possible.
A: You have to parts for your question.
Part 1 - Excel file to XML
Use Apache POI libraries for reading in the Excel file (example).
Creating XML file is simple, either just write the XML out to a file directly, ... | |
doc_43276 | Magento - get a list of bundled product ids from a product id
I found a solution for grouped products but this can't be applied here.
$grouped_product_model = Mage::getModel('bundle/product_selection');
$groupedParentId = $grouped_product_model->getParentIdsByChild($product->getId());
I found the table catalog_produc... | |
doc_43277 | Time Itinerary ID
06:35 3579 87069
07:15 3031 ... | |
doc_43278 | p <- ggplot(plot.data)+ scale_y_continuous(breaks = c(0, 1, 2),labels = c("1","2.7","7.4"),name="Odds Ratio")
p <- p + geom_hline(yintercept = 0, colour = gray(1/2), lty = 2)
p <- p + geom_pointrange(aes(x = DV, y = Estimate, ymin = Lower,
ymax = Upper),
lwd = 1/2, ... | |
doc_43279 | I knew that I can do:
$('a[data-id="s1"]').click(function() {
$(div[data-value="s1"]).show();
});
$('a[data-id="s2"]').click(function() {
$(div[data-value="s2"]).show();
});
$('a[data-id="s3"]').click(function() {
$(div[data-value="s3"]).show();
});
... etc, but the code will be so long.
So I am just wondering i... | |
doc_43280 | I expected that the log in links would be a widget, they are not.
so what i am looking to do is move that to the top right of the page.
I have take the default theme and cloned it to my own so i can start a custom theme. I think i should be using the Placement.info to accomplish what i am trying to do. the hardship i a... | |
doc_43281 | In the draw method, the top left of the bitmap is represented by coordinate (0,0), while the bottom right is represented by (bounds.bottom, bounds.right) (obtained using getBounds in the drawable class.
I am tracking the touch events in the ImageView. My question is, how do I calculate touch events relative to the bitm... | |
doc_43282 | But here's the problem...
After loading the ajax response with Ext.Ajax.request the scripts from the ajaxed page don't get trigger.
jQuery Ajax function:
$(document).ready(function () {
$.ajax({
type: 'POST',
url: '@Url.Content("~/Test/Header/")',
success: function (r... | |
doc_43283 | I have tried the winfo_children function to destroy frames but it only works for one frame at a time. I also tried looping through all frames. my skills are not sufficient to think through this one. So, I need a suggestion or anything that I m missing.
Thank you so much for your time any help is appreciated.
tabControl... | |
doc_43284 | @linq df |> @where(:a .> (myDate + Dates.Month(18)))
I get the error message:
LoadError: MethodError: `convert` has no method matching convert(::Type{DataFramesMeta.SymbolParameter{T}}, ::Expr)
This may have arisen from a call to the constructor DataFramesMeta.SymbolParameter{T}(...),
since type constructors fall back... | |
doc_43285 | I have one static instance of connection to db and one dynamic by multitentant,
everything worked fine until I get forced to use multithreating.
New Thread seems to loose information about that dynamic connection (the static is fine), so I have a question, is there any posibility to pass the connection information to t... | |
doc_43286 | Can you please help me??
for(j in 1:nrow(df) ){
if(is.na(df[j, 5]) == FALSE ) {
for (k in 1:nrow(d)f){
if(d[df,1] == df[j,1] && is.na(df[k,5]) == TRUE ){
df[k,5] = df[j,5]
}
}
}
}
Thank you so much!
| |
doc_43287 | I need multiple and repeated queries pulling data from Excel (ie I want query, not import). Excel workbook has multiple worksheets/tabs containing tables/named ranges. My solution already works with MS Access, but I am trying to get it to work with SQL Server. I see this has been asked several times previously, but I h... | |
doc_43288 | this is my html page : trial.html
{% load static %}
<html>
<head>
<link rel="stylesheet" href="{% static "css/jquery.dataTables.css" %}" type="text/css" />
<link rel="stylesheet" href="{% static "css/dataTables.tableTools.css" %}" type="text/css" />
<link rel="stylesheet" href="{% static "js/jquery.js" %}" type="text/j... | |
doc_43289 | With the FlinkRunner the job runs as BeamApp-hadoop-0617202523-14894e58 and gives error:
ERROR:root:java.lang.NoClassDefFoundError: Could not initialize class org.apache.beam.runners.core.construction.SerializablePipelineOptions
With the PortableRunner the job runs as BeamApp-root-0617202248-36b0d306 (I believe this m... | |
doc_43290 | const onCountryChange = async (event) => {
const countryCode = event.target.value;
setCountry(countryCode);
const url =
countryCode === 'worldwide'
? 'https://disease.sh/v3/covid-19/all'
: `https://disease.sh/v3/covid-19/countries/${countryCode}`;
await fetch(url)
.then((res... | |
doc_43291 | Everything seems to work perfectly fine.
Now I want to add two buttons View and Delete which when clicked will go to another page or execute another javascript function. Can someone help me figure out how to add the button in the given code.
HTML Code :
<table class="table-striped border-success">
<... | |
doc_43292 | For example if I draw some point as eps. (or similar) file, can I use it in R?. Solution by raster is not good in the case of complicated objects (f.e. trees).
A: You can do this with the grImport package. I drew a spiral in Inkscape and saved it as drawing.ps. Following the steps outlined in the grImport vignette, w... | |
doc_43293 | I have a standard 2D array (non-jagged) and a string array. They are linked lets just say via the 1st column of the 2D array.
So that means I would like to sort them together (its not a key based system so I can't use the columns as keys into the string array, just when ever a row in the 2D array moves so too shall th... | |
doc_43294 | what type of test to write for my method. Using the code below as an
example, what should I be testing here? what are the various test I can
write.
[HttpGet]
[Route("GetPosts")]
public async Task<IActionResult> GetPosts()
{
try
{
var posts = await postRepository.GetPosts();
if (posts == null)
... | |
doc_43295 | Your help will be appreciated
A: Found the solution - TelecomManager with a sample usage
Intent intent = new Intent(TelecomManager.ACTION_CHANGE_DEFAULT_DIALER);
intent.putExtra(TelecomManager.EXTRA_CHANGE_DEFAULT_DIALER_PACKAGE_NAME,
getActivity().getPackageName());
startActivity(intent);
| |
doc_43296 | Using the example from http://docs.python.org/2/howto/regex.html#regex-howto
import re
p = re.compile('\d+')
iterator = p.finditer('12 drummers drumming, 11 ... 10 ...')
for match in iterator:
print(match.span)
My output is NOT the locations, but rather
built-in method span of _sre.SRE_Match object at 0x00B0... | |
doc_43297 | http://tk.cavar-marketing.de/
Now there is one menu point "Leistungen" (services) where i need a submenu. My idea is, that when i click on "Leistungen", another fullwidth menu in different color comes from the left and covers the whole menu. For clarification i created an sketch in Photoshop:
sketch of my idea
This is ... | |
doc_43298 | for(int i=0;i<fList.size();i++){
String targets="";
String values="";
String sql="INSERT INTO "+tableName+"("+targets+") VALUES("+values+")";
Map<Column, String> attrs=fList.get(i).getAttributes();
for(int j=0;j<columns.size();j++){
if(columns.get(j).getName().equalsIgnoreCase("kadnum")){
... | |
doc_43299 |
A: Remove or comment out this line in app\Http\Kernel.php:
\App\Http\Middleware\VerifyCsrfToken::class,
A: In your App\Http\Middleware\VerifyCsrfToken class add the following code:
protected $except = [
'*',
];
Docs
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.