id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_31300 | ./build/Debug/GNU-Linux-x86/tests/TestFiles/f1: error while loading shared libraries: libboost_thread.so.1.49.0: cannot open shared object file: No such file or directory
It tried including the library or the specific file with the debugging or testing session, but I continue to get that. Could there be an inconsisten... | |
doc_31301 | I tried doing a foreach as objects through a list and I managed to get all the radial trees that were in the list. Problem with this solution is the box of the tags makes it really hard and weird to get next to each other.
So, my idea is to have the list return the first parents as pack layout and inside have a radial ... | |
doc_31302 | I'm querying the me/messages with the $expand=microsoft.graph.eventMessage/event and trying to filter on this relationship:
https://graph.microsoft.com/v1.0/me/messages?$expand=microsoft.graph.eventMessage/event&filter=event/id eq 'eventID'
However, I'm getting the following error
{
"error": {
"code": "Requ... | |
doc_31303 | I was recently integrating CanCan into our application and found that one of the controller rspec tests failed. Turns out this was a result of the test being poorly written and invoking an action on the controller twice.
it 'only assigns users for the organisation as @users' do
xhr :get, :users, { id: first_organ... | |
doc_31304 | However, the rate and user limits of the Instagram API made me curios about some stuff.
Firstly, the process for going live in Instagram looks so complex and toilsome so how the well-known Instagram BOTs (Archie, Instagress etc.) can made this ? Because I thought Instagram never accepted a usage for their API for this... | |
doc_31305 | I want to add a button which would refresh the layout as if it was swiped down as it is now (On demand).
How can this effect be achieved
A: You can do;
@Override
protected void onCreate(Bundle savedInstanceState){
final SwipeRefreshLayout layout = (SwipeRefreshLayout) findViewById(R.id.swipe_refresh);
Button b... | |
doc_31306 | I know that there are other implementations on this site but I would like to know why my one is not working well.
This is my code:
@tailrec
def merge(l1:List[Int], l2:List[Int], acc:List[Int]): List[Int] = {
if(l1.isEmpty || l2.isEmpty) l1 ++ l2 ++ acc
else if(l1.last> l2.last) merge(l1.init, l2, l1.la... | |
doc_31307 | TimeLabel.translatesAutoresizingMaskIntoConstraints = false
NSLayoutConstraint.activate([
TimeLabel.centerXAnchor.constraint(equalTo: view.centerXAnchor),
TimeLabel.topAnchor.constraint(equalTo: view.topAnchor, constant: -30),
TimeLabel.widthAnchor.constr... | |
doc_31308 | My problem is combining angular and sql.
I want the html to do something like this
<div>
<input type="text" ng-model="filterText" class="search" placeholder="Filter ...">
<p ng-repeat="data in datalist | filter : filterText">{{data}}</p>
</div>
I have the following function in my controller:
getData();
function... | |
doc_31309 | public static void main(String[] args) {
for ( int b = 0; b < array1.length; b++) {
int n = (int)(Integer.MAX_VALUE * Math.random());
array1[b] = n;
array2[b] = n;
}//end of for loop
long startTime = System.currentTimeMillis();
insertionSort(... | |
doc_31310 | Any example of an anchor tag that does work:
<a href="contact.html"><i class="fa fa-envelope"></i><span>Contact</span></a>
Whereas something like the one below doesn't work:
<a href="https://twitter.com/username">Twitter</a>
I figured it might have to do with CSS selectors, but even with those removed, the upper one ... | |
doc_31311 | I followed the steps ios publishing guides with bundle id given by smartface.
Before submitting the appstore i want to simulate or check on the ios device but it only show black screen while lunching app.
Is it normal? Or should be run on xcode simulator or test device.
A: You should always test on device. The iOS Si... | |
doc_31312 | The method is executed often, and the same integer may be passed multiple times, so it would be efficient to store the prime status of the integer somehow and have it check that when passed to avoid having to run the entire battery of divisibility tests again, especially on large integers.
How should I store the prime ... | |
doc_31313 | [PreCode] NVARCHAR(20) NOT NULL DEFAULT([dbo].GetPreCode()),
But how would I use the same value in my other column? I'd assume that if I used the same syntax as above for the other column that the function would generate another unique value instead of using the value that was generated for the first column. How can I... | |
doc_31314 | Code, that i'm using for it
const isTooYoung = date =>
DateTime.fromFormat(date, 'dd.MM.yyyy')
.diffNow()
.as('years') < -21;
But for todays' s day (18.11.2019) both calls:
console.log(isTooYoung('15.11.1998')); // true => incorrect
console.log(isTooYoung('20.11.1998')); // true => correct, this user is not ... | |
doc_31315 | Possible Duplicate:
Design Pattern for Undo Engine
In general, how do you deal with supporting an "undo" feature in your application? I have worked on web apps and desktop apps alike, and I have never really felt comfortable with any "undo" system I've made.
A: Check out the Memento Pattern
A: I'd vote in favor of ... | |
doc_31316 | Imagine, for example, a date picker component. At some point this component needs to pass the new date/time value to the calling component so that the data can be saved (or somehow used). With callbacks, we can have a simple prop like saveDate={onSaveDate}. The date picker defines the contract by saying "I expect th... | |
doc_31317 | <Col sm={ 6 } className="text-center">
<Panel>
<h3 style={{color: "#bfbfbf"}}>1265</h3>
<p>orders</p>
<Bar width="100% !important" data={data} options={options}/>
</Panel>
<Panel>
<h3 style={{color: "#bfbfbf"}}>1265</h3>
<p>orders</p>
<Bar st... | |
doc_31318 | Below is a screenshot of the custom objects dialog. It's always empty.
A: This isn't a solution to your problem per se, but it will let you use your custom UIView sub-classes in other NIBs.
What I do is I just drag a regular UIView instance on to the drawing board, and then I open the Utilities pane (the pane that ap... | |
doc_31319 | If i have a url "http:.......&start=0&limit=50".
How to reload the data in table with incrementing the start and limit value with 50.
Can anyone find a solution for this?
A: *
*You need to implement the load more functionality in the table view for this.In order to do so, you need to track the table view's index whil... | |
doc_31320 | for example www.nicetomeetyou.com/home.html and www.nicetomeetyou.com/homepage.html => these files don't exist.
I want them to be redirected to http://www.nicetomeetyou
How do I go about it? Thanks
A: Another possibility is to use RedirectPermanent in your .htaccess file which will let you target only specific files... | |
doc_31321 | I've managed to work out the downloading part, but now I'd need to know the best way to access the .obb file from the native side.
There's ZipResourceFile, but how does one use that efficiently from C++?
A: Unlike Assets, files in ExternalStorage can be accessed with ordinary posix functions. All I need is to get the ... | |
doc_31322 | Does anyone know it is possible change to Font awesome ?
Can you help me ?
A: I found boostrap-datetimepickser.js, but i don't know which place paste your code
Here i upload my boostrap-datetimepickser.js
https://ufile.io/24jac
| |
doc_31323 | declare @fTime time(7)='05:22';
declare @tTime time(7)='06:00';
declare @result time(7);
I used this but it doesn't work.
set @result=sum(@fTime+@tTime);
A: You could add the minutes of one to the other like so:
select dateadd(minute,datediff(minute,'00:00',@tTime),@fTime)
However, note that the comment by dlat... | |
doc_31324 | I have tried the same as per the document for google cloud BigQuery library.
https://cloud.google.com/bigquery/docs/quickstarts/quickstart-client-libraries
InputStream is =
mContext.getAssets().open("service_account.json");
BigQuery bigquery = BigQueryOptions.newBuilder()
.setProjectId("uniorder-prod")
.setCredentials... | |
doc_31325 | Ex:$date = $endate;
The below loop displays repeated months
for ($l = 0; $l < 10; $l++) {
$month[] = date("Y-M", strtotime($date . " -$l months"));
}
output:
[0] => 2017-Mar
[1] => 2017-Mar
[2] => 2017-Jan
[3] => 2016-Dec
[4] => 2016-Dec
[5] => 2016-Oct
[6] => 2016-Oct
[7] => 2016-Aug
[8] => 2016-Jul
[9] => 2016-... | |
doc_31326 | {
"id": 0,
"name": "Valle",
"activities": "night-life",
"food": "fancy-food",
"sport" : "baseball",
"geoProfile": "artsy",
"priority": 2
}
I am building out another object on a page based on user input. The user will choose between radio buttons and after they have made their choices, I wi... | |
doc_31327 |
*
*Contracts have Headers and Line Items.
*Contract Headers as well as Line Items have both different statuses from different tables and ARE required (not null)
*ContactID is not required for Contract Header
See tables below:
[Contacts]
PK.ContactID
ContactName
[ContractHeader]
PK.ContractID
ContractThruDate
FK... | |
doc_31328 | source s_src {
system();
internal();
};
destination d_syslog { file("/home/abc/test_log"); };
log{ source(s_src); destination(d_syslog); };
what should i do to limit this file size to 1MB , and once it reaches 1MB it should be converted to test_log.0 and new logs should be in test_log ?
Thanks in Adv... | |
doc_31329 | it's showing an error
instance variable @ar of CategoryController must be (Array(Array(Array(Int64 | String) | Array(String))) | Nil), not Array(Array(Int64 | String) | Array(String)))
code sample:
abc = [["", "Select"], [6_i64, "some"]]
puts abc.class # => Array(Array(Int64 | String) | Array(String))
@ar = [] o... | |
doc_31330 | When using VectorDrawableCompat, you need to use app:srcCompat
But for RemoveViews (for custom notifications) it only works with android:src
new RemoteViews(getPackageName(), layout);
with app:srcCompat ImageViews are invisible
| |
doc_31331 | {% for comment in service.comments.all %}
{{comment.comment}} -- commented by {{comment.user}}<br/>
{% for reply in comment.comment_replies.all %}
{{reply.comment_reply}} -- replied by {{reply.user}}<br/>
{% endfor %}
<form id="comment-replyform" action="/comment/reply/{{comment.id}}/" method="post">{% csrf_token %}
... | |
doc_31332 | int [] intArray;
intArray = new int[3] { 1, 2 , 40 , 45 , 50};
the array contains numbers from 1- to 50
i want to convert this array to one bit represent like
100001000010000............11
who can i do this in c# ?
A: long bitField = 0;
foreach (int bit in intArray)
bitField |= 1l << (bit - 1);
This answer as... | |
doc_31333 | It seems I can only see that a Failed Permission Check occured in the log (+ on which Bean, what method and the timestamp), but not WHO tried to call it:
[2016-12-15T17:48:36.061+0100] [glassfish 4.1] [INFO] [] [javax.enterprise.system.core.security] [tid: _ThreadID=96 _ThreadName=http-listener-1(4)] [timeMillis: 14818... | |
doc_31334 | Does anyone know what's going on?
http://www.andyinman.com/googlemap/test2.html
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>St. Joseph Larceny Map</title>
<script src="http://maps.google.com/maps/api/js?sensor=false"
type="text... | |
doc_31335 | #include <queue>
using namespace std;
class A{
int *a;
public:
A() {a=new int[2];}
~A() {delete[] a;}
};
main() {
queue<A> *q=new queue<A>;
q->push(A());
//q->pop();
delete q;
}
This leads to
*** Error in `./a.out': double free or corruption (fasttop): 0x000055b703ee3f30 ***
I have no i... | |
doc_31336 | I have set this up to work correctly and it runs fine currently.
However, I am wishing to add a logstash filter for this specific log and so decided to add a document_type field for this log to allow me to filter based on it in logstash.
I have done this like so:
filebeat.prospectors:
- input_type: log
paths:
- /... | |
doc_31337 | [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: Looking up a deactivated widget's ancestor is unsafe.
E/flutter ( 6342): At this point the state of the widget's element tree is no longer stable.
E/flutter ( 6342): To safely refer to a widget's ancestor in its dispose() method, save a reference to the ... | |
doc_31338 | My HTML code goes as :
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css" />
<title>NavBar</title>
</head>
<body>
<div id="nav">
<ul>
<li><a href="#">Home</a></li><li>
<a href="#">About</a></li><li>
<a hr... | |
doc_31339 | AccessPermission ap = new AccessPermission();
ap.setCanAssembleDocument(false);
ap.setCanExtractContent(false);
ap.setCanExtractForAccessibility(false);
ap.setCanFillInForm(false);
ap.setCanModify(false);
ap.setCanModifyAnnotations(false);
ap.setCanPrint(false);
ap.setCanPrintDegraded(false);
ap.setReadOnly();
Standa... | |
doc_31340 | we want to do following to div:
*
*show the first time any of three buttons are clicked
*show if button clicked is different to previously button click
*hide if button clicked is the same as previous clicked and if div is currently visible
*show if button clicked is the same as previous clicked and if div is curr... | |
doc_31341 | Here is my try 1. where i am trying to get metrics channel. But this request is timing out?
cb, _ := GaugeVecs[name]
ch := make(chan prometheus.Metric)
cb.Collect(ch)
metric := <-ch
fmt.Printf("%+v", metric)
The second try that i did was
cb, _ := GaugeVecs[name]
err := testutil.CollectAndCo... | |
doc_31342 |
A: A sample how you can hold your child Dropdowns value.
ViewModels-
public class TestModelViewModel
{
public int ParentId { get; set; }
public IEnumerable<ParentListViewModel> ParentList { get; set; }
public int ChildId { get; set; }
public IEnumerable<ParentListViewModel> ChildList { get; set; }
... | |
doc_31343 | Here is my code:
const App = () => {
const timestamp = [];
const getTimestamp = () => {
const database = db.ref().child("timestamped_measures");
database.on("value", (ts_measures) => {
ts_measures.forEach((ts_measure) => {
const array = {
time: ts_measure.val().timestamp,
};
... | |
doc_31344 | How I proceed :
I add this lines in deps file :
[gedmo-doctrine-extensions]
git=http://github.com/l3pp4rd/DoctrineExtensions.git
[Stof-DoctrineExtensionsBundle]
git=https://github.com/stof/StofDoctrineExtensionsBundle.git
target=/bundles/Stof/DoctrineExtensionsBundle
Then I enter the line
./bin/vendors insta... | |
doc_31345 | I want those rows, where d_diff > 1, to make duplicated (d_diff shows the number of duplicated rows.
The final dataset should look like in a table below. As you can see, in this table the difference between endtime and begtime is 1 (the table is more granular).
How can it be done?
I tried to do kind of this
select * ... | |
doc_31346 | I am trying to set up an email connection using 'sendmail' - and am now at the point where everything is finally working - except I now get an entry in the Debug log:
12/04/23 21:10:55 ** From address not verified - see http://www.btyahoo.com/verify<EOL>
This is the code and set-up so far:
php.ini:
[mail function... | |
doc_31347 | By these requirements ADF is not permissible.
The on premise SQL engine is behind a firewall.
How does Azure/the FunctionApp gain a connection to the SQL Engine to run the required select queries?
A: For Azure AppService, you can use Hybrid Connections to access a private network from within your AppService. This can ... | |
doc_31348 | Item Date Process Trip
1 2/1/2017 Received In 1
1 2/2/2017 Change1 1
1 2/3/2017 Change2 1
1 2/4/2017 Change3 1
1 2/5/2017 Shipped Out 1
1 2/15/2017 Received In 2
1 2/18/2017 Change1 2
1 2/22/2017 Shipped Out 2
2
2
2
A: If Receive... | |
doc_31349 | How do we bypass this, so that I would still be able to create a data frame. Any idea please.
CODELINE:
content_table_df <- as.data.frame(Table_match_list)
ERROR:
Error in (function (..., row.names = NULL, check.rows = FALSE, check.names = TRUE, :
arguments imply differing number of rows: 102, 98, 99
IMAGE:
Thank ... | |
doc_31350 | In Internet Explorer 8 Desktop Mode, I can type in the IP address of computer A and view a page. However, in metro mode, it says "This page can't be displayed".
I am trying to test out a metro app using a local server. However, any attempt to communicate with computer A from computer B in a metro app fails. All of m... | |
doc_31351 | employee
manager
top mananger
I decided to define an User, from where Employee, Manager and Top Manager will specialize from.
Now, I don't know what kind of specialization hierarchy I should choose from.
I can't decide between the following ways:
or
Which might be preferable and why?
As a long time coder, every tim... | |
doc_31352 | Command: mysql -u root -p db1<dbname.sql ;
ERROR 1 (HY000) at line 7904: Can't create/write to file
'./dbname/db.opt' (Errcode: 2)
What is the reason?
A: Find out what Errcode: 2 means
You can use the perror utility to find what error 2 means:
$ perror 2
OS error code 2: No such file or directory
More inf... | |
doc_31353 | a(:,:,1) =
1 2 3
4 5 6
a(:,:,2) =
7 8 9
10 11 12
If I use mex and access the elements of this matrix sequentially, I get the following order (in the end, a code to access them sequentially):
1, 4, 2, 5, 3, 6, 7, 10, 8, 11, 9, 12
Now, if I have the same matrix in nu... | |
doc_31354 | There have been a few times when performance for all queries goes down the toilet. Today for example, I awoke to alarms that the database was performing poorly. Simple queries that normally take 30ms are taking over 3 minutes! My load on the server is no greater than usual, so I attribute this decline in performance to... | |
doc_31355 | I want to do it in Master Page. How can I achieve this goal? My codes are like:
function skm_LockScreen() {
var lock = document.getElementById('skm_LockPane');
if (lock)
lock.className = 'LockOn';
lock.innerHTML = 'please wait.';
}
function skm_UnLockScreen() {
var lock = document.getElemen... | |
doc_31356 | {
"id": 1234,
...,
"images": [
{
"id": 1703805,
...,
"language_codes": [],
"ingest_source_ids": [123]
},
{
"id": 2481938,
...,
"language_codes": ["EN"],
"ingest_source_ids": [1,2,3]
}
]
}
The images object is mapped as nested.
I can find the docum... | |
doc_31357 | I am new to docker, if any additional info is needed to help solve the problem let me know, I'm not even sure what I am looking for, I followed the docker docks simple instructions. Could it be that something else in my python code is incorrect?
Attaching to brevets_web_1
web_1 | Traceback (most recent call last):
w... | |
doc_31358 | I have several tables described below.
Table 1 (Recipe)
ID, Name
1, Carrot Cake
2, Cheese Cake
3, Chocolate Cake
Table 2 (Methods)
ID, Method Name, RecipeID
1, Old School Method, 1
2, Low Salt Method, 1
3, Extra Chocolate, 3
Table 3 (Ingredients)
ID, Na... | |
doc_31359 | At the moment, to determine ipv4 vs ipv6, it looks like I can use colon count and/or '.' count to some degree, but there must be a better way, right?
COLON_COUNT = (length(ip::text) - length(replace(ip::text, ':', '')));
DOT_COUNT = (length(ip::text) - length(replace(ip::text, '.', '')));
What is a clean/good way to d... | |
doc_31360 | Text File.
Sequence File.
RC File.
AVRO File.
ORC File.
Parquet File.
When do we use bz2 compression and how are they different from hive file format? and when to use it?
A: Avro is a file format and BZ2 is a compression codec. These two are completely different things.
You can chose file format and compression codec ... | |
doc_31361 | bundle.js:117850 Uncaught Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have ... | |
doc_31362 | Input ===> Output
123@#$, ====> 123[@][#][$][,]
Changing All the special characters to certain String [ _ in this case] is easy -
string = string.replace(/[^a-zA-Z0-9]/g,'_');
| |
doc_31363 | I have researched and played with this, but my DOS scripting experience is limited. I found this on your site:
Batch file convert comma delimited to fixed length
but it fails due to the quote-marks; and it does not have the capability to space fill to a desired column width.
The Input file below is what comes from the... | |
doc_31364 | My first query was:
SELECT *
FROM wp_usermeta
WHERE meta_key = 'partner'
AND meta_value = 1
ORDER BY user_id DESC
LIMIT 5
It takes 0.2601 seconds. After some research I could optimize it to:
SELECT user_id
FROM wp_usermeta
WHERE meta_key = 'partner'
AND meta_value = '1'
ORDER BY umeta_id DESC
LIMIT 5
This que... | |
doc_31365 | So I made a templated class:
template<typename KEY, typename VALUE>
class MyMap {
private :
std::vector<KEY> m_keys;
std::vector<VALUE> m_values;
public :
void insert(KEY& key, VALUE& val) {
//Test if key exists //
m_keys.push_back(key);
m_values... | |
doc_31366 | pub fn div(x: u32, y: u32) -> u32 {
x / y
}
pub fn safe_div(x: u32, y: std::num::NonZeroU32) -> u32 {
x / y.get() // an unchecked division expected
}
Godbolt's rustc 1.47.0 -O generates the same assembly for both functions:
example::div:
push rax
test esi, esi
je .LBB0_2
... | |
doc_31367 | The main difficulty is that the API return data 100 per 100 and I must use offset to have all them all (1066 API calls).
After that, I have to retrieve extra data for each off these data. It mean 1066 other calls and one again to update it (thanks to php multi_curl functions).
My question is : As I know how many items ... | |
doc_31368 | It seems that setting inline CSS to "font-size: 12px" or any other size does not work on the mail app for iPad, despite the font-size displaying correctly in the Mail app for Mac OS X.
Any ideas?
A: The WebKit layout engine automatically adjusts font-sizes.
As of this post, Webkit is commonly used in Safari, Chrome, K... | |
doc_31369 | This works just at the starting point when the textArea is empty, but when I type something and then delete all the text until textArea.getText() == "", the button still doesn't turn disabled again.
This is what I wrote:
textArea.getDocument().addDocumentListener(new DocumentListener() {
@Override
... | |
doc_31370 | Assuming that I have a list of integer which keeps track of all the occurrences of peak as below.
3, 7, 10, 13
The above tells me that the peak occurs at the index 3, 7, 10 and 13.
The length of the source data is 15.
Let n = 1
then I should be seeing a resultant list as below:
*
*index 0 = null - there is no... | |
doc_31371 | when you enter http://www.golfledger.com/ or http://snapzu.com/ the background color is grey but the section that has contents is white. How do I make my html look that way? is it setting the background just grey and the contents div white?
A: Here's the FIDDLE
CSS
body{
background-color:#CCC;
}
#main{
width:70%;... | |
doc_31372 | I rewrote nodeJs app to parse and return to http client huge chunk of json (around 1000 objects). for test purpose json is read from file. then json is parsed to Map, transformed to new representation and responed to client.
the sample app can be found here mapping json sample app
when I increase number of concurrent c... | |
doc_31373 | $sql = "SELECT *
FROM timetable t, class c, room r
WHERE c.id = t.class AND t.week = '".$_GET['week']."' AND t.id = '".$_GET['class']."'
ORDER BY CASE
WHEN Day = 'Sunday' THEN 1
WHEN Day = 'Monday' THEN 2
WHEN Day = 'Tuesday' THEN 3
WHEN Day = 'Wednesday' THEN 4
WH... | |
doc_31374 | Class 'MyClass' incorrectly implements interface 'sampleInterface'.
Property 'staticFunction' is missing in type 'MyClass' but required in type 'sampleInterface'
any idea how to support this?
export function staticDecorator<T>() {
return (constructor: T) => {};
}
interface sampleInterface {
staticFynction(/*... | |
doc_31375 | SELECT NOW() - date AS elapsed FROM ...
Date column is TIMESTAMP.
It returns 41632 when elapsed time is about 4 hours and 20 minutes.
It's not timestamp.
What is it?
Or is there any better way to get elapsed time and generate with PHP like this:
"2 minutes ago"
"3 hours ago"
"yesterday 22:32"
Thanks a lot!
A: Use the ... | |
doc_31376 | free(ptr); // free the ptr
ptr = NULL;
Now I decided to test this with a sample vanilla C code.
CASE_1
char *ptr = malloc(10);
...
...
free(ptr);
ptr=NULL;
// Just to check what happen if I call free more than I once
free(ptr)
ptr=NULL;
All work fine. Until I decided to wrap the free and the pointer NULL assignmen... | |
doc_31377 | However it won't work on an iPad and an iPhone.
Video Link
also here is the file info.
| |
doc_31378 | $ cat file > dummy; $ cat header dummy > file
I want similar to the command below but to the beginning, not to the end:
$ cat header >> file
A: You can't append to the beginning of a file without rewriting the file. The first way you gave is the correct way to do this.
A: This is easy to do in sed if you can embed ... | |
doc_31379 | But for FPE (Format Preserving Encryption), the output encryption value should be same format and length as like plaintext (10 digit).
Overall, If I give the input 10 digit string value, then the encryption value would be the same format with 10 digit length, and again after decryption - the same input string will be r... | |
doc_31380 | (test_one.html.erb)
<%= form_with(scope: @user_answer, url: answer_one_path, local: true) do |form| %>
<p>1. <%= @questions.all[0].question %></p>
<%= form.text_field :answer1 %> --> #I want this input saved in the table.
<p>2. <%= @questions.all[1].question %></p>
<%= form.text_field :answer2 %> --> #I want t... | |
doc_31381 | It may use local notification in background state.
A: No, even if you manage to get you app to run in the background, by miss use of the supported background mades, you can only alert the user with a UILocalNotification.
A: I have managed to trigger alarm using dispatch_walltime even when the app goes to sleep mode.
... | |
doc_31382 | The share will require credentials to save a file to the target UNC path.
Is there a best practices to accomplish this?
A: Theoretically yes, practically no.
Windows shares use the SMB/CIFS family of protocols. Those can be implemented in Go and be used to access the shares. This is a huge task, though.
Instead of hav... | |
doc_31383 | #include <memory>
using namespace std;
class Foo
{
public:
//x is a large struct in reality
Foo(const int* const x) : p(x) {};
Foo(Foo&& foo) : p(std::move(foo.p)) {};
private:
const unique_ptr<int> p;
};
A: To understand why your code does not compile, reflect how you have declared Foo class and how move ... | |
doc_31384 | import requests
response = requests.get("https://google.com")
The error said it could not parse the URL, even after I tried many variants. I have a feeling it has something do with the version of requests. The older & stable Linux is using requests 2.22.0 and the newer one is 2.3.0. One of the libraries I'm using r... | |
doc_31385 | <ng-template
let-table="table"
let-column="column"
let-label="label"
#tableHeaderTemplate
>
<th [appSort]="table" sort-order="" [attr.sort-key]="column">
<div>
<span>{{ label }}</span>
<span> (asc) </span>
<span> (desc) </span>
</div>
</th>
</ng-template>
On clicking of the column... | |
doc_31386 | const teamsDeepLink = (user, type) =>
`https://teams.microsoft.com/l/${type === "chat" ? "chat" : "call"}/0/0?users=${user}${type === "video" ? "&withvideo=true" : ""}`;
The output of this looks something like this:
Chat
https://teams.microsoft.com/l/chat/0/0?users=<user's email>
Audio
https://teams.microsoft.com/... | |
doc_31387 | I've a global workflow and in this worflow, I'm using the "InvokeWorkflowActivity" activity to invoke a workflow. I bind the TagetWorkflow to my secondary workflow. I build and it's ok, i see my secondary workflow in my global workflow.
On SP, when I launch my global WF, it doesn't start in my secondary WF. I tried to ... | |
doc_31388 | The problem is that the sound must be saved in the main bundle according to apple documentation. Moreover i read that it is impossible to write programatically on the main Bundle.
Does anybody have any idea on how to overcome this issue? It cannot be impossible to make such a thing.
A: The reason it has to be in the a... | |
doc_31389 | - I am providing a valid cacerts file
- I'm referring to it in the command; no path search
- I'm even providing the password in the command
- I'm doing a ssl trace which says "no file supplied", though I supplied it
I know there are several entries regarding this topic - but I found nothing matching my problem.
I'm usi... | |
doc_31390 | I started off creating a jar file from bunch of classes:
jar cfe tbi.jar trail1modified
trail1modified.class
InitialKeypad.class
InitialKeypad$1.class
InitialKeypad$2.class
InitialKeypad$thehandler.class
InitialKeypad$thehandler2.class
InitialKeypad$thehandler3.class
InitialKeypad$thehandler4.class
K... | |
doc_31391 | "The standalone version of hieararchyviewer is deprecated.
Please use Android Device Monitor (tools/monitor) instead."
So, I started up Android Device Monitor in Android Studio and could only find
"Dump View Hierarchy for UI Automator"
and it launches uiautomatorviewer in the Device Monitor...
Does anyone know if this... | |
doc_31392 | My query looks something like the below:
WITH salesData AS (
SELECT
account_id,
date,
amount
FROM
table1
), categoryData AS (
SELECT
'Category1' AS category,
SPLIT(accountIds, '|') AS accountIds,
name,
startDate,
endDate
FROM
table2
)
SELECT
salesData.*,
(
SE... | |
doc_31393 |
A: There is no way to retrieve the list of stored items from an ELS using JavaScript or for that matter Adobe AIR. As per the API,
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/data/EncryptedLocalStore.html
ELS supports only working with known keys. There is no way to get a list of keys fro... | |
doc_31394 | So in reality, it should put out if a is 6, b is -7, and c is 4, it should output as 6x^2-7x+4, but currently it is 6x^2+-2x+4. I know something has to be done with the absolute value function, but just trying to fix the -1 and 1 situation gives me errors with converting string to float.
The error I get is
Traceback ... | |
doc_31395 | ||
doc_31396 | I have the following code to test if the installation worked:
using System;
using Gtk;
using Newtonsoft.Json;
namespace jsontest
{
class MainClass
{
public static void Main (string[] args)
{
Application.Init ();
Car my_car = new Car ();
string json = JsonCon... | |
doc_31397 | so If I pass a child object into a method that only accepts IOBJECT, but the child class parent implements IOBJECT. will child object be accepted ?
A: If the parent satisfies IS-A for an interface type the child does as well. The child need not implement the interface.
| |
doc_31398 | The First button it would have to click on the page would be:
<button class="btn btn-primary pull-right" onclick="document.getElementById('btnCommentAdd').click()">Add comment</button>
Then a window will pop up with a window with a drop down selected where the following needs to be selected <option>Har selv sign up, m... | |
doc_31399 | classdef parentClass < handle
properties (SetObservable = true)
childClass
end
methods
function this = parentClass()
this.childClass = childClass();
end
end
end
and
classdef childClass < handle
properties (SetObservable = true)
value
end
method... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.