query_id
stringlengths
4
64
query_authorID
stringlengths
6
40
query_text
stringlengths
66
72.1k
candidate_id
stringlengths
5
64
candidate_authorID
stringlengths
6
40
candidate_text
stringlengths
9
101k
34507c75a340728e12f42801c5117e5d0ae2e704e8d2420567d4ed46479c4bc2
['cb1812fce70c4dd394375a2e859f2dca']
It should look like this: <a href="images/Resume.jpg" download="Resume.doc">Resume</a> You are missing the location. Unless the name of the file you are trying to download is just "Resume" and is in the same location as the page this is being displayed. FYI, this is a HTML5 feature and is not supported by IE and Safari. Source: W3Schools
9bf3c75ce6f075651a087efb4fc5cc2ee2a6319943afb0dfc2a508a58302bbfb
['cb1812fce70c4dd394375a2e859f2dca']
This is due to an encoding error. It's a invisible character that is on the end of your url within the code that is creating the "%E2%80%8E" to appear. Ensure that "http://www.theawesomecleaners.com/dfw-cleaners" is pasted into your html from some plain text location, such as this very post. This happens when using things such as MS Word or WordPad.
b20ef657237e7324c973fa28a2033d5769bb626d488b5cb5ab5180b2e2fbed20
['cb1c6f631512458d92399de683993741']
I have a closed network for security cameras. I want only for authorized cameras to be able to connect to the Network Switch. If the Switch supports 802.1x authentication, and so do the cameras, could I use a RADIUS Server to control access of these cameras to the network? What I want to achieve is that when a security camera that is not registered in the RADIUS Server connects to the Switch, it doesn't get access (the Switch port denies the connection), so it gets no access at all. Note that there's no users logging in at any point, just the cameras connecting to the Switch.
9cc5c5d963682895ad87169bae1d308588cf38d8cf6ca45ab6611f9fc895f189
['cb1c6f631512458d92399de683993741']
@DarkMoon The thing is that there's no Active Directory nor there are computers in this network. I only have a Windows Server 2012 R2 with RADIUS Server features installed. The other network components are the Switch(es) and the Security Cameras, and that's it. Can I still use RADIUS to permit access to the cameras connecting to the Switch(es)?
61121ca16015b69534d19688ea2f04f155c325cfcae42962d78f18a6020b302a
['cb22fd656e6b4f83801094cd990051ab']
I am trying to fetch data from three different tables. Namely customer,orders and invoice. This query Runs Absolutely Fine in SQL Query analyzer SELECT invoice.invoiceId, customer.customerName, customer.businessName,customer.mobileNumber,invoice.remaining, invoice.total FROM customer INNER JOIN invoice ON customer.customerId = invoice.customerId INNER JOIN orders ON customer.customerId = orders.customerId where invoice.remaining > 1 AND customer.clientCode IS NULL and orders.[dateTime] between '15/01/2016' and '17/01/2016'; But When I try to Execute this query for my Crystal Report it Returns to many Results multiple times. Please Help :( Here Is my code of C# using System; using System.Data; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Data.Sql; using System.Data.SqlClient; using CrystalDecisions.CrystalReports.Engine; using CrystalDecisions.ReportSource; using System.Collections; namespace WindowsFormsApplication2 { public partial class creditCustomers : Form { ReportDocument cryrpt5 = new ReportDocument(); public creditCustomers() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { SqlConnection con = new SqlConnection("Data Source=localhost;Initial Catalog=markcreations;Integrated Security=True"); con.Open(); SqlDataAdapter sda1 = new SqlDataAdapter("SELECT invoice.invoiceId, customer.customerName, customer.businessName,customer.mobileNumber,invoice.remaining, invoice.total FROM customer INNER JOIN invoice ON customer.customerId = invoice.customerId INNER JOIN orders ON customer.customerId = orders.customerId where invoice.remaining > 1 AND customer.clientCode IS NULL and orders.[dateTime] between '15/01/2016' and '17/01/2016'", con); DataSet dst = new DataSet(); sda1.Fill(dst, "invoice"); cryrpt5.Load(@"I:\My First Software\WindowsFormsApplication2\WindowsFormsApplication2\CrystalReport5.rpt"); cryrpt5.SetDataSource(dst); crystalReportViewer1.ReportSource = cryrpt5; } } }
04e7b0f50784d4c182b3136ba0ef321d7d1c448fcf52c82a0540275279faf22a
['cb22fd656e6b4f83801094cd990051ab']
Open your crystal Report in C# or VB whatever you are using Then Go to Field Explorer and Right Click on Database Fields Like And Select Set Datasources Location... A new Window will open... Expand the properties. Then Find the integrated Security It will Be False by default Change it to True Like
bcd0500089e30555c794523f64b0a51c526687e9e9934e8df6daccbba1ee5879
['cb28054f5a144e67adb2926d8ea7b888']
I'm trying to find the derivative of $\sin^{-1}(x)$. I know the steps that lead to $\frac{1}{\sqrt{1-x^2}}$, however I don't understand why the following reasoning leads to a wrong answer. Because $$\frac{d}{dx}f^{-1}(x) = \frac{1}{f'(f^{-1}(x))} $$ If we plug in for $f(x) = \sin(x)$, and because $\frac{d}{dx}\sin(x) = \cos(x)$ we get $$\frac{d}{dx}\sin^{-1}(x) = \frac{1}{\cos(\sin^{-1}(x))} $$ Since $\sin(x) = \cos(x-\frac{\pi}{2})$, we can state that $\sin^{-1}(x) = \cos^{-1}(x-\frac{\pi}{2})$. (I suspect this is what is wrong) Thus, $$\frac{d}{dx}\sin^{-1}(x) = \frac{1}{\cos(\cos^{-1}(x-\frac{\pi}{2}))}$$ Then, by the definition of inverse function, we have $$\frac{d}{dx}\sin^{-1}(x) = \frac{1}{x - \frac{\pi}{2}}$$
14bdaade2209380ec12f365370d7737b39f07589c96883cc9df2d51f8cf22220
['cb28054f5a144e67adb2926d8ea7b888']
The definition of $\vartheta$ is on the Wikipedia page. I can't understand how this function is well defined when we could very well have a vector $c$ that is orthogonal to some $u_i$. Is it implied that the minimum is over all vectors $c$ with $c$ not orthogonal to every $u_i$?
875f345a6ae8d873c87ee662d773cd5cb1f30133ded139d91d65158f5ef19b48
['cb33bb14b0a74901a3fa90a90a7ba5d3']
Observation: 1) When an app starts ondevice ready event fires, then user kills the app. if user clicks on a apps link , the plugin opens the app properly and goes to the respective page.(Here onDevice ready will trigger and the deeplink observable serves the incomming deeplink). 2) Afte step 1 When the app is switched , on pause triggers , now user clicks on an app link from gmail , here plugin opens the app , and the "onResume" event is called . Question: Will the same ondeviceready .subscribe() will serve the same scenario ?? In my case it doesn't happen . And it never works on all subsequent pause/resume(flip app and comeback to app again). To handle this I have added the same call on onResume block : $cordovaDeeplinks.route({ '#/home/xyz': { target: 'xyz', parent: 'home' } }).subscribe( function(match) { }, function (nomatch) { //Since my url doesn't match, i am handling the navigation on nomatch. var loc = nomatch.$link.fragment; $rootScope.$apply(function() { $location.path(loc); }); } ); So to summarize i have deeplink route logic both in ondeviceready and onresume call. And it worked for all the scenario , except : The on the first onresume call , if the ondeviceready deeplink is consumed already. 1) an app starts, ondevice ready event fires, then user kills the app. 2) user clicked a link from Gmail and app opened. 3) Now switch the app and click the link again - failed----(this is the only case where it fails) 4) Repeat the step-3 -passed - Worked fine 5) Repeat the step-3 - passed - Worked fine Debugging further , following is finding : On device ready : The observer on my app , is called before the deeplink object is created on plugin On Resume : The observer on my app is called after the deeplink object is created on plugin . To fix this , now i have changed my ondevice ready code as below and removed the deeplink code from onresume. //outside onready function subscribe_deeplink(){ $cordovaDeeplinks.route({ '#/home/xyz': { target: 'xyz', parent: 'home' } }).subscribe( function(match) { }, function (nomatch) { $rootScope.isNavigated = true; var loc = nomatch.$link.fragment; subscribe_deeplink(); $rootScope.$apply(function() { $location.path(loc); }); } ); } //inside onready $cordovaDeeplinks.route({ '#/home/xyz': { target: 'xyz', parent: 'home' } }).subscribe( function(match) { }, function (nomatch) { $rootScope.isNavigated = true; var loc = nomatch.$link.fragment; subscribe_deeplink(); $rootScope.$apply(function() { $location.path(loc); }); } ); Now the deeplink works for my app on all the scenarios.. I want to know few things: 1) Is it a suggested way to go on above way ???? 2) Why onresume scenarios are not discussed on deeplink plugin. How you handle on resume scenarios. Am i missing something on the impplementation
be94e94555d616d871d8430884471872e2de16ac70b04fb4a22ca814abbb5e30
['cb33bb14b0a74901a3fa90a90a7ba5d3']
The issue was in the directive...The D3 code was configured as following: d3.select('div.panel-body')...This instructs D3 to find the first element that matches that description and use it in both instances......Now the directive's LINK property is being configured to use an anonymous function that contains an element param which is the actual weekly-user-report html element...SO if we need to select that element as such: var el = element[0] var chart = d3.select(el) angular.module('myApp', []) .controller('weeklyData',function($scope){ $scope.weeklyData=[{"week":66,"count":0},{"week":67,"count":0},{"week":68,"count":0},{"week":69,"count":0},{"week":70,"count":0},{"week":71,"count":0}]; function getDateOfISOWeek(w, y) { var simple = new Date(y, 0, 1 + (w - 1) * 7); var dow = simple.getDay(); var ISOweekStart = simple; if (dow <= 4) ISOweekStart.setDate(simple.getDate() - simple.getDay() + 1); else ISOweekStart.setDate(simple.getDate() + 8 - simple.getDay()); return ISOweekStart; } $scope.weeklyData2=[]; for(var i=0;i<$scope.weeklyData.length;i++){ console.log($scope.weeklyData[i].week); var weekStart=getDateOfISOWeek($scope.weeklyData[i].week,2015); $scope.weeklyData2.push({"date":weekStart,"usage":Math.floor(Math.random() * (2)) }); } console.log($scope.weeklyData2); }) .controller('monthlyDataReport',function($scope){ console.log("inside controller"); $scope.monthlyData=[{"month":15,"count":0},{"month":16,"count":0},{"month":17,"count":0}]; $scope.monthlyData2=[]; for(var i=0;i< $scope.monthlyData.length;i++){ console.log("inside for loop"); if($scope.monthlyData[i].month < 12){ console.log("inside if"); var date = new Date(2015,$scope.monthlyData[i].month ,1); var firstDate = date.toISOString(); $scope.monthlyData2.push({"date":firstDate,"usage":Math.floor(Math.random() * (2)) }); } else{ console.log("inside else"); var monthOfTheYear = ($scope.monthlyData[i].month)%12; var dateCalculated = new Date(2016,monthOfTheYear,1); var firstDateCalc =dateCalculated.toISOString(); $scope.monthlyData2.push({"date":firstDateCalc,"usage":Math.floor(Math.random() * (2)) }); } } }) .directive('weeklyUserReport', function () { var directiveDefinitionObject = { restrict: 'E', replace: false, scope: {data: '=data'}, link: function (scope, element, attrs) { scope.$watch('data',function(data) { if (data) { var parseDate = d3.time.format("%Y%m%d").parse; var generateData = function (data) { var newData = []; data.forEach(function (d) { var newDataPoint; if (d.date) { newDataPoint = { date: d.date, usage: d.usage }; newData.push(newDataPoint); } }); return newData; }; var data = generateData(scope.data); var margin = { top: 20, right: 20, bottom: 20, left: 45 }; var width = 400 - margin.left - margin.right; var height = 150 - margin.top - margin.bottom; var x = d3.time.scale() .domain(d3.extent(data, function (d) { return d.date; })) .range([0, width]); var y = d3.scale.linear() .domain(d3.extent(data, function (d) { return d.usage; })) .range([height, 0]); var line = d3.svg.line() .x(function (d) { return x(d.date); }) .y(function (d) { return y(d.usage); }); var area = d3.svg.area() .x(function (d) { return x(d.date); }) .y0(height) .y1(function (d) { return y(d.usage); }); var zoom = d3.behavior.zoom() .x(x) .y(y) .on("zoom", zoomed); var el=element[0]; var chart = d3.select(el) .append("svg") .attr('width', width + margin.left + margin.right) .attr('height', height + margin.top + margin.bottom) .append("g") .attr("transform", "translate(" + margin.left + "," + margin.top + ")") .call(responsivefy) .call(zoom); var make_x_axis = function () { return d3.svg.axis() .scale(x) .orient("bottom") .ticks(5); }; var make_y_axis = function () { return d3.svg.axis() .scale(y) .orient("left") .ticks(5); }; var xAxis = d3.svg.axis() .scale(x) .orient("bottom") .ticks(5); chart.append("svg:g") .attr("class", "x axis") .attr("transform", "translate(0, " + height + ")") .call(xAxis); var yAxis = d3.svg.axis() .scale(y) .orient("left") .ticks(5); chart.append("g") .attr("class", "y axis") .call(yAxis); chart.append("g") .attr("class", "x grid") .attr("transform", "translate(0," + height + ")") .call(make_x_axis() .tickSize(-height, 0, 0) .tickFormat("")); chart.append("g") .attr("class", "y grid") .call(make_y_axis() .tickSize(-width, 0, 0) .tickFormat("")); chart.append("path") .datum(data) .attr("class", "area") .attr("d", area); chart.append("g") .attr("class", "points") .selectAll(".point") .data(data) .enter().append("circle") .attr("class", "point") .attr("cx", function (d) { return x(d.date) }) .attr("cy", function (d) { return y(d.usage) }) .attr("r", 3) } function zoomed() { console.log(d3.event.translate); console.log(d3.event.scale); chart.select(".x.axis").call(xAxis); chart.select(".y.axis").call(yAxis); chart.select(".x.grid") .call(make_x_axis() .tickSize(-height, 0, 0) .tickFormat("")); chart.select(".y.grid") .call(make_y_axis() .tickSize(-width, 0, 0) .tickFormat("")); chart.select(".area") .attr("class", "area") .attr("d", area); } function responsivefy(svg) { // get container + svg aspect ratio var container = d3.select(svg.node().parentNode), width = parseInt(svg.style("width")), height = parseInt(svg.style("height")), aspect = width / height; // add viewBox and preserveAspectRatio properties, // and call resize so that svg resizes on inital page load svg.attr("viewBox", "0 0 " + width + " " + height) .attr("perserveAspectRatio", "xMinYMid") .call(resize); // to register multiple listeners for same event type, // you need to add namespace, i.e., 'click.foo' // necessary if you call invoke this function for multiple svgs // api docs: https://github.com/mbostock/d3/wiki/Selections#on d3.select(window).on("resize." + container.attr("id"), resize); // get width of container and resize svg to fit it function resize() { var targetWidth = parseInt(container.style("width")); svg.attr("width", targetWidth); svg.attr("height", Math.round(targetWidth / aspect)); } }; }) } }; return directiveDefinitionObject; }) /* Styles go here */ body { font: 10px sans-serif; } .plot { fill: rgba(250, 250, 255, 0.6); } .grid .tick { stroke: lightgrey; opacity: 0.7; } .grid path { stroke-width: 0; } .axis path, .axis line { fill: none; stroke: #000; shape-rendering: crispEdges; } .x.axis path { display: none; } .line { fill: none; stroke: steelblue; stroke-width: 1.5px; } .axis path { fill: transparent; stroke: black; } .axis.y .tick line { stroke: #e2e1e6; } .axis.y .tick:first-child line { stroke: black; } .area { fill: rgba(52, 151, 219, 0.4); } .points .point:first-child { fill: transparent; } .point { fill: #3497db; stroke: transparent; } svg { background-color: #f5f5f5; display: block; margin: 1em auto; } .buttons a { font-size: 16px; } .buttons a:hover { cursor:pointer; font-size: 16px; } <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.4.10/d3.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <html> <head> <script data-require="angular.js@2.0.0" data-semver="2.0.0" src="https://code.angularjs.org/2.0.0-beta.6/angular2.min.js"></script> <link rel="stylesheet" href="style.css" type="text/css" /> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" type="text/css" /> </head> <body> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.11.2/locale/en-gb.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/angular-moment/0.10.3/angular-moment.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3.min.js"></script> <script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> <script src="report.js"></script> <div ng-app="myApp"> <div class="panel panel-default"> <div class="panel-heading">Monthly User Report</div> <div class="panel-body" ng-controller="monthlyDataReport"> <weekly-user-report data="monthlyData2"></weekly-user-report> </div> </div> <div class="panel panel-default"> <div class="panel-heading">WeeklyUserReport</div> <div class="panel-body" ng-controller="weeklyData"> <weekly-user-report data="weeklyData2"></weekly-user-report> </div> </div> </div> </body> </html>
2d6c4b3eac02202bce88fb263af9b2a2973bfb69c7875f4cccdde9f3503324ac
['cb348060d74344499345e1f8fd34dd43']
you can try GemBox.Document component to export Word document from ASP.NET application, if that is what you are trying to do. Here is a sample C# code that should go in ASPX page code behind: // Create a new empty document. DocumentModel document = new DocumentModel(); // Add document content. document.Sections.Add(new Section(document, new Paragraph(document, "Hello World!"))); // Microsoft Packaging API cannot write directly to Response.OutputStream. // Therefore we use temporary MemoryStream. using (MemoryStream documentStream = new MemoryStream()) { document.Save(documentStream, SaveOptions.DocxDefault); // Stream file to browser. Response.Clear(); Response.ContentType = "application/vnd.openxmlformats"; Response.AddHeader("Content-Disposition", "attachment; filename=Document.docx"); documentStream.WriteTo(Response.OutputStream); Response.End(); }
e8179ef38ab074929fa21cec6e0917e2858d085130f3730c60b49b463d51e52e
['cb348060d74344499345e1f8fd34dd43']
I also asked this question on Sandcastle Codeplex Discussion - How to remove internal interfaces from class help page? Since I didn't get an adequate answer, I ended up creating a custom Sandcastle Help File Builder Plug-In that hooks into SHFB after reflection info is generated. It then opens reflection info file and removes the information about implementing internal interfaces from types that implement internal interfaces and saves modified reflection info file.
03ebb6ce4d5e65b33be55d2caf6eb023b3f3c29be6f898f575df8a2498868970
['cb34b39b635d4128b5c553e5a2cbb63b']
I have a page that is dynamically loaded and contains a button. I am trying to wait for the button to be available to be clicked with selenium using the C# bindings. I have the following code: WebDriverWait wait = new WebDriverWait(Driver.Instance, TimeSpan.FromSeconds(30)); wait.Until(ExpectedConditions.ElementToBeClickable(By.Id("addInspectionButton"))); var button = Driver.Instance.FindElement(By.Id("addInspectionButton")); button.Click(); this doesn't work though. The click event is never fired. The selenium script doesn't throw an exception alerting that the element with an ID of "addInspectionButton" doesn't exist. It just isn't able to click it. If i add a Thread.Sleep(3000) Between the wait statement and the line where I get a handle on the button element it works. Am i not using the ExpectedConditions.ElementToBeClickable correctly here?
042dad72a7d053dc1547a9d2b911442f68f1ab76b6cc9486d517b3f3f4f0c0f5
['cb34b39b635d4128b5c553e5a2cbb63b']
It turns out that an event was being bound to the button after the button was dynamically added to the page. So the button WAS being clicked but nothing was happening. The sleep thread being placed in the code was just giving the client side event time to be bound. My solution was to click the button, check for the expected result, and then repeat if the expected result wasn't in the DOM yet. Since the expected result was for a form to open I polled the DOM like this: button.Click();//click button to make form open var forms = Driver.Instance.FindElements(By.Id("inspectionDetailsForm"));//query the DOM for the form var times = 0;//keep tabs on how many times button has been clicked while(forms.Count < 1 && times < 100)//if the form hasn't loaded yet reclick the button and check for the form in the DOM, only try 100 times { button.Click();//reclick the button forms = Driver.Instance.FindElements(By.Id("inspectionDetailsForm"));//requery the DOM for the form times++;// keep track of times clicked }
ac59443458f80c020dca13eaac2e71af0dbf12d6271a004bcc4b981b8c0a6743
['cb38eb56d952479a9eab88f4df683540']
Some variations on the same trick of using the IFS variable. #!/bin/bash while read line; do set -- $line echo $(( ( $(IFS=+; echo "$*") ) / $# )) done < rows echo while read -a line; do echo $(( ( $(IFS=+; echo "${line[*]}") ) / ${#line[*]} )) done < rows echo saved_ifs="$IFS" while read -a line; do IFS=+ echo $(( ( ${line[*]} ) / ${#line[*]} )) IFS="$saved_ifs" done < rows
2f8c54c1827f5e38c9e6e625751729240c4c1f25747182b9c9f436b1fbad6362
['cb38eb56d952479a9eab88f4df683540']
Use defaultdict and set: #!/usr/bin/env python3 import io import collections from pprint import pprint fdata = """attr1 1,3,7,6,8,12,24,56 attr2 1,2,3 attr4 56,45,48,23,24,25,29,90,56,57,58,59 attr5 1,2,3,45,6,7,8,9,34,33 """ # with open('attrs.txt') as f: with io.StringIO(fdata) as f: d = collections.defaultdict(set) for line in f: name, keys = line.strip().split() for k in keys.split(','): d[int(k)].add(name) pprint(d)
e1d48ce0f9d31305ec6cf78696b170f751f09e06a59d32fe8d7f429a26f568b1
['cb39627fd50d4e87a11d9e333349d0d7']
There was many answer for this question but all are for windows. There had a same question for ubuntu but had no answer (Unable to open config file /usr/lib/ssl/openssl.cnf). When ran this command in my AWS ubuntu instance sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/example.com.key -out /etc/ssl/certs/example.com.crt It shows the error above. That error start showing after delete the /etc/ssl folder from my instance. Please help me if anyone have solution.
f366da7c115564722917b02a9a3a6076f82ca2ae9507c360e73b82386b721e4e
['cb39627fd50d4e87a11d9e333349d0d7']
Please help me to solve this problem.This angular code works locally but can not work in django template. I call this static files end of the body of base.html <script src="{% static "js/angular.min.js" %}"></script> <script src="{% static "js/restangular.min.js" %}"></script> <script src="{% static "js/angular-ui-router.min.js" %}"></script> This is contactlist.html <div id="contactlist" ng-app="newApp"> <div class="container" ng-controller="angCtrl"> <h1 class="text-center">Search contact for {{myModel}}</h1> <form> <div class="input-group"> <input type="text" class="form-control" ng-model="myModel" placeholder="Search Contact"> <div class="input-group-btn"> <button class="btn btn-default" type="submit"> <i class="fa fa-search"></i> </button> </div> </div> </form> <div class="all"> <table class="table table-hover text-center"> <thead> <tr> <th class="text-center">Id</th> <th class="text-center">Name</th> <th class="text-center">Contact Number</th> </tr> </thead> <tbody> <tr ng-repeat="contact in contactlist | filter:myModel | orderBy: 'name'"> <td>{{contact.id}}</td> <td>{{contact.name}}</td> <td>{{contact.contact}}</td> </tr> </tbody> </table> </div> </div> </div> This is app.js var app = angular.module('newApp', []); app.controller('angCtrl', function($scope) { $scope.name = ""; }); app.controller('angCtrl', function($scope) { $scope.contactlist = [ {id:'1',name:'raisul',contact:'<PHONE_NUMBER>'}, {id:'2',name:'Rafikul',contact:'<PHONE_NUMBER>'}, {id:'3',name:'Shariful',contact:'<PHONE_NUMBER>'}, {id:'4',name:'kamarul',contact:'<PHONE_NUMBER>'}, {id:'5',name:'Ashraful',contact:'<PHONE_NUMBER>'}, {id:'6',name:'Jamarul',contact:'<PHONE_NUMBER>'}, {id:'7',name:'Rahul',contact:'<PHONE_NUMBER>'}, {id:'8',name:'Rashidul',contact:'<PHONE_NUMBER>'}, ] }); It shows the table element but can not show any data
50f03b6e9d352671949be3a611871951e3c046ef250c45799f2d019db52d1e0e
['cb4c41357e7b45b3af185847de9dd0e2']
It is because even though the app is in foreground or even closed, when a didEnterRegion, didExitRegion (apparently didUpdateLocations as well) event occurs, the app gets 10 seconds. In those 10 seconds, the backgroundTimeRemaining value will show the same as in foreground. However, if you register for a background task, the backgroundTimeRemaining will show the real background time remaining after those 10 seconds have passed. In iOS, regions associated with your app are tracked at all times, including when the app isn’t running. If a region boundary is crossed while an app isn’t running, that app is relaunched into the background to handle the event. Similarly, if the app is suspended when the event occurs, it’s woken up and given a short amount of time (around 10 seconds) to handle the event. When necessary, an app can request more background execution time using the beginBackgroundTaskWithExpirationHandler: method of the UIApplication class. https://developer.apple.com/library/content/documentation/UserExperience/Conceptual/LocationAwarenessPG/RegionMonitoring/RegionMonitoring.html
15d8e64af6c60b1139dd4e63feab71abbfddfb6949eb05e42a434a0094b28c6a
['cb4c41357e7b45b3af185847de9dd0e2']
I am using silent notifications for the purpose of notifying my app when new content is available. With iOS 11.0 to iOS 11.1, the silent notifications rarely get delivered to the app on background. However, I would want to at least process the silent notifications when the app becomes active again. I did not find a way to get a list of the silent notifications. I have tried: let center = UNUserNotificationCenter.current() center.getPendingNotificationRequests(completionHandler: { (notifications) in notifications.forEach({ (notification) in print(notification) }) }) center.getDeliveredNotifications { (notifications) in notifications.forEach({ (notification) in print(notification) }) } I know that the notifications are received by the phone because I have checked the device logs. However, they do not seem to be forwarded to the app even when it becomes active. Is there a way to access them?
ab3ca8347bd9f73ae05dc3c9b4a44f5e4b54185840c1602814370b9ee657928f
['cb4d825490d943859f70bd8704a39b24']
Thx man. In the mean time i found out that i can referenc job_id druing the creation of the job. "When the job definition references these job parameters in its own parameter list, their values are assigned to the parameters in the job definition when the job executes. For example, suppose that a procedure called proc1 has the following specification: PROCEDURE proc1 (my_job_number IN INTEGER); Suppose also that we submit proc1 to be executed by the job queue as follows: DECLARE jobno INTEGER; BEGIN DBMS_JOB.SUBMIT(jobno,`proc1(my_job_number=>job);'); END; / When proc1 is executed by the queue, the my_job_number parameter is assigned the job's job number, and thus proc1 will "know" what job number it is." And here is the link http://docstore.mik.ua/orelly/oracle/bipack/ch13_01.htm if someone also will be nedded Thanks once again
67f767a51bc258456908b67b71e5d02c5b9c23f1932f12c8eeba65796556a64f
['cb4d825490d943859f70bd8704a39b24']
I have job procedure which do dequeuing from advanced queue, one message at a time.When queue is empty exception should be raised and i want in exception section to remove that job, but i dont know how to referenc jobnum of that particular job.I hope someone can help me.
dc8747edf964569ca74530b43637a9bcc9c5a300cc7c3bf1e9922ed5f622c468
['cb54f0db6b1846ebb4cddcea5de66482']
I am using a simple method decorator to disable logging only in a particular test method. def disable_logging(f): def wrapper(*args): logging.disable(logging.CRITICAL) result = f(*args) logging.disable(logging.NOTSET) return result return wrapper And then I use it as in the following example: class ScenarioTestCase(TestCase): @disable_logging test_scenario(self): pass
e91082c191173dfe6eb6ac1ab431b0795e5aff3d65460ca6e317aaa5fb73a07a
['cb54f0db6b1846ebb4cddcea5de66482']
I'm trying to make a data approximation for quakes dataset, stations column. I'm following an example in the maxLik library documentation https://cran.r-project.org/web/packages/maxLik/maxLik.pdf library(maxLik) set.seed(1) attach(quakes) ## log likelihood function. ## Note: param is a vector llf <- function( param ) { mu <- param[ 1 ] sigma <- param[ 2 ] llValue <- dnorm(stations, mean=mu, sd=sigma, log=TRUE) return(sum(llValue)) } ## Estimate it. Take standard normal as start values ml <- maxLik( llf, start = c(mu=0, sigma=1) ) I'm getting In dnorm(stations, mean = mu, sd = sigma, log = TRUE) : NaNs produced warning. This happens because sum(llValue) returns negative values. As a result, the approximation is very bad. If I change the code to return(abs(sum(llValue))) the warning disappear and the ​approximation is a bit closer, but still very bad. What I'm doing wrong? How to make an approximation for quakes$stations data?
037fe6378418646e4884d93516d15721944b30f03bd578e83f102afc9cbce805
['cb583aaad747420fadd54fe326ae0e72']
As per Swift 3.0, we have to functions sorted() and sorted(by:), where sorted() will return array of values from ascending order and in sorted(by:) you can make it ascending or descending. let array = [[1,2],[3,4],[5],[6,7],[8,9]] print(array.flatMap{$0}.sorted()) print(array.flatMap{$0}.sorted(by: {$0>$1})) output : [1, 2, 3, 4, 5, 6, 7, 8, 9] [9, 8, 7, 6, 5, 4, 3, 2, 1]
c30dc65ed61a2520a4c04dee874a4c42d72f3e28e5a155edba228f1836176dde
['cb583aaad747420fadd54fe326ae0e72']
I also faced same problem in AFNetworking, as instead of using - (NSURLSessionDataTask *)POST:(NSString *)URLString parameters:(id)parameters progress:(void (^)(NSProgress * _Nonnull))uploadProgress success:(void (^)(NSURLSessionDataTask * _Nonnull, id _Nullable))success failure:(void (^)(NSURLSessionDataTask * _Nullable, NSError * _Nonnull))failure Please try to use that one :- - (NSURLSessionDataTask *)POST:(NSString *)URLString parameters:(id)parameters constructingBodyWithBlock:(void (^)(id <AFMultipartFormData> formData))block progress:(nullable void (^)(NSProgress * _Nonnull))uploadProgress success:(void (^)(NSURLSessionDataTask *task, id responseObject))success failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure thanks,
d63cefc46495a446385769a751deef11408040b5b7314995c5811f580cf2a3e0
['cb612e4231354c409dd3a45965c1316b']
You should look into making some kind of class to abstract this all, so that your "Profile" could extend it, and all that functionality you've written would already be in place. You might be interested in a readymade solution - these are called object relational mappers. You should check out PHP ActiveRecord, which should easily allow you to do something like this without writing ORM code yourself. Other similar libraries include Doctrine and Outlet.
e267476356c2c0c1213eb49e595541359e77db2494e91aeea2b5040224fb347f
['cb612e4231354c409dd3a45965c1316b']
I'm using the Django manage.py runserver for developing my application (obviously), but it takes 10 seconds to completely load a page because the development server is very, very slow at serving static media. Is there any way to speed it up or some kind of workaround? I'm using Windows 7.
d80882c9f7bbf2b12f150f290717f55cd43369339cb1ada8fc1bbc0dd7d375f9
['cb70c3060c7b46e18ce8eaf47980b56e']
In my 3 layer maven application (enterprise application archetype with an extra module for domain-related classes) I'd like to keep the domain module as clean as possible. My persistence.xml, for example, is in the ejb module. Following that train of thought, I'd like to generate the JPA static metamodel classes also on the EJB module, even though the entities are not there, but I can't make it work. Is it possible to do that kind of setup? I'm using eclipselink, btw.
0cab182031ecfb74e32e20f796f0e32fdf4a6eac65e5407299dd8a5642daf6ff
['cb70c3060c7b46e18ce8eaf47980b56e']
I have a p:dataTable with p:contextMenu and some p:menuitems. One of these menu items should pass on an id to another view which is read like pointed out here. The thing is the converter throws the required message like the id wasn't sent - and it seems like it truly isn't. I think I'm missing something basic, but I really couldn't figure it out. Here's the code: The source view <h:form id="formTabela"> <p:fieldset> <p:dataTable id="sistemas" selection="#{sistemaMb.sistemaSelecionado}"> (...) </p:dataTable> </p:fieldset> <p:contextMenu for="sistemas"> <p:menuitem value="Gerenciar módulos" icon="ui-icon-search" action="modulos?faces-redirect=true&amp;includeViewParams=true" ajax="false"> <f:param name="id" value="#{sistemaMb.sistemaSelecionado.id}"/> </p:menuitem> (More items...) </p:contextMenu> (Some dialogs...) </h:form> Target view (modulos) <!-- This is on body: --> <ui:define name="metadata"> <f:metadata> <f:viewParam name="id" value="#{moduloMb.sistema}" converterMessage="foo" required="true" requiredMessage="bar"/> <f:event type="preRenderView" listener="#{moduloMb.init()}" /> </f:metadata> </ui:define> Target view managed bean @ManagedBean @ViewScoped public class ModuloMb implements Serializable { private Sistema sistema; @PostConstruct public void init() { if (!Faces.isPostback() && !Faces.isValidationFailed()) { // business stuff, but "sistema" is always null. } } public Sistema getSistema() { return sistema; } public void setSistema(Sistema sistema) { this.sistema = sistema; } (...) } The converter @FacesConverter(forClass = Sistema.class) public class SistemaConverter implements Converter { private final SistemaService sistemaService = lookup(SistemaService.class); @Override public Object getAsObject(FacesContext context, UIComponent component, String value) { if (value == null || !value.matches("\\d+")) { return null; } Optional<Sistema> optSistema = sistemaService.find(Short.valueOf(value)); if (!optSistema.isPresent()) throw new ConverterException( new FacesMessage("Id de sistema inválido " + value)); return optSistema.get(); } @Override public String getAsString(FacesContext context, UIComponent component, Object value) { if (!(value instanceof Sistema) || ((Sistema) value).getId() != null) { return null; } return ((Sistema) value).getId().toString(); } }
33d6416b53c103b309c0eca0647f4b995b128791d56cc8dcda5186fa9193cd03
['cb7c0e00a27b4fa4ba43b13b3d71b1fe']
I would like to automate the following process through Excel VBA: 1. Open Putty particular path 2. Login with Credentials 3. Navigate to a path in the server. ( cd /folder1/folder2) I am able to to do 1 & 2. As I am new to VBA , I am not aware as to hw to achieve the 3rd .
fb5713613483759579bd210e6704b2a3e8d079927d83fb77290561604173416c
['cb7c0e00a27b4fa4ba43b13b3d71b1fe']
I am getting a Invalid Protocol : null error when I run my postman collection via Newman. Steps I have followed Installed node js Configured npm registry using npm config set registry Configured npm proxy using npm config set proxy 4.installed Newman using npm install -g Newman Tried to run a postman collection using newman run In the result I am getting an error saying Invalid Protocol : null
836cc7e4d91972c3f6221265d0e618aa29540acbf33548accf6bbdb3642f7032
['cb8e57d837ea42a39bd7718ae5b9d4e5']
I'm stuck in this exercise from Mathematical Logic, Ebbinghaus and would appreciate some help. A set M of natural numbers is called a spectrum if there is a symbol set S and an S-sentence $\phi$ such that M= {$n\in \mathbb{N} $| $\phi$ has a model cointaining exactly n elements}. Show: (a) Every finite subset of {1,2,3...} is a spectrum. (b) For every $m \geq 1$, the set of numbers $ > 0$ which are divisible by m is a spectrum. I believe that some sentence with equality only would suit for part (a). However, I'm having some trouble to formalize an answer. Thank you.
3822bbab5ae78e1754d4c04e96bc5dcb1705fd14e591248ced1c6084cbecd5e8
['cb8e57d837ea42a39bd7718ae5b9d4e5']
<PERSON>, this was the first solution that I thought of. However, it does seem pointless, so I got a little insecure with this answer. This is everything that the problem says, it's a homework list covering chapters 3 and 4 from <PERSON>' book. Anyway, that must be the answer, thank you for your attention.
b124c38faa95a96f5d4591a6b00687747f2a4ede6a6f80fc93693c64d6b4b5fa
['cb970f4559874c5cae294ec11c6f0c87']
Maybe this? public class Geojson { public string type { get; set; } public List<List<List<double>>> coordinates { get; set; } } public class RootObject { public int place_id { get; set; } public string licence { get; set; } public string osm_type { get; set; } public int osm_id { get; set; } public List<string> boundingbox { get; set; } public string lat { get; set; } public string lon { get; set; } public string display_name { get; set; } public string @class { get; set; } public string type { get; set; } public double importance { get; set; } public string icon { get; set; } public Geojson geojson { get; set; } } I used this tool to do it http://json2csharp.com/
795ac38c343ec615039022de00eadf0103d413d554bd7e9610911b1e1562953c
['cb970f4559874c5cae294ec11c6f0c87']
I'm using default ASP.NET Core DI-container My hierarchy: interface IRepo<T> where T : Entity; - (CRUD) interface ICarRepo : IRepo<Car>; - (CRUD + more specific actions) class CarRepo : ICarRepo; - impl Startup.cs service.addtransient<ICarRepo, CarRepo>(); So sometimes I can directly ask IoC-container for ICarRepo and get it. But how should I register my dependencies if I wanna get CarRepo by asking for IRepo<Car> ? I know that way: service.addtransient<ICarRepo, CarRepo>(); service.addtransient<IRepo<Car>, CarRepo>(); but it doesn't look like optimal way
e0acb4144d97741422d5294de3420c7e42273d5e73bacce42bbb62b385c2e9f9
['cba3f1f72d0d4b18b5bf617f9c2b18d7']
I am using amcharts in the React Hooks environment. I'm using force-directed-tree. https://www.amcharts.com/demos/force-directed-tree/ The data applied to the chart is filtered based on high values and then reapplying. Every time the data is reapply, the chart is rendered and the animation continues to be applied. How to remove animation when loading charts Or we would appreciate it if you could tell us how to apply the scrollbar provided by amcharts to this chart. useEffect(() => { const chart = am4core.create('networkChart', am4plugins_forceDirected.ForceDirectedTree); const networkSeries = chart.series.push(new am4plugins_forceDirected.ForceDirectedSeries()); chart.data = data; chart.dataSource.updateCurrentData = true; chart.animationPlayed = true; chart.dataSource.reloadFrequency = 1000; networkSeries.dataFields.id = 'name'; networkSeries.dataFields.value = 'value'; networkSeries.dataFields.name = 'name'; networkSeries.dataFields.children = 'children'; networkSeries.nodes.template.tooltipText = '{name}:{value}'; networkSeries.nodes.template.fillOpacity = 1; networkSeries.manyBodyStrength = -20; networkSeries.links.template.strength = 0.8; networkSeries.links.template.distance = 1; networkSeries.minRadius = am4core.percent(3); networkSeries.maxRadius = am4core.percent(10); networkSeries.nodes.template.label.text = '{name}'; networkSeries.fontSize = 12; networkSeries.maxLevels = 4; networkSeries.events.disableType('inited', function() { networkSeries.animate( { property: 'velocityDecay', to: 1, }, 3000, ); }); // Add Legend chart.legend = new am4charts.Legend(); chart.legend.labels.template.fill = am4core.color('#fff'); }, [data]);
8bbe04bb25a4a7f702c8cca4a7e73cf02c1bb25f8050b7d4433ce0be8d68ad24
['cba3f1f72d0d4b18b5bf617f9c2b18d7']
TypeError: lists.map is not a function 1.I'm using React to make a TodoList. It works until you add a list, An error occurred when adding the delete feature when the button is clicked 2.Is it a problem to use use useContext to separate lists from other files? I'm sorry for the awkwardness of the question. Thank you for your help in solving this problem. TodoList.jsx import React, { useContext} from 'react'; import Todo from './Todo'; import { ListContext } from './ListContext'; const TodoList = () => { const [lists, setLists] = useContext(ListContext); return ( <div> {lists.map((list, index) => { return <Todo list={list.todos} key={index}/> })} </div> ); } export default TodoList; Btn.jsx import React, {useContext} from 'react'; import { ListContext } from './ListContext'; const Btn = (id) => { const [lists, setLists] = useContext(ListContext); const onRemove = (id) => { setLists({ lists: lists.filter(list => list.id !== id) }); } return( <> <button onClick={(e) => { e.stopPropagation(); onRemove(id); }}>x</button> </> ); `enter code here` } export default Btn; ListContext.jsx import React, {useState, createContext,} from 'react'; export const ListContext = createContext(); export const ListProvider = (props) => { const [lists, setLists] = useState([ { todos: 'Make a TodoList', id: 1, }, ]); return( <ListContext.Provider value={[lists, setLists]}> {props.children} </ListContext.Provider> ); } TypeError: lists.map is not a function TodoList C:/Users/user/Desktop/Work/VSC-workspace/React/todolist/src/component/TodoList.jsx:11 8 | const [lists, setLists] = useContext(ListContext); 9 | 10 | return ( 11 | `enter code here | ^ 12 | {lists.map((list, index) => { 13 | return 14 | })}
d395c1cf2ce4130beade09726f6a90c7a38e919446341617d99ef04c8203f482
['cbaffac109c74040a697ec0c785effd2']
I am new to javascript. I have two documents--an old and a new--that I am comparing. However, I am getting a syntax error somewhere in the code below. Somewhere in here, my code is blowing up. The error says "expression does not eval to a function." Any syntactic ideas of where I'm writing an incorrect statement? if(userCtx.name != oldDoc.Document.attributeA) { for (var key in oldDoc.Document) { if(newdoc.Document.hasOwnProperty('key') { if(oldDoc.Document[key] != newDoc.Document[key]) { if(key === 'attributeB') { return; } else { throw(forbidden: 'Only admins may change this field.') } } } } }
711a409bda847b25ad8654255777b41d460824dd772dd5d9a1627bfd6eca8248
['cbaffac109c74040a697ec0c785effd2']
I am using Windows authentication on a website but want to have levels of access. Currently, I am using the [Authorize(Users = "userA")] syntax. However, with upwards of twenty Windows accounts accessing a site, I don't want to have to hard-code in twenty users with each Authorize statement. What's more, some of the users need to have different access than others. I thought of having a list of users that a CustomAuthorizationAttribute iterates through to see if the desired user is among them. Basically, I'm trying to get roles without using Forms authentication. What is the most effective, most simple way of doing this?
a1fe2f2d33d2e2491c20a852040a60c6b6221eb607c3d34da334d2775c31d970
['cbb21b947b11420fb9cdccaacdc74cb3']
The problem is not the module. The css should be available to every page in your theme. Make sure that your CSS file is mentioned in YOURTEMPLATE.info file (YOURTEMPLATE is the name of your template). It should look like that: stylesheets[all][] = YOURCSS.css If your css file is in YOURTEMPLATE.info, try to clear drupal cache, go to admin/settings/performance and clear cache.
efafab72f4dccc481c138ebc7976a786b89f05ff0e116a9ab0adac44e2f02e62
['cbb21b947b11420fb9cdccaacdc74cb3']
It is simple Facebook social plugin called Like Box and you can get it here: http://developers.facebook.com/plugins?footer=1 You can install it on any webpage quite easily - If you follow the instructions on the page linked above. About the slider - It can be achieved quite easily with jQuery. Put the Like Box on some div and use jQuery animate to show it by click.
f21f5b3b47f65e01b7db27011dc24424dd8d5f56a4e7da4b05a9c5555f237709
['cbb8b11af38940318cee74cab22588c9']
I was trying out an example from a book to confirm how JavaScript event loop works, here is the code const <PERSON> = () => console.log("baz"); const <PERSON> = () => console.log("bar"); const <PERSON> = () => { console.log("foo"); setTimeout(bar, 0); baz(); } foo(); It is straightforward how setTimeout works here (executed out of order) output is foo baz bar What I don't understand is the order when I added one line const <PERSON> = () => console.log("baz"); const <PERSON> = () => console.log("bar"); const <PERSON> = () => { console.log("foo"); setTimeout(bar, 0); baz(); } setTimeout(baz, 0); // this somehow runs before foo() is finished foo(); Output is foo baz baz bar How come the second setTimeout rins before foo() is done?
1ef0d304be353ba58a1175d4b0e5270c17f02df2ab0167a368850fe72e2c2e87
['cbb8b11af38940318cee74cab22588c9']
I'm trying to do a simple test of npm update here is my package.json { "name": "nodetest3", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "", "license": "ISC", "dependencies": { "chalk": "^0.1.0" } } I can see chalk versions npm view chalk versions [ '0.1.0', '0.1.1', '0.2.0', '0.2.1', '0.3.0', '0.4.0', '0.5.0', '0.5.1', '1.0.0', '1.1.0', '1.1.1', '1.1.2', '1.1.3', '2.0.0', '2.0.1', '2.1.0', '2.2.0', '2.2.2', '2.3.0', '2.3.1', '2.3.2', '2.4.0', '2.4.1', '2.4.2', '3.0.0-beta.1', '3.0.0-beta.2', '3.0.0', '4.0.0', '4.1.0' ] At this point when I run npm update I should get a package version of chalk 0.5.1 because I used ^ in the dependencies, at least that is according to the manual(if I use ~ updates to the latest patch if I use ^ updates to the latest minor version), but I get version 0.1.1 which is wrong. What I don't understand is when I change the dependency to "^2.0.0" or "^1.0.0" and run npm update chalk or npm update chalk is updated to the correct version 2.4.2 or 1.1.3. Is there a way to update all of your packages at the same time with npm update to the correct version set in dependencies or this is just a bug or maybe something related to chalk specifically?
ee8cd78494959d79268af875b864faafe150903a92bd1e16e4d026b6431a19af
['cbbdb776aad04d5e82d7a378b2250fa1']
I am new to PHP and I need assistance making this bit work. I am trying to have the directory folders listed in a PHP page. So far it is working but the list of folders appears in "Standard" order. I need it in "Natural" order but I cannot make it work. Standard Order: 1 10 11 2 ... Natural Order: 1 2 10 11 ... Here is what I have so far: <?php $TheFolder = ''; foreach(glob($TheFolder.'*', GLOB_ONLYDIR) as $dir) { $dir = str_replace($TheFolder, '', $dir); echo $dir , "<br>"; //echo $dir; } ?> I have been trying to use natsort before but could not figure it out. Any help would be very appreciated.
a35b0621cce473b4820fb8c0cb24d93eb38da21db8ba434a0fc8c54ea8cf4cf8
['cbbdb776aad04d5e82d7a378b2250fa1']
Thanks to <PERSON> who pointed me in the right direction. Taking <PERSON>'s solution as base, a small modification was needed as it was still throwing an error. This is the final code, working ok: <?php $directoriesArray = glob('*', GLOB_ONLYDIR); sort($directoriesArray, SORT_NATURAL); foreach($directoriesArray as $dir){ echo $dir , "<br>"; } ?>
7142449f0d6ae7f9d5e1a5078f54db0fcecc21b9613176e21a1d7dc33db4de8f
['cbcc97ef4fc94d7e8d43d52d614c578b']
I am surprised that there are very few articles online addressing this issue. I am trying to create the famous "DOM ready" event for IE 9 and 10 in vanilla JavaScript and here's my code (stripped down to it's core): document.onreadystatechange = function () { if (document.readyState == "interactive") { document.getElementById("toggled").innerHTML = "ready"; alert("Stop!"); } } Now the problem I am experiencing in Internet Explorer is that the readyState is turned to "interactive" before the element "toggled" even exists in the DOM. When the page is paused and the alert is called the document is still completely blank. I am pretty sure this is a bug, since it works fine in IE 11. Does anyone know how to overcome this problem? Thanks in advance!
531f4c7c4af7f09d2e8671f2217652ed88001cc9db90765551d41f00a4734a40
['cbcc97ef4fc94d7e8d43d52d614c578b']
Now I am not talking about creating children or a child node, I literally mean HTML. This is what I want to do: I have a basic node, for example: <div id="foo"></div> And I have a string of HTML, that I want to append before that element (kinda like what innerHTML does, with the difference, that I am obviously putting it before, not inside), e.g.: "<span>hello, world</span><div></div>Foo<img src="logo.png" />Bar" Now I want to insert that HTML before the div, so my outcome would be: <span>hello, world</span><div></div>Foo<img src="logo.png" />Bar<div id="foo"></div> Is there any way I can do this in JavaScript (without any library)? Thanks!
51102547779b293bc450ce950fa24414d1aea23cc544fa2a0104850cbcd77802
['cbccf98f51944263be041a56ad88f59e']
Well, I think cl-netbox answer will work for most of the people, but that didn't solved mine due the fact that I'm running 2 NVIDIA cards at the same time and I can't deactivate the integrated one (650M). If someone finds a solution for my special situation it would be AWESOME, currently the only thing i ould made was to install windows and use the 960 in windows.
fbda6ca00ef248a7b581947e270820512ca205adcf4842f6bcfc2aa8c1f5e497
['cbccf98f51944263be041a56ad88f59e']
Thank you. Yes, I see what you are saying now. I feel very very rusty. So my question actually was "in what circumstances could we be sure" and I'm wondering now, from what you have said, whether there is an answer along the lines of: "if the P and R curves are gentle, then the maximum of M will be close to the point where they cross".
756d4c43f34fc7d3ae31e2c50cdff2f4a8a1aae6e541c365010b8e8ce5843af9
['cbdd237079ce4b89b45c84d9dce6089f']
I've been doing a project on reading doppler speed and creating velocity data. I don't have a firm background on electric engineering / signal processing but I've researched quite a bit so far. Please bear with me if I get things wrong in my explanation. I am currently using HB100 and CDM324 breakout model. The objective in this project is to get the voltage reading from the module and create a spectrogram though FFT in MATLAB. I got a sample data from BlackCatScience with the hand moving towards the Sensor at a fast speed. Its plot is shown below: Hand Speed Using Doppler Radar And I've assembled my arduino kit like the picture below: Arduino-HB100_kit Connections are: VCC -> 5V GND -> GND FOUT -> Pin 8 VOUT -> Pin A5 So far, I found out that HB100 supports pulse/CW usage and used the code below to measure the frequency using HB100. #include <MsTimer2.h> #include <FreqMeasure.h> //--------------GlOBAL VARIALBES--------------------- double raw_data = FreqMeasure.read(); double sum = 0; int count = 0; double raw_data_array[10]; unsigned long timeStamp = 0; //--------------------------------------------------- void setup() { Serial.begin(115200); FreqMeasure.begin(); Serial.print("Time (ms)"); Serial.print("\t"); Serial.println("Hz"); } void loop() { timer(); freq_measure(); } void timer() { timeStamp+=1; } void freq_measure() { while (timeStamp < 101) { if(FreqMeasure.available()) { //average readings sum += FreqMeasure.read(); count ++; if (count > 2) { float frequency = FreqMeasure.countToFrequency(sum/count); // Serial.print(timeStamp); // Serial.print("\t"); Serial.println(frequency); timeStamp++; sum = 0; count = 0; } } } } The problem with this code is that, I want to measure the voltage reading at every, say for example, 1 millisec. However, this code is similar to using pulseIn function and the rate at which the data is out differs on whether I'm moving my hand to/from the sensor or not. When I'm not moving, the data output become slow, and when I'm moving, the data output rate is fast. Hence, I decided to use some other code and use analogRead function like below: //----------------------------------------------------------------- #define RADAR A5 //pin number for VOUT //--------------------GLOBAL VARIABLES----------------------------- unsigned long timeStamp; //----------------------------------------------------------------- void setup() { Serial.begin(115200); pinMode(RADAR, INPUT); Serial.println(F("Settings Complete" )); } void loop() { // 1 millisec == 0.001 second --> 1000 millisec == 1 second // we want about 5 seconds of data, hence the loop runs for 5000 millisec while (timeStamp < 5000){ showReading(); } } void showReading() { // timeStamp = millis(); // Serial.print(timeStamp); // Serial.print("\t"); //Read input on analog pin 5: int sensorData = analogRead(RADAR); // float voltage = sensorData * (5.0 / 1023.0); Serial.println(sensorData); } This time, the serial monitor is giving me a value between 0 and 1023 and that's great, but even if I move my hand in front of the sensor, the values change but minimally. What should I do to correct this and get a plot like the graph above? Thanks for reading such a long question. Have a great day!
395752fc4a3e024481cf5046a6cbadecb114af2b9d8c56c16adc8056fbdb7fb1
['cbdd237079ce4b89b45c84d9dce6089f']
I am designing an iOS app that receives multiple contact numbers from a server and sends messages to those numbers. I have made this service with an external API called Twilio, but Twilio costs(quite a lot actually if all my users are to send bulk messages). I want to make this App free for use and to make the user pay for the number of text messages they send, which will be charged by their carrier. I found an app called 'Group SMS 4!' by Cedars and this app does exactly what I wanted. I'm sharing you the link for the app on the appstore Group SMS 4! I've used the app, and I know it doens't use an external SMS gateway but MFMessageComposeViewController. But I though sending programmatically through iPhone restricted the number of texts sent to be less than 9 ~ 20 (depending on the carrier). So my conjecture on how this problem was solved was, Divide the contacts in a group of 5~9 somehow and send them separately, and sequentially when send button is pressed Was my guess correct? If not, What would be a way to achieve this? I just need the user to be able to send up to 100 people automatically and without hassle. Thank you in advance.
7a7e7405109a96e4b09a54cbf239289fb8583363791e3916a63e92c8267270be
['cbe5a0ad703947bdad25b7d51b897dbf']
I have seen a tons of question about this subject, but whenever I try to adapt it to my situation it never work. Why when I click on the sphere (saphi_mesh) ray.intersectObject(saphi_mesh) return an empty array ? What did I miss here ? JSFiddle: http://jsfiddle.net/qZh59/ init function: container = document.createElement("div") document.body.appendChild(container) camera = new THREE.PerspectiveCamera(70, window.innerWidth / window.innerHeight, 1, 1000) camera.position. z = 500 scene = new THREE.Scene() var ambientLight = new THREE.AmbientLight(0xbbbbbb); scene.add(ambientLight); var floor_geo = new THREE.PlaneGeometry(window.innerWidth, 5, 10, 10) var floor_color = new THREE.MeshBasicMaterial({color: 0xffff00}) var floor_mesh = new THREE.Mesh(floor_geo, floor_color) var saphi_material = new THREE.MeshBasicMaterial({color: 0xfff000}) var saphi_geo = new THREE.SphereGeometry(50, 50, 50) saphi_mesh = new THREE.Mesh(saphi_geo, saphi_material) scene.add(saphi_mesh) scene.add(floor_mesh) projector = new THREE.Projector() renderer = new THREE.WebGLRenderer() renderer.setSize(window.innerWidth, window.innerHeight) container.appendChild(renderer.domElement) renderer.domElement.addEventListener("mousedown", onClick, false) onClick function: x = (event.clientX / window.innerWidth) * 2 - 1 y = (event.clientY / window.innerHeight) * 2 + 1 dir = new THREE.Vector3(x, y, -1) projector.unprojectVector(dir, camera) console.log(dir) ray = new THREE.Raycaster(camera.position, dir.sub(camera).normalize()) console.log(ray.intersectObject(saphi_mesh))
bb48814c8e15c69a97703967d3ba0c00e6fc31eb1a1d20505289719980474d15
['cbe5a0ad703947bdad25b7d51b897dbf']
I need to open PDFs from another pdf document in new tab. I found this solution and it's working like charm: a) in the Document-level script: var myOpenInPlaceSetting = app.openInPlace ; app.openInPlace = false ; b) in the willClose Document Action: app.openInPlace = myOpenInPlaceSetting ; But I have to add this script manually several times in a day. Is there a way to simplify the process? Maybe some folder-level script?
5b9bfa8cb5c66bebbfef7fdd90c28f99a0f464573af8f77f359e252b1c3faa91
['cc00f67140324d6f880b77e3c25f0dfa']
I need to retrieve all items in the SimpleDB domain from java application. So, I used the select method, but I don't know is there an easy way to store the retrieved values in an xml file?? or I've to create the attributes and elements by myself and set values to them, like this: DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder docBuilder = docFactory.newDocumentBuilder(); Document doc = docBuilder.newDocument(); Element rootElement = doc.createElement("Items"); doc.appendChild(rootElement); SelectRequest selectRequest = new SelectRequest(selectExpression); for (Item item : sdb.select(selectRequest).getItems()) { // <item>------------------- itemBeg = doc.createElement("Item"); rootElement.appendChild(itemBeg); // <Name>------------------- Elmname = doc.createAttribute("Name"); Elmname.setValue(item.getName()); itemBeg.setAttributeNode(Elmname); // <Attributes> ----------------- attrib = doc.createElement("Attributes"); itemBeg.appendChild(attrib); for (Attribute attribute : item.getAttributes()) { // attribute <Name> ----------------- attrName = doc.createAttribute("Name"); attrName.setValue(attribute.getName()); attrib.setAttributeNode(attrName); // attribute <Value> ------------------- attrValue = doc.createAttribute("Value"); attrValue.setValue(attribute.getValue()); attrib.setAttributeNode(attrValue); }
5ae3b6750da133e539436906c8b545dd29ffd02ca966fed30dacebb5a013e13d
['cc00f67140324d6f880b77e3c25f0dfa']
I'd like to extract all tweets in the Arabic language in all countries. I modified the code in this tutorial. This is my search query. api.search(q="*", count=tweetsPerQry, lang ['ar'],tweet_mode='extended'). I expect to find a very large number of tweets, but I only collected about 7000 tweets. I checked the content of some of them and I noticed that they are posted in my country even I did not specify the location/Country (Can anyone explain why this happen??). I tried to know the reason for finding a limited number of tweets, so I modified the query by replacing the lang parameter by geocode to find tweets in a city. I fetched more than 65,000 Arabic tweets. After that, I used the lang parameter with the geocode and I found a very limited number of tweets. Can anyone help me to know why I'm not able to get a large number of tweets when I used lang parameter?
67149944135b4f89cc98823b4b654d79c04860f33fd48400523ad72d5def5ead
['cc18f98f2d2e41e79312be27e0e22d80']
There is an another way round with JavaScript like this:- document.getElementById("option1").innerHTML="asdf"; By using this you can keep the div(where the text is to be shown) empty in the starting so that there will be no chance of text being displayed before it is needed, and when a user clicks on the options then JS will just add this text to the div!
1dff24813a96139e6308880151877a5063e0ebff702d6a36b0d6a458e71d547c
['cc18f98f2d2e41e79312be27e0e22d80']
First of all in this var password = document.getElementByid('password'); the id is written wrongly it should be var password = document.getElementById('password');. Second, it will be better if you use this:- {var username = document.getElementById('username').value; var password = document.getElementByid('password').value; Third you don't have a field with the name "fname". Fourth you don't need to fetch the value of submit button. Fifth your = in if should be ==.
f48f34b9e8c551cf4825fcbb62d0c81684f9478d5b6a30b48621978058497308
['cc1b780c3a5f4c9c95b8400a642d249c']
I have logic in a Sinatra project that determines different behaviour depending on if the environment is production or development. if Services.production? # do something else # do something else end How can I test this code? I have tried the following but it didn't work: expect_any_instance_of(Services).to receive(:production?).and_return(true)
8a5d8494bb154373cb8a1e7b385321d82019addde0f1d2bbc6a87bc06e4756b4
['cc1b780c3a5f4c9c95b8400a642d249c']
One way to do this would be to use canvas. @Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); Bitmap map = BitmapFactory.decodeResource(getResources(), R.drawable.map); canvas.drawBitmap(map, xPositionForMap, yPositionForMap, null); Bitmap marker = BitmapFactory.decodeResource(getResources(), R.drawable.marker); canvas.drawBitmap(marker, xPositionFor1stMarker, yPositionFor1stMarker, null); canvas.drawBitmap(marker, xPositionFor2ndMarker, yPositionFor2ndMarker, null); } Things drawn later in the onDraw appear on top of those drawn earlier. Probably the BitmapFactory.decodeResource should be in a create/init mat hod so they aren't called every time onDraw is called. See http://developer.android.com/training/custom-views/custom-drawing.html for more information. For clicking on the pins you would catch clicks on the Layout containing the canvas and conditionally add extra drawables and text. An alternative way is to use RelativeLayout and put ImageView, which would work similarly.
96ae5e7488ebeb44b8604ea4ddd6692ad66253abecd587b1e5b3dac6b66db6ad
['cc286bcf65d54d7cb08c6db06123c63e']
Just a newbie here, but I was abble to make it work in a ui.bootstrap.modal with this directive: directives.directive('focus', function($timeout) { return { link : function(scope, element) { scope.$watch('idToFocus', function(value) { if (value === element[0].id) { $timeout(function() { element[0].focus(); }); } }); } }; }); and in the $modal.open method I used the folowing to indicate the element where the focus should be putted: var d = $modal.open({ controller : function($scope, $modalInstance) { ... $scope.idToFocus = "cancelaAteste"; } ... }); on the template I have this: <input id="myInputId" focus />
8ac788b902bba6ebff5e4d06f8ad4d4871981b7271d3d440fcd2d9a914a840e0
['cc286bcf65d54d7cb08c6db06123c63e']
I checked this and turns out that it's caused by a disk full. Docker has free space to start pulling the image but cannot finish it because disk gets full during the process, therefore the process fails and this not so helpfull message is returned. free up some space on disk will solve this error, in this specific case.
83ec568f1f54ce5cb98493ecc1b5aea5f5062566ceeac4c8514e4cf145e59460
['cc2f4b4bc1874ba69176e4a730926ee1']
I try to write 32bit integers to file using an ostream. I'm using the << operator: ostream file; map<unsigned char, int32_t> histogram; //… file << reinterpret_cast<char*>(&histogram[i]); It works well except for the last number (in my case 11328 which would be 40 2C 00 00 in binary) but instead only 40 2C is written into the file. It is the same number but when I'm going to import the file again I want to asume that every number is coded in 32bit. What did I do wrong?
b37efb56e70174831933193a1d066496e49d3c6a7be9efa9fc48dd77f4a6c304
['cc2f4b4bc1874ba69176e4a730926ee1']
I try to create a heat-map with text. Using the examples I created the following code: for (var i = 0; i < trgLength; ++i) { for (var j = 0; j < srcLength; ++j) { var newItem = {} newItem.srcWord = decodeHTML(data[k].src[j]) newItem.trgWord = decodeHTML(data[k].trg[i]) newItem.value = data[k].attentions[i][j] sen_data.push(newItem) } } var x_elements = data[k].src.map(function(item){return decodeHTML(item)}), y_elements = data[k].trg.map(function(item){return decodeHTML(item)}); var xScale = d3.scale.ordinal() .domain(x_elements) .rangeBands([0, x_elements.length * itemSize]); var xAxis = d3.svg.axis() .scale(xScale) .tickFormat(function (d) { return d; }) .orient("top") var yScale = d3.scale.ordinal() .domain(y_elements) .rangeBands([0, y_elements.length * itemSize]); var yAxis = d3.svg.axis() .scale(yScale) .tickFormat(function (d) { return d; }) .orient("left"); var cells = svg.selectAll('rect') .data(sen_data) .enter().append('g').append('rect') .attr('class', 'cell') .attr('width', cellSize) .attr('height', cellSize) .attr('y', function (d) { return yScale(d.trgWord); }) .attr('x', function (d) { return xScale(d.srcWord); }) This works just fine if the words in the sentences (src and target) are unique. If not then only one instance of the word is plotted. Is there a way to encode words uniquely? I was thinking about using the position in the sentence and then changing the labels but I could not find an easy way to accomplish that
efa9203f5765ef64bfa27ca080f3eca10287d308d3a9cf9873f8c24d54eb4603
['cc51dee5fd3d421c8207dc7149af47f9']
Not knowing the exact API you are using, my hunch is you need to make each id unique in your database call; currently you are using the same childSnapshot.val().idKey for each entry. Try something like chrome.contextMenus.create({ id: childSnapshot.val().idKey + '-page', title: childSnapshot.val().name, contexts: ["page"], onclick: MyPagePlaylistClick, }); chrome.contextMenus.create({ id: childSnapshot.val().idKey + '-image', title: childSnapshot.val().name, contexts: ["image"], onclick: MyImagePlaylistClick, }); chrome.contextMenus.create({ id: childSnapshot.val().idKey + '-selection', title: childSnapshot.val().name, contexts: ["selection"], onclick: MySelectionPlaylistClick, }); to make each id entry more unique.
088d23669eaf331ff7f86a02b3b2cc39e78d43324873b7a78e4d6ab7a29f57b7
['cc51dee5fd3d421c8207dc7149af47f9']
It seems like your <div id="test"></div> should really be <input type="hidden" id="test" name="test"/> within a <form> Using a form element of some kind is the only way you can natively pass a value back to the server on submit. In any case, the inline PHP code after your HTML will only work after submit of a form.
928c9f9598f1abdc4df2f53a96ddb61e71eee0eaf163751f05d88dd81630cb86
['cc5494dba088485882db45ba3cae1ee9']
Using the datanucleus-maven-plugin with this configuration: <plugin> <groupId>org.datanucleus</groupId> <artifactId>datanucleus-maven-plugin</artifactId> <version>5.0.2</version> <configuration> <fork>false</fork> <log4jConfiguration>${basedir}/log4j.properties</log4jConfiguration> <verbose>true</verbose> </configuration> <executions> <execution> <phase>process-classes</phase> <goals> <goal>enhance</goal> </goals> </execution> </executions> </plugin> The enhance process runs automatically after the compile phase. The fork param have been set to false, preventing the "arguments list too long" message. See http://www.datanucleus.org/products/accessplatform/jdo/enhancer.html#maven.
2f55e876f8e2eefa8174687caf517b0897246e996d31c3e9a52265f4cc180484
['cc5494dba088485882db45ba3cae1ee9']
I'm using the recommended GWT Maven Plugin and the GWT Eclipse Plugin. Actually I'm using the maven plugin with the appengine-mave-plugin to try to emulate the old Google Eclipse Plugin Super Dev Mode. Following the Google App Engine instructions from the GWT Plugin documentation and the suggested sample project gwt-basic-rpc-appengine I created this project structured that my project runs in super dev mode when I launch the App Engine local server from Eclipse (using the Eclipse Google Cloud Tools local App Engine server launcher tool). From Maven, this process works following: mvn clean package appengine:devserver_start and mvn gwt:codeserver. However, the Maven GWT plugin only compiles one of the four modules. This is my pom.xml configuration: <!-- GWT Maven Plugin--> <plugin> <groupId>net.ltgt.gwt.maven</groupId> <artifactId>gwt-maven-plugin</artifactId> <version>1.0-rc-8</version> <executions> <execution> <goals> <goal>compile</goal> <!-- <goal>test</goal>--> </goals> </execution> </executions> <configuration> <moduleName>com.company.Administracion</moduleName> <moduleName>com.company.Cronometro</moduleName> <moduleName>com.company.Extension</moduleName> <moduleName>com.company.Company</moduleName> <!-- <moduleShortName>Nubbius</moduleShortName> --> <failOnError>true</failOnError> <!-- GWT compiler 2.8 requires 1.8, hence define sourceLevel here if you use a different source language for java compilation --> <sourceLevel>1.8</sourceLevel> <!-- Compiler configuration --> <localWorkers>4</localWorkers> <draftCompile>true</draftCompile> <compilerArgs> <!-- Ask GWT to create the Story of Your Compile (SOYC) (gwt:compile) --> <arg>-compileReport</arg> <arg>-XcompilerMetrics</arg> </compilerArgs> <!-- DevMode configuration --> <!-- <warDir>${project.build.directory}/${project.build.finalName}</warDir> --> <launcherDir>${project.build.directory}/${project.build.finalName}</launcherDir> <classpathScope>compile+runtime</classpathScope> <codeServerPort>auto</codeServerPort> <!-- URL(s) that should be opened by DevMode (gwt:devmode). --> <startupUrls> <startupUrl>Company.jsp</startupUrl> </startupUrls> <jvmArgs> <arg>-Xms1024M</arg> <arg>-Xmx2014M</arg> <!-- <arg>-javaagent:/home/.m2/repository/.../appengine-java-sdk-1.9.59/lib/agent/appengine-agent.jar </arg>--> <arg>-javaagent:/home/desarrollo26/Descargas/appengine-java-sdk-1.9.59/lib/agent/appengine-agent.jar </arg> </jvmArgs> </configuration> </plugin> The src folder contains the structure: src/ ├── main │   ├── appengine │   ├── java │   │   └── com │   │   └── company │   │   ├── client │   │   ├── server │   │   └── shared | | │   ├── resources │   │   └── META-INF │   └── webapp    └── WEB-INF │   ├── classes │   │   ├── com │   │   │   └── company    │   │   └── shared │   │   ├── main │   │   │   ├── java │   │   │   └── resources │   │   └── META-INF │   └── lib │   └── lib ├── META-INF └── test └── java (All modules.gwt.xml files are at the same level of client/ server/ and shared/ folders.( From Eclipse, I can create a launcher to compile my project with all the params that I have specified in my POM file but I can't automatically execute the war explode and copy process (this is the main reason for build the project from Maven). Can I solve that compilation process with my project structure? Con I use the GWT Eclipse project and Maven together? Thanks!
a28292d441fe565296068b1c3104ad9a6b0a478454c7ed337c488a986543674a
['cc5d8556fd984654b04e7ecf99aa4ca5']
Below snippet works for me. try this code and if it don't work for you, can you log whole exception message. MailMessage Msg = new MailMessage(); // Sender e-mail address. Msg.From = new MailAddress(txtEmail.Text); // Recipient e-mail address. Msg.To.Add("<EMAIL_ADDRESS>"); //Msg.Subject = txtSubject.Text; Msg.Body ="some body message"; SmtpClient smtp = new SmtpClient(); smtp.Host = "relay-hosting.secureserver.net"; smtp.Send(Msg);
2182c2dbc764aa31b08ca53af4a6b73ccb467b143a4807e2a36246f0bd602d99
['cc5d8556fd984654b04e7ecf99aa4ca5']
you can use C# sdk api and use below method, it will return status whether it is completed or not. https://docs.aws.amazon.com/sdkfornet/v3/apidocs/items/StepFunctions/MStepFunctionsDescribeExecutionDescribeExecutionRequest.html This will give you overrall status. In case you want to track status of specific activity. Add next step TASK to call your api which would update your local db. Now your Website can read data from your local db to show it is completed or not. Would save you cost to read in and out from aws.
3274b813fbdec973e6bd60a69454731dc48201554c3fc9f6be764b34cbbed00f
['cc67107a79f04178a8b9091687596064']
Here's my code. Everything is O(1) except for the seeded constructors. using System.Collections.Generic; using System.Linq; public class TwoWayDictionary<T1, T2> { Dictionary<T1, T2> _Forwards = new Dictionary<T1, T2>(); Dictionary<T2, T1> _Backwards = new Dictionary<T2, T1>(); public IReadOnlyDictionary<T1, T2> Forwards => _Forwards; public IReadOnlyDictionary<T2, T1> Backwards => _Backwards; public IEnumerable<T1> Set1 => Forwards.Keys; public IEnumerable<T2> Set2 => Backwards.Keys; public TwoWayDictionary() { _Forwards = new Dictionary<T1, T2>(); _Backwards = new Dictionary<T2, T1>(); } public TwoWayDictionary(int capacity) { _Forwards = new Dictionary<T1, T2>(capacity); _Backwards = new Dictionary<T2, T1>(capacity); } public TwoWayDictionary(Dictionary<T1, T2> initial) { _Forwards = initial; _Backwards = initial.ToDictionary(kvp => kvp.Value, kvp => kvp.Key); } public TwoWayDictionary(Dictionary<T2, T1> initial) { _Backwards = initial; _Forwards = initial.ToDictionary(kvp => kvp.Value, kvp => kvp.Key); } public T1 this[T2 index] { get => _Backwards[index]; set { if (_Backwards.TryGetValue(index, out var removeThis)) _Forwards.Remove(removeThis); _Backwards[index] = value; _Forwards[value] = index; } } public T2 this[T1 index] { get => _Forwards[index]; set { if (_Forwards.TryGetValue(index, out var removeThis)) _Backwards.Remove(removeThis); _Forwards[index] = value; _Backwards[value] = index; } } public int Count => _Forwards.Count; public bool Contains(T1 item) => _Forwards.ContainsKey(item); public bool Contains(T2 item) => _Backwards.ContainsKey(item); public bool Remove(T1 item) { if (!this.Contains(item)) return false; var t2 = _Forwards[item]; _Backwards.Remove(t2); _Forwards.Remove(item); return true; } public bool Remove(T2 item) { if (!this.Contains(item)) return false; var t1 = _Backwards[item]; _Forwards.Remove(t1); _Backwards.Remove(item); return true; } public void Clear() { _Forwards.Clear(); _Backwards.Clear(); } }
4d34b113c1c94b7a8f41fe63d2b3a24863f5d1161ca8662ec8d649ac46785ccc
['cc67107a79f04178a8b9091687596064']
I'd like to do something like the following with my code: BaseClass class; if (BaseClass is InheritedClass) { class.MethodOnlyInInheritedClass(); } However I get an error that BaseClass does not contain a definition for MethodOnlyInInheritedClass. It doesn't, but I know based on the previous test that my particular reference to BaseClass is an inherited type that DOES contain that method. I tried casting class as InheritedClass but that didn't work. Is there a way to do what I'm seeking?
d9e9b40f000dbdb6dc9b1fb3b339b54ad0ea81a54a16cb9f0511738b10577e17
['cc69a129ff0e4fb79e19aa07cc3bde77']
In short Add this line: p.setViewerPreference("FitWindow", "true") Explain Set viewer preference with: def setViewerPreference(self,pref,value): set one of the allowed enbtries in the documents viewer preferences Available pref and value are: class ViewerPreferencesPDFDictionary(CheckedPDFDictionary): validate=dict( HideToolbar=checkPDFBoolean, HideMenubar=checkPDFBoolean, HideWindowUI=checkPDFBoolean, FitWindow=checkPDFBoolean, CenterWindow=checkPDFBoolean, DisplayDocTitle=checkPDFBoolean, #contributed by <PERSON> NonFullScreenPageMode=checkPDFNames(*'UseNone UseOutlines UseThumbs UseOC'.split()), Direction=checkPDFNames(*'L2R R2L'.split()), ViewArea=checkPDFNames(*'MediaBox CropBox BleedBox TrimBox ArtBox'.split()), ViewClip=checkPDFNames(*'MediaBox CropBox BleedBox TrimBox ArtBox'.split()), PrintArea=checkPDFNames(*'MediaBox CropBox BleedBox TrimBox ArtBox'.split()), PrintClip=checkPDFNames(*'MediaBox CropBox BleedBox TrimBox ArtBox'.split()), PrintScaling=checkPDFNames(*'None AppDefault'.split()), ) Reference ReportLab API Reference ViewerPreferencesPDFDictionary
cc1e53d672c76f9133d930288e7bb18fb5c44b7cc0f2aefd6ceb57ab272824f1
['cc69a129ff0e4fb79e19aa07cc3bde77']
Yes. numpy.linalg.norm is for Matrix or vector norm. It depends on which kind of L1 matrix norm you want. You can specify it with argument ord. (Doc) numpy.linalg.norm(x, ord=None, axis=None, keepdims=False) Matrix norms induced by vector norms, ord=inf "Entrywise" matrix norms, ord=0 Schatten norms, ord=nuc
ebfdaae26741c803c1d21eebf1adfe6573a245213a1f5917ba94b14e3179a4b1
['cc715c77ff8c453bb2e1c9a8b592c780']
Because stoi is a function from string library you dont redefine stoi as int stoi. Delete int stoi it would be succeeded. Complete code like these #include <string> #include <iostream> using namespace std; int main() { int number = 0; string hex_string = "12345"; number = stoi(hex_string, nullptr, 16); cout << "hex_string: " << hex_string << endl; cout << "number: " << number << endl; return 0; }
73a3d61039cf817aacec9031d3b3ea1a9ad20b088747538477939839244fdfdb
['cc715c77ff8c453bb2e1c9a8b592c780']
read_xml() function get a parameter of xml name and ptree member, but i want to send file's file directory such as C:\Users\serhan.erkovan\Desktop\ddd.xml as a variable. When i tried to do that it gives me error that cannot open file. How can i send file directory as a variable ? My example code like this ptree pt; try { read_xml("C:\\Users\serhan.erkovan\Desktop\ddd.xml", pt); } catch (const boost<IP_ADDRESS>property_tree<IP_ADDRESS>xml_parser<IP_ADDRESS>xml_parser_error &ex) { cerr << ex.what(); } Working example like this ptree pt; try { read_xml("ddd.xml", pt); } catch (const boost<IP_ADDRESS>property_tree<IP_ADDRESS>xml_parser<IP_ADDRESS>xml_parser_error &ex) { cerr << ex.what(); }
c39ffdce030510b6ecd5aa0fbe03b9032e35435cb8b20ce45cb9d1d71475c5c5
['cc79f84c8cbe45d6b631d72696b35950']
Update 2018 Not sure what all has changed since 2012. Just wanted to give an update as to my experience in 2018. We have deployed an openvpn network very similar to the OP setup. Our endpoints are full blown linux pcs instead of embedded devices. Each endpoint has a monitor used to display information and alarm for that site and our server allows us a single point to remote into all endpoints. The network isn't overly active but sometimes has 5-10 remote sessions simultaneously. Using a current build of openvpn at around 100 clients on an azure image with a single core and 2gb of ram we use around 0.7% of memory on average and the cpu usage is almost always around 0%. Based on what I found for this smaller test I figure a single server with decent specs would easily handle 50000 concurrent if it had the ram to support it. If ram usage scaled linearly then 16gb would be able to handle 50000 users with enough extra on a dedicated openvpn machine. We are not at a large enough scale to say that with significant confidence but I just wanted to give a recent update since when originally deploying our network I found this and was expecting much more resource usage at this scale. Now, I do believe the cpu that runs this does have hardware encryption and I'm not sure at what point that would be overloaded traffic wise but for endpoints that do not communicate a lot this shouldn't be an issue. At 1000000 you would need 200gb of ram on a single machine(if scaled linearly with extra) while this is possible I would think at that point you would want to have 5 machines each with 64gb of ram so you don't have a single point of failure. This should allow maintenance, restarts and replacements of 1 or even 2 machines without significant issues. My ram estimates are likely way overkill since I'm dividing the entire openvpn usage by number of clients where only a portion of that ram is due to clients. We have added 74 endpoints in a year since initially deployed. I hope to continue to grow that number significantly and will make a further update if we get to a decent scale.
8e912713ba39e9f9f9eab84b81b9a7b841b13db9dc48f9c817263a08cecce2df
['cc79f84c8cbe45d6b631d72696b35950']
Before ditching windows I enjoyed very short boot times because my OS and mission critical programs were all installed on my solid state, while my music, videos, recordings, and video games were on my hard disk drive. I wanted to have a similar setup when I moved to ubuntu and put /usr/ and /home/ on my HDD and everything else on the SSD. I now suffer from longer boot times. Was putting /home/ and /usr/ on my hdd a mistake? Should I have only done /usr/local and made symlinks to there from my home folder?
9d8292478436ddafdc9c4b43be19a56f719ebc965081cf3cab219dd31a4ebbd6
['cc8f466115ed4fd1a4faa8ef4d8505c4']
Because the static methods can't access instances values, just static values. So if you want a static method to access values of field of an instance you must pass it as a parameter. In the end you'd better think of make the method not static so that you can call it directly from on instance object. Besides, there is nothing wrong (at least that would make it not compile) with the code above.
9b8ba19f286356b741eeb1bdac91fd6108b5da2cf500da91a65e30dc9c2f7505
['cc8f466115ed4fd1a4faa8ef4d8505c4']
Thanks for your answer. But there is no program or something like that which could change it? (Like MagicPrefs for more Mouse and Trackpad features)... Otherwise I'll have to use it without animation... The problem is just, that I often use phpmyadmin for MySQL databases, and the create table forms are within an iframe and you often have to sroll to the left and right. So you have to scroll really careful, if you are at the very end of the iframe and continue scrolling it goes back in the history and all changes are lost.
20ee05b49fd59d4847425d98a87e17ed773ef37617d4545db283e0be1c0c107d
['ccadc87cbd4a403c94b49c76405c34f0']
I am upgrading my elasticsearch from 2.2 to 7.1 and I am maintaining both the instances and I am trying to compare the results on the new version and old version by making the same search queries. Note: I have not changed the mappings, settings or querying logic My results are almost the same but vary a little in scoring. Is it expected? though the documents, mappings, settings and query logic are the same?
af128aa07ed38c09d6df2063f0b4ab84abc2d0c557e913d65f54d59e935bc6f5
['ccadc87cbd4a403c94b49c76405c34f0']
You need to use self.search and also I think there is a better way to solve the problem The question is basically related to Binary Search. You can learn more about it at this https://www.geeksforgeeks.org/binary-search/ I am also attaching the code in Python for reference along with test data. Hope it helps def binarySearch (nums, left, right, target): if right >= left: mid = left + (right - left)/2 if nums[mid] == target: return mid elif nums[mid] > target: return binarySearch(nums, left, mid-1, target) else: return binarySearch(nums, mid + 1, right, target) else: return -1 nums = [-1,0,3,5,9,12] target = 9 result = binarySearch(nums, 0, len(nums)-1, target) print result
3a8d0e54671f5303ca32acc6f104aa7bf1203c8a0fafee85330e84ca48fc9c49
['ccafe5cb7db449f3b0fcd4e4b9a8fb7e']
{ Recipedetails2 item_details = new Recipedetails2(); item_details.setName("Godhumai veg adai"); item_details.setIngredients("Samba godhumai rava - 1/2 cup. Bread slices - 4. Curd ( thick ) - 1/2 cup Carrot ( grated ) - 3 tsp Beetroot ( grated ) - 3 tsp Cabbage ( grated ) - 2 tsp Green chilli - 1 Ginger - a small piece Garlic - 2 cloves Salt - as neededOil - as needed "); item_details.setMethods("1. Cut ginger, green chilli, garlic finely. 2. Soak samba godhumai rava in curd for half an hour. 3. Dip bread slices in water, squeeze and add to the godhumai. 4. Add carrot, beetroot ,cabbage, ginger, green chilli, garlic , salt, water and mix well to a batter. 5. Heat oil in a skillet. 6. Add ladle of batter, spread to a small thick circle and cook on both sides, dribbling oil."); item_details.setImageNumber(12); setUIScreen(item_details.getName(),item_details.getIngredients(),item_details.getMethods(),item_details.getImageNumber() ); } it will comes like paragraph but what i need is it has to come first point will comes and then next line next point like that manner i need,how we can do it in this code Method 1. Mix soya flour with buttermilk, salt to a batter. 2. Heat oil in a frying pan. 3. Add mustard, urad dal and when mustard splutters, add red chilli, asafoetida, soya mix and stir constantly on a medium flame. 4. When contents leave the sides of the pan, transfer to a greased plate, sprinkle moremilagai, curry leaves and cut into squares. i need like this but its coming as a paragraph my layout.xml file is <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <TextView android:id="@+id/name" android:textSize="14sp" android:textStyle="bold" android:textColor="#32cd32" android:layout_width="wrap_content" android:layout_height="wrap_content" /> <ImageView android:id="@+id/photo" android:layout_height="wrap_content" android:layout_width="fill_parent" android:layout_gravity="top" android:padding="20dp" android:scaleType="center" ></ImageView> <TextView android:text="Ingredients:" android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="left" /> <TextView android:id="@+id/itemIngredients" android:layout_width="wrap_content" android:layout_height="wrap_content" android:scaleType="center" /> <TextView android:text="Method:" android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="left" /> <TextView android:id="@+id/methods" android:layout_width="wrap_content" android:layout_height="wrap_content" android:scaleType="center" /> </LinearLayout>
8fdab6a42910485ff07280afe84f477dc36c140089d73265eea89ca7c57f7925
['ccafe5cb7db449f3b0fcd4e4b9a8fb7e']
This is the correct code i got ItemListAdapter.java public synchronized void refreshAdapter(ArrayList<Recipedetails> items) { //itemDetailsrrayList.clear(); itemDetailsrrayList = items; notifyDataSetChanged(); } and in mylistviewactivity.java private void refreshYourAdapter(final ArrayList<Recipedetails> items) { //this is what I meant. The error clearly states you are not updating the adapter on the UI thread runOnUiThread(new Runnable() { public void run() { _itemListAdapter.refreshAdapter(items); } }); } and @Override protected void onResume() { super.onResume(); _itemListAdapter = new ItemListBaseAdapter(this, image_details); refreshYourAdapter(GetSearchResults()); lv1.setAdapter(_itemListAdapter); } we have to add these things in your listview activity it will works very fine and remove static in idemlistadapter
7d9dd74f1cb78fe95419035985a45d2ab2cb8f33c324c909536c2de0629df187
['ccbc9c0b29b645b38c349ab611e3d4c8']
@mcalex look him in the eye and ask that he please do that in writing. He probably knows that the things he's doing are against the wishes of the CEO, and he knows that you know. A good manager will allay your fears, a manager that is planning to toss you under the bus anyway is not worth respecting so you might as well go to the CEO.
2b8724f6f328025214df7c2f52663b5c5c8b0c909b44006fd27a7464cf4e37f7
['ccbc9c0b29b645b38c349ab611e3d4c8']
First, important question: Is your phobia diagnosed to be severe enough to be a disability? Not all phobias are and not all psychologists 'believe' that one can be a disability. Because if it is then you should be fine, any repercussions are illegal unless the disability severely impacts your work. To illustrate the level of "severely" I am talking about here: A blind person cannot be a bus driver for instance, and even in that case in most nations prefer that the bus company finds them a non-driver job in the company as opposed to firing them. So go to your manager and explain the situation. Bring any doctor's notes or other paperwork. It helps to come prepared with a plan and in your case it sounds like you have: work from home. You might be required to come into work every so often but any reasonable precaution should be taken (like a secluded small office for you to work in on those days). The legal protections for disabilities are very strong, don't let yourself be bullied out of those rights. If you are self-diagnosed or your doctor deems your phobia not severe enough to be a disability things get a lot more complicated. But you can always ask if you could work from home just because. This being your first week makes that harder though.
cb012a5b9701369692ac8320c4e690422813ac53162736645cdda9815b35b540
['ccc5530cfdb2446aaa266aa256143ab8']
Estoy trabajando en la base de datos MySQL y necesito generar un número consecutivo de acuerdo a cada "categoría secundaria" que se encuentra dentro de una "categoría principal" y un número consecutivo de cada producto de acuerdo con su "categoría secundaria". He creado una vista para no complicarme con las relaciones entre las tablas, y que sea más fácil generar los secuenciales. Para su efecto ponga la siguiente tabla de ejemplo donde: Primera columna es la categoría principal La segunda columna es la categoría secundaria En la columna final se encuentra el resultado deseado Datos adicionales: Una categoría secundaria pertenece solo a una categoria principal Un producto pertenece solo a una categoría secundaria PSD: He intentado de varias maneras y no me funciona. Si me podrian ayudar con un ejemplo o una manera de como hacer.
b214e1270ab319f983f9cd74cfa497db045255838ef7e95e7925173c563c7e02
['ccc5530cfdb2446aaa266aa256143ab8']
Hola (estoy recien aprendiendo), Necesito en el value asignar el valor del id. Ejemplo: <option value="{{$idcategoriacuenta}}">{{$categoria}}</option> El problema es en el array() no se como mandar el valor de la categoria y el idcategoriacuenta Tengo el siguiente código: En el Modelo: class Cuentasconcategoria extends Model { protected $table='view_cuentasconcategoria'; public $timestamps=false; protected $fillable =[ 'idcategoriacuenta', 'cuenta', 'categoria', ]; } En el controlador public function create(){ $categoriacuenta=Cuentasconcategoria<IP_ADDRESS>all(); $attributes = array(); foreach ( $categoriacuenta as $v ) { if ( !isset($attributes[$v->cuenta]) ) { $attributes[$v->cuenta] = array(); } $attributes[$v->cuenta][$v->categoria] = $v->categoria; } return view ('inventario.articulo.create', ["attributes"=>$attributes]); } En la vista: <select> @foreach ( $attributes as $key => $cuenta) <optgroup label="{{$key}}"> @foreach ( $cuenta as $categoria ) <option value="{{$categoria}}">{{$categoria}}</option> @endforeach </optgroup> @endforeach </select> Si funciona el código anterior solo me falta asignar el value con el id El resultado de lo anterior:
d40625753bad99a3bc12fb06f386b3ebbe82f81a13dffc661b86a63b68a7e690
['ccc60269ecb1476fbe3cec4ed74345a0']
A technique I've used is to insert a "hard" breakpoint (__asm int 3) in the module init function. Then either run it through a debugger or just run it and let the windows debugger pop when the interrupt is called. You can download a nice windows debugger from Microsoft here.
6103c08c83300d8aac1187a817bea78408084b7557b6f8894ede4504377ef2f3
['ccc60269ecb1476fbe3cec4ed74345a0']
I am receiving this error while deploying Reports through ANT. After investigation I found that the below 'backets' tag don't have tag 'sourceValues'. However the thing is that I have just got these report files by ANT retrieve command from the same ORG. and Have not modified any file. Is it related to version issue ? or something else ? I am using ANT version: 1.9.3 package.xml version: 30.0
b6b3b23b4136ec21610b26ba3db8ac1a684508708ea3b2582b6864cfee9a9855
['cce67fa17a3347d5a145efa4c4129f2e']
Your markup is mostly correct with the exception of using the center element and you do not need to wrap the img element in a div. Here is some example markup: <div class="thumbnail"> <h1>Heading</h1> <img src="sample.png"> </div> And its corresponding CSS: .thumbnail { position:relative; } .thumbnail h1 { text-align:center; position:absolute;top:50%;left:0;width:100%; margin-top:-20px; /*make the negative top margin = half your h1 element height */ } You could always use an element other than an h1 to hold your title. This just depends on your preference.
05f082ff9ec973ef19d692f8469e301cdf7ffa69573271beddd646f0ff559c29
['cce67fa17a3347d5a145efa4c4129f2e']
I haven't been able to find a source for explaining that difference in ie7 but here is a quick fix: change the nested ul's to have an absolute position of right:0; instead of a left-margin of 200px. alternatively you could provide a conditional stylesheet for ie7 that gives them a left-margin of zero. but since the uls are already absolutely positioned it will be a pretty easy fix to just remove the margin and add a "right:0;" to the css.
065b6a26942749dddc1eefa034569ffdb7f40120dbcb89ae59f4111fb93f27a7
['cce9a275224f4719a108e170c1113026']
Apple maintained support for all iOS 8 devices in iOS 9 but that meant that some devices couldn't fully support some of the new features. If it's the first generation iPad mini you have, drawing in Notes is not supported. Support starts with the iPad mini 2. I haven't seen anything about Siri Suggestions not being supported. You could verify that your device is supported and Siri Suggestions are turned on under Settings > General > Spotlight Search. There should be a toggle for Siri Suggestions if supported.
eb66e5559fed6b6b87adf6cc8fde3d79c0f8d57a2d1c23fbb2556fcaa0cf6d9d
['cce9a275224f4719a108e170c1113026']
Messages syncing can be finicky. Go to Settings > Messages > Send & Receive and verify that your iPad is configured to use all the same addresses that your iPhone and Mac are using. It is also helpful to make certain that all devices have the same "Start new conversations from" setting. I recommend setting them to start from your phone number, as that's where other are likely to message you. Otherwise you end up with multiple conversation threads with the same person.
dd85520660c589b58c7f331c82def566026e568ff3d90dfde9737567bea9c334
['cceda69013f64c408f838d0f67c16201']
SELECT COUNT(t1.tid) AS count, u.user_name, SEC_TO_TIME(SUM(TIME_TO_SEC(TIMEDIFF(t1.endtime,t1.endtime)))/COUNT(t1.endtime)) AS `avg`, MAX(TIMEDIFF(t1.endtime,t1.starttime)) AS `max`, MIN(TIMEDIFF(t1.endtime,t1.starttime)) AS `min`, CONCAT( IF(t1.starttime>=(NOW() - INTERVAL 15 MINUTE), '15', ''), IF(t1.starttime>=(NOW() - INTERVAL 30 MINUTE), '30', ''), IF(t1.starttime>=(NOW() - INTERVAL 1 HOUR), 'H', ''), IF(t1.starttime>=(NOW() - INTERVAL 1 DAY), 'D', ''), IF(t1.starttime>=DATE_FORMAT(SUBDATE(NOW(), INTERVAL WEEKDAY(NOW()) DAY), '%Y-%m-%d'), 'W', ''), IF(t1.starttime>=CAST(DATE_FORMAT(NOW() ,'%Y-%m-01') AS DATE), 'M', '') ) AS period, t1.starttime FROM table1 t1 LEFT OUTER JOIN `user` u ON u.id = t1.user_id WHERE t1.starttime >= CAST(DATE_FORMAT(NOW() ,'%Y-%m-01') AS DATE) GROUP BY user_name, period The above is a sample query that I have done. My intention is to get results for various time lines. ie get count, min, max etc for last 15mins, 1 hour, 1 day, 1 week, 1 month etc. So what I want is the result to be like this: +--------------+--------------+-----------------+--------------+-----------------+ | period | count | user | min | max | +--------------+--------------+-----------------+--------------+-----------------+ | 15mins | 12 | test_user1 | 00:00:45 | 00:01:45 | | 15mins | 12 | test_user2 | 00:00:45 | 00:01:45 | | 15mins | 12 | test_user3 | 00:00:45 | 00:01:45 | | 15mins | 12 | test_user4 | 00:00:45 | 00:01:45 | | 15mins | 12 | test_user5 | 00:00:45 | 00:01:45 | | 30mins | 15 | test_user1 | 00:01:45 | 00:11:45 | | 30mins | 15 | test_user2 | 00:01:45 | 00:11:45 | | 30mins | 16 | test_user3 | 00:04:45 | 00:11:45 | | 30mins | 18 | test_user4 | 00:09:45 | 00:11:45 | | 30mins | 19 | test_user10 | 00:07:45 | 00:11:45 | | 30mins | 14 | test_user11 | 00:04:45 | 00:11:45 | | 30mins | 15 | test_user12 | 00:00:45 | 00:11:45 | | 1day | 100 | test_user1 | 01:00:45 | 01:11:45 | +--------------+--------------+-----------------+--------------+-----------------+ t1.starttime is the datetime. And we get the results based on the current server time.
38b0e47d1fae4fc9d165bdc816e5928ea3ec9a9a696848cb0b1a6f1e02e9eaaa
['cceda69013f64c408f838d0f67c16201']
I solved it using the following code. Not very clean but for the time being this helped us to progress with the project. As you can see the problem is the connect event not firing after a page reload, so I decided to attach the events after a timeout if connect was never fired. function attachEventListners() { socket.on('some-event', function(data) {}); } var attached = false; socket.on('connect', function(){ attachEventListners(); attached = true; }); setTimeout(function() { if (!attached) { attachEventListners(); } }, 1000);
62924f5bf899623ebf94d2bb4956218ff1926bcc5c0f9a01ac8e92cb8850c677
['ccf14d9535194fad85647240632304e5']
OS X (Hackintosh). I shrunk Windows in Disk Management and OS X in Disk Utility. [Here](http://i57.tinypic.com/16jesrl.jpg) is my Disk Management screenshot. At the top is says C?: is ~300Gb but in the box in the middle it says it is still ~600GB. **Edit:** also not sure why it says all of E: is free but that might just be an issue with the Windows drivers for reading OS X partitions
e40b7534a07ffc12ac316cb51217fa73722080f527a0b313f7beea755fa99a67
['ccf14d9535194fad85647240632304e5']
In my PC I currently have a 1TB hard drive that I am trying to make into three partitions: one for Windows, one for OS X, and one as a storage for movies and Steam games, just to keep them separated. I know I could get away with two but I think three will be more organized. Anyways, first I got both OS X and Windows partitions up and running, with ~400 GB for OS X and ~600GB for Windows (this was before I decided I wanted a third partition). So I figured now I could just shrink both my Windows and OS X partitions and then merge the unallocated space into a new partition. In Windows, I shrunk my partition down top 300GB and it worked fine. Then I booted into OS X to shrink that partition to 200GB, also worked fine, but it was showing that my Windows partition was still 600GB, not the 300 I shrunk it to. Figuring this was just a bug, I booted back into Windows only to see that my C: drive was back to 600GB, but this time it won't let me shrink it anymore. Going to the C: drive properties shows that is only 300GB but in Disk Management it says it is nearly 600. I tried to make a GParted Live USB stick using both tuxboot and by burning the iso directly but both get stuck on the message "waiting for /dev to be fully populated". I have tried some fixes for this but to no avail. In short, Disk Management says my C: drive is 600GB when in fact it is only 300. Does anybody know how to recover the other 300 into unallocated space? Thanks! Edit: I just noticed that up top in Disk Management it shows my C: drive as 300GB but in the lower part where it shows partitions as boxes it still says 600. This just adds to the confusion as to where my 300GB of unallocated space went.
51edbc91d9523b279948283bbfeda6aef01566dd4c3c62c89e479c357fff9ca7
['ccf317b4d180450b9edf963a2364fcda']
I am trying to add an object to an array but it senting zig bart error "unrecognized selector sent to instance" Below is my code AppDelegate *appdelegate = (AppDelegate *)[[UIApplication sharedApplication]delegate]; NSDictionary *infomation = [self dictionaryWithContentsOfJSONString:@"Contacts.json"]; IstructContactsOrgByEntity *ObjIstructContactsOrgByEntity=[[IstructContactsOrgByEntity alloc]initWithIstructContactsOrgByEntity:infomation]; NSArray *array=[infomation objectForKey:@"contacts_list"]; for (int ndx = 0; ndx < [array count]; ndx++) { NSDictionary *stream = (NSDictionary *)[array objectAtIndex:ndx]; IstructContacts_List *ObjIstructContacts_List=[[IstructContacts_List alloc]initWithIstructContacts_List:stream]; NSArray *Qnarray=[stream objectForKey:@"contacts"]; for (int i=0; i<Qnarray.count; i++) { NSDictionary *Qnstream = (NSDictionary *)[Qnarray objectAtIndex:i]; IstructContacts *ObjIstructContacts=[[IstructContacts alloc]initWithIstructContacts:Qnstream]; [ObjIstructContacts_List.m_muteArrContacts addObject:ObjIstructContacts]; } [ObjIstructContactsOrgByEntity.m_muteArrContacts_List addObject:ObjIstructContacts_List]; } [appdelegate.m_ArrContactsOrgEntity addObject:ObjIstructContactsOrgByEntity]; The last line [appdelegate.m_ArrContactsOrgEntity addObject:ObjIstructContactsOrgByEntity]; is causing me the problem.
00bbf20b8c5de7f0012265908877a2b93a2836b8f63d3003aab5344287ce318c
['ccf317b4d180450b9edf963a2364fcda']
I have an iPad application in which I need to send some datas to the server and if get success response the data is deleted from my cache folder . I am currently using asihttp network queue to do this and working fine in one viewcontroller . But what actually i want is to process the sending with in the application through out not in a single viewcontroller and process response. Currently when i move to next view controller i need to stop the networkqueue. Is there any way to do this as a backgrond thread, any samples may greatly appreciated.
93b68311e123459f4b81d0051a6c23b22689af9190d15ac91dc95f07179cedce
['ccf44e23db8d4c91bf672a33e022ac19']
I do not see "tzPlayInfo" anywhere in the code you provided. But it is possible for previousValue to be null if PlayInfo.Instance.History has any null values in it before setting historyValue. From the code provided I don't see where PlayInfo.Instance.History would be populated. I wonder if there is some confusion around what this line does. NetworkManager.Instance.WebSocketServer.OnCallBack_SC_WEBSOCKET_GametableHistory += CallBack_CS_WEBSOCKET_GametableHistory; This is adding the CallBack_CS_WEBSOCKET_GametableHistory as an Event Handler but not calling that function to execute.
e6c75f5e7a0912e34bae521d7a8c710db2b4cb1b0aa7081e3941caea0a04be85
['ccf44e23db8d4c91bf672a33e022ac19']
I'm not sure how you are getting the CN but when I need the SamAccountNames from a group I usually write something like this, var samNames = new List<string>(); using (var group = GroupPrincipal.FindByIndentity(principalContext, "GroupName")) { if (group != null) { var users = group.GetMembers(true); foreach (UserPrincipal user in users) { samNames.add(user.SamAccountName); } } }
6b07d185f303305391795859216efe3ff51f937d705a9e4b71261fee47864670
['cd0a9528cd7b40178ace05973b5d93fd']
Well, I just figured it out if it helps anybody in the future. For me, I was adding a new column with conditions like SELECT* ,Case WHEN calculated columnX like 'text1' OR calculated columnX like 'text2' OR calculated columnX like 'text3' THEN result END AS columnX FROM TableA but the column after the calculateds should have been columnW. Basically, it was auto-referencing. It didn't gave me an error in the log, and without a debugger, it was quite hard to find. Hope it helps.
91dcca2098f48ee75a594c66f9996df02804b60a2b10a093392f34c8d7d926b9
['cd0a9528cd7b40178ace05973b5d93fd']
im trying to validate an xml file with a schema .xsd and it's not working. I'm in Eclipse and when I right click ->validate the XML file, it doesn't give any error (I made sure to include an error in the Schema file). I've got <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE xml> <rootname xmlns="urn:target" xmlns="http://www.w3.org/2001/XMLSchema-instance" xsi:SchemaLocation="urn:target file:./target.xsd"> at the top of my xml file and ive got <?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:xsd"http://www.w3.org/2001/XMLSchema" targetNamespace="urn:target" xmlns="urn:target" elementFormDefault="qualified"> at the top of my .xsd file. What am i doing wrong?
b9ae0d692b058a89a377673aab89255c40aa875a0509477ff009d28cf1ab4515
['cd1f73074e1e4021bd03b173d346ac8c']
I've a new version of an App that's ' waiting for review' and when it is released to the app store I want this new version to be free whereas the current version is paid. There doesn't seem to be a way to set a separate price for the version in review. Have any other folks ran into this and solved?
8440e972987c5520ad50159d7b73771c027f30f70141b73e6c831a519822717a
['cd1f73074e1e4021bd03b173d346ac8c']
I have a set of Collections whose names all start with ABC and I want to write a single rule that applies to all of them regardless of what follows ABC. Something like: match /ABC*/{anyid} { allow read, write; } Is this possible? In the Rules Console there are no syntax errors highlighted, but the Simulator won't allow me to access the table with: GET /ABC123/456 Any ideas?
3a656192f1cb227dec351a1a0ea4dfe151cad7cc3a000d45a4ad8747ba6540e1
['cd28afed56cd4b8380dd9038a94ea8bf']
I'm making outlook calendar appointments application in asp.net. this code is working fine. But I want to set organizer name in appointment which is not working in email. I have attached my email screenshot. kindly help me out to fix this issue. See Organizer name in image is Unknown System.Text.StringBuilder sbICSFile = new System.Text.StringBuilder(); DateTime dtNow = DateTime.Now; sbICSFile.AppendLine("BEGIN:VTIMEZONE"); sbICSFile.AppendLine("TZID:US/Pacific"); sbICSFile.AppendLine("BEGIN:STANDARD"); sbICSFile.AppendLine("DTSTART:20071104T020000"); sbICSFile.AppendLine("RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=11"); sbICSFile.AppendLine("TZOFFSETFROM:-0700"); sbICSFile.AppendLine("TZOFFSETTO:-0800"); sbICSFile.AppendLine("TZNAME:PST"); sbICSFile.AppendLine("END:STANDARD"); sbICSFile.AppendLine("BEGIN:DAYLIGHT"); sbICSFile.AppendLine("DTSTART:20070311T020000"); sbICSFile.AppendLine("RRULE:FREQ=YEARLY;BYDAY=2SU;BYMONTH=3"); sbICSFile.AppendLine("TZOFFSETFROM:-0800"); sbICSFile.AppendLine("TZOFFSETTO:-0700"); sbICSFile.AppendLine("TZNAME:PDT"); sbICSFile.AppendLine("END:DAYLIGHT"); sbICSFile.AppendLine("END:VTIMEZONE"); // Define the event. sbICSFile.AppendLine("BEGIN:VEVENT"); sbICSFile.Append("DTSTART;TZID=" + ddlStartTZ.Text + ":"); sbICSFile.Append(calStartDate.SelectedDate.Year.ToString()); sbICSFile.Append( FormatDateTimeValue(calStartDate.SelectedDate.Month)); sbICSFile.Append( FormatDateTimeValue(calStartDate.SelectedDate.Day) + "T"); sbICSFile.AppendLine(ddlStartTime.SelectedValue); sbICSFile.Append("DTEND;TZID=" + ddlEndTZ.Text + ":"); sbICSFile.Append(calEndDate.SelectedDate.Year); sbICSFile.Append( FormatDateTimeValue(calEndDate.SelectedDate.Month)); sbICSFile.Append( FormatDateTimeValue(calEndDate.SelectedDate.Day) + "T"); sbICSFile.AppendLine(ddlEndTime.SelectedValue); sbICSFile.AppendLine(string.Format("ORGANIZER;CN=\"rashid abbas\":MAILTO: <EMAIL_ADDRESS>")); sbICSFile.AppendLine("SUMMARY:" + txtEventSummary.Text); sbICSFile.AppendLine("DESCRIPTION:" + txtEventDescription.Text); // sbICSFile.AppendLine(string.Format("ORGANIZER:MAILTO:{0}", objApptEmail.Name)); sbICSFile.AppendLine("UID:1"); sbICSFile.AppendLine("SEQUENCE:0"); sbICSFile.Append("DTSTAMP:" + dtNow.Year.ToString()); sbICSFile.Append(FormatDateTimeValue(dtNow.Month)); sbICSFile.Append(FormatDateTimeValue(dtNow.Day) + "T"); sbICSFile.Append(FormatDateTimeValue(dtNow.Hour)); sbICSFile.AppendLine(FormatDateTimeValue(dtNow.Minute) + "00"); sbICSFile.AppendLine("END:VEVENT"); sbICSFile.AppendLine("END:VCALENDAR");
e75a1b37157f33f90e7a2a4d07ad46cc8c1bf6f8b2776168357299b6b686f41f
['cd28afed56cd4b8380dd9038a94ea8bf']
I'm using Twilio api in php with native library and I tried many solutions from stackoverflow or from their official website but none of them is working. please think before marking it as already answered. I'm providing some proofs that its really not working. please help if I'm missing some headers etc. because i tried official solution and it doesn't work. $sid="xxxxxxxxxxx"; $token="xyxxxcxc"; $client=new Client($sid, $token); function Send_Message($client, $msg, $to){ return $client->messages->create( $to, array('from' => '<PHONE_NUMBER>', 'body'=>$msg ) ); } Please check this image all possible solution
40d900bb2dff9a04339ab190294340dd39b9219273692c645912bb058c09a0f1
['cd2bc8e7d20f44eaa963cac2f1e37882']
I am using Oracle ODP.NET, Managed driver and Entity Framework 6. I created my tables using the code-first approach but wasn't able to add any records due to a null primary key. The solution was to grant my user both: 'CREATE SEQUENCE' and 'CREATE TRIGGER' permissions and re-create the schema. I realized this after using the -verbose flag in the package management console
8d799390a563b15999185dac7cbd99f6fdbfddbbe9c41573520408da04e2874a
['cd2bc8e7d20f44eaa963cac2f1e37882']
I have two models in my Rails app which form a one_to_many relationship. The first model, store, represents a brick and mortar store and has latitude and longitude columns which are being geocoded correctly using the 'geocoder' gem and an address column. The store has_many products. The product has_one store. I would like to return the index of products based on proximity to an address which the user inputs in the search form. Here are the relevant parts of my code as well as my attempt at implementing the search: in schema.rb: create_table "products", force: true do |t| t.string "title" ... t.integer "store_id" end create_table "stores", force: true do |t| ... t.string "business_address" t.float "latitude" t.float "longitude" end in store.rb class Store < ActiveRecord<IP_ADDRESS>Base has_many :products geocoded_by :business_address after_validation :geocode, :if => :business_address_changed? end in product.rb class Offer < ActiveRecord<IP_ADDRESS>Base belongs_to :store end in views/products/search.html.erb ... <%= form_tag products_path, :method => 'get' do %> <p> Find products near<br /> <%= text_field_tag :custom_address, params[:custom_address] %><br /> </p> <p> <%= submit_tag "Search", :name => nil %> </p> <% end %> in products_controller.rb def index @products = Store.near(params[:custom_address], 100, order: :distance, :select => "products.*") end The above index method generates a ActiveRecord<IP_ADDRESS>StatementInvalid in Products#index error I am not sure how to continue. Obviously there is a problem with the way I am using the near method and :select but I can't wrap my head around it. How can I return the products sorted by distance? I am using MySQL as the database adapter; I have heard of issues due to a lack of trig functions with SQLite.
6c157af62513f8cbefa0cd487fe8a58d4961e6bf2e002f9364864ba81560d27c
['cd2ce4bdd57c45f9919c02f4bcb2d6c1']
In general my code works very well with one issue i can't get resolved. My ESP32-cam runs a websocket server streaming the camera to a websocket client. I've improved a bit the wifimulti funktionality with the ability to reconnect in case of a lost wifi connectivity. A simple reboot does the trick. Unfortunally this works only with an active websocket connection. Without a websocket connection the ESP32 doesn't recognize the broken connection and is lost until manual intervention. I can't see the cause for this dependency. #include <ArduinoWebsockets.h> #include <WiFiMulti.h> #include <WiFi.h> #include <ESPAsyncWebServer.h> #include "esp_camera.h" #include "soc/soc.h" #include "soc/rtc_cntl_reg.h" int led = 4; WiFiMulti wifiMulti; int index_html_gz_len = 1176; const uint8_t index_html_gz[] = { 0x1f, 0x8b, 0x08, 0x00, 0x9c, 0x50, 0x72, 0x5f, 0x00, 0xff, 0xb5, 0x56, 0x6d, 0x6f, 0xdb, 0x36, 0x10, 0xfe, 0x2c, 0xff, 0x0a, 0x4e, 0x41, 0x51, 0x07, 0x89, 0x64, 0x27, 0x99, 0xbb, 0x46, 0xb6, 0x03, 0x34, 0x6b, 0x8b, 0x0d, 0x28, 0xd0, 0x61, 0xe9, 0x50, 0xec, 0xd3, 0x40, 0x89, 0x27, 0x9b, 0x0b, 0x45, 0x0a, 0x24, 0x15, 0xc7, 0x1d, 0xfa, 0xdf, 0x7b, 0xa4, 0x24, 0x5b, 0xaa, 0x5d, 0xc7, 0x1d, 0x36, 0x01, 0xb6, 0x28, 0xde, 0x0b, 0x9f, 0x7b, 0xe1, 0x43, 0xce, 0x7e, 0x78, 0xfd, 0xfe, 0xe7, 0x0f, 0x7f, 0xfe, 0xf6, 0x86, 0x2c, 0x6d, 0x21, 0x6e, 0x06, 0xb3, 0xf6, 0x05, 0x94, 0xe1, 0xcb, 0xd8, 0xb5, 0x80, 0x9b, 0x41, 0x40, 0x08, 0x71, 0x7f, 0x71, 0x2e, 0xe0, 0x31, 0xca, 0x94, 0xb4, 0x94, 0x4b, 0xd0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x18, 0xb9, 0x1d, 0xaf, 0xcb, 0x4a, 0xc6, 0x4b, 0x85, 0x7a, 0x67, 0x24, 0x4c, 0x5e, 0x5e, 0x6e, 0xcf, 0xa8, 0xda, 0x7a, 0x65, 0xd0, 0x52, 0xe2, 0xc2, 0x1f, 0x21, 0xbd, 0xc3, 0xb3, 0x00, 0xec, 0xb0, 0x76, 0x88, 0xcb, 0xb4, 0x9a, 0x18, 0x9c, 0x92, 0x05, 0x18, 0x43, 0x17, 0x80, 0xda, 0x9b, 0xd1, 0x4d, 0x97, 0x63, 0x5c, 0x02, 0x1b, 0x49, 0xcc, 0xa8, 0xa5, 0xd8, 0x72, 0x06, 0x0b, 0x93, 0x81, 0xca, 0xc9, 0xad, 0x50, 0xa9, 0x2b, 0x50, 0xa7, 0xd2, 0xae, 0x54, 0x95, 0x16, 0xef, 0xd3, 0xbf, 0xf1, 0xd6, 0x8c, 0x4e, 0x71, 0xc5, 0x38, 0xc3, 0xf8, 0x2c, 0xd4, 0x53, 0xf8, 0xdd, 0x73, 0xb7, 0x8d, 0xda, 0x5b, 0x63, 0xaa, 0x62, 0xdc, 0xba, 0x68, 0xb8, 0x71, 0xd2, 0x51, 0xc0, 0xe4, 0x37, 0x83, 0xa9, 0x63, 0x8a, 0xa6, 0x69, 0x70, 0x58, 0x93, 0x04, 0x72, 0x86, 0x2d, 0xc4, 0x17, 0x9e, 0x48, 0xad, 0x58, 0x69, 0x0d, 0x00, 0x00 }; #define PWDN_GPIO_NUM 32 #define RESET_GPIO_NUM -1 #define XCLK_GPIO_NUM 0 #define SIOD_GPIO_NUM 26 #define SIOC_GPIO_NUM 27 #define Y9_GPIO_NUM 35 #define Y8_GPIO_NUM 34 #define Y7_GPIO_NUM 39 #define Y6_GPIO_NUM 36 #define Y5_GPIO_NUM 21 #define Y4_GPIO_NUM 19 #define Y3_GPIO_NUM 18 #define Y2_GPIO_NUM 5 #define VSYNC_GPIO_NUM 25 #define HREF_GPIO_NUM 23 #define PCLK_GPIO_NUM 22 camera_fb_t * fb = NULL; using namespace websockets; WebsocketsServer WSserver; AsyncWebServer webserver(80); void setup() { WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0); //disable brownout detector Serial.begin(115200); // Ai-Thinker: pins 2 and 4 ledcSetup(2, 50, 16); //channel, freq, resolution ledcAttachPin(2, 2); // pin, channel pinMode(led, OUTPUT); // pin4 led camera_config_t config; config.ledc_channel = LEDC_CHANNEL_0; config.ledc_timer = LEDC_TIMER_0; config.pin_d0 = Y2_GPIO_NUM; config.pin_d1 = Y3_GPIO_NUM; config.pin_d2 = Y4_GPIO_NUM; config.pin_d3 = Y5_GPIO_NUM; config.pin_d4 = Y6_GPIO_NUM; config.pin_d5 = Y7_GPIO_NUM; config.pin_d6 = Y8_GPIO_NUM; config.pin_d7 = Y9_GPIO_NUM; config.pin_xclk = XCLK_GPIO_NUM; config.pin_pclk = PCLK_GPIO_NUM; config.pin_vsync = VSYNC_GPIO_NUM; config.pin_href = HREF_GPIO_NUM; config.pin_sscb_sda = SIOD_GPIO_NUM; config.pin_sscb_scl = SIOC_GPIO_NUM; config.pin_pwdn = PWDN_GPIO_NUM; config.pin_reset = RESET_GPIO_NUM; config.xclk_freq_hz = 20000000; config.pixel_format = PIXFORMAT_JPEG; //init with high specs to pre-allocate larger buffers config.frame_size = FRAMESIZE_SXGA; config.jpeg_quality = 10; config.fb_count = 2; // camera init esp_err_t err = esp_camera_init(&config); if (err != ESP_OK) { Serial.printf("Camera init failed with error 0x%x", err); return; } sensor_t * s = esp_camera_sensor_get(); s->set_framesize(s, FRAMESIZE_SVGA); wifiMulti.addAP("ssid_from_AP_1", "your_password_for_AP_1"); wifiMulti.addAP("ssid_from_AP_2", "your_password_for_AP_2"); wifiMulti.addAP("ssid_from_AP_3", "your_password_for_AP_3"); Serial.println("Connecting Wifi..."); if (wifiMulti.run() == WL_CONNECTED) { Serial.println(""); Serial.println("WiFi connected"); Serial.print("IP address: "); Serial.println(WiFi.localIP()); Serial.print("SSID: "); Serial.println(WiFi.SSID()); } webserver.on("/", HTTP_GET, [](AsyncWebServerRequest * request) { AsyncWebServerResponse *response = request->beginResponse_P(200, "text/html", index_html_gz, sizeof(index_html_gz)); response->addHeader("Content-Encoding", "gzip"); request->send(response); }); webserver.begin(); WSserver.listen(82); Serial.print("WSserver alive!"); Serial.println(WSserver.available()); } int main() { while (WSserver.available()) { // accept another client WebsocketsClient client = WSserver.accept(); // wait for a message for the client and send an echo response auto message = client.readBlocking(); client.send("Echo: " + message.data()); Serial.println(message.data()); // close the connection client.close(); } } void handle_message(WebsocketsMessage msg) { Serial.println(msg.data()); //Serial.println(tiltValue); if (msg.data() == "Aus") { digitalWrite(4, LOW); } else { digitalWrite(4, HIGH); } } void loop() { if (wifiMulti.run() != WL_CONNECTED) { Serial.println("WiFi not connected!"); delay(500); WiFi.disconnect(); Serial.println("\nReboot"); ESP.restart(); } auto client = WSserver.accept(); client.onMessage(handle_message); while (client.available()) { client.poll(); fb = esp_camera_fb_get(); client.sendBinary((const char *)fb->buf, fb->len); esp_camera_fb_return(fb); fb = NULL; } }
2b905290233a1c240703d3c0d91eb25236e4c2eae52dceff87d757fada372203
['cd2ce4bdd57c45f9919c02f4bcb2d6c1']
Seems not the right place for question like these. After some try and error i got it running. Two functions called in the void loop did the job. void camera() { if (WSserver.poll()) { auto client = WSserver.accept(); if (client.available()) { client.onMessage(handle_message); while(client.available()) { client.poll(); fb = esp_camera_fb_get(); client.sendBinary((const char *)fb->buf, fb->len); esp_camera_fb_return(fb); fb = NULL; } } } } void wifireconnect() { if (wifiMulti.run() != WL_CONNECTED) { Serial.println("WiFi not connected!"); delay(500); WiFi.disconnect(); Serial.println("\nReboot"); ESP.restart(); } } void loop() { camera(); wifireconnect(); }
9fd3418a1577f927a2254a36e8e9e2d6bee6c691f02c548be91d0b577b0a453a
['cd4edd02454045faac5bfb07719f61f9']
I believe I have fixed the graph, all my data functions (or appears to) as intended. Thank you for the help <PERSON>! Public Class Form1 Dim population() As Single = {97, 2, 1, 0} Dim susceptible As Integer = population(0) Dim firstDay As Integer = population(1) Dim twoDays As Integer = population(2) Dim immune As Integer = population(3) Dim currentDay, newfirstDay, newtwoDays, newImmune, newSusceptible Dim advanced1Day As Boolean = False Dim tempArray() Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub Private Sub day0_Click(sender As Object, e As EventArgs) Handles day0.Click 'Create the graph Dim gr As Graphics = chart.CreateGraphics gr.DrawLine(Pens.Black, 60, 115, 475, 115) 'x-axis gr.DrawLine(Pens.Black, 60, 115, 60, 0) 'y-axis gr.DrawLine(Pens.Black, 55, 0, 65, 0) 'Tickmark gr.DrawString("10,000", Me.Font, Brushes.Black, 5, 0) gr.DrawString("Susceptible", Me.Font, Brushes.Black, 90, 125) gr.DrawString("Sick 1 Day", Me.<PERSON>, Brushes.Black, 177, 125) gr.DrawString("Sick 2 Days", Me.<PERSON>, Brushes.Black, 264, 125) gr.DrawString("Immune", <PERSON><PERSON>, Brushes.Black, 351, 125) gr.DrawString("Population * 100", <PERSON><PERSON>, Brushes.Black, 200, 140) 'Display the values for Day 0 of the epidemic gr.FillRectangle(Brushes.Blue, 100, 18, 30, susceptible) 'suscpetible gr.FillRectangle(Brushes.Blue, 187, 113, 30, firstDay) 'sick one day gr.FillRectangle(Brushes.Blue, 274, 114, 30, twoDays) 'sick two days End Sub Private Sub advanceDay_Click(sender As Object, e As EventArgs) Handles advanceDay.Click advanceFirstDay() spreadIllness() End Sub Private Sub chart_Click(sender As Object, e As EventArgs) Handles chart.Click End Sub Sub spreadIllness() chart.Refresh() Dim gr As Graphics = chart.CreateGraphics gr.DrawLine(Pens.Black, 60, 115, 475, 115) 'x-axis gr.DrawLine(Pens.Black, 60, 115, 60, 0) 'y-axis gr.DrawLine(Pens.Black, 55, 0, 65, 0) 'Tickmark gr.DrawString("10,000", <PERSON><PERSON>, Brushes.Black, 5, 0) gr.DrawString("Susceptible", <PERSON><PERSON>, Brushes.Black, 90, 125) gr.DrawString("Sick 1 Day", <PERSON><PERSON>, Brushes.Black, 177, 125) gr.DrawString("Sick 2 Days", <PERSON><PERSON>, Brushes.Black, 264, 125) gr.DrawString("Immune", <PERSON><PERSON>, Brushes.Black, 351, 125) gr.DrawString("Population * 100", <PERSON><PERSON>, Brushes.Black, 200, 140) newImmune += twoDays newtwoDays = firstDay newSusceptible = susceptible - firstDay - newtwoDays - newImmune currentDay = CInt(0.0001735 * (newtwoDays * 100) * (newSusceptible * 100)) newfirstDay = CInt(currentDay / 100) gr.FillRectangle(Brushes.Blue, 100, 114 - newSusceptible, 30, newSusceptible) 'suscpetible gr.FillRectangle(Brushes.Blue, 187, 114 - newfirstDay, 30, newfirstDay) 'sick one day gr.FillRectangle(Brushes.Blue, 274, 114 - newtwoDays, 30, newtwoDays) 'sick two days gr.FillRectangle(Brushes.Blue, 361, 114 - newImmune, 30, newImmune) 'sick two days End Sub Sub advanceFirstDay() If advanced1Day = True Then Exit Sub End If chart.Refresh() Dim gr As Graphics = chart.CreateGraphics gr.DrawLine(Pens.Black, 60, 115, 475, 115) 'x-axis gr.DrawLine(Pens.Black, 60, 115, 60, 0) 'y-axis gr.DrawLine(Pens.Black, 55, 0, 65, 0) 'Tickmark gr.DrawString("10,000", <PERSON>, Brushes.Black, 5, 0) gr.DrawString("Susceptible", <PERSON><PERSON>, Brushes.Black, 90, 125) gr.DrawString("Sick 1 Day", <PERSON><PERSON>, Brushes.Black, 177, 125) gr.DrawString("Sick 2 Days", Me.<PERSON>, Brushes.Black, 264, 125) gr.DrawString("Immune", <PERSON><PERSON>, Brushes.Black, 351, 125) gr.DrawString("Population * 100", <PERSON><PERSON>, Brushes.Black, 200, 140) newImmune += twoDays newtwoDays = firstDay newSusceptible = susceptible - firstDay - newtwoDays - newImmune currentDay = CInt(0.0001735 * (newtwoDays * 100) * (newSusceptible * 100)) newfirstDay = CInt(currentDay / 100) gr.FillRectangle(Brushes.Blue, 100, 114 - newSusceptible, 30, newSusceptible) 'suscpetible gr.FillRectangle(Brushes.Blue, 187, 114 - newfirstDay, 30, newfirstDay) 'sick one day gr.FillRectangle(Brushes.Blue, 274, 114 - newtwoDays, 30, newtwoDays) 'sick two days gr.FillRectangle(Brushes.Blue, 361, 114 - newImmune, 30, newImmune) 'sick two days advanced1Day = True End Sub End Class
16889c17c3b83492189b085b888ebebd08fbf6b5502f2803e64f989c7f676dc6
['cd4edd02454045faac5bfb07719f61f9']
I'm having a bit of trouble figuring out an assignment for my Visual Basic course. I am told to assume that a given text file is not in the \bin\Debug folder of my program, so I am trying to throw an exception error and get the correct path from the user via an inputbox but nothing appears to happen, or the variable isn't being set, I'm not entirely sure which. I have my code below, any hints as to why this will not work for me? Thanks! Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load Dim sr As IO.StreamReader Dim age As Integer Dim path As String Try sr = IO.File.OpenText("Ages.txt") age = CInt(sr.ReadLine) txtOutput.Text = "Age is " & age Catch exc As IO.FileNotFoundException path = InputBox("File Ages.txt not found." & vbCrLf & "Please enter the correct path to the file.", _ "Example: C:\Documents\My Text Files") Catch exc As InvalidCastException MessageBox.Show("File 'Ages.txt' contains an invalid age.", "Warning!") Try sr = IO.File.OpenText(path) Finally txtOutput.Text = "Age is " & age End Try Finally Try sr.Close() Catch End Try End Try End Sub
abd878567e006791f46f52fb33dd2ce71a881cd7404483660cc5d6eab0bfef80
['cd62ac9b5ec94588821e0b0ee013a1c1']
I'm not sure if this will make sense but what are your thoughts on making the List collections somehow hold something like references to objects instead of the objects themselves? That way I wouldn't have to get inside the the collections to edit them but still have them make sense in a relational type of way? Is this a thing?
4421e709fef31a2ebf8cf841d4f89568ec80a0dddb68aa2bee77ac759ee28d15
['cd62ac9b5ec94588821e0b0ee013a1c1']
I'm currently trying to learn C# and want to enhance my understanding of Object Oriented Programming (OOP). I'm hoping to accomplish this by experimenting with a small program that keeps track of my school assignments/information. I've constructed classes relating to my Institutions, Semesters(Terms), Courses, and Assignments. My question is whether or not I have created and implemented my classes correctly in regards to the information they represent. My thinking suggests that my classes should not inherit from one another in a parent/child like fashion because they are physically unrelated. However accessing objects through multilevel lists seems impractical (I think).. Is there a better way of doing this that doesn't force me to access object by iterating through collections, but still implements OOP best practices? Program Source Code Entry Point / Main static void Main(string[] args) { List<Institution> Institutions = new List<Institution>(); Institutions.Add(new Institution("My college")); Institutions[0].AddNewTerm("2016", "Spring"); Institutions[0].Terms[0].AddNewCourse("Math 210"); Institutions[0].Terms[0].Courses[0].AddNewAssignment("Chapter 1"); MessageBox.Show(Institutions[0].Terms[0].Courses[0].Assignments[0].Name); } Class List Institution class Institution { public string Name { get; set; } public List<Term> Terms { get; set; } public Institution(string UP_Name) { this.Name = UP_Name; this.Terms = new List<Term>(); } public void AddNewTerm(string NewTermYear, string NewTermSeason) { Terms.Add(new Term(NewTermYear, NewTermSeason)); } } Term class Term { public string Name { get; set; } public string <PERSON> { get; set; } public string Season { get; set; } public List<Course> Courses { get; set; } public Term(string <PERSON>, string <PERSON>) { this.Season = <PERSON>; this.Year = <PERSON>; this.Courses = new List<Course>(); this.Name = (this.Season + " " + this.Year); } public void AddNewCourse(string NewCourseName) { this.Courses.Add(new Course(NewCourseName)); } } Course class Course { public string Name { get; set; } public List<Assignment> Assignments { get; set; } public Course(string UP_Name) { this.Name = UP_Name; this.Assignments = new List<Assignment>(); } public void AddNewAssignment(string NewAssignmentName) { Assignments.Add(new Assignment(NewAssignmentName)); } } Assignment class Assignment { public string Name { get; set; } public Assignment(string UP_Name) { this.Name = UP_Name; } }
dcfd3dd9ed17976fe8aa700923e1918df76b334c9fe3da565dd88356b29374d6
['cd6af58df29b4153ae6888dbc1c14199']
I want to draw something like a donut, so a circle with a hole in the middle. I tried using ctx.clip(), but I realized it limits the path to inside, and I want it to limit the path to the outside. Things to note: this.lineWidth is how thick the "rim" or the outside portion is ctx.beginPath(); // this should be the hole ctx.arc(this.x,this.y,this.r,0,Math.PI*2,false); ctx.clip(); // this should be the outside part ctx.arc(this.x,this.y,this.r+this.lineWidth,0,Math.PI*2,false); ctx.fillStyle = "#00ff00"; ctx.fill(); Instead I'm getting a filled-in circle because it's limiting the path to inside the smaller arc instead of outside it. Is there another method that does the opposite of clip()?
e56d554fb9f569b2e6c6a230327661c2cb06ce012466186d8353584972587801
['cd6af58df29b4153ae6888dbc1c14199']
I've made my own version of an event handler: var EventHandler = function(){} EventHandler.prototype.events = []; EventHandler.prototype.functions = []; EventHandler.prototype.addEventListener = function(e,f,obj) // start { if (obj === undefined) obj = window; this.events.push(e); this.functions.push(f); obj.addEventListener(e,f); }; EventHandler.prototype.removeEventListener = function(e,obj) // stop { if (obj === undefined) obj = window; var i = this.events.indexOf(event); if (i === -1) { return; } obj.removeEventListener(event,this.functions[i]); this.events.splice(i,1); this.functions.splice(i,1); //this.removeEventListener(e,obj); // to remove multiple events of the same type } The problem you have is that only when it runs the start method does it actually add the onclick listener. const MyObj = function(x) { this.x = x; }; MyObj.prototype.start = function(el) { var self = this; el.addEventListener("click",function() { console.log(self.x); }); console.log("started"); console.log(el); }; MyObj.prototype.stop = function(el) { var self = this; el.removeEventListener("click",function() { console.log(self.x); }); console.log("stopped"); }; var test = new MyObj(54); test.start(document.getElementById("thing"));
76da5c0ba306cb98b85fdf97cc637922fc0c7b2f1cff483fd23204707044798e
['cd6c6098ae264535ba0d7a1260394e5d']
Think of each variable in your Java classes as corresponding to an attribute in the JSON. "Attachments" is not in the JSON file. You should be able to remove it and change the variable definition in the Fields class. @Data @JsonIgnoreProperties(ignoreUnknown = true) public class Fields { @JsonProperty private List<Attachment> attachment; }
bc7fd6ea514eea8ca318600fff7bb92cd552da705d8b8f9784091fdc7538fcaa
['cd6c6098ae264535ba0d7a1260394e5d']
Is N really so large that keeping the files open is not an option? At least on Linux the hard limit of possible open files is quite large. ulimit -Hn gives me 1048576 on Xubuntu 20.04. The soft limit is much smaller with 1024 by default but that can be raised using ulimit -n N. Not sure what sensible values for N are but you can try using what you think is the maximum N you will encounter in your application. Note: I do not know if Java imposes limits beyond what the OS does or if keeping a million files open costs a lot of memory (I would expect the memory cost for an InputStream to be in the order of a few KBs). Also, no idea how this works on Windows. The only middle ground I can think of between either opening/closing files all the time or keeping all files open all the time would be to process a number of files at a time and join them into temporary files, then join the temp files to form the final result. Clearly, that avoids the opening/closing scenario but comes at the cost of re-writing the data more often, which might be slow on spinning disks and wears down SSDs if the files are of any significant size.
e4733958fcdd645ad39f7b2bceff883ed47a5d88bdf83bbc62254ebfda242dba
['cd77f3d064764be0b4a7d9022c18da99']
I'm starting to understand. But I have one more question: after looking at a few more examples, it seems that the intersection must be an integer. In the first problem, $\frac14$ appears to occur in every interval. Yet the intersection is empty. Does the intersection have to be an integer?
8646f5a3eb1db8166bc094d802e9dbce12f44a9dbdf9fcc1d5a6e1aaa52643a4
['cd77f3d064764be0b4a7d9022c18da99']
Let U be the universe and let A be a subset of U. Then prove: a. $A$ $\cup$ $A^c$= $U$ b. $A$ $\cap$ $A^c$=$\emptyset$ Proof: a. Let $x$ $\in$ $A$ $\cup$ $A^c$ $\Rightarrow$ $x$ $\in$ $U$ Then $x$ $\in$ $A$ or $x$ $\in$ $A^c$ $\Rightarrow$ $x$ $\in$ $U$ By definition, the complement of a set $A$ is $A^c$ = $U$ $-$ $A$ where $x$ $\in$ U and $x$ $\notin$ $A$. It follows that $x$ $\in$ $A$ or $x$ $\in$ U and $x$ $\notin$ $A$ $\Rightarrow$ $x$ $\in$ $U$ Thus it is proven that $x$ $\in$ $U$ and $A$ $\cup$ $A^c$= $U$. $\blacksquare$ b. Let $x$ $\in$ $A$ $\cap$ $A^c$ $\Rightarrow$ $x$ $\in$ $\emptyset$ Then $x$ $\in$ $A$ and $x$ $\in$ $A^c$ $\Rightarrow$ $x$ $\in$ $\emptyset$ By definition of the complement of A, it follows that $x$ $\notin$ $A$. The intersection is empty and therefore $x$ $\in$ $\emptyset$. $\blacksquare$ These are my proofs. If someone could looks over them to see if I missed anything. That'd be greatly appreciated.
727b0b053c42dba00c3f859a0692e24c85f4634c5102fee7cd3fc85d87a8d9b5
['cd8e54d32fd841758869eeb7b40e7dd3']
I do drop one variable when dummying out my categorical variables. Also, I initially was doing the correlation matrix you mention and dropping variables with pairwise correlation > 0.8. The problem is that in my case, I have a dataset where doing this is not enough, I still get matrix singularity -- presumably because of "complex" multicollinearities involving more than 2 variables being correlated with each other. This is why I tried to move on to VIF analysis, rather than just pairwise correlation testing.
43aa3f126650482554d2e7365a0426b8f6f4712440c567801ff00e211eef6f82
['cd8e54d32fd841758869eeb7b40e7dd3']
I'm trying to run a multiple regression, but I'm getting a singular matrix exception. I assume this means that there is high collinearity among my independent variables, so for each X I produce its own regression with it as the dependent variable, and the other X'es as the independent variables. I do this to calculate its VIF, so that I can determine which X'es to drop from the global regression. However, some of these X regressions ALSO produce singular matrix exceptions. How do I work-around this catch-22? I need to run regressions to calculate the VIFs, but I can't run regressions because the variables are collinear?
c117e35b5e3a0c82cf5d0ad2948fe12e74704eafce74eb578fb8287ddcbdcd3a
['cd9d306ae0be4f85a51ee12b00a7652d']
I want to redirect a subdirectory to a subdomain either using .htaccess or cpanel redirects from domain.in/subfolder to subfolder.domain.in i m using cakephp app for both domain.in and subfolder.domain.in each have separate core library Please help me to solve this Thanks in advance
f0fc46fdedaedb5b9b7d939b24c403092d568d1df1c1036d8eb57115d053e80a
['cd9d306ae0be4f85a51ee12b00a7652d']
myself form action changed to primary-page.php <form action="primary-page.php" id="primary_page"> <input type="text" name="email" /> <input type="submit" value="Submit" /> </form> 1) data validate and stored in DB using ajax ( store-db.php ) 2) email value post to primary-page.php using function frm_submit() var form_validate = $("#primary_page"); form_validate.validate({ rules: { email: { required: true, email: true } }, submitHandler: function () { var param = form_validate.serialize(); var btn_submit = $("#submit"); $.ajax({ type: "POST", url: '/store-db.php', data: param, cache: false, dataType: "json", success: function (response) { frm_submit(); } }); }); function frm_submit() { form = document.getElementById('primary_page'); form.submit(); }
2964acef5e79bcfc1484b6c8d4d8e06db058269ac792f91ca2aba90be161eeb8
['cdbfe7cdb5af443285de569ea3a10dd9']
I have a list of about 26 <section> tags that include some other divs and information. I have it so when you click on a share button, these extra options get shown in that same <section> tag. When you click on the share button, this is the jQuery js I use: selectedPost.animate({ left: -selectedPostWidth }, 200, function(){ }); sharePost.animate({ left: 0 }, 200, function(){ // some stuff }); Now however this is where it gets odd. When you click on one of the buttons inside the share div it plays the reverse animation like so: selectedPost.animate({ left: 0 }, 200, function(){ }); sharePost.animate({ left: 9999 }, 200, function(){ sharePost.hide(); }); So in my list of <section> tags, the first one works fast and no delay. However, once you start moving down the list, the delay get's greater and greater. Until you have about a 4-5 second delay. This only happens on the close function animations, not the open one. I hope I have explained everything alright, if not I'll add more detail. Thanks for any help!
0bfba07cd7748f91320da25844384a9033c85224413bd07722d3062920ab8094
['cdbfe7cdb5af443285de569ea3a10dd9']
After much troubleshooting and debugging I figured out the issue comes down to cookies. I simply cannot read cookies from a external request for the bookmarklet. I'll have to keep using a token (not a big deal) Chrome given the correct permissions allows you to send your session data/cookies to your authorized website. Thus why it works. This is a little harder to do in Safari but still possible so I should be able to make this work. This website https://chunlianglyu.com/2014/11/27/from-chrome-extension-to-safari-extension/ seems to have have the answers to my questions and I should be able to make it work based on the info there.
59ebcdc0008cf431ad9137f25c11524016b9396a7d7fec1e1c125e5511ccb7e1
['cdcb3d829d82490dbb3f172a6dc43555']
For a HTML button: <button type="button" id="100">100%</button> I have a java script function, that swaps 2 background colors of that button: const but1 = document.getElementById("100"); n=0; but.addEventListener("click", function (){ if (n==0) { but1.style.backgroundColor = "rgb(225, 165, 0)"; n=1; } else { but1.style.backgroundColor = "rgb(225, 165, 0,0)"; n=0; } }); Works fine. But i want to create more buttons, and don`t want to copy the same function every time. So to make it more simple, ive written a function that will take parameters , lets say "b" (for buttons),"c1" and "c2" (for colors), and "x" - that represents the "n" value (for every button). So my java script (for the HTML button) with example set of two buttons const but1 = document.getElementById("button"); n=0; function colorSwitch (b, c1, c2, x){ if (x==0) { b.style.backgroundColor = c1; x=1; } else { b.style.backgroundColor = c2; x=0; } } // orange set const cOrange = "rgb(225, 165, 0)"; const cOrangeT = "rgb(225, 165, 0,0)"; but1.addEventListener("click", function(){ colorSwitch(but1, cOrange, cOrangeT, n); }); The problem i have is with "x" parameter. It seems to grab the initial "0" value, then it is set to "1". But when i click the button again the initial value is again "0". So there is no loop and the color doesn't swap. What am i not understanding in behavior of "x", and how to code it correctly?
dbc888280175bf38656bbdc316faadf2f17cbbf86216f6144816085705bdf73b
['cdcb3d829d82490dbb3f172a6dc43555']
The problem was probably in different versions of the icons i was using, and different version declared in the head link (i was using bootstrap v4.x). That probably was causing conflict when i tried to use icons v5 - and they were appearing deformed. Ps. This particular example above has different angles of the font in different versions. I've downloaded Font Awesome on my PC and everything running sweet now. https://fontawesome.com/how-to-use/on-the-web/setup/hosting-font-awesome-yourself
425b2785b1a47377afe8c1763b4370bffd0a8c80eff701b3d7193b2c14f5fd1a
['cdcdade974284556a3844ceb92f5c166']
Разработали приложение, используя Python 3.7, flask (конечно WSGI-mode), bootsrap, AJax. Приложение установленно Ubuntu 16.04, Apache. Все нормально работает. Может кто-нибудь подсказать: 1) Как определить требования к серверу что бы он выдержал 1.000 / 10.000 пользователей одновременно? 2) Будет ли падать сервер из-за того что мы не пользуемся SingleTone? Нужно ли создавать SingleTone или использовать что-то другое для оптимизации пула соеденинений (к примеру PgBouncer)? Или для нашего числа соединений об этом можно не беспокоиться? Данные лежат в postgreSQL. Для работы с базой данных (PostgerSQL) использовался простой код: == pg_conn = psycopg2.connect(db_url) cur = pg_conn.cursor() cur.execute(my_sql) ... ... ... pg_conn.close() ==
0be0eb2ba2df82e4897d92fd61cf3e4e14dc3b55e1645a92b7732aa93377604f
['cdcdade974284556a3844ceb92f5c166']
Let $$ f(x, y) = \begin{pmatrix} h_{1}(x, y) & h_{2}(x, y) \end{pmatrix} \begin{pmatrix} h_{1,1}(x, y) & h_{1,2}(x, y) \\ h_{2,1}(x, y) & h_{2,2}(x, y) \end{pmatrix}^{-1} \begin{pmatrix} k_{1} \\ k_{2} \end{pmatrix}. $$ I want to calculate its partial derivatives $\frac{\partial f}{\partial x}$ and $\frac{\partial f}{\partial y}$. The problem I have concerns the derivative of the inverse matrix. How can I do that? Any suggestions will be appreciated.
085a98cf0808e38f0dcab6b4bfa8e87c9f2d68b658151ddba43a7e0456382b47
['cddba9ab758445b386c968c1932790f8']
Im new to JSON (and not sure if its the right way to do that), my problem is to deserialize my classes, all models implements this interface: public interface IPersistent { object Id { get; set; } } Example of class: public class ModelTest : IPersistent { private int? _id; public object Id { get { return this._id; } set { this._id = (int?)value; } } public string Name { get; set; } } Serialize method: public void SerializeData<T>(T[] data) { var settings = new JsonSerializerSettings { PreserveReferencesHandling = PreserveReferencesHandling.Objects, DateFormatHandling = DateFormatHandling.IsoDateFormat }; var result = JsonConvert.SerializeObject(data, Formatting.Indented, settings); //more things happen, but not affect serialized data. } Deserialize method: public T[] DeserializeData<T>(string objCached) { var settings = new JsonSerializerSettings { PreserveReferencesHandling = PreserveReferencesHandling.Objects, DateFormatHandling = DateFormatHandling.IsoDateFormat }; //not sure if a need this settings, but... T[] result = JsonConvert.DeserializeObject<T[]>(objCached, settings); //error here. return result; } Error: Message=Specified cast is not valid. objCached data: [ { "$id": "1", "Id": 1000, "Name": "Name 1" }, { "$id": "2", "Id": 2000, "Name": "Name 2" }, { "$id": "3", "Id": 3000, "Name": "Name 3" }, { "$id": "4", "Id": 4000, "Name": "Name 4" } ] I tried validate JSON result using: http://json2csharp.com/ Result: public class RootObject { public string __invalid_name__$id { get; set; } public int Id { get; set; } public string Name { get; set; } } I'm looking for something that changes just the methods (Serialize and Deseriaize), can't change ALL my models (its a legacy without any unit test).
2dcaf2e5ceacb29ea9f7662db4f38852b5887422500031189045705a32f410d8
['cddba9ab758445b386c968c1932790f8']
Take a look at flattening, unflattening Here a example of your code: [Test] public void Mapper() { var course = new Course { Name = "just a simple name" }; var applicantList = new List<Applicant>() { new Applicant {Course = course, CourseId = 1, Name = "Applicant Course 1"}, new Applicant {Course = course, CourseId = 2, Name = "Applicant Course 2"} }; course.Applicants = applicantList; var courseView = new CourseListViewModel(); courseView.InjectFrom<FlatLoopValueInjection>(course); //just set other props here, like you did with AutoMapper. courseView.Applicants = course.Applicants.Count; var applicantViewList = applicantList.Select(s => { var applicantView = new ApplicantListViewModel(); applicantView.InjectFrom<FlatLoopValueInjection>(s); return applicantView; }).ToList(); Assert.AreEqual(course.Name, courseView.Name); Assert.AreEqual(course.Applicants.Count, courseView.Applicants); Assert.AreEqual(applicantList[0].Name, applicantViewList[0].Name); Assert.AreEqual(applicantList[0].Course.Name, applicantViewList[0].CourseName); } Hope it Helps!
e2a42eefa53fb3ca4fab953a06e9ce6c75748784e391d64bfd60a218c768e545
['cde4593fe3f040edb802f47caae3c19e']
Trying to migrate the database for an early project of mine to the cloud. Although the code that built everything is janky, the db structure and data itself are fairly sound. I could probably figure out a dump method of migrating everything (pgdump, etc), but I still have much to learn about this stuff so I'd rather get the experience by doing it step-by-step. Source: A ~1gb sqlite database file Destination: Google CloudSQL running Postgres v9.6 Already created the tables in the cloud db, using the same schema & table names as the sqlite db. Not worried about schema enforcement errors because I haven't yet defined foreign keys in the cloud. The Plan: Create distinct, concurrent SQLAlchemy connections to each database, then read sqlite --> write to CloudSQL. Went back and defined data structures for each table using SQLAlchemy. Snippet from models.py: from sqlalchemy import Column, Integer, String from sqlalchemy.ext.declarative import declarative_base, declared_attr Base = declarative_base() class PublicMixin(object): @declared_attr def __tablename__(cls): return cls.__name__.lower() class Category(PublicMixin, Base): id = Column(Integer, primary_key=True) name = Column(String) class Player(PublicMixin, Base): id = Column(Integer, primary_key=True) name = Column(String) username = Column(String) notes = Column(String) [...] I then duplicated this file as models_lite.py so I could import each model without potential for interference. Here's the migration.py file I tried to run as a proof of concept: from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from models import Base, Category, Player from models_sqlite import Base as Base_lite, Category as Category_lite, Player as Player_lite # SQLite db engine_lite = create_engine('sqlite:///mydb.sqlite') Base_lite.metadata.bind = engine_lite LiteSession = sessionmaker() LiteSession.bind = engine_lite session_lite = LiteSession() # CloudSQL, via local proxy engine_cloud = create_engine('postgresql+psycopg2://USER:PW@/DBNAME?host=/cloudsql/INSTANCE') Base.metadata.bind = engine_cloud CloudSession = sessionmaker() CloudSession.bind = engine_cloud session_cloud = CloudSession() category_lite = session_lite.query(Category_lite).all() category_cloud = Category() for c in category_lite: category_cloud = c session_cloud.add(category_cloud) session_cloud.commit() Running this yields the following error: File "postgres migration.py", line 68, in <module> session_cloud.add(category_cloud) [...] sqlalchemy.exc.InvalidRequestError: Object '<Category at 0x11141b908>' is already attached to session '1' (this is '2') Explicitly setting each column inside the for loop works (i.e.: category_cloud.id = c.id), but there must be a way to avoid having to do this for every column in every table. How should I approach this?
3dd4e6fd0350159b5b985068c7ee7f42dcaf659b84700ed63a8d4172bfed4929
['cde4593fe3f040edb802f47caae3c19e']
Using PyCharm Pro 2019.1.1 on MacOS, writing my app in Python 3 w/Flask, Jinja2, etc. A version of my app is already deployed using App Engine Flexible, and I want the next version to use Datastore for my production environment variables. Having problems trying to follow this post, which requires the following import: from google.appengine.ext import ndb For the life of me, I cannot seem to get this import working. I'm sure it will work once my app is deployed (famous last words?), but I'd love to get it working locally too. Initially tried pip install google-appengine and pip install appengine-sdk, only to discover neither could be installed on my venv. Google Cloud SDK v241.0.0 is installed at /Users/<me>/google-cloud-sdk, and gcloud commands work in the terminal. gcloud components list shows the app-engine-python component is installed, which is probably irrelevant since I'm using a venv in PyCharm. PyCharm's documentation instructed me to select the App Engine SDK directory under Languages & Frameworks > Google App Engine. Selecting /Users/<me>/google-cloud-sdk yields this error: Traceback (most recent call last): File "/Users/<me>/Library/Application Support/JetBrains/Toolbox/apps/PyCharm-P/ch-0/191.6605.12/PyCharm.app/Contents/helpers/pydev/pydevconsole.py", line 5, in <module> from _pydev_comm.rpc import make_rpc_client, start_rpc_server, start_rpc_server_and_make_client File "/Users/<me>/Library/Application Support/JetBrains/Toolbox/apps/PyCharm-P/ch-0/191.6605.12/PyCharm.app/Contents/helpers/pydev/_pydev_comm/rpc.py", line 4, in <module> from _pydev_comm.server import TSingleThreadedServer File "/Users/<me>/Library/Application Support/JetBrains/Toolbox/apps/PyCharm-P/ch-0/191.6605.12/PyCharm.app/Contents/helpers/pydev/_pydev_comm/server.py", line 4, in <module> from _shaded_thriftpy.server import TServer File "/Users/<me>/Library/Application Support/JetBrains/Toolbox/apps/PyCharm-P/ch-0/191.6605.12/PyCharm.app/Contents/helpers/third_party/thriftpy/_shaded_thriftpy/server.py", line 5, in <module> import logging File "/Users/<me>/google-cloud-sdk/lib/surface/logging/__init__.py", line 22, in <module> from googlecloudsdk.calliope import base ModuleNotFoundError: No module named 'googlecloudsdk' Selecting /Users/<me>/google-cloud-sdk/platform/google_appengine seems to get me a bit further, but still yields an error: Traceback (most recent call last): File "/Users/<me>/Library/Application Support/JetBrains/Toolbox/apps/PyCharm-P/ch-0/191.6605.12/PyCharm.app/Contents/helpers/pydev/pydevconsole.py", line 5, in <module> from _pydev_comm.rpc import make_rpc_client, start_rpc_server, start_rpc_server_and_make_client File "/Users/<me>/Library/Application Support/JetBrains/Toolbox/apps/PyCharm-P/ch-0/191.6605.12/PyCharm.app/Contents/helpers/pydev/_pydev_comm/rpc.py", line 1, in <module> import socket File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socket.py", line 53, in <module> from enum import IntEnum, IntFlag ImportError: cannot import name 'IntFlag' from 'enum' (/Users/<me>/google-cloud-sdk/platform/google_appengine/lib/grpcio-1.9.1/enum/__init__.py) As the console notes, there is no IntFlag object in 'enum'. These errors are immediately shown when I launch Python Console; I don't even get a cursor. Where am I going wrong?
39f9362c23f48a2fbc25cf69bf699d66eeb1b11cd6409c4916a94b09cb1f7c94
['cde9988cea2846ac9bd90d2cf2cdf131']
You're right, I was struggling to find the tool. The layout I see on my computer is drastically different than all of the layouts I've seen in screenshots. Everything shows the old file/dropdown menu format, while I see the newer "ribbon" style. I eventually found it under the "Analysis" tab of the ribbon, where it is called simply "Tools." Clicking on it brought up a menu, "Geoprocessing - Favorites," where I could then click on "Toolboxes." From there it was easy. Thanks for all the help, everyone!
541f80ce3f3a7b856a66106093482575f89991b7dba4e111f28b03dccebf9cc5
['cde9988cea2846ac9bd90d2cf2cdf131']
Thank you for the comments. I guess the real issue here is that we're dealing with an area where the theory diverges from the practice in a way that is non-intuitive. Probably the right answer is not to model things with the ratio of two normal distributions in practice.
7e3ebe11b68d4f8515590429e5265d912ad13f868d77b8e232f57e9c58c9ed2c
['cdec26dccc63465ab4800869573aaa87']
Below is the definition of Stream type taken from fp in scala chapter 5 sealed trait Stream[+A] case object Empty extends Stream[Nothing] case class Cons[+A](h: () => A, t: () => Stream[A]) extends Stream[A] We can write the following method that will return an infinite stream of a def constant[A](a: A): Stream[A] = { lazy val x: Stream[A] = Cons(() => a, () => x) x } What I do not quite understand is, why the compiler doesn't throw forward reference extends over definition of value when x is defined as lazy val (otherwise it does)? I found an old post here: https://www.scala-lang.org/old/node/6502 but still looking for a clear explanation.
58628020826ad37427bca432b4a908ea823c6090ec9c1da2281e72b2d9671800
['cdec26dccc63465ab4800869573aaa87']
I have a bare bone project with just one Object and it runs fine in sbt I have the following in my launch.json in vs code And when I try to run it, I get the following error: I haven't yet been successful in finding out a solution.
305b0ed1bb4205e7112c34223cb9847e8830668c0918c2fd8a282210cedaa0c0
['cdfcfbd3657b4d92989296c0449539d4']
I am looking for a command to scan for any connected wireless device to my computer. My computer has a problem that the wireless device getting disconnected if i put my hand on some part of it, so I have to restart the computer to find the wireless device again. Is thre any command in linux which scan for connected wireless devices that I can just and reconnect the wireless device?
943b483cc35351cffe0fe6ab2286bf02bd1025381c0f9f3d1512f9fbb0cf2b43
['cdfcfbd3657b4d92989296c0449539d4']
I have an application which when I run it, it gives me the following error: paraview: error while loading shared libraries: libpython2.6.so.1.0: cannot open shared object file: No such file or directory I already have python 2.7 installed. When I type python, I can write codes. It seems it needs Python 2.6. I download and install the python 2.6 by downloading it and running: ./configure make -j6 make checkinstall But when I look for libpython2.6.so* in my computer, no files are found and still the application is crying for that. Can anyone please help me?
5f4c0d3dd025e553a3ce8c19a253d9218b15ae7ac2d542bd3e647bc955ac577d
['ce0422d37b2b40f38a81a55a8bdceb46']
I'm making the assumption, based on <PERSON>'s suggestion, that the issue was a corrupted Bodhi image on my thumbdrive. I burned a fresh image of Bodhi (3.0 this time instead of 2.4) to another thumbdrive and was able to quickly and effortlessly install the OS without a hitch. Should anyone else run into a similar problem, I suggest first reburning the ISO and starting over. That seems overtly obvious now, after the fact, but I didn't think to try it then so let this serve as a reminder to all others. Get your Bodhi ISO here.
63fbbf765815c4dd78f9618ba7d0560ebc67b53cd0ddc8907a97a97187b51558
['ce0422d37b2b40f38a81a55a8bdceb46']
@Ohnana I don't think I can use my "solution" as an answer. I burned a new Bodhi image to another thumb drive, only instead of using the same 2.4 version I opted to go for the 3.0 RC2. It all went smoothly on the first try, and I have a functioning desktop once again. Can this question be resolved without starting over with 2.4?
b31de1f6f057ba5fd5679215da374e14a1d1b4f68f364b247fc7c4cad83f8217
['ce126270bda74337890b51d2b49aa3ce']
<html> <head> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> <script> var app = angular.module( "test", [] ); app.run(function () { angular.element.prototype.has = function(selector) { if ( ! this.length || typeof this === 'undefined' ) return false; console.log ( selector ); }; }); app.directive('cacat', function() { return { restrict: 'E', link: function (scope, element, attrs) { var g = element[0].querySelector('span'); if ( angular.element(g).length ) { element.has(element.has(g) ); } } }; }); </script> </head> <body ng-app="test"> <cacat> <span>da</span> </cacat> </body> </html> Why the .has is called 2 times? And first time I get a good element, second time I get an undefined element, and it pass over condition.
89ec051fa5ad1f38cac8249d1f5dbef1ce8939a973116b0afd64bfafee5b825d
['ce126270bda74337890b51d2b49aa3ce']
I have a problem with Web Application, I try to do when a user enter on /#/home to display a text. <html> <head> <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.16/angular.min.js"></script> <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.16/angular-route.js"></script> <script> var app = angular.module('cacat', ['ngRoute']); app.config(function($routeProvider, $locationProvider) { $routeProvider. when('/home', { template: 'DADA' }). otherwise({ redirectTo: '/' }); if (window.history && window.history.pushState) { $locationProvider.html5Mode({ enabled: true, requireBase: false }); } }); </script> </head> <body ng-app="cacat"> </body> I tried <IP_ADDRESS>/#/home, <IP_ADDRESS>/home and both doesn't work.
e34876e3220c21a40790afaec51806aa28176b76936b198c929ff4eaf02abdaa
['ce167d3c26c3465d9e6ac47269b4f27a']
So I'm doing something fairly simple in with react-native. I have a function that creates a copy of the state which is initially an array, I then update the copy and then I would eventually call my setState in order to update the original array. However, when I mutate the copy, for some odd reason it also mutates the array from the state even if I don't call setState. I tried everything that I thought might fix it, using slice, [...copy], splicing it, nothing, it still mutates, and why, I just don't understand why it mutates? If anyone can help me that would be really appreciated. Here is the function function completeTaskHandler(goalName, taskId, taskIndex, updateAction) { const taskSnapShot = tasks.slice(); console.log(taskSnapShot);//logs the copy console.log(tasks);// logs the original array taskSnapShot[taskIndex].isComplete = "true"; console.log(taskSnapShot);//results in mutated array console.log(tasks);//Also results in mutated array why?? }; Here is the full Code block import React, { useState } from "react"; import { View, StyleSheet, TouchableOpacity } from "react-native"; import { HeaderButtons, Item } from "react-navigation-header-buttons"; import { useSelector, useDispatch } from "react-redux"; import { Ionicons } from "@expo/vector-icons"; //Custom Components import Task from "../../components/local/goals/EditGoalTask"; //Header Custom Component import CustomBackButton from "../../components/HeaderButtonDark"; //Controllers import { DefaultText, SmallText, HeaderText, SmallTextItalic } from "../../controllers/TextController"; //Constants import Colors from "../../constants/Colors"; //Redux reducers import { udpateTask } from "../../store/actions/user"; const EditGoal = ({ navigation, route }) => { //Initialize variables const dispatch = useDispatch(); const { goalId, goalNameFromAddPage } = route.params; let selectedGoal = useSelector(state => state.userReducer.goals.find((goal) => goal.id === goalId)); if (goalNameFromAddPage) { selectedGoal = useSelector(state => state.userReducer.goals.find((goal) => goal.goalName === goalNameFromAddPage)); } //Deconstruct needed variables const { goalName, startDate, status, tasksArrayOfObjects } = selectedGoal; //Initialize States const [tasks, setTasks]= useState(tasksArrayOfObjects.fitler((task) => { if (!task.isComplete) { return true; } else { return false; } })); //Methods function deleteTaskHandler(goalName, taskId, taskIndex, updateAction) { const taskSnapShot = [...tasks]; taskSnapShot.splice(taskIndex, 1); setTasks(taskSnapShot); //dispatch(udpateTask(goalName, taskId, updateAction)); }; /* Has issues */ function completeTaskHandler(goalName, taskId, taskIndex, updateAction) { const taskSnapShot = tasks.slice(); console.log(taskSnapShot); console.log(tasks); taskSnapShot[taskIndex].isComplete = "true"; console.log(taskSnapShot); console.log(tasks); /* function copyArray(arr) { const arrCopy = arr.slice(); const copy = arrCopy.splice(0, arrCopy.length); return copy; } console.log(tasks); const taskSnapShot = copyArray(tasks); taskSnapShot[taskIndex].isComplete = true; console.log(taskSnapShot); console.log(tasks); */ //dispatch(udpateTask(goalName, taskId, updateAction)); }; navigation.setOptions({ headerLeft: () => ( <HeaderButtons HeaderButtonComponent={CustomBackButton}> <Item title="BACK" iconName="md-close" onPress={() => navigation.popToTop()} /> </HeaderButtons> ), }); return( <View style={styles.screen}> <View style={styles.header}> <View style={styles.goalContainer}> <SmallText>Goal:</SmallText> <HeaderText>{goalName}</HeaderText> </View> <View style={styles.goalStatusContainer}> <SmallText style={styles.headerTextMargin}>Started: {startDate}</SmallText> <View style={{ flexDirection: "row" }}> <SmallText>Finished: </SmallText> <SmallTextItalic>{status}</SmallTextItalic> </View> </View> </View> <View style={styles.pageDescription}> <DefaultText> Here is where you can add, delete, or track the steps you need to do in order to achieve your goal. </DefaultText> </View> <View style={styles.taskContainer}> {tasks.map((task, index) => { return <Task title={task.taskName} key={"key"+index} deleteTask={deleteTaskHandler.bind(this, goalName, task.id, index, "delete")} completeTask={completeTaskHandler.bind(this, goalName, task.id, index, "complete")} /> })} <View style={styles.touchableContainer}> <TouchableOpacity onPress={() => alert()}> <View style={{...styles.task, ...styles.addAStepContainer}}> <View style={styles.addAStep}> <Ionicons style={{ marginRight: 5 }} name="ios-add" size={23} color={Colors.grey} /> <DefaultText style={{ color: Colors.grey, fontSize: 18 }}>Add a step</DefaultText> </View> </View> </TouchableOpacity> </View> </View> </View> ); }; const styles = StyleSheet.create({ screen: { paddingHorizontal: 10, }, header: { flexDirection: "row", height: 80, //alignItems: 'center', }, pageDescription: { paddingVertical: 10, }, goalContainer: { flex: 1, }, goalStatusContainer: { flex: 1, alignItems: "flex-end", }, headerTextMargin: { marginBottom: 4, }, touchableContainer: { borderRadius: 10, overflow: "hidden", }, taskContainer: { //borderWidth: 1, }, addAStepContainer: { paddingVertical: 20, }, addAStep: { flexDirection: "row", }, }); export default EditGoal;
5a4d73e5e18314910df43adeefe33043f62f2bf8c54c457b19dd7372ae15a0bd
['ce167d3c26c3465d9e6ac47269b4f27a']
So, I've been coding react-native way more than react lately and I noticed I can do the react native style of styling things in react, what's the harm in doing so? E.g With react instead of doing classNames I can simply do <div style={styles.something)></div> const styles = { something: { backgroundColor: "red" } } What is the harm in doing so?
fb7b0028e854f65c19c448a3b67006338c1e86f54eb5caadb4aed1df2ff09941
['ce29212c68f1403c8251141f71dd8e26']
I installed ubuntu recently on my 32gb flash drive. Before then it was working fine. I just wanted to use ubuntu in my place of work where the default is windows. After partitioning the drive during the installation process, the installation failed nearing completion. Now, my drive is neither recognized by windows or Ubuntu. I tried both create partitions in windows and gparted in ubuntu the flash drive just isn't there. I even tried it on different computers, it cannot be seen. The lsblk command in ubuntu still does not show it. Any ideas
08d2df67fad1f6c2b793e92b7e85d58ed284aeb7f0a7a2ece938307e773bd6a2
['ce29212c68f1403c8251141f71dd8e26']
It doesn't hurt to make $f(x)$ bigger, so one may assume that $f(x+1) \ge 2 \cdot f(x)$. Let $\alpha_0 = 1$, let $\alpha_n = p_n/q_n$ in smallest terms, and let $$\alpha_{n+1} = \alpha_{n} + \frac{1}{2 \cdot f(q_n)}.$$ Then $\alpha = \lim \alpha_n$ satsifies $$\left| \alpha - \frac{p_n}{q_n} \right| = \left| \alpha - \alpha_n \right| = \frac{1}{2 f(q_n)} + \frac{1}{2 f(q_{n+1})} + \ldots \le \frac{1}{2 f(q_n)} \left(1 + \frac{1}{2} + \frac{1}{4} + \ldots \right) \le \frac{1}{f(q_n)}.$$
229960211c8d76973bffc197e0e6da059924ec322e760de6d5d435e55581d2b2
['ce2c1415ba1e454baa022047d637cfe1']
I have a scatter graph I have plotted and got the summary statistics for using lm. I need to find a x value for a series of y values which were previously calculated in the code. I was unsuccessful using predict function as the name of the calculated value is different to the name of the value plotted on the y value, and so the error "Object was not found" occurs. however how could I change the names to be the same thing as two different arrays clearly cannot have the same name. I understand I could use the numbers in the summary and manually type them into the equation of the line however surely this manual calculation is not necessary. Any assistance would be greatly appreciated.
84bc89df877b7a80c23c748c46b8fe45ccb903106ab17ecde0ef4bb756f0b6ae
['ce2c1415ba1e454baa022047d637cfe1']
<ul class="menu_left_catalog"> <li class="dropdown_radio"> <li class="dropdown_radio"> <input class="checker" name="menu_tog" type="checkbox" > <a class="menu_left" data-toggle="dropdown_radio">1 КАТЕГОРИЯ</a> <ul class="dropdown-menu-radio"> <li> <a href="#">Товар</a> </li> </ul> </li> <li class="dropdown_radio"> <input class="checker" name="menu_tog" type="checkbox" > <a class="menu_left" data-toggle="dropdown_radio">2 КАТЕГОРИЯ</a> <ul class="dropdown-menu-radio"> <li> <a href="#">Товар</a> </li> </ul> </li> <li class="dropdown_radio"> <input class="checker" name="menu_tog" type="checkbox" > <a class="menu_left" data-toggle="dropdown_radio">3 КАТЕГОРИЯ</a> <ul class="dropdown-menu-radio"> <li> <a href="#">Товар</a> </li> </ul> </li> <li class="dropdown_radio"> <input class="checker" name="menu_tog" type="checkbox" > <a class="menu_left" data-toggle="dropdown_radio">4 КАТЕГОРИЯ</a> <ul class="dropdown-menu-radio"> <li> <a href="#">Товар</a> </li> </ul> </li> </ul> <script> var menu = document.getElementsByClassName('dropdown_radio') var check = document.getElementsByClassName('checker') var category = localStorage.getItem("category") var showMenu = function(){ for (let i = 0; i<menu.length; ++i) { if (category==menu[i].innerText){ //console.log( check[i-1].setAttribute("checked","true") //) } } }() for (let i = 0; i<menu.length; ++i) { menu[i].onclick=function(){ localStorage.setItem("category", menu[i].innerText); } } </script>
b2687873b95a2e3d26bfca7acda00099e46989299f1918ea60019677d72fa388
['ce39e4d0f95b47719490ebb8cc916c9a']
<PERSON> Please give a concrete example. If you are quoting from Wikipedia for example, it should be a matter of a couple copy-and-pastes, where automation would give minimal benefit. Something like [Markdown It](https://github.com/markdown-it/markdown-it) comes to mind, but it may be much more than what you need/want.
e12453dc20dc525640aab1dd8324d4622fb388d775bf5081c110ab51d87f1e4f
['ce39e4d0f95b47719490ebb8cc916c9a']
I have a grid layout that splits a view into two parts, effectively for two sets of headings and list. I want each list to share the height of the active view evenly so I've used proportional sizing: In the case where both lists exceed the height available this works just fine. However, if the top list only has 1 or two items, it sizes nicely to the space it needs, however the second list does not use all of the remaining space, it only uses 50% of the original screen size when I'd like it to use whatever's left if the first list doesn't need half. I could use a Dock Panel and let the last row fill, but in cases where the first list is large I want it limitted proportionally, not a fixed max height. Does anyone know if the grid supports this, or if there is some combination to acheive this that will work with scrolling if the available size is not sufficient for both lists, ensuring the lists share available space evenly?
3daa558f7e1110c01bb74889a36f0a99f56e332d813f18cc349698330dc5a573
['ce458983bd3749b2b1d8c43e96e0d4dc']
Hey I'm trying to combine two columns in Pandas, but for some reason I'm having trouble doing so. Here is my data: OrderId OrderDate UserId TotalCharges CommonId PupId PickupDate Month Year 0 262 1/11/2009 47 $ 50.67 TRQKD 2 1/12/2009 1 2009 1 278 1/20/2009 47 $ 26.60 4HH2S 3 1/20/2009 1 2009 2 294 2/3/2009 47 $ 38.71 3TRDC 2 2/4/2009 2 2009 3 301 2/6/2009 47 $ 53.38 NGAZJ 2 2/9/2009 2 2009 4 302 2/6/2009 47 $ 14.28 FFYHD 2 2/9/2009 2 2009 I want to take the columns "Month" and "Year" so they make a new column which has the format: "2009-1" "2009-1" "2009-1" "2009-2" "2009-2" When I try this: df['OrderPeriod'] = df[['Year', 'Month']].apply(lambda x: '-'.join(x), axis=1) I get this error: TypeError Traceback (most recent call last) <ipython-input-24-ebbfd07772c4> in <module>() ----> 1 df['OrderPeriod'] = df[['Year', 'Month']].apply(lambda x: '-'.join(x), axis=1) /Users/robertdefilippi/miniconda2/lib/python2.7/site-packages/pandas/core/frame.pyc in apply(self, func, axis, broadcast, raw, reduce, args, **kwds) 3970 if reduce is None: 3971 reduce = True -> 3972 return self._apply_standard(f, axis, reduce=reduce) 3973 else: 3974 return self._apply_broadcast(f, axis) /Users/robertdefilippi/miniconda2/lib/python2.7/site-packages/pandas/core/frame.pyc in _apply_standard(self, func, axis, ignore_failures, reduce) 4062 try: 4063 for i, v in enumerate(series_gen): -> 4064 results[i] = func(v) 4065 keys.append(v.name) 4066 except Exception as e: <ipython-input-24-ebbfd07772c4> in <lambda>(x) ----> 1 df['OrderPeriod'] = df[['Year', 'Month']].apply(lambda x: '-'.join(x), axis=1) TypeError: ('sequence item 0: expected string, numpy.int32 found', u'occurred at index 0') I'm really at a loss at how to concatenate these two columns. Help?
49ea13432b6448b9d831c3ee5e90001f225b2b365ee61b0be05836b3008ba338
['ce458983bd3749b2b1d8c43e96e0d4dc']
I know this has been asked before, but the answers did not help me :/ I created a function that runs a for loop over the squared max of the inputs, and by all accounts my code is correct...and yet it still asks for float inputs. def spiral(X, Y): x = y = 0 dx = 0 dy = 0 count = 0 for i in range(max(X, Y)**2): if (-X/2.0 < x <= X/20) and (-Y/2.0 < y <= Y/2.0): print (x, y) if x == y or (x < 0 and x == -y) or (x > 0 and x == 1-y): dx, dy = -dy, dx x, y = x+dx, y+dy print spiral(3.0,3.0) And I get this error: TypeError: range() integer end argument expected, got float. But I put 3.0 when I try and print the function...so what am I missing? Thanks :)
d4da7a81546c48bf5e9530342ba2a317af9b093fd39aabdf00067411a97bfcec
['ce4b8095d1ff4270b1bf3ead8efcbef3']
@music2myear Ah - that's a good point. I was trying to scan the whole drive in one go - and when I do this the OneDrive folder is omitted from the SpaceSniffer UI (it all goes into "Not Yet Scanned" and stays there - but if I scan the OneDrive folder directly by providing the full path to it then it works and I can see the structure inside. An odd glitch, but one that can be worked around. If you put that as an answer I can accept it?
04d2ef1567a56f609e056757ca259b7e3d8ed3c4daacc1caaba28b8bc4eea3ea
['ce4b8095d1ff4270b1bf3ead8efcbef3']
To clarify - I'm only interested in the usage of the local hard drive, not the data in OneDrive cloud storage. Files that exist in the cloud service but don't have local hard drive space allocated are fine to ignore for the purpose of this visualization. I just want to see what is on the current hard drive. I will update the question to make this clearer.
739dc922cc0081a54588dd4bb31cc2d53a606dec12491337befc0464e550ca63
['ce4f466064cf420d93bc7195c9de01d5']
My reason for sometimes preferring Timer over Executors.newSingleThreadScheduledExecutor() is that I get much cleaner code when I need the timer to execute on daemon threads. compare private final ThreadFactory threadFactory = new ThreadFactory() { public Thread newThread(Runnable r) { Thread t = new Thread(r); t.setDaemon(true); return t; } }; private final ScheduledExecutorService timer = Executors.newSingleThreadScheduledExecutor(threadFactory); with private final Timer timer = new Timer(true); I do this when I don't need the robustness of an executorservice.
387ad08d980f8a658b4cf26d7a35331d382a3890b6216188100f18cb56af14e4
['ce4f466064cf420d93bc7195c9de01d5']
In order to have cocoapods generate the build phases Check Pods Manifest, Embed Pods Frameworks and Copy Pods Resources: 1 - Go to build phases and remove any custom modifications. I had to remove everything under the Link Binary With Libraries phase. 2 - Do a pod deintegrate (Or just remove the files yourself) 3 - Run a new pod install This worked for me. Without the first step, it never did.
46b01aadebbf957146c45db23818e2b5ad74d153d913ae5de71705326f9e9cb5
['ce5a37b30da34a05b1c1b47e37865594']
I am desperately trying to understand how to use the OneDrive SDK for Android. The sample apps only describe picking, saving or exploring. I have implemented the explorer available here: https://github.com/OneDrive/onedrive-explorer-android and in the end, I have this kind of code: final IOneDriveService oneDriveService = oneDriveHelper.getOneDriveService(); final Callback<Item> itemCallback = getItemCallback(app); oneDriveService.getItemId(mItemId, mQueryOptions, itemCallback); where mItemId="root"; I tried changing the mQueryOptions by doing this mQueryOptions.put("q", "myKeyWord"); without success (it's just listing the root) I tried replacing mItemId with: "root:/view.search" without any more success. http://onedrive.github.io/items/search.htm
5cddf1772f6b72e972a7db2603e5198010f4342cf4f1ea81d5930b62688a514f
['ce5a37b30da34a05b1c1b47e37865594']
Having no knowledge of how gradle really works and how to use it well (I just copy paste snippets here and there), I was wondering if it was possible to ask gradle to generate a zip file containing the "src" folder of my Android app when I do generate the signed apk? It sounds strange, but I want some hard copy in addition to all the source control things included in Android Studio, just in case (as I don't manage well what would be the equivalent of source control for Photoshop and Illustrator...) Thanks.
43803dd9a846f47c1adc6e655279e4da9ce43b5ac88883960fbf8fa592c07ed7
['ce5cfa361b1c434f9befe96253f0b836']
For the record. CustomCheckbox.vue <template> <input type="checkbox" :checked="value" @change="$emit('input', $event.target.checked)"> </template> <script> export default { props: ["value"] }; </script> Parent.vue <template> <div id="app"> <custom-checkbox v-model="checked"></custom-checkbox> </div> </template> <script> import CustomCheckbox from "./components/CustomCheckbox"; export default { data: { checked: true }, components: { CustomCheckbox } }; </script>
b54a61f63a60e9420551df9cdf30c016170ef92bd82f1728692ce35c4da88ccb
['ce5cfa361b1c434f9befe96253f0b836']
The svg file only contains a base64 encoded png. So it's not a 'real' svg. Include the png directly in your css. background-image: url('data:img/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8cAAACaCAYAAACE9zruAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsSAAALEgHS3X78AABMCElEQVR42u3dd7icRfXA8W8KEEhIQgIECL1JE6WD9N6LUlVABDkKoqLID5SONBVFFEQPFkBBRJqAgPQSeu9NOqGXFEhC6u+PM0s2N7v37t5955333T2f59kHsnf3fWf27t19Z+bMOX3oMCKyGPAFYFVgEeAt4HH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siYL9yGYmFqw8JtMDaYHhL+fwA2qB4QblnP5k3ELtzHAe9iKy+vA/8DXsCyh75exFAul59Qcm1e7P07sOo2N/b+7o9FlkzHBoSVL9pPqm4fA+NDMpdSCX/HQ7C/18pk4qDQ9zmq+l7JEF4ZEFcmBcYDH6tqu2XAbFsiMggbIC8MLI5d1C8W/j0/9h6oXAx9gl1MjsZyL7yJfZa+jX2ujgHGlPG9X/V69FHVGSIyAPvOGgEsEV6XJbHosWHMOiicUPW6vBH++1a4vY8NjMe3099FyG48L/b9Pj+2aroQ9r4ZiU1iLRAe04+Zk4fjsL2tb2GhvK9i38VvY9U6xgMzyhxVJyIDsW13q2Jb7hYDFgyv02BmXiNlNcgYi72OTwIPELYSqmrbJO4TkX7M/D6eC3vt5mTm93I/bPwyA3uvVQ+IK9/Vn4bbROBTT6TaPBFZBttOuiGwNlYKcmiLh52O/d2Pxb5H3gCexyZ3HgGeLcLnQSkGx9XCQHljLEZ+HewLLEWoxAfYh9MobJbjQd8L2bPwJTsAmxGsDJIrq8/VA+Y5w20OZg5SKu/XadgH4FRmfvhVLtzHYX9444FxJQolcs655MKkEe00uMtCmEyiCBduRRXeO32xAW/HD0bCpEtl4nE+bLveEsDy2CB6fmZOvPTDBnuTmTn5+CE2kfAmFt3wMjYwfsvfhy5vIrIwNkBeIdyWwCYUh2PX75UtVlOx6/F3sPftC+G/o7HJsrHYxOqE1H2qp3SD42rhg2cZYHVsdmPV8O8RZLsPagw2u/EMlvTrAeCJWCnEnXPOOedc+wsrpZUV9+k+MeXKJEyKVSLO+mDRZpPK/D4u9eC4lhA2VgkZWxybnVuImaFRlX2ylRmOSjjGRGym7iMsNGo0Fv7zGjYwfqfMv2jnnHPOOeecc/X9P5wVgeaHcXliAAAAAElFTkSuQmCC');
0b1b168780547ecc8d758e1dfe9a4a015033e541b7cc0dc9b4db8f476e5387c6
['ce73688cdbf14b0eaf8d18171f4f1037']
Is there any way to find if a row of a matrix is containing in the matrix but in the reversed way? For example, this happens in the following matrix W: [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 1 1 1 2 2 2 3 3 3 [2,] 1 2 3 1 2 3 1 2 3 [3,] 3 3 3 2 2 2 1 1 1 between the first and the third row. I have developed the following code, but it works ONLY if a row exists in the matrix in the reversed way: WW=W[, rev(seq_len(ncol(W)))] x=match(data.frame(t(W)), data.frame(t(WW))) A=cbind( c(1:nrow(W)),x ) Z=t(apply(A,1,sort)) x=unique(Z[,2]) W=W[-x,] So, in the previous matrix W, my code does not work, because of NA in the result of the second row of the code. How can we solve this problem?
dc0c6197b93b6e61be3750601259dd50d1d0e72f65adbbaa04095685d484ff41
['ce73688cdbf14b0eaf8d18171f4f1037']
I have the following vector: z=(0,0,0,1,2,1,2,2,1,2,0,0,2,1,2,2,0,2,0,0,1) I use rle(z)$lengths and the output is: 3 1 1 1 2 1 1 2 1 1 2 1 1 2 1 which means that I have three 0's, then one 1, etc. How can I have an output showing me the positions in which I have the three 0's, etc. For example, the positions of the first three 0's is 1,2,3. Note that I want only the positions for which I have rle(z)$lengths>1.
81ccf7cd112aa98b0ddd0427a8898270591ed7b8a126fca97ef90bbf07db18c4
['ce864e11a20c408f8c73f81be8c17cda']
I've tried this highly suggested solution (on Web.Config) <system.web> <compilation debug="true" targetFramework="4.5" /> <compilation debug="true" targetFramework="4.0"> <assemblies> <add assembly="System.Data.Entity, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> </assemblies> </compilation> </system.web> But unfortunately, this didn't work me. At last, I've found a solution (this worked for me) Right-click the References folder > Add Reference... Expand Assemblies on the left side of the window and select Framework. Scroll to and select System.Net.Http in the list of assemblies. Make sure the box next to System.Net.Http is checked, then click OK. Rebuild the project.
e5f8fae985bc254fd9cff4842fce628534b1afee41a7ca2e7614f5671393a9aa
['ce864e11a20c408f8c73f81be8c17cda']
Using 'SQLite.Net' you can insert data into sqlite table as, // Insert the new student record in the Student table. string dbPath = Path.Combine(Windows.Storage.ApplicationData.Current.LocalFolder.Path, "StudentDb.sqlite"); public void Insert(Student std) { using (SQLite.Net.SQLiteConnection conn = new SQLite.Net.SQLiteConnection(new SQLite.Net.Platform.WinRT.SQLitePlatformWinRT(), dbPath)) { conn.RunInTransaction(() => { conn.Insert(std); }); } }
3259379629d5f66ead9025e681b209795350f9fb888dc9421d239f64bf32e722
['ce892860359d40de9490cb5320f4ec07']
I've recently developed a react + webpack application that is deployed using AWS Amplify. I've been getting a strange error that is logged on Sentry, but can't find a way to replicate the bug. RuntimeError: memory access out of bounds I suspect it has something to do with my webpack configuration, but I don't know whats wrong. I never used wasm, but it seems to be related to it. Here is my production level webpack configuration. const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin'); const TerserPlugin = require('terser-webpack-plugin'); const env = require('../environment/prod.env'); const commonPaths = require('./paths'); const webpack = require('webpack'); const SentryWebpackPlugin = require('@sentry/webpack-plugin'); module.exports = { mode: 'production', devtool: 'source-map', output: { filename: `${commonPaths.jsFolder}/[name].[hash].js`, path: commonPaths.outputPath, chunkFilename: `${commonPaths.jsFolder}/[name].[chunkhash].js`, }, optimization: { minimizer: [ new TerserPlugin({ parallel: true, cache: true, sourceMap: true, }), new OptimizeCSSAssetsPlugin(), ], splitChunks: { cacheGroups: { vendors: { test: /[\\/]node_modules[\\/]/, name: 'vendors', chunks: 'initial', }, async: { test: /[\\/]node_modules[\\/]/, name: 'async', chunks: 'async', minChunks: 4, }, }, }, runtimeChunk: true, }, module: { rules: [ { test: /\.scss$/, use: [ { loader: 'style-loader' }, { loader: 'css-loader', options: { sourceMap: true, }, }, { loader: 'sass-loader', options: { sourceMap: true, }, }, ], }, { test: /\.css$/, use: [ { loader: 'style-loader', }, { loader: 'css-loader', options: { sourceMap: true, }, }, ], }, ], }, plugins: [ new webpack.DefinePlugin({ 'process.env': env, }), new MiniCssExtractPlugin({ filename: `${commonPaths.cssFolder}/[name].css`, chunkFilename: `${commonPaths.cssFolder}/[name].css`, }), ], }; Here is also my common webpack configuration const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const ScriptExtHtmlWebpackPlugin = require('script-ext-html-webpack-plugin'); const commonPaths = require('./paths'); module.exports = { context: commonPaths.srcPath, entry: commonPaths.entryPath, output: { path: commonPaths.outputPath, filename: 'js/[name].js', }, resolve: { extensions: ['.ts', '.js', '.html', '.vue'], alias: { '~': commonPaths.srcPath, }, }, module: { rules: [ { test: /\.(js|jsx)$/, include: commonPaths.srcPath, exclude: /node_modules/, loader: 'babel-loader', options: { plugins: ['react-hot-loader/babel'], }, }, { test: /\.(png|jpg|gif|svg)$/, use: [ { loader: 'file-loader', options: { name: 'assets/img/[name].[hash:8].[ext]', publicPath: '/', }, }, ], }, { test: /\.(mp3)$/, use: [ { loader: 'file-loader', options: { name: 'assets/audio/[name].[hash:8].[ext]', publicPath: '/', }, }, ], }, { test: /\.(ttc|ttf|eot)(\?v=[0-9]\.[0-9]\.[0-9])?$/, use: [ { loader: 'file-loader', options: { name: 'assets/fonts/[name].[hash:8].[ext]', publicPath: '/', }, }, ], }, ], }, serve: { content: commonPaths.entryPath, dev: { publicPath: commonPaths.outputPath, }, open: true, }, resolve: { modules: ['src', 'node_modules', 'bower_components', 'shared', '/shared/vendor/modules'], extensions: ['*', '.js', '.jsx'], }, plugins: [ new webpack.ProgressPlugin(), new HtmlWebpackPlugin({ favicon: './icon.png', template: commonPaths.templatePath, }), new ScriptExtHtmlWebpackPlugin({ defaultAttribute: 'async', }), ], }; Any help would really help. Thanks.
0265e9e2cc794533431eff629b636fc948c19ba638fc02fa69da3579ebf9879c
['ce892860359d40de9490cb5320f4ec07']
If you just need to test your API, download Postman and make requests from the application. It is much easier than actually making a whole HTML script to test your API. However, if you absolutely need to test your API through a frontend app, try the steps below. You need an image upload function in your HTML code. <body> <input type="file accept="image/png, image/jpeg"/> </body> Make sure you have a valid API request URL // For example POST <site>/v1/plant-image Make the request from JS Script <script type="text/javascript"> var HTTP = new XMLHttpRequest(); HTTP.onreadystatechange = function () { if (HTTP.readyState === 4 && HTTP.status === 200) { console.log(HTTP.responseText); } } HTTP.open('POST', 'https://<site>/v1/plant-image', true); HTTP.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); HTTP.send(); </script> Since you are using DRF, make sure to handle errors by raising errors instead of returning them as responses. This can make error handling much easier. from rest_framework.exceptions import ValidationError // some code... raise ValidationError()
1aeb94861c051dfe700e62e7d88d6a74d02345d4d925c96996f951cd3a68a197
['ce8fe90c7d2d4b698f9ece41cb758c2d']
Could you also provide the folder structure of the CSS file and the .aspx page ?, that would help us narrow down the issue. From here it seems your css file has navigational issue while accessing the image whereas the aspx doesn't seem to have it because of correct hierarchical path.
3f4d1cfeb564ebacf97a1cf2af04cf3711df0b522401d29ea525366ba3eb4326
['ce8fe90c7d2d4b698f9ece41cb758c2d']
I'm trying to download a ".aspx" file from the web server using a WebClient object and save it to the file system, but it raises an exception of "HTTP 500 Internal Error", I think becuase the server tries to render the html and send the content of the same rather than the file itself. var objWebClient = new WebClient(); var remoteUrl = "someserverURL" + "default.aspx"; objWebClient.DownloadFile(remoteUrl, localPathToSave); Tried adding HTTP headers but I think they might not be of use with request object being from a desktop system and not a browser, have set the server, to serve all content in "application/octet-stream" format.
f74c84c1cfbb33ce23ae263a71df62e36fe38728919e459f12e19d8b1dab8dac
['ce941c53c6134cf4a5930dc4b4f6b1bf']
I finally got to fix it. There are two solutions I found to fix the issue. First, there's a common fix for all the databases that support Entity Framework Migrations: Using a .NET Core Task, we'll have to install the dotnet ef tool: The task would look like this: And this would be the YAML (in case you want to use it in out of the release pipeline): - task: DotNetCoreCLI@2 displayName: 'dotnet custom' inputs: command: custom custom: tool arguments: 'install --global dotnet-ef --version 3.1.4 --ignore-failed-sources' And once we have the required tools installed, with a CMD or a Bash Task, we'll have to execute a script like this: dotnet ef database update -c <DBCONTEXT> -p <PROJECT> -s <STARTUP_PROJECT> -v --no-build You just have to add the flag -c in case you have more than one context in your project (sometimes the other DbContexts can come from some nugget packages). Notice I added the flag --no-build since I already built the project in the build pipeline to follow good practices. The other option (and the one I finally used), it's been to use this task that basically does the same process, with the difference that it does it by using your already compiled .dll files, so you won't have to copy the entire project to make the migrations work. The setup of the task, although you have to fill many inputs, it's pretty straightforward, and it's supposed to work with other Databases as well. However, if I had to use SQL Server or MySQL I would use a migrations script, since the process it's much easier (you just need to generate a .sql script and then it's the only file required for deploying the migrations).
2d9eef82c3c302e0c66405c0f54f386df1e610343d906004be8d6372fec8ff21
['ce941c53c6134cf4a5930dc4b4f6b1bf']
Is there any reason why I'm not getting an injected service into my custom RegisterBinderProvider? services.AddScoped<IPasswordHasher, PasswordHasher>(); services.AddMvc(options => { RegisterBinderProvider registerBinderProvider = DependencyResolver.Current.GetService<RegisterBinderProvider>(); options.ModelBinderProviders.Insert(0, registerBinderProvider); options.Filters.Add(typeof(ApiExceptionFilter)); }); After this code, when I'm in the RegisterBinderProvider class, I see the value of the PasswordHasher service is null. However, I checked the services already injected before inserting the RegisterBinderProvider, and I could find the PasswordHasher in it. In case you need it, this is my custom BinderProvider: public class RegisterBinderProvider : IModelBinderProvider { private readonly IPasswordHasher _passwordHasher; public RegisterBinderProvider(IPasswordHasher passwordHasher) { _passwordHasher = passwordHasher; } public IModelBinder GetBinder(ModelBinderProviderContext context) { if (context.Metadata.ModelType == typeof(User)) { return new RegisterBinder(_passwordHasher); } return null; } } I hope I've provided enough information to understand my problem, thank you!
b5df46df290480d7ced3307efc5e56e0449ca61b00d12acf4c81771242b94f2c
['ce98926c9fe94340a0353be3f9a86456']
How often is it syncing? I understood, that it's "only" syncing once per day. Gradle will once per day (by default) connect to the artifact repository to see if there is a more recent version. http://tools.android.com/recent/androidstudio040released Other than the source of the quote I never found a reason to those constant new version checks. Best, Schnaps
8f365c8c40baf16c56d1405f1d6f33043e7ca83663200acae979e00cced1fc57
['ce98926c9fe94340a0353be3f9a86456']
If you want the possibility to have another question asked use a while loop and ask the user for an input. If you want the user to input whether (s)he want an addition or substraction you already used the tools to ask for such an input. Just ask the user for a string.
a1d174ff2d73d8555de2f308b021fa00b0629a7a30fd4de5ec7ee849c73e865a
['cea21eb8bc9641a89eb428e8588fb8be']
Relacionar o item Refazendo minha Resposta Primeiro é preciso entender como o Facebook trabalha com com URL canônica. ex você tem uma pagina www.suapagina.com/faleconosco.php e dentro dessa pagina vc tem um monte de meta tag teoricamente o facebook procura as meta tag nesta pagina e também as obrigado pela colaboração dos colegas sou <PERSON> mas trabalho com desenvolvimento de sistemas graças a espaços de compartilhamento de conhecimento
b1e29d13b36dccebeed405436499d380ca56d70722addffa0eee1f05ba29ebd6
['cea21eb8bc9641a89eb428e8588fb8be']
Here are examples to show that neither of the two conditions 1. and 2. that you give as jointly sufficient can just be dropped. Take $X$ to be two-dimensional real space with the pointwise order. Norm it by taking the closed unit ball to be the convex hull of $\{(-3,3),(0,2),(2,0),(3,-3),(0,-2),(-2,0),(-3,3)\}$. On the positive cone, $\|(x,y)\|=(x+y)/2$. Clearly, $(-1,-1)\le (-1,1)\le (1,1)$ and $\|(-1,-1)\|=\|(1,1)\|=1$ whilst $\|(-1,1)\|=1/3$. Any attempt to write $(-1,1)=u-v$ with $u$ and $v$ positive will have to have $\|u\|,\|v\|\ge 1/2$, so your condition 1 fails. Condition 2 does hold. Define $T(x,y)=(y,y)$, which is certainly positive. For $(x,y)\ge 0$, $\|T(x,y)\|=y\le 2\|(x,y)\|$. On the other hand $\|T(-1,1)\|=\|(1,1)\|=1$ whilst $\|(-1,1)\|=1/3$ so that $\|T\|\ge 3$. For the second example, take $Y$ to be two-dimensional real space with the pointwise order and normed by $\|(x,y)\|=\max\{\|(x,y)\|_\infty, |x-y|\}$. Take $Z$ to be two-dimensional real space with the pointwise order and supremum norm. For $(x,y)\ge (0,0)$ the two norms are equal. $Y$ has your property 1 but not 2. The identity map from $Z$ into $Y$ has norm at least 2 as $\|(-1,1)\|=2$ whilst $\|(-1,1)\|_\infty=1$. On the positive cone all norms of images are equal. To get an example from a space into itself, take $X=Y\oplus Z$ and the operator $(y,z)\mapsto (z,0)$.
2809f2d7f9d43b6113b99c3b16746ef889e1023097f20fa10a0f8aba2651ad8c
['cea3f686663744be9ad5231b816e2645']
It is true more general fact. Proposition. If $U$ is open and $A$ an arbitrary subset of $X$, then $IC(U)\cap IC(A)\subseteq IC(U\cap A)$. Proof. Suppose $$x\in IC(U)\cap IC(A)$$. $x\in IC(U)\cap IC(A)$ iff there exists $U'$ an open neighborhood of $x$ such that $U'\subseteq C(U)\cap C(A)$. Let us denote $$U'\cap U=V_1$$ and $$U'\cap A=V_2.$$ $$U'\subseteq C(U'\cap C(U))\subseteq C(U'\cap U)=C(V_1)$$ $$U'\subseteq C(U'\cap C(A))\subseteq C(U'\cap A)=C(V_2)$$ $$U'\subseteq C(V_1)=C(U'\cap U)=C((U'\cap U)\cap U') \subseteq C((U'\cap U)\cap C(V_2))= \ = C((U'\cap U)\cap C(U'\cap A))\subseteq C((U'\cap U)\cap (U'\cap A))=C(V_1 \cap V_2)$$ We get $$U'\subseteq C(V_1 \cap V_2)=C(U'\cap (U\cap A))\subseteq C(U\cap A)$$ then $$x\in IC(U\cap A).$$
2a98e66f0fc68fddb2c4e3c5240a5e3a9fc5ba051d8726b62998252063b660d3
['cea3f686663744be9ad5231b816e2645']
Yes, this is possible. It is possible to construct a pair of perpendicular lines somewhere on plane. To do this, make a rhombus. (On two lines that meet at a point A, construct segments of the same length starting from A. Then constructing parallels yields a parallelogram with two adjacent sides of equal length. This is a rhombus.) The diagonals of the rhombus are perpendicular. Think of the two perpendicular lines as the x-axis and the y-axis, so we may draw horizontal and vertical lines through any point. This allows us to assume that the origin $(0,0)$ is on the given line. Choose some other point $(x,y)$ on the line. The horizontal and the vertical lines through $(x,y)$ meet the two axes at $(x,0)$ and $(0,y)$. So we may construct the points $(y,0)$ and $(0,−x)$. The vertical line through $(y,0)$ meets the horizontal line through $(0,−x)$ at the point $(y,−x)$. The line joining $(0,0)$ and $(y,−x)$ is perpendicular for the line line joining $(0,0)$ and $(x, y)$.
bc6680b8bc60c058214249b70f096d39ff599c09b48fdb6b8841ce9c2d9c5ccc
['ceab87aa3a50426abf7686cd359a82fb']
You could serialize the data and put it into a HashSet, then converting that back to an ArrayList. Example with Integers: ArrayList<Integer> ints = new ArrayList<Integer>(); Random rand = new Random(); for(int i = 0; i < 1000; ++i) { ints.add(rand.nextInt(100)); } HashSet<Integer> set = new HashSet<Integer>(); set.addAll(ints); ints.clear(); ints.addAll(set); Not the most memory-efficient way (although it's O(N)), but easily the most readable... This works because the Set only contains unique values. At the end of that snippet, ints would contain only unique values. And like another post below me suggested, use a LinkedHashSet to preserve the original item order.
e4a43a0578013d11762acbaa39beb5028d4a30adef8391ca177a354af8d976ef
['ceab87aa3a50426abf7686cd359a82fb']
<PERSON> answer above is correct, however with TypeScript 0.8.3 I had to use the Windows Search function to find f.zip - it's now in three locations, at least for me: C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\CommonExtensions\Microsoft\TypeScript\~IC\IT\CSharp\1033\f.zip C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\CommonExtensions\Microsoft\TypeScript\IT\CSharp\1033\f.zip C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\VWDExpressExtensions\TypeScript\IT\CSharp\1033\f.zip Only after changing all of the above did TypeScript files appear with the proper template. Would be nice if Microsoft included an option for changing the default; it's not nice having to remove a bunch of unnecessary code every time I want to add a file - which is especially irritating when setting up a project, which can involve creating upwards of 100 source files in a complex directory tree. Googling around finally led me to this post.
a931f9f1cfdf9d99860674374e98366712fc58f2673396db0e68988a07c1849a
['ceb6ca441d27440fa9c4047499fb1a1f']
Not sure how you have anything set up, but I would think something like this would work. Have your ImageView and TextView fill the same space, then toggle which one is visible and which one isn't based on the presence of the image. Hope this helps Layout: <RelativeLayout ... > <ImageView ... /> <TextView ... /> </RelativeLayout> Logic: if(isImageAvail){ iv.setVisibility(View.VISIBLE); tv.setVisibility(View.GONE); }else{ iv.setVisibility(View.GONE); tv.setVisibility(View.VISIBLE); }
b902a490905145c022ba60a97e830c915b5a6a2a0d5841b27a22414bda2b2597
['ceb6ca441d27440fa9c4047499fb1a1f']
Make sure you are setting android:id for the text fields in the layout file. Once you have done that from within button.OnClickListener you can get find the text view by id and get the text as follows: TextView tv = (TextView)findViewById(R.id.id_of_text_field); String text = tv.getText().toString(); Then to transfer to another activity add the string to a Bundle and add the Bundle to the Intent as follows: Intent intent = new Intent(this, NextActivity.class); Bundle bundle = new Bundle(); bundle.putString(KEY_TO_FIND_STRING, text); intent.putExtras(bundle); startActivity(intent); Then in your new activity you get the string from the bundle as follows: Bundle b = getIntent().getExtras(); String text = null; if( b != null ){ text = b.getString(KEY_TO_FIND_STRING); }
2884dc1e9def2747fad78be8d5d5169dd5f0d45d06b925a25347fe2b80dfd1a0
['ceb9875fe7c94b58b7ce55c5d2e490ca']
Thanks in advance for the help. trying to use a fairly large C/Cpp (yes I know) library and am running into an error. Unfortunately the error that I am getting back is extremely vague but I do know what variable is causing it. All I would like to do is simply print this variable out to stdout so that I can see what is going on. However, this variable is not a standard type. It has the type Opt_Int64 someVar = 10; where typedef int64_t VosT_int64; typedef VosT_Int64 OpT_Int64; For the life of me, I can't figure out how to convert this Opt_Int64 type into a char array so that I can print it out. I would assume that the following function would do this for me void int64ToChar(char mesg[], Opt_Int64 num) { for(int i = 0; i < 8; i++) mesg[i] = num >> (8-1-i)*8; } but it doesn't seem to work (I built a very simple hello world style program to test this). Either I simply don't understand typedef as well as I should or there must be something wrong with the function above. Isn't typedef just a way of telling the compiler that you're giving a type a different name?
e2c910a873ed5cb9ab3da6c0d8c1ab88451924e2ff0fa7985116d0c06bce1600
['ceb9875fe7c94b58b7ce55c5d2e490ca']
Apologies if this question seems a tad open ended or too vague, I'm not the best C/Cpp programmer (either language is acceptable to solve this problem). Suppose there are two running processes, a client and a server (they could be viewed as producer and consumer as well, but I think client and server might be better here). The server is a "child" (sort of, see below) process of the client such that it has been created to act somewhat as an offload. Over time the client generates several jobs which it then offloads to the server it created. Depending on the job, the server may or may not send back to the client information regarding job completion. As an aside, some might suggest that this could be done with threads. For reasons I won't get into, threads will not work here. The client and server should not be sharing memory (there may or may not be shared memory, its possible the client and server are two different machines: the code I'm writing should support both possibilities). The server has a very long initialization period and thus must always be running, hence the idea of the second process being a server. It therefore must always be listening for any messages from the client. A simple pseudo-code/C example is given below int main() { ... client_pid = getpid(); pid = fork(); if(pid > 0) { /* sets up connection with client, based on what connection type has been * given (shared memory, sockets, etc). I don't know anything * about what type of connection is established only that all * communication is handled by the wait_For_Jobs and generate_Jobs functions */ start_Server(client_pid, connection_type); wait_For_Jobs(); } else { // gets information needed to send messages to server contact_info = wait_for_connection(); generate_Jobs(contact_info); } } This is a very, very rough outline of what I want. The question that I have is related to the "wait_For_Jobs" function. Unfortunately, the connection_type will not be known until runtime and thus this question might have several different answers depending on what type of communication method is used (ie shared memory, sockets, etc). For simplicity then, assume that shared memory is the communication type being used (say boost interprocess). With this in mind, what is the best and most efficient way for the server to wait for input from the client? One possible approach is to use a while loop somewhat in the fashion given below. void wait_For_Jobs() { while(true) { if(check_If_Message_Received_Over_Shared_Memory){ // handle message } } } However, I suspect that this will be very inefficient; the process is always "spinning its wheels". Somewhat of a fix would be to put the process to "sleep" at the end of the while loop for a period of time. This isn't really too different from just running the code in the while loop (in fact its the same thing); it just lowers resource usage at the expense of response time. Ideally, the process should just be in somewhat of a standby mode and start computing once it receives a message. However, I'm not sure how you would do such a thing in C or Cpp. With that in mind, is there a better alternative?
5a75b536dc694a76a76251ed7a1acde7d2f6014a90538458003fcbf197a49332
['cec7f4506ffd43c5b1c9ca20ad9bf29f']
Found, the answer with a little more digging. Thanks to <PERSON>'s answer here https://stackoverflow.com/a/43873099/5943182 Thank you to anyone who viewed. I still don't know why the most recent wasn't being pulled in the above code, but the alternative method works wonderfully for me.
8c6d22f596cf17e5ef3e0ecb87efe619e4a0d23a9efa8fbccd94e6741c26b790
['cec7f4506ffd43c5b1c9ca20ad9bf29f']
Image Trace is a great tool, but it's not perfect. Adjusting the settings may improve it but it won't be perfect. If possible depending on the design, especially one as simple as the example images you've included here you should use another method. To recreate the lines there maybe: create a line at the angle you want (Pen or Line tool), duplicate that line and move it above the first, align the two, use the blend tool to add as many copies between the two as needed, expand them, make a background to fill the negative space and move behind the lines, create a rectangle shape with no fill and position above the others, shape build the excess areas away Example
ca5298de764cdb5890f5cb4bb1c71b42b92a2e333a8ad70bcb0045dead83c83d
['ced329917cc644af999357bb2623712e']
I understand Gmail problem but you say it's easy for me to recover my account if I authentication that I set up . How can i if i have had my account for years and you log in to read emails but unfortunately forget in them years to update my number especially when am dyslexic and had a stroke so my memory is not so good to update my phone numbers to all accounts either that use my number . I always religiously go to fb security and see my login in and check were i have or if i have logged in . Also would you be kind enough to explain password management
1e1c7ec433fd7f3f8457a6cc10c61d012b1c87f8f99cdf362d97317e996f50ed
['ced329917cc644af999357bb2623712e']
apps like last pass i did try it once but got confused and i tend to change password to my apps accounts and then forget them i tend to see if chrome will automatically log in and sometimes it doesn't remember the password so then i have to try to remember password then i use the same password for all apps not a good idea
ea75c9dea024b2ae2ff9c9847ac8645ba8616ddee8a5456a70f5fce7db4fdc09
['ced556dc724b4a86b8af1e8c922b3bf8']
Well you can clean the copper and the tin with some tamarind, it is a trick we use in our home to clean the copper and brass vessels and they come out to be very clean. Your may notice discoloration again in some 20 or 30 days after cleaning but then you can clean it again! Just wet the cleaning surface with some water and apply tamarind or simple tamarind paste to it, then simply scrub it with a normal scrubber and wash it.
dd76c6d24ce1a874b7142a3f6ab1045cc93b4c7789eb23f267b895bf51db218b
['ced556dc724b4a86b8af1e8c922b3bf8']
The web site allowed me to type “Unknown” into the field for the previous visa application. We were granted our visas within about 24 hours of submitting the application. In our particular case, we had the previous visa number for three of our five family members. I was also able to fill in the issue date for all of the passports, since I knew that they had all been granted on the same day. I don't know whether these things were a factor in the decision to grant our visas. I had to fill out five separate applications, and (judging from the timestamps of the emails) the visas were granted over a period of an hour and a half. That suggests to me that the visas were processed separately. That in turn suggests that writing “Unknown” isn't a very big deal.
82839130c32aaa76087dcaf053a044d1b9a1ab46f09540f911eb5518574b78fb
['ced83e634d0a47f58eb9f2f7f41f5774']
Not as much an answer, but the solution nonetheless for my issue it seems. Closed all applications Ran a ccleaner cleanup Reinstalled Visual Studio Reinstalled dotnet framework 4.5.2 Registered the framework And to be overly cautious rewrote my code in a vanilla fresh new project. Magically everything works as it should now. ~i think i know now how it must feel for a doctor hitting a bug with antibiotics (you're not exactly sure what did the trick nor caused the problem but it's solved)~
90de60e0b10da1266729df9c020ed47d900f776c1a0224e12859675176f3a824
['ced83e634d0a47f58eb9f2f7f41f5774']
if using ASP, it simplifies things a bit to use resolve url... ie cursor:url('\<\%\=ResolveUrl("~/img/magnify.cur")\%\>'); Evidently I'm inclined to agree with the other statements, as familiarity is key in any good design, customizing an environment to such a degree that the user feels either unfamiliar with it or under the impression that somehow their system is altered,is a bad bad bad design and reflects poorly on the designer as well. I'm not saying be dull in design, but be a tad reserved. I might not like MetroUI (rather Metro Web Design) much, but I love it's root,the design concept of "Bauhaus". "There is beauty in simplicity."
6f0462105763e5d6cb8519fe2b99cb0188acf0aeecbf092d0e4a3650cb5ac21b
['ced8e539f0ba4e20aae3646bc0f5310e']
I am an engineer on Transfer service. The reason you encountered this problem is that AWS S3 region ap-southeast-1 (Singapore) is not yet supported by the Transfer service, because GCP does not have networking arrangement with AWS S3 in that region. We can consider to support that region now but your transfer will be much slower than other regions. On our end, we are making a fix to display a clearer error message.
d6188d29a9e943185cb5abd58b497919fb8ab2f1fe7875a09b63d62f1eb53691
['ced8e539f0ba4e20aae3646bc0f5310e']
Note that in the API the StartTimeOfDay is in reference of UTC (please see the API reference: https://cloud.google.com/storage/transfer/reference/rest/v1/transferJobs#Schedule). The request you emailed to us specified an hour that was in the past based on UTC. Please specify a StartTimeOfDay in UTC. If you just want to start a one-off job run immediately, just leaving the StartTimeOfDay field empty would work. Please also note that the Google Cloud UI lets customers specify a StartTimeOfDay in local timezone, which is different from the API.
09d64629a43822e7086f9b6ae648819573736fd54cf6e46cb46cbaaa2a2bc248
['ced93ce820f8408dae440dde9b88c1a5']
I'm very sorry, i would type this in comment but i'm not allowed to write comments yet, but my wild guess would be try using DateTime.TryParse(); and specify the format of date, it is possible string is in an invalid format, isnt it ? Also it would handle null.
da9e54f91fef2464a430200966135338302a25cbb2b88e7be29f1dbf210ae830
['ced93ce820f8408dae440dde9b88c1a5']
I have this function and it reads first line of some .txt file and returns the line for me to work with it. I do NOT know how long is the line going to be so I can not have constant size of buffer. My problem is I can not use this function because it would be considered as cheating (I have my exams) because of it is not my code. I have been thinking about variable length of an array but it is evil as it was said to me and I could just scanf the whole line somewhere I guess but Im not sure how would I do it in this case (I need to return the line) char* readLine(FILE *line) { char individualChar; int pos = 0; int size = 16; char *buffer = (char *)malloc(size); while ((individualChar = fgetc(line)) != EOF && individualChar != '\n'){ if (pos + 1 == size){ size *= 2; char *tmp = (char *)realloc(buffer, size); if (!tmp){ free(buffer); fprintf(stderr, "Realloc failed"); return 0; } buffer = tmp; } buffer[pos] = individualChar; pos++; } buffer[pos] = '\0'; return buffer; }
22a31794ba07c6afbfcf357716aae30f50495fc88dbfda8418c3705363eb53b8
['cedd69c0274a4f1cadbec4b313d059a2']
I have an Azure VM setup (dev1) and I cannot access a shared folder (publish) via UNC path from my workstation. I am connected to Azure over a P2S VPN connection and my workstation is in the same domain as the Azure VM. When I open explorer and try to access \dev1\publish, I get an error saying: \\dev1 is not accessible. You might not have permission to use this network resource. Contact the administrator of this server to find out if you have access permissions." The user name could not be found. I am logged in to my workstation as a domain user and am never prompted to enter different credentials. Am I misunderstanding how to access a file share on an Azure VM?
5a59d52f705ffb2988f467a37081c5898169d262b6aaf1eb8ef74281fa82bb38
['cedd69c0274a4f1cadbec4b313d059a2']
I uninstalled Windows 7 recently and installed Ubuntu 12.04 instead. However, after a successful installation, I could only boot from CD when I restarted my computer, which led to the screen asking if I wanted to try out Ubuntu, or install it (It was already installed though) How do I fix this?