id
stringlengths
5
11
text
stringlengths
0
146k
title
stringclasses
1 value
doc_31600
val sparkConf = new SparkConf() sparkConf.setIfMissing("spark.master", "local[*]") sparkConf.set("spark.executorEnv.spark.sql.legacy.allowUntypedScalaUDF",true) val session = SparkSession.builder() .config(sparkConf) //.config("spark.sql.legacy.allowUntypedScalaUDF",true) .getOrCreate() It gives me the following...
doc_31601
FileExtension (PK) ContentType ContentSubType IsAllowable I know it's always going to be retrieved by FileExtension. Should I add an index on FileExtension and INCLUDE the other columns? I don't care about insert/update performance. Will such an index perform better for retrieve operations than just a clustered primar...
doc_31602
One of the column values is a list. When you store the pandas dataframe in a csv file with this line of code: self.ticketDF.to_csv(self.ticketCSVFilePath), it surrounds the list in double quotes. When you then read it back in, it now is interpreted as a string, not a list. In my example, you can see the list with doubl...
doc_31603
I updated my Laravelproject from 5.4 to 5.7. After i wasnt able to send Mails anymore. I made sure i have the correct Swiftmailer package and all Versions. After some research i found, that my Application is crashing at Mailer.php in the function addContent(). protected function addContent($message, $view, $plain, $ra...
doc_31604
class AeroBluetoothService extends Service { ... private final IBinder asBleBinder = new LocalBinder(); public class LocalBinder extends Binder { AeroBluetoothService getService() { return AeroBluetoothService.this; } } @Override public IBinder onBind(Intent intent) { return asBleBinder; } In ...
doc_31605
Dim rng As Range For Each rng In Range("B4:B10") If rng.Value = 0 Then For i = 3 To 23 Cells(rng, i).Value = NA Next i End If Next rng A: rng on its own (without an explicit property name) defaults to returning .Value which when 0 tries to use row index 0 which is not valid, instea...
doc_31606
code: async def create_program(db: AsyncSession, program: ProgramSchema) -> Program: new_program = Program(title=program.title, slug=program.slug) new_courses = [] new_lessons = [] new_sections = [] for course in program.courses: new_course = Course(title=course.title, slug=course.slug) ...
doc_31607
!ed is working fine when I run it manually with given values e.g. !ed 9182f084 8 I'd now like to run this in a script where the value to write comes from a pseudo-register. But the following does not work: r $t0=8 !ed 9182f084 @$t0 I can't quite figure out what value it is writing in this case, but it is demonstrably ...
doc_31608
I have a simple Model function; public function getXXXoutput($xxx_term, $start_date, $end_date) { $monthly_XXX_curves = TableRegistry::get('MonthlyXXXCurves'); $query = $monthly_XXX_curves ->find() ->select( ['date_transacted', 'output'] ) ...
doc_31609
ERROR: type should be string, got "\nhttps://github.com/nativescript-vue/vue-cli-template/tree/master\n\nI installed nativescript-messenger and even without changes in code I saw error\nError: Command ./gradlew failed with exit code 1 Error output: \n Exception in thread \"main\" javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty\n\nWe cannot present there full output of command:\ncd dist && tns run android --device ZY223J2852 --log trace\n\nbut below is start and end of log trace.\nLoading extensions.\nAsserting extension nativescript-cloud is installed.\nExtension nativescript-cloud is installed.\nSystem information:\n{ platform: 'linux',\n shell: '/bin/bash',\n os: 'Linux daniel-Inspiron-3543 4.15.0-29-generic #31-Ubuntu SMP Tue Jul 17 15:39:52 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux\\n',\n procArch: 'x64',\n nodeVer: '8.11.1',\n npmVer: '6.2.0',\n nodeGypVer: null,\n nativeScriptCliVersion: '4.1.2',\n gitVer: '2.17.1',\n dotNetVer: null,\n javacVersion: '1.8.0_171',\n adbVer: '1.0.40',\n androidInstalled: true,\n monoVer: null,\n gradleVer: '4.9',\n isAndroidSdkConfiguredCorrectly: true,\n xcodeVer: undefined,\n xcodeprojLocation: null,\n itunesInstalled: false,\n cocoaPodsVer: undefined,\n isCocoaPodsWorkingCorrectly: false,\n isCocoaPodsUpdateRequired: false,\n pythonInfo: null }\nLooking for project in '/home/daniel/pro/sms_api/dist'\nProject directory is '/home/daniel/pro/sms_api/dist'.\nInitializing analytics statuses.\nAnalytics statuses: { TrackFeatureUsage: 'enabled', TrackExceptions: 'enabled' }\nWill send the following information to Google Analytics: { type: 'googleAnalyticsData',\n category: 'CLI',\n googleAnalyticsDataType: 'event',\n action: 'Check Local Build Setup',\n label: 'Starting',\n customDimensions: { cd5: 'CLI' } }\n\n...\n\nProject dir from hooksArgs is: /home/daniel/pro/sms_api/dist.\nHooks directories: [ '/home/daniel/.nvm/versions/node/v8.11.1/lib/node_modules/nativescript/lib/hooks',\n '/home/daniel/.nvm/versions/node/v8.11.1/lib/node_modules/nativescript/lib/common/hooks',\n '/home/daniel/pro/sms_api/dist/hooks' ]\nAfterHookName for command prepareJSApp is after-prepareJSApp\nProject dir from hooksArgs is: undefined.\nHooks directories: [ '/home/daniel/.nvm/versions/node/v8.11.1/lib/node_modules/nativescript/lib/hooks',\n '/home/daniel/.nvm/versions/node/v8.11.1/lib/node_modules/nativescript/lib/common/hooks',\n '/home/daniel/pro/sms_api/dist/hooks' ]\nBeforeHookName for command buildAndroidPlugin is before-buildAndroidPlugin\nspawn: ./gradlew \"-p\" \"/home/daniel/pro/sms_api/dist/platforms/tempPlugin/nativescript_messenger\" \"assembleRelease\" \"-PcompileSdk=android-27\" \"-PbuildToolsVersion=27.0.3\" \"-PsupportVersion=26.0.0-alpha1\"\nUnable to apply changes on device: ZY223J2852. Error is: Failed to build plugin nativescript-messenger : \nError: Command ./gradlew failed with exit code 1 Error output: \n Exception in thread \"main\" javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty\n at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)\n at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1964)\n at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1921)\n at sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1904)\n at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1420)\n at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397)\n at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)\n at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)\n at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1564)\n at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)\n at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:263)\n at org.gradle.wrapper.Download.downloadInternal(Download.java:60)\n at org.gradle.wrapper.Download.download(Download.java:45)\n at org.gradle.wrapper.Install$1.call(Install.java:62)\n at org.gradle.wrapper.Install$1.call(Install.java:48)\n at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:69)\n at org.gradle.wrapper.Install.createDist(Install.java:48)\n at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107)\n at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)\nCaused by: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty\n at sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:91)\n at sun.security.validator.Validator.getInstance(Validator.java:179)\n at sun.security.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:312)\n at sun.security.ssl.X509TrustManagerImpl.checkTrustedInit(X509TrustManagerImpl.java:171)\n at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:184)\n at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)\n at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1596)\n at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)\n at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1052)\n at sun.security.ssl.Handshaker.process_record(Handshaker.java:987)\n at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1072)\n at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1385)\n at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413)\n ... 14 more\nCaused by: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty\n at java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:200)\n at java.security.cert.PKIXParameters.<init>(PKIXParameters.java:120)\n at java.security.cert.PKIXBuilderParameters.<init>(PKIXBuilderParameters.java:104)\n at sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:89)\n ... 26 more\n.\nProject dir from hooksArgs is: /home/daniel/pro/sms_api/dist.\nHooks directories: [ '/home/daniel/.nvm/versions/node/v8.11.1/lib/node_modules/nativescript/lib/hooks',\n '/home/daniel/.nvm/versions/node/v8.11.1/lib/node_modules/nativescript/lib/common/hooks',\n '/home/daniel/pro/sms_api/dist/hooks' ]\nAfterHookName for command watch is after-watch\nProject dir from hooksArgs is: /home/daniel/pro/sms_api/dist.\nHooks directories: [ '/home/daniel/.nvm/versions/node/v8.11.1/lib/node_modules/nativescript/lib/hooks',\n '/home/daniel/.nvm/versions/node/v8.11.1/lib/node_modules/nativescript/lib/common/hooks',\n '/home/daniel/pro/sms_api/dist/hooks' ]\nAfterHookName for command liveSync is after-liveSync\nsudo update-ca-certificates -f\n^CProject dir from hooksArgs is: /home/daniel/pro/sms_api/dist.\nHooks directories: [ '/home/daniel/.nvm/versions/node/v8.11.1/lib/node_modules/nativescript/lib/hooks',\n '/home/daniel/.nvm/versions/node/v8.11.1/lib/node_modules/nativescript/lib/common/hooks',\n '/home/daniel/pro/sms_api/dist/hooks' ]\nAfterHookName for command watch is after-watch\nProject dir from hooksArgs is: /home/daniel/pro/sms_api/dist.\nHooks directories: [ '/home/daniel/.nvm/versions/node/v8.11.1/lib/node_modules/nativescript/lib/hooks',\n '/home/daniel/.nvm/versions/node/v8.11.1/lib/node_modules/nativescript/lib/common/hooks',\n '/home/daniel/pro/sms_api/dist/hooks' ]\nAfterHookName for command watch is after-watch\n\nI was trying\n sudo update-ca-certificates -f\n\nbut it does not help.\nSystem \nUbuntu 18.04\n\njava -version\nopenjdk version \"1.8.0_171\"\nOpenJDK Runtime Environment (build 1.8.0_171-8u171-b11-0ubuntu0.18.04.1-b11)\nOpenJDK 64-Bit Server VM (build 25.171-b11, mixed mode)\n\nI replace openjdk by Oracle Java following by\n\nhttps://github.com/mesosphere/hdfs-deprecated/issues/141\n\nbut it does not works too.\nI had the same error after installing nativescript-phone.\n\nA: I fixed thanks \n\nhttps://stackoverflow.com/a/50103533/6398044\n\nBug was connected with \n\nJEP 229, switch from the jks keystore default format to the pkcs12 format\n\nWorkaround:\nsudo su\n/usr/bin/printf '\\xfe\\xed\\xfe\\xed\\x00\\x00\\x00\\x02\\x00\\x00\\x00\\x00\\xe2\\x68\\x6e\\x45\\xfb\\x43\\xdf\\xa4\\xd9\\x92\\xdd\\x41\\xce\\xb6\\xb2\\x1c\\x63\\x30\\xd7\\x92' > /etc/ssl/certs/java/cacerts\n/var/lib/dpkg/info/ca-certificates-java.postinst configure\n\n"
doc_31610
https://gist.github.com/hashrock/0e8f10d9a233127c5e33b09ca6883ff4 It's basically a Circle component with the ability to be draggable. But, I would like to add more elements and not only Circle ( For example I want also Rectangle and a generic SVG that can be inserted ) How could it be done? I thought about generic HOC ...
doc_31611
A: With the CLI I could remove lock from Redis server with command DEL <lock name> When doing so the waiting thread could acquire the lock. I don't know this is the right way. But it works.
doc_31612
I have a Django APP that is running on Azure. I push local changes to Github and through Github actions, the changes are synced to Azure. This has been going on well without any trouble with the build/Deploy processing succeeding. Trouble came when I created a storage account for the media files and static files on Azu...
doc_31613
let cellIdentifier = "DayCollectionViewCell" class ViewController: UIViewController, UICollectionViewDataSource,UICollectionViewDelegate { @IBOutlet weak var button: UIButton! var dates = [Date?]() var startDate: Date? var endDate: Date? private var selectedIndexPath: IndexPath? @IBOutlet ...
doc_31614
e.g: GET my_url.com/home_page { "posts":[ { "id": 1, "title": "Example Post", }, { "id": 2, "title": "Another example", } ] } and GET my_url.com/another_page { "posts":[ { "id": 4, "title": "This is another pos...
doc_31615
Each Project can have multiple Budgets, but only one of those Budgets will be the 'current Budget'. The way the information is displayed, is that there are a number of 'tile' icons called 'Presentations', (one for each Budget). When one of the 'Presentation' tiles is selected, a form is displayed below the tiles, for t...
doc_31616
using the examples here, in How do I use Python's itertools.groupby()? from itertools import groupby things = [("animal", "bear"), ("animal", "duck"), ("plant", "cactus"), ("vehicle", "speed boat"), ("vehicle", "school bus")] I tried (python 3.5): g = groupby(things, lambda x: x[0]) ll = list(g) list(tuple(l...
doc_31617
now, I want to check the test AUC using predict_proba of the model. I have two questions: 1. Do I have to correct the probability if I am comparing AUCs? 2. How can I correct it (a combination of undersampling and oversampling!) A: (1) The good news is no, you don't have to correct when comparing AUC. The resampling c...
doc_31618
materialize.min.js:6 Uncaught RangeError: Maximum call stack size exceeded. What's wrong with that and how to fix it? This is my Jquery: $(document).ready(function () { $('.modal').modal(); }); and so all modals have the class .modal Here is the example: <!--Signup Modal Structure --> <div id=...
doc_31619
Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED) { ActivityCompat.requestPermissions(this, new String[] {Manifest.permission.CAMERA}, MY_PERMISSIONS_REQUEST_CAMERA); } I was just wondering if someone could let me know why this isn't resulting in a request for permission? When I che...
doc_31620
$sql="SELECT room FROM Rooms WHERE roomID = $_POST[roomID]"; (roomID is a variable) Why is this not working? EDIT: The code works if I put a number instead of $_POST[roomID] (or $_POST['roomID']) EDIT2: This is my code: while ($row = $result->fetch_assoc()) { $date = $row['date']; $period =...
doc_31621
Flutter terminal not working after some change in .bash_profile file. I have added : export ANDROID_HOME=/Users/mac/Library/Android/sdk export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools after that i did run command: pbpaste > ~/.bash_profile cat > ~/.bash_profile A: The pbpaste line you listed wil...
doc_31622
{ File f=new File(fname); Scanner k=new Scanner(f); Scanner k3=new Scanner(System.in); int drNr; String occ; int adl; int child; while(k.hasNext()) { drNr=k.nextInt(); occ=k.nextLine(); adl=k.nextInt(); child=k.nextInt(); k.nextLine...
doc_31623
<?php //Login Script if (isset($_POST["user_login"]) && isset($_POST["password_login"])) { $user_login = preg_replace('#[^A-Za-z0-9]#i', '', $_POST["user_login"]); // filter everything but numbers and letters $password_login = preg_replace('#[^A-Za-z0-9]#i', '', $_POST["password_login"]); // filter everything b...
doc_31624
this is what i used on manisfest : <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> <uses-permission android:name="android.permission.VIBR...
doc_31625
@Component({ selector: 'nav-menu', directives: [...ROUTER_DIRECTIVES, HighlightDirective, EditTmpl], template: '<template [ngTemplateOutlet]="currentTplRef"></template>'//require('./nav-menu.html') }) export class NavMenu implements OnInit { @Input() templ: TemplateRef<any>; @ViewChild('displayTmpl...
doc_31626
So the idea is to let the User insert the header <Expander Name="MyExpanderExpander" Style="{StaticResource MyExpanderNewGeneration}" Header="UserChoice" OverridesDefaultStyle="True" VerticalAlignment="Top" Margin="0,0,0,0" Height="210"> So now the Style : MyExpanderNewGeneration should get the header Name : UserChoi...
doc_31627
Have you come across a plugin that can do that? How about some other editor than Notepad++? A: I came across the same problem some time ago. One thing you can do is put your comment lines between braces like: { //Hidden comments //Word.Document doc = wordApp.Documents.Open(ref outputFile, ref nullobj, ref nullobj, ...
doc_31628
QAbstractItemModel().setCurrentIndex(0) does't select the item. How could that be done like setSelection(INDEX). self.listView = QtWidgets.QListView() self.entry = QtGui.QStandardItemModel() self.listView.setModel(self.entry) ---------- self.listView.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) self.lis...
doc_31629
effect_size = sms.proportion_effectsize(0.13, 0.15) # Calculating effect size based on our expected rates required_n = sms.NormalIndPower().solve_power(effect_size, power=0.8, alpha=0.05,ratio=1) # Calculating sample size needed required_n = ceil(required_n) ...
doc_31630
<div id="absoluteWrapper" style = "z-index:-11; pointer-events: none;"> <div id="wrapper" style = "z-index:-11; pointer-events: none;"> <div id="leftWrap" style = "z-index:-11; pointer-events: none;"> <div id="miniWrapL" style = "z-index:-11; pointer-events: none;"> <div id="...
doc_31631
doc_31632
typedef struct stack_1 { short ctr; } stack_1; typedef struct stack_2 { struct stack_1 *s1; } stack_2; then later in the code i do struct stack_2 *x; what is my x initialized to ?? 0 or Null. Thank you in advance. A: If your declaration is outside any function or with the static keyword (more precisely...
doc_31633
--Header file template <class Item> class Binary_tree { string file_name; list<Item> arr_data; public: Binary_tree(string fname); void printArr(); }; --cpp file template <typename Item> Binary_tree<Item>::Binary_tree(string fname) { File_Name = fname; total = 0; root = nullptr; std::if...
doc_31634
There're multiple tables which format is dm_ym_file_2022XXXX(date). The start date is 20220720 and the end date is 20221220 dm_ym_file_20220720 dm_ym_file_20220721 …… dm_ym_file_20221220 dm_ym_file_rules stores all names.The dm_ym_file_rules as belows: ID start_date end_date table_names 36 2022-07-20 20...
doc_31635
{ "city": "TWENTYNINE PALMS", "loc": [-116.06041, 34.237969], "pop": 11412, "state": "CA", "_id": "92278" } { "city": "NEW CUYAMA", "loc": [-74.823806, 34.996709], "pop": 80, "state": "CA", "_id": "93254" } { "city": "WATERBURY", "loc": [-72.996268, 41.550328], "pop": 25128, "state": "CT", "_id": "...
doc_31636
What is happening on my local machine? I have the Ubuntu image running for example, I install pip3 for example, and "docker commit" the changes locally, then tag the image and push it to ACR. This image will then fail to load with the above error. I can see that the segments in the previous image are already in the re...
doc_31637
How do I change the default browser in save to web preview in Photoshop CS6 so it previews images in Chrome instead of Internet Explorer. Or is there a good reason why it shouldn't be changed and I just haven't got to that bit in my Photoshop learning yet? A: As you're already doing, go to File > Save for Web. When t...
doc_31638
void print () // can't get why this function is used { } template <typename T, typename... Types> void print (const T& firstArg, const Types&... args) { std::cout << firstArg << std::endl; // print first argument print(args...); // call print() for remaining arguments } A: A variadic expression can capture 0...
doc_31639
My code is as follows: User.cs public class User : IEntity { public Guid Id { get; set; } public string Email { get; set; } public string Password { get; set; } public bool IsActivated { get; set; } } Repository.cs public class Repository<T> : IRepository<T> where T: class, IEntity { ...
doc_31640
<configSections> <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > <section name="Project1WindowsService.MyService" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Cult...
doc_31641
A: I think the problem is that the return type of getObjectByName() is Object3D. And objects of this type do not have a material property. So if you are sure that "MeshName" is the name of a mesh, you have to cast the returned object to a material and then access material: (this.scene.getObjectByName("MeshName") as TH...
doc_31642
I am stuck at two places: * *With the following code, why is my line now showing? <!DOCTYPE html> <meta charset="utf-8"> <body> <script src="d3.min.js"></script> <script> var width = 500, height = 500; var randomX=[], randomY=[]; for (var i=0; i<=50; i++) { randomX[i] = Math.random()*400; randomY[i] = Math.r...
doc_31643
SQL Schema +----------------------------------+ - R_White R_Af_American R_Asian - - 1 1 1 - - 0 1 1 - - 1 0 1 - - 0 1 0 - +----------------------------------+ Cassandra Temp De...
doc_31644
<h2> Contract</h2> @Using Html.BeginForm() @Html.ValidationSummary(False) @<fieldset> <legend>Hire Contract</legend> <div class="editor-label"> @Html.LabelFor(Function(model) model.ContractNo) </div> <div class="editor-field"> @Html.DisplayTextFor(Function(model) model.ContractNo) </div> <div class="editor-label"> @Ht...
doc_31645
I need to open a MS word document present on a remote file share, it should be saved to the same location when saved. I achieved this using IE, but due to security model of chrome and firefox, the file:/// opens a blank window. Is it possible to open an IE window from the existing application in chrome/firefox? A: You...
doc_31646
I am trying to write tests for this app to make sure everything is working as intended. Usually when I test components, I use Jest to test that certain functions inside the component provide expected outputs on given inputs. But in this case there isn't really any input/output, so I'm not sure what I'm meant to be test...
doc_31647
I am getting push notification with firebase. This is my Main Activity code package com.example.romil.mypushexample; import android.content.Context; import android.content.Intent; import android.support.v7.app.ActionBar; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log;...
doc_31648
using (server.RequestStart(db)) { var cursor = col.FindAll(); foreach (var item in cursor) { //code here } } A: Why are you having trouble keeping your connection to MongoDB open? Are you losing your network connection in the middle of the query? Are you timing out? In general the only way to ...
doc_31649
but manualy if I type in the URL localhost/detiled/8 I am redirected to to <InnerDetail /> with id as 8 import React from "react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faSearch } from "@fortawesome/free-solid-svg-icons"; import { useState, useEffect } from "react"; import axios ...
doc_31650
A: AVG is intercepting Keyboard Hook as virus. Go ahead and exclude your application folder or executable from AVG exclusions
doc_31651
{ "id": 1008, "description": "Cheese, caraway", "tags": [ ], "manufacturer": "", "group": "Dairy and Egg Products", "portions": [ { "amount": 1, "unit": "oz", "grams": 28.35 } ], "nutrients": [ { "value": 25....
doc_31652
#include <iostream> #include <type_traits> #include <tuple> int main() { auto tup = std::make_tuple(1, 2); auto [ a, b ] = tup; decltype(auto) e = a; std::cout << std::boolalpha << std::is_reference_v<decltype(e)> << std::endl; } clang (output: false) and gcc (output: true) are disagreeing in this sim...
doc_31653
<asp:GridView ID="gvreport" runat="server" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" EnableModelValidation="True" AutoGenerateColumns="False" BackColor="White" BorderColor="#999999" ForeColor="Black" GridLines="Vertical" Width="691px" ShowFooter...
doc_31654
<Limit GET POST> order deny,allow allow from all </Limit> <Limit PUT DELETE> order deny,allow allow from all </Limit> But I am not sure what this means and if it is safe in terms of security? A: The additional <Limit> container allows PUT and DELETE type requests, which have probably been disabled on the server. It i...
doc_31655
░ = ° ▒ = ± ▓ = ² But it stopped working? The symbols come out with a lot of spam. Help? Edit: Here is how you "get the alt code in" {link} And a image on what the alt symbols look like: It add the first symbol. A: open up notepad and click on "Encoding" and click on "Convert to ASCII" some symbols will be lost b...
doc_31656
Now I tired to implement the same in .net core using WCF connected service. This time am getting the following error even though i added the certificate from StoreLocation. HL7SOAPEndPointSvcSoapClient hL7SOAPEndPointSvcSoapClient = new HL7SOAPEndPointSvcSoapClient(EndpointConfiguration.HL7SOAPEndPointSvcSoap, "endpoin...
doc_31657
My problem is that I've stated in the settings that I don't want to have more than 4 REGULAR blog posts (Settings -> Reading -> Blog pages show at most -> 4), so how do I make Wordpress differentiate between these two? Here's the Query I'm using to display my posts: <!-- Start the Loop. --> <div id="kampanj...
doc_31658
After collecting all sendmail details, we have post the details to server and wait for the result. Based on the result, the sendmail should be allowed / blocked. getAllMailDetails() is the callback for ItemSend event in addin manifest file and outlook is calling my addin function when a new mail is sent. But allowBlock...
doc_31659
Here's an example: buѕіnеѕѕ wеbѕіtе This is obviously the phrase "business website", but when you cmd+f or cntrl+f and type in the phrase, it does not recognize it as this phrase. Has anyone experienced this issue? The only workaround I've found is to retype the phrase, but this isn't feasible for a 1500 word article. ...
doc_31660
<Bars> <Bar> <bar_id>0</bar_id> <Bartenders> <Bartender> <imageURL>unique URL</imageURL> <shift>20:30</shift> </Bartender> </Bartenders> </Bar> <Bar> <bar_id>1</bar_id> <Bartenders> <Bartender> ...
doc_31661
<div class="hero-image"> <div class="topnav"> <ul class="menu"> <li class="item"><a href="#">Home</a></li> <li class="item"><a href="#">My Work</a></li> <li class="item"><a href="#">About Me</a></li> </ul> </div> <div class="hero-text"> <h1>Kyle Williamson</h1> <h2>Web Developer<...
doc_31662
yes its a list view control.. there are two errors in my code one is that @@ The type new AdapterView.OnItemClickListener(){} must implement the inherited abstract method AdapterView.OnItemClickListener.onItemClick(AdapterView, View, int, long)@@ in LINE1 And the other one is @@ View cannot be resolved to a type@@ in L...
doc_31663
This occurs when a user navigates away from the main page via a html link, then clicks the back button of their browser and finally tries to cause a callback or postback e.g.via tabs on a gridview which causes a callback. I think it might have something to do with the back button causing a cached page to be returned wh...
doc_31664
private void btnFCFS_Click(object sender, EventArgs e) { a1 = Convert.ToInt32(txtAT1.Text); a2 = Convert.ToInt32(txtAT2.Text); a3 = Convert.ToInt32(txtAT3.Text); a4 = Convert.ToInt32(txtAT4.Text); a5 = Convert.ToInt32(txtAT5.Text); b1 = Convert.ToInt32(txtBT1.Text); b2 = Convert.ToInt32(txtBT2.Text)...
doc_31665
Sub Code() Workbooks.Open Filename:="C:\Users\xxx\Desktop\w1.xlsm" Sheets (Array("Sheet1", "Sheet2")) Copy after:=Workbooks("w2.xlsm").Sheets(Sheets.Count) Workbooks("Client Info Template.xlsm").Close savechanges:=False End Sub A: Instead of Sheets... and Copy ... as two lines, try a single line: Sheets(Array("She...
doc_31666
void (^(^complexBlock)(void (^)(void)))(void) = ^ (void (^aBlock)(void)) { ... return ^{ ... }; }; The above complexBlock variable refers to a block that takes another block as an argument (aBlock) and returns yet another block. My question is that can I rewrite it as: void (^) (void) (^c...
doc_31667
I'm not able to understand if I'm doing something wrong :( If I have a component that is attached, let's say, to the store section called "user' Class UserComponent extends React.Component { [...] } const UserWithStore = connect(mapStateToProps)(TokenComponent); where map state to props is : const mapStateTo...
doc_31668
In theory this is all fine however on certain browsers (particularly Firefox) the right and bottom edges of the svgs have some strange pixelation at certain sizes which doesn't happen for imgs. So if you view http://jsfiddle.net/deshg/xuq6812g/ you can see a grid of 4 x 25% columns each with a div or img (that is 100% ...
doc_31669
Objective: I want to run a callback when all modules are available Problem: what is the fastest way? Example: the problem begins in the function "runCallbacks" that gets all the new added objects like this: runCallbacks(newItems/*as array ['a','b','c'];*/){ // now I would need to understand the dependencies of the ...
doc_31670
C:\inetpub\wwwroot\MyWeb\ and I have a path to a file C:\Users\Ryan\Desktop\h.ics How can I write the asp code that it will read the contents of h.ics and write it on the page? A: Use the File system Object, here is an example from Chris Muander (Codeproject founder) http://www.codeproject.com/Articles/251/Reading-a-t...
doc_31671
from s in SubContentRevisions where s.SubContentID.Equals("e3f319f1-65cc-4799-b84d-309941dbc1da") && s.RevisionNumber == (SubContentRevisions.Max(s1 => s1.RevisionNumber)) select s which generates this SQL (according to LINQPad): -- Region Parameters DECLARE @p0 UniqueIdentifier = 'e3f319f1-65cc-4799-b84d-309941dbc1da...
doc_31672
$('#sidebar-nav').on('click', 'a.documents:not(span)', function(e){ // code }); but it's not working. So how to write delegated click event in order to select the link but not the <span> element inside it? The Event has to be delegated because all links are added dynamically. Thanks for any hint. A: It's not wor...
doc_31673
message: The extId__c field should not be specified in the sobject data. errorCode: INVALID_FIELD A: there are some changes post API version 37.0, which suggest using POST for insert instead of PATCH. You may try changing version to v36.0(or anything less than 37) , example: /services/data/v36.0/sobjects/obj__c/extId_...
doc_31674
Any ideas why & how to get the grid to dynamically update/bind correctly? public class SummaryItem { public string ProcessName { get; set; } public long Total { get; set; } public long Average { get; set; } public static SummaryItem ObservableCollectionSearch(ObservableCollection<SummaryItem> oc, strin...
doc_31675
Branch, Date, LC and, 'DN' and 'JCN' are used to join two tables and the output should be in below format Branch, Date,count(* based on condition)/count(*) As mentioned, both tables have many columns but for my query: WIP contains Branch, Status,Date and DN columns and ROS contains Branch,LC and JCN columns I have use...
doc_31676
[query whereKey:@"meetingDateAndTime" equalTo:appDelegate.meetingDateAndTime]; // appDelegate.meetingDateAndTime represent the UIPickerDate date The problem is that even if i set the UIPickerDate with UIDatePickerModeDate the date contains also the time, so the query doesn't retrieve anything. I then thought t...
doc_31677
It's important that IQueryable should be executed as a single query. This is what I want to get: toCreateSubquery.Union(toDeleteSubquery) The queries I want to combine are listed below. var toCreateSubquery = validLinks .Where( rl => !existingLinks.Any( el => el.Contract == rl.Co...
doc_31678
UI It can also be moved by changing the inputs on the right. I am using Angulars cdkDrag for the drag and drop functionality which applies a transform: translate3d(x, y, z) to move the box (i use the event listener to update the input values on the right). When a user input is applied I update this property depending ...
doc_31679
Although when I created it as a JAR file, it was unable to locate the audio files. I even copy and pasted the files inside the new dist folder. Here is a snippet of code: private void playSound39() { try { /**Sound player code from: http://alvinalexander.com/java/java-audio-example-java-au-play-sound */ ...
doc_31680
I now have a finished my tool and I would like to be able to launch it from a URL Is there anyway I can convert my electron app into a web app? Can I package it and host it on a server that is accessible via a URL? Any pointers or advice would be great. A: Nope, the only reason I use electron is so I can use the tag...
doc_31681
Maybe someone can help me.... https://github.com/AGERECKE/Rails-Book-Project http://pastebin.com/q4kS59ek Thanks A: * *about received: 0 times with any arguments You use method visit which usually is used for "acceptance" tests not for controller tests. I don't know what this method does in this case. I think you sho...
doc_31682
My problem is, that I don't know where to set the server base url on the client side. If I would deploy it to a docker container, my guess would be, that it should come from an environment variable. The only solution that I found is through: builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builde...
doc_31683
library(magrittr) library(data.table) library(zoo) library(lubridate) set.seed(1337) # data table of company market values companies <- data.table(companyID = 1:10, Sedol = rep(c("91772E", "7A662B"), each = 5), Date = (as.Date("2005-04-01") + months(seq(0, 12, 3))) - days(1), ...
doc_31684
sum=parseFloat($('input[name=fieldname]').val()) * 60 + parseFloat($('input[name=fieldname]').val()) + (($('input[name=fieldname]').val()) /60).toFixed(2). It get's the values from felds where I enter duration and it should give me the sum in minutes. The problem is that the sum I get concatenates the 3 fields inste...
doc_31685
<%= f.collection_select :category_ids, Category.all, :id, :name, {} %> inside my form and it creates the record no problem, however I'm lost on how to make more two or more records inside the same form, all the things I try either just create the one record or none at all. I found this solution, which I analyzed and w...
doc_31686
//This is package.json file where i user proxy is this a good way for the api calls? "eslintConfig": { "extends": [ "react-app", "react-app/jest" ] }, "browserslist": { "production": [ ">0.2%", "not dead", "not op_mini all" ], "development": [ "last 1 chrome...
doc_31687
UPDATE: Tried giving the right side explicit pixel values for open and close states. Animated just fine. shakes fist Percentages.... UPDATE 2: Apparently %-to-% works, as does px-to-px, and %-to-px, and px-to-% but %-to-whatever-calc-is failed UPDATE 3: Found this bug at Connect, which seems to describe exactly this is...
doc_31688
myoptions text[] I use a jOOQ converter so that I have a Set as corresponding type in my record : Set<String> myoptions In my query I have the following Condition : c.MYOPTIONS.contains(Sets.newHashSet("option1")) which is translated in SQL like this : cast("c"."myoptions" as varchar) like ('%' || '[option1]' || '%'...
doc_31689
The command is: STRNG=$( ip mroute show | tr -d "()," | awk ' {print "/usr/sbin/smcroute -a eth3", $1, $2, "vtun0 vtun1"}' ); echo "$STRNG"` And the output is: /usr/sbin/smcroute -a eth3 192.0.1.19 224.1.1.1 vtun0 vtun1 /usr/sbin/smcroute -a eth3 192.0.1.18 224.1.1.1 vtun0 vtun1 However, if I put the very same comman...
doc_31690
So I create a lemma foo to simplify the goal, of the shape A ⟹ C ⟹ (P ⟹ Q) ⟹ G. I’d like to be able to write case goal42 thus ?case proof (rule foo) assume P show Q sorry qed but this fails, because foo does not use B. What works is case goal42 thus ?case apply - apply (erule (1) eqvt_lam_case)...
doc_31691
I am trying to show total records using length property of records data but it is not changing after filter and sort. A: Showing {{((+dt.first+1))}} to {{+dt.first+ +dt.rows}} of {{dt?.length}} entries
doc_31692
It says find . -name *.bak is expanded to find . -name tim.bak example.bak. Can someone explain why it is expanded, I can't understand why it would be a good idea to have this feature for globs. A: This is a design decision that was made very early in unix history. Filename wildcards need to be expanded at some point,...
doc_31693
overflow = hidden on the vaadin-grid, vaadin-grid-outer-scroller, vaadin-grid-scroller, #table, #scroller, and many more but nothing seems to have a effect. I want the scrolling to be enabled but I do not want the ugly scrollbars to be shown. How can I avoid them? * *vaadin-grid version: 5.0.0-beta1 *I use polymer...
doc_31694
Now the app must update the local database, with records from the mySQL database, say once a day. Now the problem is, that I need to also change the record in the mySQL as soon as it has updated the firebird database, but when I want the app runs and I click the update button, I get the following error and no data gets...
doc_31695
Every time I start the game I have to read data from a text file. This text file has, at this moment, 117,955 lines divided into 24 registers. The first character on each line is an index to identify them. I will to load 12 or 13 registers, so I need to find them first. All the registers will be consecutive: from 0 to ...
doc_31696
resource "azurerm_key_vault_secret" "sp_arm_client_id" { name = "ARM-CLIENT-ID" value = az_sp.app_id key_vault_id = data.azurerm_key_vault.storable_kvs[each.key].id } A: I tested your scenario in my environment and I was successfully able to do the changes and it got stored in current version and the previous one...
doc_31697
The value of the conditional formula Formula1 property in this instance is "=A1<>VLOOKUP($A1,actWOrders1!$A:$EF,COLUMN(A1),FALSE)" I've tried replacing Application.Evaluate with ActiveWorksheet.Evaluate, in case it is the Application form is struggling with the context, but the same happens. Any ideas what might be ca...
doc_31698
private void btnConnect_Click(object sender, EventArgs e) { try { //Function call for validating the textboxes entry ValidateForm(); if(lblMessage.Text != string.Empty) { //Function call for binding the dropdown with all DB names ...
doc_31699
I'm also need to add a week to D and put the result in E. If I change C, columns D and E add a week. If I change D, E add a week. function addWeek() { var ss = SpreadsheetApp.getActive(); var sheet = ss.getSheetByName("Sheet1"); var oldDate = sheet.getRange("oldDateRange").getValue(); var oldDateValue = oldDate.ge...