id
stringlengths
5
11
text
stringlengths
0
146k
title
stringclasses
1 value
doc_7500
I have one button, after pressing it I want to change view controller from main.storyboard to NSPageController. In Viewcontroller.m of main.storyboard - (void)loginButtonPressed:(id)sender { NSPageController *pageController = [[NSPageController alloc] initWithNibName:@"CustomPageController" bundle:nil]; } I have o...
doc_7501
A: All the details shown in the Jobtracker UI can be obtained easily by using the APIs provided. Use jobclient API refer : https://hadoop.apache.org/docs/current/api/org/apache/hadoop/mapred/JobClient.html and Jobstatus api refer : https://hadoop.apache.org/docs/current/api/org/apache/hadoop/mapred/JobStatus.html Usi...
doc_7502
<script type="text/x-handlebars"> <nav> <ul> <li> <h1>{{#link_to 'index'}}Bookmarker{{/link_to}}</h1> </li> <li> {{#link_to 'bookmarks'}}Bookmarks{{/link_to}} </li> </ul> </nav> {{outlet}} </script> Otherwise my ember code is: App = Emb...
doc_7503
I'm using the following formula to work out the average size of a PHP-FPM process: ps -ylC php-fpm --sort:rss | awk '{sum+=$8; ++n} END {print "Tot="sum"("n")";print "Avg="sum"/"n"="sum/n/1024"MB"}' This returns me 31MB. I've only got about 2GB to play with on the system in question - so theorotically if I change pm.m...
doc_7504
java.lang.RuntimeException: Unable to get provider com.facebook.internal.FacebookInitProvider: java.lang.ClassNotFoundException: Didn't find class "com.facebook.internal.FacebookInitProvider" on path: DexPathList[[zip file "/data/app/com.hellogold.app.dev-2/base.apk"] A: I've got same problem and was because...
doc_7505
Therefore, I want the right extreme of the slider to be "Current Time" and the left extreme of the slider to be "Initial Time" or "N mins back" Accordingly I want the ticks to update e.g. if the time has moved 2 mins, then maybe the ticks would be (initial, 1 min back, current). Similarly, if the time has moved 3 mins...
doc_7506
; MUI Settings !define MUI_ABORTWARNING !define MUI_ICON ".\Include\Images\Icons\icon.ico" !define MUI_UNICON ".\Include\Images\Icons\icon.ico" !define MUI_HEADERIMAGE !define MUI_HEADERIMAGE_BITMAP ".\Include\Images\Header\header.bmp" !define MUI_HEADERIMAGE_UNBITMAP ".\Include\Images\Header\header.bmp" !define MUI_H...
doc_7507
Specifically I need to create a program to collect information hourly from an API from 6:00am to 00:00pm so do it manually seems to be a bad idea.
doc_7508
i use element + requestAction to show a news block on some page of my site, like below: news.ctp <?php $news = $this->requestAction('controller'=>'News','action'=>'load'); foreach($news as $itm){ echo $itm['title]; //... } NewsController.php <?php //... public function load(){ //... return $data; } I...
doc_7509
Many fields have obvious mappings but I can't find a definitive list of the fields that JobLocation uses from Place. I am trying to populate a JobLocation for Google's Job API using data returned by Google's ReverseGeoCoding. The administrative_area_level_* fields are particularly tricky to know how to map. A: I've fo...
doc_7510
The problem is, however, that this url is utf16 encoded. When I try to open url using urllib, I get the error message from below. Any advice about how to proceed or an alternative way to proceed would be appreciated. EDIT: I believe the problem can be solved by calling urllib.parse.quote_plus(text) where text is the ut...
doc_7511
I've been looking at an example they have provided here but my requirements are slightly different. The first column in my table will contain location information, each cell will contain a building name and floor. I want to have two dropdowns that allow users to filter on both of these. So e.g. 'Show me Building 1 and ...
doc_7512
/usr/local/mahout/bin/mahout fpg -i /user/hduser/Data/retail.txt -o patterns -k 50 -method mapreduce -g 10 -regex [\ ] But got this error: Unknown program 'fpg' chosen. I found the fpg.props file here: mahout/src/conf but it is empty, I think it is why it isn't working but where can I get the original version? is there...
doc_7513
doc_7514
var lat = 0; var long = 0; function showLocation(position) { lat = position.coords.latitude; lon =position.coords.longitude; } function errorHandler(err) { if(err.code == 1) { alert("Error: Access is denied!"); } else if ( err.code == 2) { alert("Error: Position is unavailable!"); } } function ge...
doc_7515
That does the trick however it's really annoying, how do I get rid of that password prompt? my store is located at: C:\Users\admin\AppData\LocalLow\Sun\Java\Deployment\security\trusted.clientcerts Thanks
doc_7516
<!DOCTYPE html> <html> <head> <script src="https://www.gstatic.com/firebasejs/4.1.3/firebase.js"></script> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" cro...
doc_7517
datatable plugin is applied to first tab table well but on the second one give this error: "DataTables warning (table id = 'dttable'): Cannot reinitialise DataTable. To retrieve the DataTables object for this table, please pass either no arguments to the dataTable() function, or set bRetrieve to true. Alternatively, t...
doc_7518
Im using Meteor.template.onRendered() to display API data and I'm using jQuery to shove the data into the template. Then I want to grab a [name] selector that was generated through jQuery and manipulate it with Meteor.template.event() but it's not working //server Meteor.method() incrementNormalPoints: function(err){ ...
doc_7519
This is rvm ruby-1.9.3-p392 and Rails 3.2.13, and Pow. In the console, this command works: response = Net::HTTP.start(url.host, url.port, :use_ssl => url.scheme == 'https') {|http| http.request(request)} The exact same command, when accessed from a controller, FAILS with this error: SSL_connect returned=1 errno=0 stat...
doc_7520
The variable name '@UserId' has already been declared. Variable names must be unique within a query batch or stored procedure I have fixed the connection issue but now i see new issue. Please help. protected void btn_App_Click(object sender, EventArgs e) { using (SqlConnection myCon = new SqlConnecti...
doc_7521
//Template JS <script src="/js/core.min.js"></script> <script src="/js/script.js"></script> Also as part of this website I am using an ecommerce plugin and those files also need to be on the page, so something like this: //Plgin JS <script src="~/Scripts/jquery-1.10.2.min.js"></script> <script src="~/Scri...
doc_7522
Changing the publisher system to use Topics could work flawlessly, but I cannot change the publisher. Currently, I see two options to solve this: * *One option which can probably work is to use QueueBrowser, implement periodic polling which will read all messages and if the message is "mine", remove the message from...
doc_7523
html: <div id="wrapper"> <svg style="left:100px;" height="300" width="500" ...> </div> If I try do like this below in css, the width does not get affected in Safari (it's still 500 pixels). Doesn't Safari support !important-directive in combination with SVG? css: #wrapper svg {width:200px !important;} It seems to wor...
doc_7524
We used this: {{block type="core/template" template="customer/account/dashboard.phtml"}} Result: What we want: Nevermind the categories! Is there something we are doing wrong, well, obviously we are doing something wrong. Any more information needed? Feel free to ask! A: At first, you have to set the page template ...
doc_7525
gurobipy.GurobiError: Objective Q not PSD (diagonal adjustment of 1.0e+00 would be required) I have trouble with this error. So I tried some simple example like.. Minimize x1 * x2 Subject to x1 <= 30 and x1 >= 20 x2 <= 30 and x2 >= 20 and Maximize x1 * x2 Subject to x1 <= 30 and x1 >= 20 x2 <= 30 and x2 >= 20 Gurobi ...
doc_7526
$userInfo = $facebook -> api("/$user"); print_r($userInfo); Output: Array ( [id] => 1790302499 [name] => Lorem Ipsum [first_name] => Lorem [last_name] => Ipsum [link] => http://www.facebook.com/Lorem.Ipsum [username] => Lorem.Ipsum [birthday] => 11/11/1991 [location] => Array ( ...
doc_7527
resources :clientes do resources :projects end I need 2 buttons on my index page, one for creating Clients and the other one to create projects. <%= link_to "Nuevo Cliente", new_cliente_path %> <%= link_to "Nuevo Projecto", new_cliente_project_path() %> The problem: When clicking on new project, the new_clien...
doc_7528
A: This is a link from google video of Ken Schwaber co-developer of the Agile process, Scrum called as Scrum et al. http://video.google.com/videoplay?docid=-7230144396191025011. I gives a nice briefing about what scrum is all about and how it can be used from project management. Another link from InfoQ about Agile an...
doc_7529
Socket client which was implemented using Objective-C NSInputStream and NSOutputStream work well. Could I miss some connection settings? func connect(completion: @escaping ConnectCompletion) { connectCompletion = completion let tlsOptions = NWProtocolTLS.Options() sec_protocol_options_set_verify_block(tlsOp...
doc_7530
undefined reference to `MainWindow::go(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)' This is my code. Any help would be appreciated thanks ZorkUL.h #define ZORKUL_H_ #include "Command.h" #include "Parser.h" #include "Room.h" #include "item.h" #include <iostream> #include <string> us...
doc_7531
I have a NSView inside an NSWindow I set the view to clearColor and the alpha to .25, but I cannot figure out how to make the NSWindow transparent behind the NSView so you can see things below the application when it's selected. Been digging through doc's can't seem to find what I'm looking for any thoughts? Thanks A:...
doc_7532
Example: deserializing an empty object("{}") or without any of the fields that the target object contains. A: I always check if some fields is null after get Jackson deserialize api. But i think you can extends Jackson deserializer to rewrite deserialize method to achieve your purpose. A: if all from as set of fields...
doc_7533
It would make sense to send it after the user successfully signed out from Firebase. I'm using Firebase UI which has a signOut function, it returns a Task object that can be used to check if the user successfully logout, and send the request if it is successful. But when I try to generate a token for the request by usi...
doc_7534
Basically I have hidden a div with the confirmation message and it appears after the message successfully goes through. Does anybody know how I can stop the confirmation message appearing on the form that hasn't submitted. Here is the code - function jqsub() { //Form 1 var $form = $('#catwebformform39698'); var $mess...
doc_7535
I watch for the taps in Overlay.onTap, and run the media recorder in its own thread. Code follows. Here's my problem, in mode (2): After the first tap, the media recorder starts fine, but no subsequent taps fire onTap. In fact, the UI thread seems completely frozen for the 60 seconds of recording. BTW, I originally co...
doc_7536
I am building custom densities via the density(x) command. However I am hoping to generate 1000-10000 simulated values from this density. The overall goal is to take two densities build by density(x$y) form and run simulations and say this density A is more than density B x% of the time. I would just take each simulate...
doc_7537
I display articles at site/articlename I want to display the user account at site/username views.py (article): def post_detail(request, slug): post = get_object_or_404(Post, slug=slug) return render(request, 'post_detail.html', {'post': post }) views.py (profile users): class UserProfileView(DetailView): ...
doc_7538
ERROR: type should be string, got "https://codesandbox.io/s/custom-hooks-with-closure-issue-2fc6g?file=/index.js\nindex.js\nimport useValueErrorPair from \"./useValueErrorPair\";\nimport styled from \"styled-components\";\nimport ReactDOM from \"react-dom\";\nimport React from \"react\";\n\nconst Button = styled.button`\n background-color: black;\n padding: 10px;\n color: white;\n ${props =>\n props.error ? \"border: 3px solid #ff0000;\" : \"border: 3px solid #00ff00;\"}\n`;\n\nconst e = React.createElement;\n\nconst DemoComponent = () => {\n const [value, setValue, setError] = useValueErrorPair(0, false);\n console.log(value);\n return (\n <Button\n error={value.error}\n onClick={e => {\n e.preventDefault();\n setError((value.value + 1) % 2 === 1); // If number of clicks is odd => error.\n setValue(value.value + 1); // Increment the state hook for value.\n }}\n >\n Click Me For Problems!\n </Button>\n );\n};\n\nconst domContainer = document.querySelector(\"#root\");\nReactDOM.render(e(DemoComponent), domContainer);\n\nexport default DemoComponent;\n\nuseValueErrorPair.js\nimport { useState } from \"react\";\n\nconst useValueErrorPair = (initialValue, initialError) => {\n const [v, setV] = useState({ value: initialValue, error: initialError });\n const setValue = newValue => {\n setV({ error: v.error, value: newValue });\n };\n\n const setError = newError => {\n if (newError !== v.error) setV({ error: newError, value: v.value });\n };\n\n return [v, setValue, setError];\n};\n\nexport default useValueErrorPair; \n\nSnippet:\n\n\nconst { useState } = React;\n \nconst useValueErrorPair = (initialValue, initialError) => {\n const [v, setV] = useState({ value: initialValue, error: initialError });\n const setValue = newValue => {\n setV({ error: v.error, value: newValue });\n };\n\n const setError = newError => {\n if (newError !== v.error) setV({ error: newError, value: v.value });\n };\n\n return [v, setValue, setError];\n};\n\nconst DemoComponent = () => {\n const [value, setValue, setError] = useValueErrorPair(0, false);\n console.log(value);\n return (\n <button type=\"button\" className={value.error ? \"error\" : \"okay\"}\n onClick={e => {\n e.preventDefault();\n setError((value.value + 1) % 2 === 1); // If number of clicks is odd => error.\n setValue(value.value + 1); // Increment the state hook for value.\n }}\n >\n Click Me For Problems!\n </button>\n );\n};\n\nconst domContainer = document.querySelector(\"#root\");\nconst e = React.createElement;\nReactDOM.render(e(DemoComponent), domContainer);\n.error {\n border: 1px solid red;\n}\n.okay {\n border: 1px solid green;\n}\n<div id=\"root\"></div>\n\n<script src=\"https://cdnjs.cloudflare.com/ajax/libs/react/17.0.2/umd/react.development.js\"></script>\n<script src=\"https://cdnjs.cloudflare.com/ajax/libs/react-dom/17.0.2/umd/react-dom.development.js\"></script>\n\n\n\nA: The problem is that your setter functions are using stale state. When setting new state based on existing state, you should use the callback form so you're always dealing with up-to-date information. In your case, the call to setError was working fine, but then the call to setValue was using a stale copy of v and undoing the change that setError had made.\nIf we use the callback form, the problem disappears, see *** comments:\nconst useValueErrorPair = (initialValue, initialError) => {\n const [v, setV] = useState({ value: initialValue, error: initialError });\n const setValue = newValue => {\n // *** Use the callback form when setting state based on existing state\n setV(({error}) => ({error, value: newValue}));\n };\n \n const setError = newError => {\n // *** Again\n setV(prev => {\n if (newError !== prev.error) {\n return { error: newError, value: prev.value };\n }\n // No change\n return prev;\n });\n };\n \n return [v, setValue, setError];\n};\n\n\n\nconst { useState } = React;\n \nconst useValueErrorPair = (initialValue, initialError) => {\n const [v, setV] = useState({ value: initialValue, error: initialError });\n const setValue = newValue => {\n // *** Use the callback form when setting state based on existing state\n setV(({error}) => ({error, value: newValue}));\n };\n \n const setError = newError => {\n // *** Again\n setV(prev => {\n if (newError !== prev.error) {\n return { error: newError, value: prev.value };\n }\n // No change\n return prev;\n });\n };\n \n return [v, setValue, setError];\n};\n\nconst DemoComponent = () => {\n const [value, setValue, setError] = useValueErrorPair(0, false);\n console.log(value);\n return (\n <button type=\"button\" className={value.error ? \"error\" : \"okay\"}\n onClick={e => {\n e.preventDefault();\n setError((value.value + 1) % 2 === 1); // If number of clicks is odd => error.\n setValue(value.value + 1); // Increment the state hook for value.\n }}\n >\n Click Me, It's Working!\n </button>\n );\n};\n\nconst domContainer = document.querySelector(\"#root\");\nconst e = React.createElement;\nReactDOM.render(e(DemoComponent), domContainer);\n.error {\n border: 1px solid red;\n}\n.okay {\n border: 1px solid green;\n}\n<div id=\"root\"></div>\n\n<script src=\"https://cdnjs.cloudflare.com/ajax/libs/react/17.0.2/umd/react.development.js\"></script>\n<script src=\"https://cdnjs.cloudflare.com/ajax/libs/react-dom/17.0.2/umd/react-dom.development.js\"></script>\n\n\n\nThere's another advantage to doing that: You can make the setter functions stable, like the ones you get from useState, rather than recreating them every time (which can have knock-on effects causing components to re-render unnecessarily). For hooks, I prefer to use refs for stability rather than useMemo (or useCallback, which uses useMemo) since the useMemo docs say it's not a semantic guarantee. (It also reduces the number of functions you create and throw away.)\nHere's what that would look like:\nconst useValueErrorPair = (initialValue, initialError) => {\n const [v, setV] = useState({ value: initialValue, error: initialError });\n const settersRef = useRef(null);\n if (!settersRef.current) {\n settersRef.current = {\n setValue: newValue => {\n setV(({error}) => ({error, value: newValue}));\n },\n setError: newError => {\n setV(prev => {\n if (newError !== prev.error) {\n // Update\n return { error: newError, value: prev.value };\n }\n // No change\n return prev;\n });\n },\n };\n }\n \n return [v, settersRef.current.setValue, settersRef.current.setError];\n};\n\nLive Example:\n\n\nconst { useState, useRef } = React;\n \nconst useValueErrorPair = (initialValue, initialError) => {\n const [v, setV] = useState({ value: initialValue, error: initialError });\n const settersRef = useRef(null);\n if (!settersRef.current) {\n settersRef.current = {\n setValue: newValue => {\n setV(({error}) => ({error, value: newValue}));\n },\n setError: newError => {\n setV(prev => {\n if (newError !== prev.error) {\n // Update\n return { error: newError, value: prev.value };\n }\n // No change\n return prev;\n });\n },\n };\n }\n \n return [v, settersRef.current.setValue, settersRef.current.setError];\n};\n\nconst DemoComponent = () => {\n const [value, setValue, setError] = useValueErrorPair(0, false);\n console.log(value);\n return (\n <button type=\"button\" className={value.error ? \"error\" : \"okay\"}\n onClick={e => {\n e.preventDefault();\n setError((value.value + 1) % 2 === 1); // If number of clicks is odd => error.\n setValue(value.value + 1); // Increment the state hook for value.\n }}\n >\n Click Me, It's Working!\n </button>\n );\n};\n\nconst domContainer = document.querySelector(\"#root\");\nconst e = React.createElement;\nReactDOM.render(e(DemoComponent), domContainer);\n.error {\n border: 1px solid red;\n}\n.okay {\n border: 1px solid green;\n}\n<div id=\"root\"></div>\n\n<script src=\"https://cdnjs.cloudflare.com/ajax/libs/react/17.0.2/umd/react.development.js\"></script>\n<script src=\"https://cdnjs.cloudflare.com/ajax/libs/react-dom/17.0.2/umd/react-dom.development.js\"></script>\n\n\n"
doc_7539
doc_7540
productDetailCtrl.js code (function() { angular .module("productManagement") .controller("productDetailCtrl", ["productResource", productDetailCtrl]); function productDetailCtrl(productResource) { var vm = this; productResource.query(function(data) { vm.produc...
doc_7541
* *Generator(s) *Intermediate processor engine(s)(Aggregate operations) *Terminator(s) For example, using python generator & co-routines, & & Can Generator(s)-IntermediateProcessor(s)-Terminator(s) be considered as building blocks of event-driven-architecture? A: It depends. What your event-driven-architectur...
doc_7542
Also what is the optimal value for spark.sql.shuffle.partitions given the input dataset size is around 12 GB and cluster has got 128 cores ? A: Normally we use the following approach to identify possible stragglers and you have caught on to that: When Max duration among completed tasks is significanly higher than Me...
doc_7543
This is all of the content of the default.htm file from a brand new (and completely empty) LightSwitch HTML Client with the modifications required for SyncFusion: <!DOCTYPE HTML> <html> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=10" /> <meta name="HandheldFriendly" conten...
doc_7544
public class PersonId { int Id; } public class Person { PersonId Id; // ... } Can I map this classes in EF? A: Putting a class as the primary key isn't possible. With Entity Framework primary keys must be a primitive type or a byte[]. If you want to do something like that for something else than primary ...
doc_7545
When user click on check box then Id value will pass to PHP with the help of AJAX and it will display the image of the user. Above statement is working perfectly because I am passing the single id to PHP. Now the issue is How can I pass the multiple Id to PHP with the help of AJAX and display the images which are selec...
doc_7546
$conn = db_connect(); while ($newsfeed = $conn->query("select info, username, time from newsfeed ORDER BY time DESC LIMIT 10")) { (...) echo "<p>User $newsfeed_username just registerted ".$minutes." min ago </p><br>"; but it only shows the latest row ove...
doc_7547
But when attempting to use a registration form displays the following message below:Tables Column not found: 1054 Unknown column 'email' in 'where clause' (SQL: select * from users where email = thiagothgb@gmail.com limit 1) I do a relationship in the models Users like that. <?php namespace App\Model; use Illum...
doc_7548
*EDIT* I am wondering how I could add markers to points on a continual path? Currently I am looping through PHP and concatenating a variable with more co-ordinates like so: $line .= ' l '.$x.' '.$y; and then echo 'var line = paper.path("M 0 100 '.$line.'")'; Seeing as I am using the "l" value for a relative addition ...
doc_7549
I want to use maven embedded-glassfish plugin to simplify matter for people who will run this demo (so that they need not manually set up and configure glassfish server). However, I could not understand how to force embedded-glassfish to use other database rather than temporary apache derby. I use Java Persistence API ...
doc_7550
sockets = Sockets(app) @sockets.route('/echo') def echo_socket(ws): while True: message = ws.receive() ws.send(message) Unfortunately, when simply going to the url /echo using my browser it gives me an error saying: File "/Library/Python/2.7/site-packages/Flask-0.10-py2.7.egg/flask/app.py", line 1...
doc_7551
A: You generally will want to perform the hash operation in the controller, and store the hash result value in the model. Taking for example a simple user login to your website: * *When the user account is first created, you'll call Crypto.HashPassword(pwd) to calculate the hash value of the password the user has s...
doc_7552
Display: <?php echo substr($row_RS_NEWS_B2['Article'], 0, 150); ?<a href="news.php?news_id=<?php echo $row_RS_NEWS_B2['id']; ?>-<?php echo str_replace(' ', '-', $row_RS_NEWS_B2['Title']); ?>">... Read More</a> Is this possible? Any help welcome A: I guess, your solution is to use strip_tags() function for removing ...
doc_7553
zip.Write Chr(80) & Chr(75) & Chr(5) & Chr(6) & String(18, 0) zip.Write "PK" ^& Chr(5) ^& Chr(6) ^& String(18, vbNullChar) Both make zip file but are different. Does Chr80 and 75 turn out to be PK respectively? I'm echoing these out of a batch script into a vbs script and running the vbs script. Both seem to be workin...
doc_7554
CHAR="༇ " my_function=" prompt=\" \[\$CHAR\]\" echo -e \$prompt" PS1="\$(${my_function}) \$ " To explain the above, I'm builidng my bash prompt by executing a function stored in a string, which was a decision made as the result of this question. Let's pretend like it works fine, because it does, except when u...
doc_7555
Specifically, it's the code in assets/javascripts/channels/my_channel.coffee where channel js client code lives, with other general js code. I'm using actioncable. But general jQuery/javascript callbacks suffer from this, too. Rewriting jQuery append in javascript didn't make difference. All the callbacks are triggered...
doc_7556
Location: ~/.local/lib/python2/site-packages Location: ~/.local/lib/python3/site-packages But there is one bin ~/.local/bin/py2deb Can it be installed with different binary names py2deb and py2deb3? Other packages like nose are installed with bin names like nosetests, nosetests3. Offcourse I can create a symlink or c...
doc_7557
In simple terms i want to transfer money from account A to B. But there could be multiple requests to transfer money from the same account. The balance can never be negative, hence i decided to use SELECT FOR UPDATE to fetch the balance to lock the row. I am using JDBI for a connection to the database : http://jdbi.org...
doc_7558
Based on many StackOverflow posts, I've written a macro to export as a pdf and save as a .docx I open/edit the .docm document, that has an onSave macro that saves the document in .pdf format and .docx format which I distribute for other people to use. I will always be making my changes to the .docm document. My issue i...
doc_7559
all based on my pPostcode param but im not sure. I am a beginner the the whole PLSQL secne and any help would be greatly apriciated here is my procedure: procedure all_customer_postcode(pPostcode in carer.postcode%type ,pReport out SYS_REFCURSOR) is begin open pReport for ...
doc_7560
using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using UnityEngine; using UnityEngine.UI; using UnityEngine.Video; public class StreamVideo : MonoBehaviour { public Texture[] frames; // array of textures public float framesPerSecond = 2.0f; // de...
doc_7561
CABasicAnimation *rotationAnimation = [CABasicAnimation animationWithKeyPath:@"transform.rotation.z"]; NSNumber *currentAngle = [CircleView.layer.presentationLayer valueForKeyPath:@"transform.rotation"]; rotationAnimation.fromValue = currentAngle; rotationAnimation.toValue = @(50*M_PI); rotationAnim...
doc_7562
Here is my controller action: public ActionResult LoadTeamsandApplications(int id) { WorkstreamRoadmapViewModel vm = new WorkstreamRoadmapViewModel(); vm.Applications = GetAppList(id, 0); vm.Teams = GetTeamList(id, 0); JsonResult result = Json(vm); return result; } N...
doc_7563
<f:convertNumber pattern="###,###,###,##0.00" /> As you can see the formatting of decimal and centesimal goes reverse, I put them to the java code. <p:dataTable id="tablePapeletasPendientes" var="item" value="#{cPapeletaInfo.listaInfoPapeletas}" selection="#{cPapeletaInfo.papeletaSelected}" ...
doc_7564
<major version>.<minor version>.<build number>.<revision> Is there a way to make the version number the current date? For example, if I compile the build today, the version number should look like this: 2016.02.11.xxxxx Where xxxxx is what you normally get if you set the assembly version to 1.0.0.*. I googled around ...
doc_7565
[ { 'Title':'Mr.', 'First Name':'ram', 'Last Name':'chang', 'Employed at Trade Client Name':'mile travel', 'Telephone':'657498333', 'E-mail':'abc@traveller.com', 'Fax':' ', 'Street':'123 Street', 'City':'Winnipeg', 'State / P...
doc_7566
We are noticing data loss for Windowed Processor pipelines when the job goes down and takes some time to recover/when the job needs to be restarted. * *I have set UID for all of the Operators and I can see in logs that offsets are being restored from savepoint for the Kafka consumer operator *we are using BoundedOu...
doc_7567
<input semantic="POSITION" source="#grid-Position"/> <newparam sid="blah"> <semantic>DOUBLE_SIDED</semantic> <float>1.0</float> </newparam> But when i do this nothing changed. I paste this code: <effect name="Material0-fx" id="Material0-fx"> <profile_COMMON> <newparam sid="Image-Material0-surface"> ...
doc_7568
How can I clean recv buffer in paramiko in more clean and right way ? Now I re-establish SSH session, but it is ugly and stupid in my opinion client=paramiko.SSHClient() client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) client.connect('10.10.10.50', username='admin', password='admin') x=client.invoke_shell(...
doc_7569
#include <iostream> #include <cstdlib> #include <algorithm> using namespace std; int main() { const int Array_Size = 6; int The_array[Array_Size] ={ 30, 60, 20, 50, 40, 10 }; for(int starting_index = 0; starting_index < Array_Size; starting_index++) { int smallestindex = starting_index; ...
doc_7570
I want to receive the status of the message sent to any number, so I created Asp.Net WebAPI HTTP post method (status call back) and exposed to Twilio like below. But every time I send message, this http post method is not receiving any and my Twilio trial account logging the below message You are receiving this email...
doc_7571
@model Dictionary<int, string> <select style="height: 17px;"> <option value=''></option> @foreach (KeyValuePair<int, string> value in Model) { <option value='@Html.Encode(value.Key.ToString())'> @Html.Encode(value.Value) </option> } </select> Works fine, but if there are e.g. German umlauts in ...
doc_7572
A: Track your touch points and apply them in order to construct a Path (docs link) that can be drawn. Path is set up in such a way that you can append each point to it as they come in, and you can decide what type of connection (line, arc, bezier) to draw in between. You can use proximity between the initial touch an...
doc_7573
i.e.: A custom exit button uses an X - Icon. How can I add it to the component? (Without adding it to the resources file of the project, if it is possible.) EDIT: I use the bitmaps in custom Paint-Events. It would be a pain if the bitmap isn't found in the correct folder after the installation of the application. A:...
doc_7574
client.on("messageCreate", (message) => { if (message.content === "hi") { message.member.send("Hello") } }) A: To execute a piece of code when a user DMs a bot, all you have to do is add the DIRECT_MESSAGES intent to your client. Then you can modify your current code to check if the message sent was in a DM a...
doc_7575
var rsmd; var colCount; after hitting this query i am getting 3 result while(rs.next()) { logger.info('entering...'+(count + 1)); var columnName,patientID,value,text = ''; rsmd = rs.getMetaData(); colCount = rsmd.getColumnCount(); for (var i = 1; i <= colCount; i++) { columnName = rsmd....
doc_7576
I start from the beginning of an unsigned char buffer that's 44 bytes long. Suppose pointer 'exit' is at buffer[48] (I am just simplifying the problem). I am doing a buffer overflow to reach P. Along the way, I have essentially 48 iterations of random numbers while I traverse through the for loop in the buffer overflow...
doc_7577
Here is the interface: // non-generic-class interface I{ public <T> T doI(T t); } A: All the <T> in this interface means is that the type T passed to the method is the same as the type T returned from the method. Implementation requires some use of the symbol T as if it was a class Like public <T> T doI(T t){ ...
doc_7578
I started my project on OSX 10.8 with the Xcode 5.1 (latest available for that OSX). Everything was building and running fine and it still is. The project consist of a binary executable and couple of dylib sub-projects. Recently I bought myself a new Mac laptop. I installed Xcode on it (version 9), pull my sources from...
doc_7579
What I have implemented. KeyValidatorMiddleware class: public class KeyValidatorMiddleware { private readonly RequestDelegate _next; public KeyValidatorMiddleware(RequestDelegate next) { _next = next; } public async Task Invoke(HttpContext context) { if (!context.Request.Heade...
doc_7580
I used a ListView (it seemed the more natural way to do it), I did an adapter, extending ArrayAdapter, binded to an ArrayList<Action>, but I noticed that changes to list items are not backed to corresponding item of ArrayList. It's hard to explain, but I do this: Launch application, add an element of a certain type, wr...
doc_7581
However, I want to get my hardware one step smaller, and want to start using the BLE Nano for all Bluetooth related projects. For a first example project I'd like to create a bluetooth enabled temperature sensor with a small display. As Display I chose the 0.96" OLED Display from Adafruit, which features a SSD1306 Cont...
doc_7582
<!DOCTYPE html> the white space goes away. Here is my main layout <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>Title</title> <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" /> <meta name="viewport" content="width=device-width" /> @RenderSection("Css", f...
doc_7583
I set text it works fine, but if I set Html this return [object Object] class App extends React.Component{ render(){ return( <div dangerouslySetInnerHTML={{__html: this.props.children}}> </div> ) } } 1) ReactDOM.render( <App> Test </App>, document.getElementById('root')); --- Works 2)...
doc_7584
The base problem I'm trying to solve is this: I have a template parameter pack ArgTypes and I need to make a tuple with each of the types wrapped in std::optional. For example: make_optional_tuple<int, double, std::string> should return a tuple of tuple of type std::tuple<std::optional<int>, std::optional<double>, std:...
doc_7585
I'm reading the Google Maps Static API docs here: https://developers.google.com/maps/documentation/maps-static/intro But I can't find the option to request the API to get the path only, without the map in the background, the map needs to be transparent. A: You can use the PATH parameter of Maps Static API. Here is...
doc_7586
www.myapp1.com i have another application for login authentication. www.myauthapp.com When ever i send login request my myauthapp will process request and saves some details in cookie. So my doubt is how can i read these cookie from my angular application myapp1 i have tried so many examples from google here it is link...
doc_7587
Can you please help me where to start to do such a task? How to make the SOAP request in JavaScript using SSL and how to use the certificate file? Can I use either one of these two file types as the certificate to connect to the WebService directly or do I need to have a middle WebService of my own (written in JAVA or ...
doc_7588
def outer(foo, bar, baz): frobozz = foo + bar + baz def inner(x, y, z): return dict(globals().items() + locals().items()) return inner(7, 8, 9) The value returned by inner is the dictionary obtained by merging the dictionaries returned by globals() and locals(), as shown. In general1, this retur...
doc_7589
class A { void fun1() { A* ptr; ptr->fun2(); } } class B : class A { void fun2() { } } A: That is not possible. C++ is a statically typed language. The type of ptr is pointer to A. fun2 is not a member of A. By definition...
doc_7590
I wanted to know about the different types of things we can do with python in web development. A: I'd highly recommend learning HTML, JS, and CSS. It is essential for web development. It should be fairly straightforward though, especially compared to learning python. I expect you'll pick it up quickly. I'm not sure yo...
doc_7591
let's say schema for the first input data is like: val schema1 = StructType(Seq( StructField("date", DateType), StructField("campaign_id", StringType), StructField("campaign_name", StringType), StructField("platform", StringType), StructField("country", StringType), StructField("views", Double...
doc_7592
My data structure is something like _Category_ name:string send_reminders:array[integer] _Appointment_ category_id:integer title:string event_date:date _Customer_ appointemtn_id:integer name:string contact:boolean I want to query the customers who have an appointment reminder on that date. I thought I could accompli...
doc_7593
neighbours=[]#this array will hold the distance to the k-th neighbour for i in range(0, len(selection)-1):#208 values in selection n2 =[]#this array will hold the distance to all the other 207 points for k in range(0, len(selection)-1): d = {} if i != k:#to remove the same point being...
doc_7594
list<Person*> list1; list<Person*> list3; list<Person*> list2; and I concatenate using std::copy() and std::back_insert_iterator<std::list<Person*> > How to remove duplicates from list (only pointers which point to same junk of memory, not to delete that memory, only remove pointers from list) ? A: If you don't mind...
doc_7595
inside my rails app. I'm trying to make the component redraw, so that it picks up (via Ajax) some data changes that happened in the Postgres database. From the chrome developer console, how can I get a "reference" to the react component, so that I can call the .forceUpdate() method of the component? My code: // ideas f...
doc_7596
When I try to run node filename.js, I got a type error on the console: app.use() requires middleware functions I expect the result is: Working on port 3000 Below is my code: var express = require('express'); var multer = require('multer'); var fs = require('fs'); var app = express(); var DIR = './uploads/'; var upl...
doc_7597
doc_7598
I can get this to work if I give x:Name properties to the PanoramaItems, but I'm trying not to do that, since MVVM discourages using x:Name properties. The alternatives I've tried haven't worked though. It's easy to set the DataContext of the entire panorama to one viewmodel, but then I don't have the data I need for t...
doc_7599
Please help! <div class="posts"> <h1>Recent Posts: </h1> {% for post in paginator.posts %} {% assign cat = post.categories %} {% unless cat == "ml" %} <div class="post"> <h1 class="post-title"> <a href="{{ post.url }}"> {{ post.title }}: {{ cat }} </a> ...