id
stringlengths
5
11
text
stringlengths
0
146k
title
stringclasses
1 value
doc_40000
My function receives an integer, lets call it intZ. I have 3 tables: tableA, tableB and tableC. tableA has columns int1, int2 and intB. intB is related to tableB. problem: int1 or int2 of tableA can be intZ and it has to match with one tableC record. I need an OR condition, but I have no idea where to place it. Does i...
doc_40001
[{'Date': '22-Aug-2019', 'Open': 10905.3, 'High': 10908.25, 'Low': 10718.3, 'Close': 10741.35, 'Shares Traded': 668193449, 'Turnover (Rs. Cr)': 18764.38}, {'Date': '23-Aug-2019', 'Open': 10699.6, 'High': 10862.55, 'Low': 10637.15, 'Close': 10829.35, 'Shares Traded': 667079625, 'Turnover (Rs. Cr)': 20983.75}, {'Date': '...
doc_40002
What I want is very simple (I think?): A menu item that gets automatically populated with posts from a certain or all categories. The only similar thing I found was a plugin called "Custom Post Types Auto Menu", but as its title suggests, it only works on custom created post types and that doesn't work for me. A: I th...
doc_40003
df = [1.2, 0.2, 1.5, 2.49, 2.5, 25.5, 25.49, 14.1, 15.5, 8, 9, 9.6, 5.8, 4.7] I want to calculate the rounded value of df. For example: =0.5 <=1.49 should be 1 =1.5 <=2.49 should be 2 Expected output = [1, 0, 2, 2, 3, 26, 25, 14, 16, 8, 9, 10, 6, 5] After that how could I calculate the frequency table? In this case ...
doc_40004
std::vector<int> storage; int numbers[9]; I am looking for an equivalent to: for (int i = 0; i < 9; i++) storage.push_back(numbers[i]); something like: storage.push_back(numbers, numbers + 8); does this exist? or do I have to make it just to clarify - the vector may already contain useful info in it and I don't...
doc_40005
For example fire + stone = lava. It is built with cue Right now, everything is working fine, except there is one bug: When you do air + air it equals wind (this is good). And when you do water + air it equals rain (this is good as well). But when you do air + water, it says that it is not a good mix. It is a very speci...
doc_40006
Like below -- class Abc extends Command implements SelfHandling, ShouldBeQueued { } And where Interfaces are like below - interface SelfHandling {} interface ShouldBeQueued {} I got confused if it does not have any methods then what's the use of these interfaces ? A: It allows to handle objects by behavior. Say yo...
doc_40007
$ export b=`ls /` $ echo $b Applications Library Network System Users Volumes tmp usr var and now I want to find similar functionality in Matlab. Also, I want to find a command that outputs relative paths, not absolute paths like Matlab's ls -- I feel like reinventing the wheel if I am parsing this with a regex. I nee...
doc_40008
A: I would think the grid would only send the request if "OK" is clicked. You can use Firebug's "Net" tab to confirm. A: checked, no, it send the request as soon as i click 'delete' button...
doc_40009
public class Rule { public abstract Boolean Check(Decimal value); private Boolean Cross(Decimal value1, Decimal value2) { // Cross code } private Boolean Validate(Decimal value) { // Valdate code } } Then I create my rules: public class MyRule: Rule { public override Boolean Check(Decimal va...
doc_40010
Meaning I don't have to start an application with node debug app.js in order to attach a debugger to it. How do I send SIGUSR1 to my application and then attach a debug client to the process? It would be especially helpful if I could do this from within a Docker container with only node. A: How to send SIGUSR1 * *U...
doc_40011
class ServicesManager def __init__(self, logger): ...initialize stuff def getService(self, name): ... do some stuff def anotherMethod(): ... do more stuff from another class this is how i'm calling it from ServicesManager import ServicesManager class serviceCaller: def __init__(self, lo...
doc_40012
however I am facing one strange issue here. Every time this function is called the captured image size keeps increasing e.g 252K -> 278K -> 310K -> 400K ... These captured images I am using in ExtentReport. Also apart from selenium session image, I do see a black background image being captured not sure where it is co...
doc_40013
A: You can grab all the pages that link to a specific article by going to the Special:WhatLinksHere/MyPageTitle page in your Wiki. Then, just edit your article and add the relevant links. Hope this helps.
doc_40014
$url = "https://sitename.com/product-category/کتگوری"; $parsed = parse_url($url); $path = $parsed['path']; $path_parts = explode('/', $path); $desired_output = $path_parts[2]; echo $desired_output; Now the returned result is this: %d8%a2%d9%86 Which is referring to کتگوری but does not show up correctly. So I need to ...
doc_40015
<my-list> <my-list-item>Foo</my-list-item> </my-list> Is there a way to enforce this in the TypeScript? A: In your my-list-item component do this and my-list-item will not render if it's not inside my-list import {Component, ElementRef} from 'angular2/core'; @Component({ selector: 'my-list-item', template: '...
doc_40016
<select name="search_region" id="search_region" class="search_region"> <option value="0">All Regions</option> <option class="level-0" value="135">HTML</option> <option class="level-0" value="136">PHP</option> <option class="level-0" value="137">CSS</option> </select> <select na...
doc_40017
EDIT: The code that I'm using now func postToServer() { let endPoint: String = "http://server.com" guard let url = NSURL(string: endPoint) else { print("ERROR: cannot create URL") return } let urlRequest = NSMutableURLRequest(URL: url) urlRequest.HTTPMethod = "POST" urlRequest.s...
doc_40018
Is it possible to debug do_GET method using below IDLE tool?If no, Please recommend an alternative tool that helps debugging.
doc_40019
<Style TargetType="TabControl" x:Key="TabControlStyle"> <Setter Property="Background" Value="Transparent" /> <Setter Property="BorderThickness" Value="0" /> <Setter Property="TabStripPlacement" Value="Left" /> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="T...
doc_40020
* *UI.MVC4 *WebProviders WebProviders are used in mvc4 to determine user permissions and memberships. This is working solution but I was thinkig to based on this learn how to test user access on certain administration pages. Should I create MockRoleProvider and to use that role provider in my tests? I've read so...
doc_40021
The report is throwing an error "Data type mismatch in criteria expression" This leads me to believe that the data being imported into the DB is not compatible with the data types set in the report's query. There are 53 pieces in the SQL SELECT Statement. Is there a good way to trouble shoot the statement (in Access) ...
doc_40022
The code is this :- http://pastebin.com/zhdWT5HM I want to fetch from "var playersData" line. I want to fetch this thing :- "playerId":"showsPlayer" (without quotes obviously). How do I do so? I've tried beautiful soup. My current script looks like this q = requests.get('websitelink') soup = BeautifulSoup(q.text) sear...
doc_40023
Request the parent app from the Apple Watch WKInterfaceController.openParentApplication(["SiteName": "DS"], reply: { (replyInfo, error) -> Void in NSLog("Reply: \(replyInfo)") }) Then, in the parent app use this to send a success. This is not called in the actual hardware but it was using the s...
doc_40024
struct be_less { //A lot of stuff int val; be_less(int p_v):val(p_v){} bool operator<(const be_less& p_other) const { return val < p_other.val; } }; struct be_more { //A lot of stuff int val; be_more(int p_v):val(p_v){} bool operator<(const be_more& p_other) const { ...
doc_40025
Problem is that wifi connection is not stable enough in place of use. I reduced the loss of data with repeated sending when connection is aborted by exception. But time for exception is ~21sec and it's too long for me. Repeated connections are successful (mostly), but I need shorten time for exception, or find differen...
doc_40026
I have some input elements rendered on to my web page based on some back-end logic, so appearance of questions tend to change. I am trying to 'set' the value of 'type' to 'tel' for those elements having its class defined as 'GTnumeric' and value of 'type' is not 'hidden' (I am not in a position to change any logic in t...
doc_40027
The problem is it takes the browser 1 second to display the plain JSON. The structure of the JSON looks like this: [ { "id": 2, "name": "person0", "skills": [ { "skill_id": 3, "person_id": 2, "name": "skill1" }, { "skill_id": 6, "person_id": 2, "name": "skill4" ...
doc_40028
I run the test in each browser. for IE and chrome the test work but with Firefox, it will not lunch the URL. The page open but nothing is done. My test will then give me this error. Test method QaAutomatisation.Reseller.DristributorCreation threw exception: Microsoft.VisualStudio.TestTools.UITest.Extension.UITestEx...
doc_40029
Selecting a subset from a Pandas dataframe via df[df['Col1'].isna() == False] triggers the following code style warning. The code analysis suggests using if. However, if does not work in this context. How do I select a subset from a Pandas dataframe without triggering a code style warning? A: For inverse mask in pand...
doc_40030
wp_get_attachment_image($page, 'full') doesn't work. In the codex there's an example with a loop, but here I need just that one image. // This is where you run the code and display the output $page = $instance['selected']; ?> <a href="<?= get_the_permalink($page); ?>"> <?php wp_get_attachment_image(...
doc_40031
This is my first question, so please let me know if there is anything else I could provide. I researched for a few days with no luck :( Thanks! Jack A: So this is a guide to the solution, as you asked. * *First make sure you have your list of data frames called l (all(sapply(l, is.data.frame)) should be TRUE). *Th...
doc_40032
Let me think, lets check two things: the first one is C# code, second one is ASM code. If C# requires admin privledges, then ASM also need them? Sometimes its hard to write simple program for limited accounts A: The operating system decides. Since the ASM and C# code are doing the same thing, they both have to use th...
doc_40033
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 2623910681 bytes) ~ It tries to allocate about 2GB memory, and I'm using a shared hosting, I can't increase the memory_limit more than 256MB... I'm loading the autoload.php file in this way: session_start(); define( 'ROOT', dirname( _...
doc_40034
If it is 32 bit, it should be C:\Program Files\ If it is 64 bit, it should be C:\Program Files (x86)\ I used InstallDir "$PROGRAMFILES64\ " in the script. With that it is showing C:\Program Files\ for both 32/64 bit OS. If anyone has any idea, please help me out. A: You don't have to do anything special, NSIS tak...
doc_40035
I am having trouble testing this at work (red tape etc) Does anyone know if the following datasource setup in tomcat would recover itself? <add:Resource auth="Container" driverClassName="oracle.jdbc.OracleDriver" initialSize="5" logAbandoned="false" maxActive="100" maxWait="180000" minEvictableIdleTimeMillis="240000" m...
doc_40036
regions = Region.objects.filter(criteria=criteria) The model is defined as such: class Region(models.Model): poly = models.PolygonField() I have a point-based model, like this one: class Example(models.Model): point = models.PointField() Is there a way to get all instances of Example that fall inside any of ...
doc_40037
django.db.utils.OperationalError: (1045, "Access denied for user 'root'@'localhost' (using password: NO)") Which seems like it's still trying to connect to my local MySQL instance. My Vagrant networks settings are as follows: config.vm.network :private_network, ip: "192.168.33.3" config.vm.network :forwarded_port, gues...
doc_40038
I have two notification classes InterviewRequestReceived.php and SendJobSeekerResume.php. I'm trying to display the total number of notifications using count() next to a little bell icon and then a message related to the respective notification class. The messages are simple, they are located in /layouts/partials/notif...
doc_40039
For example, if there is a link that has a hover selector, is it possible to "hover" over it using JavaScript Events? Basically, I want to trigger CSS hover. You can assume I can't use jQuery. A: The jQuery hover event is just using mouseenter and mouseleave events. Here is the source of jQuery's hover: function (fnOv...
doc_40040
I want to know basic folder structure that how it works. It seems like fixtures and packages includes similat files each other. So i want to know what is different each other. And i also want to know where is the entry point for this source code and how i start. I usually do npm run start with create-react-app library ...
doc_40041
Already searched many questions here and also tried to change the useTheData () callback function to include an extra for cycle like shown below but with no success... function useTheData(doc) { var sidebarHtml = '<table><tr><td><a href="javascript:showAll();">Show All</a></td></tr>'; for (var j ...
doc_40042
Is it possible to join the map with the table OR is there any alternative solution?
doc_40043
We use the 'artifact' keyword in our yaml file to define the artefacts that need to be uploaded. When we commit this is the message we are getting: gitlab-ci-multi-runner 0.7.2 (998cf5d) WARNING: artifacts is not supported by selected executor and shell Using Shell executor... So is this because it is using a Windows ...
doc_40044
Currently I use the delegate below (adapted from other answers) to draw a flag (an html coloured text) on a single cell, clicking on the whole cell changes the flag. class HTMLDelegate(QtGui.QStyledItemDelegate): def Doc(self, options): if options.text == "0": return "" elif options.tex...
doc_40045
@app.route('/_search', methods=["GET", "POST"]) @app.route('/_search/', methods=["GET", "POST"]) def searchQuery(): # get the argument that were passed using get t_query = request.args.get('query') print(t_query) t_s = get_searchserver_socket() t_s.send("C, something") t_data = t_s.recv(1024...
doc_40046
in this code: #include <iostream> // std::cout #include <thread> // std::thread #include <mutex> // std::mutex, std::unique_lock #include <condition_variable> // std::condition_variable std::mutex mtx; std::condition_variable cv; bool ready = false; void print_id (int id) { std::u...
doc_40047
var $hasSubpages = $("#divContainer .classForPagesWithSubpages"); function theFunction(){$('#theID').find('.classForChild').slideDown(400);} var timer; $hasSubpages.hover( function (){ timer = setTimeout(theFunction, 500); $(this).attr('id','theID'); }, function(){ clearTimeout(tim...
doc_40048
I'm using Json. When i echo dd($levelResult) then array:1 [▼ 0 => "Đại Học" ] if i echo $levelResult[0] then i have notification Invalid argument supplied for foreach() @foreach( $search as $key => $value) @if(json_decode($value->working,JSON_BIGINT_AS_STRING)[0] != " ") @foreach(json_decode...
doc_40049
I am looking for a way not to duplicate these interfaces files in both projects, but rather have a mutualised project hosting shared code and referenced by the server and the client projets that have their own building setup. Would you have any hint ? Thanks ! A: establish a new "common" typescript library repository,...
doc_40050
I'm using a GitHub event to trigger these workflows, but it would be nice to pull the repository name out of the event and set it as the generateName on the Workflow. Here's an example of what I was hoping would work, but doesn't seem to as far as I can tell. Maybe I've got the syntax wrong? Does anyone know if somethi...
doc_40051
Lately, i've decided to integrate redux to this app so i can have a global storage, robust code structure and clean unit test. So i did implement Redux & Redux-thunk. It worked fine, but i've noticed something that intrigued me. When i'm refreshing my app, i've noticed my redux state was not persisted. I was losing my ...
doc_40052
{ IDataObject data; Image bmap; SendMessage(hHwnd, WM_CAP_EDIT_COPY, 0, 0); data = Clipboard.GetDataObject(); if (data.GetDataPresent(typeof(System.Drawing.Bitmap))) { bmap = (Image)data.GetData(typeof(System.Drawing.Bitmap)); ptb1.Image = bmap; ClosePreviewWindow(); ...
doc_40053
import pandas as pd import numpy as np np.random.seed(42) date_rng = pd.date_range(start='1/1/2018', end='1/03/2018', freq='H') df = pd.DataFrame(date_rng, columns=['date']) df['data'] = np.random.randint(0,100,size=(len(date_rng))) print(df.head()) date data 0 2018-01-01 00:00:00 51 1 2018-01-01 0...
doc_40054
../../flutter/.pub-cache/hosted/pub.dartlang.org/visibility_detector-0.2.0/lib/src/visibility_detector_layer.dart:276:21: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. super.addToScene(builder, layerOffset); flutter doctor Doctor summary (to see all details, ...
doc_40055
+---------+----------+----------------+ | FACTORY | CUSTOMER | EXPEND | +---------+----------+----------------+ | ABC | JOHN | 147,883,593.00 | | ABC | DAVE | 91,679,200.00 | | ABC | PET | 61,424,237.00 | | ABC | DIN | 18,613,473.00 | | ABC | INU | 13,593,258.50 | ...
doc_40056
var authorizationToken = "xxxxxxxxxxxxxxx"; function myapiRequest(endpoint, options) { $.ajax($.extend({}, { type: 'GET', dataType: "json", success: function(data) { $('.Name').html(data.user.name); $('.Email').html(data.user.email); $('.Address').html(data.user.teams[0].name); }, ...
doc_40057
* *A -> B -> C *A -> X -> C A is the repository. X and B are projects (I actually have 5 not 2). C is a directory with a lots of code. I do not want to place C in all projects and copy before each commit. I would like to be able to link all Cs to the same spot. C has to be under each one of them because they are ...
doc_40058
Company business year Starts in 01/08/YYYY and end on 31/07/YYYY the next year. Can the query works for every business year? i.e. "at this point of time next year". I have this SQL code so far: SELECT FORMAT(DATEADD("m", 5, [OrderDate]), "\Qq") AS Quarter, * FROM tblOrders WHERE [OrderDate] BETWEEN DateS...
doc_40059
https://ourdomain.com/admin/desktop/Filename-2014-03-28a.exe The part of the URL that changes is "-2014-03-28a" which can be any string between "Filename" and ".exe" How do I write the regular expression that matches this pattern but DOES NOT match the new filename to prevent a redirect loop? A: You can use a Rewrite ...
doc_40060
library(data.table) d <- data.table(x=1:10, y=c('a', 'b')) myfun <- function(DT) { print (DT$y) } d[, myfun(.SD), by=y] For more context, I am passing a second argument (another data.table) to myfun and want to subset that based on the current value of y. It could be done with a dummy variable, but that seems yu...
doc_40061
html5 JavaScript Angularjs node.js express.js Couchbase Question: I understand the concerns and security measures implemented within the web environment to prevent the display of directory paths to the world. However, I have an issue that requires knowing the full directory path to a selected file. I am building a web...
doc_40062
Heres my code : #import astropy.io.ascii as asciitable import numpy as np import pylab as plt #x=asciitable.read('protected.txt', guess=False,delimiter='\t',fill_values=[('', '-999')]) #x=np.genfromtxt('protected.txt', comments='#', delimiter=' ', skiprows=0, skip_header=0, skip_footer=0, converters=None, missing=''...
doc_40063
But, when I select a file a couple of labels are supposed to be populated. This is what it looks like after I make a file selection using those small "..." buttons: As you can see , the entire layout gets messed up. All I am doing in the actionlistener is this: fileTxt = fileChooser.getSelectedFile(); ...
doc_40064
Using hover functionality for without jumbotron container thumbnails and want to remove hover functionality for thumbnails which are inside jumbotron container. Right now hover functionality which i m using is working on both set of thumbnails. How i can disable hover functionality for thumbnails inside Jumbotron cont...
doc_40065
I'm printing a long table and want to repeat the table header on each page. I'm not having a problem until the height of the <thead> gets to a certain height - in Chrome 87.0.4280.88 it appears to be 242px with default margins. At 242px high or more, the header only prints once on the first page. Shrinking the page mar...
doc_40066
The app is written with Xamarin. The app at some point changes the background colour of a box depending on a value of an integer. I want to write an automated test that checks this colour is displayed correctly in the app. This will involve getting the colour of the box and comparing it with what we have stored (hard-...
doc_40067
I have an HTML from which allows user to book an appoint, the idea is based on who they want the appointment with would depend what days they can chose from within the jquery datepicker. HTML <form action="" method="post"> <input type="text" id="Name" name="Name" required="required" value="Name"> <select id="...
doc_40068
hide all elements with attribute alt="3" Is this possible? And if so, how can it be done? Thanks A: Try this: $('[alt="3"]').hide(); It uses the attribute selector to match elements where alt has a value of 3. hide(), obviously, hides all matched elements. To narrow the selector down (and make it a bit faster), you ...
doc_40069
The Node and Descendant definition is just there for syntax . It's not meant to do anything! use std::iter::Filter; #[derive(Clone)] pub struct Node<'a> { s: &'a str, } pub struct Descendants<'a>{ iter: Node<'a> } impl<'a> Iterator for Descendants<'a> { type Item = Node<'a>; fn next(&mut self) -> Opt...
doc_40070
But the database is there on heroku when I check it: database in heroku Settings.py Whitenoise whitenoise 2 database conection static urls.py static in URL I think maybe some config with the connection is missing, but I don't know what else I can do. A: Your local database is different than your production database. Y...
doc_40071
In my excel, if i "click" the hyperlink I can get directly opened up in the browser using the always open file option in chrome. import pandas as pd from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.chrome.service import Service from webdriver_manager.chrome im...
doc_40072
public static double[] mittelwert(double[] m){ double mittelw =0; double[] neuesArray= new double[0]; for (double i : m) { mittelw+=i; mittelw= mittelw/(double)m.length; } for(int i=1;i>m.length;i++){ if (m[i]>mittelw){ ...
doc_40073
template<typename T> std::ostream&operator<<(std::ostream&s, some_array_type<T> const&x) { auto w = s.width(); auto p = s.precision(); s << x[0]; for(std::size_t i=1; i!=x.size(); ++i) s << ' ' << std::setw(w) << std::setprecision(p) << m[i]; return s; } intends to print a some_array_type with the width ...
doc_40074
I have tried the power tools but when I run 'Generate Views' the VS12 output window shows System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.DbContextPackage.Utilities.EdmxUtility.GetMappingCollectionEF6(Assembly ef6Assembly, String& containerName) at Microsoft.DbCon...
doc_40075
process_form.php?download=5108&download=5110&download=5114 How should I parse this in process_form.php? I've done a var_dump of $_POST and also $_REQUEST but it only shows the last value which is 5114. I kind of understand the problem, most of the time in forms programmers only get one value per input field, but wh...
doc_40076
library(latticeExtra) rsq_plt <- readRDS("rsq.rds") err_plt <- readRDS("err.rds") latticeExtra:::c.trellis(rsq_plt, err_plt, layout = c(1, 2)) A: Just for the record, it seems like I finally came up with a proper solution thanks to the comprehensive customization options for trellis plots. Disabling scales in the ...
doc_40077
A: If you've already got a list of ip adresses, you can find the name with: System.Net.Dns.GetHostEntry("youripaddress").HostName; A: You can use Dns.GetHostEntry to try to resolve the name, because not every IP has a name. using System.Net; ... public string GetHostName(string ipAddress) { try { ...
doc_40078
public class RequestObject { public string loanPurpose { get; set; } public string occupancy { get; set; } public string propertyType { get; set; } public string condoStyle { get; set; } public int purchasePrice { get; set; } public string propertyValue { get; set; } public double loanAm...
doc_40079
class ViewController: UIViewController, UIWebViewDelegate { @IBOutlet weak var webView: UIWebView! @IBOutlet weak var activityIndicator: UIActivityIndicatorView! override func viewDidLoad() { super.viewDidLoad() webView.delegate = self let url = URL(string: "url to site") webView.loadRequest(URL...
doc_40080
The app installs fine, detects an update, and downloads it. But then it gets stuck with the error: Uncaught TypeError: window.resolveLocalFileSystemURL is not a function at child.downloadComplete (hydra.js:219) at child.trigger (backbone-min.js:163) at hydra.js:200 at ContentSyn...
doc_40081
Here's the syntax. df$groupid<-group_indices (df,id1,id2) #creates group id on the basis of a combination of two variables df%<>%group_by(id1,id2) #actually groups the dataframe according to these variables df<-summarise(df, xvar1=xvar1[which(!is.na(xvar1))[1]]) #this code works great to assign the first non missing ...
doc_40082
Here is my code. <template> <v-skeleton-loader v-if="loading" :loading="loading" type="image"> <v-card v-show="loaded" class="ma-auto elevation-4" shaped color="darkgreen" width="500" flat > <v-img src="/products/em-lucky-combo.jpg" max-width="500" ...
doc_40083
using (StreamReader Reader = new StreamReader(File.Open(AccountsFile, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))) { string line; while ((line = Reader.ReadLine()) != null) { if (line == "Placeholder:Placehol...
doc_40084
oc get pods -A -o json | jq -r '.items[] | .metadata.namespace + "," + .metadata.name + "," + (.spec.containers[] | .name + "," + .resources.requests.cpu + "," + .resources.requests.memory + "," + .resources.limits.cpu + "," + .resources.limits.memory But required is to print pods count per namespace with real time us...
doc_40085
RewriteEngine on SSLProxyEngine on RewriteCond %{HTTP_HOST} ^subdomain1\.domain1\.ext1$ [NC] RewriteRule ^(.*) https://subdomain2.domain2.ext2$1 [L,R,P] Should I generate a certificate on domain1 with certbot? What webroot should I associate? Should I include the one from domain2? Currently, I have this in the error.l...
doc_40086
Using Amazon route53Clinet class, I know there is a method getHostedZone which get the Hosted Zone information on the basis of ID. But I have a case where I have the domain name and i need to fetch the hosted zone id may be on the basis of the provided domain name? How can i do that? A: You can use listHostedZones or...
doc_40087
And from the tutorials I saw : https://www.youtube.com/watch?v=OhPFgqHz68o they use npm init not mean init from the mean website. Can someone explain why? A: npm init is the basic, no-frills initialization of any Node.js project, so it's hardly surprising to see it show up. That's usually the first step before instal...
doc_40088
Event.observe('sameAsBefore', 'click', function(item){ checkbox = Event.element(item); if (checkbox.checked == true) { checkbox.next('address1').value = $('hidden_address1').value; } } Together with the following html: <div class="some_div"> <a class="sameAsBefore">Same</a> <input class="ad...
doc_40089
example of the effect i'm trying to achieve. The image I'm trying to use is this one: Ribbon photo Here is the code for the form: #contactform1{text-align:center;margin-bottom:40px;color:#1a1a1a;} #contactform1 .sendmessagetext{padding-top:50px;text-transform:none;padding-bottom:35px;} #contactform1 form{width:75%;...
doc_40090
* *1 form on a page visible only to logged in users *1 database containing three columns ("username", "password" and "limit") I want to limit the times an user can submit a form based on the MySQL "limit" value and can't seem to find a solution. Also the "limit" value should be updated each time an user makes a n...
doc_40091
I have installed dotnet core sdk 3.0 preview and tried to create a blazor app using the command "dotnet new blazor" . --- below is the output of the command execution -- dotnet new blazor The template "Blazor (server-side)" was created successfully. Processing post-creation actions... Running 'dotnet restore' on ...
doc_40092
Function function-name { do things … $global:af_fp = $global:af_fp + $variableFromDo_things + "_AF.csv" } function-name | ConvertTo-CSV -NoTypeInformation | Add-Content -Path $($af_fp) Above is the generalized (and abbreviated) script contents for a powershell script. Every time I run the script in this way,...
doc_40093
So i gave up on it and now i'm trying to implement CCSlider, a paid slider (yes i bought it, so, no cracking :P), and now it's saying that the Object has no such method as ccslider. I'm kinda lost! Here are the call for the scripts and the function to activate the slider: <link type="text/css" rel="stylesheet" href="<?...
doc_40094
So my first .h file is emp.h: #include<iostream> class Employee { private: std::string emp_Name,emp_ID,emp_Address; public: Employee(std::string name, std::string id, std::string address):emp_Name(name), emp_ID(id),emp_Address(address) { } void setempname(std::string name); void setempid(std::string...
doc_40095
apple, orange, "banana,cherry", peach I need the output as: apple orange banana,cherry peach I have tried using the regex as: ",(?=([^\"]*\"[^\"]*\")*[^\"]*$)", -1 ...in the split() method of Java, but I get the output as: apple, orange, "banana, cherry" peach A: This one should work, though regex is really somet...
doc_40096
Facebook Twitter,Facebook,Instagram,Youtube Facebook Facebook It fetches Facebook from each row and count no of times in the end. <?php $q = "select * FROM users"; $r = mysql_query($q); $total = mysql_num_rows($r); while($row = mysql_fetch_assoc($r)) { $fb= $row['social']; $dbreq = implode(',',explod...
doc_40097
Alter Table Table1 ALTER COLUMN T1 varchar(MAX); Alter Table Table1 ALTER COLUMN T2 varchar(MAX); Alter Table Table1 ALTER COLUMN T3 varchar(MAX); --Table2 does not have a column "R1" and is likely to give error Alter Table Table2 ALTER COLUMN R1 varchar(MAX); Alter Table Table2 ALTER COLUMN T1 varchar(MAX); Alter Ta...
doc_40098
I am then looking to add an OpenLayers 3 map to the views on these pages. I have copied the .css and .js files into the app/styles and app/scripts folders respectively and linked them in within the view. This works fine when it comes to using Grunt Serve, it calls in all the correct files. However, when it comes to u...
doc_40099
The problem I have with the default code is this: it sets the user identifier to their email address. If the identifier is going to be used publicly on the website (e.g. to identify commentators on a page / blog) then you need something which the user won't mind being displayed to identify them. Ideally, I want the web...