id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_36500 | I tried to set it directly, but the contents of the file were offset.
So I want to change the MediaBox coordinates and move the content as well.
Here's the itextshare code(c#). I'm glad to be able to solve it with Java itext.
using (PdfReader pdfReader = new PdfReader(@"MediaBoxZero.pdf"))
{
using (PdfStamper stamp... | |
doc_36501 | Your help will much appreciate.
Thanks in advance
| |
doc_36502 | I would like to know how to set which compiler to use when running initial configuration (when build folder is empty) and how to create a debug configuration. When I run plain debug button that do not require the configuration the break point do not trigger.
I have tried with these config files in launch.json
"version"... | |
doc_36503 | I recently added this piece of code to move the menu when the cursor is too close from the borders of the window, in order to prevent the menu to be drawn partially outside of the window.
if ((PosY + elm.outerHeight()) > $(window).height()) {
PosY = PosY - elm.outerHeight();
}
if ((PosX + elm.outerWidth()) > $(window... | |
doc_36504 | datetimepp/datetime.h:311:96: error: redefinition of default argument for ‘typename std::enable_if<std::is_floating_point<_Tp>::value>::type* <anonymous>’
311 | template<class Scalar, typename std::enable_if<std::is_floating_point<Scalar>::value>::type* = nullptr>
| ... | |
doc_36505 | ads:
+------------+------------+-------------+
| id | width | height |
+------------+------------+-------------+
| 1 | 300 | 250 |
| 2 | 550 | 50 |
| 3 | 300 | 250 |
| 4 | 300 | 250 |
| 5 | 550 ... | |
doc_36506 | I set the UISearchBar with the style minimal. When the searchdisplaycontroller shows his table it has the behavior of the picture below. The table is scrolling above the searchbar. When I switch the style of the tableview to Prominent the table scrolls under the searchbar as expected.
Is this a bug or this behavior is ... | |
doc_36507 | I used a simple sql statement for testing purposes if it is possible to create a table function thru java.
However, it takes a very long time for the creation of function to finish and causes other db users to time-out.
Any thoughts?
I'm using sqlserver 2008 express
try {
Statement statement = conn.createSta... | |
doc_36508 | Suppose a 3-servers zookeeper cluster, the leader server send a proposal(say setdata: foo=1) to two followers and then crashed, but at least one follower record this proposal to its transaction log file. According "Zab paper" says, the other two server can still form a valid quorum and elect a new leader. And the new l... | |
doc_36509 | The thing is when we are inserting/updating the data to the delta table it is being updated in the partitions but maybe not the delta logs.
Because when we try to read the data for the inserted file again it says not found but we can see a parquet file in that partition.
Is there some reason for this?
Our code:
DeltaT... | |
doc_36510 | using System;
namespace averager
{
class Program
{
static void Main()
{
var numberTotal = 0.0;
var entryNumber = 0.0;
var average = (numberTotal/entryNumber);
while(true)
{
// Prompt user to enter a number or enter "done" to s... | |
doc_36511 | Halfway through I started getting some memory access violation errors,
I used breakpoints to find where the crash started and commented the line that causes the memory access violation.
Someone please help me solve my error :) Thanks!
Here is the code:
void extractEmail(const char* html)
{
std::string htmls = html;... | |
doc_36512 | public abstract class FeedForEvents: BaseObservableObject
{
public abstract void ReadFeed();
public List<Event> Events { get; set; }
public void AddEvent(Event aEvent)
{
Events.Add(aEvent);
OnPropertyChanged("Events");
}
}
public class Event : BaseObservableObject
{
public strin... | |
doc_36513 | (Apologies if this is a duplicate, I really can't find anything non-Java.)
A: Another two steps method is :
*
*Cmd+Shift+O to sort the existing imports (and may be pull some new ones)
*Run Pylint or PyFlakes to spot unused imports
This way you will avoid the trap of PyDev not finding imports.
A: I don't know a ... | |
doc_36514 | class ThreadingWorker(threading.Thread):
def __init__(self):
super(ThreadingWorker,self).__init__()
param = config()
self.model = param.model
self.net = caffe.Net(self.model.deployFile, self.model.caffemodel, caffe.TEST)
def run(self):
input_data = np.random.rand(1,4,sel... | |
doc_36515 | So from: ["2931741444","2931789497","2931745064","2931763896","2931728251","2931786984","2931799607","293177823","2931795568","293171105"]
to
list.Add(2931741444);
list.Add(2931789497);
list.Add(2931745064);
etc...
I loop through the string, look at where the numbers began and add them to a new string, but I'm stuck ... | |
doc_36516 | I wrote simple DLL in C++:
DllMain.cpp:
#include "stdafx.h"
HINSTANCE hInst;
BOOL APIENTRY DllMain( HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
if (hInst ... | |
doc_36517 | ID | Value
------------
1 | ABC
1 | DEF
1 | GHI
2 | JKL
2 | MNO
I am looking for an output like this:
ID | Column1 | Column2 | Column3
----------------------------------
1 | ABC | DEF | GHI
2 | JKL | MNO | NULL
Is there a way to achieve this in Postgres without using the crosstab funct... | |
doc_36518 | My Endpoint is configured to deny all except my company's IP range. Now what rule would I need to add or url should I use so my webjob can connect to the endpoint?
I have tried the following without success:
*
*Allow my website virtual IP address in the ACL
*Connect to the endpoint using the internal IP instead of... | |
doc_36519 | '2020-11-10T02:00:12.000'
Currently, I'm updating the column ('created_date') row by row to remove the letter, like so:
for date in df.created_date:
df.created_date.loc[date] = date[0:10] + ' ' + date[11:]
This would allow me to convert the column values to datetime objects with the following code:
df['created_dat... | |
doc_36520 | Now I need to break things up and run the watched folder/processing part on my server, and build a client to monitor the progress from multiple workstations. My problem is I don't know how to accomplish this and my searches aren't really helping me.
It seems I'm getting a lot of out dated solutions (WebObjects, Portab... | |
doc_36521 | I'm a beginner to programming so know little about what to do, I have four check boxes and to submit the form, you have to select at least one of them, but no message comes up and the form is able to be submitted without one of the boxes being ticked.
This is my code below:
<tr>
<td align="right">
... | |
doc_36522 | Heres an example of my code,
item.ts:
export class Item{
itemName: string;
id: sstring;
}
user.ts
import {Item} from './item'
export class Users{
username: string;
id: string;
}
The question is how can I get the value itemName inside the user.ts.
A: These look a lot like models. So you are defining the ... | |
doc_36523 | def funk(x):
for i in x:
i['a'] += 1
print i
list1 = [{'a':1, 'b':2}, {'a':3, 'b':4}]
funk(list1)
print list1
this will output:
{'a': 2, 'b': 2}
{'a': 4, 'b': 4}
[{'a': 2, 'b': 2}, {'a': 4, 'b': 4}]
but I want to have this:
{'a': 2, 'b': 2}
{'a': 4, 'b': 4}
[{'a':1, 'b':2}, {'a':3, 'b':4}]
How d... | |
doc_36524 | <form enctype="multipart/form-data" action="uploader.php" method="POST">
Upload DRP File:
<input name="Upload Saved Replay" type="file" accept="*.drp"/><br />
<input type="submit" value="Upload File" />
</form>
Edit
I know validation is possible using javascript, but I would like the user to only see ".drp" files in h... | |
doc_36525 | ApplicationCovrgeCommonRules class has method checkForValidFormIdForCoverageTest() which needs to be tested. This method is calling another method (of same class) getCarirSysID() having return type String.
@Test
public void checkForValidFormIdForCoverageTest() throws Exception{
String caseId="caseId";
... | |
doc_36526 | I'm using Guzzle 6 and laravel 5.8 for this.
public static function getClient()
{
$url = config( 'test.default_api_url' );
$client = new Client([ 'base_uri' => $url, 'timeout' => 200.0 ]);
return $client;
}
public static function callApiOnce($method, $route, $options)
{
$client = self::getClient(); ... | |
doc_36527 | Entity_ID | Certificate_ID | CertificateExpiry
1 | 1 | dd/mm/YYYY
1 | 2 | dd/mm/YYYY
etc., etc. It's a many-to-many relationship essentially, entities can have many certs and certs can be assigned to many entities.
What I would like to do is have this pivoted so that the list ... | |
doc_36528 | Is there a solution?
A: The execute API does what you want. From the docs:
import nbformat
from nbconvert.preprocessors import ExecutePreprocessor
# Load your notebook
with open(notebook_filename) as f:
nb = nbformat.read(f, as_version=4)
# Configure
ep = ExecutePreprocessor(timeout=600, kernel_name='python3')
... | |
doc_36529 | Thanks
| |
doc_36530 | What I'm struggling with is this. The smaller web app board-game serves it's html, css, and javascript to routes that don't include the prefix route (/board-game). So when a board-game page makes a request for (/css/style.css) nothing is loaded because the content is actually at (/board-game/css/style.css).
My question... | |
doc_36531 | Why would the simulator load something different from what's in the storyboards?
A: Try the following solutions:
*
*clean your project: command + k
*reset the simulator under the File-tab in the task bar while the simulator is open
*open the simulator and delete the app from it like you would on an actual device... | |
doc_36532 | ||
doc_36533 | error:Variable not in scope: guard :: Bool -> Maybe a0
thats the Code
eval3 :: Exp -> Maybe Integer
eval3 e =
case e of
(Const x) -> pure x
(ExpAdd x y) -> eval3 x >>= \x' -> eval3 y >>= \y' -> return (x'+y')
(ExpMult x y) -> eval3 x >>= \x' -> eval3 y >>= \y' -> return (x'*y')
(ExpDiv x y) -> eval3 ... | |
doc_36534 | I've installed the 3rd party command line software "tree" on my Mac so that I can print a file directory structure to a text file for record keeping.
Now I'm trying to write a short AppleScript that performs the tree command mentioned above, however since tree isn't a native shell script in Terminal, I get the error: "... | |
doc_36535 | I need to call Java methods from this function (from native code) so as not to break the interface.
For example:
int someFunction(int a) {
...
jbyteArray result = (jbyteArray)(*jEnv)->CallStaticObjectMethod(jEnv, clazz, methodId);
...
}
I can't put any extra arguments like JNIEnv in someFunction needed by ... | |
doc_36536 | remote: File "/tmp/build_283a27430a6f3f4cbf76d08e0f6a61d6/.heroku/python/lib/python3.6/site-packages/pipenv/patched/pip/_vendor/pkg_resources/__init__.py", line 2121, in _rebuild_mod_path
remote: orig_path.sort(key=position_in_sys_path)
remote: AttributeError: '_NamespacePath' object has no a... | |
doc_36537 | <div id="pos-bar">
<div id="pointer"></div>
</div>
and the css is like this
#pos-bar {
height: 10px;
width: 960px;
margin: 0 auto; }
#pointer{
height: 4px;
width: 180px;
float: right;
background-color: #57c5a0; }
i try to make "pointer" div to float to the right edge of "pos-bar" div, but with this code it ... | |
doc_36538 |
// Search for the word "cat"
int index = Arrays.binarySearch(sortedArray, "Quality");
I always get -3. Problem is in "Name". Why I can not have "Name" in my array? Any idea?
A: The array is must be sorted. From Javadoc of binarySearch():
The range must be sorted into ascending order according to the natural ord... | |
doc_36539 |
Hello. Does anybody know how to use thigmophobe.labels from PLOTRIX? or any other function that voids the point labels to overlap? I am trying to make a ternary diagram with sediment data, but I got this problem and I have no idea how to solve it. Some point labels are overlapping. Maybe it's simple, but I a new R use... | |
doc_36540 | @Composable
private fun TwoRowsTopAppBar(
...
scrollBehavior: TopAppBarScrollBehavior?
) {
...
val pinnedHeightPx: Float = 64.dp
val maxHeightPx: Float = 152.dp
LocalDensity.current.run {
pinnedHeightPx = pinnedHeight.toPx()
maxHeightPx = maxHeight.toPx()
}
// Sets the a... | |
doc_36541 | For exmaple,
var test_name = $('dt').text();
$('#test_div').html('<li> test_name </li>');
This is not working. What am I doing wrong here. It displays test_name not the value of test_name.
A: You need to build a string containing your value:
$('#test_div').html('<li>' + test_name + '</li>');
Note that this is an XS... | |
doc_36542 | Font barFont = new Font("3 of 9 Barcode", 10);
Graphics g = ev.Graphics;
g.PageUnit = GraphicsUnit.Millimeter;
SolidBrush br = new SolidBrush(Color.Black);
RectangleF rect = new RectangleF(new PointF(15, 2), new SizeF(45, 4));
RectangleF rect1 = new RectangleF(new PointF(15, 5), new SizeF(45, 3));
RectangleF rect2 = n... | |
doc_36543 | private void SearchForDoc()
{
try
{
outputtext = @"c:\temp\outputtxt";
outputphotos = @"c:\temp\outputphotos";
temptxt = @"c:\temp\txtfiles";
tempphotos = @"c:\temp\photosfiles";
if (!Directory.Exists(temptxt... | |
doc_36544 | $ftp = ftp_connect( 'host' );
ftp_login( $ftp, 'user', 'password' );
ftp_pasv( $ftp, TRUE );
ftp_put( $ftp, 'local_file', 'remote_path', FTP_BINARY );
Transfer speed of 2MB file is about 15 sec, while WinSCP client uploads same file in 1-2 seconds.
So I suppose that's because my network connection have quite a big lat... | |
doc_36545 |
A: I was not able to locate any api, which will be able to tell me how much tasks is in queue for an agent pool currently, so, I found my way around:
*
*Query https://dev.azure.com/{instanceName}/_apis/distributedtask/pools/{poolId}/agents - this will show me how much agents I have and how much of them is online
*... | |
doc_36546 | To obtain 1), the add-in reads and writes (MAPI) fields in the PS_INTERNET_HEADERS namespace. When the add-in is first loaded, it creates a dummy hidden message that ensures that Exchange is forced to do the mapping between MIME headers and MAPI properties for incoming messages (addressing the problem described in Name... | |
doc_36547 | @Component({
template: '<child *ngFor="let child of children" [child]="child"/>'
})
export class ParentComponent {
children: Array<Child>;
constructor () {
this.children = [
new Child('Foo'),
new Child('Bar'),
]
}
}
class Child {
name: string;
construct... | |
doc_36548 |
<span style="container-type: inline-size; outline: 1px solid blue;">
This is a span
</span>
<button style="container-type: inline-size;">
This is a button
</button>
When running the snippit you will see that the span renders normally and the button renders collapsed.
Does anyone know why this happens?
... | |
doc_36549 | My topology
public class TopologyMain {
public static void main(String[] args) throws InterruptedException, AlreadyAliveException, InvalidTopologyException {
//Topology definition
TopologyBuilder builder = new TopologyBuilder();
builder.setSpout("word-reader",new WordReader());
builder.setBolt("word-no... | |
doc_36550 | However it just call my function once when I shake my phone, then once more if I stop and shake it again.
While I want to have the func active as long as I'm shaking the phone.
Any ideas what I should do ?
A: Try this:
Swift:
override func motionEnded(_ motion: UIEvent.EventSubtype, with event: UIEvent?) {
if ... | |
doc_36551 | Trying to load videodev using sudo modprobe videodev also returns the same module not found error.
I tried installing Linux headers for this but to no success. Any leads?
A: kernels for cloud VMs are most often stripped of anything unnecessary in a cloud environment for space (and implicitly speed) reasons (and put in... | |
doc_36552 | @Entity
@Table(name = "category")
@NamedQuery(name = "category.findAll", query = "SELECT c FROM Category c")
public class Category implements Serializable {
public Category(){}
@Column(name = "name", nullable = false)
@Id
private String name;
@Column(name = "col2")
private Boolean col2;
}
... | |
doc_36553 | CREATE TABLE cust_account(
cust_id DECIMAL(10) NOT NULL,
first VARCHAR(30),
last VARCHAR(30),
address VARCHAR(50),
PRIMARY KEY (cust_id));
CREATE TABLE orders(
order_num DECIMAL(10) NOT NULL,
cust_id DECIMAL(10) NOT NULL,
order_date DATE,
PRIMARY KEY (order_num));
CREATE TABLE line_it(
order_id DECIMAL(10) NOT NULL,
... | |
doc_36554 | I have blueprint class that created inside of unreal engine editor, (Not Deriven by c++) and there's bunch of staticmeshcomponent is added.
How to get all those component from c++ class?
What i tried :
TileGenerater.h
TSubclassOf<TileActor> TileType;
TileGenerater.cpp
AActor* TileActor = TileType.GetDefaultObject();
a... | |
doc_36555 | trait SomeRestriction {}
struct SomeStruct<T: SomeRestriction>(T);
impl<T: SomeRestriction> SomeStruct<T> {
fn some_function_that_does_not_take_self() -> String {
todo!()
}
}
I want to write a test and I would like to avoid giving
that function the self parameter since mocking the object
with some gen... | |
doc_36556 | @Entity
@Audited(withModifiedFlag = true)
public class MyEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private long id;
@Column(nullable = false, length = 50)
private String Name;
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "parentEntityId")
private MyEnti... | |
doc_36557 |
I want to restrict this key to one app only, so I "Edit allowed iOS application" add my bundle Id to it. My bundle Id is easily found in General tab of my project target as following:
I don't know if it is case-sensitive or not, but I copy exactly the identifier from there to add to the key. As you can see, it cannot... | |
doc_36558 | so, i need better explanation of that:
function factorial($n){
if($n==0){
return 1;
}
return fact($n, 1);
}
function fact($i, $j){
if($i<1){
return 1;}
else {
return fact($i-1, $i*$j);
}
}
echo factorial(5);
one more thing, i need clarification of how below return method:
return fact($i-1, $i*$j);
will work to conve... | |
doc_36559 | My excel sheet is for meeting minutes, and based off column D, I will decide whether to hide or show the cell row. Now, column D contains dates of particular minutes, but occasionally contains a string called "Date" as part of a header row. For some reason, I cannot successfully write an if statement to skip said rows.... | |
doc_36560 | This is how it appears :
I want it to appear as follows :
Here's my code :
<table style="width:100%">
<tr>
<td>
</td>
</tr>
<tr>
<td align="center">
<div style="overflow:auto; height: 175px; width: 900px;">
<asp:GridView ID="grdNDA" runat... | |
doc_36561 | APPLE: toronto, 2018, garden, tasty, 5
apple is a tasty fruit
>>>end
apple is a sour fruit
>>>end
grapes: america, 24, organic, sweet, 4
grapes is a sweet fruit
>>>end
This is a file which also has new line characters.
I want tp create a dictionary using the file. it goes like this
the function is def f(file_to: (Te... | |
doc_36562 | So the problem is, i have an object with all my variables like this:
app.Variables = {
var1: 0,
var2: 0,
var3: 0
}
And i want to store this values in a object called Defaults like this:
app.Defaults = app.Variables
But the problem now is, in my code, app.Variables.var1 e.g. get incremented like this:
app.... | |
doc_36563 | Right now, I create a new clip whenever I need them to be grouped and separated, and attempt to replace any existing clip with this:
private void ReplaceAndPlay(AnimationClip clip, string name) {
var old = Anim.GetClip(name);
if (old != null) {
Anim.RemoveClip(name);
Destroy(old);
}
... | |
doc_36564 | If I use this method it works fine
$route = 'img/' . $domain . '.png';
$img->save(public_path($route));
But I want to save this in a new folder with the domain name $domain
I tried to use this
$route = 'img/' . $domain . '/' . 'favicon.png';
$img->save(public_path($route));
But I get this error
Can't write i... | |
doc_36565 | View.getScrollX();
and when that's equal to 0 I can enable the left menu. and that works fine. I've been wondering how to do this for the right side because I can't get the maximum scroll distance, and on top of that, the text size can change on demand and I'm not using a set width font - so it can't just be calculate... | |
doc_36566 |
A: Good afternoon Hugh,
PHP session variables are stored on your server, not on the local machine. For general purposes, setting a session variable to check login is safe, but I would have an additional check to validate username and maybe even a session key.
A:
Is it safe to set the session logged_in as true if the... | |
doc_36567 | Thank you all!
| |
doc_36568 | variables.env (the rest is default):
# Application
WEB_DOCUMENT_ROOT=/project/public
WEB_ALIAS_DOMAIN=localhost
APPLICATION_CACHE=/project/cache
APPLICATION_LOGS=/project/logs
# production | development | staging | testing
APPLICATION_ENV=development
hosts:
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sampl... | |
doc_36569 | $('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'agendaWeek,agendaDay',
ignoreTimezone: false
},
selectable: true,
selectHelper: true,
editable: true,
events: 'events'
});
A: Just add defaultView: 'basicWeek' to your full... | |
doc_36570 | Tried many things.
First of all I have
$html = listings_swal()
which is
function listings_Swal() {
return '<table id="datatable"><thead><tr><th>Col1</th><th>Col2</th></tr></thead>
<tfoot><tr><th>Col1</th><th>Col2</th></tr></tfoot></table>';
Which is just simply the empty table without the contents.
Here is m... | |
doc_36571 | An example:
date code_ID name_ID new_value
2021-03-10T17:00:00 13 Alpha 372
2021-03-11T17:00:00 13 Alpha 608
2021-03-12T17:00:00 13 Alpha 515
2021-03-13T17:00:00 13 Alpha 320
2021-03-14T17:00:00 13 Alpha 323
2021-03-15T17:00:00 13 Alpha 329
2021-03-16T17:00:00 13 Alpha 212
2021-03-17T17:00:00 13... | |
doc_36572 | I have my file structure set up as so:
/root
|
/api
|
/Slim PHP framework
index.php
|
index.php
The index.php inside the Slim directory contains the routes required to retrieve the JSON data from a Mongo database. E.g.
$app->get('/users(/:id)', function($id = null) use ($app, $collecti... | |
doc_36573 | This is how I currently set the image:
echo "<img src='img/profile_pictures/main_photo.png'/>";
The main_photo can change each day, but if it changes to main_photo.jpg insted, it wont show (because the extension is hardcoded on that line(.png)). Is it possible to display the photo without knowing the extension for the... | |
doc_36574 | require 'facebook.php';
$app_id = '16850872653xxxx';
$app_secret = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
$facebook = new Facebook(array(
'appId' => $app_id,
'secret' => $app_secret,
'cookie' => true
));
$signed_request = $_REQUEST['signed_request'];
//echo $signed_request;
list($encoded_sig, $payload) = explode('.', $s... | |
doc_36575 | However since I don't have apt-cache it doesn't help me. Running:
httpd -M
Gives me a list of all the installed modules but not their versions. My colleague has just pointed out that you can use:
yum info mod_dav_svn.x86_64
This returns the installed version and the one available via Yum, however, if I use ht... | |
doc_36576 | I have created a full demo below that demonstrates my current work-in-progress. My initial idea was to clamp the circle to the closest edge, but that seemed to not be working properly. I think there might be a solution involving Separating Axis Theorem, but I'm not sure if that applies here or if it's overkill for this... | |
doc_36577 |
The TensorFlow library wasn't compiled to use AVX instructions, but
these are available on your machine and could speed up CPU
computations
I installed it using pip.
How can I fix it?
A: It's because you installed using pip it's a precompiled package that wasn't precompiled to the architecture you use, you need to b... | |
doc_36578 | How can I make it so the map adds the pins from my two functions? If I have the two functions on right now with my current code I get no pins, If i only load 1 function I get the data form that function and vice versa. I also connect the List of pins I created to a filter that I will also show.
This is the code:
pr... | |
doc_36579 | Any help will be appreciate it.
Here is the code that I have so far.
if (filesDate > fromDate && filesDate < toDate)
{
Response.Write("<input name=\"" + filePath + "\" type=\"checkbox\" value=\"" + filePath + \"/> <strong>Recording created on: " + filesDate + "</strong><br/>"); ... | |
doc_36580 | I want to display a string char after char with a short delay but I’m not sure how to do it.
Should i convert the string into an array and display this array in a ForEach or is it possible to do this with string manipulation?
Thanks for every hint :-)
Michael
A: Here's an example where you can input a String. It will ... | |
doc_36581 | I'm trying to take many lines of input from a user and input must end when user hits 'Ctrl + D' and then it must continue onto rest of code
#include <iostream>
using namespace std;
int main()
{
string x, input, output, choice;
cin >> x;
cin >> choice:
getline(cin , input) ; // need this part to end wh... | |
doc_36582 | I have managed to follow the migration guides and get everything else up to scratch however I can't find a solution to the following error:
Platform restriction: a parameter list's length cannot exceed 254.
My routes file is rather large however this was not a problem on the previous version.
I believe this error is... | |
doc_36583 | What I've just tried:
window-preferences-java-editor and changed all colors.
window-preferences-Appearance-Colors and Fonts and changed all dark colors.
Change Theme
| |
doc_36584 | #!/usr/bin/env bash
tempfile=`mktemp` || exit 1
git show $1 > $tempfile
notepad++ -multiInst -notabbar -nosession -noPlugin $tempfile
rm $tempfile
I invoke it through git like so:
git open master:Applications/Survey/Source/Controller/SurveyManager.cpp
Before I open this in notepad++, I want it to append the extension... | |
doc_36585 | <div>
<a href="@Href" onclick="@OnClick" class="@Classes" style="@Styles">@Content</a>
</div>
I have to declare parameters of "Href, OnClick, Classes, Styles" and so forth. But we know that tag "a" has huge amount of other attributes, like "target, hreflang...", not to mention "input" tag or so. I think it's stupi... | |
doc_36586 | Here is my HTML..
<div class="header-wrapper">
<div class="header">
<div class="logo"> <img src="image/logo.png" alt="logo"/>
</div>
</div>
</div>
and this is my CSS..
html, body {
color: #6F6F6F;
font-family: Trebuchet MS;
font-size: 0.75em;
margin: 0... | |
doc_36587 | import pandas as pd
import datetime as dt
import yfinance as yf
#Get initial paramaters
start = dt.date(2020,1,1)
end = dt.date.today()
ticker = 'SPY'
#Get df data
df = yf.download(ticker,start,end,progress=False)
#Make simple moving average
df['SMA'] = df['Adj Close'].rolling(window=75,min_periods=1).mean()
Thank... | |
doc_36588 | <FlatList
data={vehicles}
horizontal={false}
scrollEnabled
renderItem={({ vehicle}) => <VehicleContainer vehicle={vehicle} />}
keyExtractor={(vehicle: any) => vehicle.numberPlate.toString()}
/>
where vehicleslooks like this:
[{numberPlate: "OL-AL-1336... | |
doc_36589 | However, the Statistics table appears to be missing the average response time column. Min, Max, 90th pct, 95 pct and 99 pct response times along with Label, #Samples, KO(?), Error%, Throughput and KB/sec columns are present, but Average is not.
The Statistics table in the documentation at Generating Report Dashboard al... | |
doc_36590 | I used this CSS but cannot find a class which is added only when the video plays or only when the poster displays.
.mejs-controls {
display: none;
visibility: hidden;
}
None of the other answers i checked relate to the WordPress video player.
| |
doc_36591 | 1 for (int i = 0; i < 10; i++)
2 arr[i] = 0;
My question:
Is line 2 correct, or do I need to initialize to 0.0? What's the difference?
A: Your line 2 is correct. 0 will be implicitly converted to double.
Btw you have declared arr static so all elements will be initialized to 0 automatically anyway. No need for the... | |
doc_36592 | public static IObservable<TAccumulate> Scan<TSource, TAccumulate>(this IObservable<TSource> source, TAccumulate seed, Func<TAccumulate, TSource, TAccumulate> accumulator);
The accumulator is
Func<TAccumulate, TSource, TAccumulate> accumulator
While trying to implement a state machine model with async state transition... | |
doc_36593 | I have a function
func equalToArray<T, S>(_ vector:Array<S>) -> Matcher<T> {
let v: Matcher<T> = Hamcrest.hasCount(16)
return v
}
This gives an error
Error:(16, 31) 'hasCount' produces 'Matcher<T>', not the expected contextual result type 'Matcher<T>'
SwiftHamcrest has two hasCount functions
public func hasCount<... | |
doc_36594 | "C:\Program Files\Windows Installer XML v3.5\bin\heat.exe"
file MyAddin.dll -ag -template fragment -out MyAddin.wxs
The result is registry entries per user. In the following lines from the created wxs file you can see HKCU -- for HKEY_CURRENT_USER:
<Class Id="{1AF5E2B9-CC02-368F-A879-1DF3F538D71A}" Context=... | |
doc_36595 |
I have the following code which I've written by myself, but it's terrible. It's not right. I'm not too worried about the "selection" part of it right now, I'm mainly concerned with how do I draw like this?
private void splitContainer1_Panel1_MouseMove(object sender, MouseEventArgs e)
{
if (mouseDown)
{
... | |
doc_36596 | This is all my code:
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:p="http://primefaces.org/ui"
x... | |
doc_36597 | public string GetQueryStringValues(HttpContext context)
I am writing unit test from article hanselman article using Moq to create/populate HttpContext and pass into the method as follows:
string url = "http://localhost:51209/WebForm1.aspx?height=6&width=7&length=8&mode=walk";
HttpContextBase contextba... | |
doc_36598 | <link rel='stylesheet' href= '@(Request.Url.AbsoluteUri + item.Path)'>
I'd like this to end up looking like:
<link rel='stylesheet' href='http://example.com/css/a.min' >
A: You can write it as a string:
@("<link rel='stylesheet' href='" + Request.Url.AbsoluteUri + item.Path + "'>")
| |
doc_36599 | I am currently learning the Git on Windows PowerShell terminal and I wanted to capture all the commands and their output in a file for future reference.
Is there any way/command do achieve it on Windows PowerShell?
A: Try with Start-Transcript and Stop-Transcript cmdlet.
You can also use Start-Transcript for ISE Edi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.