id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_23534900 | import SwiftUI
struct MeasurementReading: View, Equatable {
@ObservedObject var ble: BluetoothConnectionmanager
@GestureState var isDetectTap = false
@State var MyText:String = "Wait"
static func == (lhs: MeasurementReading, rhs: MeasurementReading)->Bool{
return lhs.MyText == rhs.MyText
... | |
doc_23534901 | bind(ExternalSystemAccessor.class).to(ExternalSystemAccessorStub.class).in(Singleton.class);
Now one of my tests needs to use the productive implementation, so I tried to bind it back the default with an override:
injector = Guice.createInjector(Modules.override(new TestModule()).with(new AbstractModule() {
@Overr... | |
doc_23534902 | I've currently got this which works
^[jJ]{2}[\-\s]{0,1}[0-9]{2}[\-\s]{0,1}[0-9]{2}[\-\s]{0,1}[0-9]{2}[\-\s]{0,1}[a-zA-Z]$
but I was wondering if there is a shorter version for exmaple
^[jJ]{2} [ [\-\s]{0,1}[0-9]{2} ]{3} [\-\s]{0,1}[a-zA-Z]$
So repeat the [-\s]{0,1}[0-9]{2} 3 by wrapping it in some sort of group [ * ]... | |
doc_23534903 | My code like this:
import win32gui, win32ui, win32con, win32api
screen_w = 2880
screen_h = 1800
x0 = int(screen_w * 0.866)
y0 = int(screen_h * 0.14)
ww = 220
hh = 70
def window_capture(filename):
hwnd = 0
hwndDC = win32gui.GetWindowDC(hwnd)
mfcDC = win32ui.CreateDCFromHandle(hwndDC)
saveDC = mfcDC.Cr... | |
doc_23534904 | I don't know why it display only four first posts.
Can you help me change this code to display all posts from my table, to retrieve data I'm using .each loop so I think this is not the main problem.
A: I've created a dynamic one with the example you gave, I calculate through JS the amount of li and then I calculate wh... | |
doc_23534905 | function oldestAges(ages){
if (ages == []){
return [0,0];
}else{
var max = Math.max.apply(null, ages);
ages.splice(ages.indexOf(max), 1);
var max2 = Math.max.apply(null, ages);
return [max2,max];
}
}
However, when testing [] as ages, the expected was '[0, 0]', instea... | |
doc_23534906 | I was trying to findout why dequeue Thread gets duplicated data even there are no duplicated data in ConcurrentQueue.
What will be the possible problem?
Enqueue Thread Code
private void Server_MulticastReceiveThread()
{
Socket mcastSocket;
ReceiveDataType InsertQueue; // To insert Queue
byte[] data = new byte[... | |
doc_23534907 | But what I need to do, is filter two columns, and name it by the same principles, so I modified it.
Somehow on second value in first loop, it doesnt start loop in other loop.
Why does it give me blanks in second loop?
Sub datu_sagrupesana()
Dim x As Range, y As Range, rng As Range, last As Long, sht As Worksheet
Appli... | |
doc_23534908 | I'm seeing the API to search Common Crawl for a given domain.
How can I search common crawl for a given search term?
A: you can't currently search the content of the web pages. There was commonsearch which used the CC datasets but I am not sure how up to date it is.
If you are looking for a limited set of keywords y... | |
doc_23534909 | <!DOCTYPE html>
<ui:composition
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets">
<div id="crb_header">
<br/>
<h4 align="right">Welcome : #{homebean.user}</h4>
<br/>
</div>
</ui:composition>
The above page is at... | |
doc_23534910 | the data structure is like this
I am trying to write a for loop in React to pull all the garages information to my webpage in list format.
My code:
MyComponents.Garage = React.createClass({
render: function() {
var garage = this.props.garage
console.log(garage)
return (
<li className="card-conten... | |
doc_23534911 | I've created a struct that stores the data:
typedef struct {
/*Start Size Description */
int signatute; /* 0 4 Local file header signature = 0x04034b50 */
short int version; ... | |
doc_23534912 | Possible Duplicate:
How can I sort an NSArray containing NSDictionaries?
I have an array of dictionaries.. This is what my dictionary looks like
MOD = 0;
MAU= 30;
MODN = "SOME WORD";
MODID = 518;
I have tried sorting the array of dictionaries like this
sortedArray = [[ICArray valueForKey:@"MODN"] sortedArrayUsingSel... | |
doc_23534913 | I'm afraid the problem lies in the if(!(this instanceof Buffer)){} code, that is evaluating to false, since the code doesn't actually inherit from the prototype, so I need a way to fool the instanceof operator to make it work.
I'm using the ES5 Class module https://npmjs.org/package/es5class
var Class = require('es5cla... | |
doc_23534914 | These numbers look oddly high to me, and I have few hypothesis, but I don't have any tool to investigate: is there a way to browse the history of the issued calls/commands to Cloud Firestore? It would be nice to have the auth.uid of the call issuer and some other details (time, location, etc.).
Notice: I know I could ... | |
doc_23534915 | 1.
select
extract(year from (sysdate - to_date('2002-12-25')) year to month) Y
from dual;
2.
with age(d) as
(
select (sysdate - to_date('2002-12-25')) from dual
)
select
extract(year from (age.d) year to month) Y
from age;
error:
ORA-30083: syntax error was found in interval value expression
30083. 00000 - ... | |
doc_23534916 |
*
*There is an expiration setting in SDWebImage codes, should I set the expiration time to a large value to store the cache permanently?
*Since I wanted the pictures to be cached permanently, should I stored them into a dedicated folder or the default directory is sufficient? My app needs those picture to be persi... | |
doc_23534917 | Tap (mousedown) on the stage to create and add a child at that location.
*EDIT: I'm also trying to solve for multitouch, so multiple balls can be created at the same time.
As you hold down you can drag (pressmove) that child around and it grows (using regX/regY/scaleX/scaleY) until you release (pressup), at which poin... | |
doc_23534918 |
Why cannot I create a new project?
greetings and thx in advance
A: Plugin is not same as the SDK. Plugin just makes it easy to work with GWT projects.
The actual GWT compiler and libraries are present in the SDK which needs to be downloaded separately.
Once you download and extract the SDK, You have to configure its... | |
doc_23534919 | const {
config
} = require("dotenv");
const Discord = require('discord.js');
const client = new Discord.Client();
// Variables
const ownerID = '426345341072179223';
const PREFIX = '.';
// Message to ping the bot
client.on('message', message => {
let args =
message.content.substring(PREFIX.length).split(" "... | |
doc_23534920 | Here is my code snippet:
ProgressDialog progDialog = new ProgressDialog(ProgressBarExample.this);
progDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
progDialog.setMax(200);
progDialog.setMessage("Dollars in checking account:");
progDialog.setButton("Cancel",
new DialogInterface.OnClickListener() ... | |
doc_23534921 | When a user submits content via a php form what exactly happens?
I'm trying to understand how exactly submission data from a form gets saved so that its their for others to see. Take reddit (or even this site) for example, users fill out a form hit submit and their post is there for everyone to see forever. Does this h... | |
doc_23534922 | I have created dynamic data-ids carriers_{{name}}_name
in my jsp as below:
<div class="gs grid-7of8 pointer cell"><p data-id="carriers_{{name}}_name">{{name}}</p></div>
now if i want to do the DOM manipulation in my JS by searching through this data-id. How can i do it? how can i get this dynamic value {{name}} in my ... | |
doc_23534923 | implementation 'com.google.android.material:material:1.1.0'
And use the following code
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_settings);
FloatingActionButton fab = findViewById(R.id.fab);
fab.hide() // This is... | |
doc_23534924 | df
date overall eastern
1 1997-12-15 17.548 18.751
2 1998-01-15 16.189 17.155
3 1998-02-15 15.667 16.504
4 1998-03-15 15.509 16.208
5 1998-04-15 16.709 17.702
6 1998-05-15 18.822 19.660
7 1998-06-15 22.722 23.512
8 1998-07-15 25.372 25.912
9 1998-08-15 26.597 27.226
10 1... | |
doc_23534925 | ||
doc_23534926 |
After the above-mentioned process, I made a few transactions for testing purposes. But they haven't got synced. What I realized is that it is not get synced after linking the account. Also, I am not receiving any event through the webhook.
I have written this on StackOverflow after getting fed up with the Yodlee supp... | |
doc_23534927 | =IF(OR(AND(C4>0,TODAY()-F4>250),AND(C4=0,TODAY()-D4>60)),"Sell Now", "Check back in 30")
At TODAY()-F4>250 I get a Value error if there is no data in Cell F4. I have tried variants of modifying with ISNUMBER or ISBLANK but it throws off my Logical condition and gives me false negatives when it should return TRUE.
Can ... | |
doc_23534928 | How can I align labels vertically, input and submit without using col-md?
<form class="form-inline" action="action1.php" method="POST">
<div class="form-group">
<label for="input1">Email test</label>
<input type="text" class="form-control" id="input1" placeholder="Email" name="email">
</div>
... | |
doc_23534929 | However, my project has an added difficulty, I have to use rules that include markers and variables.
A variable represents any letter in the alphabet and a marker is simply a character that is used as a reference to move the variables around (It doesn't have a real value).
This example duplicates every character in a ... | |
doc_23534930 | However, my code for the scrolling to the bottom is not working at all.
To demonstrate this, I created this fiddle:
https://jsfiddle.net/jcp1sw23/
And this is my jquery code:
$(document).on("click",".sendPm",function() {
var txt = $('#message2').val();
var htm = '<li id="'+ txt +'" class="self"><div class="... | |
doc_23534931 | fileLake = open("lakes.txt", "r") # has two columns
listLake = []
for lay in fileLake:
line = lay.strip().split(",")
nameLake = line[0]
waterQuality = line[1]
listLake = nameLake, waterQuality
print(listLake)
filePortage = open("portages.txt", "r") # has three columns
for ages in... | |
doc_23534932 | Can you please help me to upload multiple pdf files and upload in sql?
Thank you.
<div>
<label style="font-size: 14px;">
<span style='color:navy;font-weight:bold'>Attachment Instructions :</span>
</label>
<ul>
<li>
Allowed only files with extension (jpg, p... | |
doc_23534933 | <ul>
<li>List Item 01</li>
<li>List Item 02</li>
<li>List Item 03</li>
<li>List Item 04</li>
<li>List Item 05</li>
<li>List Item 06</li>
<li>List Item 07</li>
<li>List Item 08</li>
</ul>
With this list, I want to Keep a fixed width space in between item 04 and 05. And first four items should be align t... | |
doc_23534934 | Here is an example about my problem:
public class ListFragment extends Fragment {
private MyAdapter adapter;
private List<String> data = new ArrayList<>();
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
for (int i = 1; i < 30; i++) {
data.add(... | |
doc_23534935 | I know I could potentially just run bower link to symlink a local copy of the cloned repo elsewhere - or even cd into the package dir and clone the repo inside this but I thought maybe it was possible via config?
| |
doc_23534936 | I do a simple test in my controller.
In my controller, i placed this code:
`include(app_path().'/Classes/PHPExcel.php');`
`include(app_path().'/Classes/PHPExcel/Writer/Excel2007.php');`
Then I instantiate the object PHPExcel :
`$workbook = new PHPExcel;`
I activate the sheet on which I work (the default ... | |
doc_23534937 | When I communicate with one of them, everything is fine.
When I communicate with two, a few minutes into the convo, my message (short or long, text or sticker or picture) gets stuck sending for a number of minutes. I am not able to receive in that channel either. After a number of minutes, the send is completed and th... | |
doc_23534938 | Question
I want to disable a single option with JS. I tried using the following code:
var input = $('input[value="' + selectedPriLang + "Sec" + '"]');
input.prop('disabled', false);
input.parent('li').addClass('disabled');
It kind of works, but the problem is I can still enable the option using the Sel... | |
doc_23534939 | Here, this code http://jsfiddle .net/dk5sy93d/
A: I'm new to Jquery (since yesterday). I have to make a simple slider in an upcoming web development competition. This is just something I wrote because everything I seem to come across has a large library attached to it.
//Manual Slider Control Jquery
$("#slider-ne... | |
doc_23534940 | The regression is a basic one, with just one predictor variable and one dependent. How do I handle the fact that i need to pass an aggregated value to the lm() function, even though i need to send the entire column?
With a column called 'Predictor', and another called 'Dependent', I essentially need to do this in Table... | |
doc_23534941 | So I've got this piece of code here
mov DWORD PTR [ebp-4],0X0
cmp DWORD PTR [ebp-4],0X9
.
.
.
lea eax,[ebp-4]
inc DWORD PTR [eax]
...
and I am not sure why exactly do I have to use the "lea" and "eax" here. If I understand it correctly, [ebp-4] points to int(4 bytes) with the value of 0. Could I increment it directly ... | |
doc_23534942 | for example: if user entered input:
I like the red color
blue is also nice
and green is lovely
but I don't like orange
output:
but I don't like orange
and green is lovely
blue is also nice
I like the red color
Thanks in advance!
#include<iostream>
#include<string>
using namespace std;
const int SIZE= 500;
int main(... | |
doc_23534943 | Here is the HTML tag.
<ul id="filter" class="group">
<li>
<a class="art-direction" href="#" title="View all items filed under Art Direction">
<span class="term-name">Art Direction</span>
<!-- START .term-count -->
... | |
doc_23534944 | I'm not sure when it started because I was relying on the emulator, but I do know that it was working at some point
Here is my app.json
{
"name": "appname",
"displayName": "appname",
"expo": {
"name": "appname",
"version": "1.0.0",
"slug": "appslug",
"orientation": "portrait",
"privacy": "unli... | |
doc_23534945 | I was able to make it work, but I suspect not in the best way. I'm wondering if it could be done more "Flask"-ily.
What I do now, for example if I was updating all rows in table cars to have tires = 4:
*
*A custom action in the CarView class collects the ids of the rows to be modified, a callback url from request.re... | |
doc_23534946 | .fifty {
@include span-columns(3);
@include nth-omega(2n);
}
However as soon as I ad a 1px border to the button the effective width is 100%+4px and thus it breaks the layout.
I'm using the Compass Vertical Rhythm plugin for all my button padding values so would like not to mess that up.
A: This is related to ... | |
doc_23534947 | When I tried graphs , it shows only one at a time. Whether telerik supports more than one chart in the same page ?
My Index Page
<link href="@Url.Content("~/Content/kendo.dataviz.min.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/examples-offline.min.css")" rel="stylesheet" type="text/cs... | |
doc_23534948 |
I have so far wrote this query:
SELECT
to_char(favi.date::date, 'mm-dd-yyyy') AS "Date",
(SELECT COUNT(dv.severity) WHERE dv.severity='Critical') AS "Critical Vulns",
(SELECT COUNT(dv.severity) WHERE dv.severity='Severe') AS "Severe Vulns",
(SELECT COUNT(dv.severity) WHERE dv.severity='Moderate') AS "Moderate Vulns",
... | |
doc_23534949 | Oct 09, 2013 4:26:46 PM org.apache.catalina.loader.WebappClassLoader findResourceInternal
INFO: Illegal access: this web application instance has been stopped already.
Could not load oracle/sql/converter_xcharset/CharacterConverter002e.glb. The
eventual following stack trace is caused by an error thrown for debuggi... | |
doc_23534950 | List<ServiceLineTypeResource> serviceLineList = serviceLineRepository.findAll();
Print Output:
[Backup, COI, Network, Oracle, SQL_Activities, Storage, Unix/Linux, Virtualization, Windows, #N/A]
...that I want to split into three separate lists of each 3 items each, excluding the final item:
List<ServiceLineTypeResour... | |
doc_23534951 | I am asking because this is the first time I want to use svelte, and I have an entire app of my company written in JavaScript OOP and I want to rewrite it entirely to svelte.
And I wonder if I can copy and paste the old class code and use the bind and other cool stuff from svelte to make it more interesting, and faster... | |
doc_23534952 | This class is used to check for subclassing, and is defined in Predef:
sealed abstract class <:<[-From, +To] extends (From => To) with Serializable
private[this] final val singleton_<:< = new <:<[Any,Any] { def apply(x: Any): Any = x }
However when I write A <:< B I am not sure if I am using an instance of <:<[A,A] or... | |
doc_23534953 | country:
*
*id
*name
region:
*
*id
*name
*fk_country
dept:
*
*id
*name
*fk_region
user:
*
*id
*fk_country
*fk_region
*fk_dept
The user table has only one foreign key set (the others should be null).
We do not have to set the foreign key fk_pays because we can touch the country table via fk_... | |
doc_23534954 | DataTextField="name" DataValueField="name" MaxLength="0"
style="display: inline;"
AutoCompleteMode="SuggestAppend">
</asp:ComboBox>
this is the asp code for my combobox...i am populating my combobox from database.I have all the city names in my combobox.Now i have enabled suggest append as you can see..... | |
doc_23534955 | void delete (int s[] , int &top , int v)
{
int ts[size] ;
int ttop=-1;
while(top!=-1)
{
if(s[top]!=v)
push(ts,ttop,s[top]);
pop(top);
}
while(ttop!=-1)
{
push(s,top,ts[ttop]);
pop(ttop);
}
}
A: You need to define a flag which will be set afte... | |
doc_23534956 |
A: You can get the prefix by using the function getTableName() like below :
Always use getTableName with raw queries to fetch the table along with the prefix dynamically
protected $_resource;
public function __construct(
\Magento\Backend\App\Action\Context $context,
\Magento\Framework\App\ResourceConnection... | |
doc_23534957 |
*
*A UIImageView whose image has a portion of it cut away to reveal what is below it.
*A UIButton below the UIImageView that is revealed through the cut away portion of the UIImageView.
Since the UIImageView overlaps the UIButton spatially it is preventing touches from reaching the UIButton even though the UIBut... | |
doc_23534958 | I've tried py2exe and cx_Freeze, both giving me a dist or build directory with an .exe and several other files (dependencies). This does work, since I'm able to zip up the whole folder and distribute via .zip, but it's not ideal. I want to be able to wrap it all up in one file.
So I started googling 'how to compile py... | |
doc_23534959 | $('#nextMonth, #prevMonth').click(function() {
// execute code
});
but trying to make it look something more like this, but not sure how to write it in a way that works
$('#nextMonth, #prevMonth').click || $('.yearSelect).change(function() {
// execute code
});
so basically, if #nextMonth / #p... | |
doc_23534960 | Also, to understand the question, consider the use of Row.CREATE_NULL_AS_BLANK missing policy we use in row.getCell() method. When does excel sheet have null value for a cell where we can use this missing policy?
A: In a Excel file in storage for a sheet only rows and cells are stored if they have values or settings. ... | |
doc_23534961 |
You will notice that every other document that gets added to the items field is automatically highlighted light blue. I was wondering if it was possible to change that color, and furthermore if it was possible to set it so only the top item (or a single items) gets highlighted in that list of documents?
I thought this... | |
doc_23534962 | However, there is a lot of ambiguity and some of the answers provided ... including duplicating JAR references in the jars/executor/driver configuration or options.
The ambiguous and/or omitted details
The following ambiguity, unclear, and/or omitted details should be clarified for each option:
*
*How ClassPath is af... | |
doc_23534963 | format error: file is too short at /usr/share/perl5/Archive/Zip/Archive.pm line 667.
Archive::Zip::Archive::_findEndOfCentralDirectory('Archive::Zip::Archive=HASH(0x8acf47c)', 'IO::File=GLOB(0x8ac9d70)') called at /usr/share/perl5/Archive/Zip/Archive.pm line 581
Archive::Zip::Archive::readFromFileHandle('Archive::Z... | |
doc_23534964 | SyntaxError: syntax error
[Break On This Error]
<!DOCTYPE html>
It references Line 31 which is this line of code:
var formResponse = eval(msg);
Here is the full AJAX Code:
function jqsub() {
var $f = $('#email-form');
var $m = $('#success-message');
$.ajax({
type: 'POST',
url: $f.attr('action') + '&J... | |
doc_23534965 | Actually in a page I have list of items is being there using pagination it is being accessed, but everytime when I click on the next button it relaods the page, Since in the same page I have other features like ADS, TAGS so it takes more time each time loading.
So I need to list out the only the content.
So do help me ... | |
doc_23534966 | I am now trying to start blinking LEDs. In order to do this I need to configure GPIO1. In trying to configure this port I have found that TI's C runtime immediately goes to user mode (4 instructions from startup). When I try reading or writing the control memory locations I get an error that we believe is caused by ... | |
doc_23534967 | <rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:ts="http://www.test.com/testModel.owl#">
<ts:Entity rdf:ID="1234_test">
<ts:Resource>
<ts:testProp rdf:datatype="http://www.w3.org/2001/XMLSchema#string">test_ID_test</ts:testProp>
</ts>
</ts>
</rdf:RDF>
How i can extract the value... | |
doc_23534968 | I have about 500k Id's and 25 columns (as of now).
I'd like to make the query dynamic so that any added columns will not require a code change.
For each ID, I want to find column names of the top 3 values.
The results should be:
[Id]
[Rank1]
[Rank2]
[Rank3]
27807745
Value3
Value2
Value8
96448378
Value6
Value... | |
doc_23534969 | Normal template specialization is not possible because the std::unique pointer can be instantiated with any type.
Queue code is like this:
bool TQueue<T>::Push(const T& item)
{
m_Mem[currTail] = item;
}
bool TQueue<T>::Pop( T& item )
{
item = m_Mem[currHead];
}
How to make this work for std::unique_ptr types as... | |
doc_23534970 | There is JS snippet below. My point - to define REQUEST_POST_BODY and RECEIVE_POST_BODY cases in posts reducer.
Main difficult - to find and update right object in store.
I try to use code from example:
return Object.assign({}, state, {
[action.subreddit]: posts(state[action.subreddit], action)
})
But it used... | |
doc_23534971 | module A(a,b,c);
input a,b;
output c;
assign c=a&b;
initial
$display("%b",c);
endmodule
module testbench11;
reg a,b;
wire c;
A a1(a,b,c);
initial
$monitor(,$time,"a=%b,b=%b,c=%b",a,b,c);
initial
begin
#0 a=1'b0;b=1'b0;
#3 a=1'b0;b=1'b0;
... | |
doc_23534972 | DF_Transactions
H1
H_date
A
2-Jan-20
A
2-Jan-20
C
3-Jan-20
A
2-Jan-20
A
2-Jan-20
DF_Events
H1
H_date
H_class
A
2-Jan-20
class_1
A
2-Jan-20
class_2
Using pd.merge(DF_transactions, DF_Events, on=['H1'], how='left') I have obtained too many duplicates
DF_Wrong_Results
H1
H_date
H_clas... | |
doc_23534973 | public virtual ActionResult List(int assessmentId, int? chapterId, bool? isMenuClick)
{
Mapper.CreateMap<Element, AssessmentQuestionViewModel>().
ForMember(dest => dest.AssessmentId, opt => opt.MapFrom(e => assessmentId));
...
}
It doesn't matter if I use UseValue, ResolveUsing or MapFrom in the above o... | |
doc_23534974 | My AJAX code sends limit and start values to fetch.php and fetch data in the division
A 2nd ajax code sends cat_id to load-prod.php to filter data on button click
index.php
<div class="row">
<div class="col-md-12 p-3 text-center">
<span>Categories  </span>
<div class="btn-group" role="group" aria-label="Basic ... | |
doc_23534975 | I would expect to be able to use initWithFrame, and take the bounds from the passed-in NSRect, but if I examine the data in the debugger, I just get an NSRect instance with (x=0, y=0), (width=0, height=0). Presumably it's not initialised yet?
More puzzling is that if I log the frame width to the console, I get the valu... | |
doc_23534976 | I know how the compiler generates the virtual address table (v-table). So to make things simple for me to explain, lets take this simple example,
class Entity {
public:
Entity() {}
virtual void Initialize() {}
};
class Player : public Entity {
public:
Player() {}
virtual void Initialize() override fi... | |
doc_23534977 | can you tell me if there's a way on objective-c do that?
A: Sounds like a job for Uniform Type Identifiers. The UTI mechanism provides the ability to identify different types of data based on different criteria.
| |
doc_23534978 | /*
Write a program that reads numbers from the keyboard into an array of type int[].
You may assume that there will be 50 or fewer entries in the array. Your program
allows any number of numbers to be entered, up to 50. The output is to be a
two-column list. The first column is a list of the distinct array element... | |
doc_23534979 | If I run GOPATH="$(pwd)/vendor:$(pwd)" GOBIN="$(pwd)/bin" go clean I get the following error:
can't load package: package github.com/marvincaspar/go-example: unknown import path "github.com/marvincaspar/go-example": cannot find module providing package github.com/marvincaspar/go-example
This is only for go clean, go r... | |
doc_23534980 | After the identification I need to authenticate that user with Azure AD, without entering/passing the password. (Fingerprint only authentication).
Is this possible?
A: No. Azure AD will require the password regardless.
In the future we might have a passwordless authentication capability there, but that would be up to... | |
doc_23534981 |
How would I make up a rule in my parser that will match the string above?
Seems rather impossible for me, since you cant define an unlimited amount of properties in the rule? Could someone please clarify, how you would do such a thing with FsLex and FsYacc?
A: If you're using FsLex and FsYacc then you can parse the ... | |
doc_23534982 | /******** Called once jQuery has loaded ******/
function scriptLoadHandler() {
jQuery = window.jQuery.noConflict(true);
main();
}
/******** Main function ********/
function main() {
jQuery(document).ready(function ($) {
var domain = 'http://qo.microssoftware.com';
/******* Load SimpleModa... | |
doc_23534983 | How to make this using php?
| |
doc_23534984 | I've taken all constrains into consideration, but it seems like all the facts are being deleted for some reason...
This my code so far:
;;MAIN Module
(deftemplate state
(slot farmer-position)
(slot fox-position)
(slot goat-position)
(slot cabbage-position)
(slot id)
(slot prev-state (default nil... | |
doc_23534985 | I have Glass Development Kit Preview from Android API 19 installed. My build.gradle(Module: app) is updated to reflect that:
compileSdkVersion 'Google Inc.:Glass Development Kit Preview:19'
buildToolsVersion '25.0.0'
I've looked at similar problems and I seem to have my build.gradle set up properly. How can I get the... | |
doc_23534986 | One possible solution to this would be to generate GUIDs as ClientID. This way the ClientID will at most be 32 characters long.
Has anyone ever tried something like this before?
I am on .NET 4.0
A: You can use ClientIDMode enumeration and specify static. But then you will have to manage the uniqueness of each control'... | |
doc_23534987 | Could not establish trust relationship
System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
at System... | |
doc_23534988 | The code is as follows:
package test;
import java.awt.BorderLayout;
import java.awt.Button;
import java.awt.Color;
import java.awt.Frame;
import java.awt.Panel;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.SwingUtili... | |
doc_23534989 | After researching in JWT workflow, what I understood is:
1) JWT token should have the least expiry date (TTL: 30 minutes).
2) JWT refresh token expiry date should not be greater than 1 week.
The flow from what I understood is:
1) The user logs in and receives a JWT token.
2) For every request, it should provide the JW... | |
doc_23534990 | I am using win7, wamp64 with cakephp3. In the php.ini file the extension existsextension=php_intl.dll exists so what is the problem? I can run phpinfo
Fatal error: You must enable the intl extension to use CakePHP.
A: You have to check
*
*Open /wamp64/bin/php/php.ini
*Change ;extension=php_intl.dll to extension... | |
doc_23534991 |
Total companies processed so far:0 Traceback (most recent call last):
File "process1.py", line 261, in
print "Company Name: "+hit.text File "C:\Python27\lib\encodings\cp437.py", line 12, in encode
return codecs.charmap_encode(input,errors,encoding_map) UnicodeEncodeError: 'charmap' codec can't encode... | |
doc_23534992 | Sample Input:
Also known as temple of the city,
xxx as Pune Banglore as kolkata Delhi India,
as Mumbai India or as Bombay India,
Calcutta,India is now know as Kolkata,India,
From the above I want to convert as xxx xxxx xx, to as xxx_xxxx_xx, and it should be effective after the last as.
Sample output for above:
Also k... | |
doc_23534993 | For example:
Dim clone_object As Variant
Set clone_object = some_object
some_object.Left = 0
clone_object.Left = 666
'I want it to show 0 instead of 666
Debug.print some_object.Left
A: You need to create methods like this in your class module (here it is Config) or do the same in the regular module if it is not a cus... | |
doc_23534994 |
A PHP Error was encountered
Severity: Notice
Message: Undefined property: Login::$membership_model
Filename: controllers/login.php
Line Number: 12
Backtrace:
File: C:\xampp\htdocs\Project5_1\CodeIgniter\application\controllers\login.php
Line: 12
Function: _error_handler
File: C:\xampp\htdocs\Project5_1\CodeIgniter... | |
doc_23534995 | If I do the following:
df.rolling(window = 30).mean().shift(1)
my df results in a window with lots of NaNs, which is probably caused by NaNs in the original dataframe here and there (1 NaN within the 30 data points results the MA to be NaN).
Is there a method that ignores NaN (avoiding apply-method, I run it on large... | |
doc_23534996 | My question is: How long should I keep a Entity Manager open?
Swing Application:
- One open Entity Manager as long as the application is running
- Each single action a new Entity Manager
Web Application:
- One Entity Manager per (distinct) action
- One per request
- One per session
- One per application(-scope), asumin... | |
doc_23534997 | public class Company {
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
public List<People> Peoples { get; set; }
[StringLength(100)]
[Required]
public string Bname { get; set; }
}
and
public class People {
[Key]
[DatabaseGenerated(... | |
doc_23534998 | import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class Cookies extends HttpServlet
{
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{
response.setContentType("text/html");
... | |
doc_23534999 |
A: Use the string.split() method to split the string on the " " character and then return the nth-1 element of the array (this example doesn't include any bounds checking so be careful):
var getNthWord = function(string, n){
var words = string.split(" ");
return words[n-1];
}
A: I think you can split your st... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.