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 |
|---|---|---|---|---|---|
da25b877451795663c2eeb077a49236ce83df93abea9ddc953f9540a2a20b224 | ['4ab31196d6104bcb8c5ba3035b2b81e3'] | I have a logstash kafka consumer group subscribing nearly 20topics which isn't performing well for a particular high priority kafka topic to process, so I've decided to remove one topic out of the consumer group and launch a separate consumer group for high priority topics, but unfortunately with that i'm losing the of... | bb441f23b1a969b3fc5cc0101926b419b93bcabe0d3e854522cfe21014bdcf87 | ['4ab31196d6104bcb8c5ba3035b2b81e3'] | i want to upload only the delta of a file in google cloud storage(gcs=google cloud storage). as gcs only allows to get a crc32 hash of the entire file but not the some part of the file (x - y bytes) i'm building local version indexes like git(but a poor version). now i just want to upload the delta of the file, for whi... |
967374e18dffab8edebd0798e05bdf8cce3a614accdd9e7a7ce4e0f513616710 | ['4aba6e2dc0984710b5cd6326bfea2bdb'] | i had this problem too, after spending much more time finally i've found a solution, first thing you shuold manage your code with layouts and then in any pages that uses layouts you must add : import Link From 'next/link' just After importing layout line. i hope this solves your problem
| d144d211dcd2621a9fb964a12968c42ae9b8f4cc5c4b2969239b61588483a0c4 | ['4aba6e2dc0984710b5cd6326bfea2bdb'] | here is my code i've got access token , i can create boards and etc but for creating pins errors happens ...
i am using official pinterest javascript sdk , and i've added my https://localhost:3000 to white list redirect_urls in my app settings
<script>
window.pAsyncInit = function() {
PDK.init... |
a4a838927a5511b347baf333654f3eab6719ac5eadc0870ab964f50444497929 | ['4ac0490f07964465a9df9cce38bee3f3'] | i'm trying to use ajax wide browsing on phpfox but i dont understand how it works,
any idea please ?
i found in static/jscript/main.js this code :
$Core.ajax = function(sCall, $oParams)
{
var sParams = '&' + getParam('sGlobalTokenName') + '[ajax]=true&' + getParam('sGlobalTokenName') + '[call]=' + sCall;
... | c07195ba449b5016f431037963f3332f6584eb71c6a9e82a207da9d614749cba | ['4ac0490f07964465a9df9cce38bee3f3'] | I'm using Hive 1.1.0, cloudera cdh5.4.7, Hadoop 2.6.0.
When i ran a query with an aggregation function with hive , i got the following error :
ERROR : Job Submission failed with exception 'java.lang.IllegalArgumentException(Can not create a Path from an empty string)'
The log file :
INFO : Number of reduce tasks not ... |
9768f10201a72fff0263ebc373e1df7ffa073a4810c68f5f38ecd743ddcd9414 | ['4ad2e77766174db8985756557fadac70'] | For the version 0.13.5 you will need a different set of parameters:
def readExcel(file: String): DataFrame = {
sqlContext.read
.format("com.crealytics.spark.excel")
.option("dataAddress", "'sheet_name'!A1") // Optional, default: "A1"
.option("header", "true") // Required
.option("treatEmptyV... | 5e86d71efbf44b5dda94075b41903f24a4f0ab75048ac7a4e872eaf136b3dc73 | ['4ad2e77766174db8985756557fadac70'] | I am having a similar problem. But in my scenario the collection I am parallelizing has less elements than the number of tasks scheduled by Spark (causing spark to behave oddly sometimes). Using the forced partition number I was able to fix this issue.
It was something like this:
collection = range(10) # In the real sc... |
9d8c950cdce882c0da294acabaae56ef140135f4b6c11cc7b6d5655fc5aa1078 | ['4ad4d2ee5fea41778ea1904450270103'] | The error appears to be in the code below. I revised that part of your code.
Try that and see if that works
if (data.HasRows)
{
while (data.Read())
{
Session["userid"] = data["UserID"].ToString();
Session["typeid... | 9ba59a49b9bc2787d38f398c263f313971648716341ac050d431ea263556e2d0 | ['4ad4d2ee5fea41778ea1904450270103'] | I am not seeing any type of sort on my data when sorting by a "date" field in mongoDb queries. The "date_recorded" field IS a date field.
I've also tried sorting on a time_stamp field. The sort order doesn't appear to be working whether it is ascending or descending.
I cannot seem to figure out why it isn't working. ... |
4c3ac5489f7db94e6385df1b8604f46dbb936fbcf3e69ba300e8fc7d2082c28b | ['4af24e0d0b314867932f446932efee37'] | As you've shown the probability of getting at least one side A in $n$ tosses is $p=\frac{1}{m}\cdot\sum_{k=0}^{n-1}(1-\frac{1}{m})^k$ which features a geometric series of ratio $(1-\frac{1}{m})$. So $p= \frac{1}{m}\cdot\frac{1-(1-\frac{1}{m})^n}{1-(1-\frac{1}{m})}
=1-(1-\frac{1}{m})^n$.
This gives a hint for a simpler... | 91cbc234e2eb90c15e93a80c931cd8d8e627dcb66b81357405c86c9b425469b5 | ['4af24e0d0b314867932f446932efee37'] | You have a few issues:
users migration:
$table->unique('username'); statement is for creating a unique index, not a column: http://laravel.com/docs/4.2/schema#adding-indexes
Change it to this: $table->string('username')->unique(); - this will add a column and unique index for it.
encomenda migration:
$table->string('... |
2e42ba96bdfb6ead67e74cedb42c210497f8ddff99d811e418ed3f6bb1727dbd | ['4af4217301ed4c11ad686382db152d05'] | In order to use rectangle1.getPerimeter() or rectangle1.getArea(), you need to create a class that looks something like this:
public class SimpleRectangle {
double height;
double width;
SimpleRectangle() {
height = 1;
width = 1;
}
double getArea() {
return height * width;
... | 3fc47f36034f2d78d9e8e74df3ba05ba2f8abb22504017b4d5fee32a04254f13 | ['4af4217301ed4c11ad686382db152d05'] | The problem is that you need to create a object derived from class A before you can access its variables/methods using
A a = new A();
where "a" is the name of the object. Then you can access the getter method by calling a.getIntI. You can also declare the int variable as static so that you wouldn't have to instantiat... |
a3d24cabd98f731cb3523fd3d69ded07d10276b05b5bf0bd73c5c5e03bc0046c | ['4b0304194c584f16a6aa807fed674aa7'] | I want to redirect any request to the root of my site to an anchor on the index. So
https://example.com/foo
Gets sent to
https://example.com/#foo
I've written this .htaccess file (it also redirects http requests to https, that part works, but is included for completeness)
RewriteEngine On
RewriteRule ^/(.*) /#$1 [NE,... | 7a4cdaec31659cbfcf1794061303e09f81660c32e3bd072a418036419b94d402 | ['4b0304194c584f16a6aa807fed674aa7'] | I'm using a JQuery UI DatePicker to choose dates on one of the forms in the app I'm writing. Thus, my form input is a generic text field and I'm accepting a free form date string. According to this RailsCast, saving these strings to the database (I'm using MySQL) should "just work." I'm finding that not to be the case ... |
c9ce8180dcf9d8faba1936ea52a79fca1603e69103db068bdbe9de77f250729e | ['4b0b93aa31914e4aa5c5dfdd9133deac'] | I would go with the 10 oz. per adult. Children less. Cooked weight. As if extra some will take some home with them. This saves some from staying overnight on your floor to finish it for breakfast. So a good meal but not to much all are happy about. Were I live it is a insult to leave before all meat is gone. To your... | 711c06cada7f51a36d4bf6bf321c125fc2475b5988f99e889fd670f4e6bef354 | ['4b0b93aa31914e4aa5c5dfdd9133deac'] | It is safe as U.S.D.A inspected. I do wonder if it is from tougher breeds of beef? Beef can be aged at 27f to 29f in shipping. To age it. Make it tender. As bacteria works on it at that temp. Tenderizes it. So some what different than American grain fed beef. Little different texture & taste. But safe. I am more fami... |
419702fdbe7496d08860ab85f8762533641b9cb8f696b0b159c71fb645664061 | ['4b28e125c3f5494cb95c6842f55868d8'] | Tesseract provides a parameter to set the page segmentation mode (-- psm).
Below are all the modes, as shown in the documentation:
Page segmentation modes:
0 Orientation and script detection (OSD) only.
1 Automatic page segmentation with OSD.
2 Automatic page segmentation, but no OSD, or OCR.
3 Full... | 3f63ddc592baf3f7ad8a168dd2c4ec086945c2c0f1ea4a10e73508a6542c3e31 | ['4b28e125c3f5494cb95c6842f55868d8'] | You can convert the pdf to images for each page using fitz.
# import packages
import fitz
import numpy as np
import cv2
#set path to pdf
path2doc = <path to pdf>
#open pdf with fitz
doc = fitz.open(path2doc)
# determine number of pages
pagecount = doc.pageCount
# loop over all pages and convert to image (here jpeg)... |
2f15b5cb663d59d4bc7a6d6435acaf111a59052804a915de1d6af1986eb9ed4e | ['4b36cdca3e5942fcae73f1b074a963d0'] | I have an Artist Model which has many Reviews. Also Artists has many Gigs which in turn also has many reviews. The reviews can dierctly come for the Artist and as well as from the Gigs that the Artist does. I want to be able to do something like this:
Artist.first.reviews
# Should return reviews directly from the artis... | 41eace1b809ba903762993808c189480666a67f4102d308fadb528e272c39bb0 | ['4b36cdca3e5942fcae73f1b074a963d0'] | I wrote some code to generate custom controls. The code returns a jQuery element and the caller appends this jQuery element to the DOM.
I apply a custom scrollbar to the control in the generator code, but it doesn't get applied as the element has not been appended to the DOM yet.
My question: Is there any onAppend even... |
a4b81fdda038c7807e5f00e4dc64d234911f0ab2479eb0aef3823e85cc6c8104 | ['4b6489d347b1457a9ea4898be8b3231c'] | I'm trying to find the position of the number typed by the user (int findNumber).
I realise that I have to return an instance of the type Position, but I'm not sure how to do it. I created an instance in my 'Main' called "numberPosition", but I can't use it in the other class. This is probably very basic stuff but I re... | 175095dcf04376da1ca5f53f8e19cbbd65295b3cbb909d03ea7d7a29b326fbe0 | ['4b6489d347b1457a9ea4898be8b3231c'] | I'm new to learning C# and I was wondering how to keep adding numbers I type to a total number. Right now instead of adding up all the numbers I typed in before typing 0, it just takes the last typed in number... The number count does go up however, which is why I'm pretty confused.
For example:
Enter number: 2
Enter ... |
b6e04f438ac156e9609011da5cdd441069028dea2cfd6cf6d965abf5cf893372 | ['4b6601795f1443549be3adb5260da268'] | Try the windows API ShellExecute function.
Not sure of the VB syntax (this works in FoxPro)...
DECLARE INTEGER ShellExecute IN shell32.dll ;
INTEGER hndWin, ;
STRING cAction, ;
STRING cFileName, ;
STRING cParams, ;
STRING cDir, ;
INTEGER nShowWin
cFileName = "d:\MyDocs\myfile.pdf"
cAction = "open"
Sh... | 4ec6bfce26d6de94a11f4cedab558dfaf6ade36283dea6de0403d265f7d63eeb | ['4b6601795f1443549be3adb5260da268'] | <PERSON> I installed Key Codes as you suggested. But the left Shift key doesn't show any response. However, if I use mouse to select some text in a page, it is showing the behaviour as if Shift key is pressed and holding! Similarly if I click on a new link, a new window opens (as if I pressed Shift key and clicked the ... |
23d68db47b1f18867533bda9da267f46d5bf11ccdd8850af80d3bfcdb9f0176a | ['4b6c2a56fd7440129438e243b1b2cce4'] | You are comparing two strings and when you save np array to text file the precision before e changes thatswhy even if value are same string doesn't match.
I have come up with this solution. I am not master at numpy and python but i know some of this tricks. Feel free to suggest more elegant or obvious ways to do this.
... | cfe3e13c9048f7fcb6d2ff364930174fd5a48c5858f7f832bf41f8d4e011cc22 | ['4b6c2a56fd7440129438e243b1b2cce4'] | You just have some syntax errors in your code but your logic is correct..
Here is what you intended to do,
inp= int(input())
list1 = []
while inp != 0:
list1.append(inp)
inp = int(input())
def isPalindrome(N):
str1 = "" + str(N)
len1 = len(str1)
for i in range(int(len1 / 2)):
if (str1[i] !... |
3e484675112eb797edea46aaf72fce37a82c44558a0141705b4406f75a9308a4 | ['4b74853a22bd4027b62e1fb40a54580f'] | What you are saying in the last paragraph is exactly the reason why I posted. The fact that I have a very small amount of available data made me consider about having both pipelines. After the first pipeline, I would kind of create my new dataset, which would then be considered for the second one. Besides the need of m... | b2c7f8f4087ea1d235e64f2095d63ccf42239b5454d6bd1266b75fd5bedc743a | ['4b74853a22bd4027b62e1fb40a54580f'] | Sendmail supports a feature called 'plussed users'. Once enabled, emails sent to
<EMAIL_ADDRESS>,
<EMAIL_ADDRESS> and
<EMAIL_ADDRESS>
are automatically delivered just like mails to <EMAIL_ADDRESS>. There is no need to register or set up these 'plus suffixes'. The user can just use them and set up client-side filterin... |
d616efab0578d1acfda38b5535a564c08fcdcd3ba1d07bee991e56a4c691bb8b | ['4b76608ff52d487db671c7bc682f805f'] | I'm working with typescript and I have an object with with fields referred to by both strings and numbers. I know if it is indexed by just strings I can specify the type with
var object: {[index: string]: number}
Is there a way to do this that will allow the index to be either a string or a number? I've tried var obje... | ed499f00177713999abcbcfed8ef7be6ed535e3a8c4e646c1fe221448663440b | ['4b76608ff52d487db671c7bc682f805f'] | I have a for loop in a function in the structure
func(var, callback) {
for(i = 0; i < len; i++) {
validate(var, function(value) {
if (!value) { callback(value) }
}
}
callback(true);
}
Where the function validate returns a boolean. I would only like to call my callback with true if ... |
40ad228bf88ca30d49bbe4f5ab8cd8fdb2a704e99693f10decb5fa144022191a | ['4b7f806e10f04a46a088f1c10915cb0e'] | So I am given a ring of even integers. It is an isomorphism of Z to R that is defined by f(x)=2x+4. I am trying to find the O(R) and the 1(R). I just set the function equal to 0 or 1 but apparently that is not the right thing to do in this case. Any rational as to what I am doing wrong or the correct way to think ab... | 4fed3a51ea2095b8711ea871e9e7d444afb473c8175d8c445271b24b8615e0f8 | ['4b7f806e10f04a46a088f1c10915cb0e'] | I think you're right about the species of both snakes as they appear in the movie. They clearly used pythons for filming.
<PERSON> in the book, though, seems to be a magical creature created by <PERSON>. Because her species is never given in the books, she may be one of a kind (thus why I think she was created by <PER... |
708c808fc895ab163f61fc9d6ee4970dfe63b1e69c4484777d6e8dee592fe4bf | ['4b86f9bf21e44c7a8a51c69cbdc24b79'] | I'm trying to sort a collection of type Enumerable<DataRow> by using LINQ's OrderBy method on a nullable Int32 field. Because some of the values of this field are null, Visual studio throws a System.ArgumentException with message 'Object must be of type Int32.' Here is the problematic line of code:
collection1 = collec... | 39e31ab4d9c6c95430a41f53d600edd88d8fefa9c15993b63c67a70f2119d809 | ['4b86f9bf21e44c7a8a51c69cbdc24b79'] | I have a custom DNN module that works well in DNN 5. After modifying the module to work in DNN 7 and installing it successfully, nothing happens when I drop one of the module's controls on a page. In the event viewer, I see the following log entry of type 'Host Alert':
==================================================... |
4ab5cfce7981cb37c942153f6bd0deceda0314b45f3d24038de71a00ce0078b1 | ['4b883f18a86a44a2bee9a260f13f7f8e'] | I am trying to create an animated banner using JQuery, rather than use an animated gif.
The Cycle Plugin executes this well in FireFox, but in Safari and Chrome, upon initially loading the page, I do not observe the "slideshow" and only see a single image. I have attempted to resolve this via .load(), preloading the i... | 78e08c6cbd59e215382425d42e7fbb73f4f911d3131e1ae70f3c410d6aa6cf23 | ['4b883f18a86a44a2bee9a260f13f7f8e'] | Persistence pays off. It turned out that the problem was not with JQuery, the Cycle Plugin, or the Webkit browsers, but with the images. The source PSD that I used to create the gifs held the Photoshop layers in an animation timeline and that data was being included when I was using "Save for Web & Devices" in Photos... |
88b19863d499f69aa085a01f5ce6f0171b539700a351a2a3088a5f2a6841b913 | ['4bb2b9fe821b4974b63ea1cfb4d6e34b'] | I have an app that imports an excel but the excel in question has black spaces in some of the cells, when I receive it puts those blank spaces in my database. I want to prevent that to happen, i tried to use regex and replace(" ","") and nothing work. Can you help me? This is my code:
File file = new File(inFileName);
... | 9f1e93dad970946ab813c9e52fcded9b21d4514bbc70029328b1f333a47fbad1 | ['4bb2b9fe821b4974b63ea1cfb4d6e34b'] | I have an application in Android that reads from an excel. I want to replace the while loop and put the for loop. I have only 3 columns so I think theres is another way to do this. Can you show me how to do this while loop with a for loop using only rows and 3 columns?
private void readExcelFile() {
try{
... |
5d74f8951b66958f44d332e8f39dc52dc2f7588ff11ff9d8ef592dc5e531e443 | ['4bbe14ce5ce94b9da347b90d55d6b2e4'] | @JeffE I think that was meant relatively, not absolutely -- for example, you might be _known_ in your field, but perhaps only to a certain niche, or by people who read _all_ new papers and have noticed yours. Contrast that with someone who's a household name in the field. (And, of course, there's a full range between t... | 9ea7d7a7f3f0999bcddab6f77992e1743b653adb3b534b1bf3dbc3293f6ad4bc | ['4bbe14ce5ce94b9da347b90d55d6b2e4'] | @CaptainEmacs Oh, I would definitely be mildly put-off and a little colder, for sure. I wasn't saying it would be inappropriate to have _any_ negative feelings for that. It is pretty insulting, after all. It just seems extreme to react that harshly to one incident, no matter the circumstances, as this post implies. |
5d1fe4300a85af6adab5169f9e859526cc2ca6cac046abd1d9d7e8929a334318 | ['4bd20136231d41f08372002ca17883db'] | I saw this error when I added songs directly from the "For You" or "New" tabs in iTunes to a playlist.
To fix the error for my playlist I manually added the songs to My Library, then added them to a playlist. I was then able to sync that playlist.
| 5351a3e0e525a93b6cbb903acb7c4199e0367be066ab482974017107c7e68d58 | ['4bd20136231d41f08372002ca17883db'] | I'm working on a project to familiarize myself with more complex sql, I have limited db experience. I'm building a reporting application, and each report will have a series of questions and category types the user can select.
I plan to have multiple analytic functions, but to get off the ground I'm simply doing a sel... |
87b21ef8c55df20381ceceae86811a0f05cc3b6c5fc0501125790f8423c7bb4b | ['4bd335745225449ab4aa93b6d67127bb'] | I assume those are control characters (eg. end of line character EOF etc) that are not visible in the text editor, yet still can be copied. Are you using "select all" short-cut like ctrl+a? Try selecting the text with mouse or shift+arrow-keys and end your selection exactly after the last character of your text.
| 081fe65252dae6b0d1594bc96503b1251ec7a51b6868f6f664cd7dfac35b54c7 | ['4bd335745225449ab4aa93b6d67127bb'] | I had similar problem. I had an iteration, and sometimes execution took so long it timed out. Increasing spark.executor.heartbeatInterval seemed to solve the problem. I increased it to 3600s to ensure I don't run into timeouts again and everything is working fine since then.
From: http://spark.apache.org/docs/latest/co... |
bd392f9c6c992c56f9e3d63b34b1bb04feb0293dfbd1e8fb6ddb86b9c47bfd03 | ['4bd9e93ddafe4762b77864420e81d001'] | In order to improve insert performance and load on server, I've decided to divide a large table into 2. A big table which will only be used for "select" and a smaller table which will be used mainly for "insert" and sometimes also "select". Each time period (I thought about a day) I will merge the smaller table into th... | 89f99fc186396a8681bd009fbfcfe4c619c05734ba40a5450a1c650927051f04 | ['4bd9e93ddafe4762b77864420e81d001'] | PHP mysql_connect is sometimes failing due to "too many connections".
When checking the process status list, I am noticing that when this happens there are very long processes which are in sleep state. How long? time:28490
This is how I init the connection:
$this->connection[$server] = mysql_connect( $crede... |
d9f8a037779bc16eba318c035787a8c6492a98db5a4bc9fd9c9b7006a2330a38 | ['4be8c96385ee4fe5b27fe8a4c5d08e3e'] | When I was running the following code in a function, I encountered the following error. However, when I run these lines, there is no error.
The error appears at Line 185, TypeError: unsupported operand type(s) for +: 'dict' and 'int'
Line 183 was my original code, which includes a dictionary. But now I'm not using dic... | e82b2dd1181754e726ee75ba41a86db9caa90f0d8c9fdd82ca1642b1893a2708 | ['4be8c96385ee4fe5b27fe8a4c5d08e3e'] | Before I installed Anaconda in my computer before but accidentally uninstalled it. As I tried to re-download and re-install it, I found a problem. Although the system shows installation is complete, the entire Anaconda3 folder is only 700M+ in size, which is much smaller than normal. Also, I cannot find anaconda in sta... |
3ddda25ea24cb544f989c45818da13a9d30f78b10b186dee97db8c7ca1cc4287 | ['4c1c1401567f4edabc8935f276a2abc5'] | The problem is to push json logs collected by Filebeat to Elasticsearch with defined _type and _id. Default elastic _type is "log" and _id is smth. like "AVryuUKMKNQ7xhVUFxN2".
My log row:
{"unit_id":10001,"node_id":1,"message":"Msg ..."}
Desired record in Elasticsearch:
"hits" : [ {
"_index" : "filebeat",
"_... | f331802ebd0cd657b13c15fe1c00f4ee6ce4e5b3ab8e974cb7f3ad4731c04111 | ['4c1c1401567f4edabc8935f276a2abc5'] | Finally the solution is:
iptables -A INPUT -i eth0 -p tcp --dport 80 -m hashlimit --hashlimit 1000/sec --hashlimit-burst 5000 --hashlimit-mode dstip --hashlimit-name hosts -j ACCEPT
iptables -A INPUT -i eth0 -p tcp --dport 80 -j REJECT
Do not block SE-crawlers packets and resists against http-flood like: ab -n 1000 -c... |
f300677a619a0ca4222fed71866467e4b06b782b43cbb7cca08bc40d92f6d312 | ['4c231ed41f744edbb6f252d3c61b91a4'] | I see what you're saying, I think. I initially tried `paste MASTER.txt ${FILE}_trimmed.txt > MASTER2.txt` but that obviously doesn't work if I'm looping through files. I just end up with the final S file joined to the MASTER. So, still unsure how to get the result I'm looking for. I'm used to working in R, where I ... | 10288ca0f176af5c95a839e01ae70eb23a491d1792bb4db1188edf5b987b3f16 | ['4c231ed41f744edbb6f252d3c61b91a4'] | Thank you to 1_CR , who answered this in the comments.
The > MASTER.txt is truncating the file before the paste actually completes the horizontal join. The answer is to output to a temporary file (e.g. MASTER2.txt) and then rename it (with the mv command) to the proper file name.
My Old Code:
paste MASTER.txt ${FILE}_... |
ed3d7910b4e5f5378c1677a951dd7e807697db4359fbbc797a953bda5c891b3d | ['4c2727db4c1044e0bf514f2312cf8800'] | I'm working on a typo3-based system (Version 4.7), and trying to get the contact-email-form to work. It is a fairly simple one (Name, Email, some fields like Adress and a Question Text) to send a simple text based email. The plugin I'm currently using is powermail.
When testing this form on my local version of the syst... | 3f5e21f32aa0fc4c5cccc0ee2566b29ffb1fa225996f078c1c1a21996803dcdf | ['4c2727db4c1044e0bf514f2312cf8800'] | This looks to me like a lazy-loading-issue. How do you get the data from the object into the Webservice answer?
Doctrine2 is lazy-loading if you don't configure something else, that means your $groups = $em->getRepository("orgGroup")->findAll(); won't return real orgGroup objects, but Proxy objects (Doctrine Documentat... |
4984d539e62e5d5357506ce3eece94c92b70bd8d4081d3b47044fee081fe9c4c | ['4c348e480ed44cf882cc25a540ff2d70'] | I am having my main circuit breaker panel replaced (by a licensed electrician) and he told me I can run new circuits for him to hook up to the new panel. Is there any benefit to running 240v circuits for computers, network equipment, other devices that support it?
I would probably put a 120v outlet next to any 240v jus... | 70a72ab93b2df81cb97ec0b542a56d213499b8f3408485155d0fd0b8111ed989 | ['4c348e480ed44cf882cc25a540ff2d70'] | Encontrei o problema, o modulo Ng2-Smart-Table necessita da classe LocalDataSource para alimentar a tabela, quando os dados tem origens externas, como o Firebase, ou algum outro service.
Outro problema é que a minha variável solicitação estava fora do escopo e assim me retornava undefined.
Abaixo o Código atualizado:
... |
ff960534d0b90cfee53ac0e5cfd9aa7ae251af651d582b9294167d97a60b3b67 | ['4c4c94444cb145629543a16974799384'] | <PERSON> if by "first line" you mean "I understood nothing..." then that is for the OP, because of the messy way he wrote his question, it was there way before your answer. If you talk about the $\leq e$ (or just bounded) part then that is either taken for granted or may be deduced by bounding $1/(k!)\leq 1/(k-1)^2$... | 1bfc19c771442a4466578790d1d51bd7281ea1a59bc197b48f4760f2eb313cec | ['4c4c94444cb145629543a16974799384'] | You do understand that your saying "D does not meet any obstruction on the set of distributions." is exactly as saying that the classic derivative "does not meet any obstruction on the set $C^\infty$."? In the same way one defines the set of functions that admit integral. That is $L^1(\mu)$ when $\mu$ is a probability ... |
600a2999e148f7f385c95d3b1465a38b1bc4dd2933a34a5567dd312819e1211c | ['4c4f237cf87446e7aa344a31c9afa417'] | The powdery, 'cheesy' places are definitely a roof or ac vent leak.
The flaking paint, if not accompanied by the cheesiness, is probably just a latex-over-oil issue. Even with multiple layers of cure-all primers and stain killers, some bad paints can't be cured.
Try a primer called 'bonding primer'. It should work wel... | a6e4471e2c7908f2cf110ed46b1c9ba44a25cb235de6927e0f878340836b85d7 | ['4c4f237cf87446e7aa344a31c9afa417'] | Hi I'm after a way to sanitise input for traceroute/tracepath /well really any bash input.
For example:
root@meh:~# tracepath http://google.com/
gethostbyname2: Unknown host
I'll probably setup an alias in bash, but need to know how to do it first (maybe even shell script?).
Cheers!
|
4222c55460d4a68673e1a57d544b06071a8af93587777a4e36730c416e10e8ae | ['4c5de55c3c5b4af9b2d56503cddd454c'] | There is a little bit of confusion. What's obviously for LocalForward?
Why then you make me look for RemoteForward? And after again an example (completely inconsistent with the example given) with LocalForward.
By the way, RemoteForward is what I was looking for, I had found LocalForward and DynamicForward but didn't ... | 0f8e7b63a15402ae94238e334be3efe55a1b089ccdcafda3604878c2d71134af | ['4c5de55c3c5b4af9b2d56503cddd454c'] | I'm looking for a ssh client config directive like LocalForward that works as the -L CLI parameter but for the -R parameter
TL;DR full problem details
The data:
repoServer -> myComputer -> NAT -> stagingServer
I have a local git repository server that is not exposed to the internet and a remote staging server on which ... |
e9929b4cad11fecaaf589e36a6c953d990da7b17275c151a6f93839c91555dea | ['4c6d61642f574206984a1e2b23d6125e'] | object or array formula, can't mix properties together.
kindly see the example below.
we will define an array of objects and then will join new object to our array.
let originalArray = [
{ Assigned_CategoryHead_Id: 4, Assigned_CategoryHead_Name: "Head4" },
{ Assigned_CategoryHead_Id: 3, Assigned_CategoryHead_Name:... | 9c93577d1dbc8a1a7073bca791545de8ba94618d08e4f16b4893c64cdd32b298 | ['4c6d61642f574206984a1e2b23d6125e'] | first of all , make sure url of database.json you can use relative path as below code for example.
and you need to change also
$scope.datad = response.products;
to
$scope.datad = response.data.products;
response object contain all information about http request and result will coming into data object.
finally... |
9f88ef2a01fe86a855d6cd4e956db6d06a5d8193c46cf76a6cb7af4736c1c50b | ['4c7423ce07d44c04b24d26c334500ab7'] | I have been working on some code that tokenizes a string from a line and then creates a temp array to copy the string into it (called copy[]) and it is filled with 0's initially (The end game is to split this copy array into temp arrays of length 4 and store them in a struct with a field char* Value). For some reason m... | 6f90539cd06b8def3e73f37a23ab21ed851ecae119619f71b6f2245a7901ee13 | ['4c7423ce07d44c04b24d26c334500ab7'] | I'm trying to run an application in eclipse which is setup as MVC app and it is the solution code posted by our professor for a homework. After I copy and pasted all of the classes and tried to run it, I got the following error:
JOGL> Hello JOAL Exception in thread "main" java.lang.NoClassDefFoundError: com/jogamp/ope... |
d7e33a0461b47998c6ed4164a94b777a798a06b7ca846dcbe8adab50a2ee32d0 | ['4c8088c0e71b445298adae3c80b2a73f'] | I have a multi page form that I need to manage state with. I am currently trying to use the scoped model but it's not working. Everything I go to another page the state is cleared. I'm usually the PageView widget to create the multi page form. What I really what do know is why the state is not persisting. Thank you
| 0c04d4a2cce139e4103526c3f31d8c70f1c6ceab1a00247de868d98f655ac97f | ['4c8088c0e71b445298adae3c80b2a73f'] | You'll have to use now.json to set up your routes. Also it is important to note that it's now that builds the route so visiting it on the client side wont work if you are using localhost. Build your project with now and it should work.
Also the "as" parameter would be as={{ pathname:/user/manage/${variable}}}
|
07cd44a5abacc31d2fb5a127acdd7436e999b5656bcc81e5acc815fc3b78f570 | ['4c958e73673c42a08e55c40273e355c4'] | I'm looking for a best solution that suits my requirements. I would like to use MySQL with a lot of instances, so I need to be able to add as much master servers with slaves servers as might be needed in the future. There also will be sharding. Currently I've found out that GCP doesn't allow you to add more than one ma... | 644c917ae5a56f797fe8361af2212f36b642260342639878f2e3aae792765766 | ['4c958e73673c42a08e55c40273e355c4'] | I've created a BigTable instance in my GC account and when I'm trying to connect to it using Google's library (this is a sample code from Google's docs):
require 'vendor/autoload.php';
use Google\Cloud\Bigtable\BigtableClient;
/** Uncomment and populate these variables in your code */
$project_id = 'my_project_id';
$... |
407c48ef455061b0ab4f6613da7af1f13c1a8592f840d1e2bf1f616e388c1000 | ['4ca3186c97674b95a995558ddba63749'] | If you compare it with our Basic Authentication then it will make it easy to understand. Like App ID/Client ID is like your Username/Email and App Secret/Client Secret is like Password.
So in OAuth2 when making a request for Authorization Code then you need to send App ID to uniquely identify your app. After that, you... | bd2ce6b286a71b14d1edccbb550396e6038b7529d488e88e85f4d4290757b70f | ['4ca3186c97674b95a995558ddba63749'] | Your question is not clear. But if you want to just assign value then you can do it like this way.
<?php
$data = '[
{
"label": "Policy Number",
"field": "account_number",
"type": "Number",
"is_required": true
},
{... |
94a1b8554b07e7cac5a1010a069dba7aec23b6fa4e170db3505e65e59ab2a6a8 | ['4ca47b9cc4fb489f99c64d58ea3e4f29'] | (I will assume in my answer that people have read the discussion on the old question, linked to by the OP.)
No, it is not like the aether. It is still true that locally, there is no preferred reference frame. You don't even really need to think about spacetime to see what is going on. Consider a two-dimensional plan... | 06e6779ef82c88812706c34ddba80dabc4c67b499b2adb130107651ae7afa8d2 | ['4ca47b9cc4fb489f99c64d58ea3e4f29'] | Looking for a way to have Google+ automatically add my tweets to my Google+ timeline.
Currently, I'm setup so that:
Google Reader, Pandora Likes, Ping Likes feed into -> Twitter
And Twitter feeds into -> Facebook
So If I have something to say, I can plaster it on twitter, and it gets CC'd to my Facebook Status as well.... |
30e37522421fd31d5171977e688b0faeea47c2503e3ea9deb9cfcbcea3c7d3fe | ['4cb771402c3548a28af1c80dd95cf9de'] | I have generated a data table using the Datatables jquery plugin. The table is populated with JSON.
I want to extract cell values when I make a selection to use in a URL but I can't get it to work.
#I'm using django
import json
#my list
users = [[1,26,'John','Smith'],[2,33,'Dave','Johnson'],[1,22,'Aaron','Jones']]
#... | a84d2bd88f3b0bba81f023bf8c11887b623241038ccf727313e04679cf6c5034 | ['4cb771402c3548a28af1c80dd95cf9de'] | I'm setting up a web app that allows user to upload a CSV file that saves to MEDIA_ROOT and updates the database with the CSV data. However, I can't seem to get it to work. The file saves okay but the database doesn't update.
I had trouble with request.FILES but managed to get to the bottom of that. but I can't seem to... |
085c0c2c481661051736d7b06908be35f401d16e9e81f3eb6e008537b281f6d0 | ['4cc43ca9f7d54027895ec640d99dec3e'] | I'm trying to track users position and draw a path/his route on a map according to his movement (updatePolyline(), updateCamera(), updateMarker() are responsible for drawing a route). Program compiles, but the crucial error is that onLocationChanged() isn't called when location actually changes, thus, no path is beeing... | 4adf6988f05aca10ab82bc35c32aefe28c592d1321cc987c8ff705c1a5f63f10 | ['4cc43ca9f7d54027895ec640d99dec3e'] | I want to show one icon and 2 items in CollapseActionView on portrait and all 3 icons on landscape mode in ActionBar. I have created two seperate files menu.xml and put it in port and land folders. My port/menu.xml:
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:yourapp="http://schemas.andro... |
1ede6f8a3447ce4b38f5e5a5c0ab09efec176b99232cd26fe6b7985eaac14f1c | ['4cc8afb1fe624d6ba4a3cc74f0dcf958'] | I am trying to add Mutable_Content to my push notifications so I can add a badge count.
However I am running into the error:
Messaging payload contains an invalid value for the "notification.mutable_content" property. Values must be strings.
Here is my code for the payload:
const payload = {
notification : {
... | 06ec02a23025a91c608f0d240d7f3cef6d519afa4625ddc6091e0e35d693710b | ['4cc8afb1fe624d6ba4a3cc74f0dcf958'] | I've created a Shopify store where discount codes can be entered indirectly. Therefore I am trying to disable the discount box as seen below.
I've researched it and seen you can edit the code in Themes > Actions > Edit Code.
And I've followed some videos:
https://www.youtube.com/watch?v=EJi6zfc63RU
However I am unable... |
0811d740dc09dc3f50ee1e30bba411eab84b1305da765409d85450cbbc69882c | ['4cd2a61e5ac14c9fb013775ddcdf377c'] | yo estoy realizando un proyecto de productos en base de datos local muy similar al proyecto que consultó el usuario <PERSON> Fast Tag Filtro Android Studio , ListView Con adapter Perzonalizado
y el usuario <PERSON> le ayudo, he aplicado la solucion que aplico <PERSON> y no me filtra ningun dato solo se borra la lista ... | 078a7272ce32b808ef0b3988fd9d89f0e81ba7518c6b3587d0f0b553e23e21f7 | ['4cd2a61e5ac14c9fb013775ddcdf377c'] | I can agree on the approach stated above. I needed to renew my passport in less than 12hours (my plane was leaving the next day in the morning and my passport did not qualify for the 6 month rule of Nicaragua). I arrived at the passport office before it opened (7am i think) and there was already a line and brought proo... |
4d323c0b7138cf3413bc1384724eead69bc30c300e1e289e9927ce988f36cf90 | ['4cd7522c5dfc4c869dbc64956ea76d68'] | How can I speed up this 2m5s query that has indices?
select urls.id as urlId,
count(case when s1.hit_type = 0 then 1 end) as aCount,
count(case when s1.hit_type = 1 then 1 end) as bCount,
count(case when s1.hit_type = 2 then 1 end) as cCount,
count(distinct s1.source_id) as sourcesCount
from urls j... | 2e7c8e8a5d57ebcc581abb463cb40e1abcbf637a6ab0ac0058c2d6f5fff8ae45 | ['4cd7522c5dfc4c869dbc64956ea76d68'] | <PERSON>, ele não acusa erro, é isso que não entendo. Por exemplo: Ele compila, não acusa erro algum, aí quando vou executar o app ele para de funcionar. Tipo, se ele executasse e quando clicasse no mapa ele parasse eu mesmo poderia procurar o problema, mas nem isso... Já procurei alguns tutoriais, mas é escasso. |
1592cbe5b550d2ee3e97df78935c61387a5e98a446b56adc621751aa26eaae94 | ['4ce826d579e14963bae3d26a071248ab'] | I have a late 2018 macbook pro (tb3) and a surface book 2 (usb 3.1 gen 2).
I was wondering if I would be able to buy a tb3 dock and have it work with both (albeit with bandwidth constraints on the sb2).
The dock would ideally be able to do at least power delivery, a single monitor, and connect a mouse/keyboard.
| 03b612d7f28b8168e9712adf7c3df7e8c604c20794e15b28bc4340b442986eb1 | ['4ce826d579e14963bae3d26a071248ab'] |
The door is open. ("open" is used here as an adjective. It means it is not closed)
The door was opened by <PERSON>. ("opened" is used here as a passive form of verb. <PERSON> did the work)
The door is closed. ("closed" is used here as an adjective. It means it is not open. It doesn't matter if it was closed by itself ... |
583c6ee8575fd4ca9d49b9ad6bc9d91870a06680a992d8ccd53c03b5eda5bcd5 | ['4ce9e1576b83431b8ac20cbbf619e1f7'] | If, instead, your are looking for rectangles in the map space, whose borders follows paralleles and meridians, the following function works for me. m is the basemap object.
def draw_screen_poly( minlat, maxlat, minlon, maxlon, m):
lons=np.hstack((np.repeat(minlon,10),\
np.linspace(minlon,ma... | bd6ae1f6dad355b001ebade1376df819fe9d3d1ec4eacf64492cfa902f2e6f08 | ['4ce9e1576b83431b8ac20cbbf619e1f7'] | The command ncdim_def from package ncdf4 is built to encourage the automatic creation of the coordinate variable that goes with the dimension, a very good practice.
However, it only allows to create "double" or "integer" precision for this coordinate variable. For external reasons, I need write the coordinate variable ... |
57eacea9374a93947dc69fb6e3439a78c6ac0e2966e855ccf03fb11e73394fee | ['4cfc413aed3643b0a070f3ef5c00c477'] | I've found a solution using a single html text field! It uses the "leading" css property to remove the spacing between multiple lines inside the "squish" tag I created.
import flash.text.StyleSheet;
var textStyle:StyleSheet = new StyleSheet();
textStyle.setStyle("right", {
textAlign: "right"
});
textStyle.setStyl... | d818f79375b02289b2e8cf7b3bfdbe9a529988a972066be23198b6a650f593d4 | ['4cfc413aed3643b0a070f3ef5c00c477'] | How should I go about compressing a very large JSON string to transmit over websockets? (Also later to store in localStorage)
It's already minified, but I need something that can do this: http://www.unit-conversion.info/texttools/compress/ (I tried poking about in the source there and couldn't figure it out)
|
2332e24c4cdbd2931bd6f5cf17615c3b1e0e6d5f9279696451e9b92974ee639b | ['4cfe251313464a7d92a45e3d58a2d976'] | I've been trying to wrap my head around using loops and arrays and have put together the below example which takes worksheet names from a table on a worksheet and stores them in array from which another loop runs to add a value in cell A1 in those named spreadsheets based on a value in cell D1 found on the activesheet.... | 14ff6c34f5f25e0d82a777af6f3bf930a0aa7f37c3c2b41595d5d4d62c299924 | ['4cfe251313464a7d92a45e3d58a2d976'] | I'm trying to open two workbooks from my first workbook which contains the VBA and then activate a specific sheet in the second workbook. The code is below but for some reason the sheet in the second workbook does not get activated. As the files will vary in name and location I have made them a reference in the VBA fil... |
8847b3a0ff127250a85c69351fe5d053959402a1de8b6c6f2183c7b8ed1ff0a2 | ['4d0e95ace38c49a8b5407ff942ca147d'] | finally found the solution; i'm not so sure why now it's working think i was assigning the same variable twice. Anyway this is the solution I've come to:
def f(LL, <PERSON>, n, u_mean):
f = sum((Sad - (4 * n * LL / u_mean) *
((1 + 70.8 * ((n * LL / u_mean) ** (2)))**(-5 / 6)))**2)
r... | 68d04d8948b044fadf682be0cd571f826acbd6a4d2dc030665de9a35a75200fd | ['4d0e95ace38c49a8b5407ff942ca147d'] | It's not so easy to tell with this few information, but i'll try to guess from my experience:
you can't just drop out the values you are not interested in like that. You are trying to transform a time signal in the frequencies domain and in this way, I think you are altering the physics if the test. What you want to do... |
c5fca042c081dd849dae7b76ed3d44c00fa8d476fefb9dfc73cc2f3d0a71be22 | ['4d16e27f37284f6bb602eb41fc184d2f'] | I upgraded my rails version to 4.1.1 from 4.0.4.
Whenever I run rake test I get every test having this error:
ActiveRecord<IP_ADDRESS>StatementInvalid: PG<IP_ADDRESS>UndefinedTable: ERROR: relation "roles_users" does not exist
LINE 1: DELETE FROM "roles_users"
^
: DELETE FROM "roles_users"
My us... | 16c61a6ea2d12bb2b0ebc51f5090dc0cce7310ee61fad0152610291f2d323877 | ['4d16e27f37284f6bb602eb41fc184d2f'] | I have some projects that were tracked in SVN, and then imported to git with a full history.
I would like to be able to use the existing project locally, which only uses svn, while starting to track in git. The versions should be identical, minus any ignored files. I have done the following, but wondered if there was ... |
5c11e395dbf695f4a230aa25f44a4d0aa39d17ed8899d310069b5cbb1cf395f0 | ['4d288331b4bd453c8ca3b130139ceb3f'] | I have a class A, and a class AStore. My requirement is to prevent all other methods from initializing an instance of class A, which they should get an instance from AStore. In addition, I also need to access the member functions of A from the instance.
Factory pattern is not suitable for this problem as the constructo... | ab8242f019d26218575de2ea338ecb65115732372ff04b1edf6f23555cf7c12c | ['4d288331b4bd453c8ca3b130139ceb3f'] | I have a data frame reading from csv using pandas.read_csv, each row of data frame looks like this:
[1, '10/18/2016 06:00', 1, 14, 0, 5.5]
Basically, it consists of integers, string, and floats. Now, I want to generate more data (newrow) based on existing data and append to the original data frame. When I try to call ... |
1ee9399d6c7fc96bc5a4be1bb14410d325b95e8c38ae6eefccb17ad712e918ae | ['4d2c819591974265a59fa690a4755ca1'] | <!--
//THIS PROGRAM WILL UPLOAD IMAGE AND WILL RETRIVE FROM DATABASE. UNSING BLOB
(IF YOU HAVE ANY QUERY CONTACT:<EMAIL_ADDRESS>)
CREATE TABLE `images` (
`id` int(100) NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL,
`image` longblob NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB ;
-->
<!-- this form i... | 83ea91fd2ee4e21299a3246967ebcb186e60d2b6865ea98383f3bf5b0df0ef04 | ['4d2c819591974265a59fa690a4755ca1'] | If you are reloading the same page (running the same page after passing arguments to the url) use $_GET method to retrieve the latitude and longitude
var mylat = parseFloat(<?php echo $_GET['urllat'] ?>);
var mylong = parseFloat(<?php echo $_GET['urllong'] ?>);
Using parseFloat will acuallty converts the php outpu... |
a126363cae9f798bc0167325d5369d13552af3122df99207a5405dcc45f8a930 | ['4d2fc30234e44f919af513fecb5d359e'] | If you change your Email function to
public function Email($email, $subject, $content){
$config = array(
'useragent' => 'codeIgniter',
'protocol' => 'mail',
'mailpath' => '/usr/sbin/sendmail',
'smtp_host' => 'localhost',
'... | 615b55f60a0ca78cc9d27b8beeeda8ca8cc577a20676c234e3e2137ec229a27e | ['4d2fc30234e44f919af513fecb5d359e'] | When we load our netchart, it displays a network where the user can then double-click on a node to expand the network further.
The original layout is fine - the chart fits the container perfectly (see netchart-original.png). When the user double-clicks and loads the additional data (using chart.addData()), the chart z... |
978d356055187701ee7ef24db70f9935dc36194bf135dce2e6dc8614e12461e5 | ['4d38f98bf28b45c1a8a9a37e4cf04955'] | I have the Following Dataset:
A B C
1 2 6
3 2 5
1 2 4
3 2 7
2 2 3
I want to be able to find the average value of C based on the combination of A and B. So basically I want to have the Following dataset as a result :
A B Avr_C
1 2 5
3 2 6
2 2 3
Any idea on how to proceed ? Thank you.
| ca0c9fa2804dbceadfff78a5578ce99a2049bb202667e7acaafd66fc2f7c3c7c | ['4d38f98bf28b45c1a8a9a37e4cf04955'] | I'm asked to create a mobile application that loads regulary data from an sql server 2008 and puts it in the local db SQLite and sends it as well. Being a newbie in mobile development i don't even know how to procede. I would be gratefull if anyone leads me or gives me tips. Thanks in advance.
|
916547c2e36089bd3fb772f4ee65dba18b9c980383f651416bcc8ce605d20b89 | ['4d3d8fe71f46411392a51fe9dbb05f90'] | You can simply use Notepad++ for syntax checking.
<PERSON> has been gracious enough to create a custom language for htaccess files and share it here.
http://notepad-plus.sourceforge.net/commun/userDefinedLang/Htaccess.xml
Just go to View -> User-Defined-Dialogue -> Import
and restart Notepad++. You should be able to... | fd86684b110cd65f5b190a6848c500fd7c6e6e139c1f303e3240a0353691f694 | ['4d3d8fe71f46411392a51fe9dbb05f90'] | So basically, when you are putting something in the file system (like when you are taking a screenshot) you have to broadcast ACTION_MEDIA_SCANNER_SCAN_FILE so that other applications are aware of it (otherwise android photo gallery can not display your screenshot). So Snapchat has to wait for that broadcast and when ... |
bce4229962b3281e8e1462f822d69f9e25d803c6772bf62bc46cc953fb41deae | ['4d57f431258541059a4865dba41a4a2c'] | The message is the same in both of those links. Clients created from the same MessagingFactory instance will use the same underlying AMQP socket connection. For low throughput sending from the same process, then reusing the MessagingFactory is perfectly fine and preferred because it will cause fewer connections on the... | ceadf99b7a5323c3f180a6bd3379299d04e7a4071eb6a17f259c05c6a4db38cd | ['4d57f431258541059a4865dba41a4a2c'] | They are very similar but have some nuances to them. For example, AWS does not allow all traffic within the VNET by default, whereas Azure NSGs allow all traffic between VMs in the VNET. Unfortunately, I don't have a guide for translating from one to the other. The best reference for Azure NSGs: https://azure.microsof... |
4c6c0ce52f33e4c9c707ff14bada1f7c29dd5d942c572df34e9f2aaf681a6ae9 | ['4d5d10cf684e4424bb10d3bdbf8b7207'] | Almost there, and what I now have is usable to a great extent, so I'll post this so other users might benefit from my work, which has benefited by the comments of <PERSON> which led me to other documents that could clarify other parts.
# see: https://pymotw.com/3/argparse/
# BLOCK FOR SHARED options used at more place... | b98edf216811bdb71fd1c6a78fa04173bca873a7bf4c526d1f71573c69d7ac6b | ['4d5d10cf684e4424bb10d3bdbf8b7207'] | Slowliness can be caused by not being able to resolve hostnames. This might be because of wrong entries in /etc/hosts or because of wrong settings in /etc/resolv.conf
Verify both so they be correctly configured. After that continue to the sudoers file.
Have you used the old hostname in the sudoers file, then update the... |
1dbfd4961734d2b67b67362e9a09e2a27dee0e3a6f3e79ed57e05a21b38a9755 | ['4d5f4da8a2ee40c69a45397661e344fb'] | I want to use ApexCharts as a means of visualization in Angular. ng-apexcharts is the npm package that acts as a wrapper. Because the default tooltip of ApexCharts doesn't fit my design, I'd like to make a custom tooltip component.
A custom tooltip can be specified the following way:
HTML:
<apx-chart ... [tooltip]="too... | 7c4521dfeed21826cb9b275e1d20d3427d458090f56d2c266234416d881955e4 | ['4d5f4da8a2ee40c69a45397661e344fb'] | I'm using angular with ngrx store and RxJS to store and transform some personal portfolios and the appropriate quotes. When a new quote comes in, the calculations, which are done by a web worker, should trigger. Initially, I used this code to achieve the desired effect, but I noticed some flaws.
this.subs.sink = combin... |
066ffb4f60d55742200f7d9c6695c8993fe1028d7644b45b4ad5b92bfa7d7c52 | ['4d61f3db33e54f6b90f2a8992d7187c2'] | I'm using React and firebase to create a simplified slack and using MDl for styles. I'm trying to integrate a button that opens up a dialog box to get some user input, in this case the name of a new chat room, and then when submitted it will send the data to firebase and store it in the rooms array and display the new ... | 8658e11db5e6c99f81877a912ca8af52cc5b2e4d80d6184b739750ad66201dc1 | ['4d61f3db33e54f6b90f2a8992d7187c2'] | I have a simple to do app that is working fine, except for the ability to delete items from the list. I have already added the button to each of the list items. I know I want to use the .filter() method to pass the state a new array that doesn't have the deleted to-do but I'm not sure how to do something like this.
He... |
07e159e8247c3e030afd6e26cd71f06e47982dc5cbb44f820da1a8e7d98ebdc0 | ['4d681f1ca88a4531a7c9d7238cfbc4b3'] | I have two pandas Dataframes:
One a float called sdtarray (representing seconds):
z1 z2 z3 ...
0 NaN NaN NaN
1 2.6 3.4 63.0
2 NaN NaN NaN
3 0.1 1.1 60.7
4 4.7 5.2 64.9
5 0.1 0.6 61.1
...
[33945 rows x 95 columns]
and another a formatted date (thenewtime):
0 2014-09-01 05:22:00
1 2014-09-01 05:... | f07a744f8a57d41a3ebfad93fde8b9ca2e47698281d79b69105f2d560557056e | ['4d681f1ca88a4531a7c9d7238cfbc4b3'] | I am having a problem with encoding within Python2.7
I have a string held within an Excel file as I believe utf-8 but when I open it within python, I can't seem to get it decode correctly
An example of the text held as utf-8:
Belo Horizonte (MG) <PERSON>, <PERSON>
When I copy the text into the shell, it decodes as expe... |
4333f2df8d23aa539390ab3391ad5fbc8474fe7ff3525ed090dd7e6b27fe4e9a | ['4d6c18a88c8449caa89ede22dd4715f1'] | On a simple SELECT from the table with a clustered index would come back in the order of the clustered index. Wasn't as clear as I should have been that it was an illustration of when data is ordered by a particular column physically, but it's definitely not a given that in every query it would be returned correctly. M... | 08a7bbe63191177b96d8bba824899fc28739db112594b379c66bbafd259fb833 | ['4d6c18a88c8449caa89ede22dd4715f1'] | Hi, i've tried the edited approach, all colors dim to 0, with a single button press, no matter if press the up or down brightness. So, if i've chosen the `GREEN` color, it dims to 0, the same applies to all. Crossfade class do the following: When the selected color is `RED` and press the `GREEN` button, then `RED` dims... |
17d208fa7f53a2103d0a8f21f81ce47c134643dbdc0e0f910be6167d6c530c07 | ['4d715d579d164493a8e1f193112fe36e'] | I am writing a little shellscript that needs to go through all folders and files on an ftp server (recursively). So far everything works fine using cURL - but it's pretty slow, becuase cURL starts a new session for every command. So for 500 directories, cURL preforms 500 logins.
Does anybody know, whether I can stay l... | dd5eb340751fb923ce865723c36614d21a7fe6bfd66f89f804aa89a0b99fbb1d | ['4d715d579d164493a8e1f193112fe36e'] | This is a very interesting question. You're right, the same origin policy forbids injecting JS. But Google Analytics has an advantage: it already is in your site (the tracker code).
So here is how it works (as far as I can see):
When you open in-page analytics, you are first taken to https://www.google.com/analytics/r... |
68693106c7be45b21fc3cba0e32641ce5c489f9e1eddba8578e7c30f266025fa | ['4d874ddc43ee46e199f47edf9d3e1c73'] | I am trying to understand the linux kernel and there is one thing that is puzzling me for quite a while. As linux is used across variety of platforms (like smartphones,desktop,supercomputers etc) and also on various architectures,
so does the same kernel code is used by all or a different one and also since it includ... | c06c37832da98ce27e68e8bd54866edb246c2b4de6757452062d8da755b6869f | ['4d874ddc43ee46e199f47edf9d3e1c73'] | I am considering to set up a MySQL database via amazon web services (AWS). Consider the following steps which characterize my workflow:
There is a daily data inflow into several AWS EC2 instances
On each EC2 instance, incoming data is stored in a RData file (tabular format)
RData files from all EC2 instances should be... |
b0dc15f3839d644cd641dd39ade9d2ec2b1ddf4e58603bd11027312c985ccec6 | ['4daa1273c56b43e5aa6f09c9e9aaaeb0'] | I started working for a startup a while ago and they ask me to hire a new programmer, so I did. Then my boss asked me to limit his access, in case something happens.How should I limit his access to repos, AWS, etc? Can I do this in a non evasive way?
Thanks for your help.
| 35a17f13b861c383ba0a4aad892c1eae098b864dfe9a091e0f66c652d0f63e49 | ['4daa1273c56b43e5aa6f09c9e9aaaeb0'] | I am writing my first React Redux ecommerce application and I wondering what is best practice, should I download all the data at ones or use server side pagination. When the user goes into the route "/products" I check to see if the state has the products if it does not then I fetch them.
componentDidMount(){
if(th... |
bc96829eb4f0cbe1533f9eae9060bfea7f0e41add92690abbca5a359e0b70efc | ['4db0cc3ec4d74feeaa09bba786d7f8a4'] | Создать многопоточное приложение, которое рисует графики двух функций. За каждую функцию отвечает отдельный поток. Также, должна быть предусмотрена возможность задания приоритетов потокам.
Собственно, как это сделать?
Насколько я понимаю, графику в окне рисует только один поток. Или же можно реализовать в нескольких?
... | 6da3fc8826fd079c18954c98fdcd5a93d21ecae1d85fb8d60fb94b8c6f17339b | ['4db0cc3ec4d74feeaa09bba786d7f8a4'] | Listen, it might be some app. In my case, it's Vox.
When Vox is on (and it's set to send audio to the system default device), when I plug in the external soundcard, the system switches to the external, and very quickly switches back to internal speakers.
When Vox is off (quit), and I plug in the external soundcard - if... |
712e35878cb6fa4173013c9db2dff8ea356571ea71aba599b322de17fd26b65c | ['4db38d7fd6654fddb3ea130f8a049fa2'] | Since your both classes have the same fields java reflection can help to do in a better way. Try this.
public UserBO loadData (UserEntity userEntity) throws Exception{
Method[] gettersAndSetters = userEntity.getClass().getMethods();
UserBO userBO = new UserBO();
for (int i = 0; i < gettersAndSetters.lengt... | 4e5d935c3a229491704ab8c7ef45b62f60c359379d0e81d48f1420bede626afb | ['4db38d7fd6654fddb3ea130f8a049fa2'] | Change your controller return type to ModelAndView. I have updated your code. Try the following.
@ResponseBody
@RequestMapping(value = "/jsonTable", method = RequestMethod.GET)
public ModelAndView populateJsonTable(@ModelAttribute("model") Person model) {
DataTables<Person> dt = new DataTables<Pe... |
227c5d8127d5a53602ddea1fdb580d95879af7a2f5940d563fbe3e92196e7283 | ['4dc3c84b69ca422a9e8e2eb6f7fc667c'] | Tabbed Layout generated by Android Studio is not Collapsing in Recycler View Scroll.
The Scroll for Recycler is working fine, but the toolbar is not collapsing.
What am I doing wrong?
Activity XML
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.a... | b9d3d10be6a33c3e1111072dc9a8cba158da682c08337b5fca62ab43bfc4baa6 | ['4dc3c84b69ca422a9e8e2eb6f7fc667c'] | How to download the android project from android.googlesourece.com with the Gradle file!! I want to download the DeskClock app
https://android.googlesource.com/platform/packages/apps/DeskClock/+/refs/tags/android-r-preview-2
but the project does not contain the Gradle file, also I did go through the official documentat... |
5fdeffb6ab47bdffe3a0605e8b5b3e1aaa12fba643399cf6d8185e1dfce7834c | ['4ddd6f6e94814c27b3517e9c1bfbd4bc'] | This is a most singular problem, with many interdisciplinary ramifications.
It focuses on this piece of code (file name mainpp.c):
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
int status;
if (fork())
{
FILE *f=fopen("/tmp/gcc-trace","a");
fprintf(f,"------------------... | e0d9e378ff18cfca004208ab8df5b8c07ee53b32c2b4de3714eac0a52622d030 | ['4ddd6f6e94814c27b3517e9c1bfbd4bc'] | The first thing that occurs to me is memoization ( on-the-fly caching of function calls ), but both sqr and dist2 it would seem like they are too low level for the overhead associated with memoization to be made up for in savings due to memoization. However at a higher level, you may find it may work well for you.
I t... |
07124117d64f628dc7d75085c3ccd14ccec2d7996462fabdd7167299de547ad6 | ['4dff502a018c4baf967b87cf6abeb444'] | I've tried everything I've found to setup laravel 5.3 with elixir + webpack + vue + hot module reload and I can't achieve it.
When I do gulp watch I can't run the webpack dev server with hot module reload. I've searched for a solution for a few days and I haven't found anything.
Do you know how to set it up?
| 3f7d60db5cdc6075569234cff41dc85c05aa5b62e3f17d681e2db3b40648008e | ['4dff502a018c4baf967b87cf6abeb444'] | I'm developing an Android application that will need to query to an external MYSQL database. To do that, which is the best way to get the best performance and to trying to avoid overcharging of database:
Do a query directly to MYSQL Database, or
Do a HTTP POST to a PHP file and do a local query to MYSQL Database (note... |
3fb0724efad7928ef0140d572559b9ae15aaf64fb7456e7e57d40cbcc14818e2 | ['4e0f73ee3c5246fcbd3284f6ee278450'] | My __init__ method accepts another function as an argument called func_convert:
class Adc:
"""Reads data from ADC
"""
def __init__(self, func_convert):
"""Setup the ADC
Parameters
----------
func_convert : [???]
user-supplied conversion function
"""
... | 7167c66bf17ce3c5d1489529f0bcb66a7ff7d3894a36174977d7ea52b1a86f2d | ['4e0f73ee3c5246fcbd3284f6ee278450'] | First off I'm new to web stuff, so sorry if this question doesn't make sense. I created a Wordpress blog on Bluehost and would like to know how I go about viewing the file structure of my site. Everything I can find on the web references something called cPanel, but when I log into my site, I see a Bluehost Portal, b... |
0079c53b2edd80e5df452d7b44bc9f8c56116e075002bec31dad9d08b822d14a | ['4e14e18ede5d4efd84c43d1800874102'] | I have two very large lists. One contains about 130,000 items (List A), the other contains around 600,000 columns (List B). I need to know which items in List A appear in List B, but I'm running into a constraint with processing time.
My normal approach would be something like this:
Put List A in column A and List B in... | 206ce32d97409e1e162e5be0c970f0906786e6e981609d47d013541e0a09561e | ['4e14e18ede5d4efd84c43d1800874102'] | I found a solution! Thanks largely to this page. Here's what I did:
I created made a named range using this formula: =OFFSET(Report!$B$1,1,0,COUNTIF(Report!$B$2:$B$30,"<>-"),1)
For that to work, I had to change all the empty cells to output "-" when empty in stead of "". I couldn't get COUNTIF to accept "<>""" or "<>" ... |
c9eb1305f86c409a7fa985a6b887e62e8c46ff2147de77773558722a78d3ecb0 | ['4e1c3e37413f494cacdd2fc7189ea1b7'] | I have a windows forms (using c#) application. It displays a webpage and has a textbox/botton combination which can be used to search for text displayed to the user. Currently I search the inner text of all elements for the text in the textbox. And then I weed out the elements that are redundant (for example a word cou... | 04c41c078b48c31154c479876fffff85c6ab531ca20afd6f3b9f3726212d9135 | ['4e1c3e37413f494cacdd2fc7189ea1b7'] | I have a label next to a text box which has a short cut key. The XAML for the label looks like:
<Label>Enter your _Name</Label>
Where if you press alt+N it sets focus in the textbox where you would enter your name.
I'd like the letter N to be underlined so that when the user sees the label it looks like:
Enter your Na... |
49b568ec95eb8512ccf68f650d374a85a9f5c89db52d78f73358b58e245cd221 | ['4e35c85d2377405c9a47213bfa0e4232'] | I am building a new template page that allows my ecommerce store to be displayed via html.
I cannot decide whether to use ID or classes here. As it is a template they will only be referenced once. But it seems strange to put # to all the layout content to the right.
Below is my code, each line is a new division and I h... | 461b70640ce110cb92bcff5e95f6b3bab2470e6a7bbd4a16b2fd23582d7c253c | ['4e35c85d2377405c9a47213bfa0e4232'] | I am looking to create a table that has 4 tables within it. (These are displayed with tabs for each table)
Had a look through the plugins and can't see anything that can do this. Plenty of table stuff but not with tabs.
This is what I am trying to achieve
https://drive.google.com/file/d/0Bz6miRudGoHUUHpqSWlBMDJVMVE/vie... |
7a210cd9051b4cc04eea04f428fb926a72adcbe915dd76d93c1ab1e084296be7 | ['4e3dfd1130e249b6bb8394a2c679f58f'] | On my Ubuntu 16.04 box, a MacBook Air 7,2, some recent update that I installed in the last few weeks have caused the WiFi to be disabled upon boot. Network Manager says the network is enabled, but if I go to System Preferences and click on Network, the "WiFi" view shows the wireless device switched off (the top-right ... | 6d461b5f1c822988cafeadc9bd6b18fc2be750e1f90e788eb2dea06f3e54dbc8 | ['4e3dfd1130e249b6bb8394a2c679f58f'] | The mirror concatenation of the first 1, 6 and 8 prime numbers with no primes being reversed is a prime ! i.e. 131175323571113 and 19171311753235711131719 are prime numbers! (beautiful primes!). After these I couldn't find other primes with such form up to the first 2500 primes(!). Does there exist prime number of such... |
5c92fcd885c09c3c49b2c1dddc2164a49d0fedbabf7daf467ae390e2d2260244 | ['4e4148ba02bc45c188dbd94c499789e2'] | I think you could look the solution at here http://www.django-rest-framework.org/api-guide/status-codes/
I had the same problem before this, all you need to fix this is just import status from rest_framework and Response from rest_framework.response
from rest_framework import status
from rest_framework.response import ... | 92506cd5145b9f1f46bbcc1f7436806e18d5b225de2c86ec826344b5c6c9425a | ['4e4148ba02bc45c188dbd94c499789e2'] | I just found a set of strange characters that I've never seen before from someone (https://paste.villavu.com/show/2991/) (the chars are separated by a space). That person said a char from that characters set can be used to make a person's name field blank in Twitch, Discord, etc, so they will show like they have no nam... |
0c4f80890d73fefe27d74d4e4fc4442a3113cc56041a5e391a8d5ff33eff87b0 | ['4e4377123bdc43ae981a84cb60a27c81'] | В общем, видимо требовалось просто свежая голова.
Итак, в конструкторе надо метод Connect() вызывать только в случае подключения по TCP. Т.е. вместо
RpcSocket.Connect(RemoteEndPoint);
использовать
if (ConnectionType == ProtocolType.Tcp) RpcSocket.Connect(RemoteEndPoint);
При таком использовании сокет не привязываетс... | 61e86494672087ede173c95587906fdefbb510d5dd7d591c2e7820e686093f04 | ['4e4377123bdc43ae981a84cb60a27c81'] | Have you tried wkhtmltopdf? It comes with a tool called wkhtmltoimage. It uses QtWebKit (A Qt port of the WebKit rendering engine) to render a web page, and converts the result to PDF or image format of your choice, all done at server side.
Because it uses WebKit, it renders everything (images, css and even javascript... |
b91e30a458b72b6c08f33b2c8f59844e97c29cca9eb8c1760023da5da0f2e239 | ['4e534b2f1f43461cb4851b65df166ce3'] | docker run -d -v /home/data:/data --name=neo neo4j
after I run a neo4j in docker,
docker exec -it neo bash
./neo4j-admin dump --database=graph.db --to=/home/2018.dump
it will say neo4j is running
command failed: the database is in use -- stop Neo4j and try again
but ./neo4j stop will get neo4j not running
what shou... | 12132c51fbbf086de4613f99beed9ea118d474614a6e0116c16b567394c72f57 | ['4e534b2f1f43461cb4851b65df166ce3'] | What I'd like to do is this:
Consume records from a topic
count the values for each 1 sec window
detect window whose records num < 4
Send the FINAL result to another topic
I use suppress to send final result, but I got an error like this.
09:18:07,963 ERROR org.apache.kafka.streams.processor.internals.ProcessorState... |
344eca82e44ce42e917fa97019f45a8cac5168f233dd572725a0dc4509708ef0 | ['4e63c18412e04eadb74c79bc74faf75a'] | you tape for i in d , but the model created is named myuser, so you should put it as the limite of your loop, so try this on your HTML file :
<table class="table">
<tr>
<th>email</th>
<th>firstname</th>
<th>lastname</th>
... | f415bd79885755dc26afcf5c5c8b0f8f8961bbae19a56e83e47e852ef65938b6 | ['4e63c18412e04eadb74c79bc74faf75a'] |
First thing in the function 'get_absolute_url', in kwargs={'pk':self.pk}), you have to delete 'self.' before 'pk', It's already defined as self_function so it will return a self_primary_key for the image. It will be apear like :
def get_absolute_url(self):
return reverse("image_detail",kwargs={'pk':pk})
Now, y... |
77a62fa26fe101c2bd43e298556027acc6c2afdb97d05f2d11066b6634990dc2 | ['4e6685b4ea4449c5a8c8411a9b1cbc3f'] | I have several href tag, and it redirects to different Jsp. I want to send an integer along with URL.
Assume I am in a.jsp, Inside I have an href tag like below
<a href='app/b?num=1' class='passid'>Link to b.jsp</a> // Is this correct syntax to pass value
<a href='app/c?num=2' class='passid'>Link to c.jsp</a>
<a href... | 246482cb311fac319f8edc72d7844307a660238bdc7d79eb2372cc254275fd6a | ['4e6685b4ea4449c5a8c8411a9b1cbc3f'] | I am getting an java.net.MalformedURLException: no protocol: /jsp/error.jsp,
I have already seen lots of questions related to this, none of that helped me.
Here is my full stack trace
Caused by: java.net.MalformedURLException: no protocol: /jsp/error.jsp
at oracle.xml.xslt.XSLStylesheet.flushErrors(XSLStylesheet.j... |
cc011fee3159e35b54def962aa3136ad37e2a5bd9f8c6f9ea4295b7efbbee21e | ['4e711aa1f2384534ab0748f9a8334306'] | Different versions of Android handle AsyncTasks differently. Prior to 1.6, tasks were handled serially. From 1.6 to 2.3.7 they were handled asynchronously with a thread pool. From 3.0 on they went back to handling them serially.
You can force the use of a thread pool by explicitly specifying the executer.
Instead of... | b75c6c1ba2d6f6de8b8a645513adbde662b85a54c4332b5115dcf785bbcdac58 | ['4e711aa1f2384534ab0748f9a8334306'] | You would use a text watcher if you want to be notified that the text has been changed and need to do something in direct response to that event itself. For example if you wanted to do some custom validation on the fly and automatically enable / disable a button based on the value entered.
Using getText just simply re... |
638e0a2228d8c87922240ab937935e22f10d087f8241aa13c82561975ffc0588 | ['4e7171dcc038424a81fb37354009617e'] | I'm testing to add a multiselect input in my BO form. But, the multiselect output is broken (however, the value selected is really selected in BO, and values are assigned). When I select a value, the multiselect selects all the values (all the values are highlighted ; just graphically).
My XML :
<field name="my_field"... | 88ebd67aadde662ab288793a4c7e4cc5f593bd2932e456e51a11bf95d0c0814a | ['4e7171dcc038424a81fb37354009617e'] | I am planning a potential trip in the near future where I would be driving a rental car to New York City from Pittsburgh. I will be staying at a hotel near Times Square, but I would like to avoid driving in the city. It seems that the easiest approach would be to drop off the rental car somewhere in the NYC suburbs and... |
b5d63d438b42acc0f4e4dc6f57d9f3402a3a891062023e6b90fac43e6478046a | ['4e746ef441614a509cc7ccfc51264ca8'] | I tried using the cast method from above but would get the truncated error as describe in the comments.
You can also use CAST('2013-09-05T10:10:02Z' AS DATETIME) which does not require a format definition as in STR_TO_DATE().
I would consistently get: Error: Truncated incorrect datetime value: '2011-10-02T23:25:42Z'
... | 1b00fd8972fe9829fcca30df4a17a75350b376490ab314d7907989777678bcb2 | ['4e746ef441614a509cc7ccfc51264ca8'] | Use TRIM([{BOTH | LEADING | TRAILING} [remstr] FROM ] str) because you already know what section of the string you want to be removed.
Here is a table with dates and a given quantity that I pulled from my database:
select date_format(date, '%m/%d %I:%i%p') as Date ...
Date | QTY
-------------------
3/5 11:30AM |... |
73a1609895ecf21f7fb1bf4ba6fe56e014c8c56e7ef7b7ac7f04ed26fe5887e9 | ['4e7b373180b64945b4d8655f8c9be596'] |
Level 1 page table occupies exactly one page of memory
32 bit virtual address
Page size 8kb
PTE 4 bytes
How many bits for each of the fields?
How many entries are in the level 1 table?
How many entries are in the level 2 table?
How many pages do the level 2 page table map?
I tried and got 13 for offset and 11 for l... | 4851baa7c5cdbc70b5e796e0d4c154f28031fa19500d14bb59325013a7c11d6a | ['4e7b373180b64945b4d8655f8c9be596'] | I'm having issues with fprintf in my RPC program. It opens a file but won't read the content into a file. It will print the content using printf but fprint leaves the file blank. How do I fix this issue? Thank you
#include <rpc/rpc.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include"lab5.h"
char * f... |
784fa50b68f793b8a7393427e6553d0df140fba8c25c06dbc8c4f15a1928e345 | ['4e93674ad6f647b1900f1fc9673c0df3'] | I know this answer is a bit late, but I thought it might add some new perspective to the conversation.
Since about 2015, the best way -- in my opinion -- to enter code is with Stack Exchange's code snippets. This can be done by clicking the little icon to the right of the picture/image icon, or by using the keyboard sh... | 7c93294eca8782d0412c4bb20c6c379a4bc4666a5831f5c174676b774ae0fd00 | ['4e93674ad6f647b1900f1fc9673c0df3'] | @ShadowWizard yes I agree it is a duplicate. Do I need to "unflag" it or something? I'm new to the whole flagging thing. What is the protocol for duplicates? Should I leave my post up for the record, but add a note that I realize it is a duplicate? |
0e869f26b1daaa4f650faf116d93bd6de77755f3237c5a79441c4daf08eb37dd | ['4e97ea92e68d41ba9d214467f7c2873f'] | Check this out https://codepen.io/inijr/pen/EmOEjP?editors=1111
for($i = 1; $i < $('.td-cell').length; $i+=2){
$($('.td-cell')[$i]).hover(
function(){
$('.td-cell').css('border-right','none');
},
function(){
$('.td-cell').css('border-right','1px dotted #C1C3D1');
});
}
for($i = 1; $i < $('.td-cell-alt... | 954b10af456dc975dd911b89b22b9e54bce4e1332d5a42d287e917032da7aca8 | ['4e97ea92e68d41ba9d214467f7c2873f'] | I'm using Python 2.6 in centos. I'm trying to connect with MySQL server. I've tried pip install mysql-connector, mysql-connector-python and mysql-connector-python-rf yet I can't mysql_connector.so not found in pip libs. I get error: module not found MySQL.connector!
|
f5cb82d426ab79975c8d13805d90366fd5e9f0ca352e7f53c43b56f3553cdc54 | ['4eee958b0d4e4afcb935b64fac7d508d'] | i want to query mongodb in sailsjs.
this is structure of my db
{
"users": [
"52ed09e1d015533c124015d5",
"52ed4bc75ece1fb013fed7f5"
],
"user_msgs": [
{
"sender": "52ed09e1d015533c124015d5",
"sendTo": "52ed4bc75ece1fb013fed7f5",
"msg": "ss"
}... | 673f6dd043dcdfec92cc913d80b0b5634b6b6a7c655eec5a79fcc57c662da5c1 | ['4eee958b0d4e4afcb935b64fac7d508d'] | <div *ngFor="let item of data">
<p>{{item.level_name}}</p>
<input matInput type="text" id="" name="item" value="" placeholder="Search" [(ngModel)]="item.query">
<div *ngFor="let item2 of item.values | search:'id,name':item.query">
<p>{{item2.name}}</p>
</div>
You need to update your code here. and following model
... |
e8fa3303b610201bd0804dc5223e6e38e9fb29ca02fc3c4fb1be6b4a80d85dcc | ['4ef9d9aa064c47c781bec09e471e9ab5'] | I get the following error when I go to a page with charts in my Flutter app, then go to another page and then return to the page. Then the error is displayed. I cannot find any reason for this error. Therefore here is my code.
I/flutter ( 8555): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═════════════════════════════════... | 04eb26d3e1a0a4a652a4d396eee3bfcdda09c003f3b9d03dbc7add176dffa045 | ['4ef9d9aa064c47c781bec09e471e9ab5'] | I am trying to position a close button (x) to the top-right corner of an image.
That's just before the footer of my page:
<div class="modal" id="modal">
<span class="close" id="close">✖</span>
<img class="modal-content" id="modal-content">
</div>
How I show the modal:
function showModal(name) {
modal.style... |
c9a3bc3cf734c64f894087c539e0cd7f0040d32a0b3869503b6fbb10ba49e15e | ['4effa840b41444fc8087686445ccd8a6'] | I have odoo 8 controller which returns certain data that is only accessible to logged users. Web site is located on different server then odoo itself. How can i request authentication from my page (as mentioned on different server)?
p.s. On my development environment it all works since im calling from localhost/index.h... | 5a83f71cead7a0265adf2250bc7cc4eff0de309dbdd31b67ee53f0ae054d9195 | ['4effa840b41444fc8087686445ccd8a6'] | I am trying to read companies data with:
for company in self.pool('res.company').browse(cr, uid, uid):
company.vat <=== code breaks here
If i use the administrator (uid 1) account i see company.vat. But if i use any other account (which have permissions to res.company) i get a message: "One of the documents you a... |
fb5669c162ebcf33be39a8f1768dbaeddd1ffb3c07da145651d1bc3d1dc2503c | ['4f1fc17956be46d194c25d6395cd2e34'] | Yes: you would get (after multiplication by $N+1$), $rN(N+1)(1 - \frac{N}{q}) - N - N(N+1) = 0$, from which you can factor out an $N$ to get the solutions $N=0$ and $r(1 + (1 - \frac{1}{q})N - \frac{N^2}{q}) - 1 - (N+1) = 0$. The latter equation implies that $N$ is a solution of the quadratic $ \frac{r}{q}x^2+(1-r(1 - ... | 260fd0135745b624c1b301f7a96d1cdadf29da24adb64d247a9053b3ad9b6876 | ['4f1fc17956be46d194c25d6395cd2e34'] | Since $\lim_{m \to \infty} s_m(j) = g_j'(x) < \infty$, you can let $M$ be large enough so that $m \geq M$ implies $s_m(j) \leq g_j'(x) + 2^{-j}$. This is an integrable function which eventually dominates $\{s_m\}$ therefore. It is integrable by the hypothesis that the sum is finite.
Also, I'd appreciate a comment from... |
b1384bc0c3cb80bfea914bafc9e82bbb609a8969417dc31461306adf9f20e3f0 | ['4f3d03b877324c9ba59a9b17acfb6b0b'] | For example, if I have this class:
class Counter {
public:
int* j = new int[5];
}
A pointer variable is initialized as a data member. If in my copy constructor, I have something like
int* j = new int[7] OR int* j = new int[5](),
therefore initializing the the data member as well, will it create a memory leak for t... | 289c1007349977f1a95264301f8bb1237318522569d136370118a98d9a562eb9 | ['4f3d03b877324c9ba59a9b17acfb6b0b'] | I am learning about bucket sort and it seems a lot of the material insist that it is efficient when the key values are "uniformly distributed and when used to sort integers from a known range". I understand the uniformly distributed part, but do you have to know the range too? If the range is not provided, when creati... |
bbc19941ec77189309b3f005ccb3c424193fc7ec2febbf50ed9de48578fcc2e9 | ['4f3e877c878a46dabd8a56a60ccd461a'] | I have an AsyncTask class that I would like to pass some primitive parameters to it through its constructor.
Then do some manipulation on variables in onPreExecute (Running in Main Thread) method and then use the variables inside doInBackground (Running in a worker Thread). Is it OK to do that? Or it does need some sor... | c91b070e8612426cb92de6e3d286b92ed7be5e6c17fa861c6e0fb790a25d9e5f | ['4f3e877c878a46dabd8a56a60ccd461a'] |
I highly recommend reading this topic : Context.startForegroundService() did not then call Service.startForeground()
From my experience (Working on the same scenario), you will face lots of unexpected bugs on different devices and different SDK versions by starting a Foreground Service using startForegroundService co... |
84a731de2c242498a8dd2110c00d36ab466150bacb9ba7f6034a4c1629fcb150 | ['4f433d082d4c4d58a598cb336d180e37'] | I'm developing an app to store one phone number at time using core data, the user should be able to enter a new phone number into ui text field,if it's equal to nil, it should store a new phone number,else it should replace old number with new number; it should store only one value.
but the code doesn't work as it shou... | 8a257ef2be54aa7277fcb41b434965fe7c148def750ff2bb15d9c717b31d78a5 | ['4f433d082d4c4d58a598cb336d180e37'] | I'm facing a lot of issues with nil, it causes my app crash, and this one of issues I'm facing.
when the database is empty or equal to nil, it should tell me that you sould give my phone number when fetchPhoneNumber function finds database empty by displaying UIAlertController, but instead my app keep crashing.
all my ... |
2dff2f46c9b9aa9307ce8ffed76eb2a8e2f464e9f13c3f20a966a64a28ba616c | ['4f46c287c22c4d63b6bd454cfddf4526'] | import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Param;
public interface TestMapper {
...
@Options(useGeneratedKeys = true, keyProperty = "id", keyColumn = "id")
@Insert({
"<script>",
"INSERT INTO test_table",
"(co... | a2e42aa42f8ccbb85e75cd197472113698c77883792e3ce5ee39258e1541e435 | ['4f46c287c22c4d63b6bd454cfddf4526'] | You can use annotations (@org.apache.ibatis.annotations.Insert) for executing a single insert for your entire list.
Remember: You wont need any sql provider class.
public interface SomethingMapper {
@Insert({
"<script>",
"INSERT INTO your_database_name.your_table_name",
"(column1_int, c... |
2fa79bcaaaec32f00b21cdba5adcb247eb827540bb1064ca4e345d848966ed26 | ['4f4d484f438240f6a5fda9bf2380edc7'] | try with another port on external, many routers don't forward external 22 (also 80, 443). try with eg 2222 forward to 22 on your computer and you MUST test it outside your router network, you can't test it from internal. of course like <PERSON> said, check if your destination is listening on port 22 from all networks `... | b0d8875a2a42685be051a029f5b37adb3c40031b07f354ec5a06be26750e41a3 | ['4f4d484f438240f6a5fda9bf2380edc7'] | In the provided log output we can see that the client and server are using different OpenSSL versions:
client: SSH-2.0-OpenSSH_7.8
server: SSH-2.0-OpenSSH_6.7p2
Which in this case was the reason that the connection got closed.
OP removed SSH server and installed the correct version which resolved his issue.
|
230953f82ad6c239eb94f8c735bf250c8c1dfc26e3cc38e07bb388434bdb9855 | ['4f509f02b4ea458682c8372b0e82d3d8'] | It is not allow that two variables add same object.
This is a segment.
for (var i = 0; i < categories.length; i++) {
var categoryId= categories[i].getElementsByTagName("CategoryID")[0].firstChild.nodeValue;
var categoryName = categories[i].getElementsByTagName("CategoryName")[0]... | 711aa132b4125e322f667d1911f2e65682e073ba0d510cf1fae8626b88d551e1 | ['4f509f02b4ea458682c8372b0e82d3d8'] | According to the HttpClient in the Angular document.
The HttpClient.get() method parsed the JSON server response into the anonymous Object type. It doesn't know what the shape of that object is.
My problem is I cannot get the Json directly. I still need to Json.parse in dash-board.component.ts
dash-board.component.ts... |
f74c5c21f5dc8dab383c2e011e6f87a1ef9f1bdaa8843f082493ae67a732c52e | ['4f5f8cb58fe94c2ea021a8b209499109'] | So there was an update. I hate this thing pn windpws 10, because it is unexpected. I turned off updates somehow some time ago and then wondows turned it on automatically.
So, after an update, I have a strange problem - turning on my pc, windows boot stucks at a logo screen (black with Win logo). Hard restart (via the ... | 9829282ea9e24c18692da5207103525bd3b824f15682f15a49c4089b8ff9801e | ['4f5f8cb58fe94c2ea021a8b209499109'] | This is my first time posting on this site, so I apologize for not posting according to guidelines. For the first part of the question "How many different results are possible" I multiplied 6 five times and got 7776. I'm stuck on the second part "Of those, in how many ways can there be exactly 2 rolls of 4?" Any guidan... |
c019be41ca22d259d950426873e596092640eeeb050153d434d0ef8d217c08e9 | ['4f6f936832dd4ee7a1217af18e8102ed'] | i think i personally would make merged cars into a dictionary, where every key is a string of (color + number + type) and the values are the car objects. Then adding the new car data is simple and fast, and getting all of the cars out is just merged_cars.values()
merged_cars = {
"white4354312volkswagen": {
"ty... | 5d43ba2b106c757ad39d7bf45d858f872c61777d24b2535fb0fc527bd9c10219 | ['4f6f936832dd4ee7a1217af18e8102ed'] | Here is how I do it is a private repo and I use the branch name:
pip install "git+ssh://<EMAIL_ADDRESS>/your_repo.git@your_branch_name"
Note for authentication, your password might be a token from github if you have set that up.
Checkout this answer for more ways to pip install: https://stackoverflow.com/a/13754517/50... |
509b66548b36ab55503184c8b44e6d90718c53985c33db4703397ae96296681d | ['4f70ac53bf3a409c8f5bc4a3ae4b8b4f'] | If f(n) = O(g(n)), 2^(f(n)) not equal to O(2^g(n)))
Let, f(n) = 2log n and
g(n) = log n
(Assume log is to the base 2)
We know, 2log n <= c(log n)
therefore f(n) = O(g(n))
2^(f(n)) = 2^log n^2 = n^2
2^(g(n)) = 2^log n = n
We know that
n^2 is not O(n)
Therefore, 2^(f(n)) not equal to O(2^g(n)))
| f48ea3c35937d98f285512cf5577bfa22c2a7189d22e058b65055e7ef6596c8e | ['4f70ac53bf3a409c8f5bc4a3ae4b8b4f'] | Here is a python script to identify those fault jpg images in a directory.
import glob
import os
import re
import logging
import traceback
filelist=glob.glob("/path/to/*.jpg")
for file_obj in filelist:
try:
jpg_str=os.popen("file \""+str(file_obj)+"\"").read()
if (re.search('PNG image data', jpg... |
d4bf06f34aaab5439682e083295ae66e7956c262f786d01bf32343dbf7c58bd6 | ['4f8d952267364cada4b710967460d14e'] | The token auth class (https://github.com/pyeve/eve/blob/52a927fe69ff05d3098d62145efe1fbfaddb5cf9/eve/auth.py#L230) has an authorized() method that you can override.
However, it's not a documented method for overriding, so know that doing so you could run into issues in different versions of Eve.
The way I modified th... | 3bd85cb4b0f619d72b8f0ceb1e55e9038f6d15e2e413e2f2c4ea6d6f8a04378d | ['4f8d952267364cada4b710967460d14e'] | I found a way, not sure if this is the best/right way though.
I take the eve_swagger blueprint that's provided, and add a before_request with an authorization function. Something "like" this:
import eve_swagger
from flask import current_app as app
def authorize_swagger:
# my auth logic
eve_swagger.swagger.before... |
4ff0c24dc546ef5f852f6cb6f199294175a3b186214e4d4493eae3e45ef1a994 | ['4fa0b148d78b4e8ea1b487a3da7c1ef0'] | My function randomly flips 2 characters of a word besides the first and last character. I want to use this function to write another function build_sentence(string) that uses my function to flip 2 characters of each word in the sentence. The function build_sentence(string) should return a string containing the full sen... | 8c0d7cde337cc444a6d5243fd5eb476bdf1be211d4e19cbfca29535456b9ad99 | ['4fa0b148d78b4e8ea1b487a3da7c1ef0'] |
credit_num = input("Enter the credit card number: ").replace(" ", "")
tot1 = 0
tot2 = 0
for i in credit_num[-1<IP_ADDRESS>-2]:
tot1 += int(i)
for i in credit_num[-2<IP_ADDRESS>-2]:
tot2 += sum(int(x) for x in str(int(i)*2))
rem = (tot1 + tot2) % 10
if rem == 0:
print("The entered number... |
1d1eea14a3af6c7c5ea1a1f660a7f7125b14cecfdd9d77a58b2ff1fcbb4023b3 | ['4fa2f33e4a8a4f7681f390bcc0797bce'] | I am trying to apply a conditional format to a range of cells based on the size of the Dataframe:
percent_fmt = workbook.add_format({'num_format': '0.00%'})
range_1 = ## This should have the range of rows starting cell 'C23' to the number of rows in the dataframe
I plan to get the get the size of the Dataframe using ... | 56d1ddd39c46143c29deac175c5444a00ec62442eb53b90bc4f247c73dec50a2 | ['4fa2f33e4a8a4f7681f390bcc0797bce'] | I am trying to have one of the columns in the Dataframe to be assigned value of a variable.
For example:
I have a column called : Count of sales done in the past 10 days
I am trying to have the value of 10 in the column name changed dynamically from another variable called date
So each time I update the Dataframe I wa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.