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
e276e53d3fa1f12440997f821ff42640ddf64a12f5235d12d9345eaea04daa10
['d3055d172a6d411ba2fbdbf59670ae79']
I'm having trouble getting my GUI to contain any of my JButtons or JTextField. I have two classes One "SnowballFight" class that contains my main method and frame constructor. Then I also have "GameBoard" which sets up my GUI. My problem is that my GUI appears, but appears empty. "SnowballFight" class: package snowball...
251d460e6c4d49b232af004ef79725b78805d7663c3e02efeb3ad2d320fd09a2
['d3055d172a6d411ba2fbdbf59670ae79']
Using my code below gcc creates an un-executable file. Also when I include my sort.h header file I get an error. Thanks to anyone willing to proof read my code. The intended function of the program is to open the provided file and then sort it. file_sorter.c: #include <stdio.h> #include <stdlib.h> //#include <sort.h> #...
3f598a1577e3357292cac3fc9b91369d062ecfef731f153662613b56b93c1b38
['d30a8c054b0647f89396a8299a10ae86']
I have a Spring-Boot (1.5.3) application running on a Tomcat 8.5. Within it, i have a RestController with a single parameter. This parameter is decoded automatically - which is fine for all other controllers within my application, but for this one, i need the raw request data, since they will be used within another re...
8cd7e03b9206f3dc2990294abc9320177ab7ce80654e4d0fe88028bd70e993ff
['d30a8c054b0647f89396a8299a10ae86']
I ended up ensuring, that the received data was did not contain invalid characters. private static final String VALID_URL_CHARACTER_PATTERN = "^[A-Za-z0-9-._~:/?#\\[\\]@!$&'()*+,;=`.]+$"; private static final String ensureEncoding(final Object obj) { if (obj == null) { return null; } String val = o...
7f3905d5232ffe14884f2b82288e3cc9e4961b13055078e0bdff4250f7f50f91
['d31bbb914629449bb0e7587cb15acb6d']
To change the URL once the page has already loaded, you will need to use javascript, as you won't be able to do this using Laravel/PHP because you need access to the dates, which are only selected after the page has loaded. If your form is similar to: <form id="dateForm" onsubmit="return submitDateForm()"> <input typ...
7dc62508f914a92ff4129f0d2000e15938411905546f57576505f7178fd4a31a
['d31bbb914629449bb0e7587cb15acb6d']
This is not possible out-of-the-box with the current build tools and configurations that V8 provides. As suggested in the comments, using a VM might be the quickest way to get this working for you. If it is very important for you long-term, or for other developers as well, you could look at submitting patches to V8 to ...
f50628b0fb60da07175108529c174b388a2bb9cff64e3f28444d81718da33c93
['d31c16639a5d44bb9be91c921cf34d8e']
I have a problem that has the following table: Movie Studio Year Rating The Shining Warner 1999 8.4 The Pianist Warner 2002 8.6 The LOTR Dreamworks 2004 8.7 License to Kill Dreamworks 2001 8.3 Complicated HP 2005 7.7 Django Unchained HP ...
2068052e64c10b685e33ce7a689a5c58f9f14471fae81708975480b200a4d3c6
['d31c16639a5d44bb9be91c921cf34d8e']
So I have a table excerpt that looks like this: Title Type Year Rating ------------------------- Interstellar DVD 2014 8.4 Interstellar HD 2014 8.4 12 Angry Men DVD 1969 8.9 The Pianist HD 2001 8.1 The Pianist DVD 2001 8.1 Dragon Ball Z HD 2011 8.4 Dragon Ball Z DVD...
3984532a9a2bc639b466e04d60b2f22a4dd25554ea970cfc9384fb9d5af3da6b
['d31e9faabd934aa086f20fa93772f3f1']
Based on <PERSON> answer there is wp function to escape square brackets for using text in shortcode parameters: function my_esc_brackets($text = ''){ return str_replace( [ "[" , "]" ] , [ "&#91;" , "&#93;" ] , $text ); } Often people suggest using shortcode's $content for text parameters, but there are cases when ...
20b4ca57e2c9ba906adc1fefe0b1da4c1d75c3f7b08ddaa4c63ca4f396c7e18a
['d31e9faabd934aa086f20fa93772f3f1']
Okay <PERSON> it seem that you need to rephrase your questions into: What do you want to have? Going from general (A running server os) to specific (/usr should be on a partition on its own). I guess you just want a running system with CentOS. So I would recommend you to keep everything on one partition, especially sin...
741ca5661b8be405bc1614c0ff59f0cfdfd79d5b3657d597d4f1efa9fbf4f300
['d32409213cdf4016a5ff13ae628a65d1']
If you already have a class defined for this table you can use code as below var products = new List<Products>(grid.SelectedRows.Count); for(int index = 0; index < grid.SelectedRows.Count; index++) { var selectedRow = grid.SelectedRows[index]; var product = (Products)selectedRow.DataBoundItem; products.Add(p...
ed02fe3d4e9197ee051bed5d57599ff407f25eab060df615f118c5feb7e0919a
['d32409213cdf4016a5ff13ae628a65d1']
Well the code looks fine but playing sound really depend on the environment that you are working on For example your are doing this code on a windows server (let say 2012) then in-order to play play sound you need to enable media feature from control panel / add or remove feature or you need proper access rights(resx...
fa5935da359a6a4d81359aac5a94dd8257e23f78b16d96ab722db8af0cdfeb20
['d3282496f7e74905839a96c4104a5529']
Using pure javascript, with the onclick function in HTML code in menu items: enter cod<div id='etiquette-center-nav'><!-- .goToTop-lg in javascript: --><!-- Sticky window script resides in <head> of etiquette.php page. ID's are referenced in there! --> <nav id='navigation-etiquette'><!-- role='navigation' can be omitte...
0d32862eddc7b3d5f61bb720ef35aa08c7e11af85c612f0fea9f45704c49cd9a
['d3282496f7e74905839a96c4104a5529']
The javascript's first function is to "clear" any class previously set by clicking on .dropdown-menu li a. When you hover over {.dropdown1 la a} (or .dropdown la a), it applies bootstrap's '.hide' class to the .dropdown-menu. <nav id='navigation-lineage' role='navigation'> <div id='navigation-lineage-shadow'></div>...
9238f9b8ead8334be596f4f08cb77c3ae4514c9c5c9b00b21c439d70e3d36abe
['d348fa22472c4c528089aaa90317a757']
You can integrate over $\mathbf{s}$, but you also have to impose the constraint that $\|\boldsymbol{s}\|=1$, which does not seem to be presented in your partition function:$Z=\int \mathrm{d}\mathbf{s}\; e^{-\beta H(\mathbf{s})}$. For example, you can probably add the constraint using the Dirac delta function like $Z=\i...
3199537b35a7d7bfb673888590a3429fa7a1a2c5a8a508ce9885ef97ce511164
['d348fa22472c4c528089aaa90317a757']
Speaking of symmetry and anti-symmetry, you might want to consider using the center of mass of H and C separately as a "generalized" coordinates: Center-of-mass of H: $q_1 = \dfrac{x_1 + x_4}{2}$. Center-of-mass of C: $q_2 = \dfrac{x_2 + x_3}{2}$. Correspondingly, since we want four generalized coordinates, so we also ...
f15e851b7846f7b35bde5be19b1f94164f61e99967e73af031df781a489bda34
['d349c1d9b1124585a3d1b83c5e3bbe71']
You should add inner scrollview on outer scrollview, but inner scrollview 'y' position should be content off set of outer scrollview like... innerScrollView.frame = CGRectMake(10, outerScrollView.contentSize.height, 300, 440); After this you can add any view on this innerScrollView, you can set contentOffset etc for i...
43b9edd1df110aea9898f927fc19441c8996766f695b534695c36b0f2d8dce75
['d349c1d9b1124585a3d1b83c5e3bbe71']
The above code is working fine, they are making three individual lines (the starting point is same for all(502, 530)). I think you are giving ending position for two points (like x3,y3 or x4,y4) are same directions, that is why you are getting two lines only, if you want to differentiate those lines you can make the l...
22f7f06b348aea440dcef002b38b024bd18efae7ba5f98b9afa91ac7a198adae
['d350013c06cc4d85a6880725ba7109f4']
I have already answered this here. Turns out the Tensorflow 2.0 module is very large (more than 500MB, the limit for Heroku) because of its GPU support. Since Heroku doesn't support GPU, it doesn't make sense to install the module with GPU support. Solution: Simply replace tensorflow with tensorflow-cpu in your require...
17500aa274ca9a17d936f3d695196230e69be3caf7777ec4b5ed7379d596c9f8
['d350013c06cc4d85a6880725ba7109f4']
Turns out the Tensorflow 2.0 module is very large (more than 500MB, the limit for Heroku) because of its GPU support. Since Heroku doesn't support GPU, it doesn't make sense to install the module with GPU support. Solution: Simply replace tensorflow with tensorflow-cpu in your requirements. This worked for me, hope it ...
892abc4d66ad8ec3c54e0b234be9b01e0e7400abd16f39e2f35ce88c3023c438
['d35a7cefd2db46febf372f701ed4a43b']
If it's only happening with a regular Ubuntu (X11) session, then try looking in the file `.xsession-errors` for errors. There are links to do so findable in Google or AskUbuntu. This problem may not be directly related to your graphics drivers, but rather something in your X11 configuration. That log should be illumina...
7a895931317f9b0d65c131c664fa61a54a4889d826b8fd2e97c5b543b5c752a3
['d35a7cefd2db46febf372f701ed4a43b']
Okay, in that case then please remove the `nvidia` binary drivers with: `$ sudo dpkg -P $(dpkg -l | grep nvidia-driver | awk '{print $2}')` and `$ sudo apt autoremove`, then ensure nouveau userspace drivers are there with `$ sudo apt install xserver-xorg-video-nouveau`. You will want to boot with `nouveau.modeset=0` ke...
083da94f6aa0589c23696296d2205b7d8be25211c135fe7fd540e15d36d99da6
['d36e41e986554670a229029bc9b622ab']
It seems to me that in the DBUtils code, you are wrapping both saves in an outer transaction, whereas in the Utils code, you have them in two completely separate transactions without an outer one. Depending on your cascading, Hibernate has to figure out which objects need to be saved. When you run the Utils code, with...
076c654260caf581b83f2855eb6a54e11224c82f75f3903660f789e65a1619f5
['d36e41e986554670a229029bc9b622ab']
In Java, static methods belong to the class rather than the instance. This means that you cannot call other instance methods from static methods unless they are called in an instance that you have initialized in that method. Here's something you might want to do: public class Foo { public void fee() { //do st...
eedb37bf0995842e587da056ad0e990003c7029340fd27ad00fd1a137a396209
['d37006aa84ec4fb8bc14cce3d153d186']
Hey I am using https://github.com/drewm/mailchimp-api mailchimp api and it is super easy It can be done as simple as this: require_once 'class/MailChimp.php'; $MailChimp = new MailChimp($mc{'key'}); $result = $MailChimp->post("lists/$AddToListId/members", [ 'email_address' =>$email, 's...
56f50f9b22ed5bff3d81fe87f932ee64c341c584f1c548402d0401503568fc7a
['d37006aa84ec4fb8bc14cce3d153d186']
I have been using SectionedRecyclerViewAdapter from https://github.com/luizgrp/SectionedRecyclerViewAdapter. It is working great. I would like to start adding some animations. I downloaded and installed the test/example app, and inspected the code for the animation example. I cannot understand what part of the code for...
9a9f602714de0f10d531b8cf9f442ff0b7570fb566bbd4608ca9838e9af0056d
['d37a23e6fc3140a4966ec6d943433fdc']
Ironically, right around the time I'm working on an Authentication Provider, articles like this start popping up. So now I'm wondering - what is a new provider to do? The Auth provider I'm working on will mostly used across a stack of internal apps for now. So far I quickly got a prototype working using some example OA...
f9f0c3629af166508f5492ce8878370569c93c6638dc100be856f4a08522ac23
['d37a23e6fc3140a4966ec6d943433fdc']
What types of algorithms would work the quickest for a search of just what's being searched? I realize this is getting quite close to asking how Google-instant search works, but I'm no Algorithms expert and I've been becoming increasingly interested in them. Is a search like this done using suffix trees or something si...
540e28697668aa9891eed857dcb910754a0a6b70c802246c26f70daf571de7a5
['d38943b0eee740dab691f2e5b68eafb5']
I don't know whether this is intentional, but apparently @restaurant.name is returning a number (as you clarified, you're getting a TypeError: no implicit conversion of Fixnum into String). Calling @restaurant.name.to_s will solve that. As <PERSON> mentioned in another answer, string interpolation like "...Confirmatio...
8975aa903be622c5eedfd37f0984753e9b664ac9d29970d88f3925e837c6d077
['d38943b0eee740dab691f2e5b68eafb5']
With the constraints you've described, it sounds like live rebuilding from zero cannot be part of your plans. You could instead have an A/B setup, playing through the events on a new system that is offline at that point, and then switching over to the new system once it has caught up. The key is that both the old and n...
ebeb7728f97a606366a1d324669d71bfb0f8477312937c404bd993b15122bbf1
['d3967cff18bf4de8b0175411adbea132']
I have a background image that is covering my content but without (background-size: cover;) it doesn't take up the space. I am working on a bootstrap project, and all my content is stacked at the top of the page in the banner area. I've tried adding height to the page to move content. I've tried adding a div around it ...
128f85db7d0f0c57c696740c9f0c5960e7f08a17495c1b145bec4095e4f6ffbe
['d3967cff18bf4de8b0175411adbea132']
I want to change the color on my submit button but not the words. There is no button-color option in css. This is for my personal about me page for coding camp. Having trouble finding answers. Here is my code. #sub{ color: black; } <form action="/action_page.php"> <input type="checkbox" id="vehicle1" nam...
3acc19072d3d34edfe4c01eb0ba5ad350cbb2e50ae5d3aa877ee49f96eb72071
['d39c69e90f804f8b8669d31e1cdd8452']
I have a powershell script that I am trying to send an email. The problem is that I want to be able to call the script and pass in some parameters including smtp server, email address, user name and password. The problem is that the powershell script does not like taking the password in on the command line. I have t...
5705ec29390c3f2ceea460d60a59ed08eea77cb912136f002fac251805aad703
['d39c69e90f804f8b8669d31e1cdd8452']
I have an MVC 4 app that I am trying to use Membership to manage Roles and Authentication. The problem I am seeing is that when I open the ASP Configuration app, I add users and I see them show up in the aspnet_users table. But when I go to the mvc app and register a user, it gets saved in the userprofile table. Th...
ba9e295059fbd1de9ea1e8821605b508a90960445d0d32860ee5e4291fb793db
['d3b3a55b04f8442da91dfbcf77dae0a4']
You can Develop your own style first : add custom push receiver in manifest Like blew : <receiver android:name=".CustomPushReceiver" android:exported="false"> <intent-filter> <action android:name="android.intent.action.BOOT_COMPLETED"/> <action android:name="android.intent.action.USER_PRESENT"/> <action an...
abbdad86260b4781e6e2c7f22b5c5b9465a11324d4b4043d454d6d7fb2dd31d0
['d3b3a55b04f8442da91dfbcf77dae0a4']
This works for me. Parse.enableLocalDatastore(this); // Add your initialization code here Parse.initialize(this, APP_ID, CL_ID); ParseInstallation.getCurrentInstallation().saveInBackground(); ParseUser.enableAutomaticUser(); ParseACL defaultACL = new ParseACL(); // Optionally enable public r...
0c2b371d0270c630bc02639d4fd40ca91c21685edf5757713a73c352a3b52183
['d3bf2f033e4d44af86e81398373c8999']
Below is my code : #include <stdio.h> #include <stdlib.h> #include <stdbool.h> struct NodeTag { int value; struct NodeTag *next; }; typedef struct NodeTag Node; typedef struct { Node *head; int length; } List; void insertAtHead( List *list, int val ) { Node **link = &( list->head ); Node *n = N...
c1eb517aeda39f4a26a870c7dab44a1ce34c5b64cfc7518609e7327ed427b26f
['d3bf2f033e4d44af86e81398373c8999']
I am trying to create a neural network that predicts the price of a house based on the number of bedrooms and bathrooms in the house. Below is the "realestate.csv" file. beds baths price 0 2 1 59222 1 3 <PHONE_NUMBER> 2 2 <PHONE_NUMBER> 3 2 <PHONE_NUMBER> 4 2...
f03d35d9b9cadd69ca2030fef2d496b1d6fa18bd147f2cf63a23591f963ef8f0
['d3c29883f0484ca2a8ed03b74a90599d']
As you can see, there is just 2.2 version of Zabbix (agent, server, proxy, etc.) in that repository. It seems Zabbix 2.2 (LTS) is the latest version supported by OpenSUSE using its repositories. By the way, you can install older versions of Zabbix-agent (like 2.2) sending data correctly to newer server/proxy versions (...
c31d4ea92817fa6c841d7e8f8dee826eb8926d8d4cb07774cc6f7e7245629179
['d3c29883f0484ca2a8ed03b74a90599d']
I accidentally committed and pushed some binary files to origin/master. I figured out my mistake and git rm -f MASSIVE.FILES and commit/push ed again. Now, for cloning a 5KB project, it needs to download few hundred mega bytes because those deleted files are still in history. The question is, how can I remove those mas...
5f77134e7a491b012cc5a62d5e47e21ecdf29bebfcc4f1d5ff4a96723d0fdbb7
['d3d474e2343e4438a5a329b346fbaa25']
I found that aiming lower or dead centre of the platform didn't work for me. Instead I had to aim at the guy without the flume on the right. This was the only way I could get the correct 1.5 degree call. Oddly in my game it seem that the horizontal angle mattered more then the vertical.
aed9b88be120a5b679e2dfa10d0ccccc1a91ddb5e202d7e9f5dfc62755e9f7d9
['d3d474e2343e4438a5a329b346fbaa25']
just got new iMac 27 5k :) Setting up PHP environment but having trouble. I am getting Forbidden message when trying to access http://localhost or http://loalhost/phpmyadmin/ Here are some configuration details. Since I learn there is not Sites folder in user directory so by following the tutorial I have setup everythi...
83ea4c798a686179599e5a9597aa222f05a4f4d98e919834790c17ea903cb1b3
['d3f0956effdf4957b9e5f92c53fb96ea']
I have an umbraco WebForms projects built on 4.11.10 that we need to upgrade to 7.3.8. We have tools such as RedGate Data Compare and RedGate Structure Compare, but without firsthand knowledge of the new structure and how that has affected the way that data is stored we're finding it impossible to upgrade the database....
00eb20da17b590df8813f88a8b572a139bd724ae00e818fde7a59f35f290f9ac
['d3f0956effdf4957b9e5f92c53fb96ea']
I have a website running on IIS that requires two SSL certificates, one for the main website domain, and one for the traffic coming through a CDN (the assets are served from a different domain name). Both use SSL. I therefore used the Server Name Indication option when creating the HTTPS bindings in IIS. The site works...
41c9812c2fc4f15dfa5178ded52012865eae43d1b4ded7ec1eaf51ac34e2b7f2
['d3f28dcd8f2f46b79e53b1f559b4b68b']
I've been working on something like that myself. With the cost of internet faxing services, it seems a whole lot cheaper to just have everything faxed from my own phone line (especially for local calls). Windows Fax & Scan can be run using COM if you have a bit of programming experience. I found this script here (use...
6ed6c8f31ba3a064f790512df814e4d647ef01d2db1ee58364ecddcc10ae09f1
['d3f28dcd8f2f46b79e53b1f559b4b68b']
Just: journalctl -u SERVICE_NAME -e Parameter -e stands for: -e --pagerend; Immediately jump to the end of the journal inside the implied pager tool. This implies -n 1000 to guarantee that the pager will not buffer logs of unbounded size. This may be overridden with an explicit -n with some other numeric value, w...
34dd6cc6b01637834b7bb35fd466e24351d5c98ac53d0ba852dc5d7d743d3bed
['d3fba279fe1d423c8e994bd6cd2a050d']
I have a table with a list of Jobs that have children, grandchildren, etc. There is no limit on the level of hierarchy it goes down. The table has ID, Name, and ParentID. So for example, a Job table could look like: ID Name Parent ID 1 Education null 2 IT null 3 Teacher ...
f8261b3f3944220beb29c60a152b0c8e6688ab7b39a0479e45c5e042c9f616c6
['d3fba279fe1d423c8e994bd6cd2a050d']
I'm trying to use datetime variables in a dynamic sql query. I've tried many queries but it never returns the right date. For example: declare @StartDate datetime = '2020-01-10' SET @sql =' select dateadd(day, 1, ' +@StartDate +')' execute sp_executesql @sql; throws an error when converting d...
37dd17281155571d54ef3d31f048c326abbaed1bc77a3e5d9404b7d2f7df4efd
['d3fd4a1845c74bb88303f286d08716a1']
I'm developing a function that would let a user select 3 points from a point cloud, generate a 3D geometry (hexahedron) that includes those 3D points and then get the volume of that geometry. The functionality I'm trying to achieve is very similar to the volume measure function from this demo. Any ideas on how do I gen...
922b3182e0be42c7c0833bdd129679b2cb2763b3db790e494d06e2e49a67c8c8
['d3fd4a1845c74bb88303f286d08716a1']
I post the answer myself, hopefully it will help somebody with the same problem I was having with Docker. I followed this guide , which basically consists on adding a parameter to the docker systemd unit file. I added the MountFlags=private line in the [service] section. It seems that the issue is related to the filesy...
f065d09c824e3dfcfab3415c64810135944d2f4eef156e564900f41d00e55257
['d4046f0e53b14ce1b535519dfa090d96']
Upstart has been a valid Puppet provider since 2.7.0, I think. You should upgrade your Puppet setup (use apt.puppetlabs.com). The init.d symlink is just for convenience and not necessary for starting anything via upstart. It is weird though, that your system seems to be missing that symlink. It seems you somehow broke ...
94f1e395983e6b5bb0f139afcee937da66b368eebf417b88f3016a5e9fc40dd2
['d4046f0e53b14ce1b535519dfa090d96']
The fact is that in the real world there are doers and slackers; fascinating people and dullards. Usually an extraordinary person just pops up out of nowhere. No-one in their family was particularly famous or skilful. The chosen one by contrast is almost always royalty brought up as an ordinary person and their intrins...
b3a70ed300123c8e03108fa6e9b4283f6b4e2c4c50f9e45dd32df562616873fd
['d4114226548c44eca1bc50f5b2a9492d']
I use Visio 2016 which lets me add data graphics to my shapes. For example I can add a text label and customise it to some degree. I'd like to have a text label with a red background on the left side of the shape and another with a green background on the right side, however the fill type only lets me choose between o...
9a31b81e95d112d132f4d32b1cb11eee5ac3e81f00c512760646553972438093
['d4114226548c44eca1bc50f5b2a9492d']
I want to download several libraries (guzzle, pimple) and unzip them immediately after. For guzzle it works without any problems, however it refuses to unzip pimple and returns following error: Exec[unflate-pimple]/returns: change from notrun to 0 failed: tar -zvxf pimple-v1.1.1-0.tar.gz returned 2 instead of one of...
f83a193f3d26e61b7aadd02e4bdfd35e8f00470b9f7ed6decca37677fc3ec253
['d41529674f4a453784bb1300722e0d9c']
I wrote an app on react native using native base. when I try to put margin in button it will not show the text inside the button. How can I fix it? When I delete the margin it work fine. but when i put the margin back it do not work. I search many source but no one show any solution at all. Here is the code: import Rea...
a7cf814b59fe7e04a49b5f935a5e1bc8775b9208e083623dd2f04a281c7b9a59
['d41529674f4a453784bb1300722e0d9c']
class Delegatecommon : ICommand { private Action _execute; private Func<bool> _canexecute; public Delegatecommon(Action ac) : this(ac, () => true) { } public Delegatecommon(Action ac, Func<bool> fu) { if (ac == null) throw new ArgumentNullException(); else if (fu == nul...
3663ef26b7637873503bcb08ba1128ac8abb495e8332fb4edd1678cf81bbb9d3
['d41e98c4846d47e993207b1a112629fc']
I've created a custom repository and I want it to be registered with Spring Data Rest repository following Spring-restbucks example. @RestController public class BuildingController implements ResourceProcessor<RepositoryLinksResource> { public static final String PAGES_REL = "pages"; @Autowired(required=true) ...
02fca49a46bd3d2ca471b5a360f715ab404015896fe00ba3d0dd3d3893e7a7b2
['d41e98c4846d47e993207b1a112629fc']
I figured it out. It would be great if all of the features in http://www.ryantenney.com/metrics-spring/ are documented :) But hey, that's why it is open source. <metrics:annotation-driven metric-registry="metrics" /> <!-- Monitoring the controller --> <beans:bean id="monitoringInterceptor" class="com.ryantenney.metr...
dd45e9f6c9353026c7eb952d9035f3fdaed75b69598c77d435e38456f534204f
['d41f32a298cf4378842a65ec0b154833']
I think the reason you're having trouble with this is because you haven't thought of the third possible option for how to go about parsing it. [人となり(の/が)わかる]ような事 Given a different phrase (e.g. 私が分かるような事 - something I would understand), the noun before ~が分かる is certainly doing the understanding. However, here, 人となり (m...
8a798b931e925afd865cc00a1f7a653a476374e78f16edf2be88169f5bc2e15e
['d41f32a298cf4378842a65ec0b154833']
You might buy (or check out in a public library) "Effective Cycling" by <PERSON> (MIT Press). It is quite good. Unfortunately you didn't give the locale or town you are in. Most areas have a cycling club of different ways, and you could contact each one as to their advice and purpose. Often a city has general advice ...
a87025c99fba47a9011b2ee16d1a740b8fd208fa4ffe654fe82f4042a48b4181
['d427a55bb0dc426889e53461a1cb7745']
In this code I keep getting an error, I know its how I'm saving the contact to the database. because if I take out the cdata/cdata2 and just put a string it works fine. Any help will be appreciated. How do I convert this to accept the string from the contact? switch (item.getItemId()) { case 1: //Save curr...
76ad38d512d8850cf0f3cd306435a10e08d0525c5215e74fa59a557ad0ec3669
['d427a55bb0dc426889e53461a1cb7745']
How can I compare the bootlean to a string? I have tried to change the bootlean to a string output but I can't because of the checkemail function calls for a bootlean. The check email states that if its a valid email...which returns "true" or "false". boolean sefsd = checkemails(e.getText().toString()); if(sefsd...
34f2cf6c711ba9291e98c50b3aca3595ee705147ccfb4d3a8f1592f7968177d8
['d4519a0cf9a64c3390ff030641ae471c']
I am working on a web application with a medium sized team. We are versioning/collectively coding this project using Git. Between my co-worker and myself, I think we are about to run into a difficult merge, and I'd like to see if there's anything we can do better before we run into trouble. We are primarily working in ...
891bf1f541b76725e3853e7b4a2365f2dda426645e6131371a9dcfeccf487000
['d4519a0cf9a64c3390ff030641ae471c']
I am a web developer/aspiring web designer who looks at a lot of web design examples. While I bookmark them, text links are a pretty bad way for me to keep track of designs I like. I am planning to create my own bookmarking application which would use a Chrome extension/Firefox plugin to add a custom bookmarking button...
975e2d569508e65760df57414cd94fb208df63b242087feb7fd13a355bbf37af
['d45319b663844311bb8cebddda0d4f16']
My Batch reads data from one table, processes and writes to another table. I have MyBatisPagingITemReader, Custom Processor and Writer. Currently Custom Writer INSERTS the data which is converted in processor and Writer does a BATCH INSERT to the other table. Now, Reader will read some rows which has to be updated in t...
8b3033a2e29407a88b404050638d29166f69f66c372360f7b79511e428e6f3e7
['d45319b663844311bb8cebddda0d4f16']
My Batch job 'MyBatisPagingItemReader' is reading the same set of records. Below is the config. <job id="synchBatchJob"> <step id="simpleStep"> <tasklet> <chunk reader="synchItemReader" processor="synchBatchProcessor" writer="synchItemWriter" **commit-interval="10"**> ...
f565e86b9c21d0b2fcdb1c669295cf217cad132f9d6471ca05183e8cf0b4363a
['d45701d7a56c411199f34f712f865128']
I figured out what I was doing wrong. I will share it here in case someone else gets stuck in the same silly way I did. In the program when I load the json file, I was supposed to load it using the resource_path function.I was using the resource_path function in the spec file previously. def resource_path(relative): ...
dd60c08f5e253cb63ffb0a2ba1c91645a3126086f78aa81e6bd1588b89ac81cf
['d45701d7a56c411199f34f712f865128']
I am making a draggable point(a circle). The code works, however, while dragging, if the mouse motion is quick the point stops moving. I have taken help from this code for making this program. I will be using this point later on for other purposes. Here is my full code, from tkinter import * import sys,os,string,time ...
6620974d42ef0c4931d8268df3bb086f7bfc00deb4a2a7f8f4b69b156154b101
['d4669779c21c48fab07c6f11413af4e5']
Imagine if there is an object with the following property. var rules = { confirmedPassword: 'required|min:4|max:10', } What I want is this: rules = { rules.confirmedPassword && {...rules.confirmedPassword, rules.confirmedPassword: '|same:password'}} To yield this: rules = {confirmedPassword: 'required|min:4|max:10|s...
d0b1d51540b3f2ac25c7fbcabf5bdd6ffb76f93d0b57000c43e454e5e8617075
['d4669779c21c48fab07c6f11413af4e5']
Right now I have a async function (see code snippet) which returns a JSON response; An array containing two objects. See screenshot. How could I merge the objects so I would get back : [{resultCount: 100, results: Array(100)}] I tried this: var combinedResults = jsonResponses.map((acc, item) => { acc.result...
737b73496184c97404e62f797ba01e81f42c6c63c579912b67b42eb68249bdf0
['d46b20ace5b04455b8583f646820da64']
I have found the reason why my row id was giving the wrong ID. Well I wouldn't really call it 'wrong' after realizing what the bug was. You see when a cursor queries data and project them in a listview, they don't actually query those data that has been deleted. My mistake was I had forgotten that dbId would not be res...
426608ca06f644e7aa915abe6b4f22fc03fe938a6f76fee7ae06539bd47cc621
['d46b20ace5b04455b8583f646820da64']
Create a global variable for song uri on your Set Alarm class. <PERSON>; On your onItemClick method change setDataAndType(uri, "*/*"); to setDataAndType(uri, "audio/*"); so the chooser may only display audio files for the user. You will also have to change startActivity(Intent.createChooser(intent, "Open"); to startAc...
a3ebc4554c222890031713292029c2efdf898413aca100faa27eef34d9a1c9ad
['d474b851570f46daa1ab8067a727cb3b']
I'm not sure which Update # it was, but it's the icon with 2 silhouettes and when you click it you get the window that says "Your people - Pin contacts to your taskbar so you can talk to them whenever." It wasn't there before the update. Either this update or the Insignia Wireless Keyboard/Mouse is responsible for this...
f0c437e8102d1280b6927d22853f27da354b3495807875f9425dbc19de638ce1
['d474b851570f46daa1ab8067a727cb3b']
In Excel, if I have a Date cell which doesn't fit in a column, Excel with display the value as # until I resize the column properly. But with Text cells there is nothing to show the overflowing status. Why doesn't Excel show an ellipsis (...) or something similar? Is there a way to alert the user there's more? Sometime...
1d28ad1be9968fa28ae4ee164dece07b072a875a5813eb68d740a0eb37d9d16a
['d481e6567c264dbdb9c7e9fd752f5a73']
I have a big text file like this example: example: </Attributes> FovCount,555 FovCounted,536 ScanID,1803C0555 BindingDensity,0.51 as you see some lines are empty, some are comma separated and some others have different format. I would like to open the file and look for the lines which start with these 3 words: FovCo...
5ae05ed04b48b446e961b7030c7ce5d8d7b415aa3658d57c90612f3da04332a5
['d481e6567c264dbdb9c7e9fd752f5a73']
I have a text file like this small example: small example: </Attributes> ENDI,ERT,GFTR,29 ENDI,XCV,HGJ,36 TOC,FGNH,TRYCB,3742 TOC,MVCL,KJDSFH,38799 GOF,KLJG,XZCJV,31 GOF,LKBFV,JKSDHF,18 I would like to select some rows and add the 4th column (those lines are comma separated) to a python list. the point is all the rows...
00eacf1334dfb3102349fb126c6491d5b8df4445fccaaa0e7ae25915f4c6ce57
['d48578b2c793400a8ed2ab36e7db5240']
The time complexity of the following algorithm is reported to be O(v+e), but I cannot figure out why. Any help is appreciated. This is the problem: In a weighted (nodes and edges) directed acyclic graph, an attribute, called Rank, is computed for every vertex. It is computed by traversing the graph bottom-up. For the e...
68301c8975dd951acb152e26ca68293536922f272d013a300a15f477621495a8
['d48578b2c793400a8ed2ab36e7db5240']
Is it ok to say that the time complexity of the order O((p+1)(v^2)) is equal to O(p(v^2))? p and v are sizes of the inputs. Here is the problem: O(v^2) + O(p*(v^2)) And here is my answer: = O((p+1)(v^2)) =? O(p(v^2))
641ffcbf8582e7f5a16166a79ccae8a5786b06dd0d37d7f8b1dfca7a8fcdb872
['d48b36bd2670460bae63f6a420f3794c']
I have a JPQL query that generate that native query : SELECT ID, MODALNAMES, NAME, NUMBER, TABLE_CONFIG_ID FROM TAB_CONF_TABS WHERE (TABLE_CONFIG_ID = ?) what's wrong with it ? My db is Oracle. This is a error that appears in the console: javax.ejb.EJBTransactionRolledbackException: Exception [EclipseLink-4002] (Ecli...
c213ad3cb864c28804fe2939cac08f68cc380de4f1ccbcccb65770c50e796a64
['d48b36bd2670460bae63f6a420f3794c']
I need to use two difrent databases, with relation in entities between them. I want to have all entities in on project and use Composite Persistence Unit to manage which entity will be storen on which database. Is this possible? I found only example with one Composite Persistence Unit and Composite Persistence Unit mem...
272ce7566c07298eee664e4814286180d4a68c247f82e6f496f26bed5e808f6e
['d49d0f0d71c645bdb12f756c098aa7aa']
But even as an intuitive explanation, I don't see how it is intuitive. Like you said, if there is no maximal element then this process cannot terminate. Ok, but so what? Does this non-termination (even in a set theoretical sense) lead to some sort of a contradiction? Maybe it just simply doesn't terminate, and that's t...
f141aefde41e61fe9eb182c348af731e8f0ad8564fa7aa45d43c3259175006f3
['d49d0f0d71c645bdb12f756c098aa7aa']
It is claimed that the law of excluded middle : $A \lor \neg A$, is a necessary principle for proving statements by contradiction (i.e. non constructively). However, in first order logic, at least, proofs by contradiction may go as follows : If $\{T\ \cup \ \neg p\}\vdash p$, then by the deduction theorem, $T \vdash (...
1e30756a83a7567873fa380bba1dc257ee7d4df51d67c8275f21ad6d434e9367
['d4ba68f72e954e38bd22be271b9caf44']
I'm entering user input via telnet into a HashMap, then trying to display that info into a JTextArea. When I hit run, the GUI launches and the initial HashMap is posted to the GUI. But when I update the HashMap values, they don't show in the TextArea. I have a time textfield, which updates as it should and shows the cu...
7fd58f645ab7ef93cbb2314038e9a356c5182cf3e2bfe69ef7769412147e5142
['d4ba68f72e954e38bd22be271b9caf44']
I'm having a hard time thinking of an appropriate data structure to use to represent an adjacency matrix for an undirected graph. I want to be able to take the nodes from these graphs and insert them into random positions in arrays, and then "score" the arrays based on how well they've managed to keep the adjacent node...
caae6544081a04800c90d6afe6d95f33f2650f7bc3dec2ba57a29d9dd69d0367
['d4d6bd0895b54ac9aca243c0bc327041']
If possible avoid the '+' sign from your array items, this will make the solution alot eassier. Step 1: sort the array in descending order, it will eliminate the chance to get partial matching Step 2: Form the regex and match Step 3: return result var data = [91,92,923,912]; data.sort((a,b)=>b-a); var match = new RegEx...
5a70f382abff5ecaf4a33832ee62ace3774a801bcfe79559a58c781a367dfafb
['d4d6bd0895b54ac9aca243c0bc327041']
The question is not clear to me but I can see a bug in your code, you simply can't have two elements having the same id. Each time 'add more' button is clicked the input element with id="pPilihan" is getting repeated, which is wrong. You can solve this by using a counter to produce a dynamic id (if you need one).
ba977f7e3637d933c0cca12d9683cebfe4b49e02cc9aec89875f2b8bccff27f8
['d4dc443d56114ba492d89a62c473045c']
Additively c-approximating the intersection of two (n*2*c)-bit sets is at least as hard as computing the intersection of two n-bit sets; we reduce from the latter to the former by copying each bit 2c times and rounding the intersection size to the nearest multiple of c.
234b14e5aaa488b3f67f5d211d810154621b15cbdc43ff9317f15bf0797347a6
['d4dc443d56114ba492d89a62c473045c']
I think the answer to the question could depend on whether $k$-SAT means clauses of size $\leq k$ or precisely $ k$. In the $\leq k$ case the sequence is monotnonically non-decreasing, while it is quite likely to converge to $0$ as $k$ tends to infinity in the $= k$ case (no formal argument, just a gut feeling based on...
4dbc7217ec316099d77c014c583dad34c99b1befaed1814a38686555ecdf27ce
['d4dd72aef6e54e71834ab6b108d766ec']
<PERSON> wrote down what He received. This means <PERSON> was responsible for the physical document (ignoring the stone tablets). So the original scroll people saw was physically produced by <PERSON>, but the words were God's. <PERSON> was simply the agent of transmission. So is <PERSON> responsible for the physical wo...
0098612fedea63285e03d048b395eb4b3719a347a92b3da7b524e5b2e1514625
['d4dd72aef6e54e71834ab6b108d766ec']
Background Prior to <PERSON> being brought to <PERSON>, there were three criminals in custody awaiting execution. Since it was the custom to release one, the Romans would have been prepared to crucify the other two. It is speculation, but it is reasonable to believe the two upright pieces of those two crosses had been ...
ca2b4718de876b67cbd7b0a0db324713445cb6b875ae68f874587780b453701e
['d4e0048b14824442bb066af76303ccf7']
Most likely not. I have the same problem and it's because my SSH machine is not same machine as the HTTP server. Try running netstat -tulpn | grep 9080 from SSH and also through PHP from your browser. Your SSH session should obviously see port 9080 being open, but your browser should not. My temporary solution is to st...
4cc0e5047821bb00a687724aff98de5f89958b0314b85e37ff4155dd1c0ff103
['d4e0048b14824442bb066af76303ccf7']
Ideally your front end shouldn't need to handle 10000 records at a time, because it's hard for a user to manage a list that large and can be very slow to retrieve that many records. If possible you should make the front end directly paginated as well, in which case "top" and "skip" will be passed in from your front end...
55a9a39136b184c17db08cea82f614f772ad1b260d209d94201a456c2ff3488d
['d4edd6a2a81d4afbb43136c84ff59aaf']
i would try to filter the data prior to insertion in the datagridview. For example: myReader = MyDCommand.ExecuteReader While myReader.Read If Not myReader("Mfr_Id") Is DBNull.Value Then If myReader("MfrGroup") = TabControl1.SelectedTab.Text Then DataGridView2.Rows.Add(New Object() {myReader("Mfr_Id"), _ ...
d906aefa9fa9966083ec62e4be323aeb267c6da3f9ec3428f95fe6e28b8d0b70
['d4edd6a2a81d4afbb43136c84ff59aaf']
This script creates a frame and a grid with two rows and five columns. The fifth column is an image that can be used as a button. See the onCellSelected function to respond to the button selection. import wx import wx.grid as Grid class MyFrame(wx.Frame): def __init__(self, parent, title): super(MyFrame, s...
55805fe89f59965003e9f191df587bc721c572323214335d73015fb881ff3e55
['d51c31bfff4746dba9fd2fd2c36c6894']
I want to move some highlighted code from Eclipse into Microsoft Word. But whenever I try to copy the text over the colours are modified slightly (bright green is changed to a duller green, pink is changed to a lighter pink... etc...) I want to know if there is a way to allow my copied code to keep the same colours whe...
043e3aea22f78c08f83649a05a62075214e3883917244a9e9c26ed0fa6e9191e
['d51c31bfff4746dba9fd2fd2c36c6894']
I am trying to call a web service running on a Windows 7 machine inside of IIS 7.5. I can call the web service from the local machine using soapUI and a Java client from another machine and it works. When I try to call the web service from a remote machine using the gsoap framework in a C program, I get an HTTP 400: Ba...
1f3e571cb032a323a906bb39862c244b724284eeefcffc56c60d8917c57f8ec7
['d51e4ef4503141f48f466c92df028d5f']
1.Please install the pod file and always open with .xcworkspace. 2.Check if any files is deleted from the path (shown in red in workspace), please remove all red files. 3.Check whether files is set for the same target(if not please set all the files for the required targets). 4.Check the settings to add files. Hope abo...
674f5a75deceaee48a0e341881382be4eb106b68a537df42bad1aa917f8beef9
['d51e4ef4503141f48f466c92df028d5f']
In general, Auto Layout considers the top, left, bottom, and right edges of a view to be the visible edges. That is, if you pin a view to the left edge of its superview, you’re really pinning it to the minimum x-value of the superview’s bounds. Changing the bounds origin of the superview does not change the position of...
20af8d84c2e0b328881a068dede9d0b4ab667b069883e58713a07265d25db1b1
['d52a5a9e2db1402488854c66955ad3e0']
you can use Media Querys of css to make a simple responsive system. <style> .row<IP_ADDRESS>after { content: ""; clear: both; display: table; } [class*="col-"] { float: left; padding: 15px; } [class*="col-"] { width: 100%; } @media only screen and (min-width: 600px) { .col-s-1 {w...
4a42b3a1d1232181e0456cdf305ebf2faed84fc566cd9832ec53eaad7d4dc253
['d52a5a9e2db1402488854c66955ad3e0']
This is already something that has been discussed before, simply use an inner html and grab the div element by id or class ... I will show you a simple example, you have to do this in JavaScript. /** * A little example */ function addRow(newDivId) { let mydiv = document.getElementById("divId"); //This is a glo...
260bdf66fb8eeb65dc463821aba42d656a7497513d77fccb69c8d953aeff07d1
['d53b4c7c97e64de286abd6f396be49b1']
I want to host my symfony 4 application online, I configure the appache server to redirect to the index.php file When I go to the server address, here is my error ( ! ) Parse error: syntax error, unexpected '?' in C:\wamp64\www\test\public\index.php on line 18 configuration virtualhost <VirtualHost *:80> ServerName dom...
f7fec3cfe1e857546949662120f062f522cc9663ba1e3cd565fedf26b8b6238a
['d53b4c7c97e64de286abd6f396be49b1']
dynamic: driver: %database_driver% host: %database_host% port: %database_port% dbname: %database name% user: %database_user% password: %database_password% charset: UTF8 Hi everybody I would like to connect to multiple databases dynamically. I read this tutorial http://symfony.com/doc/current/cookbook/...
d115c0e89414a72b97c10b7bba9a64fa677fad8391f9cc3138f6000f9991d54a
['d54f2313c3654ff1833d373de571a925']
Signed and unsigned bytes (or Ints or Longs) are just two different ways to interpret the same binary bits. In signed bytes the first bit from the left (most significant bit) is interpreted as the sign. 0 means positive, 1 means negative. For negative numbers, what comes after the minus sign is 256 - unsigned-value. S...
0a54d912da9ff94fa60fd83e86e4b0f09a2665ba08fbf50cb3296fc31476e02b
['d54f2313c3654ff1833d373de571a925']
You can try doing something like this (tested on PostgresQL, may require some adjustments for other DBs): select * from temp_contacts where to_char(date_created, 'MM-dd') = to_char(current_date + interval '8 day', 'MM-dd'); For each row it first maps the date_created to a string using MM-dd format, then doe...
fc807080a2bf47cad4b6a53d31e857816c26bc520f3093f19f8bfca4427219d6
['d55c5ddc3c2c489da07dbe5d21cfad04']
I am merging three data sets ( data frames) in R as follows: Prv_mnth_so3 has state, Product_Number , Quantity_On_Hand , Category and Lc_Amount Prv_mnth_soqty <- Prv_mnth_so3 %>% filter( Category== "ESC") %>% group_by (state,Product_Number) %>% summarise(qty ...
ef28a2aa56565e0e6e9e2583f7952248ba3905b7b00e51f93966df357f0d7730
['d55c5ddc3c2c489da07dbe5d21cfad04']
I am uploading one csv file and to standardize the code I want to change the column names. so I am using following code: Prv_mnth_so1 <- reactive({data.frame(lapply(data_uploaded1(),trimws))}) colnames(Prv_mnth_so1()) <- c("GST_ward","Category","order_and_section","combo") but this throws an error Warning: Error in <-...
2ebfd1f007eb166604d9d46e0833a9c3950f3854a6d510496ac90fb2b267655e
['d564964df32843b7b781c371c9804ebd']
The relevant paragraph is hidden right in the middle of the extended asm documentation: Use the & constraint modifier (see Modifiers) on all output operands that must not overlap an input. Otherwise, GCC may allocate the output operand in the same register as an unrelated input operand, on the assumption that the asse...
a1971b45e5bb98b47965de0d1e10b417aa649f651eef6bb54b7e553c45828c6d
['d564964df32843b7b781c371c9804ebd']
It's armasm's syntax for bitwise operators in expressions. For the GNU assembler, you'll want | instead of :OR:. Since armasm claims that using | as an alias is deprecated for some reason (although & for :AND: and ^ for :EOR: are apparently fine), you may need to resort to some preprocessor magic if you want to maintai...
64ffee6e148c9df2956c2a88c75880eaff2271e8589f5e157b54b3ad0c8b57ab
['d56769055d6048f89f59078e3fb4c029']
I need to replace a few bytes in ASN1 encoded binary file. Because of I'm completely out of ASN1 scope, I want to just replace some bytes starting at position 9 (offset) and of length 9 bytes. I was able to open a file for binary write fh = open("EmvData_3839_test.der", "r+b") fh.seek(8) fh.write(bytearray(9)) fh.clo...
9f6c0bd5a99d9c5d1cb5b12395e0ee8ce2d9548e5dc361aaed61f3262f748a37
['d56769055d6048f89f59078e3fb4c029']
in Grafana (I have 4.0.1) there is possibility to create more organizations. When I switch among them, I always get home dashborard (I think it is loaded from this file "/usr/share/grafana/public/dashboards/home.json" there is on web browser nice Title "Home Dashboard" comming from that file above defined in HTML as <...
077c00cb06d94f9903a034185892e53bcbb058e6dc900e0d666583b0e105df1e
['d5750fff2b9b497a994a71d0ae68bb81']
I've updated my post, re-wording everything and providing better info. I've also started over with my Postfix configuration by purging the application from Linux, re-installing it and starting over to ensure there wasn't something wrong that I've done. I have also given my server a hostname name that prefixes my public...
fd6fd8006bf58a26f67d81786000f4e61b0ae9da373ec506fcad8d0fe75c9236
['d5750fff2b9b497a994a71d0ae68bb81']
I think one of the coolest definitions of machine learning that I've read is from this book by <PERSON>. Easy to remember and intuitive. A computer program is said to learn from experience E with respect to some class of tasks T and performance measure P, if its performance at tasks in T, as measured by P, improves wi...
563659cf07d9195a69b4c12e1448e402f8466693a0940ca259ffd2b9cfd40bd7
['d58c2ecdf65d4f6a88b978d99a53f321']
I have a Apache server (part of WAMP) that is open to request from the network. I have two networks that I am using (192.168.1 and 192.168.2). The Apache is listening only to the second network (192.168.2) even if it is off and I am connected to the first network. I tried to change the "listen" parameter in the httpd.c...
5d38c9fd5f07c71d974e0348221d66f7b371b6e658832df3883dd59223c248a4
['d58c2ecdf65d4f6a88b978d99a53f321']
It is very strange but today, I re-entered the same facebook page. And again, clicked on the "products (+)" link. To my surprize, now I see many products in the page. I clicked on the "Facebook Login", and how I see it under the "Products". So I clicked on it, and was finally able to set the "Valid OAuth Redirect URIs...
3a80b18371470ad23d059337a09cef596c1cc18dd2fa3bb0d852f6a3e61cceeb
['d58c9db7ae254471937c81bfbdd6df49']
Can someone explain what will be the order of execution of following JavaScript Code: (true + false) > 2 + true I understand using + operator over two Boolean values returns the result as 0,1 or 2 depending upon the values being provided. I interpreted output of above code as 1 by breaking the execution in following o...
2b04d5ea60b9bbb262872645cef2049dd6e78a4e03d711e1912cfdc609df707f
['d58c9db7ae254471937c81bfbdd6df49']
Can someone explain what is the difference between following two IIFE blocks: a) (f1 = function(){console.log('IIFE Block1')})() b) (var f1 = function(){console.log('IIFE Block2')})() I understand that "b)" upon execution will throw error. What is the use of defining the variable "f1" and what are its properties.
858f583f61f45918edb143b073f74f4dc9f657572e24c306a50d163a2515345f
['d595a2a3d9da4c67bdab5292f25accbd']
I have an app where clicking on different buttons in a quick succession is necessary but Cocoa seems to disallow it. I'm using the same subclass of NSButton on all the button instances and the mouseUp/mouseDown events call actions based on the button's instance tag (defined in IB). The problem is that clicking differe...
a743c0a44c678e68b587081ac186077fd3fe69323ec9d8bf1c56883af95f34a5
['d595a2a3d9da4c67bdab5292f25accbd']
If you are not going to built it yourself then jQuery Mobile is probably the way to go. Description from their website: A unified, HTML5-based user interface system for all popular mobile device platforms, built on the rock-solid jQuery and jQuery UI foundation. Its lightweight code is built with progressive e...
91231cf04930ef8da94db70dcad096378971c51f9840970fafc25d938202617d
['d5980eee8b514e6c80da3cbc4fadbb14']
I frequent this site a lot, but I've come across something I haven't found that I can answer. This is similar to several other posts, here, but I have not found an answer to what I am looking for. As a note, this is part of a school course, and this is currently a standalone java class of a larger java project. Current...
f87f066c619d150642ea1f0f766a65caa61a6ff5ec54a947e77925c7542c6997
['d5980eee8b514e6c80da3cbc4fadbb14']
I figured out the solution to my own question. The issue lied with this section of code: // Create array of credentials.txt for (i = 0; i < NUM_ROWS_CRED; ++i) { for (j = 0; j < NUM_COLS_CRED; ++j) { credArray[i][j] = inFS.next(); } } I needed to correct the way the way I was readin...
8a84a62aa2417b042502a158d0f72692ec654f4e4faab438c8980da09bb4f4c0
['d5a3ea4446f14b1d80b493cb583d45ba']
Okay. Some laptops does not have the option in the bios, it's most likely to be found on the Asus' system setting when you've booted into your OS. Look around for it to see if you can find something like that. Also, I wish you luck with Asus support to help us solve one problem at hand.
5b0e3f8d7d846bf175f2af4f989094e4d26a70cac35ff5d4364004fa2e3c5702
['d5a3ea4446f14b1d80b493cb583d45ba']
To prove that your function is strongly convex with parameter $\sigma$, we must show that $X^TAX - \sigma I$ is positive semidefinite, which is equivalent to saying $$w^TX^TAXw \geq \sigma w^Tw$$ for any $w$. We can set the constraint $||w||=1$ and since $A$ is positive definite, we can set $\tilde{A}=\sqrt{A}$ to get ...
c2d51699acf729cc3c4c41d870f4fce69d8369d129d3d92027cefecafdac1642
['d5abb7a7d7c04b718f5b901b9f12810c']
Now I'm coding VHDL to make a one-shot timer module. But I don't know which code is right in two kind of code, the first or second. i used the testbench i see the different. What the right code for monostable (one-shot) ? This is the first code: library IEEE; use IEEE.STD_LOGIC_1164.ALL; use IEEE.NUMERIC_STD.ALL; libra...
8957bedb2bd5f7701aa7f5daf52e3099201eebec00bee990804415d8b2c0bcc4
['d5abb7a7d7c04b718f5b901b9f12810c']
I use code VHDL to make a one-shot timer in Simulink by "black box" of System Generator. The module concludes input is: clk, en, trigger, delay & output is: pluse. Now I want to use System Generator to implement on Zynq 7020 and use clock frequency = 1.562Mhz. I read "ug897-vivado-system generator-user", but i still do...
ae2437286b642a00d24a766b73dbb4adee83b064a4566fb62f06b022c4ae354c
['d5c07241275442eb888d3f5dc8c6c709']
After creating a few portlets, add last div with class addspace. Then create a function with .replaceWith and a .addClass. $('.addspace').replaceWith(html); Example of returned HTML: <div class="portlet" id="portletname"> <!-- make sure portletname is unique --> <div class="portlet-header">test</div> <div class="port...
7a13b0cbfcb9b55c9c9cb74ce4218ec6703dad70ada882b935bbfdd23693f441
['d5c07241275442eb888d3f5dc8c6c709']
From IBM iSeries DB2 I recieve a ordered quantity DEC 11,4. In iReport I use java.lang.Float to print the value. Also I have a pattern #,##0.0000;-#,##0.0000 (4 Decmimal places, 1000 separator). When something is ordered in Metric Tons, this is no problem, but when something is ordered in pieces, it also prints "2,0000...
abb05095bf5128d6a49070a20fe1217e90edf6f2875570ce45ea42bcc221175d
['d5d88953cd8a45fca93d8684a8fe0ddf']
I am popular with TFS for a long time but now I am required to port to Git. After some days, I have some problems I need your helps: TFS defines WorkItem and checkins will be put in this WorkItem. I easily get all changed files in WorkItem to create a deployment packages. WorkItem is awesome in TFS because when I have...
8cd7a7c493fa25a7578910f4f358b0c6d5250289e3553899016ed600970d7309
['d5d88953cd8a45fca93d8684a8fe0ddf']
I use Java Applet like an example. When you open a website which has a java applet on web page. The java applet application will run in web page. Applet support to detach itself out of the web page and run as a single instance. I have a question: If I have a control inside a form, or this control maybe in a lot of othe...
60dad704cab196951abba7509658d8ff1d651fbf5cdf4614ac4f1488659d176d
['d5e3a0eccbd943fd9655cb896231eedd']
I have .NET Core 3.1 executable, compiled as framework dependent / portable. I'm running it on a CentOS server, with the .NET Core Runtime installed. The application works completely fine when executed in the terminal, but when I execute from a .service file with systemd, it always "freezes" when executing a http reque...
cea11e5b6cb0eb0c511546d75050c22788975e45f9630fd18bfabbe96835b277
['d5e3a0eccbd943fd9655cb896231eedd']
In short: I want to use UI Automation in FL Studio 20 using C#. I know there are a lot UI automation frameworks out there. Currently, I'm using Teststack.White but this framework is made for Win32, WinForms, WPF, Silverlight and SWT based applications. It works sort of for FL Studio 20. Here's what I mean: The red rec...
34c009cbe9a6fa3faab22ef4f7cac3827beaf460d148db34ccb317f82d3adbb8
['d5e83b3eca3a4fe1a6f600b43874bdcf']
Without highlighting, I use: (defun python-eval-expression () (interactive) (let ((py-command (read-string "Command: "))) (save-excursion (setq elpy-shell-echo-output t) (setq elpy-shell-echo-input t) (elpy-shell--with-maybe-echo (python-shell-send-string py-command))))) Should be easy to ada...
d9732ae0254c453f2a15b81bdfffa7cc4a15e5c4da350a643057e2cf25dfd910
['d5e83b3eca3a4fe1a6f600b43874bdcf']
For more general boolean functions that you would like to use as a filter and that depend on more than one column, you can use: df = df[df[['col_1','col_2']].apply(lambda x: f(*x), axis=1)] where f is a function that is applied to every pair of elements (x1, x2) from col_1 and col_2 and returns True or False dependin...
578fc015b1e4fec97ef970ccbbd59e9ed349c29aa864bc129101c8837b142b4d
['d5fe580a5ae847c782939646d5861009']
I tried import hbase 2.1.0 of cloudera 6.3.3 at my gradle file like this: compile ("org.apache.hbase:hbase-client:2.1.0-cdh6.3.3"){ exclude group: 'org.slf4j' exclude group: 'org.jruby' exclude group: 'jruby-complete' exclude group: 'org.codehaus.jackson' exclude group: 'org.code...
d4dde9e219995b05dcf41ad19482f3f1f4b3e8ceba1cafd0e15ae06a802acde1
['d5fe580a5ae847c782939646d5861009']
I need to generate a job-id for user-request call which I thought of handling it through python-theading using below block: from flask_restful import Resource from flask import copy_current_request_context import uuid import time class ScoreReportGenerator: def trigger_job(): try: # Do memory-in...
52f7626afdf02b7418630a0de18ff7d48b215044135a5e656abfef2140f6a877
['d5ff205ed3304fa493fa7f6e57d98d79']
Is it possible now to get all results from Freebase Search API? Today I was trying 2 approaches in Java: 1) www.googleapis.com/freebase/v1/search?filter=..." Using "cursor"(integer) and "limit" options. 2) www.freebase.com/ajax/156b.lib.www.tags.svn.freebase-site.googlecode.dev/cuecard/mqlread.ajax?&query= T...
d6a5dd65f1dd8ac655da77ea330859660d101c636e1219d3c3344df0e194878c
['d5ff205ed3304fa493fa7f6e57d98d79']
I have about 8 million documents(with URL) in the ElasticSearch(v.0.90) index but only 3,5 millions documents are "valid"(need to be searched within). I have a list of all "valid" URLs(no special template here). How can I delete other 4,5M documents from the index?
2a33385ed0f2a2f3d07e25d3461e9f6b19a0a1917b82be3e0594cd56f02d39f8
['d600b95fbc2b4551a289954ed2b23128']
I am trying to programmatically log in a wordpress user, using the following function for that. public function auto_login( $user ) { $username = $user; if ( !is_user_logged_in() ) { $user = get_user_by( 'login', $username ); wp_set_current_user( $user->ID, $user->use...
478619f28dea093fc884ec2a1db17bde738856dc6c2e730cb5b0c9bd560ff085
['d600b95fbc2b4551a289954ed2b23128']
I am trying for the first time to build a plugin for Wordpress following OOP way. I am having some problems while trying to create a submenu page using add_users_page() function. Here is a simple version of my code : class MyPlugin { public function __construct() { add_action('admin_menu', array($this, ...
f7a3ef5b764143d96ce894f6a2d63250cb697e7bb262cf7ed519ece0266a96e4
['d600f32dac7843b892dac3b45d40be8d']
I have an Excel template where the underlying values are updated via SAS. There are predefined formulas in the template that do not update when the data changes. The workbook is set to automatic calculation. F9, or any combination of keys and F9, does not update the cells. The only way to update them is to click inside...
78a470c260c26667312fece59e05bc4acce88041901818427b02467ef28c78ef
['d600f32dac7843b892dac3b45d40be8d']
I have RStudio 1.1.419 running on a Mac OS El Capitan. I am trying to install the dplyr package. The installation first attempts to install package utf8. The following is the text I get back: installing source package ‘utf8’ ... ** package ‘utf8’ successfully unpacked and MD5 sums checked ** libs llvm-gcc-4.2 -arch ...
6682cd184fe3f398564a00841d912e4557668ebace87a1a80bfac6d10433946f
['d607ad78d7ee4dc48b55e5782ca70cd9']
This I can't get my simple brain around. A comma-delimited array of products ordered is passed to a procedure like so: set @array = 'productID_47, productID_4' select productID, price from Products where @array like '%' + productID + '%' Two records are returned. Great. But then if I have: set @array = 'productID_47...
132f2b7fdc25bc9f03cbd12e61c02a04f2ccc78f9288777b26c8f0512cf551a7
['d607ad78d7ee4dc48b55e5782ca70cd9']
I have an AJAX call to retrieve a JSON encoded object ('result') that may contain some null values. When I use $.each(result, function(x,y) { y.myvalue + "<br/>"; } to output the values, any null value is converted to the string "null". I am aware I can use a dateFilter callback function in my AJAX call to replac...
4d369beaf27172efa82a483753a47d05e0952db40f627783ea0d12d5e4971840
['d610660bf2064717a24b7c30ddc76ae9']
Please consider this MWE: \documentclass{article} \usepackage{glossaries} \makeglossaries \newglossaryentry{date} { name=1 October 1999, description={He saw him} } \begin{document} He saw him on \gls{date}. \printglossaries \end{document} This will result in 1 October 1999 on the left of the glossary. However, ...
cd13611ed7d14b9c8bd340805db829ba3a450220a983a7ae485263d4c18c02d9
['d610660bf2064717a24b7c30ddc76ae9']
I tried `Select[Join[ solution, {{g[1] -> 1, h[3] -> 1, g[2] -> 0}, {h[3] -> 1}, {g[1] -> 2 g[2], h[2] -> 1}}], ({g[1], h[3]} /. #) != {0, 0} &]`, and it only gives me `{{g[1] -> 1, h[3] -> 1, g[2] -> 0}, {h[3] -> 1}}` Somehow while it admits your last example, it doesn't admit my new example. It just seem...
384d4436b8b1f3d1c971611927b45749919780fe19c970629d16bda23c26ffa3
['d61380add56d42f2a5fad0aa95ee40c1']
Superb - love the answer. I read a piece on beer history recently that claimed BIAB multi bag is probably the oldest form of brewing, and that the mash tun / sparge system is a relatively new invention so that much larger volumes can be made. So, it’s like a new old method.
68ef114b9c37699e1163678dae4712b35fa10621c0703538967b23295fed212d
['d61380add56d42f2a5fad0aa95ee40c1']
First off, you need to figure out how big your downtime window is, and what their expectations are. The window and their expectations will determine what technologies are used to reduce downtime. Secondly, see how long it takes you to restore the server on the second box from the ground up. This is your baseline. Thir...
cba6140c91a758a3375dfe9685dda5b3ac65320356b52941fff5ceaea8afef3b
['d6142851179f4b0cb1e9115d0beb13d6']
There's a program /usr/sbin/vcstime which prints the date/time in the top/right corner of your terminals. You can enable it in /etc/kbd/config (on the last line). It's disabled by default. I'm having a problem whereby each time I ssh into one of my servers (Debian Jessie) vcstime runs. I don't know why it is running. M...
93a69b07d5b841df0235884b7032b60f5b5a9dc57800dd8ff1f9598500575724
['d6142851179f4b0cb1e9115d0beb13d6']
Hereby my solution in text. Imagine a bone with the tail at the centre of a drive wheel of a steam locomotive. Adding a second drive wheel a simple: add another armature (bone) at a certain distance from the first one in the X-direction. Then connect those two drive wheels with a connection rod. I tried to ad another a...
cafab431e28f8a1f6dcfb24198169b4f1df72643b117a10a11cb34252ed4c0a1
['d61466a1d06747fa97cdc628904c22a3']
+1 @Yannis Rizos: **+1 for the [SE-Data query](http://data.stackexchange.com/programmers/query/60095/closed-non-dupe-questions).** Beyond that, the question was only about practice alignment, not execution; meaning on Security.SE, some mods appear to have had the position that some questions are an okay fit as closed q...
69a77a2cefaac415373ff7bc90a9667abbe1345a03bb4fecad9e452614df9a79
['d61466a1d06747fa97cdc628904c22a3']
@Christi: Even particleboard (as others, I suspect this is what you mean by 'fiberboard') can be easily drilled with a classic drill bit or a brad drill bit. Even if the drill bit is dull the drilling can be done, even if not as easy. There must be something very out of line for the drilling to fail as described. For e...
984191c6bdc5ebf8834058be67eadae362bc96ef35fc1be3fb386dfafef8b678
['d619ea28de104f179c6af16a77c9e290']
I am trying to take an attached excel file from a DAO.recordset, open it, edit it with new information and resave the file to the database all within MS Access 2007. Currently I am having trouble finding any similar task that someone has completed so that I can see how to open an attachment object from a DAO.recordset ...
07cd4365725e05330ceadb4e6aaa5d2c2904255060fae85a66f4a5d59b409407
['d619ea28de104f179c6af16a77c9e290']
I am assisting with a local MS Access database and am creating a number of extensive forms. I was wondering if it is possible to create forms via HTML or Javascript (rather than creating them directly within Access) and then use them locally within the database? Has anyone run across anything like this?
af6e53851c17ed6a5da322bab80a5ca8a4a94c555ef5acb6564bf2faa7e6a155
['d623dba2382c4a4e95efff036345e308']
As per my understanding the system HW is good but still the restart is happening for every 1/2 hour, So my suggestion is to check with Microsoft and upgrade your OS, because i had similar issue, but for it reboots for every 2 hours, so i have changed my OS and its working fine. Regards, M.Vetrivel
4f7ad9dd7ce1f0d35af7ec3cb9ec28f8bbb8b1859294918b407ae3b559fdb0c5
['d623dba2382c4a4e95efff036345e308']
If you are using RestfulAuthentication with friendly_id, the latest version of friendly_id can bring this error as indicated on the github page: Also, this feature uses attr_protected to protect the cached_slug column, unless you have already invoked attr_accessible. So if you wish to use attr_accessible, you must inv...
e213bb3ab1fc10ed4eb6627981badf1f11b6e05a6499430b99ec870cc9d96f5b
['d627500af13e486c880759884fdd4326']
The problem was that in the game in the main scene I locked the mouse cursor and also make the mouse cursor not to be visible. So what I did is attached new script to the main menu to a empty gameobject with two lines in the Start: Cursor.visible = true; Cursor.lockState = CursorLockMode.None; And now everything is w...
6d7cb40846d46a51f6be84dc42e20bdbd1cd65c1746df88673bcb10467815c0a
['d627500af13e486c880759884fdd4326']
I don't want to find the shortest way and not moving in diagonals. The start position and end position are both on the edges walls so in the start i can't move back and in the end i can't move forward (depending on what direction the player is facing when getting to the end position ). I want to move only left,right,fo...
d7fb6d6483d8c8fdf87551b8e933ac4414d245ffd3e620a1ee718eee75757af5
['d6316e0bc96f4b6a98f7af73b7a4535c']
If you want a portable C++ solution, you should use unique_path in boost<IP_ADDRESS>filesystem : The unique_path function generates a path name suitable for creating temporary files, including directories. The name is based on a model that uses the percent sign character to specify replacement by a random hexade...
c11fe199018596886ad3aa964e780f0ada110b18b4d79ff553e081202950b982
['d6316e0bc96f4b6a98f7af73b7a4535c']
You could try mysql++, but you'll encounter the same linker errors I bet. Have you set the include path (C:...\MySQL Server 5.1\include) and the library path (C:...\MySQL Server 5.1\lib\debug) ? In VC2010 to set global settings you have to : VS2010 introduces the user settings file (Microsoft.cpp..users.props) ...
7fc974b0de7559076e6b92aa57a574eecd019bd5d973b56ae332c6c15ff2349c
['d638fd452a084b36aff278279f9e7a4e']
During my program execution, I have to load a large array of MyStruct // Struct definition struct MyStruct { var someString: String = "" } // Array definition var ar = Array<MyStruct>() The issue is, having all these someString take a large amount of memory and could easily be shaved down because they all have...
2f114ed8a44b63b1d1fbf29b9ea68799e0675127fec0142c6f15fadeb5fe791d
['d638fd452a084b36aff278279f9e7a4e']
I have a dictionary of arrays that contain one kind of objects : database records. Each array is like a table associated to a key (table name) in the dictionary. My issue is: How do I update a table (delete a record, add a record, etc) without making any temporary copy of the table, like I would do with an NSDictionary...
bc8600291cef08945cbffc6f7693171c7b63255b2e8702e435f518720e9dbe59
['d63a0d142ea04e7facc4a61020f54cb2']
Yes, try increasing the parallelism for the stream2 source - it should help: env.addSource(kafkaStream2Consumer).setParallelism(9) At the moment you have a bottleneck of 1 core, which needs to keep up with consuming stream2 data. In order to fully utilise parallelism of Kafka, FlinkKafkaConsumer parallelism should be >...
b429494ba1869582c2c2356270fd3306a4d34dec5063438b558a98a92d67f511
['d63a0d142ea04e7facc4a61020f54cb2']
I need to detect versions of installed Adobe AIR and Flash from a Java application on Windows. One approach could be reading the .exe files' meta data in the "C:\Program Files (x86)\Common Files\Adobe AIR\Versions\1.0" folder, but this is obviously an ugly solution. For Flash version one can try to read the registry...
7bfd168df285163550d355aabdb4949185b8357060d9d5cb026846a34c499cbf
['d644bc2f04994e5eb15fcf594c25c1de']
<PERSON>' phase rule states: $$F=C-P+2$$ where $F$ is number of degrees of freedom, $C$ is number of components, $P$ is number of phases. <PERSON>'s polyhedral formula states: $$V+F-E=2$$ where $V$ is number of vertices, $F$ is number of faces, $E$ is number of edges. It is easy to see that these formulas are similar....
79475f3ee1811b03171f20db3e8dff3a434bb9aa791e9824621b53858fbe7212
['d644bc2f04994e5eb15fcf594c25c1de']
Hi, I tried with below code but still some values are not retrieving as expected like in excel value is -65533.333 but when I am reading it is coming as -65533.332999999999.For value -<PHONE_NUMBER>.55857, it is coming as -<PHONE_NUMBER>.5585732. cell.setCellType(Cell.CELL_TYPE_STRING); System.out.println(cell.toStrin...
7419e55cd6f9caf8ecd554dd3f17fef6b845c94d23b783da6b196c59e0cb89b9
['d65cabf4cbb141599bb14d1a76e1a109']
I am using an ANSI USB keyboard on my macbook pro OSX 10.6.8 (Yeah, I know it'd old but it still works great). In system preferences/keyboard/shortcuts/display you notice that F14& F15 are the shortcuts for screen bright or dim. These correspond to the SCROLL LOCK and PAUSE/BREAK keys on my keyboard. They are directly ...
4923cba1b36c159834c244a1393923dc2332b19c4bad834989a2963226e294e5
['d65cabf4cbb141599bb14d1a76e1a109']
I have a surface pro 2 and Win 10 64 bit. Had to go to "Turn Windows Features on or Off" in Control panel and disbale/uncheck both Hyper-V as well as Windows Hypervisor (this feature is only in 64 bit). Restart and then try installing IntelHaxm again. You can find that where you SDK is installed. sdklocation\extras\int...
eeff36831018c7db444079901b3f65a8265b14d2b7b73d3afd1e14e5eadeab1e
['d67d07d2a25f4cffab9d23f9ed0ec3ce']
I need to get the user location at regular intervals. e.g. every 5 minutes. The application need to be able to do that while in background. Giving the iOS restrictions that freezes the app conde while inactive I cannot have a thread/task running every 5 minutes to perform this task. Using the Standard Location Service ...
1f52a9bab828f7f021f3abd9bbcefdf91c7d9f240bea1e7604920672afa99286
['d67d07d2a25f4cffab9d23f9ed0ec3ce']
I'm developing an iOS app which uses a UIWebView and the WebApp running inside uses WebDB to store it's local data. I would like to 'reset' the state of the my which would include: Removing any cached items (images, html and etc) - This is done and is working fine :-) Remove any WebDB created by the Webapp. Anyone ha...
df76d0a9922e1430f670ca4304aeb23025e11a9f424bcdd3e18feba250699bdb
['d697f2f582024ff08cf925d33a89b3b6']
function wordBreak(dict, str){ if (!str){ return true; } for (const word of dict){ if (str.startsWith(word)){ return wordBreak(dict, str.substring(word.length, str.length)) } } return false; } You could also probably optimize the loop over dict by pre-sorting the array and using binary se...
fed70f65ab2c865d01d3019a34eefb787136d43fb76c82813a489f9dd014fbdc
['d697f2f582024ff08cf925d33a89b3b6']
Your immediate problem is that if budgets[0] is not an Investment, you'll never enter into the while loop. But since you're new to Python, there's quite a lot that would improve your code. You're not using additionalInvesting. This is just a bug. There's no reason to explicitly cast your variables to floats. Python wi...
78b626c40a718012696225f598cda685b92013b996a25e3f2694f9f779fcec1b
['d6aef21d43fb4e42b5b29aea9a63b513']
I have just started to use Camel in one of my projects. I am trying to configure Camel with Spring, but having issues doing that. I don't want to use xml configuration but rather go with Spring based Annotations for configuring Routes and Processors. My App is a stand alone Spring Application, which will be run as Jar...
9143916260e619d352ab065bd171e5798db4fdec0537bbf4b032a3362a05a864
['d6aef21d43fb4e42b5b29aea9a63b513']
I was revisiting Operating Systems CPU job scheduling and suddenly a question popped in my mind, How the hell the OS knows the execution time of process before its execution, I mean in the scheduling algorithms like SJF(shortest job first), how the execution time of process is calculated apriori ?
78cfdd9f5e1a54c66c479426eda97bb4f3607c2857579050c10473d57b6bb03e
['d6cf1353c2a54bf4a8b1d0939cd72b10']
Well, I am not extremely experienced with CSS, but you want to balance readability and compression. The way you used to do it was heavy on compression, and the way you're saying you were suggested to do it seems heavy on readability. But I've tried that latter one, and boy, is that a lot of work. And it barely adds rea...
e2beabb9f8124f9a8ade4bfabf61f97fec5bb936ccafdf1d52a9f5f224b927db
['d6cf1353c2a54bf4a8b1d0939cd72b10']
I have a navigation menu on my site, which is an unordered list. Items are naturally displayed left-to-right, and in the proper order. It looks like this: |[--1--][-2-][----3----][--4--].......| |[---5---][-6-][-----7-----][-8-].....| |[------9------][----10----]..........| Obviously, if I float all the list items ("l...
0aff77893546a86cfede76eee958df5deeb77798468f8f44bbddff0d92198036
['d6ecf63581ba457f885f1874e79d1fd0']
I've been looking into more strict component based designs in Unity3D. I've been using a space invaders clone as a practice project. On my player object it has components: PlayerInput, HorizontalVelocity as well as the usual suspects like renderers. I am using a mediator system for communication, so when an arrow key i...
205a7cc3497678cf5e66cb9e2bd4f457bb148185bbc21db911ceb0276da2d327
['d6ecf63581ba457f885f1874e79d1fd0']
While not standard I have found this practice very useful. Imagine a game where a warrior has HP, attack and defense. You could write a stat component that takes an enum and a value. Another way would be to have a component that holds other entities and make each stat an entity itself with a value and type component. I...
c132335d2fc33294d1117770548d3462d180ff1c4128d3b498f8f963dc5e1d29
['d6fd6563dee14e6089ba6feb3eed7c87']
I understand the relationship of Base, Collector and Emiter. Understand how to solve BJT problems. Sorry if im my language does not reflect that. I understand saturation mode, cutoff, linear etc. Understand basic concepts and know how to do mesh analysis, node analysis, etc. Im just very lost with this project. I manag...
a08c2be0e5d9c6c544bf5d0b44718be3f737c9cbbd9d683f7b7d5dc8cb4ccfbf
['d6fd6563dee14e6089ba6feb3eed7c87']
I think i will just stick to the 9 v battery. I think my circuit outputs 2.5 volts on the Rc resistor... thats what i mean by 2.5 of amplitude, that in my opinion results in a 5 V peak to peak. But i can be wrong, if you can share with me a design that complies with the initial requirements... maaan you would be my her...
d2dc2e7a29e279dcc860ade24c3dc5e32751cdf21a71a278e3b345b8b5ae6b57
['d7040edfc8084137a51c6c4fe0855b58']
Can someone tell what's wrong here please? It send me this error: Type 'CityWeatherInfo' does not conform to protocol 'Encodable' struct CityWeatherInfo: Codable { var name: String var main: Main var weathers: [Weather] private enum CodingKeys: String, CodingKey { case weathers = "weather" c...
c68fc982e89b63e1a5ce549cb6cd326be015ff962bacba62695a6d381f98b6b7
['d7040edfc8084137a51c6c4fe0855b58']
Can someone tell what could I do? I have a class named RequestManager where i have the URLSession and inside of it, a constant where I store the Data from the server. import Foundation class RequestManager { func fetchWeather(cityName: String,completionHandler: @escaping ([String]) -> Void){ let weatherU...
5d261efdb6c67f3b0b8942632c701831514ea83eeb4d39840504d30755b9ee21
['d71236abe15245f7b112124befc6b0ab']
I've looked into so many CSS shape resources that it's ridiculous, but I can't seem to find my answer. I'm trying to create a div with this shape so that I can put a line of text inside of it. Is this even possible? Or do I go the other route and use a background image instead?
4b9115e59225aab9dca1d6ad078bad8c73626784303ea402f96893964ce706ab
['d71236abe15245f7b112124befc6b0ab']
I have looked at this so long that I'm confusing myself. I seem to be stuck and missing something. My code is basically supposed to have the default div background (gamebg), and when you click on one of the buttons, the background of the div they are in changes. <style> #gamebg { background-color: #...
63f9174730e466363d9006abe47f711ecde2b839dd1ddcdf63bb50c1c221c523
['d71d12b1f786495f9cae56e8516ce535']
The problem is solved. The problem was not with the cin function but with the way i gave the program the input. Pasting the enormous ammount of input on to clipboard and then put it as an argument in the terminal when running the program seams to be the problem. When running the program as ./program < input.in where 'i...
97c9f2ac63936626b6e0d619db1dea567240d79334c60ae1b6b25e4c77c9bdfd
['d71d12b1f786495f9cae56e8516ce535']
It is allowed. In my opinion and i say without a reference that in general other programmers do not find your 'for' loop very readable. Sometimes in a for loop you want to do other things then just for (int i = 0; i < 10; ++i){"do something"}For example increment 'i' in every loop with two. Reading code should be like ...
e3ee240f971fd1433465bb4d89d801b9eaa7b16d1a0920ce78cc0ae6dd92ceec
['d71e6fac0be74cdca9f0053d623a0e0e']
I'm testing my REST API on Mule ESB, and when the API, implemented using Python Flask, returns a 200 http status Mule correctly exhibits the message returned (a JSON, as it is expecting). But when I return any other status, I can't seem to exhibit the message returned, which is a string. I'm trying to configure the ex...
36fae3e0e15e0bd1a01274fea54939bd754cce0d1993fd765f3056dda7a9730c
['d71e6fac0be74cdca9f0053d623a0e0e']
I'm trying to read a local file into an ArrayBuffer using the FileReader API, like this let reader = new FileReader(); reader.onload = function(e) { let arrayBuffer = new Uint8Array(reader.result); console.log(arrayBuffer); } reader.readAsArrayBuffer(new File([], 'data.txt')); But I'm getting an empty arrayB...
4baa11b0f6ba979e3039f283729ba5ba03acb47dd47b42e6c1324f96976db930
['d730a0fa67944e74be8f24cf60b045b9']
I solved my programming issue again on my own. The reason why a MessageBox showed those strange messages when an image was opened via openfiledialog was the code line MessageBox<IP_ADDRESS>Show(sr->ReadToEnd());. Probably a part of the Image-Header was displayed in the Box. I don't need it, so the solution is to delete...
b8a1ed36732991f54e2e40c587bb625eef80baa6c21151bf6429be398e9e6695
['d730a0fa67944e74be8f24cf60b045b9']
In three ways I tried to display an image within a Windows Forms Picturebox using Visual C++ 2010 Express. The files path I fetch with an openFileDialog. Here are the three attempts: 1. pictureBox1->ImageLocation = openFileDialog1->FileName; 2. Bitmap^ image1; image1 = gcnew Bitmap(openFileDialog1->FileName, true); pi...
408628c32c5bf0450331b4b8321fbf0d3678e9026fea67f91ccbafa47f5e4eb2
['d7323e73362c4f1f9fd040b1c0284d2b']
i want to upload files to google drive using nodeJS as backend. I have used google drive API v3. I get the file id and type in response after uploading a file. drive.files.create({ resource: { name: 'Test', mimeType: 'image/jpeg' }, media: { mimeType: 'image/jpeg', ...
f76aaffc8f41032a788766b2965627419f9ec93d9362f53750aa7885561e4ee9
['d7323e73362c4f1f9fd040b1c0284d2b']
I am using facebook SDK for social login, it works well most of the time, but sometimes when a user tries to login with Facebook they accidentally logs into someone else's account. I am using facebookId as unique Id in my DB, and if an existing user logs in again, through this facebookId i validate his/her account. /*...
746764236ad53b95add0cb03e0708f4c7feab1f7a1228ae4a970b20ef5ec7cb8
['d73be13dc1d04ea4a9d249a310ef4f5c']
It's not an operator. It indicates a double, not a float. 42. means 42.0, and .42 means 0.42. A . alone is a compiler error (rather than 0.0). If you add a trailing f, it will become a float instead of double, e.g. 1.f, .1f, 1.0f.
fa2b4384fb3a2ebb25359f8e6b48de691cecc6e5fad282307bbf048f4a1892dd
['d73be13dc1d04ea4a9d249a310ef4f5c']
If your compiler supports it, __VA_OPT__ from C++20 makes this more or less simple: #define LOG(...) LOG1(__VA_ARGS__,)(__VA_ARGS__) #define LOG1(x, ...) LOG2##__VA_OPT__(a) #define LOG2(x) std<IP_ADDRESS>cout << "n = 1: " STR(x) "\n"; #define LOG2a(x, ...) std<IP_ADDRESS>cout << "n > 1: " STR(x, __VA_ARGS__) "\n"; #d...
5a3a02876e5aeeab3f580b89bff87a1272f62762038a2ea64ea5f044c087c117
['d74780d423ec4784a4ce2d447b6ed43c']
OK I got it, sorry. Please let me add an example. If the given basis is a single vector $u\in \mathbb{R}^n$ and $V\in \mathbb{R}^{n \times n-k}$, then, $P = uu^T$ and the orthogonal subspace is defined by the columns of $\tilde{V} = [I-uu^T]V$. Am I right?
917289b59a7422a7faa43e18bc5bf4bf69afeb6b43902668c883e0f793e2c7be
['d74780d423ec4784a4ce2d447b6ed43c']
Hello <PERSON>, given the definition $\mathbf{J} = \mathbf{MC}^{-1}$ and given the fact that $\mathbf{M}$ and $\mathbf{C}^{-1}$ are invertible, why we could not define the $\mathbf{J}^{-1}$ which is actually $\big(\mathbf{MC}^{-1}\big)^{-1}$. $\mathbf{C}^{-1}$ is invertible because $\mathbf{C}\mathbf{C}^{-1} = \mathbf{...
c174f4707dafc6b67502624eacf317fab4cd88c858a9b25f2839a2fc86a35a5c
['d7625863afec40dfb18a0bed8e1eb462']
I'm working with lxml.etree and I'm trying to allow users to search a docbook for text. When a user provides the search text, I use the exslt match function to find the text within the docbook. The match works just fine if the text shows up within the element.text but not if the text is in element.tail. Here's an exa...
148b4a813cacb34a4fd551596f36033a283b29278ae45d7b764b1eb5f134c47d
['d7625863afec40dfb18a0bed8e1eb462']
The best option is to use Django's get_random_secret_key method. # Return a 50 character random string usable as a SECRET_KEY setting value. from django.core.management.utils import get_random_secret_key SECRET_KEY = get_random_secret_key() Neither of those suggestions make the SECRET_KEY any more secure. You're stil...
a72dd3c9ea80d8d2347eaadbc7b8df536c4069b95ff4ae38a365798310cce6b9
['d765c4fa0e7e4516abe433bb1bf20184']
This may or may not have already been said, and as of right now, there are 39 answers. some very long-winded. I chose to be lazy and not read through them all. One way to prevent duplicate answers from appearing right after one another is when someone goes to post, let them know if there have been any new posts since t...
0398af0fe6e4b98d9754eda66b99ff8cef2f1ec95cf354f0e61c070069816110
['d765c4fa0e7e4516abe433bb1bf20184']
Necesito que esta función me valide si una cita ya existe para una trabajadora y a determinada hora: public function addCita($Next,$Trabajadora,$Cliente,$Concat,$Suma,$Observaciones,$Estado) { $sql= "SELECT * from cita WHERE Id_Trabajadora= :Trabajadora and Fecha_Hora= :Concat and Id_Estado != 3"; $...
1961923072e31f14304b554530ee910ea3aad1df359c59f12119120e1bf0b2aa
['d7995e0b763b4e09b8542bc4761eace1']
I have routes for my project and I'm using Route<IP_ADDRESS>when('*', 'auth') to protect my routes by implement auth filter on every Route like given below: // All the following routes must be filtered by the 'auth' filter. Route<IP_ADDRESS>when('*', 'auth'); Route<IP_ADDRESS>resource('route_1', 'Controller_1); Route<...
8583aabe142a4d7af312c456276aac906e47d30bbe6803f44433b6c88d117b64
['d7995e0b763b4e09b8542bc4761eace1']
Personally I found Mass-assignment very much useful as it not only help you to protect your sensitive fields to get filled without check, like password and ids, but also it help you to assign values to non-sensitive fields quickly. How Mass-Assign Protects Sensitive Fields: It would not fill/assign values to fields w...