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
0ccfaeeef99fc8a22d400945b2095625fbf7e0d07fa0e8af6a2bf166365e546a
['0dab071bb02441e4835c9ab89496d625']
On Linux, something like this will do, without modifying the source: strace -fe open make 2>&1 1>/dev/null | grep plots | sed 's/.*\"\(.*\)\".*/\1/' > plots.list Where : make is the command you use to build your output (could be some variation of pdflatex file.tex). strace displays the syscalls. With the options ...
ef8f65ac8e1b999bb9b492f240ebbd43d294395d715c80fe2ae11cdb2ce73d69
['0dab071bb02441e4835c9ab89496d625']
I have encountered a small issue with SCP (and also rsync). I need to copy certain files from server A (running SunOS 5.8) to server B (running SunOS 5.10). First, I get the list of files (several hundred) via ssh and find FILES=`ssh user@remote find ./ -name "*.sh" -o -name "*.cbs" -print` scp -r user@remote:"$FILES...
ee3cea29d29d22dbed643751a8df740341741ce4848e3b3ca0574009961c62d0
['0daf9d37848e4825948c2c38b868c74a']
With a little modification from @Ctx 's answer: The solution is to first parse the input as an object (so, not directly from args), then check its type: static PyObject* from_uint64(PyObject* self, PyObject* args){ PyObject* output; PyObject* input_obj; if (!PyArg_ParseTuple(args, "O", &input_obj)){ ...
1a1ae298100e018bfa638b4df6ca3da29047e7d5f8bb50c30049b5ae8e8c3b3b
['0daf9d37848e4825948c2c38b868c74a']
I'm writing a Python3 script with some computationally heavy sections in C, using the Python C API. When dealing with int64s, I can't figure out how to ensure that an input number is an unsigned int64; that is , if it's smaller than 0. As the official documentation suggests, I'm using PyArg_ParseTuple() with the format...
1606eb66902a64bf675490db6af8bafdf865413be3c12d82ecb64487a8e1e897
['0dbb92c8730e452693664a8ad422f1f1']
I'm currently making a Word Web Add-in. This uses Internet Explorer as engine. My Add-in needs to load multiple selected images from the users computer. Because some of the selected images might be quite big, I resize them using HTML5 canvas. This is my code to resize: function makeSmallImage(imageContainer, retrie...
5865a3810af66352fb8a9ddee5efda07a66e6bc84cbf6cce7b955a16fcce8d0c
['0dbb92c8730e452693664a8ad422f1f1']
My website embeds videos from YouTube. Right now, I'm using the iframe API for embedding from YouTube (https://www.youtube.com/iframe_api). The footprint of my website is currently ~1MB. About 300kB is my JavaScript, StyleSheets, images and fonts. Then I have ~105kB for the Facebook API and Google Analytics. All the re...
3dbdc9abdc57e27984666a29c05fd59898f185cd7e66255652abd8f8aa6c4208
['0dc347e5fe1243c4af6acbd3656687c5']
While answer of @tomgalpin is good, you can also use that in your scrip1.py: import os import csv import re import __main__.document_path open_document= open(document_path) file_name = (os.path.basename(document_path)) def start_s1(good, bad): with open ((('fqdn_') +(str(file_name).rstrip('.csv'))) , 'w') as outp...
f73c83e63a31cece485d867ee878a6632820528af068bec98f69521538f64ef7
['0dc347e5fe1243c4af6acbd3656687c5']
You are trying to iterate integer because len function return an int. You should use range in the outer place: mydict = { 'ServiceResult': { 'msgBody': { 'itemList': [{ 'busRouteId': '100100016', 'busRouteNm': '110A', }, { 'busRouteId': '100100015', 'busRouteNm': '110B', }, { 'b...
8e4da92d9a4b2f5d6723d89e44596341e62300c6ea941896935ec7f426e50b5b
['0dc41d82de0041b781187efee0a84e61']
My raspberry pi 3 has apache2 installed and i have run a php file in it smoothly. Can I open this php file from my android phone browser if it is connected to the same wifi as my pi? I am very new to php and this is for a school project.
73eb0a482b53319de918be7b3f2e9b729043fa7231ea2a53eef33a1521b806bd
['0dc41d82de0041b781187efee0a84e61']
I want to open an html file I made in rpi3 on the web browser of my phone immediately as I connect to pi AP. My pi AP is not connected to the internet. Nodogsplash doesn't work without internet. Also this html page isn't a login or authentication page. Just a normal page with some buttons on it.
baeec6d77f09a4bdb75ce9e3b2af0b696f3c38bff9f6b5617d96067a1adb09f7
['0dd684445f9e415081c4c6d8070aea2b']
((BaseClass)myClass).Method1(); --> object slicing hence always base class method will get called. Real polymorphic behaviour is achieved through base class pointer which can contain any objects of derived classes. Hence to achieve what you want you need to do pass address of derived class object and typecase it to b...
e12916a49d2664626edc7be36b047a757a37ec0d322aaa5499115146205820dc
['0dd684445f9e415081c4c6d8070aea2b']
I created a application let say "Mydesktopapp"(which is mix of C# and c++ deliverables and few XML's file). 'Mydesktopapp' can be run by clicking a batch file. Hence once user click on batch file, application gets executed and does it functionality on a desktop system. Now i want to provide this application to the use...
ecb1b9c57274e30d598da146e3c6a280ef45e6af24a2c5be35a9b5365e52d1ef
['0dd7d208f48b4159923148a03664ed3e']
I had a similar problem and 'fixed' it by subclassing ConfigObj and overwriting the methods that remove and add the quotes - from configobj import ConfigObj class MyConfigObj(ConfigObj): def __init__(self, *args, **kwargs): ConfigObj.__init__(self, *args, **kwargs) def _unquote(self, value): ...
c3a69458ff8dcfbc6f909f6c3c8d26b6690994f8fc462fd172d982e944be5749
['0dd7d208f48b4159923148a03664ed3e']
I am trying to use the RotatingFileHandler handler to manage potentially long logfiles for a Python project running under Windows. I have found that the log file rotation works fine when run using the IDLE interpreter (on a Windows PC) but fails with a WindowsError exception when run from the Windows command prompt. He...
7c1beac3deb13b37016cf7f2344ee5d88036f2ac5f23b0f5c8b57d7934687a03
['0deacf7f0bcf4abfbd0495890a6cb8b4']
The path given in -fx-shape is the shape of the region, and is implicitly closed (last point connected to first) - this explains the result you are seeing, where the top right corner is connected back to the top left to create a triangle. You may be able to use this exact path using an SVGPath node, as in this questi...
5eeaef88b8bb04c2e80c31aea94e6db0eaf2997f2c4bf9e1e5a53d908c4a340e
['0deacf7f0bcf4abfbd0495890a6cb8b4']
The JavaFX thread/toolkit must be running. Apparently, creating a JFXPanel is enough to initialize it, but once it is closed the thread is terminated automatically. To stop it from automatically closing call Platform.setImplicitExit(false); so the JavaFX toolkit only closes when the Platform#exit method is called, ...
9e5255e8420de17eda6337330a6834606815c3e6d49a055afa653b634297f108
['0defdc4f01684fc29510feffdb4084f7']
The code is correct. The problem should be the URL of images. Check if the path is ok. Or try to save the images in other format, like png. Can be any pattern color problem. Change your images like this and test if works: $(document).ready(function() { //Array of images which you want to show. var...
3cbd6d7c5801629c704286d2d988fa1fcbf85912b1204731fc9fad6afc29d42e
['0defdc4f01684fc29510feffdb4084f7']
You can use the CHRONIC gem. Chronic is a Ruby natural language date/time parser written by <PERSON> (@mojombo) which takes surprisingly human readable text and converts it to dates. (http://robdodson.me/playing-with-ruby-dates/) You can use like this: require 'chronic' Chronic.parse('Monday').wday => 1 I hope he...
7dfe071f9bbcd1cbf17a69049f550a227153a6dc5d68ba0fb71cf419a07ff4d1
['0df122696fa941a4958d843f73ae7aed']
For example: The utility function is ln(W), where W refers to the Wealth level. The initial wealth is $10,000 $ and you have a equal chance of winning and losing $1000. What if the insurance policy only covers the loss, how are you willing to pay for the insurance premium? Need some guidance on solving this question.
ec2ba83a2c00decb8191b670ef9cc9a2cbd3306355739c794b9734b839d2eeea
['0df122696fa941a4958d843f73ae7aed']
I recently started playing Star Wars: The Old Republic Online. Everything went fine on the starting planet, but once I hit my first off-world mission/flashpoint/what-have-you, I hit serious graphic trouble. Namely, I suddenly ran into enemy NPCs that I couldn't see. And I don't mean they were cloaked: I mean they were ...
98c0a08b23ce47ad4e98cd09e1b1665f24e643aa3f7cb03e7edf6fb7ffe972e9
['0df1a9c3f3fe4bc1a30395318f650b7d']
Yes, and I have attached the illustrated region. For me, unfortunately, it does not illuminate much. Both versions of the limits I have presented, in my mind, 'end up' at the same place. That is, for $\sqrt{x}\leqslant y\leqslant 1$, $y$ 'starts at' 0 and 'ends up at' 1, as it does in $0\leqslant y\leqslant\sqrt{x}$. I...
12a1a795e50b2d93712f72c486ec066af59bffaa4645cc1b4c75b527bff0eb3f
['0df1a9c3f3fe4bc1a30395318f650b7d']
Thank you for your response. I think I am starting to understand---since $y^2\leqslant x\leqslant 1$, this would suggest that my region on the $y$ axis is going to be all the $y^2$ 'below' the $x$-values, and for $0\leqslant x\leqslant y^2$, my region on the $y$ axis is going to be all the $y^2$ 'above' the $x$-values.
69a1e29567a3cb3a2099cf5613c7a26d5f0d6f700657fd7782bba0c7996c8cba
['0df9fed09ed8411ba5c9d493d9d768fd']
I have an Error in JDBCTemplate. Can't infer the SQL type to use for an instance of com.xurpas.util.hitsRowMapper. Use setObject() with an explicit Types value to specify the type to use. inc_var.getType= "Select type from table group by type" public List<Map<String, Object>> getType(String table){ JdbcT...
61aca04053e33a909444a93a68df838fb3f846e34b9f7fd0f1cc927e33a40278
['0df9fed09ed8411ba5c9d493d9d768fd']
This is my @RequestMapping("VIEW"). If the param is null. it will direct to edit mode @Controller(value = "viewController") @RequestMapping("VIEW") public class viewController { @RenderMapping public void handleRenderRequest(RenderRequest request,RenderResponse response,Model model){ PortletMode mo...
6e3ba7959f31639d3c0dffa68849012af38d39ddbac8276231854e2a53c26678
['0e015e8135d84a3ebd44d4f6a27e7d75']
<PERSON>, I am aware that <PERSON>’s conditions are to stop doing the sin, regretting and resolving never to do it again. Now my question is, is this something you orally declare you are doing? For example you make supplication to Allah SWT telling Him this? Or is this an action from your heart? For instance, you’ve...
5466b3f92f5dfc587f9927e9387f323f5af837c5dc078a60d49938ba86ac44df
['0e015e8135d84a3ebd44d4f6a27e7d75']
As-salamu Alaykum sister, There are many scholarly arguments for this. The most popular view is that she has to catch up her prayers that she didn’t perform. With istihada, she has to do wudu for each salat IF she is still suffering from istihada. If this is a lot for you, trying spreading it out throughout the day? ...
be1c90e5af761a96684be265d21fdc6936c694f6c3e25012f85e5d007735d3ea
['0e1865f6f0fe43888b236a6c760eb2d4']
I want to make my first android application and i'm new to Android world, i have seen so many tutorials and videos about android development, some say Android Studio is better and some say Eclipse is the core that all android apps is built with. I'm confused here, which one should i work on in my android development le...
8ab71e42366c6e2719770bd85aec7884b7fab0c8d2938a22256d308b444ff8d5
['0e1865f6f0fe43888b236a6c760eb2d4']
I'm developing an app for a news website, i'm displaying the news articles using UITableView where each cell is an article title, when a user clicks on a cell (i.e an article), another view opens (using segue), now in this view i want to put the following: The article's Image at the top. The article's date under the i...
edcdb31511a9e8902a693b9bafc7ba75bc60401803efc25e2db0a1345c090e11
['0e19c500821e4bc598c973675a3543ff']
They are probably not encoded correctly. You might need to open them in your textviewer and do a save as to your local encoding. Try to save it as UTF-8 or WIN-xxxxx. There are a few options. The SRT has to have the same name of the film of the DVD(data) and be the same directory as the file on the DVD(data) to be load...
dae584f5bc4f9d26677d7f831586f839a5eefa80fe0036552343c79dc9e8653d
['0e19c500821e4bc598c973675a3543ff']
THe fact that your AP has a DHCP mode tells me that it's probably an AP/ROUTER and not just a simple AP. If you wish to connect to your "outer network" you should do so with your AP in BRIDGE MODE so there is no FIREWALL/PACKET-FILTERING. If your AP/ROUTER does not have a BRIDGE MODE, to get around this you can disabl...
e376905f64b3f7849fc30437f23a389668dc2a1115f65e9f45cb8d86f8faf33f
['0e267b32fc924708ba6bb1af32ef53cc']
And would something like this also work? In this case I setup the listener, and attach the listener to the table. After the table is clicked, the listener is removed, and a new table is created using a create() method. It sort of works recursively (the create() function calls itself after the table is clicked), which l...
feece7a6c9bb9d7cf8a758a5f93c974f6d2569c533293d63f032bcdd687af8c3
['0e267b32fc924708ba6bb1af32ef53cc']
I've read through a lot of webpages discussing how to control memory leakage in a Titanium-based mobile application for Android. My situation is that I'm building an app that uses multiple levels of lists (in practice these are tableViews) where the user can navigate through. It is using one window, and when the user s...
bdf628faecf3ef9d1970e5735e074e545c1649a9eccdbe97c0c0201a0e188f01
['0e2c4c9301984ad1bfeef0761736f7f3']
I made a small program to count days. to count 150 days from May 22nd. But the result is 18th of October. The actual date is 19th October. Can anyone help me find whats wrong with my code. Calendar mine = new GregorianCalendar(2013, Calendar.MAY,22); int month = Calendar.MAY; int counter = 0; for(int i=min...
79ffd0b1a0f647d73b7488c7cf6b9ed5ad88d4211143ddba053df541eaa0849f
['0e2c4c9301984ad1bfeef0761736f7f3']
Dear All, I'm testing a Struts webApp using hibernate-mysql on tomcat7... After the 8 hours timeout period my webApp always crashes. I've changed configurations here and there. But no success. I really appreciate your attention... Here some lines from hibernate.xml property name="hibernate.bytecode.use_reflection_...
a0b5b76c103f7befa70b7e24efd37d6de167631760cbdfedfe3d56a281cfbca4
['0e2fdb55a9104e85949c1c95cf74d3f5']
Seeeeeecreeeets. My preeeeciooouss secretts. But yeah I can understand the frustration so I'll throw this one to you OP/SO. Feel free to update the PCG Wiki if you're not as lazy as me :3 There are actually many ways to do this. Some of the best techniques for procgen are: Asking what you really want. Design backwards...
b10db99a9e9013f4bfff06394ff038f646242a30ae2bff2d4d938de37e87150b
['0e2fdb55a9104e85949c1c95cf74d3f5']
I've done this task a ton of times. The answer is simple and it's what you do with children. Play a game There's probably many games you could play but the best I've run into is "Guess the Number". You play the game and they understand it. Then you tell them they just did a thing called binary search and it solves a l...
6a674b80bc14ff9213d5414b25376ba04a80de9701cc432efd2c8fc5ec3cd5c1
['0e2fe43f5ce7407d9e9c7d7d802dd25b']
I have understood now.The video was recorded with angular js version 1.0.x and the version I am using is the latest one. Actually,the transcluded markup completely replaces the contents of the element with the ng-transclude attribute in latest versions. In previous versions, the transcluded markup would be appended.Tha...
ef3e149635e3392c0959c2203b04c3c5b2b43ad8d48444477d594eab80fb3a02
['0e2fe43f5ce7407d9e9c7d7d802dd25b']
Im working on a DynamicWebProject in Eclipse IDE.I got an error in console while running a jsp page showing "Failed to load resource: the server responded with a status of 404 (Not Found)".I already referred many questions regarding this problem but could not resolve it.Here is my javascript file availability.js var aj...
9669217313753b1d7b0ed134a6f53d67d705b6f93e22d16e0f8fa8f119378ae3
['0e3eaed0672641b3ba10f12182fd653d']
In my case the following worked: KeyEvent.consume() Consumes this event so that it will not be processed in the default manner by the source which originated it. This stops Windows from stealing my focus, but I'm still able to access my menuitems with the keyboard mnemonics with ALT. Thanks to <PERSON> for his comme...
aca0809484c7c012e8af6804d176fe63950ddbe8daf60819c256cdc3adbf05d5
['0e3eaed0672641b3ba10f12182fd653d']
I'm currently working on a research involving Graph theory. More specifically, I would like to make an analytical or theoretic connection between different characteristics of the graph (e.g. size, node degree distribution, number of nodes with degree 1, etc.) to its minimal cut. The graph is also characterized by a so...
77a744121401e35cbbb30f8c37547e347954900051722994732ff9eca93e24ec
['0e457995dfcf42b68efc214a2c6f5bc3']
Two three item navbars do the trick: <div style="margin:20px"> <div data-role='navbar'> <ul> <li><button>A</button></li> <li><button>B</button></li> <li><button>C</button></li> </ul> </div> <div data-role='navbar'> <ul> <li><button>D</button></li> <li><button>E</button></...
122b3c985ff07bd41b958768aa79e715e2ae24c3b26d9c62afb3019ade3edd45
['0e457995dfcf42b68efc214a2c6f5bc3']
The following code shows a disabled textbox wrapped in a div with a jQuery UI tooltip attached to it. The jQuery tooltip will be shown properly in Chrome, Safari and IE when hovering the textbox (or, more precisely, the textbox covered div) but not in Firefox (28.0). Can somebody explain this behaviour and offer a fix?...
3aa73a90af1b0ebb70e39921db9c111e2d511c4005926d7bd578cb0405edb0d3
['0e4a4216f6d84604a11310d2037e85c6']
I found a workaround. I was using the shade plugin in Maven to package all the jars into an Uber JAR. Not using the shade plugin and just adding all the JARs on the classpath made the problem go away. Not sure what the exact reason is why Hibernate fails in this peculiar way, but I have a workaround now. To be clear,...
b0e2daa3d9f548a03c419d0490a79a75708f676f8570691d5192e97ad68b0767
['0e4a4216f6d84604a11310d2037e85c6']
I have a simple hibernate query: public AtMessage getMessageById(int messageId) { AtMessage message = (AtMessage) session.createQuery( "FROM com.persistence.AtMessage where atMessageKey=:atMessageKey" ).setParameter("atMessageKey", messageId).uniqueResult(); return message; ...
1f2910507d37dbc2d17b94348259776679a9ad25741bbf0a500df77a9c23bae9
['0e4cbdad76e24eb097c43abda29b207d']
Sorry the error is "Run-time error'13'" type mismatch. I original thought it was a simple syntax error after doing some online research. I tried changing the plus sign "+" range statement into "&". doing this would allow the macro to complete but the output was not even close to outputing the correct value or response ...
c8d4dc94b82c3bed75bf527445463285c07eeb2874ea0e188d16a3c10e819e04
['0e4cbdad76e24eb097c43abda29b207d']
I am backing up my MacBook Air that runs OS X El Capitan 10.11.6 to an external Hard Drive using Time Machine. I have another older MacBook that runs Mac OS X 10.6.8. If I wipe the hard drive of the older macbook can I restore it using my the Time Machine that was created using OS X El Capitan? Any issues that I should...
215d6932c8a39df6dbf426ac8152242ff65a027f961ee752c8ac96ff9e4c0ad8
['0e4d253c69554768ab85b3e0dfda1451']
The code is in this jsFiddle: http://jsfiddle.net/r8ND3/1/. I cannot figure out how to center the div "#game" and its contents. I have tried using margin: 0 auto;, float:center;, and even $("game").css("margin-left", .5*$(window).width()-.5*$("#game").width()) inside of $(document).ready(), but none have worked.
76f6ddcbbe20242983862972c082aa06a9969ae7127cc5c6c80a83ae95951662
['0e4d253c69554768ab85b3e0dfda1451']
Note: All code is in this jsFiddle: http://jsfiddle.net/5qrkk/ I have this code to register spaces in Javascript $(window).on("keydown", function(key){ if(key==32){ console.log("SPACE"); $(".sh").fadeOut(600).toggleClass("hdt").toggleClass("sh"); $(".hd").fadeIn(600).toggleClass("sht").toggl...
a1f7523c589c3f81ec315873f5e1bed370a8c981cdb067441c30e168da7181be
['0e5a7c8d34e2407f86bfe2e59963e074']
You can do this with java.io.File, by using the constructor which takes a File and a String as arguments, will interpret the String as a relative path to the File. Or with java.net.URL, you can send an URL and a String to the constructur, which will interpret the URL as a context for the String parameter.
138b00f763aa6a8ad9b9e2979bb50ede7a3f92a2ef339fe5be7e11dc64524ccc
['0e5a7c8d34e2407f86bfe2e59963e074']
I'm not sure I understand the question, you want to know if b.a is infact the same variable as c.a? In your case, b.a will be the same as c.a if b==c. If you declare a static, it will be shared between all instances of foo.
d00641a5b19b16c86faa761ae6cbb7b29f3f3509241e6590ac8095fef2ef6ef5
['0e5b4c39051d42b4a56839b57d01e8fd']
I have a Users entity that is duplicated across a few different applications where it just inherits the datasource from the application.cfc. I am trying to consolidate some sections of the applications to one spot, so I need to access the entity with different datasources since the one application will access all secti...
0d0f276a4cf1c3956e4daab6fe707b4a45464239ad5cec67207c1cceb8f3848d
['0e5b4c39051d42b4a56839b57d01e8fd']
Do you mean something like this? DECLARE @Age as int SET @Age = SELECT PERSONAGE FROM PERSON WHERE ID=2 SELECT PERSONID, PERSONAGE AS CURRENTAGE, MAX(CASE WHEN (@Age-PERSONAGE) >1 THEN PERSONAGE ELSE NULL END) OVER (PARTITION BY PERSONCITY) AS OldestYounger FROM PERSON This way you have the age of the one...
941865c503a9b50d6aec3dde02e661adfe6b1cf29522998dfc77127e06cb9722
['0e625c74531346c588c58a9f7fac6972']
So I made a simple service that allows Registrations and LogIns, so the only methods in my service contract are : Register(string username, string password) and LogIn(string username, string password). When starting the service in the Visual Studio service hosting gizmo I can call my methods properly and everything wor...
dcef160ceb0692353583a1285e019a484787ea197293928b8da9d274c790ec49
['0e625c74531346c588c58a9f7fac6972']
I have a pretty basic Laravel setup that I am starting to test. I have my own library files in the folder app/framework and all the files are under the namespace "CompanyName\Framework". I added these files to the composer.json file to have it autoloaded in my app. My composer.json is then : "autoload": { "cla...
c98375d7f99ee4b7ce2d4a885d0f4bdf9028abcf9d0acc782ad144a8b89b7d2b
['0e66005b655e47e381910717d385ad74']
As far as I know, you can't set content mode to both aspect fit and center. However, center will do what aspect fit does providing the image size is smaller than the size of the imageView. If not, use aspect fit. The following code ought to allow you to differentiate between the two: if (theImageView.bounds.size.width ...
7e5173a37c6060ef551946723acb0faf66a900c8904353229dca9c739630c4c7
['0e66005b655e47e381910717d385ad74']
I'm trying to fix some odd behaviour which occurs when I rotate an iPhone app using UISplitView from portrait to landscape. I have two Master Table Views. When I am in portrait I can navigate from Master Table View 1 to 2 fine, but when I rotate to landscape from Master Table View 2, it then appears in the detail pane ...
f5dfd7972008a2dfeb900a8a4f42c1f6b7b96754de07a918cbeda140c94002fd
['0e7952af03e44e2d927100ea6d7da518']
I know this is an older question, but I just ran into the same problem today. Laravel would not validate a .mov filetype, even if I had 'mov', 'quicktime', or 'video/quicktime' in the validator. getMimeType() on the file was showing 'video/quicktime' so it seemed really odd. Digging into Laravel's validator class, it ...
847f2565b6280653418b75fb0d3b09fbccdd6dd940776d71eeaa44896113c245
['0e7952af03e44e2d927100ea6d7da518']
I have written a bookmarklet that functions just fine in Chrome and Firefox but it IE 10 it fails to append to the document. I believe it has something to do with it being listed as "unrated" in the IE favorites bar, but I am not sure what part of the code is triggering that: <a href="javascript:(function() { var e...
332c6c6e5e448ee264b13d686c9bdbcc1335bbd604c5aca6493ba722b4295110
['0e8a043236ee4c5391abedc442b95804']
I'm trying to convert latitude and longitude to a byte arrayusing Java and then convert the byte array to double using C++. SO far, here's what I'm doing: I have a byte array of {0x40,0x4a, 0x62, 0x65, 0x27, 0xa2, 0x05, 0x79} which gives 52.768712 in JAVA. I'm trying to do the same thing in C++ using: unsigned char da...
dea992f717835dd137ca09b23f396b1fed7d5249cff83684e946a95321a083e3
['0e8a043236ee4c5391abedc442b95804']
I'm trying to use FreeRTOS to write ADC data to SD card on the STM32F7 and I'm using V1 of the CMSIS-RTOS API. I'm using mail queues and I have a struct that holds an array. typedef struct { uint16_t data[2048]; } ADC_DATA; on the ADC half/Full complete interrupts, I add the data to the queue and I have a consume...
cc66e21a3eeb248ee058e797cbfe2625eb784f93bfd224a06e870f41379d7d59
['0e8f98ddd3994a4a88b9d29d20e8059f']
Lets say you want to quickly share /somefolder to someuser temporary readonly. Add a system user: useradd -r someuser Often by default the folder is other-readable (check with ls -ld /somefolder), if you need to force it: chmod -R o+r /somefolder Add the user to samba with some password like: smbpasswd -a someuser Q...
a2be856c5c6032a77bb9504ab2c92b6ebf3a479e713ef0ac1ad9721d3f2fea6b
['0e8f98ddd3994a4a88b9d29d20e8059f']
I have a use case to make updates to a slightly complex JSON object and then return the list of changes made (not the updated data). The process of finding the list of changes is extremely similar to the process of making the changes and it would bring in some redundancy if I chose to separate the two methods. So I'm w...
994cf0efbdf4df1c3fed0154d1ba8ff85f5bf48a455e693300e39f9ed695e730
['0e9b8bf39fcd4e48ad1d2f16b7f568d4']
Turns out there is very limited support for customization and it is all outlined here: https://docs.aws.amazon.com/aws-mobile/latest/developerguide/add-aws-mobile-user-sign-in-customize.html To present the Email and Password user SignInUI, set userPools to true. To present Facebook or Google user SignInUI, add signInB...
e317b1acbecb4dca4fdb84c0113be036ea86d505b9bc6d107418ecc983f34e60
['0e9b8bf39fcd4e48ad1d2f16b7f568d4']
There are two surveys I need to send to the users of my mobile app to complete. The first is sent to all users and is done right after they sign up. The other survey however is sent to a select group of users a few months into their app usage. At the moment, I'm using Amazon Cognito for user pools and management so I ...
8a5106cd44467588ec67091f6bbfb767d433e2e1d57a1643a3d23c0429970070
['0e9f7c792eaf405a960ac28a980d8933']
I'm using the Google Identity Platform's OAuth 2.0 flow to authorize a javascript/HTML teacher observation form to write to a Google Sheets document. Everything is working well most of the time; however, last night one of our principals hit the following error: "Request had invalid authentication credentials. Expected ...
e433d8d8c0826e41c59c1076755821765eab56b84e98ddb513eb9f5ee4e91542
['0e9f7c792eaf405a960ac28a980d8933']
I believe How to refresh expired google sign-in logins? had the answer I needed. Since all of my API calls happen at once, I added a new Date() when the page loads, a second new Date() when the submission flow begins, and if they are more than 45min (2,700,700ms) apart, I use gapi.auth2.getAuthInstance().currentUser.ge...
60c4ef4b25275d0afa3c68040c6d04419dc8e78bca2cdebbaca9966ccbb38a27
['0ea2f270e04e413f81526bba3f5307b2']
Um erro bobo, porém acabei encontrando a solução com a ajuda dos outros usuários. Segue a solução: Como informado nos comentários, adicionei um IF para receber o erro, sendo que a pagina era encaminhada mesmo com um problema no envio de dados. Após, isso recebi o problema: You have an error in your SQL syntax; check t...
3f134c144a67095203c1e7b920209ba1ab336410e9bc82473d4bf513f869a48c
['0ea2f270e04e413f81526bba3f5307b2']
I tried using your shader and could get it to work with moderate success. As I want to use my own sprites I experimented with some different setting in Photoshop, which didn't really work out I have trouble understanding this section of your post regarding the creation of own sprites with your shader: "First of all, yo...
05433c4b45c39131b22dfde09c3709f94742799debc60bae384d671f4f2453fe
['0eabc865b7d9497996245090688942c6']
We're working on an Android App that requires resizing (frame size) and compressing videos. We tested the code sample below and it's currently slow: https://github.com/hoolrory/AndroidVideoSamples/blob/master/CommonVideoLibrary/src/com/roryhool/commonvideolibrary/VideoResampler.java The output video frame size is reduc...
ad348cab383335e0e22b0993fec8201f56480603c91c25e3f1b7a50555efd22e
['0eabc865b7d9497996245090688942c6']
ANSWER: I found the solution to this problem. It turned out there was a firewall active that was blocking the port. The firewall is called "firestarter". Not sure how this was installed, but it can be downloaded from the ubuntu software center. The default inboud policy blocks all ports except for SSH (22). I opened po...
5aa1f5caca79e4cab56aa3c3cd9859a3e00b5537f2ee1aa4414a4592ff0f78f3
['0eafa6fea4fd4cb5a960dd19faf3a866']
When I want to pass a parameter to the view constructor I am getting an error in the MasterDetailPage xaml. Error: No constructors found for Xamarin.Forms.NavigationPage with matching x:Arguments. MasterDetailPage: <MasterDetailPage.Master> <pages:LoginMasterDetailPageMaster x:Name="MasterPage" /> </MasterDet...
700550cc62bbd7e3bebf190197c5be102ed2e39f3069e6d5d8e2ce9adb494b69
['0eafa6fea4fd4cb5a960dd19faf3a866']
I am trying to make a SOAP request and I am catching an Exception, you can see it below. (I am not consuming WCF) Maybe someone had similar issues and knows how to solve it? Thanks in advance. {System.ArgumentException: The empty string '' is not a valid local name. at (wrapper managed-to-native) System.Object:__ical...
1af91f148fa7dd8603346b12fc9b446fedba5b17c84da1cebac5419d90fa3830
['0ed5fe90a5ac4642a3f3206deea5dff7']
A solution for your problem might be: Throw out your @header definitions. Build .java files with ANTLR Tool by command: java org.antlr.v4.Tool -package com.splendit.pli2uct Reason for the error when you leave your @header in, is that the ANTLR Tool combines the two grammars, so it is nearly the same as if you put it ...
ce469391766f4fdfee479491599fa68f26a1f7e90dbfd1ec4c9686c85c125ff6
['0ed5fe90a5ac4642a3f3206deea5dff7']
You are omitting whitespace, so why do you match ' ' in your grammar rule functionValue? Remove this parts and you get a complete working grammar (on your given example) including the correct parsing of the calculation expression. The rule is now: functionValue : 'VALUE(' (STRING)* functionNumber ((STRING|functionNumb...
5f49eb3b3e7aeb6056544129b77b7753a99508df7bd76e18df45fc47d43b08f8
['0eecc05d8c8343098df5747ef63f909a']
You have shown that $$N:=\left\{a\in\mathbb R:f(a)=0\text{ and }f'(a)\ne0\right\}$$ is countable and $h$ is differentiable at $a$ with $$h'(a)=\begin{cases}e^{g(a)}g'(a)&\text{, if }g(a)<0\\0&\text{, if }g(a)>0\\0&\text{, if }g(a)=0\text{ and }g'(a)=0\end{cases}$$ for all $a\in\mathbb R\setminus N$. What can we say abo...
802b91c68f8dd3979662447a87b051452a2e3576ca72d33a23dff17d42cf1c26
['0eecc05d8c8343098df5747ef63f909a']
Let $T>0$ $(\Omega,\mathcal A,\operatorname P)$ be a probability space $(\mathcal F_t)_{t\in[0,\:T]}$ be a complete filtration on $(\Omega,\mathcal A)$ $B$ be a (standard, real-valued) $\mathcal F$-Brownian motion on $(\Omega,\mathcal A,\operatorname P)$ Moreover, let $$\mathcal E^2_{\text{loc}}(H):=\left\{\Phi:\Omeg...
5015cf8c4f839d83d4dbd2d41a9e1c1f10e48477c7f7188103e257f7069d979a
['0f00e21267ea430d94f5bae646ddee91']
This seems to be a 'better' answer, as I am using sbt together with sbt-native-packager plugin: mappings in Universal ++= contentOf( baseDirectory.value / "conf" ) This takes all the files under the specified "conf" folder and dumps them in the package root folder. Which uses the MappingsHelper I stumbled upon in the...
5fd095d9022fd24b5ed0892067006f1f8bbf27eca0f184e147bb998facbcbaf0
['0f00e21267ea430d94f5bae646ddee91']
Silverlight had a nice feature ("design time data") that allowed one to indicate data for use in views which was only used at design time. This allowed a designer to work with fleshed out screens that looked realistic rather than just a skeleton. (for a bit of background on this feature in Silverlight, here's a random ...
b958e40eac5fd3aa1ac03e3da928b83c6c6f5c08ca35dc52f5dadcea4575b716
['0f234fdafb9d40f9be79c84b53f573e9']
The answer is NO. The reason I was getting the behavior I describes was that the gi module is not present in the installation of python that I was using, namely the factory installation on my new MacBook. I was aware that python 2 came installed on Macs. Using Homebrew, I installed python3 thinking I had to in order to...
affe1a4f4389df86663a2fa9007eb42d5a46e7e0eea7158a1170fde40c21d06a
['0f234fdafb9d40f9be79c84b53f573e9']
Thank you <PERSON> for your suggestion. Before I saw your post, I came to a similar conclusion: Using the Arraylist of vertices from the paint operation, I populated a "Path2D.Float" object called "contour" by looping through the points list that was created during the "painting" operation. Using this "contour" objec...
3484c461305f7d628f9c5a50e4c60d22896997f4f1ce57a9dfd688b4295c3f36
['0f2c4ccfbd0b4ed7a1aa697bd0e868da']
I am trying to override how the categories are display in Timely's All-In-One-Event-Calendar. This calendar uses twig to display all categories in and alphabetical list. I need to group the list by parent id. At location /all-in-on-event-calendar/app/view/calendar/taxonomy.php is: /** * Creates the html for categorie...
08b5045256ad97bdc6de7f03ef926a7d1fc4b511f26bcee29b60af1d0560126b
['0f2c4ccfbd0b4ed7a1aa697bd0e868da']
I have a computer that does not show all of the files in windows explorer or when doing a dir from command line. When browsing in windows explorer - it goes up until file "cat.doc" then no more. If I do a dir in my documents - it will list until it gets to "cat.doc" and then next line says "File Not Found". If I go ...
9fb5c6258f2083805c8bae28ee8e1bbd854d7009db2bb9dd506821b481222e87
['0f3aeb9973d042068f507a9e95ef2579']
One of the simple ways to handle this situation is using variables. You can easily import a file to set the current latest version. You will need to reload your nginx config when you update the version with this method. Create a simple configuration file for setting the latest version # /path/to/latest.conf set $late...
3251be291fc03973fb849d22d6461f920faf44d8108f3a0a44ae536f4b54e426
['0f3aeb9973d042068f507a9e95ef2579']
Indeed the timeout you are setting is not working as you expect it to. Both scripts are spawned, and the expect "assword:" after each spawn is actually catching and reacting to the same password prompt. expect is actually more sophisticated than a cursory glance would lead you to believe. Each spawn should return a PID...
521217f709d89114c4bc21c7c6ef5ec6def0bbef58596436cd6da9c5aa940e89
['0f3ca5f5072d462bb1b6e4c5a5f27200']
I have three drop-down menus on my site that I created via Bootstrap. Ideally, when a user clicks on a drop-down menu and selects one of the inner menu items, the drop-down menu should update its text content to the text content of the selected menu item. However, for any drop-down menu, if a user clicks on a menu it...
972676ffd3f6cffae9eb18b79e3dafa45093fa915544fbf5db7fd6956e92347f
['0f3ca5f5072d462bb1b6e4c5a5f27200']
Example of text file that I am trying to read in One of the most <adjective> characters in fiction is named "<PERSON> of the <plural-noun> ." <PERSON> was raised by a/an <noun> and lives in the <adjective> jungle in the heart of darkest <place> . He spends most of his time eating <plural-noun> and swinging from tree to...
8201f1b20bde7476857f68fc6d242195fb04e75696efafb0e9c7301bbaf17f76
['0f407c4d597b4827800f7747f169df76']
I completely agree with <PERSON>: think about performance when you need to and focus on clarity. If I would have to choose between the two though, I would choose the second way - but slightly adjust it, with help of LINQ. I would want to, for each array, do: arr.Where(x => /*Some condition*/ ).ForEach(x => {/*Do Someth...
acb8f5bf4d796c8094cbb39c1f60b82b0ef3eaa363c6168ac3afd090eaa52928
['0f407c4d597b4827800f7747f169df76']
The problem is that you're not using the value that you compute in your SubjectExistsChecker(). In order to use what you return from within a method, you could perform an assignment upon the call to the method, like so: String exists = SubjectExistsChecker(input, exists); But if we go this way, we don't really need to...
4d5997131cafe9fc626dcc79518b9b03a9886d5046da86b076ac89e0cc0bf928
['0f582b0e296a45f78ec87049907155ff']
I think that you need to include first the AngularJs's file/cdn and then your app.js file. You probably need to send all the files that are involved in your page like css, js and so on. If you post more code about your server-side application we may help you.
0c9d3968c80a2d86c15cd845513e61c0dab8e009688044a592f85bd102d23c5f
['0f582b0e296a45f78ec87049907155ff']
This query work for me: db.collection.update({ '_id': new mongoose.Types.ObjectId("59198a3e73ae303f97e97e8f"), 'child.id': A SPECIFIC ID }, { $inc: { 'age': 1, 'child.$.age': 1 } }); Your query doesn't work because the $ operator need a condition to verify before increase the appropriate child from the...
07a4218880d3918c0421eeeed6443c990047c99dfd725accc7987618b1d770a8
['0f595ef3151f4210864a46f5165551df']
A thought: why do you have to convert the images in the first place? Why not just use Flash to display the images. That can be done using ActionScript. If the images are not the correct size, then use your application server to resize them before putting them in a location accessible to your Flash application.
6d0a6272fa64b9ab5d443a3d1faf1d4ece83774164068f5c8b88c42d88b7cc5f
['0f595ef3151f4210864a46f5165551df']
Well you need to run the query (or a count(*)) at least once to get the total number. You could: Cache this query and refer to the cached query's recordcount again and again Store the record count in the session scope until the next time it is run for this user
9c61be5e41239b684d9ed0d0301aa6dd63b263d1c1306155f101966601a1004a
['0f5f0e671b72447094b924033f24860d']
I am reading <PERSON> - Difference between Weil and canonical heights, and on page 739 in Example 7.1, the author is investigating the curve $E: y^2=x^3-x+1.$ The goal is to determine $E(\mathbb{Q})$. Here is an excerpt: I do not understand the last part. What result is used to conclude that $x(P)\in\mathbb{Z}$ implie...
defb84eb7be9ae9e72092e87ed403f21f7829f261a3a282a4346994a5533b7b9
['0f5f0e671b72447094b924033f24860d']
I believe we have a short exact sequence (writing tildes for quotient) $0\to\tilde{m}_x\to\tilde{m}_{x,y}\to\tilde{m}_y\to0$. The first map is inclusion, and the second kills all terms involving $X_1,\dots,X_n$. Assuming this, we can use the fact that the alternating sum of dimensions in a short exact sequence of vecto...
02c7dd5bba921e02c01fd166742c1b7a9d49e9c2d4e25230d0c58e243337c921
['0f65488762344084b4c0ba7178a38fed']
Let's say I have an array of arrays containing JavaScript Date Objects, grouped by day. How would I go about displaying them in HTML as a table (or any other way), so that all matching times are on the same height? Array: let array = [ [ new Date("2020-01-01 08:00:00"), new Date("2020-01-01 08:30:00...
0cfcc8a68af1fe5914d8ccbf4c1fcc8c09bbb4f147accf285ec9bba918afb989
['0f65488762344084b4c0ba7178a38fed']
Let's assume I wrote a class Authentication that provides methods for registering users and signing them in. Of course I need another class DB that will run the actual database statements and retrieve the data. When importing Authentication in another application to make use of it, I would call its method signUpUser() ...
20dbbd498d7e2993b859bb0b95a51073dc844975380065efd1648f78f0afb98c
['0f6aec4b31454f56bb00c63e8c1bf026']
últimamente estuve teniendo problemas con la instalación y creación de paquetes (En Python). En primer lugar, por alguna razón, no se me crean carpetas caché cuando defino un paquete con el archivo __ init __.py, cosa que siempre pasaba. Luego viene el problema de la instalación (porque crear uno, se ve, no es un probl...
9f1b1f403c7bc6aa45084017e936ab975090fcd17c7ca4bdb2ba6680f0782398
['0f6aec4b31454f56bb00c63e8c1bf026']
ok, because you mention that for comparing symmetric and anti-symmetric we cannot assume a≠b, so for that i understand for symmetric part. but for anti-symmetric it mean aRb and bRa mean a = b. so for my previous post, anti-symmetric mean a = mb and b = na does that imply we using the reflexive property a = b or it ...
087b0c0b2b652106dbb0cb6a330893e5b11dbb38dc6caace256c43c9aa9178b8
['0f6afb4ff59c4a50adacf604594292dd']
Thanks for everyone's comments! I managed to solve this for my problem by writing my own <PERSON> optimisation: import numpy as np from sksparse.cholmod import cholesky f = np.zeros(n_data) difference = 999 while difference > 1e-5: cur_hess = hess(f) cur_jac = jac(f) cur_chol = cholesky(cur_hess) s...
c915ad3546ce123c042d65ce71bd4fb3a7c62fc0b4bd9b6a3f5c7b5a813e9a3a
['0f6afb4ff59c4a50adacf604594292dd']
The problem I am trying to solve involves minimising a function with respect to a large number (probably 10,000+) of parameters. I can cheaply compute both its Jacobian and its Hessian. The Hessian is very helpful; I am not entirely sure the function is convex, but using the Newton-CG algorithm in scipy.optimize: resul...
33a7f669c389f112b47fa29ed2fbfbbc4aa55b1e296b805489c12d52a4e5c55a
['0f89e38960984b2c8b8718a1963006c0']
Not sure if I fully understand your problem, but you can create a py.ini file on Windows as described in the Customized Commands section of PEP 397 of which PyLauncher is an implementation. [commands] ipython=C:\Anaconda\Scripts\ipython.exe -v Changing the path to where your local IPython is installed. If you associat...
443a3dc3d1c3c7ca35bf7658c35cb06908e13ada83cb2e193c53bdfccfd021ad
['0f89e38960984b2c8b8718a1963006c0']
The WinPython IPython QT console appears to default to pylab with the inline backend as <PERSON> suggested in the comments. It can be a little confusing to know what mode Matplotlib is working in see Matplotlib pylab and pyplot: how they are related? I tend to use the Python distribution Anaconda it's QTConsole doesn'...
a269b92fc348788b9d7638b4b837c524564c763b24098234fe3d1bc4a187a76f
['0f9ac314074146368153690e71e63f58']
The correct solution from my code example above is as follows: function resolveLatestEvent() { var eventsPromise = getLatestEvent(); eventsPromise.then(function(result) { eventDetails = result; const config = { headers: { 'Content-Type': 'application/json' } }; axios({ method: 'p...
18b9309c6aa67fa1ca3c712b1dbdc31fc86873881f2c0c63d0026c4b18677c7b
['0f9ac314074146368153690e71e63f58']
I am trying to create a secondary private interface to communicate between 2 openvz containers. I have tried the steps indicated in the manual here: http://openvz.org/Virtual_Ethernet_device Doing this I am able to get the container to communicate with the br0 interface I have created on the host machine but the host m...
8e9d78b84b0a88a7a975e6ade0199e2ff630922b91c687a6f85a4004b4befd03
['0fa2f2df508d4e798e4ae9fe5e3d30ad']
I'm trying to make a scheduling program where no two talks can proceed at the same time, although a talk can proceed as the other one ends. After putting the first talk into Scheduler plan, I want to go through each talk in my arrayList and check if there compatible with the last talk in the schedule. I figure I can c...
2319d36c3479fdf0b0b860467b40c8e08f0a98d5c8a6e1965d390cac90c5643e
['0fa2f2df508d4e798e4ae9fe5e3d30ad']
I've been having trouble with this for a few days and cannot get past it. I have an arrayList that stores. public class Application { Time startTime = new Time(hour,minute); Time endTime = new Time((startTime.getHour()), (startTime.getMinute() + duration)); Event e1 = new Event("Lecture", title, startTime, endTime); ...
f1841f4c119b53515cd4ca7c06eb236da3ec29532b3274c5abdc1dff9cc62638
['0fa6f2084660406db0be6bd048f47bcd']
The issue here is that the on_ready event should not receive any parameters. See the Minimal Bot documentation here and the on_ready documentation in the Event Reference here. If you want to send a message when the bot connects. You must first get the channel object and then use the send method. You can find an example...
721d0b8399785e51b32e79fe23e92a0216d3a000dff3faa405aa7e2e609e45d8
['0fa6f2084660406db0be6bd048f47bcd']
I ran into the exact same problem a while back and figured out that decorators are not applied for inherited classes. Decorators i.e. (@IsString) must be applied to the class directly so you unfortunately must redefine the fields in your parent classes to your child DTO's. See the TypeScript documentation on this here....
cc269c11da7ffcc7526162d7a69c70dafb51dbb3ef9ba42f5eb7954b02596f10
['0ff6514e0f9947d2b1091b901c0e3850']
The condition you're looking for is in_array($nid, array(51, 52, 53)) (or you could use a bunch of logical ORs). Putting it all together yields: <?php if(in_array($nid, array(51, 52, 53))): ?> <div class="band main-content"> <?php print render($page['content']); ?> </div> <?php else: ?> <div class="band main-...
565114b7b4ef7109b75854f601b51406d9af591bbb1b98934a8fe9f150977e84
['0ff6514e0f9947d2b1091b901c0e3850']
As far I can tell there is no way to directly test LEDs in the emulator. The best you can do is ensure your notification is working properly and then assume that the LED is working as well. Maybe you could borrow a friend's device with an LED? If anyone else knows how to do this in the emulator, I'd love to know how!
b35f956170b24af68e238d7b1a2a1cac658798e3630e25c27a815985d7881ce3
['0fff0138f5f349daa60bc1298ccbd3be']
$(\cos a + \cos b)^2 + (\sin a + \sin b)^2 = \cos^2 a + \cos^2 b + 2\cos a \cos b + \sin^2 a + \sin^2 b + 2\sin a \sin b=(\cos^2 a + \sin^2 a) + (\cos^2 b + \sin^2 b) + 2(\cos a \cos b + \sin a \sin b)=1 + 1 + 2 \cos (a-b)=2+2\cos \frac{\pi}{6}=2+2.\frac{\sqrt{3}}{2}=2+\sqrt{3}$
abfc7bd8185256d305ef49929cab79fc32553a283efb0406c38051a07bd4222a
['0fff0138f5f349daa60bc1298ccbd3be']
You may use root test: This is because note that for sufficienlt large $n$, $\cos (\frac{1}{n})>0$ and hence $\lvert U_n\rvert ^{\frac{1}{n} }=(\cos (\frac{1}{n}))^{n^2}$ and hence $\limsup_{n\rightarrow\infty}\lvert U_n\rvert ^{\frac{1}{n}}=\lim_{n\rightarrow\infty}\lvert U_n\rvert ^{\frac{1}{n} }=\lim_{n\rightarrow\i...
fac2b7508d4d5d2f73eba3e3843a4afa060e9be2537b527453787b3eb24f8b26
['101f6a51d6cd47179e5d2a83177c0f16']
You have to give access_type=offline while authorization. And also you need to use the refreshtoken to refresh to get new access token for your operation.The access token have expiery time. So if you want to use your acess token you have to refresh it.otherwise it will be an invalid token after the expiry.
811d3c8a05babfcda27495c81ddf5524f334224f2adab230526d7f33251e0b97
['101f6a51d6cd47179e5d2a83177c0f16']
if you want to fetch the whole profile of the google+ user, you can use the below URL https://www.googleapis.com/plus/v1/people/me/?access_token={YOUR_ACCESS_TOKEN} Then call the GET method. You will be given by an array containing authorized profile details. Another method is that, if you want to store the authorized...
1e232f43039f8c3740cc8480dd5403fe0301888358b2cdfef864972e593ace3b
['103a1e2d053f421d824f1ffdded9beb2']
I have configured two datasources in my Spring/MyBatis application. I don't get any error while startup (its reading the Mapper XML and interface). But when invoking the method, its throwing the following exception: MyBatisSystemException: SqlSession operation; nested exception is java.lang.IllegalArgumentException: s...
d7f4d1b1e7307373605b03938aba3d38ffceea50c94f0d34d4134309ffe032ef
['103a1e2d053f421d824f1ffdded9beb2']
I am implementing a NiFi processor and have couple of clarifications to make with respect to best practices: session.getProvenanceReporter().modify(...) - Should we emit the event immediately after every session.transfer() session.commit() - Documentation says, after performing operations on flowfiles, either commit o...
2424c32a03868ffe3dca3b3c3d0c75c37f9ccad08caf2240f9924da0af0cae06
['104116423c0e452fb7ac603ca5e5aa20']
I cannot reduce the screen brightness in Ubuntu 13.04, my device is an Acer Aspire 5742. Ubuntu systems settings says the graphics driver is "Intel® Ironlake Mobile x86/MMX/SSE2" but my laptop comes with "Intel HD Graphics". So I assume it's a problem with my graphic drivers. It would be great if some one could tell me...
93b316307d20479889e8cf0f0f5d65157a58414a55bac6b94bc79b713f8a1489
['104116423c0e452fb7ac603ca5e5aa20']
Turns out that along the trail of calculations I was trying to use as an argument for the Math.Pow() function, I was using the "Value" parameters from one of my "Choice" type fields. The values I'd assigned to the choices in that field could be used in most calculations, but not in the Math.Pow() function. So I ended u...
d6b2f50b0e3b75b3e31552dfb724965b340886f9dfb5ba5b01844734e3d8e29a
['1051fb7134a7481ea111216ae9793bdd']
Now that we've all fought over micro/macro optimization, let's try to help with the actual question. I don't have a full, definitive answer, but you might be able to start here. GCC has some macro hooks for describing performance characteristics of the target hardware. You could theoretically set up a few key macros to...
0754f41a85cc44be3995910a0144c379b278c6ba50cde98d413a6027555c8ba9
['1051fb7134a7481ea111216ae9793bdd']
This doesn't exactly answer the questions as asked, but I wanted to start by trying a more thorough English translation. It's not perfect, and there are a few lines where I'm still trying to track down the intent. Everyone please speak up with questions and corrections. lea ecx, [esp+var_8]; Load Effect...
a368a7123e0ad05289f153d50fff0207547bad69267be153fc0c987ecb07dfc9
['10569e3fe8af43a9b0e2e10507962196']
My bad, it´s a feature of HDIV. A6 (Sensitive data exposure) : HDIV offers a confidentially property to all data generated at sever side. That is to say, HDIV replace original parameter values generated at server side by relative values (0,1,2,4, etc.) that avoid exposing critical data to the client side. Reference: ht...
5c7678c4a8dbfe69fcd9d0ecc25b03d7674c6a9cc2b47b142fed552d1b38a001
['10569e3fe8af43a9b0e2e10507962196']
I have a web application that uses Spring MVC and Spring Security. When I add the following configuration to my web.xml, it turns impossible do login, it just gets the session expired and I´m not able to authenticate: <session-config> <session-timeout>15</session-timeout> <cookie-config> <http-only>...
cefacaae242f4d3f8345cc93f858e7426c9687f503c9cde4e13643d488ac1807
['106e7b6260364bb3bcb55c4bd7a9aa4e']
I have a small script for manipulating a sparse matrix in C++. It works perfectly fine except taking too much time. Since I'm doing this manipulation over and over, it is critical to speed it up. I appreciate any idea.Thanks #include <stdio.h> /* printf, scanf, puts, NULL */ #include <stdlib.h> /* srand, rand ...
c03c3337f995bd5b07344f2bce4875e414c3b107bf96e1185ab8a7209285ee68
['106e7b6260364bb3bcb55c4bd7a9aa4e']
This might work for you and others who check this out. In order to set elements of a matrix m based on the condition on another matrix A, you can use this notation: m = (A.array() != 0).select(1, m); This command replaces those elements in matrix m that have non-zero corresponding elements in A, with one.
6b629e1ff9e1ea8cd506955a1a4d9c3b3e92bc27e5075b34fe8daf0120ee6ea1
['10994facdea44b6e919c9da193333d51']
I'm working on a bigger app, where we are using lazy loading for modules. After we load a module, then in some cases a component get rendered to a <ng-container><ng-container>. The problem is, the animation which is defined on container is not getting called. I've created a dummy stackblitz example to demonstrate what ...
3ab127edec81bf381ad786e3cfc18b01e8de88d1a887d3a8e33f6e08ce75b27d
['10994facdea44b6e919c9da193333d51']
I want to find FIRST and FOLLOW for the following CFG: S -> O | M M -> iEtMeM | a O -> iEtS | iEtMeO E -> b I did the left factorization, so I get: S -> O | M M -> iEtMeM | a O -> iEtO' O'-> S | MeO E -> b The FIRST sets: FIRST(S) = FIRST(O)|FIRST(M) = {i,a} FIRST(M) = {i,a} FIRST(O) = {i} FIRST(O') = FIRST(S)|FIRST(...
1ee32ac15210c872bf467d0ce64868b6789ddd5bb96288c80d74b72b60c480f5
['10a2ce7b71e14fb3bd3c43be4ec69d80']
I am submitting a form using ajax with enabling CSRF protection to true in config.php. First time, the form is submitting well but second time it's showing error "Forbidden. The Action you requested is not allowed. 403". How can I securely submit form using ajax by enabling CSRF protection to true. Below is the ajax fu...
5f434de0f9f61020412b6584aeab3cee83f0d1425a0acfb45aa8026d767b7b99
['10a2ce7b71e14fb3bd3c43be4ec69d80']
I am deleting an item like this. The delete method is excuting well but I can't echo the last executed query. public function deleteItems(Request $request){ $query=null; switch($request->category){ case('categorylist'): $category = category<IP_ADDRESS>find($request->id); ...
b8a5dd4853c75074b0ab6c59abd5562708554cd00321bc0baad01d48de24023e
['10aee3bd9efb4460abb83bc48bf3eca5']
Typically this would be done via Flash, not javascript, due to browser compatibility. That said, html5rocks has a decent tutorial, and also explains some of the technical challenges. Mainly: The real problem is that the web's security model is very different from the native world. For example, I probably don't want ev...
a90ee6609e89821cf6cef497f850572f6ac0f41b72330ab175f3fa177eaba68d
['10aee3bd9efb4460abb83bc48bf3eca5']
I fixed it to how I was expecting it to work, and am pretty sure this is the correct answer to the question I asked. <PERSON>. <div class="container"> <div class="col-sm-6"> <div class="row"> <div class="col-sm-6">Label 1</div> <div class="col-sm-6"> <input id="input1...
4711adfcf0e4d0bf88468e3552ac15721201892acfcdfa0c47e2e2a958a8444d
['10d154b01b744929ac722e90975876fb']
I'm getting a CompileError when running a simple PyStan model in Python: WARNING:pystan:MSVC compiler is not supported Traceback (most recent call last): File "C:\Python36\lib\distutils_msvccompiler.py", line 423, in compile self.spawn(args) File "C:\Python36\lib\distutils_msvccompiler.py", line 542, in s...
3c2e18110e0c65c1fb4d9e295c0056067294c8c68adf212f07d1629cf477946e
['10d154b01b744929ac722e90975876fb']
Answering myself here. It turns out that others have had similar issues and that the 'standard solution' seems to be to run a conda virtual environment for all pystan modelling. The pystan docs have detailed installation instructions for conda, which worked for me, but no support for non-conda users.
75e288424c5a7abf5963054f603157cbaccdf25ead7d558f55ab8459d3c98218
['10d7274b9d6e4ddd821785dd963a0d1d']
Can the other projects see and use the app.config of the main application Yes. Generally speaking, if the main project references the other projects, which I assume it must, then when you build and deploy the main project, the app.config settings specified in that project's app.config file, will be used for the config ...
4b9b877e505f39ad56758f021406b6a04b41aed1566f314f629ae952de9e6027
['10d7274b9d6e4ddd821785dd963a0d1d']
When you initially open a solution in Visual Studio, any installed packages will run the "Init.ps1" script within the package (if it has one). Sounds like the EF package might be the culprit, and from memory I know it has an Init.ps1, so might be worth removing that package entirely (manually, just delete everything) ...
cc31e55cb1cc6b09c351388b08a09f2aadf39d62c20f9d558420453ce71ef8ab
['10d97b4bdf6e47aea1ff0d3668d9fcf2']
I thought it was a mistake on RestFB side, parsing the result json, because I got several Exceptions and was kind of confused. The right way to do this is to use the Multiquery Support of RestFB (Executing Multiqueries with RestFb) Map<String, String> queries = new HashMap<String, String>(); queries.put("all_posts", "s...
b01bcefa7a5c805ff8eb136b0c891fd4d043503c5a1e0436a64fe9265b4ddcc1
['10d97b4bdf6e47aea1ff0d3668d9fcf2']
I'm trying to use HashMaps in R and get the following error message: wrong args for environment subassignment Here is what I did: lvls <- union(levels(data$p1), union(levels(data$p2),levels(data2$p3))) map <- new.env(hash=T, parent=emptyenv()) map[[lvls]] <- 1:length(lvls) Error in map[[lvls]] <- 1:length(lvls) : w...
30c71f27656e4d258d13486341a2d2b9d56c033482b11ca32685c5101924d690
['10ec615dd729493387d629852b9a01ac']
My aim is to connect to a running jupyter qtconsole using the jupyter_client API and to execute commands on that kernel remotely. Execution of code works but it seems not possible to interrupt running code from the kernel frontend using Ctrl-C (either in qtconsole or console). Below my sample code with I execute in a d...
ce3f4c246ba57fb1ac4801f4389272e9e1bcbe85c74cb03a7e050549dc78c16d
['10ec615dd729493387d629852b9a01ac']
Say we have a Python Pandas DataFrame: In[1]: df = pd.DataFrame({'A': [1, 1, 2, 3, 5], 'B': [5, 6, 7, 8, 9]}) In[2]: print(df) A B 0 1 5 1 1 6 2 2 7 3 3 8 4 5 9 I want to change rows that match a certain condition. I know that this can be done via direct assignment: In[3]...
c19c485b29154b72d253b0c44bdb08876d64f7c7d5e5bc0e005392d9377e62f2
['10ec9416cd3b48c9b21b2f6b2b2168a4']
@daveloyall That's not how it works. You encrypt the document *today*, and in 5 years, re-encrypt it with a key that is of appropriate length for that time. Do it again every 5 years. In 50 years, your document is still secure, and it is encrypted with of-the-day standards.
d1dd28ea5e1389ff9337ee5e9fba8e6b97de9518b045ea34bb7756332b1601c0
['10ec9416cd3b48c9b21b2f6b2b2168a4']
I'm not sure if you're aware, so I'll let you know here, if she is not on the same network as you, she will not be able to connect unless you port forward. I cannot provide help on port forwarding, as I don't know the model of your router. If you are on the same network, you can try opening the 'Multiplayer' tab from t...
b67b06868a98c77e062b85da1bcba7a42ba90871ac21fb2085eecc3a6c3e59ea
['10eccf2725fc40019b379b59fe579c47']
Update: i measured 1kHz constant noise with oscillator from MX-RM-5V module when it is connected to the raspberry pi 3. With external power supply the module works ok. When the module received something the noise dropped to 300-400 Hz. I found a visual solution and rather simple way from youtube to really see the noise...
6bb25df3a8c8e26a610d2728e480769f1ab8da69f0d4eb908d4cce442b151115
['10eccf2725fc40019b379b59fe579c47']
So, this is my simple voltage divider code: int sensorValue = 0; void setup() { analogReference(INTERNAL); Serial.begin(9600); } void loop() { sensorValue = analogRead(A0); // ADC , AREF=1078mV=Vin Serial.println(sensorValue); delay(1000); } Scematic The analog reference is set to INTERNAL and thi...
51a9c0f03aba3438423c8ceb2907bec807db9cff5092308c3842e708e3765b63
['10f9558a672340dfb32e388b5d1c8057']
I have the follwoing Jquery code to open page on button click passing a parameter but ? is translated to %3F is there anyways to fix this? $("#PrintDocument").click(function () { var grid = $("#Billings").data("kendoGrid"); var row = $("input:checked", grid.tbody).closest("tr"); var item = grid.dataItem(ro...
2e3238021b8cafbdc612d7ac86bfda3d7be379741fb5b1d9786ad6b4161f8f8b
['10f9558a672340dfb32e388b5d1c8057']
I have the following jQuery code on Search button click to read kendo grid data source but for some reason the pager buttons disappear function onSearchButtonClick() { var grid = $('#searchProducts').data('kendoGrid'); var gridDS = grid.dataSource; gridDS.read(); } On Search button click ...
68e9242d8c342ebb3186a53f2edd2a4447d87712d589972e1731a59bdef8ae7b
['10fcd7947349421ba27c45376f8d81d8']
I want to extend a class to include extra data and capabilities (I want polymorphic behavior). It seemed obvious to use inheritance and multiple inheritance. Having read various posts that inheritance (and especially multiple inheritance) can be problematic, I've begun looking into other options: Put all data and func...
fe327da100b371082a9a1ec6bfe269b202e2fe58cb6bc15bbdca6fc4100abae6
['10fcd7947349421ba27c45376f8d81d8']
I'm wondering if it's possible to pass a reference to a map where the data is a pointer to a derived class? #include <map> class B { public: private: int x_; }; class D : public B { public: private: int y_; }; typedef std<IP_ADDRESS>map<int, B*> mapB_t; typedef std<IP_ADDRESS>map<i...
3e4b2e18d2b9e2f7725ad9893d909986a10c75b1c5e2e4a12875310144602f8d
['110b0e5c59d5430ab5dbc89faca11a6f']
I want to show only the first 5 digits of the composed SKU for products, here's the context: Main product SKU: 12345 Variation SKU: 67890 SKU showed on product page: <PHONE_NUMBER> I want to show only the first (main product) SKU number: this is what I tried: $sku = $product->get_sku(); $skunodash = substr($sku, 0, 5)...
a7107f59023ab134d6ecf18cd42c536e7a9812c26d15285ab790aa5243e5a8ab
['110b0e5c59d5430ab5dbc89faca11a6f']
So, I have an admin user on Wordpress, I can login, I can post, update, install plugins, etc. But when I try to find my user name, or email on the database wordpress is using (in wp-config file), I'm not able to locate it. and mine is not the only user I'm not able to find in the database. Now,I got to this discovery, ...
144a8faf8703500a32fb90191b2d8465f4f9552bc216033cf4939c9962fdcde6
['1114c1dbdc3b49979209d3e3f72b33e2']
From what I understand about the read permission on directories, it allows listing of which files are in a directory and that's about it. Given a directory with 0744 permissions, owned by userA: [userA@localhost ~]$ mkdir -m 0744 /tmp/semi-secret [userA@localhost ~]$ ls -ld /tmp/semi-secret/ drwxr--r--. 2 userA userA 6...
c8f01209c4da55dfab235c9f454dacad6628fc6e7ccd7564fa922f9aa702dea7
['1114c1dbdc3b49979209d3e3f72b33e2']
How can I tell if my hard drives have a battery backed write cache (BBWC)? How can I tell if it is enabled and/or configured correctly? I don't have physical access to my server. It's a GNU/Linux box. I can provide supplemental incremental information/details as requested. My frame of reference is that of a DBA -- I h...
740bc61efe49e64e24642533a47d5957ced0663998c1fdae46229d4409d1abcf
['112810f96ebd476aaa1be11ddb5c7e33']
I want to use jquery jcountdown plugin but I have a problems. Starting time for timer is stored in collection and it's necessary for plugin init. I want to do something like: var time = SeqTimestamp.findOne({}).time; $('.countdown').countdown({date: new Date}); Rendered callback run once and doesn't see collection...
196a24c917ef198fdef98c46735693f4d0f4e4505ac9d9e40d2fb7f45e35246c
['112810f96ebd476aaa1be11ddb5c7e33']
I need to store tests results in any storage. But unfortunately it doesn't work with any db drivers any time it raise exception "CasperError: Can't find module net": var require = patchRequire(require); var redis = require("redis"), client = redis.createClient(); Is it possible connect casperjs to any storage (exc...
b59d165a4d292289ab34ff99bb38a806f901176ad1bf7a1aec3a5686978173b5
['113e47e055274dc389c86cf7426373f3']
I have an answer for you, although almost 1 year later... hopefully it can be of help. Here is a "simple" example, using Ionic 5.0.0-beta.5 (I think it could work with previous versions but the syntax might vary). Let's say I want to speed up the default "reveal" animation. I copied the original animation code from @io...
9ad7f0551a4f9a5de8a00ea00004b7801557cc8d92aee7dcdc797a23157915e2
['113e47e055274dc389c86cf7426373f3']
I don't think that onblur can be detected, but this is a code to detect onfocus: var timestamp=new Date().getTime(); function checkResume() { var current=new Date().getTime(); if(current-timestamp>5000) { var event=document.createEvent("Events"); event.initEvent("focus",true,true); d...
035b504a41ed740df6e454f0c5c06372d120036a862631f554e221972f4d028e
['1146567d356a437b9c5bd6ae1559bf43']
Instead of using <th> you have to use <td> even if it is part of the table head. <table> <thead> <tr> <td>Shops</td> <td>SOmethng</td> <td>Something#2</td> </tr> </thead> <tbody> <tr> <td>Something in the body of the table</td> <td>somet...
635257ca9ccba1e8228d092e9cbd147002563d3d77c05a449ec7c665a11ed99b
['1146567d356a437b9c5bd6ae1559bf43']
I made a code where when the client types something in the input, it will send the data to a jsp file to evaluate, and if the data equals "<PERSON>", it will say "Hello <PERSON>". The problem is that the input tag won't display your input, and only takes 1 input jQuery w/ input <fieldset> <form style="padding:15px...
b512c58b671cb0658ed6c524a09d76c8fbca3d846a7e3f81d22f0b8f4fa9faec
['114791a02e2c4d58905faf693fda0bd7']
i'm a beginner in write code with python. I wrote this simple script using Pandas and his DataReader to retrieve multiple stock results from yahoo finance: import pandas as pd from pandas.io.data import DataReader from pandas import DataFrame symbols_list = ['AAPL', 'TSLA', 'YHOO','GOOG', 'MSFT','GILD'] for ticker in...
227be40c6906db6477b4ddfdb9e84055e0e51b392c895a5333804906ac60b925
['114791a02e2c4d58905faf693fda0bd7']
I have this script that for now has static values: var Lines = []; var addLine = function(symbol, price, change, percent) { Lines.push('<tr>' + '<td class="symbol" >' + symbol + '</td>' + '<td class="price" >' + price + '</td>' + '<td class="change" >' + change + '</td>' + '<td class="percent">'...
999101cd118a15e5d0bbda3c66ec3419767a0f25a1e5548c2d98c3f84c3e5c61
['114ea0442d6e4fe3a6f6391d0cbb3ed1']
No, Razor cannot easily replace heavy use of javascript (i.e. a web based app) without a complete rewrite of the Html app moving functionality from the client side to the server side. You are probably best to learn javascript or determine what the underlying requirements were and re-write in Razor. Potentially replacin...
1a3dc0f8a3a23856ad18b093d3f23fbc023da93e73724b0d557c25f9d618d1f3
['114ea0442d6e4fe3a6f6391d0cbb3ed1']
So, does that the elusive mission statement indicate that a question like "Do I fire a guy that's had an affair with my wife", needs just a (possibly misguided) answer, or should a number of people encourage him, comment on his situation, and possibly criticize the answers? Forum was your guy's term, not mine. Our belo...
c1058f5d0e6b28a4969e43bc3ae384c2191702225c40d54010ef813f67d5a2fa
['1171775242a1437eafdcb0a8bef0e4e8']
I am new to C# and am trying to kill a list of processes. I was able to use the code below to kill one process but would like to change it so that it kills a list of processes. Over time the list will grow so ideally I would like to find a way to do this where updating the list would be quick and easy. try { foreac...
92c08ec27f52447f3a259e9392bc976529cfd73de9f0161e12bbf2d0b9110e3e
['1171775242a1437eafdcb0a8bef0e4e8']
The article below mentions SQUIDs several times but I can't figure out what it stands for. I know what SID and CLSID stand for but not sure about SQUID. Any ideas? Example from article: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\<SID>\Patches\<SQUID> Article: https://support.micro...
75535dde52363f6a2d383f21a96666f9d49801d4136d2c6505e38121222134fa
['1199bab36ecb477d8689dee71395ab9e']
Let say that S,T and U are subspaces of V. How can I show these inclusions? a) $S\cap U\subseteq(S+T)\cap U$ and $T\cap U\subseteq(S+T)\cap U \\$ b) $(S\cap U)+( T\cap U) \subseteq(S+T)\cap U$ I have no idea how to start. Any help?
f3e04cada9d37d4d9eb1ad4ad8829eaa75eed47affa188b4a84632387a5820ca
['1199bab36ecb477d8689dee71395ab9e']
What we know about projection matrices: $A^T=A $ $A=A^2 $ I want to prove that $(I-A)^T $is also projection matrix : My solution: $(I-A)^T =I-A^T=I-A=I-A^2$ we can see that $ I-A=I-A^2 => 0=A-A^2$, $A^2=A$ then $A-A=0$ Does it look correct? Thanks for help!
c63a3feb6fb1ec0be127f5e3264802e1352e22162135e91af0832b1ceb39827a
['11a50c79eaec4429bc8fcf670ace2fc5']
When I try to update the content of a resource in the Active Admin interface, I receive this error: ActiveModel<IP_ADDRESS>ForbiddenAttributesError in Admin<IP_ADDRESS>ThingsController#update ActiveModel<IP_ADDRESS>ForbiddenAttributesError Here are the contents of the update action in the ThingsController def update ...
53e34134f57eab23270e006872cd1cd0c8d64bc5a61d3254535fe2d450138e19
['11a50c79eaec4429bc8fcf670ace2fc5']
I can register and remain logged in as the user that has just been created. But once I click sign out and try to sign back in, nothing happens. Here is the server result: Started POST "/users/sign_in" for 127.0.0.1 at 2013-11-20 16:44:59 -0500 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8...
0e27cbdf2ebdbe6d94a3c7cf296387ce82172c2b01bca3878a65f4b7fba35b07
['11aeaeab79a340e3b51a3eba11cc36bf']
Error:(24, 32) error: cannot find symbol class PhoneAuthCredential Gradle compile 'com.google.firebase:firebase-database:10.2.0' compile 'com.google.firebase:firebase-storage:10.2.0' compile 'com.google.firebase:firebase-messaging:10.2.0' compile 'com.google.firebase:firebase-config:10.2.0' compile 'c...
a3c6c39983a91cf56a3d185983bd150d36357cc9217b2dc4e74c0d86e056e765
['11aeaeab79a340e3b51a3eba11cc36bf']
I am creating a calculator app in android.Just like a modern calculator you see in your android device. I have created a TextViewand below that, all my buttons are present.I also want to include the trignometric functions so when buttons layout is swipped, i want to show trignometric function and when it is swiped back...
11c420b41ff7cbcea77f891ff7a6da35ead1587b9a0e1d238e66715b05e4fbae
['11b146c7df3a4932803f5c8946aaf221']
I would like to know the easiest way to read a csv file located on a shared folder on a remote server. I'm doing this only for testing reasons, I don't really need to accomplish anything more than this task. The scenario is: I have a virtual machine A (which is on an azure virtual network) that hosts a csv file. On an...
461a03eb6230d08ac78873750d974b28ecd6f412942b08d0c63cdc79dfe67ff4
['11b146c7df3a4932803f5c8946aaf221']
I know this might look like an already asked question, and it probably is. But I've checked all of the answers already given and none of them fits my problem. So here is the thing. I have a very simple piece of code, like super simple. But I can't get my script to work. I always get the error Uncaught TypeError: docum...
d4ab884e5f5839f34f5f4c39a34b3d5d7f53a9dc868c46331c03501742c2be46
['11b2bbacea264f6e8496557c5173f43a']
Okay, thanks. A couple of other things. In the same function, you're yielding `self.board_[i, j]`, while I believe you meant `...[i][j]`, but that's a small thing. For consistency, would it also be better for `next_board_state` to hint a return type of `List[List[State]]` or `Sequence[Sequence[State]]`?
a4ac6b879d3617bda113dca4f9326eb9612023c4d8436b222159337e72292f4f
['11b2bbacea264f6e8496557c5173f43a']
I'm running into significant difficulty getting my mapping file to work with a collection of elements via a foreign key in Hibernate. Java will try to load these files below and won't have any runtime exceptions, but the events table is never loaded as an object of an employee (it will remain null, but every other attr...
64bc08d2ee807ff12ad02f8994cbc53443ae2da11222bc7fec03fed45429e9d2
['11babb55bab24d5cad9f304a6701cb0b']
I am trying to download an apk file on a button click using phonegap. Why does this code not work? Nothing happens when I click Download. Could someone point me in the right direction? Thanks. <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="stylesheet" ty...
11f54cca8cfea7ee7bd8884c4478a8bb8b311f057635aaa4364b20a950936526
['11babb55bab24d5cad9f304a6701cb0b']
I added the following lines to my header, but when I try to view my webpage on an android device I can't scroll down. <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; minimum-scale=1.0; user-scalable=0;" /> <meta name="apple-mobile-web-app-capable" content="yes" /> Any ideas wh...
ccd57069e0d80f3112343116a2c422d6677f87310a7cbc668a3f265d75fde03d
['11c4de1e6c664de091f1fcab438585e4']
First, I have Manjaro with Gnome 3.16. By default, my screen looks unreadable, so I put in ~/.profile xcalib -gammacor 1.3 -alter in order to fix it every time I log in. It seems to work, but that adjustment is reverted in one or two seconds. If I apply that command manually after, the change is not reverted. So, I be...
d760f320f215e0388a01e8e0f75ac7f924b78310e616a393bd826276dd96c326
['11c4de1e6c664de091f1fcab438585e4']
Currently my web.config has this: <appSettings> <add key="UserName" /> <add key="DBServer" /> <add key="DBUserName" /> <add key="DBPwd" /> <add key="DB" /> </appSettings> If i have to connect to multiple db's I would like my web.config to have the following <appSettings> <add key="UserName" ...
22dab87d33fe1ad118559c4111264612d80a65326e401638e5f0a0faa73be897
['11c6ce70b9cc4b529ec599bfb7e061d1']
ok because OSX is so dumb and stupid, don't use application path instead use app name or bundle id because it seems OSX needs time to figure out that your application is actually an application: you can open using bundle id: #!/usr/bin/env bash open -b 'com.myapp.mac' exit 0 or open using app name: #!/usr/bin/env ba...
0cf0bcf8a72c6763c536361cbf128c8076a799129d66354d8832b3d840942e3a
['11c6ce70b9cc4b529ec599bfb7e061d1']
actually you should encode the json string using server side or javascript tool and then AS3 will automatically decode it: for example in JSP: var flashvars = { xmlFile: 'http://iyt.psu.edu/xml/abington/home.xml', preface: 'http://iyt.psu.edu/', preload: '<c:out value="{"url":"flash/project.swf...
fab0c67b83f86b45ab8f9d2c8d886514af663c71c9b9a5ffb319911fee19ec2e
['11cac0f832ab40b5abf5f8c95cf5fe0d']
I'm building a React Native app and want to include push notifications for Android. We currently have the infrastructure for GCM push from our last app. However this time I need to use the JS code to pass the registration id to our push servers. The old app was a native Java app and used: gcm = GoogleCloudMessaging.get...
1e0c7b242e84afe4451c70d048285b14c1e64eb2f62c3db4aef26735d3b748d9
['11cac0f832ab40b5abf5f8c95cf5fe0d']
I have a guest box that has data I want to sync to the host so that I am able to edit it using an editor on the host. I want any saved changes made on the host to sync back to the guest. I've tried using normal shared folders config.vm.synced_folder "workspace/", "/my/folder/to/sync/" but this just deletes the contents...
cc28c6c2821a92a8a11f13de40c1c0880744fda35d6464b169cfad8a28b3f405
['11cf9875198d41fcae8a52b40e4f2aaf']
I got the expected output with Parquet files. Initially, I was using CSV, but csv deserializer doesn't understand how to put the elements into the correct position when schema changes. Changing the individual csvs into parquet and then crawling them one after another helped me in incorporating the changing schema.
e2857c5162e9bf845e3b21ed69ad9f2b5527342894e01747df19ea09b2365c27
['11cf9875198d41fcae8a52b40e4f2aaf']
I am planning to execute spark from KNIME analytics platform. For this I need to install KNIME spark executors in the KNIME analytics platform. Can any one please let me know how to install KNIME spark executors in the KNIME analytics platform for hadoop distribution CDH 5.10.X. I am referring the installation guide fr...
18e2bb7e20eed3e1c4caa30b399421c24ebe9cc6e452ddcb5624ba962c888468
['11e6ba563d8e4d7795bbf7ddedffdb24']
I am trying to stop or start a Azure Virtual Machine with PowerShell. I am not very experienced in PowerShell so I wrote a simple script as a test: Import-Module "C:\Program Files (x86)\Microsoft SDKs\Windows Azure\PowerShell\Azure\Azure.psd1" $subID = "<GUID>" $thumbprint = "<Thumbprint>" $subscriptionName = "testAzu...
8d8b60005ea236382bebdb29a9102d9a09d959d1acb1a61b7dac12ce616a1a47
['11e6ba563d8e4d7795bbf7ddedffdb24']
I fixed the problem with the following MSBuild script: <Target Name="DeploySlowCheetahTransforms" AfterTargets="CopyWebRoleFiles" Condition="'@(WebRoleReferences)' != ''"> <PropertyGroup> <IntermediateWebOutputPath>%(WebRoleReferences.OutputDir)</IntermediateWebOutputPath> </PropertyGroup> <ItemGroup>...
e59653f71b58c7f5d0e809cbe91f2fc5ed7ce14f11ae1709ebbc1186a3aa53f5
['11e8df2dc3514f83a30df246667a0bb9']
I'm encountering the same issue as mentioned at https://serverfault.com/questions/743515/my-event-log-has-corrupted-dacl-write-attributes-in-4656-file-audit-events/852636#852636 where there are some invalid characters in the event logs and therefore using .ToXML() fails with the exception: System.Management.Automation...
d1caa844f224c8265b8171fef29dd239d40658ae363a5941d0e176f21554ce69
['11e8df2dc3514f83a30df246667a0bb9']
I can't get dependency injection working with a custom ActionFilterAttribute class using the Unity bootstrapper for ASP.NET Web API nuget package. I've registered the type in UnityConfig and I'm using it elsewhere (using constructor injection there though) and it works fine. public static void RegisterTypes(IUnityConta...
0357661f62cbe09f0c5a8665e774cd5d9d48f50450e4695ff74e70827c482a32
['120160f839834d948a9f3195014ab293']
if (true) { let x = 5 } works as expected (no syntax error), but if (true) let x = 5 throws SyntaxError: Unexpected strict mode reserved word in Node 4.1.0 and babel Is this expected behavior? I know that this is a stupid example. I'm just wondering wether this is a bug or not.
cebcb5b5cf935305adbc33287286c38d58f2ce72da89b7a24ce4bf5e64a692ba
['120160f839834d948a9f3195014ab293']
I have the following two tables: orders with orderid | orderdate | userid | ... and users with userid | ... where I join them both: SELECT * FROM orders JOIN users ON orders.userid = users.id to get a table with all orders committed by users. Now I need to get all customers that have bought something between 2016-11...
0e8e5d3cd25b69fddfe55ea4304188928f77faae977d0cb85063c2c4e9bc8c60
['1209ecd7be5b47ee8783afcb9c05197d']
My problem is shown here: problem statement. I have one template image, which i have to detect in the camera image. After it is detected i have to normalize the camera image by using an affine transformation. The goal of my work is to identify the crosses. I tried to use SURF features for the image normalization step, ...
1e94e096fee282e1de286976a88544c63c5ca5c9540d0fc382ab9748d31037da
['1209ecd7be5b47ee8783afcb9c05197d']
If you are calling it like ./myscript.pl 1 35 You can use @ARGV. E.g. #!/usr/bin/perl use strict; use warnings; use Data<IP_ADDRESS>Dumper qw(Dumper); print "ARGV[0]=$ARGV[0]"; print "ARGV[1]=$ARGV[1]"; print Dumper \@ARGV; Example source. This is an old example, so it may not be using the latest style. I do...
5c70494974acad2d0bda7fc8b247f1f33e70cfa74a90628e94bdb0a1f4ad1401
['1213963f95da4c17b0110d55374e6bb3']
You could try: [DisplayName("Controller Display Name")] [Route("api/[controller]")] public class ValuesController : Controller { // GET api/values [HttpGet] [DisplayName("Action Display Name")] public IEnumerable<string> Get() { var ControllerDisplayName = string.Empty; var ActionsDi...
0a095f7e94bb03886c05a42f51af192d8fcdcf0f561dc21dbf75737985cee19d
['1213963f95da4c17b0110d55374e6bb3']
I started live unit testing with visual studio 2017 (15.7.1). After I switch the branch and start the project, an error message comes up saying the following: Could not load file or assembly 'Microsoft.CodeAnalysis.LiveUnitTesting.Runtime, version= <IP_ADDRESS>, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one...
e35dd991661697c9f19712496b1364b2f82c08bfdcef35dbd013b6b67cf77d8a
['121a5a99edb84a50bc076d40df929729']
how can i make each of the table row clickable to go to new page? is it possible in javaScript? <?php $query = mysql_query("SELECT * FROM instructor") or die(mysql_errno()); while ($row=mysql_fetch_array($query)) { echo " <tr class='info'> <td><img src='".$ro...
3cee375a2fc265c93c56aa72a82c2f0e516b052285e0ee2955d72f1197097281
['121a5a99edb84a50bc076d40df929729']
How can i exclude subject to be displayed from subject table that is already added in scheduler table? I have this code but it still shows up the subjects that are already added to scheduler table. <?php $sem = $_GET['semChooser']; $res = mysql_query("SELECT * FROM scheduler WHERE semester = '$sem'") or die(my...
4f155206a16d2b7309a854b9d28d2d770175ea40ee143ffe510ac83348a66844
['121df6fa88f341f8b261b38475c2f74f']
Hi <PERSON> and @Subash, You cannot check directly, there isn't any API to do that, you have to write code for it Below is a code snippet that you can modify as per your requirement: File file1 = new File("<file path>"); boolean isDeleteSuccess; do { //delete the file ...
9918d73afb1114168c075f0854e899d612196554a075302e41016c31e54a24a6
['121df6fa88f341f8b261b38475c2f74f']
URL fileURL= yourClassName.class.getResource("yourFileName.extension"); String myURL= fileURL.toString(); now you don't need long path name PLUS this one is dynamic in nature i.e., you can now move your project to any pc, any drive. This is because it access URL by using your CLASS location not by any static location ...
5f80ee15e5555a23e980321e4d640213a64a8832d75933d0b2a1b2d1464c1bba
['1221ce46af854fe1a0db3557711ebff6']
I'm doing a tweet classification, where each tweet can belong to one of few classes. The training set output is given as the probability for belonging that sample to each class. Eg: tweet#1 : C1-0.6, C2-0.4, C3-0.0 (C1,C2,C3 being classes) I'm planning to use a Naive Bayes classifier using Scikit-learn. I couldn't find...
405a08bd4609a566142109bc4e6e1f1677cb48268b33af11dffbf1289527dfaf
['1221ce46af854fe1a0db3557711ebff6']
Most of those issues are fixed in Pytorch v1.0.1. Intellisense may not be showing suggestions for functions like torch.randn if Jedi language server is being used (Please check this github issue for more details). Open settings.json and set "python.jediEnabled" to False. You will be prompted to reload VSCode. Once thi...
7f8ae7b38b33c60085c5b1c81922028ed7a6b06e3c5747f441808e50e28aa3cf
['1222dd861ff7402aa88681e7566d127b']
Use DataReader instead, use this code and just call CheckLogin in login button or somthing else. Sub CheckLogin() Dim conn = New SqlConnection("Data Source=SRV-SQL;Initial Catalog=prova;User ID=user;Password=user") conn.Open() Try Dim query As String = "select count(*) from tblLogin where userna...
79cf9f93f1c5f87c88b37a1dde07317e688f4b718dcc65d10f9703bf334e3c20
['1222dd861ff7402aa88681e7566d127b']
In vb.net you need to change your DataGridView settings to this: DGV.SelectionMode = DataGridViewSelectionMode.FullRowSelect DGV.MultiSelect = False Now you need to add a Button control and use this code: If DGV.SelectedRows.Count > 0 Then Try ' SQL part: ' Dim selectedRow = DGV.R...