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 |
|---|---|---|---|---|---|
5c99bce7471859bea0946d6ecbfae9ba36556c1486bc0f0253893b2a8ddbcc8f | ['6f485016aa20432f976c708583d508a5'] | As of May 2013 Lightworks is in official public beta, however it has a much steeper learning curve than FCP and it's extensive list of things it can't do yet is a bit intimidating. But like me I hope all linux users interested in video editing will keep their eye on this project. | fde05dd5864a094a28c728533b18289c823d859d87462365458194c1c527800f | ['6f485016aa20432f976c708583d508a5'] | It's simple. Just dig around the dirt and gravel, there is 1000's of blocks of stone around you, it isn't hard to just dig stone.
If you want tons of cobble, don't go for the cobble generator. Yes, you are more safe, and there is no gravel, dirt, or any type of ore, first of all just dig around the other blocks. Second... |
c10f136ff048f2af09272801ea978e9ae73884d1643508bda15ded4ccd432cbe | ['6f4dd08e0d7f4234a0d2eef03c728aae'] | I would use a simple hh:mm:ss format (appropriately localized), omitting most-significant components when they are zero.
0:SS
MM:SS
HH:MM:SS
Dd HH:MM:SS
The resulting variation in size will give a good visual indicator of the magnitude and right-aligning will ensure they are easily comparable.
| ce80ec0b869b01b6b8a9e72a87e1c0efa5e901b1524ed486cb3a72c8073e8c1f | ['6f4dd08e0d7f4234a0d2eef03c728aae'] | All of the courses I remember taking (science and math) from grade school through graduate were very liberal about allowing any solution method to be OK. And I personally tend to be a bit (not extreme but a bit) of a reductionist. Why learn the derivative quotient rule when you can use the multiplication rule and a r... |
67a8ea3efad2899f5cb5bd0282709eef760bd60c8961bd4f2c378e7df1a9cdd1 | ['6f5566414668482ba7e8b635d2c2831e'] | Well, I thought it was clear. I'm sorry ;) (and I'm having trouble with stackoverflow ...)
I got multiple models. In some models the variable 'media' is ommited.
Model 1:
{
"type": "video",
"edit": true
}
Model 2:
{
"type": "video",
"edit": true,
"media": {
... | 209414e46864d26745ff3166deed8379e8359a9cbd25183f72517383ed1f6648 | ['6f5566414668482ba7e8b635d2c2831e'] | I'm trying to render an form with Kendo MVVM. My model is not predefined, some variables are context depended. When loading a model without the variable Kendo failes.
<table>
<tbody data-bind="source: media" data-template="source-template">
</tbody>
</table>
<script type="text/x-kendo-temp... |
82703270f9e1ef8afd94c95687baf03e09de832347ebb725ffca63a23d913e09 | ['6f56ebed502841bca8248d2b81ac2794'] | I need to build a PDF 1.6 with LuaLaTeX, and I can't get \pdfminorversion command to work:
\pdfminorversion=6
\documentclass{article}
\begin{document}
This is a test
\end{document}
The result is
Undefined control sequence. \pdfminorversion
PdfLaTeX builds the PDF, but I need to use LuaLaTeX (I need the fontspec p... | 6b862583d6e4217dae45b2f842c78dea42705e26101469141f655898ba70edf0 | ['6f56ebed502841bca8248d2b81ac2794'] | I need to center the title of the parts in the toc. I'm trying these two approaches:
\documentclass{article}
\usepackage{hyperref}
\usepackage{tocloft}
\cftpagenumbersoff{part}
\begin{document}
\tableofcontents
\addcontentsline{toc}{part}{\centerline{Part A}}
\addcontentsline{toc}{section}{Section A}
\a... |
09965af79883a224fe9e3f94710d859e798370a8baac4000447798a8b37eaa77 | ['6f57407420a745b1b404578fea487a9b'] | I am following this tutorial, but having trouble getting browserSync to fire when I make CSS changes.
If I call gulp watch it reloads one time, and the SASS compiles to CSS automatically, but browserSync does not fire on change.
The below gist is the entire gulpfile.js
https://gist.github.com/RyanNovas/c940324270b57754... | fd08fd28e7dea0be4f05a697b1e1afe01906091fd973524d5187c0b39c8f10ba | ['6f57407420a745b1b404578fea487a9b'] | I am trying to practice using Redux/testing React, and have a simple app set up with the Facebook Create-React Kit.
I have a basic test that is just supposed to make sure an element renders:
it('renders without crashing', () => {
const div = document.createElement('div');
ReactDOM.render( < Companies / > , div);
})... |
134439a5f6fc997989dc75488c611097a0493743f08643d02905f574aeb21c5e | ['6f71cdcadbb14a97a0d4445b075dbbb4'] | I am making a simple accordion menu in javascript. I'd like to be able to set the compact and expanded heights for the elements via the css max-height and min-height values. For some reason, when I try to retrieve the min-height and max-height of the elements in javascript for animation purposes, I get an empty string ... | 1bad37b15fd5babc7b6daa1049a016cc5eb02d415c0e87c3214083f77ec5c593 | ['6f71cdcadbb14a97a0d4445b075dbbb4'] | Here is my website: http://dagwaging.110mb.com/
View it in any good browser, then in IE6. It dies in IE6. It seems that in IE6, one can't do this:
div {
position: absolute;
left: 0px;
right: 0px;
}
or this:
div {
position: absolute;
top: 0px;
bottom: 0px;
}
Absolute positions cannot be set for left and right or top a... |
8a0ed3a033aefd23c897d24dafd90acdd12248339eba7e3a0b30601be2377481 | ['6f91de520e63466da41c6b22cc07e3f6'] | This is an economics problem, but I'm pretty sure this kind of thing comes up elsewhere. I've used dynamic programming to find the optimal path of a system (law of motion), which is:
$k_{t+1}=\beta\alpha k_t^\alpha$,
where $\alpha,\beta \in R(0,1)$
now I want to find out if this expression converges to a steady state, ... | 32a5b926c6c8133b19cf2a2879f67e2a2c6a34de8f5217fc79837cbbec546c77 | ['6f91de520e63466da41c6b22cc07e3f6'] | hook_views_query_alterallows you to alter the query run by views. db_query is how you do custom queries, though Drupal's database structure isn't fixed, so you should look at something like this article if you're going to do that. I think your original question has a simpler solution, though, which I'll leave there.
|
4aedec67419dec97dd1da4fb371110582d55465fb620b8499b45cd3bfd18b62c | ['6f94c1d75c0f44a3aa3a347da1edf785'] |
You can build jib using mvn compile jib:build and then make docker image and push to registry in next steps.
2 . Alternatively try running as docker in docker so that The gitlab runner can use Docker images to support our pipelines and use docker as image.
image: docker:latest
services:
- docker:dind
Bu... | d49b2c1f9a002f4e2ae1e02c8ad428c95f9ae93d35441786fcddd6d8a1c4e1b2 | ['6f94c1d75c0f44a3aa3a347da1edf785'] | The statefulset doesn't have a selector so the YAML in question doesn't work. If you use the below YAML s it works and connects to the job as well. Everything will be deployed in default namespace. You need to use appropriate storage class (below example uses standard)
You can follow <PERSON> deployment from here
apiVe... |
067c89fb5ee5bc0603d6e7654d7709bb8cd70e1eb8af960a96d9b4a564feb806 | ['6f9796bd0f604feeb7cdafdf232ad4a7'] | To further elaborate on elclanrs answer, when accessing the key of an object. The keys are always strings. Id is a variable not a string.
Bracket notation works such that you need to put the quotes into the bracket when accessing the key. If not, it will look for a variable with the same name. Dot notation actually con... | a00b6a87a34f9054cb6f2998f26f1f2e687195d418fb99faedc426d6e88781ee | ['6f9796bd0f604feeb7cdafdf232ad4a7'] | If you do use strings around strings, it can appear ambiguous to javascript. That being said, sometimes it makes sense to do it, and you just need to use different quotes " or ' to ensure it is properly evaluated. TLDR - alternate your strings " and '
you can also escape your quotation marks using "\""
|
9979ff76ef576d4bab93421e2b2aa75e82b1091e3dac271d3b729fc299cc7abd | ['6faa068fc72b40a5a1b45acb7691dcc6'] | My professor posed this question as a possible midterm task and I'm simply trying to make sure that I am understanding the information correctly. A proof within the context of optimality may shed some light. However, I am unsure whether wa and wb are leaves for wn, I believe they are since the sum of their probabilitie... | 7705384e6230f1dea9c9e9b92762f8dc79a613f068d9f15b2e7a22c8b586bf64 | ['6faa068fc72b40a5a1b45acb7691dcc6'] | Since "geese" is plural, the possessive form would be "geese's." In the second part of your question, you used geese in an entirely different context that made the word singular instead of plural. In that context, the plural of geese is geeses. If you have a plural possessive of geese, you do indeed get geeses'.
|
21823cb004f45d8173950aacde842fb4dd37d380a814f92a4b5ec933c1f383e4 | ['6fb68afb286d4d91b057d894bd169b32'] | Updating all the columns doesn't make sense in Hive. Hive is different from RDBMS. If your above table was a billion row, 200 column table then the process would be super slow and not an efficient way of using Hive. You can use Hbase for that and pull data from Hbase into Hive.
However, in Hive the approach I use for ... | f9a9d4f5e034c382f7442663b214ea2a78ee0ec04b8d01ab1ef6a143b02086cb | ['6fb68afb286d4d91b057d894bd169b32'] | Another solution using replicate and string_split
select order_id, item, value
from (
select order_id, item,
iif(quantity = 1, '1', concat('1',replicate(',1',(quantity-1)))) as split_quant
from orders) a
CROSS APPLY STRING_SPLIT(split_quant,',') ;
for more info on string_split : https://learn.microsoft.com/en-us/sq... |
e263fc4db072b0c225b717d17e3cf028a3c4ee6fb32b073fe041f32616b61697 | ['6fbac3b66cef42f4bd38a4fc27e3c2b8'] | In my opinion its better to override methods from ModelAdmin changelist_view and change_view:
Like so:
class FakturaAdmin(admin.ModelAdmin):
[...]
def changelist_view(self, request, extra_context=None):
result = super(FakturaAdmin, self).changelist_view(request, extra_context=None)
request.session['qdict'] = ... | 32ea7192c35127b038650b44ea92990bb6355cc5a37eb50664a1bc5d183d506b | ['6fbac3b66cef42f4bd38a4fc27e3c2b8'] | class IssuesAdmin(admin.ModelAdmin):
def change_view(self, request, object_id, extra_context=None): #remember to edit also add_view()... etc
self.form.request = request
form = IssuesAdminForm
class IssuesAdminForm(forms.ModelForm):
class Meta:
model = Issues
def __init__(self, *args, **kwargs):
... |
d0df82126219d1a21710d9e1d283a6433d49f68a49d52231790902600fbc770b | ['6fc0f151810846e9b095f179bc04837c'] | I have a flash form that sends info to my database though a php file.
The problem is that the flash forms needs an echo response, but i also have to send header(Location:with_url_vars)
... and i just found out that his doesn't work => can't send echo before header()
I think i can't use a javascript or meta-refresh eith... | 7f17187383728352a97c41c085d657ea9b4166bde5151f6931ce343ded7d04e5 | ['6fc0f151810846e9b095f179bc04837c'] | I've seen similar questions to this, but this error doesn't come up because of missing outlets (yellow warnings)
I go to my thank you page using the following code - and it works from everywhere
let login = self.storyboard?.instantiateViewControllerWithIdentifier("ViewThankyou")
self.presentViewControll... |
d5ccf0d8ac17735bd798c7d8fffbecb3f2d4394e6fbe05c65399ba0c2bb92212 | ['6fc6a7640615488b81fed16ed3672910'] | I have been searching all day to no avail to find a way to do this. Granted I am very VERY new to angular (and coding in general) but every guide I've found doesn't seem to work.
I am trying to make small notification messages show (fixed pos) at the top of the screen sliding in from the right side. If a second not... | 5013868d0a2a290461474d078cc2127d5ca53cc10eeba9043c20c0a0c1b2cbdb | ['6fc6a7640615488b81fed16ed3672910'] | Im trying to set the an html datepicker to not allow dates before today to be picked. For some reason it wont read it from a stored variable.
in controller:
LocalDate now = LocalDate.now();
model.addAttribute("now", now);
in html:
<input type="date" name="bookingDate" min="${now}"/>
I outputted "now" to the cons... |
0881f344145abc3a6409adbaa7d2af94b931ddd3bd2b8bea40dc47a994f63c6e | ['6fd0cb0652664bcf81a12d42fb91620d'] | methods: {
onShowModal(idWinnerPrize, idPrize, curUser) {
this.userEdit = _.cloneDeep(curUser);
if (idWinnerPrize === idPrize) {
this.confirmAward = false;
this.isDelete = true;
this.isFull = false;
this.userEdit.prize = nul... | 3b9d60e484c143ed57cffb6edd5d64c375a99889cf888d04f0d18304489c103e | ['6fd0cb0652664bcf81a12d42fb91620d'] | here my code, and the vue warn:
menu.js:39016 [Vue warn]: You may have an infinite update loop in a component render function.
i dont know why, pls help me. I have this when i use v-for to the loop
<template>
<div>
<table class="table">
<thead class="thead-dark">
<tr>
... |
d70ec836ec3c15879d3c54f1f78d8787e616e53cc382b525d82e29c95440fdf5 | ['6fd7080f50764c5986aa91207a10758e'] | I don't understand why this code is not working. The user can click on a button to expand the sticky footer. I use jQuery to animate the footer (by increasing the height of #site-footer). A problem occured after clicking on the button: the #ask-offer div is hidden.
You can see the problem below:
jQuery(document).read... | 4747410e8443c5c8737a06ffac04a0e3a650be86ba8302032dfceabe92e47b20 | ['6fd7080f50764c5986aa91207a10758e'] | There are several ways to do. Personally I like to extends validation by a ValidationService (I think it is much cleaner).
1) We assume you use PSR-4 to load you own company directory in composer.json:
{
"autoload": {
"psr-4": {
"Acme\\": "app/Acme"
}
...
},
}
You have to ru... |
51f0ee75edd7d347c42177172df34585624f35e6afdae1801bdd3d3ca1f5f2df | ['6fe7f65e9aa443488587e1b07b846bf2'] | I create a new UIWindow and want to show a view in the window like popover view, but It do not show up.(The code I read SVProgressHUD for reference)
the code is below:
In .h file
#import <UIKit/UIKit.h>
@interface PopoverView : UIWindow
@property (nonatomic, strong) NSArray *items;
- (void)show;
@end
In .m file
@i... | 4aba2ff1a7f85fad6b7de3ce08b13a12e9948d1ead443a2d812c3d4a8ec8958a | ['6fe7f65e9aa443488587e1b07b846bf2'] | Try
function showhide(id){
$('#'+id).each(function(){
$this = $(this);
if($this.is(":visible") ) {
$this.css('display','none');
}else {
$this.css('display','block');
}
});
}
Or
function showhide(id){
$('#'+id).each(function(){
$th... |
9845be5758026ba4ce770e9210fea1b4104b039eb29bd87a300c366684e22de1 | ['6fe90b35258a4120b0e259cc71605fd1'] | This should cycle through the <div> tags, but it isn't even showing the first one. It should show a "0", then 50ms later, show "1", then "2", and then "3". I get nothing.
Here's the HTML:
<div class="header" id="animation">
<div id="aniObj0" style="display: none;" onLoad="runAnimation();">0</div>
<div id="aniObj1" styl... | 0c0068c1c83d03c491fd215399db6f36e55b2e0b395df8eca8abd466dfb0231c | ['6fe90b35258a4120b0e259cc71605fd1'] | string databaseLocation = "|DataDirectory|\\Users.mdf";
string connectionString = "Data Source=.\\SQLEXPRESS;AttachDbFilename=" + databaseLocation + ";Integrated Security=True;User Instance=True";
SqlConnection sqlConnection = new SqlConnection(connectionString);
SqlCommand command = new SqlCommand();
command.Comma... |
61046c85bfd425085479da914b5027d2836a486a2536dbe272ff37fa7529be69 | ['6ff1c0f1e1044f3ca17a35a959b8b59a'] | I had the same issue back in months and I found this solution :
From the documentation, you can use exporterAllDataFn property in $scope.gridOptions
gridOptions.exporterAllDataFn = function () {
return $http.get('/data/100.json')
}
As far as I unsterstood, this function is called once you clicked on the exporterMenu... | b043044732083be5ac5376d89c3aa95be42b3e3c57d760d38240373efc80da74 | ['6ff1c0f1e1044f3ca17a35a959b8b59a'] | If you embed jQuery in your app (because Angular embeds jQlite by default, but not jQuery), here is one solution.
You can do it from the controller, after your element is ready:
$element.ready(function () {
$('#offcanvasId').on('hide.bs.offcanvas', function(){
//...
})
});
Nonetheless, there must be s... |
ebf1c212bd4a053cd90de1a4806e90e329e7d491d93c1b6fff83d10d653f13ed | ['6ff1f4ba5f64495a9d74547ac88b4bf5'] | First - create the POJO / Model class to convert your response.
public class SomeModel{
@SerializedName("name")
@Expose
private String name = null;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
Declare your response
Gson gson = new Gson();
SomeModelResponse re... | faa9b9b75e102a5cc35c6acee79a6b84d15cef38a1906e91abdc6f0b0daea175 | ['6ff1f4ba5f64495a9d74547ac88b4bf5'] | I created an extension function when setting the default animation
fun View.navigate(id: Int, navOptions: NavOptions? = null){
var updatedNavOptions = navOptions
if(updatedNavOptions == null){
updatedNavOptions = navOptions {
anim {
enter = R.anim.slide_in_right
exit = R.anim.sl... |
23c8fe42182fa82e74480d3a3430988a2e3faa8f5dfc47bd4447b921de5bb78c | ['6ffb264f95794c67a802eb004100603a'] | I am new to Android I need some help.
I am using countdown timmer to update a text view up to some date. Its working fine but the timmer does not stop at 0:0:0:0 it keeps going on as this 0:0:0:-12.
I want the text view text to change to Start at 0:0:0:0.
SimpleDateFormat formatter = new SimpleDateFormat("dd.MM.yyyy, ... | 9b382ebf07856801afd19c4da9bee67ee51f6849299db19e0bbfb128d6562ccd | ['6ffb264f95794c67a802eb004100603a'] | I trying to get the current date and time from Google. with the following code
private class LongOperation extends AsyncTask<String, Void, String> {
@Override
protected String doInBackground(String... params) {
try {
HttpClient httpclient = new DefaultHttpClient();
... |
c1672f631659a4f73b9d3bc6e3d2df0d6d4e62b1510e8ea8aef6e699b704b80c | ['70036898008048cc987fb2533c16edaf'] | The following code is returning an unexpected (and wrong value).
x1 = ceil(ceil(ceil(100*1.0f)*1.0f)*1.1f);
It is returning 111 not 110. I am aware that multiplying a number by 1 is pointless, but those 1's are not always ones. When they are other values the function works as expected.
| dd256a080a57a1c801e0815f748dd69db97d15f5d24e6f3ffca7f4ac6eff7fdd | ['70036898008048cc987fb2533c16edaf'] | I started getting a strange bug recently. I am converting my app from iPhone to iPad. It all seemed to be going well until I noticed that all my buttons and switches stopped working. When my app launches everything loads up fine (on both platforms). Then when you try a button the app appears frozen. Nothing happens at ... |
98fa8ff7ff6adb77262522f80f2f38c2a1bd05515b1fa2bcd3c98ed73eab4870 | ['70166874086f4df3ac94df8ad4e3d9e5'] | Проблемма в то, что при открывании 100 страниц, к апи идут 10000 запросов, что не очень хорошо. Нужно уменшить обращения к апи. Так как много одинаковых запросов,и соответственно ответов, подумал можно сделать два-три запроса и сохранить ответы (массивы где-то). Вопрос только где? Ведь нужно еще потом ответы(массивы) ... | 9bb1e98186ee346ee570d50938942fa96cd9828010254b9baddf36ea3e6ea7a8 | ['70166874086f4df3ac94df8ad4e3d9e5'] | А будет ли правильно хранить полученные данные от АПИ, напоминаю, что это массивы с данными (список городов) в сессиях? Ведь во время отрабатывания текущей страницы, нужно обращаться к етим данным несколько раз и на следующих страницах также. Какое решение можно применить? Если закешировать саму страницу АПИ, все равно... |
3ad4eb3013f91f30d0e176f272c32edcb7893c445181d7eaefa408599d48fed4 | ['702956b162a941a3af0ae12ef4df5adb'] | What exactly are you trying to do? If smoothing then try Meanfilter or GasssianFilter, or maybe BandpassFilter, or for highpass edge-detection try EdgeDetect or Highpass... all of these are much easier to use than Butterworth (they don't require ToDiscreteTimeModel or RecurrenceFilter) they just operate right on the 2D... | b64a57c565ffe750306f11366498183234c086de9321ddbe1e83c7cb5693334e | ['702956b162a941a3af0ae12ef4df5adb'] | Here's a few pieces of the puzzle. To generate monotonic sequences of "random" numbers:
Accumulate[RandomReal[{0, 0.1}, 10]
{0.<PHONE_NUMBER>, 0.<PHONE_NUMBER>, 0.141986, <PHONE_NUMBER>, <PHONE_NUMBER>,
<PHONE_NUMBER>, <PHONE_NUMBER>, <PHONE_NUMBER>, <PHONE_NUMBER>, 0.329844}
Now let's say you have a vect... |
628ab787f0f401a646843ecd014a58a4d08c7d9d49f0141c8bf1ffb7794daf2e | ['703a6f13abf243ffa21a037ebece18c6'] | What do I have to change to get my 3rd ed content compatible to 4th ed specifiactions?
Does anyone know an abstract of the changes or do I have to compare the whole cam and rte specifications?
Can't find such a document neither at adlnet.org nor searching globaly.
Thx!
| ef692960feab87160953d9327c35ef39fa7e5db2e0c382ac5ffcfc587d2a491b | ['703a6f13abf243ffa21a037ebece18c6'] | Do you only want to launch your spa from within the LMS without any tracking?
Than you should use the adlcp:scormType="asset".
Else your content would have to support the whole mandatory sco communication features like:
find the scorm api
initialize the session
get and set values
errorhandling
finalize the session
|
08e4e1607a9ab44b730772fd93be2494e9231eb9cfd746e145c8fdc292d5653e | ['703cb04da84a43d4b8c5b19d28ff0d61'] | I'm simply trying to edit a div named meta description inside of a div named post by taking the html and creating a textarea with it then plugging it back in. I have it working for the Title, content, and even meta keywords, but for some reason the description's textarea just keeps coming up empty in the end.
//---... | 7a1ef532d9a2647b2e03136e9ff3259c98fee652b9c7da0b7283ca8fe3c7311f | ['703cb04da84a43d4b8c5b19d28ff0d61'] | I have a laptop connected to a domain named Homebase, where I have a domain user (<PERSON>) logged in. On that laptop I also have a local account named <PERSON> which I don't use, but I'd rather not delete it. The problem is I am trying to access my domain user's local Download folder.
If I look under C:\Users it shows... |
85f062065c26e85eb8c284d8f3d81fbb85d8545ba909a785a20c939c7f94cd85 | ['703dcad8ea574f3f9fd200a7e84e4a83'] | I'm using the system-config-printer utility in Linux Mint 17. Click the "+ Add" button. Next, choose "Network Printer". It should display your Canon printer twice, once by cnijet format (e.g. cnijnet:/88-87-17-89-c1-62), and once as "LPD network printer via DNS-SD". Choosing the LPD daemon cleared up this error for me.... | 38203f33ddfccab5bdaaa31feaebdaab9d391f44a9f8bef91ad6b426b0aa04a8 | ['703dcad8ea574f3f9fd200a7e84e4a83'] | I'm doing a filter and I basically have this
filter('Sheet'!B2:B,
('Sheet'!A2:A=1)+
('Sheet'!A2:A=2)+
('Sheet'!A2:A=3)+
('Sheet'!A2:A=4)+
('Sheet'!A2:A=5)
)
I'd like to simplify this as follows:
filter('Sheet'!B2:B,
'Sheet'!A2:A in (1,2,3,4,5)
)
Anyone have any idea if I can do this?
Here's a screenshot of my act... |
5813dc6ba3bccda9d5bd56e8b52037077d014423c5f5a625d37d923bc3da2e73 | ['7054301fc0e749c1836e3e7dc5d92f46'] | Xcode 9.1
Swift 4
I'm trying to do some things if a property list still doesn't exist at a certain URL. The code is:
import UIKit
class ViewController: UIViewController {
let urlPers = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)[0].appendingPathComponent("punterosborrable.plist")
lazy v... | be7e302d3e4c6f55b934df22fae2ad53b30be8c37b009bed0a0554d9401776b2 | ['7054301fc0e749c1836e3e7dc5d92f46'] | I'm using Xcode 9.1
I want a simple thing. I want to have a UILabel that adjust its size to show its content.
For that, I'm doing the next things.
First, I add 3 constraints.
1.- Center it horizontally.
2.- Fix it a distance 10 from the left margin.
3.- Fix it a distance 20 from the top margin.
I put number of Lines = ... |
3e19aae044895461b285bfb73f10d41eda00c264562d529b1797ced13a03b7f7 | ['70663e5bb7494afc934bc77ccf88b258'] | Whats a smart way to create a list of authors with their respective articles without creating new users for each one?
Each author could have many articles and each article could have many authors.
I know how this works in a custom relational db but I am not sure how it would work best with the WP DP.
A combination of ... | ce2a12521f07ba47d22d76be4e05fad08f577a264a3bcf5faf9a9347a6252bed | ['70663e5bb7494afc934bc77ccf88b258'] | Thank you for pointing it out. I corrected the third echo statement. I also noticed that I was write div style tag with wrong syntax. I have corrected it. But its still not increasing space between my widgets. Am I writing the style correctly? is there another way to do this? |
dba68e3efad4f500fc02b87ca511bd8a38cf2c6297be9d5d21415351d2cb499b | ['70777ef5dda14d46b3aa86fc47353380'] | Private Sub btnScore_Click(sender As Object, e As EventArgs) Handles btnScore.Click
If i < scores.Length Then
'display inputbox to the user
runs = InputBox("Enter score for " & (i + 1) & " innings", "Score")
'if runs is entered
If runs < 0 Then
MessageBox.Show(VALID_MESS... | 7da0315874fc3736729553a267fb34b1cee3e476da4952542eb48830d99292c2 | ['70777ef5dda14d46b3aa86fc47353380'] | My problem is what event will file after i kill the Main Process?
I have no problem when killing the Sub Process. When i kill the Sub frmAdmin Process,
For eg.
This event will be fire,
Private Sub frmAdmin_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
... |
49036b954027595606f3293ce0a15dbc2436e21fd663b03437d4ba6f191b7b41 | ['707fd6998b294ddd8d372a17ff13d5b9'] | int highestValue = someList.IndexOf(someList.Max())
someList contains a lot of duplicates and someList.Max() returns the index of the first instance of the highest value.
Is there some trickery I can use (reversing the order of the list?) to get the index of the final occurrence of the highest value in the list, rathe... | 785ba636b4fc3f0c960d3385b6e1a80a816bd6bbfafc2b58836515b9da836d3e | ['707fd6998b294ddd8d372a17ff13d5b9'] | I've inherited an api that accesses remote (real time) json via observable subscriptions.
In large part a lot of the members are just strings and doubles but a few are lists and I have zero idea how to iterate through them via linq/takewhile and subscribe methods.
mcSub.TakeWhile(p => p.Status == Market.OPEN).Subscribe... |
32a4bd176109581bd87b95465d4f4438f826fa7fc943762a71673a896c1fd9d7 | ['708cc3a44f55405b96271c7b8ad8f614'] | OK, so what I wanted to do can be achieved using the "Provided" dependency tag, instead of the "Compile" tag.
If I use the provided tag in "MyCompanyUtils", specifically for the GSON dependency, it tells MyCompanyUtils that one of the projects that uses MyCompanyUtils will include the GSON dependency itself.
Imagine it... | 499545fc23a6cf076ca2ffdf0c27783ce0d1199c35104aa489308b3079275975 | ['708cc3a44f55405b96271c7b8ad8f614'] | I have been using the older version of Skobbler maps for a fair while now, and have found it to be quite successful. I have recently began upgrading to version 2.4, to gain some of the extra functionality provided in this version ('via points' being the main feature I am interested in).
I can get the AndroidSDKDemo pro... |
07b6cb8535453554be4e0cf8cf17e9dd794caa00973c00955979506641ff9b0c | ['708d96bd549f4d1498d3b03654286a4e'] | Make sure the worksheet isn't hidden. Excel will throw an error for .ExportasFixedFormat if the worksheet is hidden or very hidden. If yours is hidden, you can unhide it first in your code:
Sheets("Fa VAT").Visible = xlSheetVisible
At the end, you can hide it again.
Sheets("Fa VAT").Visible = xlSheetHidden
| 4873380b9b8ed9c4747b6a88c064a189c58e5b10c24dfba2173a11a60555b1f7 | ['708d96bd549f4d1498d3b03654286a4e'] | You can run T-SQL from Excel if you make a SQL Server connection rather than using Microsoft Query. Choose Data > From Other Sources > From SQL Server.
Enter your server name and choose your database. Excel will provide you with a list of tables. This is confusing because it makes it seem like you cannot use SQL or T-S... |
166abfb5ada8c864a89331464b3fbf6292b8b45076ba7c0dfb5114c268cc397a | ['70a9e1e9dea241fba283a4711c82c2d0'] | The emulator used to accept numerical input from my number-pad with num lock on, now, however, it acts as if num lock is off. For example, if I type "7" on my number-pad, it responds as if "Home" has been pressed.
The numerical keys along the top are still fine, and it makes no difference if I toggle num lock.
Emulato... | 9083f8b04b2be6c8bef4d3d9dae54a54a02e5016d7a8a41b4de4d5111e836d6d | ['70a9e1e9dea241fba283a4711c82c2d0'] |
The layout xml file will have a main layout. you can set the background attribute of this layout.
Android apps don't do this. Users don't expect it either. Generally a user will hit the home button or the back button - read the activity lifecycle docs on how to handle this in your app:
http://developer.android.com/... |
6beda095ebb28a53ec3351362d27ff14d6bacd98444569f3f5e7f9bbfe734092 | ['70ab2991b4cb43aa9da7a19ef0cb7fc5'] | Ok, I understand that (at least it's an issue with intel's memory controller, a whole other question would be "how is ram accessed? Is it mapped and opaque to the firmware?"). I was just confused as the actual unit of storage. So pick a bank, pick a row address, pick a column address and you get an 8 bit value. | 66f20270255f8d33d83371a7d5253a773203dfc936545851c52b33d36460e611 | ['70ab2991b4cb43aa9da7a19ef0cb7fc5'] | Tengo un problema para integrar Data tables con el json que recibo de respuesta por parte de mi servidor.
El código que estoy manejando es este:
function lstCiudades(){
$.ajax({
method:"POST",
url:"php/catalogo/class.Ciudades.php",
data: "func=lst"
}).done(function (res){
var resp = eval("("+res+")");
... |
e39398be9dfb12521aa908f18aec5f0981e5b1646d982d0c555283b16da60f9d | ['70b6cca39a9b4ac8a7ab9b1d6fb5bf78'] | Good day
We need to copy data from one server to another server for a migration. I have received an Excel list in which I have the following columns.
All contained files must be copied. Unfortunately, the new path where the documents should be copied should also be written into the DataFrame and finally the whole thin... | d7323c5d620d6bcb681dc2e20bc0d761fc1b20426d7ac93dbd59e0caf4da37f6 | ['70b6cca39a9b4ac8a7ab9b1d6fb5bf78'] | Just do this:
#Load your CSV
df = pd.read_csv("Your-file.csv") #Load the file
#Write out the lines you need with a while
i = 0
j = 1000
while j < len(equzi):
equzi[i:j].to_csv('output'+str(j)+'.csv', index=False, sep=";")
i = j + 1
j += 1000
Because you said that the first line should be the same and in m... |
a04724ce0b9c5e558f46b81808301ccd41f66890822c5d0d7d92b4a9118bef83 | ['70ba2d9320fe47158ab227d1b21631f6'] | I want in actionscript to place an object in my library onto the stage where I clicked. Seems easy? Right? TOTALLY BLANKING. any help would be awesome :)
my code thus far is:
package code {
import flash.display.MovieClip;
import flash.events.MouseEvent;
public class Main extends MovieClip {
public var redBox: Bo... | c5ada254ddd4b17e544c44d912ff7d4ca66577fbb1504e3d674279a20369e77f | ['70ba2d9320fe47158ab227d1b21631f6'] | I am trying to pull all tweets that include #multitouch from a single twitter. (not just pull everyone that ever tweets using #multitouch, just from one person)
my code right now [which just pulls by hashtag]:
$(document).ready(function () {
$.getJSON('http://search.twitter.com/search.json?q=%23multitouch:&screen_name... |
e6991d95accd48ccf3b02d4e0e34d4d7ee6b6c877d2d26e843b0a7bd8d3f3f27 | ['70c0ac67909947bdb6617b1408c13a2a'] | Using Microsoft Graph client sdk how would one go about using search Odata query to lookup if subject or body contains a certain search term.
The $search Odata query parameter is available in the Graph Client api, but i could not find how to use the parameter using the client sdk for c#.
| 85a290e1fcfdf98acaa5657806cc151f34ae6e3ece4709ac0f45685add0c7b34 | ['70c0ac67909947bdb6617b1408c13a2a'] | I would like to store mail token related data in a cache on the application level. The token should be accessible from multiple sessions.
If it is not possible to store this data in a shared cache, would it be possible to create a token cache that persists to a database and would that be a feasible idea?
|
6c61c74a2a8ee2046b68cef5e084610c5d6ff55b7c8ef106921c400c62cf2c28 | ['70dd724baa6d40099707a910f39719de'] | The IPOPT solver error is:
EXIT: Invalid number in NLP function or derivative detected.
An error occured.
The error code is -13
This typically occurs when there is a NaN evaluated because of divide by zero. You can either reformulate equations such as x==1/y to x*y==1 or else put a lower bound on y to avoi... | f0e2165af388f2ec1c1a470cb0e728a2d8739833e3a78438fb9fb238e4115fa1 | ['70dd724baa6d40099707a910f39719de'] | Solvers such as APOPT or IPOPT use m.solver_options values if both m.options and m.solver_options are set. The Gekko m.options values are only a subset of all the solver options but also some of the most common configuration parameters that are adjustable for all solvers. Some of the common options are convergence tole... |
15836e9dee2bd8d6f84f05b07224d3e3c0f9569619befc8b345418a40afb484c | ['70eb9ffe4c04401d973622b8f6593111'] | I think it is something like:
// Get a video entry
String str = "http://gdata.youtube.com/feeds/api/videos/" + videoId;
YouTubeQuery youtubeQuery = new YouTubeQuery(new URL(str));
String videoEntryUrl = youtubeQuery.getUrl().toString();
VideoEntry videoEntry = service.getEntry(new URL(videoEntryUrl),VideoEntry.class);
... | 7f6fb93f8ed2bd127e4714c1d59dc21896e8671f121c944cf393a21b1f92ce3b | ['70eb9ffe4c04401d973622b8f6593111'] | Changed your code. This works for me.
<?PHP
// (1): Choose a valid channel_id
$myChannelId = 'UUJQ2_kh7m7muj2xxxx'; // 'REPLACE_ME';
// (2): api version 3
$API_KEY = 'AIzaSyB7HuVrtyiUV8ow1SegS6xxxxxxxxx'; // 'REPLACE_ME';
// (3): Library from: https://github.com/google/google-api-php-client
// set_... |
179ea0292b1e62b20d9a0f32fa95dfe7d04d63c59c1ef5a60f581e69f6d62f05 | ['710699c698ec44e58bf09c3c9603b095'] | Thank you <PERSON> for your help! I really appreciate it.
Here is my solution if someone will need it for reference
package com.example.researcher.heatmap;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Pai... | 95e57418088d55a7ff2458bd0521897276c8a650953e6b5d65c350dfa5d9f0a0 | ['710699c698ec44e58bf09c3c9603b095'] | This is my first time using Canvas in Android.
I am creating an app that would display circles at certain positions on the screen one at a time (positions are selected randomly). New circle should be drawn after the previous one was selected/touched, and the previous one should disappear.
I have some ideas about it: to... |
534e90437699ae23b205b2a8706cce68589bf25bff96e8ce1ecb96c420d2d26e | ['71142831dad54ed4b22cf2551b47b614'] | It can be a setting in firewall or MS Exchange to attempt to defeat spam.
It is related to the number of characters in a single line of the message headers.
In the past, spammers might have sent email to hundreds of addresses in the To or Cc line of the email, and this restriction was created to filter out such email.
... | a7180e79f7b5ee42247d2ebda61b6c5719d47173a97359f5a98f1a407a1c5e75 | ['71142831dad54ed4b22cf2551b47b614'] | Certainly there has to be *some* voltage limit below which it is always considered 0 and another above which it is always 1? It would make no sense that fluctuation e.g. between 0-0.5V would be considered jumping between 0 and 1. This page states that the limits are not properly specified, but provides guidance: http:/... |
bbeedc73e1abc3465faf614db60f4d9d175482b401c99fe2d8c1a97c43d584ac | ['71183119059e4a3b84b7ec1fcc0a6541'] | I have a simple question : Is it possible to fill a drop down list with two value from a table?
I have a table with field X and field Y and I want my drop down in my form to show :
Value1 YField - Value1 XField
Value2 YField - Value2 XField
Value3 YField - Value3 XField
...
Or I have not choice but to add another dr... | d66d55a6f335cf9f47e78b0b70ded01bd9e323ce91f6b83b0c3f919b4aab660a | ['71183119059e4a3b84b7ec1fcc0a6541'] | So I want to match a string to a simple mask but I would like to avoid using regex because my client have access to this mask and can change it.
Is it possible to have a string matches something like #####-000?
Or I have no choice but to convert my simple mask to regex ?
Thank you.
|
f075499a68afda5f0ac37d3e8fabe98c0c9e267b18987d14c0248abfaa8d7b58 | ['711f11b07e8f4c509972359906890866'] | You could pass a string or object in the (click) and play around with that instead trying to manipulate the DOM
For example:
in the .html onOpen($event, 'profile') or onOpen($event, menu.profile)
in the .ts file
public menu: = { profile: {name: 'Profile', url: '....', icon: 'sample.svg', isActive: true }, home: {...} ... | 6f37d938d90974964e167fd1f23f977f7d81988c9dfb43471dcab057e95c4f58 | ['711f11b07e8f4c509972359906890866'] | It depends how big the application is. If you only have few components "describing" one function it is fine to keep one. So for example if you have a small public website with a front page, contact page etc. I don't see any reason to have multiple modules.
In most common cases Angular is used for larger web apps, with ... |
31466e075e77e47057d50efd28d70bcbf71cb4df53be4ceab8ee4f924b8dbfe2 | ['71282573eb9c47e3a2e1a19e72e895ba'] | I'm Ussing <PERSON> with Jquery. That grid has DateTime column. Data in that column shows like "/Date(1377196200000)/" . Help me to arrange this to proper format.
this is script of my grid;
function LoadGridView() {
var dataSource = GetDataSource();
$("#batchgrid").kendoGrid({
dataSource: dataSource,
editable:... | 105b552ede0c95fc8ed7724f705325cc6e609cc038959a0353b4ef07f89aaa54 | ['71282573eb9c47e3a2e1a19e72e895ba'] | I have MVC 4 web based system. I need to handle error page in web.config file. I m try do with httpError syntax. When 404 it will show blank page. not show the actual error page. url also not show as error page.
web.config code:
<httpErrors errorMode="Custom" existingResponse="Replace">
<remove statusCode=... |
9536cfb984e15be3c2ead10ca46fe1f366a5c7367decabeeed85ba4d74755f59 | ['712cef3735eb490bb80cdde699d189b9'] | I'm building a site with Umbraco, and there are a couple of pages that need to be visited over HTTPS instead of HTTP (e.g. a login page).
I've seen a couple of macros that get put on the page that needs to use HTTPS, and essentially just check the protocol used and do a Response.Redirect with the correct protocol if n... | d1841d53c18c3d709649bd46100d54271c9b7f410bc8aeb620081c750fb887a1 | ['712cef3735eb490bb80cdde699d189b9'] | I'm not sure about the WebServiceHostFactory, but it sounds like you're hosting the service inside IIS and it's got more than one authentication method selected. If you've got IIS 5 or 6, try going into IIS and viewing the properties for the website or virtual directory containing your service. Go to the Directory Secu... |
d04646f12f22955e3a6acc387429f991c61a10919551ece054dc61435f3b56c2 | ['713cbcee82574d0ba1c65d53ff05b899'] | A solution that seems to be working is wrapping up the VBox in a spark:Scroller component like below:
<s:Panel width="100%" height="100%" top="50" bottom="10"
left="10" right="10" title="{FeedItemsRptrCont.height}">
<s:Scroller width="100%" height="100%">
<s:Group width="100%" height="100%">
... | 2a08956a8d6339029ee07ac5f820ee437c50e8b2ed4a3f51081473f9f61fe7f9 | ['713cbcee82574d0ba1c65d53ff05b899'] | Since the files/list (https://developers.google.com/drive/v2/reference/files/list) is automatically paged, I'm looking for a way to get all files matching a query in several batches (using a while and nextPageToken). I would also like to show progress of that happening, but that requires knowing the total number of fil... |
2977712b44f094a4ff2df94a116a337567b93de9f0903a13eae693c7b6eb0075 | ['714202cfe11b47a68e1fd80adaec21e1'] | I'm a VERY basic user of code, and am trying to complete a personal project........
I've managed the 1st part of my project, but for the life of me can't figure out the final part.
In short: I have two drop down options. The second appears depending on the 1st selection, and is populated depending on the 1st choice.
... | f758a52db9af367a2472617688834c6e8cf01fa1a2edec83b1049e95ece152b0 | ['714202cfe11b47a68e1fd80adaec21e1'] | How do I create a drop down list dependant on previous drop down and final choice displays text box?
E.G. 1st drop down has a choice of 1, 2 & 3. 2nd list had a choice of A,B,C if I chose 1 from previous, D, E, F if I chose 2, or X,Y, Z if I chose 3. Then if I chose any letter a text box displays with a message, (a d... |
ebdc2811c6d90df08f5d58b2b2b8bccb32ebe1ee39061c9cc008a09082327520 | ['7163d4ea966846e297fa8908c4075f98'] | I am using docker containers on CentOS to simulate devices on the network and have two tools that are to run inside each of those containers to simulate communication with actual network devices. Individually, either tool works inside the docker containers and can communicate with the outside world via one port we'll ... | 5b327f5553a2bb0f93b4a9bdca3fca472dd37e46ebca313723b3cc8fd7c3ddbc | ['7163d4ea966846e297fa8908c4075f98'] | friends, I have got ubuntu 12.04 LTS, and I need to install directx 9.0c redistributable file on it which I have already downloaded...But the problem is that wine always shows dxerror.log and closes...Please show me some solution. without it I can't install some useful windows softwares as well as MS Office.
|
66e4f247e6c470eef373ba52ff93904989ff543bc96eef1327b2de33a9fdf6cf | ['717a699d14b642559734561ef9ced314'] | I search all the car offers from a website. I have more than 70 000 car offers. In one page, i can only see 30 car offers.
Page 1 URL : https://caroffer.com/offer/ => I can see 30 car offers
Page 2 URL : https://caroffer.com/offer/p-2 => I can see 30 car offers
Page 3 URL : https://caroffer.com/offer/p-3 => I can se... | 08b31ab23b8a854a6b0cf3ec388e7a7a8c97a259a3c96e87a2eb8d8ede84cf4a | ['717a699d14b642559734561ef9ced314'] | I would like to retrieve data in streaming from a website using Spark streaming. I think that I have to use custom receivers. So, I tried this :
import org.apache.spark.sql.SparkSession
import org.apache.spark.{SparkConf}
import org.apache.spark.streaming.dstream.DStream
import org.apache.spark.streaming.{Seconds, Stre... |
2d5eb7bd35599b2d9a33b452488bc130543bfe67d587f260bdac6c9962c22652 | ['718009bc7f00419db676f7d4e2dbc31d'] | So when a Select changes you want to set display none on all span tags beneath the product1 div right?
From the code you have there it looks like you will get the parent div og the select, which would be the div with the class input. So i guess you would have to get the parent of that div once more and the select all c... | fb7af41957c757c6e4974041253cc370c210d389be8f727fc470250644befe17 | ['718009bc7f00419db676f7d4e2dbc31d'] | I see that there is a space in the url you supplied to the http.post method.
"rest-service/quotes/health /director"
I don't know if that is causing it.
But I also see that you POST your request to the service. Are you sure that your endpoint has been set up for POST requests?
I would recommend creating a basic endpoin... |
7ed2991fe50b4db5993a03bbf4485400cfbe01136b856982535093431c72db33 | ['7184d6622a08498fb2b94be07dbf9a2d'] | I have such Vue component with Vuetify components:
<template>
<div>
<v-container fluid>
<v-layout row>
<v-flex xs12>
<v-carousel cycle continuous>
<v-carousel-item v-for="slide in slides" :key="slide.id">
<v-sheet
:color="slide.color"
... | 7cc0da59540b77da8b2947d077cf5dad273583e9465c1f36ba41f722093188eb | ['7184d6622a08498fb2b94be07dbf9a2d'] | I am trying Inertia.js (Rails on backend) to get working with Ionic app. It actually works, but when I click Inertia link I got error message that response from server is not valid Inertia response - "All Inertia requests must receive a valid Inertia response, however a plain JSON response was received.", however all H... |
6ce4276a3aa0d6f22ed4b0d5a97512ec4d8a832ed3a2f90f5472ae2be89da1bd | ['7186ddfabfbe46aa95ade14de607c2e1'] | If <b>Date</b>, <b>Name</b>, <b>Hobby</b> and the <br />'s will always be there in that way, I suggest you use strpos() and substr().
For instance, to get the date:
// Get start position, +13 because of "<b>Date</b>: "
$dateStartPos = strpos($yourText, "<b>Date</b>") + 13;
// Get end position, use dateStartPos as offse... | 1179468e89e104167a366c032dcca5f38c087de8e1a6d122bbd67259c1ecbd68 | ['7186ddfabfbe46aa95ade14de607c2e1'] | The reason why all of them go at the same time, is because you select all of them, $("textarea") returns all matching elements.
To prevent that behaviour, create this (I didn't include the event functions for readability)
// Do things for each matching elements, separately
$("textarea").each(function() {
$(this).fo... |
495f1811a385996868c0d3565feeb7a49556addb874d8ee0b17574aad6c91771 | ['7195cb7bed61445fb82d5ca6a3d6bdf0'] | I'm writing an application in which I have to log on to a CRM 2011 server from ASP.NET code. I quickly found this article:
http://msdn.microsoft.com/en-us/library/cc156363.aspx
The problem I'm having is in this bit of code from that article:
//Create the Service
CrmService service = new CrmService();
service.Credentia... | 07c5839d2a037ff4adc8fc377e66dfe25a5452fa02f286f0293c51703bbfa74c | ['7195cb7bed61445fb82d5ca6a3d6bdf0'] | After a lot of fighting, here is my solution.
[MacroImplementation(Definition = typeof (ControllerNameMacroDefinition))]
public class ControllerNameMacroImplementation : SimpleMacroImplementation
{
public ControllerNameMacroImplementation([Optional] IReadOnlyCollection<IMacroParameterValueNew> arguments)
{
... |
5581f8f69f20e9f9224a0b1107551c74c32bbad0bcd780dd37da9821eda1f22f | ['71c0dd8e29194dbbb22585a3151318cf'] | Using pose for defining the terms should work: (although there may be another way)
Require Export HoTT.
Theorem th_2_8_1 :
forall (x y:Unit), Unit <~> x=y.
Proof.
pose(g:=fun (x y:Unit)(p:x=y) => match p with idpath => tt end).
pose(f := fun (x y:Unit)(s:Unit) =>
match x,y,s return (x=y) with tt,... | ad5a021d8226ecc79cfdea6bad27d2b076a9e84eda691ce78a92d222e299b496 | ['71c0dd8e29194dbbb22585a3151318cf'] | I used this (after RUN apt-get install -y python3):
RUN apt-get install -y locales
RUN apt-get install -y language-pack-en
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN python3 -c "print('UTF8 works nice! ')"
And it prints UTF8 works nice! correctly.
|
01c131c6bf6037fbcc5ba31d5282e693d77de240be95f8dece73fd7e70be9272 | ['71c53c387849415a8465cb2e3eacc8ee'] | The problem that I am experiencing is that when I try to connect to the database that is in a docker container, I keep getting the error SQLSTATE[HY000] [2002] Connection refused through PDO. I have tried the methods mentioned here as well as some other posts that say very similar things, to no avail. MySQL is currentl... | 4773145b2dcbbb1296ab057c00ec9d7e26059c713bec0e894f0741ddaa661e08 | ['71c53c387849415a8465cb2e3eacc8ee'] | Using this tutorial from youtube you will install the Live Server VSCode extension for use with html files. However, you will most likely (although you haven't mentioned) be using PHP or other languages because apache supports it. For this, use this tutorial from GitHub. It installs a browser extension (compatible with... |
8433654b504748a15ce13acd6aeb740306fd676c231ba7a1488555b9df278c59 | ['71d3d2a4636740ddab3cbebcc5f76b3f'] | I'm struggling to think about how to achieve this. What I want to do is have a series of questions (to represent a Likert table) in a CharField object like so:
for a in range(1, 11):
locals()['ATL' + str(a)] = models.PositiveIntegerField(
choices=[
[1, 'Disagree Completely'],
[2, 'Di... | c3e718c64d8331fd9126f5f592689544b9eebfac4b205f4a56fc0bc41834eb68 | ['71d3d2a4636740ddab3cbebcc5f76b3f'] | Okay, here's my answer (as well as a clarification for what I am looking for). Basically I had a series of Likert questions to put to participants which I wanted to represent as CharFields. Because each Likert question uses the same seven choice scale, it seems like inefficient coding to repeat the same functionality a... |
3faea8c4d178f03e34c2d26f3f9c45b06a538ef622d53644026c85f70416b624 | ['71dbf25d4b1046fb8da93b49d6cc3143'] | Use a setter method in your model to do it.
Your view would look like this:
<% form_for @post :url => { :action => "update" } do |post_form| %>
Title: <%= post_form.text_field :title %>
Content: <%= post_form.text_field :content %>
Tags: <%= post_form.text_field :tag_field %>
<% end %>
And then in your model you... | f80ff97f8e26e5c83aeb73a388b6baadad679998a57451f1a1cc121e83a49821 | ['71dbf25d4b1046fb8da93b49d6cc3143'] | As <PERSON> suggested, single table inheritance is your best bet. You would need to add the type field to the users table in the database and subclass your User model as below:
class Admin < User
# You probably don't need any methods here.
end
but you would also need to create a before filter. Quite similar to the o... |
8143b289540c610e01eadbd7605ac2b41a1750ef4ade4df8d2a1aee0c63085be | ['71e76ba8d7104a35b25480b2c8b1c4e7'] | Keycloak REST API allows to list the users :
http://localhost:8080/auth/admin/realms//users
and what is more useful to filter users with a query like:
http://localhost:8080/auth/admin/realms//users?firstName=Test
Is it possible to write the query with Excluding condition? For example :
http://localhost:8080/auth/admi... | 6ab07d528e4b050bec60d0dcc6a752400f1d2fd6da1ec3aac76af1ac66066ce0 | ['71e76ba8d7104a35b25480b2c8b1c4e7'] | Need to protect client-server communication. I was found a nice approach in .Net Core to generate X509 Certificates ( Self-Signed). But it's really lack of any information how to work with Certificate Revocation List in .Net Framework. Will be appreciate for answers to those questions :
How to create CRL file with ... |
aa602d11efaaff91bed649d11d94520ec6dac046ba004e2037495538e1a78bbf | ['71f35af0b58c472682a11843170a1a58'] | I believe you are right about the proxy being why you see only yourself. Any reference to the proxy will apply to only the object in your session.
Do you need to have the game and
player as session scoped? The fact
that you are trying to use them
across sessions indicates
that they are not session scoped ... | 45fc27f9e0ce984aecc63907d99bda950da335f478b81b2a2d7b0686ef1d0ad8 | ['71f35af0b58c472682a11843170a1a58'] | You are removing an item from the list you are iterating over.
One way to resolve this is to add the item to remove to a new collection, and then, when you have completed the first loop, remove those items from the list.
e.g. something like
synchronized (attendancePolicy.getListEmployee()) {
Set toR... |
ae5d33fd32d104429b9c3dda592370147bacc3deea961b68910ab0155d4f99b8 | ['72050140b0b54868b61a77411c6d7ecc'] | You can boot the system with a live Windows CD/DVD/USB and use "TAKEOWN" and "ICACLS":
TAKEOWN /f "X:\" /r /d y
ICACLS "X:\" /reset /T
If you do not have a live Windows, extract the HDD's and connect them another windows machine and reset them from there.
| a402ca88769e3bd31bd4dadf2c528877a05dcb7904f7a0b31d479f9bd545873a | ['72050140b0b54868b61a77411c6d7ecc'] | When adding a route to a multihomed host, you might want to have control over the source IP address your host is sending from when starting communications using this route. This is what src is for.
Therefore to answer your question by point :
No, it has no effect on forwarding traffic, it is only for local generated t... |
dde6c5872c5a8715f6cd057ae9c05731609c355eccd993b5d7f93876a2b2390c | ['7206533805894444b7ad76b4cdc23b8a'] | I am writing in python and have all my functionalities for analyzing datasets. Now, I would like to turn these functions into a user-ready application that, in a sense, works like an .exe app. In bokeh, I saw that you could create a plot, table...etc; however, is it possible to create a GUI where you can:
upload a fil... | 71e500edf0f86db095438db7f7b9242bde3ae110d86444bdb59d1f030233084f | ['7206533805894444b7ad76b4cdc23b8a'] | Like the title. I have tested my docker on my local machine using docker build -t container-name and everything worked fine without any errors. Once I uploaded to beanstalk via CLI EB it fails. I have figured that there is one part where I run <PERSON>'s chinese NLP where it fails. Everything else is working fine but t... |
3f89cc5b884af04e73a0621b328dda4fc1d27f1b62426936c7a4477b6465bfbe | ['721145df37104793abba17ca6aba9c6c'] | Background
According to PlanetMath <PERSON>'s lemma is this:
Let $G$ be a finite group and let $V$ and $W$ be irreducible $G$-modules. Then, every $G$-module homomorphism $\,f: V \to W$ is either invertible or the trivial zero map.
Corollary
Let $V$ be a finite-dimensional, irreducible $G$-module taken over an algebrai... | 1bdff7360a3c9a1e12f50ea66365459ed545e37ce4bdcb289d70bdfd97c61f2d | ['721145df37104793abba17ca6aba9c6c'] | I recommend this post and this one.
Generally, our data should go through to two main Quality Assurance (QA) prisms:
1.Automatic – Checking rules that don’t require the human eye, and, oblige to preordained rules. All those rules you want your data to fit. For example, for the road layer, no dangles. Or buildings shoul... |
af1d6a450d6daae9a47fc31dd09ef98455c2ced57191a7b8ac1ff58f4043e97c | ['721acef5384240e9b14031cc296cb86e'] | I am using spark and I have different kind of compressed files on hdfs(zip,gzip,7zip,tar,bz2,tar.gz etc). Could anyone please let me know best way for decompression. For some compression I could use CompressionCodec. But it does not support all compression format.For zip file I did some search and found that ZipFileIn... | b561a488fd2e31fb596487555c33332a8cfa2fd9ea5dd2ac274c2aeb58d166fe | ['721acef5384240e9b14031cc296cb86e'] | I was also trying the same thing, But did not find anything regarding adding dependency to build.sbt. By the time we can figure out how to put dependency in build.sbt, One work around is you can download the jar from https://www.versioneye.com/java/com.github.master:spark-stemming_2.10/0.1.0 location and specify this j... |
a09de8d600bacf679cfe154ccf89dea3a7bf0b4c7e87d273ec3d5cc4a2796b1f | ['722090b591c849fe930859f93d50c6d8'] | I'm trying to use Google Drive Reports API /admin/reports/v1/usage/users/all/dates
Is there any report parameter we can use to get total number of files owned by a user?
For example "accounts:drive_used_quota_in_mb" gives total used quota. Similar to this is there any parameter for total number of files?
| fd6a4979ae70f549040016daa3dd991a1fe7790bb6dc53ddf259e14f5c8a550d | ['722090b591c849fe930859f93d50c6d8'] | If user don't have permissions to the ".java/.systemPrefs" directory, at the time of installation it is showing below warning and stack trace.
Is there any way to suppress these warnings?
WARNING: Couldn't flush system prefs: java.util.prefs.BackingStoreException: java.io.FileNotFoundException: /etc/.java/.systemPrefs/... |
c0251f65617dc7ec26e68486ffa517045a9abd2defcb625531088f0ed0697142 | ['72244395993a4b9db4fa7201a4895902'] | I'm wanting to convert '.NEF' to '.png' using the rawpy, imageio and opencv libraries in Python. I've tried a variety of flags in rawpy to produce the same image that I see when I just open the NEF, but all of the images that output are extremely dark. What am I doing wrong?
My current version of the code is:
import ra... | 85cab7c2e25c5b506280cc18500dedc956e6df2b689d053925a41a07c3318907 | ['72244395993a4b9db4fa7201a4895902'] | Adding a little to what @TheoreticallyNick posted earlier:
import cv2
import threading
class camThread(threading.Thread):
def __init__(self, previewName, camID):
threading.Thread.__init__(self)
self.previewName = previewName
self.camID = camID
def run(self):
print("Starting " + ... |
e923ca556c4d5f810c1689b14a5cabf74057c4e833b6d7a5be1e7aca96ffc153 | ['723ac2ede211475594197c8e9ebba0fb'] | Any possible way to keep entering numbers, and when the same number is entered 2 or more times an error message arises or something like that? I need this to be answered in Java only. I'm new and I don't know where to go from here. I need help searching values in the array and then printing out all the numbers that hav... | 77b3d0cf167d0d965b5168201216f46d45fab1c101dad0a9e37d137dd7734f7b | ['723ac2ede211475594197c8e9ebba0fb'] | If the cell has a value not equal to 0 then it will add up, X = X +1 so then I can see how many pages I need to print. I'm not sure if this is the best way to do it, but here is what I have so far.
All help is needed! This is just a side project for work, so time is not an issue. I am creating this in excel also.
S... |
dfbc5e690f63be72b347ca9ff9172273fa9cbd89e4e9df761fbffbe4035749f6 | ['724feafa240b4aa2bf69edbcd0ed1839'] | I've been looking around for help on this, and haven't been able to find anything that actually explains it. I'm fairly new to Android programming, and I'm working on my first app, a score keeper for a card game.
In MainActivity, I have an ImageButton that, when pressed, prompts the user to enter in the number of playe... | 0c17d2451703fab4635ef09c02789e8510524d871f2130a87f917fbeda31c3b7 | ['724feafa240b4aa2bf69edbcd0ed1839'] | I'm working on an app to keep score for a card game, and it was working fine until now. I have several places where I check to make sure that the number put in won't cause any errors, that is, they don't break the rules of the game. If such input is encountered, the app opens an AlertDialog telling the user of the prob... |
d54bb8bb59acbaa963656edb2b6487b2fd8691ae928df4cbe40ea888b9a98066 | ['7254941016db4113ac51ef835aca83d7'] | I have one variable v of length 20 that i wish to correlate with m other variables. For all m between 1 and 100, compute the distribution for the maximum absolute correlation coefficient between v and each of the other m variables, assuming the variables are independent.
In addition, i am required to find the probabili... | d44d60a419bd7c2bd4826566892a0d4b1a7fd1abced9e4b56cad81e7939e08fa | ['7254941016db4113ac51ef835aca83d7'] | Looking to plot grouped bar plots
data:
structure(list(Main = c<PHONE_NUMBER>, 0.<PHONE_NUMBER>,
<PHONE_NUMBER>), Total = c<PHONE_NUMBER>, -0.<PHONE_NUMBER>,
<PHONE_NUMBER>)), class = "data.frame", row.names = c(NA,
-3L))
intended output should look like this:
My current plot code which does not make sense to m... |
051385d23859e533bcf2564249ef361d3d152a86fa93ee7fa1a5a265b1bfc724 | ['7258c6bc46cc43ee96dcf7e0c605fcb9'] | We have e2e test integrated with Jenkins system. For a few weeks this test successfully ran both, locally and from Jenkins (as a part of the build pipeline).
At the end of Sprint, I modified the script to reflect Sprint changes and made sure it passed locally. Then, I merged the changes with master. Now, e2e runs from ... | 5c7a0d241bd8f089202800c7b882632735ba5011d7504a657c93f5848e88b71e | ['7258c6bc46cc43ee96dcf7e0c605fcb9'] | I've tried to put the descriptive error message and exit the test run via fail() function but only with a partial success - it appears that I am doing something wrong... Here is my code:
it('set up internal budget', function(done) {
var acceptBudgetButton = element(by.buttonText('Accept Budget'));
page.setInter... |
8602d6ff694b2bef7e89c022bffdc3d815dbb8950b9821051f81ef090cffa578 | ['7268856c8f9d44bd8ed97cebdc51d191'] | The solution to this was a bit of a hack - it's adding a dummy test that doesn't get logged.
Install pytest-ordering. Add a new file with a dummy test somewhere marked as last, e.g.
@pytest.mark.last
def test_dummy():
assert True
Then in the pytest_runtest_protocol function, skip the dummy test right at the start:... | 98c85c933e78e61f1d595ac58d28e61350b48073745a145ffa9014a174c8fa5c | ['7268856c8f9d44bd8ed97cebdc51d191'] | I'm setting up some configuration in conftest.py for rerunning failed pytest tests in specific cases.
This function has been added to conftest.py. The idea is that a test can be set to retry by using the request fixture to set request.node.retry to True.
def pytest_runtest_protocol(item, nextitem):
"""Checks for manua... |
8cc8594b74ac0af599a5ab34b38b1b8c6b14109ab23f8fd5bfcc093b84112230 | ['7270b0132f0b4b8fb07dfa5f8f6e538a'] | Personally I just studied Philosophy by taking courses at University. These were the pieces we read in class that I found interesting and engaging (we also read some <PERSON> that I found way too dense, and I think a couple others as well, but I always liked these the best). | 36412be5d27ba30bbe113a248792d7af13cf83653b23c855806d082b48f2fa6e | ['7270b0132f0b4b8fb07dfa5f8f6e538a'] | First I encourage you to use image layer instead of render layer, because otherwise you will have to render the scene each time you open up Blender. It could be quite disappointing for very complex scenes. For doing so you need to save your image with all the passes by using the OpenEXR Multilayer
Now for the exact rec... |
8945d3e6a0a226d6591310ba0b48af78f916fbfba470712b02c5a233eadb7add | ['72804a05a5e6486ca5cf71949f6f79eb'] | I want to get the content of request object after it serializes passed object. I want to uderstand how retrofit serilizes my object.
@POST("/RegisterNewDevice")
public void registerDevice (@Body Device device,
retrofit.Callback<ResultBooleanResponse> callback);
How retrofit will represent my Device object? Let's ... | a4e3a4e2f13119ff226d535d9f1c03bdbd28761bbfe16ab5309a20de4262f35c | ['72804a05a5e6486ca5cf71949f6f79eb'] | I have an activity for user registration. At some point, in that activity I have a fragment with registration form. When user click REGISTER button I have a an event dispatched with event bus like this
In RegistrationFragment (contained in RegistrationActivity)
EventBus.getDefault().post(new RegistrationSuccessfulEvent... |
8bd40420405badf666b95116cc83f85b9ebc74310d2facf721f7410ef1d5c0ea | ['728d57f4d26d4e76ab5b3b6094bdd2a1'] | We're seeing issues with our Rails app on Heroku under load where request queueing (as reported by New Relic) rises dramatically, despite CPU utilization being well under 100% and memory usage being well within the dynos' capacity.
The places I've thought to look for issues at this point are resources contention (e.g... | 577d0027cd388fdf1682dcebfee76dddb50c558b819d7698461bc7aa92572c93 | ['728d57f4d26d4e76ab5b3b6094bdd2a1'] | I have forked Jekyll Now from https://github.com/barryclark/jekyll-now/commit/fb2f50ba6fab860134c416cc097707da159d8c6f to my mofomofo account on Github, and renamed the repo to mofomofo.github.io, but nothing's showing up there but a 404.
I have established that it is buildable and runnable by pulling it locally and ... |
8b3418a46c1f63b2be4e05ecd91a0c9bdfe84b076e19f11986495ddd125e3f4f | ['728e32a6ae1e41c98eee3579aaabbf11'] | First of all you need a running mysql instance. There are 2 possibilities :
(1) You need the domain :
local instance / domain : localhost
Remote instance / domain or IP
(2) You need the port of the mysql server instance
Default is 3306
(3) The name of the database you want to connect to.
Lets say you need to conn... | 4ef3443051e6c5f0f8b0be8887b05bb2ac44ed8270f482b504a02808ff635986 | ['728e32a6ae1e41c98eee3579aaabbf11'] | I have several sensors measuring temperature, humidity , and air quality.
The data is collected through an IoT platform and stored to a Cassandra Cluster. For the data distribution to all other applications from Cassandra Cluster, I have created a Rest Api in java.
The data collection scripts are written in C and pytho... |
dfed3e1c5f79789c006eb73b2f26539ce21d6b70c26e483acc74a0aed60b9faf | ['7292d34e3e484fb1bfe18e628016f099'] | I have been created feature carousel slider by using jquery.featured.carousel.js file and some css.
Here is my jsfiddle LINK.
When run these source code in localhost, It is need everytime refresh the page to getting responsive view when i resize the window.
Here is my javascript:
<script type="text/javascript">
$... | 0240e2a77e1d70055693b5b47595fe764546e4c1a68188156e5297f95cd13d52 | ['7292d34e3e484fb1bfe18e628016f099'] | I have been created email newsletter using mailchimp
Now i want to add image slider with responsive design,
But i have been searched lot online..
Some online docs says can't able to add image slider in email newsletter.
For example this link told., its impossible.
So, may i know, what is the exact link, to achieve thi... |
b51e6bdb7c43e29e1183ce90c4576397570ccabc98404b23f6877f9606d12bb0 | ['729494db4ebb4f8d9a6811e2fa0d53fb'] | I am using this spinner on my site.
For those unfamiliar with brackets live preview I believe that the editor serves up the site from a temporary http server and updates whenever there is a change in the code.
Whenever I check the site through this feature the spinner works. the same goes for if I go to my website ... | 57aa0d66c472448e0b8903c9633f60f1c6fe12e30edef8a4c08f7dd4448b9481 | ['729494db4ebb4f8d9a6811e2fa0d53fb'] | This error was caused by a compilation error somewhere in the rails asset pipeline. This specific instance was caused by a rogue TypeScript file in app/assets/javascripts after I had removed typescript-rails from my Gemfile.
Thanks to @dstarh I was able to find the error.
I'll leave this here since I couldn't find any ... |
729bf30f08a56ffef644bdd6af4abb1361185afb907a22a762c38d851ec866af | ['72b7b6054e9742d681cf280239d9479b'] | You can do it like this,
var optionalIntArray: [Int?]
optionalIntArray = [1, 2, 3, nil, 4, 5]
When you print the array using print() you'll see it like this,
[optional(1),optional(2)...]
That is correct output because, your array is supposed to hold optional int which will be represented as
optional(1)
for an inte... | d4b8fdbe41e0b0bb4b655822e557c05d12f74b50daae2452404e14d78c2eba5e | ['72b7b6054e9742d681cf280239d9479b'] | Hi I was studying about initialize class method in objective-C. I came across this code which confused me
+ (void)initialize {
if (self == [Car class]) // what is the use of method class??
{
// Makes sure this isn't executed more than once
_defaultModel = @"Nissan Versa"; // initializing the st... |
3554398f074bd5cfbf9f90934e43b09a9a91a00a7b389d0acc34583c33444417 | ['72bbba3e00a5428f8f634301d033afbc'] | Actually you don't need to define the access callback, it defaults to the user_access() function which is powered by the hook_permissions from drupal.
The access arguments in the hook menu should be the same as the array key in the hook permission.
So try removing the underscores from the
'access arguments' => array... | 5d405f4b48da623eeffc1e64290b0875f65419db0214e95c1ba322b324bcda1e | ['72bbba3e00a5428f8f634301d033afbc'] | The system_settings_form($form) function is a shortcut that allows you to build a form without having to worry about the save button/submit handler (those are added automatically).
If you want to build a full form including submit handler etc you'll have to define a form function and a form submit handler and then cal... |
c856a2a488cd0e93969573f1530cc8a56453d5525b297d96c3f4fdadce8cd02e | ['72bbf3b499e44101bf7c7363d8689f7f'] | Be sure to log out of your ArcGIS Online account(s), or blow away your browser cache, and try again. It sounds like a pre-existing login is being used when you load the app. You can check the cookies in the browser console if you are really curious.
Here's information on adding users to the ArcGIS Online organization: ... | 31a012ed5c2f12c0086de73e1409ca3f6346dda4ed291d91037461a6127359b8 | ['72bbf3b499e44101bf7c7363d8689f7f'] | @AmyB It's not a great position, this could be avoided by using the Steed standing stone power (Equipped have no weight [not just armor], armor doesn't slow you down, +100 capacity). If I'm using heavy armor, I usually pick it up pretty quickly. Admittedly, people are pretty picky about their standing stones though |
bf17d09f57fa0e6778e95285d082fbd5bca2e1f438efd3c79abb9c5d9658cc82 | ['72d4003cc89646699546ad7c2a1965df'] | Using Slick.js - how i can remove current active slide? I made of an example, but nothing works
var $status = $('.pagingInfo');
var $slickElement = $('.slideshow');
$slickElement.on('init reInit afterChange', function (event, slick, currentSlide, nextSlide) {
//currentSlide is undefined on init -- set it to 0 in t... | 74f86fb100fb60cb1833308e2fa4aadb4dabdddbb822f40598c15ad036834291 | ['72d4003cc89646699546ad7c2a1965df'] | $doc->_script = preg_replace('window\.addEvent\(\'domready\',\s*function\(\)\s*{\s*\$\$\(\'.hasTip\'\).each\(function\(el\)\s*{\s*var\s*title\s*=\s*el.get\(\'title\'\);\s*if\s*\(title\)\s*{\s*var\s*parts\s*=\s*title.split\(\'<IP_ADDRESS>\',\s*2\);\s*el.store\(\'tip:title\',\s*parts\[0\]\);\s*el.store\(\'tip:text\',\s*p... |
d95d0c10b7d6864ab19bbfcbbd7b74cef0f640e88568a2a3949ed95d0661f588 | ['72d745aed6734e7caf01cf2a6f958540'] | I have a billing web application & that application is used form different domain by different client. in my local server i am regularly upgrading feature of that web application. then after upgrading one feature i have to login each domain's cpanel or ftp then update particular code that i have changed.
this is very m... | b3fa2445d1593fb3ec195e64a27dbcdcd5506c4e957e3d08a73700c8fb421739 | ['72d745aed6734e7caf01cf2a6f958540'] | in Laravel i can get value of two column in one table in this code
$customerName = Customer<IP_ADDRESS>where('id', '=', Input<IP_ADDRESS>get('customerID'))->first()->customer_name;
$created_at = Customer<IP_ADDRESS>where('id', '=', Input<IP_ADDRESS>get('customerID'))->first()->created_at;
i want to know that ... |
347082a43d7987616b64391735a39149fd2de9cb816a052c9923f61c70921c1a | ['72ed4bf931a749deba98559acb5c8072'] | Its obvious, in this sentence I'm talking about using apache + mod_php, or changing the sentence, not using a proxy service to process PHP code and execute it on the web server itself. Obviously, if your apache are behind a lighthttpd, nginx, haproxy, the problen can appears from one of them. | 314772114b81cfe481a2360a1f30f7884f068c382abcff81a3e8260fab3165e3 | ['72ed4bf931a749deba98559acb5c8072'] | Thanks again rjg. I've made changes that I believe should mirror your suggestion, but I get an error. I've posted details above about the error and updated the script. Any idea what's causing this? I'm using VSCode + Blender Development to launch blender. Also, if you need the FULL detail of the error results plea... |
5615427a7270e330fd092d09d70297f4c1323aa7b3bc419afd9536d9f373174a | ['72ed56f4448b4aa5a197e097de14bbde'] | I dealt with this problem earlier.
If you show the response of a cross-site request in an iframe, the new browsers are denying the access to this iframe, because of the same-origin policy or cross-site scripting/request prohibition.
For more information see here: IFrame Permission Denied
If you want to dynamically add ... | 658c43aa24307711d365d96e60db62d4372ebb4131b85f4517370087ac0d50a4 | ['72ed56f4448b4aa5a197e097de14bbde'] | As far as I know, you have to structure your document like in the examples.
jQuery is searching a header with an anchor, followed by a div block, and so on ...
Example:
<div id="accordion">
<h3><a href="#">First header</a></h3>
<div>First content</div>
<h3><a href="#">Second header</a></h3>
<div>Secon... |
1e26db9ffa36abf5c8667c26e58f740c6c4921f84915bc90a713d9abec494ee8 | ['72ee04d1b510431ea407dd54c38d3d3c'] | всем привет задам терзающий меня вопрос, есть таблица human с строкой data_okon (с датой окончания) и строкой status, после как пройдет дата окончания мне надо присвоить значение в строку status неактивный, но если время еще не вышло, или при добавлении новых людей их статус должен быть активным, и все это должно про... | 1a8d4cb2366a5e57785d0e84ad7229136f4782927c4d41eb85df8ffe2cb04c6e | ['72ee04d1b510431ea407dd54c38d3d3c'] | This answer might be a bit late but here we go.
Statement 1: A set is either finite or infinite. (Law of excluded middle)
Statement 2: A finite set cannot be put into one-to-one correspondence with a proper subset of itself. Proof.
Statement 3: So, by statement 1, if there exists a set which can be put into one-to-one... |
50978f91bd896e859950d9d6edcab4b75e0f1156b7d4234d04db88b3ba94a2c9 | ['72f6a3dba79c4a0da324616321ab5ced'] | Try this:
<HEAD><TITLE>Server Disk Alert</TITLE>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.js"></script>
<script type="text/javascript" src="../../../Backup/2012/Web Projects/jquery-1.8.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
... | 29e6547cd1115e09d3e45deb8be4c0e5f36ebdf3c0ccb6eefd7ba3165479ee8f | ['72f6a3dba79c4a0da324616321ab5ced'] | Suppose if we have to modify or do some prepossessing on parameters of ui-sref like below:
ui-sref="post({postId: post.post_id, postTitle: post.post_title | myFilter )})"
As shown if I want to apply my custom filter to parameter, is there any way to it?
I have tried like above, but it didn't worked and was giving synt... |
fbae458c7d9185d7a7ce65cdf12406b7d923944ce3d32550e4b946210e6db566 | ['72f969950bd94f10b5b1636d1b3fee1d'] | I'm at the start of building a comparison page.
<form>
<input type="text" id="input-one" />
<input type="text" id="input-two" />
<button type="submit" value="Compare"></button>
</form>
<div id="form-image-display">
Basket
</div>
<div class="drone" >
<p class="part">H107</p>
</div>
<div class="drone" >
<p clas... | 8132c8c5d420876f405a90a1adcd626a0bb73d1382c3172ef37c5551aa7b2003 | ['72f969950bd94f10b5b1636d1b3fee1d'] | I've a simple mod_rewrite rule
RewriteRule ^product/([^/.]+)/([^/.]+)/?$ product.php?partNumber=$1&partName=$2 [L]
It works great for 99.99% of products but there are 3 or 4 products which have a forward slash in their part number (eg PART001/1)
which rewrites to something like:
/product/PART001/1/part-name-here-for-n... |
6879bfefcdc705a5710c3bcd947cd3245d2743f75259bd7e504e0361e87d6b3a | ['730654e560ff4aba837ff5ff8921b9be'] | i have a page split in two:
on left {{> expenseList }}
on right {{> Template.dynamic template="expenseForm" data=expenseData}}
on left its a list
on right its a form to enter elements in the list.
desired behaviour:
1: form is empty and ready to add expenses
2: add an expense, form is cleared and ready for next
3: if... | d4f90bcd5ee8332859493189f42233232c6a7f57d21229df4459bc9f7da7a0f8 | ['730654e560ff4aba837ff5ff8921b9be'] | here's what i am trying to do:
i have a json that gives me albums. i have on the left side the list of albums and on the right a form i use to add albums and refresh the json.
form appears on click. click on button = create new, click on album = update.
i want the form to also work for editing. so if i click on an albu... |
61511b18da65f8e8e3e4bb938e82263885733cf43a312f460d482c56a7fee186 | ['7308b486f5c34ebe8bc05542c831f7d3'] | Found the answer. For anyone with a similar problem: If you run MongoDB on Homestead it creates its own instance on the virtual server and logs in without using any credentials. Get the ID of your running Vagrant process by typing vagrant global-status and ssh into it by vagrant ssh 1a2b3c. Then just run Mongo on the v... | 813a5d62f8216686242e6a5c98c74786d55d75bad4f3bfe9f3a91c4c27b72b9d | ['7308b486f5c34ebe8bc05542c831f7d3'] | When I refresh the page, my protected route made with react-router-dom is rendered before mapStateToProps fires and the component receives props. This causes redirection to /login route, although I'm already logged in.
I have a Redux store looking like this:
const initialState = {
isAuthenticated: false,
user: ... |
992b1f0e6e02e8d25bbabd69c68b94b56bfa8b52220f69673296f3cd51f5cb60 | ['730cb70c407f44228da198e4285740c7'] | How do I move a sprite automatically back after dragging it somewhere on the screen?
I tried:
-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
for (UITouch *touch in touches) {
CGPoint location = [touch locationInNode:self];
CGPoint newPosition = CGPointMake(location.x, self.size.h... | d829b67974a26a58cdadcca2cf8b4448eb8782e503ed71db585e0bff4f85c6d5 | ['730cb70c407f44228da198e4285740c7'] | In my SpriteKit Game i have several sprites with different name properties .
for (int i = 0; i < 10; i++) {
SKSpriteNode *sprite = [SKSpriteNode spriteNodeWithImageNamed:@"png"];
sprite.name = [NSString stringWithFormat:@"name%i",i];
sprite.position = CGPointMake(100, 100);
[self addChil... |
b2aff58a437a25b90df7436c8485601f7294f9f7df0097d0a0fc3c8f24a431d3 | ['7311dda6b48c47ddb3c2fc99b8112176'] | In my split app the detail view does not bind any model.
In the component.js I instantiate a named model like this:
// creation and setup of the oData model
var oConfig = {
metadataUrlParams: {},
json: true,
defaultBindingMode : "TwoWay",
defaultCountMode : "Inline",
useBatch : false
}
// ### tab-e... | 9df8df5ecda01b9c9d92264b32bead36631a53cfde6f0fc6d7f5c68d53291b42 | ['7311dda6b48c47ddb3c2fc99b8112176'] | I have an entity set for employees (EmployeeSet) with an association to further details.
EmployeeSet(1) holds the data for one employee and is bound to a detail view. Inside this view I'm using a form to bind the further details with an association called ToFurtherDetails.
No I need one property from EmployeeSet(1) ins... |
49904e5911f771185c8550db43ae3309d90f5c87bf7f7ec8674243b6ebd4c965 | ['732192fdae1f44afb1bb8021d54bf695'] | I am writing a script to scrape a Wikipedia page with a list of names for those names. Specifically, I am scraping a Wikipedia page with a list of the names of every jazz pianist (according to Wikipedia, at least). What I want to do is append all of the pianist's names on this page into a list. Here is the link to the ... | 5ff1a85bdddf07c69e2e3c05a03b713c88b8f2678ad3bc269d63c2f57b92b712 | ['732192fdae1f44afb1bb8021d54bf695'] | Problem Summary: Given a DataFrame pDF that contains basic data on the names, instruments, and birth dates and death dates of jazz musicians, I want to create a column that either calculates the lifespan of the musicians who have already died, or returns 'N/A' for musicians who have not died or for whom there is no dat... |
d61a0a2b2818d2cd79c3d9bcf46bf4eb4015b2cfc826104346d0da918de6831e | ['733a9146a5b545089c2139d8005b8a4e'] | I am using JNotify in one of my Projects on a linux system (arm7).
And it works great. If i change, rename, delete or create a File it throws an Interrupt.
But I would like to us JNotify to get informed if the Linux System change a File by itself.
I am using a BeagleBone (embeded Linux System). There is a file called v... | 0883fbd59211c61bb29420d648f98e00ab9b68101cae777f192082a164a73d2b | ['733a9146a5b545089c2139d8005b8a4e'] | I'm programing on an embedded linux system calls BeagleBone Black. I'm using JDK vers. 1.6 to run my programms.
At the moment i write code on my normal pc (win7), create a .jar and transfer it via FileZilla to the Linux system (arm7). Then i connect with the embedded system using Putty (ssh tunnel) and start my progra... |
94ca06ff385f8e1b765a464a6e3ddd053828f0950b00bcae8e4016a7e3fdc2cd | ['7343adb3deec492f98d3c0d48c122763'] | I have boot camped the Mac to have windows. I had an issue so deleted windows during setup to reinstall on the partition. In this process I think I have lost my recovery for Mac as its just all fallen apart from there.
So gone into disk utility to delete the partition to restart it now I am not seeing the partition at ... | 8781b792809cfdec6a3e1602b8d8063c6bc364048c1db5e7870b7bd9556b9906 | ['7343adb3deec492f98d3c0d48c122763'] | I want to uninstall a program using WMI, but I get this error : "Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))". Installing it worked without any problems, using the same ConnectionOptions.
Is there any possibility that the Administrator user has rigths to install software, but not to uninsta... |
cfbf50130a182c7162abc9fc7cda1c18f92a26be435a147ad3ddd429e79ac5c0 | ['73458ba90e3f471a816744f330827534'] | From http://www.programiz.com/article/python-self-why
__init__() is not a constructor
[..]One important conclusion [..] is that, __init__() is not a constructor. Many naive Python programmers get confused with it since __init__() gets called when we create an object. A closer inspection will reveal that the first par... | 6465ec6ba25ed55be0baa49254c5124ce766a6f91f53e8d96cd201dc0ea3681f | ['73458ba90e3f471a816744f330827534'] | I have a .NET application running in a production environment, which connects to an Oracle database back end.
For availability reasons, I need a local database cache. The current caching solution using DataSet does not perform very well (data loading from back end, storage as XML, local queries on the cache, multithrea... |
309b8360f4923c4f95eaf10bd9523677393237087ff04acb451bdf635227654b | ['734f63fae28b49fb8cae108a2dc0ae6f'] | Thank you! As the wiki in your answer says: *Installation of a bookmarklet is performed by creating a new bookmark, and pasting the code into the URL destination field*. So in particular for firefox I had to *show the bookmarks bar > MB on Bookmarks Toolbar > Create a new bookmark > Copy your Javascript code in the `L... | b70eb7749f3c6f008bf9484b3eb868e145984eca24b1242279cb44888421fa11 | ['734f63fae28b49fb8cae108a2dc0ae6f'] | @Luuklag could you please explain how? Because the tab does not appear in my browser on firefox for the stackexchange site, and manually transforming: https://stackoverflow.com/search?tab=newest&q=banana+pancakes (which indeed shows the results sorted on date), to: https://stackexchange.com/search?tab=newest&q=banana+p... |
721d2b4199c6d5a97c76ab88c04afb262d12a9280e736c4e3e0fc851312e3964 | ['7371ac85401349859e99efd21e8222f5'] | This should do the trick:
$(document).ready(function(){
var list = $('.gallery .ggallery .gitem');
var j = 0;
var f = function() {
$('.gallery .gimages').html($(list[j%list.length]).html());
j++;
};
setInterval(f, 2000);
});
See full fiddle: http://jsfiddle.net/kokoklems/nQGw9/
Wh... | 5fd734c694e09a1dab22421770c18729cbeebd971e5c27630c308bc3c236d34b | ['7371ac85401349859e99efd21e8222f5'] | There is simply not enough splace in the first block to apply the padding. The .tabs is 85px height, the image is 70px height with a margin of 5px top. So the remaining vertical space for your text is 10px only, and you add 7px of padding.
You need to reduce the size of the image in my opinion.
|
162df2388489b816bc2420105dbc1cdea20553748f622e790a9f53d50bb1150d | ['737516c3992146dabce820c47117b0c5'] | Finally after digging through internet and local help I have successfully enabled Continues Integration and Continues Deployment.
Step 1 : Install Windows Platform installer + Web Deploy on TFS as well as on Remote/destination Server.
http://www.iis.net/learn/install/installing-publishing-technologies/installing-and-... | b1112d6550693925b5dc1f671bd92a806ebe16e2f204e1198aadfda68b97bb48 | ['737516c3992146dabce820c47117b0c5'] | I am trying to implement continues delivery using TFS 2010. Package is created but package is not deployed to Remote Server.
Following things I have done.
Created "Web Deploy" publish profile for all the websites residing in single solution
Installed WMSVC on IIS 7
Verified TFS has VS2010 installed
Following are my... |
8190e1b850feb9dcc446284d3225f8e613f6437662bb71894d3fdcbadfe35593 | ['737e92efbe1040ccaa2b85d45431a9de'] | i know how alrdy.
here i attach the code & sample of the data i hv done.
hopefully this would help fresh grad like me who hv trouble in undrsntdng CRUD
<html>
<head>
<meta charset="UTF-8">
<title>Countries CRUD</title>
<style>
input[type='submit'], button, [aria-label]{
cursor: pointer;
}
... | 95e3ab2074bf0ca2c8a94835b17a3af0f74f37e7941236533ecbbb7e90013fc7 | ['737e92efbe1040ccaa2b85d45431a9de'] | <body>
<form action="javascript:void(0);" method="POST" onsubmit="app.Add()">
<input type="text" id="add-name" placeholder="New country ">
<input type="number" id="add-popu" placeholder="New population">
<input type="submit" value="Add">
</form>
<div id="spoiler" role="aria-hidden... |
48eceb7f3d1e0a47f9c10e1362d0cc6a6a374dd5f1f98c4a00680fb8b01616fd | ['739815ebcdd64568a43507af3e8fea6c'] | What does "realm of Symbolic" in the following passage mean?
1: Apparently it seems to me that the writer simply wants to say the "realm of philosophy" or the "abstract matters". As, the two questions which the writer has placed under this realm are of abstract nature.
2: "Symbolic" is used is psychoanalysis as well. B... | 22caa11415dadef10eac7e358e3d4b4e7c7d60e1be6615a42427e576d662b5b3 | ['739815ebcdd64568a43507af3e8fea6c'] | Additionally I could place my vote to mark these answers as any number of things which make their right to be here invalid. The asker has been scammed, a form of robbery, and would ultimately like a positive resolution. This much is simple. These answers discuss many different things, but all have one thing in common. ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.