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
04aa08389b0115e757b5e95183dd8f61d074379d1d34442436fb1bc64a07533c
['e8ab282bdbf34be78133328f43d35101']
I think it's a very basic thing but I'm still not sure what happens. For example I have a SeekBar, when I start to change its value I want a TextView to be hidden, but what happens if it is already hidden and I try to hide it?, Will that line of code be skipped or will it be executed? For example, is it more advisable ...
55190d0940571c5c9a8b51a6a2cdabdb96188a956523454b031b9667ac33b14b
['e8ab282bdbf34be78133328f43d35101']
In my Banner design: <com.google.android.gms.ads.AdView android:id="@+id/adView" android:layout_width="wrap_content" android:layout_height="60dp" android:visibility="gone" app:adSize="BANNER" app:adUnitId="ca-app-pub-3940256099942544/<PHONE_NUMBER>" app:layout_con...
f469afec59564b64ce347e41c192743d335cd2627776e96ebf94c7af83f4a70b
['e8b5730133d04ff68d125e6ac6602906']
TM did work until I updated to 10.15.4. I removed the TM drive in the process of fixing the error, now the TM application doesn't see the drive. The "Sharing & Permissions" picture is the finder view of my sparse bundle folder on TM. I'm baffled because finder shows permissions one way and terminal shows another.
f33f5224cad53f410684821fb5da815c0617ff4a592d01c05f252899502d5e64
['e8b5730133d04ff68d125e6ac6602906']
I use time machine for backups. I just updated to Catalina 10.15.4 from Catalina 10.15.3 and don't have permission for backups, unknown user is the only user that has read/write permissions. How do I correct this problem ? I've searched and tried a few answers but nothing seems to work. I use the terminal to check p...
6dc251778645564649daf2cda993831f9aad9b4820965d20743e72a781df5b40
['e8be0b69881f4f3dad24db3c9553a48e']
I have the following code and am looking to give my Countdown timer a title. Inside the bar, right above the boxes that give the time remaining. Would like it to be easy to edit font, size and spacing across. Having trouble doing so. It also seems like when publishing this code, the padding for the variables: days, hou...
9fa50a54ca0a6e18d027518a5257fc7591dc693fee18e3935382ff02f024194b
['e8be0b69881f4f3dad24db3c9553a48e']
Below is code that once hovered over the shape words will appear behind. Having two problems here: 1. If I make the font small (24px), the dark grey will not cover the whole shape. 2. I want to include words with the hover, e.g. I want it to display information on the shape before hovering, then fade away with the sha...
1007ba2a644220f04650b7e6ac3e666b073caee8ea2f1663a0964f5b9781c844
['e8df29d5c2a64dd1a4f5ed78976f9796']
I am getting error "ORA-01428: argument '0' is out of range". Subject in question is : regexp_substr(ltrim(pn.pname),'\d+',INSTR(ltrim(pn.pname),'REFERENCE ID=')) when i am scrolling for more records it is giving that error. example : pname regexp value FragIT<REFERENCE ID="...
871ac6cf6fa212225d2761ed9910dc40255ba153ef9b0c314d87368f6cd0b7dc
['e8df29d5c2a64dd1a4f5ed78976f9796']
i am getting data from csv and storing in data in hash.From there i want to provide key and based on that key i want to get all values of Hash.There can be duplicate key that's i want all values of hash . for ex : **SpecID Note_Text** 300000111166 LDPE Bottle/Jar 300000111166 Poly-lined Steel Drum 30...
9f6da975f4ad7227fc9c50c214d7f05f0eaa52f6c1755463cb53b42ff31fc3b3
['e8f715ef53ed47898d0031b242e80656']
I'm trying to implement JWT authentication on my asp.net core webAPI as simply as possible. I don't know what i'm missing but it's always returning 401 even with the proper bearer token. here is my configureServices code public void ConfigureServices(IServiceCollection services) { services.AddAuthen...
7829dc76266a996486add1fbbeb7ba8ec0c33bdb62d7c5a3692a419fbe63d0ec
['e8f715ef53ed47898d0031b242e80656']
I am trying the mobX State management for flutter. But whenever I am updating my @observable State directly rather than calling an @action decorated method it is throwing 'MobXException' Below code will will give you a proper idea. counter.dart import 'package:mobx/mobx.dart'; part 'counter.g.dart'; class Counter =...
3e1f9149612a4bf97d9d16a24dd4e9bcc4ac8401a86bcd783453fbcb94fe5709
['e900e64513d64e898d5a42bdcc7fc800']
First make sure you have embedded external js file using script tag in current page and if it is not then please embed it and check. If file is embedded then just change following in your HTML code <a href="#" onclick="deleteTwitt();" class="btn btn-danger btn-sm"><span class="glyphicon glyphicon-trash"></span> Delete<...
737775b1570ce2c8e6f27f8e9c5fca4186ea19e628520f0244307ef18525b4b8
['e900e64513d64e898d5a42bdcc7fc800']
I have an issue with mongoDb mapReduce. I'm doing aggregation of a collection that contain millions of mongoDB documents and output of that aggregated documents are storing in other collection. I'm using cron job to aggregate all documents that run every hour and it works fine. Approximately cron job takes 10 minutes t...
b96bf55854ff5224a3a938e3323c355fef986bd50b0fe16ba356f3aa5eaab391
['e90d014cd92e49859540e5bc76109373']
Prepare some patterns and do tests with all of them with multiple game testers (or just some friends) multiple times per pattern (e.g. 6 times per pattern). For each pattern, record the success rate and the learning rate (e.g. average success rate first and second half of the test). Also let the testers rate the boss m...
cc14519feff770632a1884e79c2b6f69e23d8ba8f7f982659a4dd1fbaf1ebf16
['e90d014cd92e49859540e5bc76109373']
So in what context are you using FDT? Assuming this is running in Eclipse you would just need to specify some arguments to the mxmlc compiler as part of your build process. For example... $ mxmlc Main.as -default-size 100 200 Where 'Main.as' is your entry point AS3 file, '100' is the width, '200' is the height. MXMLC ...
906827044161611796f8e85d4c7a7bcaf7179efa2fb3d7fa567cdaaebb221da9
['e915deee70154d45b724db58eb6862e8']
I have a hash that contains numbers as such: {0=>0.07394653730860076, 1=>0.<PHONE_NUMBER>, 2=>0.07398647083461522} it needs to be converted into an array like: [[0, 0.07394653730860076], [1, 0.<PHONE_NUMBER>], [2, 0.07398647083461522]] i tried my hash.values which gets me: [0.07398921877505593, 0.07400253683443543, 0...
12bb823a361f61fe4b1ae079e6cd85a4f45a450f322fff57b8610b318b956a3c
['e915deee70154d45b724db58eb6862e8']
So i have been working in this:(http://jsfiddle.net/2phuW/5/) for the last couple hours. Could anyone help me out to figure out the following: 1) in the source sortable the abbreviation <PERSON>, ura, or mox needs to be shown 2) when the target is filled, :params[:ready] = true 3) when the target is filled the followin...
a2e4b190f702beb87a1743fc60a59a723ff8ed14d71cafe6bf27d535cb8a5814
['e918d7d44bd34a10b18e01e79071eea0']
React-google-chart works well in development but it throws below error after build deployed in server. VM565 2.351f67d9.chunk.js:2 Refused to load the script 'https://www.gstatic.com/charts/loader.js' because it violates the following Content Security Policy directive: "script-src 'self' https://ssl.google-analytics.co...
807293dee30020706902e34a38008d55df5575700f629d032b43477dc31c737b
['e918d7d44bd34a10b18e01e79071eea0']
The below code not returning amazon s3 content, it works when console the data value. I have tried declare variable outside function and tried to return from function still, not works const getMeridianToken1 = () =>{ s3 = new aws.S3(); // Create the parameters for calling listObjects var bucketParams = { Bu...
75a0bb99fb6656d38998615a4347fdca2722a6e5eac8c86d26ea1497e0f88c81
['e91a2ecad08a487b8eb50e4c28ad45ca']
I'm thinking of storing permissions to users that I locate via cache management. This is kind of what that looks like: function doGet() { //upon opening the web page check if user exists: var cache = CacheService.getUserCache(); var user = Session.getActiveUser().getEmail(); var value = cache.get(user); ...
c4d2fb60721473e104f34fb8ba1871be4950ddd19e5c9a5fafb6dd1f6efe7b4c
['e91a2ecad08a487b8eb50e4c28ad45ca']
I've been looking into using cookies to create sessions and keep track of user privileges. So, I made some basic code for a web app where you click a button, and the active user email is accessed. Here is the google script (Code.gs): function doGet(){ return HtmlService.createHtmlOutputFromFile('Index'); } function ...
4555dce1237b626afc9110ca713a2cde3b6cb5a36f8f9632756311d8850fb5ff
['e91f59aefbb44cea98b9f8c4b065551f']
Had similar issue myself. Converted a VS2005 project to VS2010. I was using the option, Linker -> Manifest File -> Additional Manifest Dependencies: type='win32' name='Microsoft.Windows.Common-Controls' version='<IP_ADDRESS>' processorArchitecture='' publicKeyToken='6595b64144ccf1df' language='' The conversion garbled ...
bce3997319382c09241898da4f6cae3b1c8fc74508d616d1a75f7488755dd281
['e91f59aefbb44cea98b9f8c4b065551f']
This is the method I used for doing something similar. I use a global variable to hold the handle of a TextView created in the Activity class. The global is assigned by making a call from the Activity class to the render class. Code in render class: private static TextView glbTv1 = null; public void assignTextviewGlob...
2d75d325789b8617a0b3952732d298f28835306044dd36346e29fb0de59b408d
['e93989f8252445e7b9004b136b51949f']
I'm trying to write a script that save me time. One operation is to unzip files, basic. I don't want to get the unzip-operation on screen, I mean the verbose messages. I know about the -q or even the -qq options. I want the unzip to be done quietly but also to log what has been done in a log file. I don't know what to ...
b41f699f1316b070aae827fe0a37657c7180abb511b64a4673388ee201941218
['e93989f8252445e7b9004b136b51949f']
Here is my complete script with the tips you gave me, thank you. it's my 1st, so it's upgradable :-) thank you again. #!/bin/bash clear printf "Un-ZR v1.0 running w/ Bash Shell v%s\n" "${BASH_VERSION}" printf "%s\n" "$(pwd | sed "s:$HOME:~:" | sed "s:\(.\)[^/]*/:\1/:g")" &> log.txt tree &>> log.txt read -rsp $'\nProces...
23a197e20fc4cc384e45c10986c23c7bcf29343e7b3d17807ea223bfa934a80c
['e942ccc6b5a44904b41953f9bd4ad1d7']
I have two classes. A class called Cat, that holds the cat names, birth year and weight in kilos. I have a class called Cattery that is an array. I want to input cats from the Cat class into the array. Each cat will have its own name, birth year and weight in Kilos. How do I do this? Thank you. public class Cat { ...
aa553ca68e982b79d826e96f5fa812d8c6d39baf7eadfb739d57f0fad13d96e5
['e942ccc6b5a44904b41953f9bd4ad1d7']
I am stuck trying to make a deck shuffling method. I searched for answers on Stack Overflow but have not been able to figure it out. I want to create a shuffle method. This method will pick two random numbers from the array between 0 and the size of the deck. I then want the two numbers to be passed as parameters to my...
a09a27dd9ba1a05fc51cd97a57195052288675fa32b4a353cae6ddf6c060176c
['e9436b0667f74b2b979ff53970cbd4b2']
I have a data set with n samples d features represented by a n*d matrix. The corresponding label is a n*1 vector. How can I compute each intraclass standard deviation without loops in matlab? For example: Samples 5 1 1 1 4 5 2 5 3 1 1 3 5 5 5 5 5 3 4 ...
bbb68b1b9d919ab9127b1a068a0c8bb0ae7991d25030bb17ee35516dea015d9a
['e9436b0667f74b2b979ff53970cbd4b2']
I am learning python. Today I meet with a odd problem. from urllib import urlopen url='http://www.google.com' f=urlopen(url).read() print f It is a sample script ,it can run if it in C partition however in D partition it has AttributeError: Traceback (most recent call last): File "D:\urlopen.py", line 1, in <module...
03d89e5d291eac19b2e6f66ca097e9546305cc4b94eec833ba2c40728f1fd507
['e946d05413844d6d87ec154be1169ed3']
I'm not really sure what you are trying to do with the headers but I'd suggest you do some reading on CORS. This is a pretty good resource. If you wanted to limit who can access your endpoint you could set Access-Control-Allow-Origin: http://someurl.stuff.com $.ajax({ url: "http://someurl.stuff.com", typ...
9324e68857a877a15e305e4b71cd99e9682e6601d3de57b39131cb0bcb829668
['e946d05413844d6d87ec154be1169ed3']
There is no need to use a package for this, just set up a middleware like so app.use((req, res, next) => { res.header("Access-Control-Allow-Origin", "*"); res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept"); next(); }); As previously mentioned, to limit access to a partic...
962312eab0c98523d8cf13f93c8eebf745faa89acb278e2576ee91b2b7221707
['e9504b8b19934bfab05a1923d1df2528']
If I have a folder full of similar files, is there a technique to open all of its files with a particular app? For example, I would like to right-click on a folder and Open With a selected app. I know I can do this by entering into the folder and selecting some or all of its files. I just wondered whether there is a wa...
cad2454d1c0dccfcde4dfaac42bb2ee90b033e51dfb13d6b85958b5d3726696b
['e9504b8b19934bfab05a1923d1df2528']
I see a technical book on the iBooks store which looks interesting. The description tells me everything except: What format (PDF, ePub etc) is supplied? Does the book have DRM? I don’t know whether the answer is always the same, but how can I find out about the book on the store?
d2de6f8d466c272b429f8ff324eb2b7cf533b25cb0a4ed5bb3a149b5cef05922
['e958498398d0414ba999802e90a1ae21']
I have problem with custom html helper. I try to build a helper, using TagBuilder but I'm unable to close it. Here is my code: public static HtmlString CustomHelper(this HtmlHelper htmlHelper, string id) { var contentDiv = new TagBuilder("div"); contentDiv.MergeAttribute("style", "display:i...
a0222ee809592b579df3acbe0c8ae0ce143d2bd7354e2c5d9484899bb6d6d2c3
['e958498398d0414ba999802e90a1ae21']
I have a class Users: class User { public string Name { get; set; } public Address Address { get; set; } public DateTime Birthday { get; set; } } Then I have a list of users like List<User> users. And I meet with the problem which sounds "How to order list by Name length string property? I've tried somethi...
140bea390f34aa882b1b1a38fe14ace888a41f08001f7839cd5352f4075cd72a
['e95e5e9aaddb4917a51f410d853d76ad']
Gallactic Jello is on the right path. The part he left out is overcoming the problem of the generic library knowing about classes in the center library, which I have further addressed. I've created a sample solution with three projects, the full contents of which I'll spare you. Here is the gist. Class Library: Gene...
33dafa1bf46ccf155df754a9a373705d120e0e6b4e9e0e66831ec5af04201ff5
['e95e5e9aaddb4917a51f410d853d76ad']
I'm debugging some code that uses Map<Integer,...>, but I'm having great difficulty finding the values associated with various Integers! Here's a minimum working example: java code (saved to .\src): import java.util.Map; import java.util.HashMap; public class Hello { public static void main(String[] args) throws ...
2024e631dd495a566641397a936e215823df663069d556b8927bc618e954be86
['e964b164c6f94aa9ae89eb03f48f964e']
I would like to create tokens where its price is pegged to the price of Ethereum (i.e. Ether price goes up, my token price goes up). Regardless of number tokens been sold or changed hands.Is it possible? Any examples out there for such scenario? Appreciate all your help. Thank you so much.
b12c9deeb748936df5dc977ddd299ed0b5464c3ebf97cc979e1827021797a33f
['e964b164c6f94aa9ae89eb03f48f964e']
I asked a friend how they were doing and they replied "元気でやってるよ". What is the meaning of でやってる? Is this some variation on である (to be) or is it a form of やる (to do)? If it is the latter, why does it use 元気"で" and not 元気"に"?
50e09ca78f50f45e8d0252b7720913861f8cadc87ea3ba0c238ba868319beab8
['e96d24b80e744391895ba33606b54c70']
У меня есть строка let str='(`id`=3) and (`filter`=\'test\' or (`filter`=\'1\' and `name`=\'2\'))' Мне нужно чтобы строка превратилась в такой массив let arr=[['id','=', '3'], 'and', [['filter','=', 'test'], 'or', [['filter','=', '1'], ...
e0050b8bb90373f1d46130ceb01e2086ee0a17e72544fe03de477c8464aff27c
['e96d24b80e744391895ba33606b54c70']
Now I have apache configuration which works only with localhost domain (http://localhost/). Alias /media/ "/ścieżka/do/instalacji/django/contrib/admin/media/" Alias /site_media/ "/ścieżka/do/plikow/site_media/" <Location "/"> SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJAN...
61b0b87a556d58a618cc49702c5db51fe02e60256bcdf6d57b7012f50cbaf445
['e979eb3261c54c28b6d811866d220567']
I have an EC2 WindowsServer2016 image with a scala project on it. I want it to start when I spin up an instance without me having to log in or do anything. I have a .bat script with the following: git pull sbt run In the TaskScheduler I created a task. Here is the XML. <?xml version="1.0" encoding="UTF-16"?> <Task ver...
2cd24d038df9f92225097555ac46b2c73d55981173532b9110427ef5d6c0a56a
['e979eb3261c54c28b6d811866d220567']
yea, i can manual start, and all be ok if I do it. process created and log writing. if I need stop him, I use kill command. But if I start from sh (example: sudo su root; sh /etc/init.d/odoo-test start) pid file is creating, but odoo don't work, and i can't stop from sh /etc/init.d/odoo-test stop
39aeefdc2d7067e839b7365947bb3a3c2b5829aa092893eaf9fde4bedd0aaee8
['e97dd461f91840c4815dba64db583f6e']
<PERSON> comment seems to be right, at least at this point in time. I don't think the Python kindless ancestor query is supported in Go. For a moment there I thought you could use the ancestor key's Kind() method, then I had some more coffee and came to my senses.
b1c1bbfe8ae2961310fb11959573b591cd868d2a18c4138a961ef14bb79cc8e2
['e97dd461f91840c4815dba64db583f6e']
Currently im using this command in terminal to compress a single image with imagemagick: ./convert_with_logging photo.jpg -quality 50% photo2.jpg convert_with_logging is a script that contains: INPUT_FILENAME="$1" OUTPUT_FILENAME="$4" ORIGINAL_SIZE=$(wc -c "${INPUT_FILENAME}" | cut -d ' ' -f1) convert "$@" COMPRESSE...
3b806f1a88a0399c4a4dfad62529fcaba00fc1b702dd239f7a622b73748b11de
['e996b692972d4dac9404dff6cf189ecb']
Lets say I have a postgres table named Employee with the following columns: ID FirstName LastName Employment Date Manager Department I am interested in having a REST endpoint such that /employee/{ID} will return all information for that particular employee in JSON format, but if I specify /employee/{ID}/FirstName the...
16e9bfcb9b917a54201dc0e11da7851a6aa0b8e7b06706740ed62c1f67b81934
['e996b692972d4dac9404dff6cf189ecb']
I am trying to do some simple updating of a string in a function, I got the following sample to work: void change(char* buffer) { buffer[0] = 'b'; } void main() { char buffer[20] = "abc def ghi j\0"; printf("before: .%s., %p\n", buffer, buffer); change(buffer); printf("after: .%s.\n", buffer); } But ...
5084745ca821bad8f19e49ab7ac6f612ef267ea28cb4be423a75b93529b08103
['e9a1895d189c46aaa7c4fb645d3ce4e1']
Is there a way to exclude an entire directory from git if a certain file is present in there? For instance, I have a lot of test cases which create new directories with an _SUCCESS file. I want to exclude any directory that has a _SUCCESS file. I do not care about what other files are in there.
f279a4ac6e596858b0dc603c808088d0ffba12db05c1143588f7cd8676ef1045
['e9a1895d189c46aaa7c4fb645d3ce4e1']
The schema in your LOAD statement is incorrect. info is a name and {"Id":53556,"State":"Ohio"} is its value. This value is an object which is again an unordered set of name/value pairs i.e. "Id":53556 and "State":"Ohio" Try this read = LOAD 'test.dat' USING JsonLoader(' info:( ...
de5fad097abe92dd7cb2fb3efdd4f951d92dadb317c1914ea192cd9272e9b355
['e9b40449001a47d79f400423c14c7fb1']
This is an addon to @FaneDuru's solution that implements a dialogbox showing the printer list, highlighting the currently active printer and allowing you to select any other printer. It also encompasses the fix for the problem with the "Send to OneNote 2016" printer problem. The code is for running the dialog box shown...
66c6b50148551f0b28c0f35746dfb9dc53b3503db1859c16d55e67afd20a074e
['e9b40449001a47d79f400423c14c7fb1']
<PERSON>, <PERSON> posted his answer while I was working on it. While it will work, if I'm not mistaken, and that may well be the case, the items will be copied in reverse order to the new destination sheet. If order is important you may what to try using a Do/Loop as follows: Option Explicit Sub Complete() Dim lRow ...
7d2c8fc14e78e04280c04159a9d47bfba015056eda2cc4fb00ba83b52cb3ba6f
['e9b9e06ea191408ea503633ecba55b66']
I'm having an issue the typescript generics: function isString(a: any): a is string { return typeof a === 'string' } function concat<T extends string | number>(a: T, b: T): T { if (isString(a) && isString(b)) { return a.concat(b) } return a + b } Playground url: https://www.typescriptlang.org/...
65a739c57dea3dd41b746512d1ecd1e2c8c07a139d9b6424f08740776ae14a1e
['e9b9e06ea191408ea503633ecba55b66']
So I'm having some real troubles trying to design a responsive website. The problem comes from the fact that I am using the vh unit, that sets some of my div to 100% of the viewport height. While this works perfectly fine on desktop, my issue is that the viewport on mobile actually changes : As you scroll down the nav...
f0ce19d423884ba6be144e6ec6ebb67e83b3b8b7d1bc913c3bf1916c5732fbb8
['e9c4d67b4aca42d0b4186ab9fc1c2c34']
OUT PUT IS LIKE THIS :status vsftpd vsftpd stop/waiting AND FOR start vsftpd start: Rejected send message, 1 matched rules; type="method_call", sender=":1.70" (uid=1000 pid=3522 comm="start vsftpd ") interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply="0" destination="com.ubuntu.Up...
27d692a274a034ab25ef86c8b16d31fb2b21c952a2b3dc7b777386bc43745572
['e9c4d67b4aca42d0b4186ab9fc1c2c34']
<PERSON> want to remove all the images from a document in LibreOffice Writer. My document contains ~ 350 images. Is there a way to delete them en masse rather than one by one? I tried unchecking Tools > Options > LibreOffice Writer > View > Display > "Graphics and objects". But the place-holders are still visible. Edit...
994949add39415f211ee3fa15bdbcd975a61adc8961b66d724e9b4cef15f357d
['e9c5d27761414f1eb81c85ed22e5cae9']
A good practice is to use the CBV class UserCreateView(CreateView): def get_form_class(self): class _Form(forms.ModelForm): passwd = forms.CharField(widget=forms.PasswordInput(), max_length=100, help_text="Password: ") rpasswd = forms.CharField(widget=forms.PasswordInput(), max_lengt...
ef5d524915e8ec1652f45ce9a131a406f2bc643e27e0a2cb3e4b42a42b2edafa
['e9c5d27761414f1eb81c85ed22e5cae9']
views.py class SearchView(FormView): template_name = 'apps/frontend/search_view.j2' def get_form_class(self): class _Form(forms.Form): search = forms.CharField(label='search') return _Form def form_valid(self, form): return self.render_to_response(self.get_context_dat...
db1e2327d45cec6f0547a5df653ef7172f9b0c70059274d8ee747f464be71bb4
['e9c975b8b6534b52807013b8bf62af1c']
I'm following a tutorial for Devise+Omniauth+Rails 4 with multiple providers. My code is very close to the examples at the sourcery tutorial except that I've left off the confirmable module and changed linkedin to google_oauth2. Everything is working fine until I get to the callback and then rails raises this error:...
b6f36a7d729dee466ea8863a9eafd4185ef1c6cd979993397c0abeba7f6b91ea
['e9c975b8b6534b52807013b8bf62af1c']
Use the select2 createSearchChoice function to allow the user to input their own option. Then use the change event on select2 to listen for any new search choices and launch a mini-form or unhide a link on the page to add additional details if a custom choice is selected.
435818f14ab505f69c5df589ff4bc52c841f7097a9fe585e5a4d02b0d38ddf7b
['e9d058d5fded4db6947c3fcd8ce049cb']
We have a View in SQL Server that constantly evolving. We want to show it in a report as it is (If we add/remove a field in the View, we don't have to modify the report and add/remove manuelly the field). A sort of a table/matrix that is refreshing by itself. Thank you by advance for your help.
86cdf32a5a88b6729f28ac402d1c7d5de9891ea450b99f83f9eb7f63c2cf66ad
['e9d058d5fded4db6947c3fcd8ce049cb']
I'm trying to write a script that will get the value of a node in multiple XML files. Here is the XML structure : <Report> <ReportSections> <ReportSection> <Body> <ReportItems> <Textbox Name="lbReportName"> <Paragraphs> ...
68258602ff06c195327e004d3ef174a352979269c387697cc4896a81464744fb
['e9d20a3b81d5447baff7530b1e883702']
Here I have a code that create a sidebar: var side_bar_html = "<a href='javascript:google.maps.event.trigger(gmarkers[" + parseInt(gmarkers.length - 1) + "],\"click\");'>" + place.name + "</a><br>" + '<div class="raty" />' + "</br>"; $(side_bar_html).appendTo('#side_bar').filter('.raty').raty({ score : place.ratin...
608400a8a6b6b8f6eb300fb13f82b7bcec96ce01bc50e58d764b1d11f5b7676f
['e9d20a3b81d5447baff7530b1e883702']
Here I have a function calculateDistance which must return me a distance between two places and time so I write: function calculateDistances(start,stop) { var service = new google.maps.DistanceMatrixService(); service.getDistanceMatrix( { origins: [start], destinations: [stop], travelMode: go...
292f491d96955e4174f52fa5be037ee32de019a67e9cd272787b6729de22ce36
['e9d6e84b0c314dadbb93b1e266d7b230']
I have a class: class Foo{ var x:Long = 10 set(value) {if( value < 0 ) throw IllegalArgumentException("error"); field=value} } Is it possible to validate these values in a more elegant way? For example - I want something like this: class Foo( @Positive var x: Long) { } Is it possible? I want it to be lightweigh...
50f5bbee13e8802f4ce0057c004184ca38f8ee5a7811a37c1d0c32f8e16affdc
['e9d6e84b0c314dadbb93b1e266d7b230']
I have an entity with named query. @Entity(name = "MyEntity") @Table(name = "mytable") //@ReadOnly @NamedQueries({ @NamedQuery( name = "exampleFind", query = "[..]", hints = {@QueryHint(name= QueryHints.QUERY_RESULTS_CACHE, value= "TRUE")}) }) @Cacheable @Cache(type = CacheType.FULL) public class My...
37aed01c3b1da329cd686a4028a63ef87299fcae55d1ec80a7f4520e0de61f6b
['e9d766734ba54aabb1cba075d1bc6f1d']
To Add a label to your gmail in other email accounts you own Open chrome Invoke gmail This will bring you to mobile browser Tap three dots in corner Select go incognito Invoke gmail again Sign in Clock 3 straight lines (top left) Scroll down and select desktop Add label as you would on computer
ca2820d52723e2d8ceb3c725aa3abcbab68c40c8eb0ba3316d9724ff25ac88f8
['e9d766734ba54aabb1cba075d1bc6f1d']
To Add a label to your gmail in other email accounts you own Open chrome Invoke gmail This will bring you to mobile browser Tap three dots in corner Select go incognito Invoke gmail again Sign in Clock 3 straight lines (top left) Scroll down and select desktop Add label as you would on computer
a925cba9f1e6cec500daa44958687cd5a04049e1120dbc215f524f3e6c55d813
['e9de581795df40ba89cdb4c0fa2f83cc']
I'm looking for how to quickly find where a class is instantiated in Eclipse. I know that you can use Search and look for new myClassName( in *java files. I'm looking for an option where right click somewhere in the class definition to find where it is instantiated in the project or a keyboard shortcut of some type.
46ad6bde143e07115a3398c9aab9783e34f2c6e46a7fcc0d950a0ada15957888
['e9de581795df40ba89cdb4c0fa2f83cc']
I've looked through documentation that says the oplog is a stored collection on the local db. When I attempt to show collections after use local, I receive the error "can't use 'local' database through mongos. Error code: 13644. This seems to be related to having sharding. I am attempting to look at the oplog to see wh...
690912f68ca83cd051798a10c8f8e99506e58d00122ebbb429d180b7e42e9d77
['e9deb96d7c204c909370dfd5cad703dc']
I have a view controller within my app that I use for debugging purposes to display some of the internals of the app (only for local xcode builds, the app store version doesn't have this controller). In this controller, I have a label which I want to reflect the state of an internal component (specifically, I want it t...
8ab9b875fb65c6609d87dea83d3e7b446645ff20debbb4f314964f8f9e3ab7ef
['e9deb96d7c204c909370dfd5cad703dc']
I'm trying to set up a typescript-based express app workflow using Visual Studio Code & gulp. Heres my project structure: src/ <-- souce files Start.ts Server.ts models/ Contact.ts Organization.ts bin/ <-- compiled output Start.js Start.js.map ... tsconfig.json gulpfile.json package.json .vscode/...
f415d8b1b997133f5151812fe240db0a5d10402bacff9ca6c3a084c03723017d
['ea03ba0406794175b943105f47f386c3']
I'm following the MYSQL Essential Training on Lynda .when trying to Upload the Exercise Files on SQL for the "album-mysql"; I received an error on my phpmyadmin. I have following the instructions by selecting the UTF-8 from the character set of file.Error is showing below SELECT MAX(version) FROM `phpmyadmin`.`pma_tra...
69dd2cfd14821a2403abbda5988f6dd4a41aaf9cfb7607f87de1f17e91481e4e
['ea03ba0406794175b943105f47f386c3']
I have already installed Python 3.1.2 on my window 7(64bit) .However when I checked if its successfully installed using this command : python --versionI still got an error as "python" is not recognized..". Then I using the command setx PATH "C:\Python 31", error message shown setx is not recognized.." I have checked t...
2327053593cd70188082b905d2ca892c4c4614bfa20e93411b86248f23a0ecb5
['ea072b9ef6774545a51a3ef3cba41408']
I need to know if i create a web service using wso2 data service , 1 )can we create a web service sending parameters to web service and get output? Because i heard that wso2 data servide web services doesn't take any parameters. 2)we can perform only select operations. is it true ?
5ba2a782ea0549e9e6cac9dcf04974def858f82bb2d47a13a5cacb9f3136f4bd
['ea072b9ef6774545a51a3ef3cba41408']
I have view pager in my application.i need to show pdf files on each fragment in view pager.is there way to get a pdf view from mupdf ? normally we call mupdf as below <PERSON> = Uri.parse("path to pdf file"); Intent intent = new Intent(context, MuPDFActivity.class); intent.setAction(Intent.ACTION_VIEW); intent.setData...
89e07a3c5d3ec9c3e48572d5e5b4d582d7b6315ed864582c41f0c0dd77926a6d
['ea16c1b2e30c451593a9248eb06365a7']
Another way to do it: Expose the service on $rootScope: $rootScope.service = service; and then in a template: <p>Hello {{service.getUsername();}}</p> You can do this on app.run, and you will get the service in all the views of your app. You could use this method for Authentication services.
30049f584c2bcd9976e2fc4d88d6f6277e55e11a41210e4007b91ffe640b2f93
['ea16c1b2e30c451593a9248eb06365a7']
I'm sure that this problem could happen and I fix it deleting the content of the Derived data folder of XCode. I just want to add the steps of how to delete those files: Don't Delete the DerivedData folder. Go to preferences (Command ,) > Locations Tab On Derived Data you are going to see the path, clic the right poin...
e27aaab385ba9bed7d14b24d059bc5037c831a928972980e2e0f45ab66dd2064
['ea19f0a9b727453ca81d8afa5dfdc3ca']
Problem1:When i click login button i can log in,give status.but when i press logout button it does not logout.So,how will i logout from facebook? Problem2:I got a string str.I want to pass it in facebook's textfield (like we send messages by intent).How will i do that. main class: ` public class MainActivit...
4097518c94082438a5d43c11645ec2ce3f3733e6fce2720da841c5c3d125711e
['ea19f0a9b727453ca81d8afa5dfdc3ca']
In my old emulator the program runs easily without any problem.So i thought the program is fine.But when i try it with new emulator/or other emulators it also runs.The problem starts when i click search button.when i click,program unexpectedly closed.Logcat says illegalstateexception and caused by: no such column as_id...
343dc56a1190edcba42201992447d664ee9684baaaa064738bd509aeca1b0a9c
['ea20e0acb30f4c61aa9b3e6da986192c']
I modified an Ansible play-book, and from git status I can clearly see the modified data/files. Now when I run the play-book, the changes do not come into effect even after the play-book has run completely. I tried renaming the playbook file, and even removing the play-book file form the directory, still the play-book ...
5ab90eddf0c2d200552f2082fda16bd7fbf91f8c62cd76887ae9e51034cc4823
['ea20e0acb30f4c61aa9b3e6da986192c']
Got it, I had multiple path entries in the ansible.cfg for roles_path parameter. Co-incidentally, for each path specified in the roles_path parameter, the repository also existed and as per design Ansible used the first match. Hence every time I made changes in my repository, still the data would come from the other re...
4fd4e0fa706b9eddc668efcd6539b8ed36c644480c138a4dbcff98ac50d9dca6
['ea31b1dfa5b74458ab3386ab56177a14']
What webframework/language are you using? If you use RoR or Sinatra or any other rake-based framework you can use heroku.com. If your using asp.net you can use appharbor.com, finally if your using php you can use phpfog.com. What these hostingproviders have in common is that you deploy the website by pushing your code ...
e4eb1ce2f068383cb5a484f1a61c6edddcba9255e5d7509b3d5d10b9016ed17f
['ea31b1dfa5b74458ab3386ab56177a14']
<PERSON> is right, the Split method on String your trying to use doesn't exist, it's only available for char arrays with no secondary argument. You have to resort to this version: http://msdn.microsoft.com/en-us/library/tabh47cf.aspx. Also you have to use parentheses around your arguments when calling none-f# .NET apis...
ed322d5e8037b0a9a3908cc071758d1edce270a4383b109721efbcbcdc3395c3
['ea3ad8c9cc5b4903a0ac315701ac6be2']
@rene That would make sense, indeed. On the other hand, having a comprehensive list of filtered expressions would not really do any harm because it is already easy to avoid the filtering, as shown in some of the links (replacing characters, using "issue" instead, etc.). Furthermore, I'm not only interested in the filte...
005c9d645074d4276987e815749d8f8cfa00a88fefbaff07a9c3f58ea83efd07
['ea3ad8c9cc5b4903a0ac315701ac6be2']
I wrote one to request moderator intervention because I can't do much more than that with my rep. (The question was http://stackoverflow.com/questions/3923471/good-literature-on-unit-testing and I flagged it because it's just another question asking for literature, but neither spam nor inappropriate.)
d9c4a6c38c2982a05328afddfbb53a24aaaebc7df6dad46eb0432add3008778f
['ea479118c9214c68b9750faf0df737cd']
How can I get a file count given a directory grouped by file type? The output might look something like .txt: 4 .png: 16 .jpg: 32 This probably isn't difficult to achieve with a script, but is there functionality like this built into any of Windows's command line tools?
e284d0e046de4271c75c52fe2de4a9f0e89559723d51f4f47dc8a2cfe1e5353c
['ea479118c9214c68b9750faf0df737cd']
How do I get the width and height of a window? Let's say I, an end user, open Chrome in a window, and then resize it. How can I, an end user, find out how large the window is now? Chrome is just an example; I am looking for how to do this with any application in a window.
de5d3172e39bb372ea165a55b6ef532ffd2133775f9aac0efc222ce03d4c56c2
['ea517663e03042a79be431dfb37be22d']
I have installed Black&White free template from http://templatesforjoomla.eu/free-joomla-1.5-templates/blackandwhite-free-joomla-1.5-template.html I really like this template and want to use it but I found a problem. It is not properly displayed on IE8 (it is said to work on IE7+). These are my problems that you also ...
26f2ed3ab392af7eba77811817c3664707d0ded1cf0b9a624a2bd1aec2dac6bb
['ea517663e03042a79be431dfb37be22d']
I did some Google search but couldn't find what I was looking for. I start multiple async downloads at the same time and I want to check which file is downloaded. How can I achieve this? Private Sub client_DownloadCompleted(ByVal sender As Object, ByVal e As System.ComponentModel.AsyncCompletedEventArgs) MsgBox("D...
c583aea71fb6e44b820474aeaac6d0a7e8ce5c9339435a064409955b954193f3
['ea6b0dd666cb43029dc184125a43fd47']
I created a simple mbed project and exported it as makefile project. From that point, I developed my application. Whenever I need something from mbed, i just include mbed.h file, and I have access to all nice objects like digitalOut, Timeout, etc. When I wanted to create a test for a module, I realized, that #include ...
8d6563cfcfdd5aa003a8cf55d3d51efc829e298cab0497007d9895895a5ce6c6
['ea6b0dd666cb43029dc184125a43fd47']
I was wandering, why there are no implementations of the devices written in CMSIS-Driver? I mean that I have few peripherals: LCD, temperature and pressure sensor, current meter etc. - all of them very popular used in arduino and learning sets. Each of these devices uses some protocol to communicate with the uC. some ...
8b97c09a1da68df38137245e3a7d7a7603931ade6cc93e012cb73212bf0c3a15
['ea7109c0ca8e4f878605602ef2b4185e']
The following should be something well?-known, but i haven't seen it anywhere, neither have i met any references about. Let $M^{n}$ be a $n$-dimensional oriented closed manifold with a (sufficiently small) triangulation $\tau$. We "colour" the vertices of $\tau$ with $n+2$ colors: $v^{o}\rightarrow w(v^{o})\in$ {$1,2,....
e0b918bb6eb2cf45ffecafe34f0dc2773115bc1d7137741ad8033936a8d7dff7
['ea7109c0ca8e4f878605602ef2b4185e']
thanks <PERSON> for the help. i really don't worry about the NEXT TRAVEL, i"m worried about this one, i traveled with both passport to the US before but it was always on the same name. the dillema was is the ticket should be on the israeli name or the german one, (and again, it's only the last name that's differant, th...
fb319841ae2370b7dda233d7eebf04ace0c6d227acb6660822d55ef0c7248eb3
['ea798abef725473bac3c2bfdac9fdc4e']
I ordered the cheapest model from Aftershokz. It came today, and I'm reasonably pleased with the indoor testing so far. One odd note: it can pair to two devices, but only play audio from one at a time. Head comfort also fine, but I've only gone two hours at a time.
e81582e4b31cf8848db95531ac6152704fccff3b98a7ed6e1b15d50785534324
['ea798abef725473bac3c2bfdac9fdc4e']
Interview with Screewriter <PERSON>: Batman Hush Uses Red Herrings To Fake Out Fans - SDCC 2019 The reason is two-fold: Time constraints of condensing a 12-part mini-series into 70 minutes Faking Out the audience to keep a familiar story fresh The original story had a lot of red-herrings. Going with one of them as t...
5ae454e597445b8a0d5a649d7f332e7dced5dc02b0e6a41d0921bc9e73b2060f
['ea9ff4cd4b2a477db2074f7957e8e91a']
This should work in your specific case: import pyspark.sql.functions as F df = df.withColumn( "arr", F.split(F.col("Name"), " ") ) df = ( df .withColumn('FirstName', F.arr.getItem(0)) .withColumn('MiddleName', F.arr.getItem(1)) .withColumn('LastName', F.arr.getItem(2)) ) If you want to include th...
843c2a0a37e0632e46a9634948c386b3a45351e4c6055525844159d110d3e220
['ea9ff4cd4b2a477db2074f7957e8e91a']
It is possible to have FPR = 1 with TPR = 1 if your prediction is always positive no matter what your inputs are. TPR = 1 means we predict correctly all the positives. FPR = 1 is equivalent to predicting always positively when the condition is negative. As a reminder: FPR = 1 - TNR = [False Positives] / [Negatives] TP...
40bc22f1acbcb20b71aee3d9ec9009653b97da63339de2fdc48836056e4e5e62
['eaa47b8604f241a788743e3e6d04a710']
I have a subscription form that contains a matrix of options. The form can be seen in screenshot Subscription table I am having trouble with ASP.NET MVC generating appropriate ID's and then on postback having the binder populate the model with the form selections. The add on name is down the left side and when posted b...
eb59dda916cbdeb676b37fbd17ae8bea30d1e1dad69b7d0373b4858f30035288
['eaa47b8604f241a788743e3e6d04a710']
Found solution, not very easy to find in documentation. Needed to created a WhereCondition and pass that as where in query. var localityWhereCondition = new WhereCondition().WhereLike("Suburb", locationLike) .Or() .WhereLike("Postcode", locationLike) .Or() .Wh...
5374c2ef7772ff8473caa3008b656149e0d4d19a10bbb7952370588966f70be6
['eaaefff95eff4659b0e0a27ef1c20391']
Ok well I fixed one problem and found a work around for another. To fix the USBs I used the clear CMOS button on my motherboard. That was literally the only thing that would work. As for the slow startup, unplugging the power cable for 5 minutes, plugging it back in and booting up fixed it. It now passes the motherboar...
484ec163750f511ed3268c6cf41e50a4bcbdbd75c93b5630a1ad732f99b70da5
['eaaefff95eff4659b0e0a27ef1c20391']
I am a first day ubuntu user. I really want to like it but I have had major issues. Right after installing I realize my RAT 7 mouse was not fully compatible and out took me 2 days to fix it. In doing so, 4/6 USB drives stopped working, and during startup I get stuck on the mobo splash screen for a long time before the ...
a6d6268e805be6e767a8dee8f57b2cf7eadedf40963432b7396059c0d470b0f5
['eabf4102450e483981a56875ab51e42f']
Learning programming and trying to understand this example. Given multiple independent events, each with a probability of occurring, what is the probability of just one event occurring? If we have 2 cases I can understand it this way: P(exactly one event occurs) = P(a and not b) + P(not a and b) Calculated as: (Pa...
b839cc6d413614a657f69711615b9aea64e7956fcb821d7629326f4d37007426
['eabf4102450e483981a56875ab51e42f']
I have installed Ubuntu 13.04 on a Lenovo T430s. I connected an external monitor via the VGA port (Samsung SyncMaster 2443). When I go to the Display settings, the monitor appears as "unknown", and the maximum resolution is 1024 x 768. (The maximum resolution is 1920 x 1200 on Windows 7.) I tried turning Optimus mode o...
d5304a0bb8596d9cf869699600e531f7e7ccc2395640fde04cfd330a08d0345e
['eac7a0afa87d41ac8737bece6b2e2932']
I've been going crazy over this and I think the answer is probably out there but I don't know the right way to ask Google the question. Essentially I need a way to make a $resource call, and pass in some data that I want to then use in the success function. app.controller('VariantListController', ['djResource', functi...
c6a2323cd4c60570eaffa23b0c707d3d9b2c5007f328c55f69e0587a5a1506c1
['eac7a0afa87d41ac8737bece6b2e2932']
For the sake of reusable code, I am trying to avoid having to hardcode literally thousands of complex objects by instead using strings like "foo.bar.sub" to access properties. Now I have quickly worked out a naive algorithm for getting the value of a property, like so: getValueForPath : function(path) { var pathArr...
c933dab30a2e508ed5a7ae163ee8b9c9654f7a395a9653dc643987fa44439a0f
['eac8a3ded122419ab34092659839deb8']
I am using readxl and lapply to import multiple .xlsx files into my environment. The following worked perfectly before but now when I try to re-run it, it gives me the following error: Error in read_fun(path = path, sheet = sheet, limits = limits, shim = shim, : Evaluation error: zip file 'data.xlsx' cannot be opene...
4e85244d85275e928453201f0ec4d3787602994b4b4baf5a0745492839063e50
['eac8a3ded122419ab34092659839deb8']
I am trying to merge multiple rows from a dataset into one. I would like to fill the NA's where data is available but also keep the various entries when multiple entries are available. The data has the following structure: data.frame(ID = c(1,2,3,4), D_1=c("data1",NA,NA,"data1"), D_2= c(NA,"data2",NA,NA), D_3 = c("dat...
2b501fbdf7094753ab9d8a061bf25da8669f645b5121ae1a0aba8af44ea53b55
['eacbc5f4beb2468e85d89cf2fa17f065']
I want to do a defragment operation on my drive but I want it to be outside windows. This way, there will be no conflicts between files in-use and other issues. Is a defragment operation the same thing as copying files from a drive to another, formatting that drive and re-copy those files back? What about overhead and ...
2d1cf8a264edcd003778970eeedfbb22b10e3a0206077a90de40d363ecb9fb59
['eacbc5f4beb2468e85d89cf2fa17f065']
Try this: Open regedit.exe and navigate to: HKEY_CURRENT_USER\Software\Microsoft\Command Processor Add two REG_DWORD values if they do not exist: CompletionChar and PathCompletionChar. Edit their values to "9" (sans-quotes) and restart the computer. After reboot, try to use the TAB key to autocomplete. Other than ...
3188a6312cf066d36a7928c2b75d279da8a3959fbe61192a1fc256a0f7e580c1
['eada9f8111c448328c768237d1dac85d']
I think I'm getting confused with terminology. I have a site www.domain.com. Full of content and fully indexed by Google. I now want to run an ftp site on the same server. It is already setup and working great. If someone ftp's to www.domain.com it works great. Now I just want to change it so that users type in ftp.dom...
4ae6d56ddefa0b60cad47e9c913b72c4956ece62503061b7e4ea9b1639e8b4c7
['eada9f8111c448328c768237d1dac85d']
This is driving me insane. There are many posts on this but nothing is working for me. I want to check if a file is not an avi or mpg then I want to exit. Here is a simple example: #!/bin/sh extension="avi" if [ $extension != "avi" ] || [ $extension != "mpg" ]; then echo "ERROR: File is not an avi or mpg" ...
96cd65ed4473a79457fee707a827bd393b1d3c9f4e2ab881c478d3ca514a3e2a
['eaddd2ad6b4a482d8d92e47915255ae6']
I'm trying to add an event to my calendar using the code below but I keep getting errors about needing to refresh the token. I wasted a lot of time this morning using the wrong version of the api and having problems with autoload but I seem to be getting closer to a working code. I don't code in php much so please forg...
ac5b20bed5892819a1f87558645a36776371d63a075ed3a6b21fb3e3696b72c8
['eaddd2ad6b4a482d8d92e47915255ae6']
I'm having problems sending email to yahoo.com email addresses, the mail I send from my php script works perfectly for every other domain i send it to apart from one of our users who insists on keeping her yahoo email. here are my headers $headers = array(); $headers[] = "MIME-Version: 1.0"; $headers[] = "Content-t...
e801e63a4f8b349cddf026c792a7686a12ec4e50f916bb5f7a9463ed7615a958
['eae0a420f74841bc96f3f34e8e7759a1']
I looked around for webview plugins that support video and the Unity 3D webview plugin for Android is the only one I could find that does. I've been using it for a while now and would recommend it. Here's an example of using it: using UnityEngine; using Vuplex.WebView; class SceneController : MonoBehaviour { // I...
71d863cae48e4c04a54eb7d5775b400d54ae47e0f7029a02d3b74ee0c4bc1887
['eae0a420f74841bc96f3f34e8e7759a1']
Yes, this is possible. If you set the Target API to "Automatic (highest installed)", Unity will use the highest version of the Android SDK that it detects on your system. For example, when I build using that setting in Unity 5.6, it uses API Level 28, since that is the highest version of the Android SDK that I have ins...
3521ba69e4384e279d09b9d447fc22fed932f96f3836b840f15d6ce5af1048a6
['eaf05e28a34b438b87d91315b63f0ca1']
A simple workaround is to pass in the timestamp pre-formatted. At least for ISO timestamps, you can pass date.toISOString() as a separate parameter to the message. var IntlMessageFormat = require('intl-messageformat'); // no matter, which NPM package to use var icu_string = 'Hello, {username}, it is {ts, date} (ISO-tim...
3037dca8b0a40ac644965de3cdc6cf6c5be86f530247379fa3743d4440473daa
['eaf05e28a34b438b87d91315b63f0ca1']
The select argument type is an exact string match. You would need to make sure that you are passing a string argument value, and then have clauses that match. Avoid using plurals for exact case matching, since each locale has its own rules for what one means. The following should give you what you want, but I know much...
eb6bd881cb7f201c6260685292c0400b3a924f0523d7814f95c26f898a85504b
['eaf35375f473456c8cb916b7996a2e68']
Here is the Nginx setup I use for Laravel sites. server { listen 80; listen [<IP_ADDRESS>]:80 ipv6only=on; server_name SITE_URL; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; rewrite_log on; access_log on; root WEB_ROOT; index index...
0f7a64479804ace186e65fb63a8fb27418d5309d53d37ca1c4bcaa40a69dc2c5
['eaf35375f473456c8cb916b7996a2e68']
This is my simple solution. Place this code in the renderView function (around line 368 in version 1.5.4)) before ignoreWindowResize--; near the end of the function. var lammCurrentDate = new Date(); var lammMinDate = new Date( lammCurrentDate.getFullYear(), lammCurrentDate.getMonth(), 1, 0, 0, 0, 0); if (currentView.s...
7b4040b0eb3b99855e06507a24f3eb1d08de6ec35be8373eac3591e754ecb99f
['eaf9b16edbff4aef9548b1e5612d6d33']
It's a matter of roles and responsibilities. In the first approach that Role takes on the responsibility of adding a message to the conversationList, but it should really be the responsibility of the Conversation objects. In the second approach you delegate that responsibility to the Conversation object. You tell the C...
6adb2456fcceeb3763641465268ae1a33b9b546b69d90f09e2b7fca82f2c356e
['eaf9b16edbff4aef9548b1e5612d6d33']
Make sure none of the App init calls generates any exceptions. Then try if this helps: $(function () { App.init(); App.initNavMenu(); //Tabs App.InitCustomTabs(); App.initMarqueeBrands(); //set equal height of two div's var leftbar = $(".pg-left-bar :first").height() - 20; var rightbar...
0f2b67f1015c9df8c3dc69542530840878d2a6c5f947b266991031b733b20939
['eaff9d243451444dace73d2dd3ed362c']
In order to get back to English, I had to change my locale in 3 places: /etc/default/locale by running this command: $ sudo update-locale LANG=en_US.UTF-8 LANGUAGE= LC_MESSAGES= LC_COLLATE= LC_CTYPE= ~/.config/plasma-localerc and ~/.config/plasma-locale-settings.sh By going to my KDE settings / Regional Settings / La...
ca279254aeffed959c0dafdd25260674a0cb9d46ec3948705b57d14c17816ef6
['eaff9d243451444dace73d2dd3ed362c']
One day seems reasonable, but if you get bored easily, you can spend only half a day. It is very beautiful in Keukenhof, and not too crowded to enjoy the view. No, the line was not too long when we visited. One day seems a bit of a stretch though, depending on what time you want to get there. 3/4 is more like it, but...
bf3d0a4472d0ac25b25e5571279b600b8c5bb0bce1a42163477004c3daf9fe89
['eaffd063e5664365932fffce6539d52c']
I use this code for Android give it a try :(it resize the page size ) import flash.display.MovieClip; import flash.media.StageWebView; import flash.geom.Rectangle; import flash.events.Event; import flash.utils.Timer; import flash.events.TimerEvent; import flash.system.Capabilities; this.visible = false ; var webView:...
82d68d77c8035f4f26e3bb6ab4bd169b83d1cf7d774282a4049462d4f6c0df59
['eaffd063e5664365932fffce6539d52c']
Try this import flash.utils.Timer; import flash.events.TimerEvent; var degree: Number = 90; var degChange: Number = 1; var circleR: Number = 100; var circleX: Number = 100; var circleY: Number = 100; var angleR: Number = circleR / 4; var spBoard: Sprite = new Sprite(); spBoard.x = circleX; spBoard.y = circleY;...
05e8953c2d0a8ddf3f99d47b9ea68103c75a041591e20c1c9f6251809d03acf8
['eb0132d22975436b87f633e42b559551']
I have been trying to figure out a way to pause my audio with a button (very simple, just on click backgroundMusic.stop()) but it doesn't pause. With the code below the idea is that it runs from the opening of the app but when I load the scene again it won't play on top of the previous track. All the code below is doin...
b3d99c7d8622ac7875a203c48cb6e6f82bba292f90a04e44b99580b4df7b9eea
['eb0132d22975436b87f633e42b559551']
You may want to try this to get a view's frame during an animation: let currentFrame = myView.layer.presentation()!.frame That will get you the frame at the time the code runs so if you wanted a record of the frames throughout the animation you may want to use a Timer (previously NSTimer). In this example the optiona...
d512c64c614add8727a85d3fd92b7b70bd343d6d46e804a62f59d52b43ec009d
['eb0281eaa3274e78ba80c8034ec5187f']
Here is the best solution for you. You can use Hooks Step1: application/config/config.php $config['enable_hooks'] = TRUE;//enable hook Step2: application/config/hooks.php $is_logged_in= array(); $is_logged_in['class'] = ''; $is_logged_in['function'] = 'is_logged_in';//which function will be executed ...
5e3ee0b93df01c44aee024a1f08fe83461dd1fff1bd1b261b6a46a562a4c518e
['eb0281eaa3274e78ba80c8034ec5187f']
the function $this->load->view() will output a HTML header. so u cannot output header twice. the correct way is controller file public function admin($page = "admin") { $data['title'] = "admin"; $data['menu'] = "admin"; $this->load->view('admin/index'.$page,$data); } view file ...
c347993b820e9d8aeac1ab8aba6bad6a531f9ac0b3240a71edbf45a965a5bd90
['eb1ce4d98f3a4aa19eeced564d72ec88']
Am trying to run react native using react-native run-android but I get the above error. I was having issues getting my detached expo to run on android emulator and I keep getting this error Error running app. Have you installed the app already using Android Studio? Since you are detached you must build manually. Erro...
bb56475dc2de0c54c05296045343a1ab25ac29b986074d74e4832a554e505e84
['eb1ce4d98f3a4aa19eeced564d72ec88']
For the last 24 hours I have been trying to get my expo client to build JavaScript on my device. I have been using expo for some weeks now. And thou it may be difficult to get it running I some how manage to use it for some hours. Usually I can easily connect using tunnel. Recently I was able to 'trick it' to work wi...
64491ba1425724399114c768670b50d92849aa8e07d56ed186787f2d797eef2d
['eb2eb17f887448c7b73cd67bea21ebcb']
I have successfully created a ternary plot with the following code: data <- read.csv(file, header=TRUE) ternaryplot(data[,3:5], scale = 100, pch = 19, cex = 0.4, col = Category, dimnames = c("Al", "Mg", "Fe + Ti"), labels = c("outside"), main = "") However, I am struggling to create a legend for it. A...
805c6928229d9128d4afb3ac5528a3b9c1854e4c743c5e3fa7d3a1e8c9e60773
['eb2eb17f887448c7b73cd67bea21ebcb']
I am new to using the ggplot2 package and am unfortunately having trouble with the basics. My data set is in a csv comma delimited file which has been working in R using plot functions but doesn't seem to be working in ggplot2. My csv file looks as follows: Depth Min Max Average Mode 34 2 38 5.64 2 44 2 2...
4884c64b9ffc27b60451e8c948a54a921998343c08a019764d757a187b208d1f
['eb36bf2ffaa442bf8f51929cdf44b606']
Actually only mechanical waves need a medium to propagate. Examples of mechanical waves are waves in water and sound waves. Mechanical waves are caused by a disturbance or vibration in matter, whether solid, gas, liquid, or plasma. Medium is the matter the waves are traveling through. The Electromagnetic waves are comp...
b40706b446b4328fa567244c53c7d7911c15e78082f8f3192cc3c5eeed2e86a4
['eb36bf2ffaa442bf8f51929cdf44b606']
Do the charges on the one side stop the effects of the electric field of the charges on the other sides of the surface? Actually, if the charge density is uniform, we consider the whole charge concentrated in the center of the sphere, in such a way that all the outward field lines were created by a single electric ch...
9427232d616b2813a9968f8ed9f762c24965858ce591b0bad7eb8fdd62f59302
['eb3c180238fa400cb0a0c6e6aafb3a36']
I would suggest you to reload the tableView in a completionBlock rather than the way you are calling Swift 3 let say you are getting data through NSURLsession func getDataFromJson(url: String, parameter: String, completion: @escaping (_ success: [String : AnyObject]) -> Void) { //@escaping...If a closure is passed as ...
e4b2a453931ed476f65a767c3328ebfa7bda18f7ec3cfcbfabb54723d10d2734
['eb3c180238fa400cb0a0c6e6aafb3a36']
I would suggest a generic solution related to solve similar problems detecting different launch Options (How our App is in Active state (Running)) Swift 2.3 In AppDelegate func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { if let options = launc...
7716ea16766135699f7e0dd95c5fcacf52e4d1dff1c5e49aa78f5cf17f7bbbd2
['eb3c19845b5a4bf7a10f86391f1f8dac']
It's not possible to do animate height and width to auto. So this is <PERSON> method to allow that to work. See the changes that i made in your file. Basically you need to create the method animateAuto and call it when you need to animate. JQUERY jQuery.fn.animateAuto = function(prop, speed, callback){ var elem, hei...
ebaf5a3b64e84980aff2b537fe9ebbedbc271c7d76d0fb75aa8f3cd59628d9d8
['eb3c19845b5a4bf7a10f86391f1f8dac']
You can use: $.each(this.fooArray, $.proxy(function(i) { alert(this.fooText); }, this)); or if you're using backbone with underscore you could do: $.each(this.fooArray, _.bind(function(i) { alert(this.fooText); }, this)); or natively(but don't work in all browsers): $.each...
911ce88a9d00cee18ab1bf1760105d71be4dd8175de7b39d276228fc67506dac
['eb41f573b8cf451a9b1ae027738b16e5']
¿Estas usando un SO Unix? Segun parece para ciertas distribuciones los nombres de las tablas distinguen mayusculas de minusculas en MySql, y tu SELECT lo haces a 'Piezas' mientras que tu UPDATE lo estas haciendo a 'piezas' En el siguiente enlace puedes verlo: https://stackoverflow.com/questions/6134006/are-table-names-...
f073eabd45bb815cc104e6e5aaeefcb362839eaa3a75391e5267f9fa8a2439a9
['eb41f573b8cf451a9b1ae027738b16e5']
Actually djb2 is zero sensitive, as most such simple hash functions, so you can easily break such hashes. It has a bad bias too many collisions and a bad distribution, it breaks on most smhasher quality tests: See https://github.com/rurban/smhasher/blob/master/doc/bernstein His cdb database uses it, but I wouldn't us...
0a6548b91b9ab7666fca41222368fbbfde5b8b9052c0afd9386f7238114ed8e9
['eb5b4601af79488f9cd4e8e77563e42c']
Make sure you've added these permissions to your android manifest. <uses-permission android:name="android.permission.BLUETOOTH" /> <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> and make sure you're requesting ACCESS_CO...
96661b2e389fe361a4b3291153e5d67543e825f97d8010878bdecee1c2c2a7f3
['eb5b4601af79488f9cd4e8e77563e42c']
Logged in as Test User to post to group in app while in development mode, but failed. According to this bug report https://developers.facebook.com/support/bugs/374244166706163/ It works only when I'm an admin of both the app and group. To request Groups API permission in App review section, I have to reproduce my appli...
345b7eaff212bb86616ef3b7fba051ea47c3eb73545ed9c611fb4fde70adf6aa
['eb5d96177d6447cda632eda70a42094e']
Нужна формула для проверки вхождения точки на карте в полигон в форме правильного шестиугольника. Центр имеет широту и долготу, каждая точка шестиугольника также имеет широту долготу. Длина сторон 200 метров. Стороны шестиугольника для примера. Сторона a [ aX, aY ], [ bX, bY ] - это первая верхняя сторона шестиугольни...
bfad56d89f3a2bb645705594427caeea5b0682e83eef7616c794a8008160105f
['eb5d96177d6447cda632eda70a42094e']
If we let $f_n(x)=\frac{x^2+nx}{n}$ for $x\in R$. I am trying to show that we can make $f_n$ converge uniformly on the interval $[R,-R]$ For any fixed $R\in(0,\infty)$ One way to show uniform convergence is using the M-test. So I need to find a series M such that $\sum f_n<=M$ and then if the series $\sum M$ converges ...
fc7c4697826286bfd4b5f5ada80750e692745a452b4fb1677bc472980e5bb915
['eb6192fc44af4234b643160690018af2']
You can add Jackson to your classpath or add dependencies to maven and Spring Mvc convert your list to json. You only need add parameter to @RequestMapping produces="application/json", in your case it look @RequestMapping(value="getMessages", method=RequestMethod.GET, produces="application/json"), also parameter produc...
6ec67a58bb083de986c409bf220e3fe3b1dcbdedd5f2a9f1ca6123458adcabf0
['eb6192fc44af4234b643160690018af2']
I think it can be used for init resources or fields servlet, because servlet init which caused only at a time when the servlet is loaded and unloaded ( this rarely happens ). It add some independence in your code from values parameters and you can change your parameter with out changes in code also if you override ini...
17672ffcd8e3c504a0689932b4a88183cdc86799e14b8486928acfa4aaf15930
['eb717eec007844abb1dfea778bda0f29']
So I have a Gitlab and a Gitlab-CI server running on separate machines. I am trying to authorize CI as an application via OAuth, but when I hit the Authorize button, I get a 502 error. I've confirmed that I'm using the correct app ID and secret for the application I've created for the CI server in Gitlab, and unfortuna...
6ee8d2027476192cccbb6fb3a108563c7473813bbf755ce1a875615dc8b874bc
['eb717eec007844abb1dfea778bda0f29']
I just upgraded my Gitlab Omnibus install from 7.3 to 7.9.1, and now rather than showing a login page, Gitlab just shows a 500 error page (see below) I also noticed the following in /var/log/gitlab/gitlab-rails/production.log Started GET "/" for <IP_ADDRESS> at 2015-03-31 13:36:56 -0400 Processing by DashboardControlle...
abe1fa65a0b96108401c7b75330227c004c4fcac7f1fff83c4984fb1744239ac
['eb9d8095ea7f434182f933850d785e88']
An easier way I've found is: Go to your DB > Configuration > Preview Features > Enable Per-document TTL Go to your collection in DB data explorer, Scale & Settings, and set the time you want the objects to live: You can specify the TTL for each object when you insert them in DB (this will override the collection TTL...
01829159bd575a8fb6e5d7117729be1791c0a2b293df9a3d248d9d31249d867d
['eb9d8095ea7f434182f933850d785e88']
Finally, I got it working, so here it is if someone needs a Google Cloud Function for deleting firebase data older than an hour ago (this is set by a key with the timestamp, look at my data model) and now you can schedule a crontab to run the HTTPS request every once in a while. 'use strict'; const functions = require...
1c888da9ed8a19ed9fea6fa0d610fd0a7a3e94dc5c205c25795e8afa2b6ae287
['ebab6f947bae4dc097a5bdd317c83450']
Is this what you mean? DECLARE @t TABLE (TransactionID INT) DECLARE @p TABLE (PostingType CHAR(1), TransactionID INT) INSERT INTO @t (TransactionID) VALUES (1), (2), (3) INSERT INTO @p (PostingType, TransactionID) VALUES ('A', 1), ('B', 1), ('A', 2), ('B', 3) SELECT t.TransactionID FROM @t t WHE...
244e5065f8a5e85836ab76560e6e16980763134604218d1a2156db1fb0d34405
['ebab6f947bae4dc097a5bdd317c83450']
As of this morning Custom Tabs are no longer displayed to guests (tested from Web App). Yesterday it was still working. I see that administration of teams has moved to a new admin panel, but I do not see a setting that reflects allowing guest users to access tabs. I've tried readding the Custom Tab but that does not wo...
af8d00362beaecd5a74dfa13c0fe5a033cfdaa393d1cc14e1d72fde87afccab2
['ebad909213d544019d9e9d05059004c8']
it's not advertising, it's from me tracking what my car is saying it's getting, as in I looked at was it was getting when it was using brand a and then what it was getting when it was filled with brand b, then calculated the difference and I did reset the tracker in the car in between fill ups.
4399bb39f6409f837efe8153666aa2b48bf74b4ecce146cc544a764db46d7350
['ebad909213d544019d9e9d05059004c8']
I was learning today about 8051 and I encountered a point which said microntroller generally costs less than a microprocessor. I didn't understood why is it so since microcontrollers have RAM, ROM, internal oscillators, ADC convertors, comparators and so on on a single chip but microprocessors dont. I also know that mi...
aca9b4b4153ee1a0b0014ad57f1919a6862306c6516b1b7c1e2b8fb7578db6c7
['ebadad7c2ee84ebd9b7e360099e860ed']
I think this issue is caused by an underlying process on the remote host. For a similar issue faced by me while connecting to remote host (running Debian OS) using mstsc program from my Windows 7, I used the following steps for resolution: Login to the remote host's terminal using putty Execute the following command o...
474cb5914068ee7a15fe76eff3f630f5fa77a35a3642f9d6e076f658909810e1
['ebadad7c2ee84ebd9b7e360099e860ed']
uhm, answering me again, the solution was actually quite trivial. it's not possible, as far as i know, to pass a parameter to the function my_excerpt_length() (unless you want to modify the core code of wordpress), but it is possible to use a global variable. so, you can add something like this to your functions.php fi...
79b44a6202f6070beb517c153f52636f9faeddd4566f94ecf9e8d1c3f5224465
['ebae33e192ea473f8508faf5fc5fc882']
I've been scratching my head over this for half the day now. I am trying to secure the application to prevent any URL tampering, so when i stick a very long sting into the form action's URL parameter, it gets trapped and handled locally just find. But, when i upload it to the server, i get the following error "The data...
5f34aee07af8760cb0970ff037977cf5e0c8b459bbd85f0ec645f35b5596cb2c
['ebae33e192ea473f8508faf5fc5fc882']
I am writing Tetris in JavaScript as practice, and i am somewhat confused by the array notation that i am using. Here's the array that i have that stores all my pieces. var pieces = [[[1,1], [1,1]], [[1,0], [1,0], [1,1]], [[0,1], ...
b930a86ad925693ebcdfa37c399a92769328d3d8935d53847a4a997b179ef1ba
['ebbf9832be1f459fb3b2fe465f227e6f']
I didn't find any documentation for the karma widget either, despite much googling around. It seems that you have looked into the script, but I'll nevertheless document some findings here. Looking in the k.js file that is generated you can see that you specify the sites to show in the widget by using the query paramete...
22f7166911633de1f90b0f5f061aeb2eb2b1703bdd89a8c988600fff8273554a
['ebbf9832be1f459fb3b2fe465f227e6f']
@Harry согласен, в таком случае имеется в виду что мы всегда можем повернуть их так, чтобы они были расположены слева и справа. То есть если друг под другом то надо найти левую и правую касательные, а не верхнюю и нижнюю. Друг в друге тоже не могут быть. Сейчас обновлю вопрос
459d5573abc7612e9638bfd94a4edd81e474d986c175f91cd588839db17db8aa
['ebc327d94b41465eaa37bdb591cd0395']
I have a page in which I enable, and make the button visible using JQuery. This is what I am using: //disable save until validated $("#btnSave").attr("disabled", true); Once the validation of a component is completed, I enable the save button: $("#btnSave").attr("disabled", false); Problem: It works find with Chrome,...
e94071ba8f93d96592c88dc3f6092ab771adeec4873708f8d175c640e2ee8d04
['ebc327d94b41465eaa37bdb591cd0395']
I am looking for a way to assign attributes to a class object after executing enumerate on html string. Basically, this is what I have: for j, td in enumerate(tr.select('td')): print(j, td.text) This outputs: 0 UNITY 1 Unity Foods Limited 2 13.29 3 13.82 4 0.53 5 3.99% 6 0.12% 7 1.81 8 12,472,000 9 163 10 7,519 ...
aa9fc71f184ac1578c31cca233d045fbd444e159688c5095a5c1a4d24220eb57
['ebcf5c2206e044b8b299e830fb575877']
I could access my raid and backup my files!! First I removed the spare device. Then I checked the other devices. There were two devices with bad sectors and I knew that the raid will crash again while resyncing when it wants to read or write to bad sectors. So I decided to clear the raid and build up a new degraded rai...
1e1428cda7ed640eea8fc6551ebf46071b787895781ce93d476bf36048cbffad
['ebcf5c2206e044b8b299e830fb575877']
I'd like to build a bar graph in excel. The thing i'm having issues with is the formatting of the labels on the datapoints. I'd like the labels to pull from 2 datasets. The bar would be drawn using the first data point say "66%" but i'd like the label to show the percent and the count, something like "66% (14)" Is this...
587a67164bf5b81b12ac79227dd9e1dae574d5038e57af0c57dfc63aa9eb54e5
['ebd15f6ad5b14b3685741fade2e2b750']
<?php try{ include("dbconnectie.php"); $query = $db->prepare("SELECT * FROM shop WHERE id_u = :id"); $query->bindParam("id", $_SESSION['id_u']); $query->execute(); $result = $query->fetchALL(PDO<IP_ADDRESS>FETCH_ASSOC); echo "<table>"; foreach($result as &...
754edded8a65444d471107e1d866ee7fa2ad59e67ec626c4048c312c8d87e648
['ebd15f6ad5b14b3685741fade2e2b750']
<?php session_start(); include ("dbconnectie.php"); if(isset($_SESSION['on'])) { header("location:homepage.php"); } if(isset($_POST['login'])) { $username = $_POST['username']; $password = sha1($_POST['password']); $query = $db->prepare("SELECT * FROM account WHERE username...
cb332a01e647c8a90ca3d9bb9ced92e4e7a0c94ab38f09dcf109d690c1ec35a2
['ebd8e3bbb82b49e6a1468105f5af9180']
Problem Statement: Currently we are using AD B2C Reset Password Flow for User Registration and Forgot Password in our application using custom policies and custom html templates. We are also applying custom CSS and JavaScript. We want to simplify user registration process using AD B2C custom policies Actual Requirement...
4375d0f253e0fc04c9f7cb588e6f21e1169b6a32d776bb6c2495c07f1c50afc4
['ebd8e3bbb82b49e6a1468105f5af9180']
I am an engineer from the Azure B2C support team and I have a customer with the following concern: Is it possible to use an office phone with phone extension on the MFA settings for either user flow or custom policy? Is this something we can modify? All I get is how to enable and disable it. Thanks in advance.
e636b03e57a630cefb9bcaa3ccf9d64146905ea44297f9b00662d3165e9a578a
['ebe8eca8126d4f319f7b6b086d618a78']
I have problem with reopen dynamiccaly created fancybox. Firstly i invoke AJAX request and get informations about images. Next i create and preload images in jQuery and after success preload i create instance of fancybox. I close fancybox and when i try to reopen this with the same action, its open for little moment [0...
024655d314d0f106395174c7c49e8158fad7970b9955097822f7bea6e8ab41a9
['ebe8eca8126d4f319f7b6b086d618a78']
I need to pass to iframe url, that require basic auth. Method http://username:<EMAIL_ADDRESS> is deprecated and workd on Google Chrome, but not on IE. I tried method with reversed proxy, but in this case i need to use original url (relative paths). Url is to external website which has not configured CORS. Is any soluti...
f20be19f432f17751795111638c65a7298c19f1c0de8f3720ce868f818d08a4b
['ebf89906b1b54ec099b6ca14b643815b']
When I run my query, it prints multiple execution times instead of just one. I only want one so what should I use instead of SET STATISTICS? SET STATISTICS TIME ON DECLARE @firstNum INT, @secondNum INT, @thirdNum INT, @evenSum INT SET @firstNum = 1 SET @secondNum = 2 set @thirdNum = 2 SET @evenSum = 2 WHILE (@thirdNum ...
afe0faab22f1fbe0ced158498e90718f83f6730d7b105790c78e2baffd373dba
['ebf89906b1b54ec099b6ca14b643815b']
What I mean to ask is if I have to choose a random number of elements(say 3) without replacement from a set(for example {1,2,3,4,5,6,7}) with a probability distribution generated by running a pseudo random number generator number of times equal to the size of the set and normalized to summation of 1. Is this equivalent...
e87b192b6c31f80ad1703b45ce12bbc8dd00c93dbe778e046e329d9025ea661c
['ebff52d7936043b887ad738a287cdceb']
I'm new to opencv library and every time i try to compile This code #include "opencv2/core.hpp" #include "opencv2/highgui.hpp" #include "opencv2/imgcodecs.hpp" using namespace cv; using namespace std; int main() { Mat img; img = imread("lena.jpg"); imshow("Original Image", img); waitKey(); } I get This error undefined...
a185a5d7eaee92c724ec90b0411e70f9c6ead67093db119b3972218aeeeb6836
['ebff52d7936043b887ad738a287cdceb']
Since x and y are not initialized, and std<IP_ADDRESS>cin>> x >> y; has failed because it expects an int and got a char, the behavior is undefined. It highly depends on the compiler. Your code on other compilers may give 0 0 0 as an output since the compiler has initialized x and y for you. On other compilers may give ...
7e24fe41c390164461aa38e54ffc39f2fc4a590dcb7f52228d4dd685dfb60e5b
['ec008678365349659d78064cb3a81164']
I installed Ubuntu 16.04 LTS and chose the option to remove all and set an encrypted LVM(I have a backup of all my data). I have 1 SSD(/dev/sda) and 1 HDD(/dev/sdb). What the installer did: It set LVM for /dev/sda and that's all, it didn't touch /dev/sdb. What I try to do and can't find info about(there is info on what...
9a28651d9cbd8d962b569b55b058b6e16d3522187c4565f5c4c39250e692cc15
['ec008678365349659d78064cb3a81164']
I see your point. A security professional is less likely to roll his own, and if he does, he has a better chance of doing it right than an amateur. My question is more about the amateurs or the inexperienced, and it seems that if people are pointed towards established standards, maybe they'll get something out of it ap...
60e327606062bf4899d94f61c5b8e1a3be126e45311e24ff4cf17640c10a1e20
['ec015991e9f442e6adfdb314cc0b5dbc']
I just wanted to add to <PERSON>'s answer. Note that this is identical to his answer except that I changed copy(new_arr[i]) to copy(arr[i]), and new_arr.length to arr.length. function copy(arr){ var new_arr = arr.slice(0); for(var i = arr.length; i--;) if(new_arr[i] instanceof Array) new_arr[i] = copy(arr[i...
6f4554cc1451626ef9d598a0c91a664a5341c94881c34fdf179aa5c682e36617
['ec015991e9f442e6adfdb314cc0b5dbc']
Usually when I make a change in a source code file the server automatically updates. Though occasionally it does not, even if I reload the page, or even close the tab and load fresh from a new blank browser tab. I have to restart the server to finally see the change. I found this out upon changing a console.log message...
3a54b901a98b4042419ba275792aefeb201ea398d427fc4dfe4eedb6bc6d3d00
['ec25bb6aaf2844ed8e8849ee08bfc63a']
I have a list where the li images are floating left and arrange themselves in different numbers of rows depending on window size (using media queries and different img sizes). The vertical spacing between the elements is done by using a bottom margin. However, the list items that wind up on the bottom row don't need a ...
a844893afa06e8c8ad7fbe9ecdd45ecfea7bc00970d064b9ecdb751b0d7a5725
['ec25bb6aaf2844ed8e8849ee08bfc63a']
I'm working on a sales gallery where the user clicks on a image, and a popout box fades in front of the page. The box includes product details, order information, and a stylized exit button to close the box and return to the gallery. The user can also return to the gallery by clicking outside the box. However, when the...
b695f97d3bed59ba5d04446b730a28abf34c5c80312803c43c3ccde656b98852
['ec26c2a5c64f45a0b231dd352c2374d5']
Tested... And this will work, but please read below... CREATE TABLE Bank_Branchs( Branch_ID NUMBER(15) NOT NULL, Branch_Name VARCHAR2(15), Country VARCHAR2(35), City VARCHAR2(35), Phone VARCHAR2(15), Manager_ID NUMBER(7) NOT NULL, PRIMARY KEY (Branch_ID,Manager_ID) ); CREATE TABLE Department...
acbd7b337521e3ce0f605798b563aea0bc28f27d631a57d70f28223ca24755b5
['ec26c2a5c64f45a0b231dd352c2374d5']
Stumbled on this question looking for hints to counting edges with gonum/graph as well. I haven't found a ton of resources other than digging through the API docs. Think I found the right way to count edges for single nodes.. Maybe! for _, node := range graph.NodesOf(g.Nodes()) { toNodes := g.From(node.ID()) // ret...
329103c21c5b4a9c2af8f7aed266a82260c589625ac4ba47f9bad1149d0bf24e
['ec2e773eab1b4e959c08ce5ca1dc37c7']
Looking back at this question now, I'd say that C# extension methods completely destroy the need for utility classes. But not all languages have such an in-genius construct. You also have JavaScript, where you can just add a new function right to the existing object. But I'm not sure there really is an elegant way to ...
3adf7b7627efb3382ce60126b6a56c2687b3dc46fe86ad0e75932f48504157e3
['ec2e773eab1b4e959c08ce5ca1dc37c7']
A conventional grails 3 plugin is different than a plugin within a multi-project. It doesn't seem to be designed to compile a plugin such as grails scaffolding with custom commands. For this reason, you should package the plugin manually using: grails package-plugin grails install Now in the build.gradle, add this lin...
30c6d30cb5eaaefadde3404bdb1449aeb1cb6ede6c47417a459f455d170a488b
['ec2f4128640e4021981ec1b3a694964a']
you can try this approach in pyspark from pyspark.sql import SparkSession from pyspark.sql import functions as F spark = SparkSession.builder \ .appName('practice')\ .getOrCreate() sc= spark.sparkContext df = sc.parallelize([ ("RR Industries",None), ("RR Industries", "RR Industries")]).toDF(["Name1", "Name2"]) ...
69a332ca3aa256ca45756785a716d9d93227b9e9aa957ef27c241505dfb924c8
['ec2f4128640e4021981ec1b3a694964a']
check this out. you can use groupby and pivot. Please note i renamed name column because it was ambiguous to the dataframe once the name values are pivoted df.show() # +------------+-----+ # | name|value| # +------------+-----+ # | Name| str| # |lastActivity| date| # | ...
22d63ad1a134e3b1ed0e5e69ca929b3db6e633ff2908d755dd04c9c37ba4861c
['ec310b8b82ca43c992050681a87a7d58']
I am trying to call an external program from within my C program. I understand that calling system() is a bad habit. I've been reading up on how to use execl() or execv() to replace system(), but due to my limited brain capacity, I would like to ask for some examples and guidance. If I was going to run int return...
aef0590010a2da84504ca01a03885214fd2c87a0718334aa10d91fec97b37a11
['ec310b8b82ca43c992050681a87a7d58']
This is a regex question. In this particular case I'm using Vim to do the work, but I'd be interested in the general answer to the regex portion for other times I'm using other varieties of regex. Consider the following example where I want to replace some arbitrary text string "ab" with some other text "cd", but only...
5d2c0e23ebe58f9139908dc90f0c7751e08df0636bfa15482b1867d8b38f2721
['ec31e48db32648e8bf508a6d84589c6b']
If the date you receive is different from the current culture you can use DateTime.Parse to convert to a correct DateTime variable. As you are using ToString to convert a DateTime type to a formatted date string, your myBirthDate variable will become a String, thus the >= won't work as expected. Here is a sample: using...
794333232db2eda63c89603b41cc2a8627ae6e009e9bee4df1329e60ed1c4a49
['ec31e48db32648e8bf508a6d84589c6b']
I'm trying to configure Travis CI build for my Ruby on Rails project on GitHub, however the MySQL configuration is not working. What is wrong with my config? .travis.yml language: ruby before_script: - mysql -e 'create database simple_cms_test;' rvm: - 2.1 database.yml default: &default adapter: mysql2 encodin...
ba64f43ad5339edd97d010df9c2a1b5c2a4c8e1662cf59df3e143ee894f6267a
['ec347a3fa8e3432082833a7b0f83fcef']
I just tested your code and it works fine. I think it has more to do with your configuration. You will get 0 steps if you havent added the client_secret to your res folder. If you navigate to your console where you made your OAuth V2 token go here: Where to download JSON client_secret Then paste your client_secret in...
3e0cb4cc3b2da3e141709804a7dcab56f00d484afc9a92206e9901c2315def6d
['ec347a3fa8e3432082833a7b0f83fcef']
I am trying to create a function that receives an array and an object and returns a combination of the two like so. fruits: [ { name: apple, seeds: '' }, { name: grape, seeds: '' }, { name: banana, seeds: '' }, ] const seedData = { apple: 'yes', banana: 'yes', grape: 'no', } set...
12cd6c2dc78cfb91744f58a13e52ef599ba9201f18e5d0e4acfa75e15a67deed
['ec38a7cd88164316b519dcbdf672598a']
I want to live stream a 360 video to my android app. The main function of the app is to watch live 360 videos. I tried using the YouTube API, but it does not work as it doesn´t render the video. I tried using the Google VRVideoView from the cardboard API. But it seems it can´t parse YouTube URI. Is there any way I can ...
dd1f824d31d3ddce4222349a6f8a9559ffc7f3f8d9fa3af76b0a43676ff7b320
['ec38a7cd88164316b519dcbdf672598a']
So I found out what happened for anyone who has this sort of problem. I had to Create a response to the request of method OPTION also which has in it's headers the allow headers method. Something like this v1.OPTIONS("/users", OptionsUser) // POST v1.OPTIONS("/users/:id", OptionsUser) // PUT, DELETE func Optio...
1f169c9a962f3b533a1f734c369d64f6c647d3343cb387f53408ed3968ce3250
['ec39c650dcf64eeaa215f980069c16d0']
I'm a young math teacher who often deals with the problem of finding good sources of sets of exercises as inspiration for my own exercises sheets and exams. In the past I frequently visited ixl.com (example: Grad 9 maths practice) but are there better options? What sources (web, books...) do you like/use? I'm intereste...
860cc95cf4385da6095baeb3e2caa571ecc9656c2f14d7da4e003d8e56715a06
['ec39c650dcf64eeaa215f980069c16d0']
I think your issue is around the following lines StandardInput=tty-force StandardOutput=inherit StandardError=inherit This means that the standard input takes in the input of /dev/console as there is now TTYPath specified in your service. By setting standard output and standard error to inherit that means that they al...
6e96afc2a7ea0fe15fc78d03f71673006bf5aa622f728f8236be063eafed4de9
['ec41a3f02e67408282feaf4612025e50']
1; turn on developer ribbon 2; record copy selection, going to end of sheet, down another 2 rows all using 'relative refs'. 3; create a new macro to say something like this... Dim I as integer Set i = 0 Do Call {macro recorded} Set i = i + 1 Loop while i < 101 End I have pretty much guessed the syntax, using a pho...
7b97581f01c4f7957ae13579b8090d16ce10fd17c2332d31f2adb2e3bfbefc5c
['ec41a3f02e67408282feaf4612025e50']
I have a table which each row contain a time. The table should show the closest time of the day on top. For example, if the current time is 12:03 the first row on the table should be 12:00. Basically the table auto scroll depending on the time of the day. I have a code that works fine when running in Visual Studio deve...
d4b8bd530686b20be09307464a6a4910bd34567f3e62f41e3a8e24223b4b7484
['ec4f1fb2abf84360824948182ff6b740']
I own a Samsung Galaxy S2 (Android version: 4.1.2) and I'm trying to deploy an application from Xamrin Studio. The result is: "Deployment Failed. Internal Error". In the log it says: Mono.AndroidTools.InstallFailedException: Installation failed due to container error. This can be caused by lack of available space on t...
6158bff376de0c0f2a576f88b203380b1ff63e5a7312e1b9530f313d11290928
['ec4f1fb2abf84360824948182ff6b740']
When connecting Samsung Galaxy S via USB to hyperterminal, I cannot retrieve any messages or send messages. The commands "AT", "AT+CMGF=1" work, and "AT+CMPI=?" return different memories available. But when I try to execute the following command: AT+CMPI="SM" (or any other memory) I get an error. In addition when I try...