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 |
|---|---|---|---|---|---|
172100bbcebc757e7536238d2436df512458a7cb50ec7010bb00b314edb45d12 | ['f4d0a2d4196b4c18b0f13ede24a3a187'] | I am working on a startup which basically serves website. Sorry, I can't reveal much details about the startup.
I need some ideas on how spammers and cralwer devs think on attacking some website. And if possible, then a way to prevent such attacks too.
We have come up with some basic ideas like:
1. Include a small JS ... | 9407d85150e6dbf7c8285f5ff041490d1eaaadf7d0a6ee1a826e7846800353fd | ['f4d0a2d4196b4c18b0f13ede24a3a187'] | I belong to a newly setup college, and have teachers who are not so talented. I personally have spotted them making mistakes many times. This is because they themselves have false knowledge. Hence I teach programming and networking to myself. As I cannot rely on them.
Now since this is the scenario, I have fallen int... |
7d6215057e3043635a9d1c8316558f463966db5364a2455895b8fc370201f81e | ['f4df62ad90b3475ba533501b1aba2791'] | You can use below query along with WITH clause and refer DATE_RANGE as a table in your From clause and refer MY_DATE in place of '2020-08-19'.
WITH DATE_RANGE AS (
SELECT DATEADD(DAY, -1*SEQ4(), CURRENT_DATE()) AS MY_DATE
FROM TABLE(GENERATOR(ROWCOUNT => (365000) )) where my_date >='01-Jan-2000'
)
SELECT * FROM... | cc4cfd761ce4407b5854999ccc7ce4277f8992682f02f4ed7e91a38486b2836e | ['f4df62ad90b3475ba533501b1aba2791'] | <PERSON>, I got your requirement.
Here is my solution, it works in Snowflake, consider Test2 as your table name
select * from Test2
where
(case when MONTH(current_date) <6 and (marked_yr in (YEAR(current_date) ,YEAR(current_date)-1)) then 1
when MONTH(current_date) >=6 and (marked_yr in (YEAR(current_date) ,YEA... |
e44cf1a402e8bc558e03e505d75bbbcc1734d2cdf0b7304360031b6199fd4b12 | ['f4e3ad1cb8414324b54212a4be1379c8'] | Answered my own question:
When using require in the Gulp task, you need to supply a path to a file, not just a name.
gulp.task("scripts-vendor", function () {
browserify()
.transform(debowerify)
.require("./bower_components/phaser/phaser.js")
.pipe(source("vendor.js"))
.pipe(gulp.dest("./tmp/assets"))... | 9c3f88e90b3f3dcc50615e0e9967895212c091c90342c17a9e02bc2e916aaa38 | ['f4e3ad1cb8414324b54212a4be1379c8'] | In your init method, put this:
budgetArray = [[NSMutableArray alloc] init];
Also, why not use dictionary and array literal syntax?
-(void)applyCCCSWeights {
NSMutableDictionary *valueDict;
NSString *newAmount;
for (NSDictionary *budgetElement in [self budgetArray]) {
valueDict = [budgetElement mut... |
2db028744ef5e8e0f7642dfffdf55078563ed1004fc6c93f8acf7146a395ff49 | ['f501c1c983c84c49a2dac55d6bd1cfd8'] | Sometimes when I compile C++ projects, the build goes successful by saying "Build Succeeded". But, if you clicked on error list, it may show some errors such as "IntelliSense: incomplete type is not allowed".
My question is what is that "IntelliSense" errors and should I have concerns on output executable file?
| edd0d6bd5fecaec5f431afba35fd71fd4ffab9646a870106f7433a86bef5c1de | ['f501c1c983c84c49a2dac55d6bd1cfd8'] | I am trying to convert form DateTime value string such as "Feb 13, 2015 20:03:36:820" to DateTime values in Microsoft Excel. I know I can convert from a string such as '01/12/2015' to Date. But I want both date and time parts.
Is there anyway we can do it?
|
29157f92b4d71c7600bf2e74793cf890b0e8e23222ecffc8fa913708106bcefa | ['f5043f569bf54f5798380950ff6f75af'] | If you are using this package, then you are in luck - it has a built in lcm method for you: link to the docs
If you want to see the implementation of it, check out the source over at the Github repository.
Implementation of the method inside the above library: Source
Hope this helps you out :)
| db73e44e7c8302fec6a6605596963b1b9aa4961d80cdef97667638abd748bd35 | ['f5043f569bf54f5798380950ff6f75af'] | Let's start from the top:
The JSON you have pasted above is not valid - objects must be key-value pairs. Your args key does not have a value.
args is an array of strings that are passed in to the command in your configuration. In your case this would be ["${workspaceFolder}/main.py"] if your main is in the root directo... |
06c87465afad6282bd1dcf3d9f739c35e1389e9c77d20ab08280ed2d3c74eb95 | ['f50686edbfa041b09fa4b93a80c10fd3'] | we have two tables name "students" AND vouchers. we create the voucher of the fee and display voucher, and we also want to display the roll no of that particular student which was we create voucher, but we can't get the roll any of student table ... we got error,enter image description here I've added the code below
... | 102edae630a05f94edaf646783a27440ccab9aae689ca51c22558474120e3400 | ['f50686edbfa041b09fa4b93a80c10fd3'] | we are facing problem to get month form database that have already posted, in another page using javascript get method...
when page redirect to another pag, the output is 2008, and its false, while true value is 2018-10.
here is code
<input type='button' class='btn btn-primary btn-md'
onClick='print_all_voucher... |
35a2c5b5f10e555be5f5b70a4f7f8262c5521f773696eb11ddd513a61a283147 | ['f5140d7c79b545a197c31c2680ffe5ef'] | Basically I can't pass build properties to Library var call without extra nonsense.
jenkinsfile relevant chunk:
tc_test{
repo = 'test1'
folder = 'test2'
submodules = true
refs = params.GitCheckout
}
That results in error
java.lang.NullPointerException: Cannot get property 'GitCheckout' on
null objec... | 68b45b0eee841b006e2367b10101487e3229ff2923031d19befc5b443f5e9a98 | ['f5140d7c79b545a197c31c2680ffe5ef'] | Got the answer from Jenkins JIRA.
Small workaround is using maps instead of closures:
tc_test ([
repo: 'test1',
folder: 'test2',
submodules: true,
refs = params.GitCheckout
])
May have drawbacks, but for me that worked perfectly.
Still have to transfer params as argument to have access to them, but at least t... |
97084395f7bfec7e1ad98dd511ecfbbcd2831e504797ef4afa9d39962d5a8b2f | ['f5180dce71db40a1b0e5a8ffd57baea9'] | You can put the classes in a separate DLL (class library). When you create that DLL using another solution you will not see the classes in your solution explorer of the project where you include them.
Don't forget to add a reference to the DLL (class library) in your main project.
| 3722b4c2f24e885d187f561c8b54bd10a3f05294eba8d0956e03892801315fa1 | ['f5180dce71db40a1b0e5a8ffd57baea9'] | Is this what you mean?
var fullList = BLogic.GetDataStoreCompaniesForFilterList();
var filterList = fullList.Where(
( w => w.Name.ToLower().StartsWith(filterString.ToLower()) ) ||
( filterString.Length > 2 && w.Vat.ToLower().Contains(filterString.ToLower()) ) ||
( w.IndustryLang != null && w.IndustryLa... |
c35cceb3ffe6f4f53d720ec32d714275c3e7660aac171d14dcef3233f811c68d | ['f51d0dd8cb3743a585f1d1107c2a11bc'] | I did get a reply in firebird-support from <PERSON>, saying not to worry: the file copy util will read the data from the cache, so it doesn't matter if it's flushed to disk or not. The important thing is that there's no data inside the Firebird superserver process or the nbackup process that hasn't been flushed to Wind... | 3e16cbb3597ef5fe5eb14cd838515166cb6215b81990e61b225225948350d723 | ['f51d0dd8cb3743a585f1d1107c2a11bc'] | We have a Firebird database that's almost 200 Gbyte in sice, and for performance we have forced writes off. Please don't debate the risks of forced writes, we are aware of them. This is Firebird 3.0.4 on Windows Server 2016.
For backup, we use alter database begin backup and alter database end backup, and copy the main... |
5d7a8836a27c857cc5bab3eb6e4c0f80dbf36d439e965c6bcdee767b256d9607 | ['f525829f1bad4b6c824118eb76a25486'] | I am trying to automatically update Meteor, to be more specific Meteor-based Telescope framework with json regularly, each hour. To be more specific, json will be generated by Kimono Labs. So I am just trying to glue the two together.
Each hour when json is updated by Kimono, my Meteor/Telescope should import and tag... | 68967eceb17e67fc531fa2ec953f2968e63c29650e2307ea8c2c3c2262f32205 | ['f525829f1bad4b6c824118eb76a25486'] | I've almost completed the course on Udemy on web development but stumbled at the very last step. I really hope someone will be able to help me out as this seems to be a very simple thing that I'm struggling with.
The problem seems to be with HttpResponseRedirect(reverse('index')) that is triggered when a user clicks on... |
3c34ac1f83be01f33260d9806ce829a99749eeb67fe6ebdcc857e98a80d8ff9d | ['f53dad0887e244d28de6648ccd691f83'] | I just started developing Xamarin
But I encountered a problem
I have a login screen and I want to play gif there
but unfortunately no images are coming
Works well for png and jpeg files
my code is below;
Content = new StackLayout
{
Padding = new Thickness(10, 40, 10, 10),
Chi... | 05a6103d3330e90414052446d4c17d12d6116f93b74a8bc57e01f6061832448d | ['f53dad0887e244d28de6648ccd691f83'] | I'm new to c. i have a problem please help me
I am reading from the file. But I want to read the file 24 lines first and I want to ask the user, okay or not?
if the user wants to continue I will read 24 more lines
int main(int argc, char* argv[]){
char const* const fileName = argv[1];
FILE* file = fopen(fileName, "r")... |
6ad28e00a192cee7e522ac969ccaef14384f81df8e20f638b67bf0a9aa47b077 | ['f549aca3407c4995a8616a1100f72f11'] | My ViewController wants to display some data based on a CloudKit query.
My CloudKit code is all in a separate class. That class has a function called loadExpenses() that fetches some Expenses entities from CK.
I want to be able to call loadExpenses() from the VC, so I need a completion block provided by the function to... | 85851ab3feb0b2d4b00d647f3bf3c1c8ef933e3c6d56471ce2f09830ae438a5b | ['f549aca3407c4995a8616a1100f72f11'] | I have a overlayView that usually covers the bottom 10% of a tableView.
When I tap anywhere on the overlayView, the view slides up and covers 50% of the tableView.
At the second (selected) state, I want to be able to go back to the first state by touching anywhere on the tableView, outside of the overlayView.
However... |
610cb8b6137f6784ee189112014de14c0e6547146fcb8bec5e47ee5185fe336e | ['f5576a388d9845a6ba85de11d546c248'] | Whats the best way to make the program? I connected the program to a database through JDBC. I have 2 integer typed columns.
In my program, I put on GUI in a table the number1, number2 and number1+number2. What would be the best: if I store the number1+number2 as a third column in database and all I do I read from datab... | 59dc69f52da606e133ca57f6179d413242f228fda3a46819b28ac8cd0715b63d | ['f5576a388d9845a6ba85de11d546c248'] | I have a JSONParser class where I have this:
Database db = new Database(/* Need context here! */);
In the Database class I have this:
public Database(Context context) {
super(context, DATABASE_NAME, null, 1);
SQLiteDatabase db = this.getWritableDatabase();
}
How am I supposed to give a context in the Database... |
3d1315864602ef1fd4ed357ff5363c2c9433235f2d5d2690123a1a254374e53b | ['f5576add6db8455b8f58ab8216f7bf42'] | You can use conditional statements to test for those values and tally them
In your example, the Code:
=IF(OR(A3 = $D$3, A3 = $D$4, A3 = $D$5, A3 = $D$6, A3 = $D$8), 1, 0)
I've placed this code in column B in cell B3. I can than click and drag on the plus sign to fill the cells below it adjacent to all of the A column e... | 926208a9a6dc12ab82a3380524a89e14ee04cc86bcc9fc6348286e9fa9039341 | ['f5576add6db8455b8f58ab8216f7bf42'] | Android does not have an API specifically for Bluetooth 3.0 or even just BLE. It provides a basic BluetoothProfile.ServiceListener API and several methods for their own Bluetooth Class, but in every case they abstract away hardware details, I would try for a newer open-source stack if possible, but none that I have see... |
94dd2db24f3ed6498c181dbb7dbc57cbddf475a689175a287c38a51bb4e75e8a | ['f557a28848a24bbb873a3cf178d9176c'] | Shogun also has GPU support of some of the operations used in the NN code. This is work in progress though. At this point in time, other libraries might be faster. We mostly built these networks in there in order to be able to easily compare them to the other algorithms in the toolbox.
The advantage, however, is that y... | 9617d2183a9fdae253d23727d38c7efaa998483dfcb00e69ad256e2705ea294c | ['f557a28848a24bbb873a3cf178d9176c'] | In Shogun 6.1.3 (and earlier versions), you can use a (global) static call Math.init_random(seed).
Since having a global seed leads to reproducibility issues in multi-threaded settings, in the develop branch of Shogun, we have recently removed this. Instead you can set the seed (recursively) of particular objects using... |
5573c743660451d03d089557ad1bec2cfd3e479c457e11e0cadbf0577a8583fc | ['f562e9ac175f4e0fa4b97fb3d8edf957'] | Tengo un dilema, ya que estoy intentando generar un archivo XML apartir de una fuente de datos, tengo una variable string, la cual me guarda un formato XML que me retorna mi base de datos, lo que quisiera saber es ¿cómo puedo generar un archivo y guardarlo en un directorio apartir de esa fuente de datos? Estoy ocupando... | 8dc706198a0eca481b7e258980fdc6d8490712984d0414c39857dd5ef5fc5a41 | ['f562e9ac175f4e0fa4b97fb3d8edf957'] | The question goes like this: There's a thermodynamic cycle of an engine, operating with an ideal monoatomic gas. What'll be the amount of heat extracted from the source in a single cycle?
My Approach:
The work done by the gas is the area enclosed by the cycle,
$$\Delta W = P_0 V_0$$
By the first law of thermodynamics,... |
786e8d4fd3190f47effb5507d45c5e9bbd91c5ba6f2410cf836b02603b771074 | ['f56764aff54d4e339dabd05f5c8b4983'] | SO it turns out it much easier that i thought..
1) separate them by single byte and put them in a buffer and & operate them individually and you will get the data. thanks for all the support.
**
byte input = (byte)( buffer[10]);//1 byte
var p_timeout = (byte)(input & 0x7F);
... | 6743f4a75b9307439eec2dc18da7750dbc99668f2ab9e11a619e67298a252286 | ['f56764aff54d4e339dabd05f5c8b4983'] | A simple console code which read the console called ShellStream,
private ShellStream Shell;
public TelnetConnection(string Hostname, int Port, string MySSHHost, string MySSHRootUser, string MySSHRootUserPassword)
{
SshConnection(MySSHHost, MySSHRootUser, MySSHRootUserPassword);
... |
bf2530d2574b405c9ee2239353bb6ed39cf5f7513d5e74b3b184d752ab4a1bac | ['f57fd400310645d286cf663225e5973b'] | I use NumVerify API in order to get the carrier of my mobile phone.
The result of this API is Telefonica Moviles Argentina SA.
But my number is ported out, i think the original is COMPANIA DE RADIOCOMUNICACIONES.
Do you know any application that helps me to get the original carrier when my number is ported out?
I need ... | dcf9f68e2262f2885a06068fffc6b22e8f67b661a7cdaf984f10f508ade57db0 | ['f57fd400310645d286cf663225e5973b'] | i've created a kubernetes cluster using kops and its config file in S3.
The problem is that i've modified some resources manually (such as ec2 properties).
I would like to know if there is some way to view the changes i've made manually.
Hope you can help me.
|
5c6cca62a9ec2db8d9d9d736851051f25264109ce0c008c31bcf295ab0c2c1ef | ['f58099fe51174aa6b5159e49b6468687'] | So as I thought there was an easy answer to my problem but I just did not understand some key concepts of React.
I've read up on state and props and decided that I need to to pass data from my child to my parent.
For this I defined a callback function in my main file (App.js):
getAutosuggestInput(value){
// Test l... | 3b5accf6fd54a03a1fa9d6aae23d4fcfde5ae686d033b5a605e59797f0dab39c | ['f58099fe51174aa6b5159e49b6468687'] | I cant comment with my reputation but I am unsure if this qualifies as an answer. I just tested it and the only difference I saw was that the paragraph attribute did add more bottomMargin than the gutterBottom attribute. However in my example it made like a 5px difference between the two.
|
80c5c5a24ad604087c1876d9c3125a58c6de9fb9a990b73b2120c2d6b83e5b4c | ['f5885c76b63e4213afe598697bca9d01'] |
I created a new Folder
I put some files in it
I created a new Mercurial repository in this Folder
I tried to commit all files using TortoiseHg
Until this Point I did this Scenario quite often.
But this time i get an error message cannot commit without an active Bookmark.
What does this error message mean?
| 1fea2f7c52781d39b8ad96d64c1900e5eab971f6e274db4ba794cec707304f00 | ['f5885c76b63e4213afe598697bca9d01'] | When I use a variable in PHP which does not exist, I will get a warning/error message.
Notice: Undefined variable
So usually I'm writing an if-statement to initialize it first.
Example 1:
if (!isset($MySpecialVariable))
{
$MySpecialVariable = 0;
}
$MySpecialVariable++;
Example 2:
if (!isset($MyArray["MySpecialIn... |
a438734c4e06a53d547f444c743d743d127bb95ad6dc0001bdc33c34ff2e882c | ['f58ac396d9434ce9935c27de3f4ade8d'] | I think there are diffrent ways of implementing this depending on your skill and time.
If i would do it, i would link the pixels that are same color and at the same place by
http://en.wikipedia.org/wiki/Connected-component_labeling this method. And then color them.
or this:
http://en.wikipedia.org/wiki/Flood_fill
| 8e1637229077e450fe6ea9c29434c8784a84e7592dd07f973c7a3dbcf03e6247 | ['f58ac396d9434ce9935c27de3f4ade8d'] | The problem was that XmlValidatingReader is not only obsolete it is also not doing what is is supposed to be doing.
I post my new Validation method basically from here: http://msdn.microsoft.com/en-US/library/as3tta56(v=vs.80).aspx in hopes that is helps someone :)
private Boolean m_success = true;
private void Valida... |
fa96d2d4efe1ad0f7f4567aca7973b6f9576f88c3e5cb3dfa87fcc978dc469c3 | ['f58ae854615342c78f03cdc7c145e4f6'] | I don't know why but in my case Odoo generates models like .py file in new application, but not like folder.
If you want use folder for your models you need:
1) import models in your __init__.py like this:
# -*- coding: utf-8 -*-
import models
2) create __init__.py in folder models and import your all models like thi... | 6b0781cdb5b2cc033d5b05507d1697a29d261d01b67187f88119429f844f48c8 | ['f58ae854615342c78f03cdc7c145e4f6'] | About problem.
cursorPatients / patients / etc is a class-level variable(static variable). It means you do not have instance and properties at this level. Roughly speaking, You trying to use self to access to an object but object was not created.
If I understood correctly you need to change some choices using a Form p... |
ac11febc1589f0cd6de04be7df17e2681f59979c00a33ddd79a28835bd593e6b | ['f58de14ac6a24e54b0d5c38015a9064e'] | I have experienced similar problem. There are 2 ways of importing modules generally. One is absolute path, the other one is relative path.
For absolute path, python uses sys.path to resolve the path, as suggested by above answers. But personally I don't like manipulate sys.path.
For relative path, python uses __name__ ... | ec6fc8e1f9e011f1bc10bb963daa714fdb578da9837761c3afae3a3147eb7a75 | ['f58de14ac6a24e54b0d5c38015a9064e'] | In your case, the UserProfileUpdateForm already binds with UserProfile, so you don't need to change context data.
However, I was facing exactly the same problem when trying to give some initial values to the form by following the doc. So in get_context_data, I have
context['form'] = self.form_class(instance=self.post,... |
a368b55e52a13aa45e1663540cf1162754138b7008b1917154f823c225667222 | ['f599a202b5a648f3ab8949c8c05aa00e'] | First excuse me for my english, is not my native language.
Thats the problem. Im trying to construct one form in cakephp 3 and save data into two models, saveAll() function not working.
Thats the specific case.
There are users, the users have several datas like, username, pass, email, etc..
There are to doctors, doctor... | 9b1bf723c7ee559141a4aa2504a6033be05ee01351842bea5b00f8c63317b87e | ['f599a202b5a648f3ab8949c8c05aa00e'] | I'm trying to get a resource value for internazionalization based on the value of an foreach variable.
My resource project is named Resources, I reference this on my main project.
reference properties
When i want to use it. only use something like this: Resources.resourceKey
The Problem
Now I need to use this but resou... |
cc58dcc3535cbd8dd8313666ef4daf10144b81f407a6fd48d7b60b5ae95891f3 | ['f59ef6279cd245569ff3892c6240bdf9'] | This function will return similar results as stated in the question and sorts the subsets and the complete array.
getAllSubsets function from How to find all subsets of a set in JavaScript?
function getUniqueSortedCombinations(inputArray){
const getAllSubsets = theArray => theArray.reduce((subsets, value) => s... | 3dd49704ab93cf44da0732df4ce44009a6210156a74026b6d6bcf4f6d758e607 | ['f59ef6279cd245569ff3892c6240bdf9'] | I have a Node.js API running express which receives a zipped file from an s3 bucket. I wish to send the file directly to the client-side without having to unzip or write the file to disk. The client script will unpack the zip file in this setup.
How can you send a response with a zip file or buffer to then be unzipped ... |
8ae7f2cba99e6aa46785ebdd154f2130ac4c803fc61019f9d939d07b26e08873 | ['f5a57b7dd1454892a4405c00d80c07a7'] | I'm making an Android app that needs to be able to see local network devices (either names or ip's). Currently I can scan the network and find the local IP's of devices. However it takes so long the user sees a black screen loading for a couple minutes while it searches the network.
Here is the code that I'm currently ... | 0cb0b35c1fb42bccd79e9c6f29bc3d573a07b4b4d924f13b5df15c0aec601253 | ['f5a57b7dd1454892a4405c00d80c07a7'] | Hey I'm trying to have the website I'm making send a cookie to the user then display a webpage.
So I've found http://alexmarandon.com/articles/mochiweb_tutorial/ as the only real tutorial about how make a cookie but it seems to error out for me.
My loop looks something like this (my make_cookie, get_cookie_value, rende... |
82cf492e5bd10c6f698f9076e195f5e0eaec02208251f9463c62860240fd8de8 | ['f5aba96e6c8c44a69ff868bdc86526a1'] | Try this rule:
iptables -t nat -A PREROUTING -i eth0 -s ! 192.168.0.2 -p tcp --dport 80 -j DNAT --to 192.168.0.2:3128
iptables -t nat -A POSTROUTING -o eth0 -s 192.168.0.0/24 -d 192.168.0.2 -j SNAT --to 192.168.0.1
iptables -A FORWARD -s <IP_ADDRESS>/24 -d 192.168.0.2 -i eth0 -o eth0 -p tcp --dport 3128 -j ACCEPT
wher... | f3992f79b8551fbfa4c66dfe2c78ecb2b800e21d013af1cd03cfdfcbbdb5770e | ['f5aba96e6c8c44a69ff868bdc86526a1'] | Немного переделал график из примера, таким образом - http://jsfiddle.net/52dst6fy/
$(function () {
$('#container').highcharts({
chart: {
type: 'heatmap',
marginTop: 40,
marginBottom: 80
},
title: {
text: 'Sales per employee per weekday'
},
xAxis: {
"type... |
da02fd8909d51318fa1f634c20b4720efc3d6a948a19aab203117c0f31841b8e | ['f5ae50dedd9a4e35a5f6e57de7a15b14'] | How can I access a row in material-table (in editable mode) and integrate a timepicker from materialui?
<MaterialTable
title=""
columns={columns}
data={state.data}
editable={{
onRowAdd: newData =>
new Promise(resolve => {
setTimeout(() => {
resolve();
setS... | c2d9aec8429fa1b2ca66437b5398db859fd9f3bf842cf31770e6e715b8cbd2d0 | ['f5ae50dedd9a4e35a5f6e57de7a15b14'] | The error is due to the amount of data to download as it is described here: getting this net<IP_ADDRESS>ERR_EMPTY_RESPONSE error in browser
The solution for my problems was creating a daemon thread. The response is sent directly after starting the background thread.
from multiprocessing import Process
@app.route('/dow... |
67bca807b959d822254fe5766837c0140a994ea0432a8feed731e9b1964b0c91 | ['f5b4b8c43c02439b8368ec7e96dd7f9a'] | As I said, the site is up and running fine with anonymous access for a while now. It is not an issue with the anonymous permission on a site or a list level. As an anonymous from a browser I can open and view the specific items. I want to do the same from a WCF service, using a server side code. | 8570308e72c0ee318b375f10d878b5c901025893518d736b60d5a3ddc49296af | ['f5b4b8c43c02439b8368ec7e96dd7f9a'] | por ejemplo el text decoration debe ir en el estilo
style='color:#838383; text-decoration:none;'
pero no basta con eso, debes documentarte acerca de los estilos que Outlook acepta, te recomiendo https://litmus.com/ puedes testear tus correos antes de enviarlo, outlook, gmail, hotmail 2003, 2009 etc, es genial
|
bf451622299c1deeb5739d92e40db37fcd41ddc8d09a379436ef3ed6806dc6e7 | ['f5b6893fda8241d486e1bc5bdad34afe'] | It follows the steps in an octave of music. Full step, full step, half step, full step, full step, full step, half step. The full steps the third year is leap year. The half steps the second year is leap year. Thus the leap years are in a 19 year cycle are as follows: 3, 6, 8, 11, 14, 17, 19. No trial and error, j... | b460de4f8ec8bcd95894874196140755410350248a9c45cbc25b838298732584 | ['f5b6893fda8241d486e1bc5bdad34afe'] | Early returns to simplify a function and readability are usually good, but one responsibility for a function usually leads to more modular and readable code. If you have a condition that is not purely for an early return, chances are higher your function is breaching single responsibility principals (if you care about ... |
447cd9fa2944cb957308202111dbb542c031f4c1350982664a237c7145a86517 | ['f5bfcd9fb0db4d329326c8d0113734f9'] |
When connected to my FM transmitter, I am able to hear audio from calls but they can hardly hear me.
Similarly, if I want to use Google Assistant, I have to shout. I believe the issue is that a microphone on the transmitter is being used as opposed to the microphone on my phone, and this microphone is bad. However, ... | cdb26d119ca52a8e4e564eb48b07e450001c99cc92646d60f232f3dcb95ef9ac | ['f5bfcd9fb0db4d329326c8d0113734f9'] | <PERSON> Yes. The total amount of code would even slightly increase because of duplicate imports in the several modules. But this is not an issue. What I want to have is multiple smaller modules that each handle one ORM model. I see no way of generating the respective code automatically. |
aa00ff91729b812ae53880ba65123b48cd18b1dc289964178439df1ce658d01d | ['f5e41a11f36c4b50b5818727f39b11db'] | My form have two select in my view page like this
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<p>Main</p>
<div class="top5">
<select name="main" id="mainClass_select" class="form-control">
<option value... | 7017d7a309414d32ab3dae398551e9a4fdcd81a045523e9dbd0180f13b5bdc32 | ['f5e41a11f36c4b50b5818727f39b11db'] | I wrote a radio list with image animate. When it was hovered and checked, it can change to another image.
it's works on all of the browsers but on IE its not work when I hover on it.
I don't know if I wrote some css wrong or miss something about ie issue?
the html is:
<ul>
<li>
<input type="radio" id="f-option" name=... |
34ec9a589376a8d22ed768613c92561610af7f04e2fc5f028d5a5914aedc3a9e | ['f5e82ee5961943bf9b8ea806b0503b46'] | you have to use a div to render summer not and populate a hidden text area with the summer note content before you submit the form, see the example bellow,
<div class="panel-body no-padding">
<textarea style="display: none;" name="emailmessage" id="emailmessage"></textarea>
<div class="... | ed42b61794aabac8c1e80df271d023f899db3039f6c0c4d88c5af6666d2dc887 | ['f5e82ee5961943bf9b8ea806b0503b46'] | You have a 1 to many relationships, in this case you donot need pivot table, gym_id is foreign key in the user table and you will define relations on the models.
In gym model you will define a hasMany relationship to user model and in user model define belongsto relationship to gym model. (Refer to Laravel documentatio... |
d7ded55b1873a3043f57ee53faf501a34ade553812eec209120b835f7645b8bd | ['f5f34ac0442a4bc18babea3286a4c96f'] | I noticed a pattern. There is a class of notebooks (business notebooks I think), like Dell Latitude or Toshiba Tecra, that have inferior performance compared to notebooks that are cheaper- like Dell Inspiron or Toshiba Satellite, or Asus laptops.
Why is that?
The CPU and GPU are faster on cheaper laptops.
The only nota... | da3e2457233812fb301ec05d43ed2752477b79842d5dbf276b3f2a2a78e6c6e7 | ['f5f34ac0442a4bc18babea3286a4c96f'] | thanks. Regarding graphic adapters, I see that ThinkPads have "NVIDIA Optimus 5400M", which according to notebookcheck "is based on consumer GeForce GT 630M / 540M chip but with lower clock rates" (btw Some Asus laptops ship with 710M-740M at half the price of the thinkPad). Anyway, I'm a little skeptic regarding "lowe... |
7355333f71b98b7bea10a238d577b6a4b622f0879f6b7be62d0868a486e23a33 | ['f604dc88fe064b52a820c470ebb54383'] | I have a text file in the following manner:
<a href="https://en.wikipedia.org/wiki/Scotland" h="ID=SERP,5161.1">Scotland - Wikipedia
<a href="https://www.visitscotland.com/" h="ID=SERP,5177.1">VisitScotland - Official Site
<a href="https://www.bbc.co.uk/news/scotland" h="ID=SERP,5191.1">BBC Scotland News - Official Si... | ec3e0d242ea940af99c86a07fddb9ead7b03447fba702254d2ce5c57bd1e3ede | ['f604dc88fe064b52a820c470ebb54383'] | JSON :
{"results":{"opensearch:Query":{"#text":"","role":"request","searchTerms":"Rose","startPage":"1"},"opensearch:totalResults":"102325","opensearch:startIndex":"0","opensearch:itemsPerPage":"1","artistmatches":{"artist":[{"name":"Guns N' Roses","listeners":"3198315","mbid":"eeb1195b-f213-4ce1-b28c-8565211f8e43","u... |
928c31e38af45d3f7bf50c6781bdf1c2bf989c971dafe04635e157029c669b74 | ['f60da4e1ceef4caf9d901026f45c1679'] | While executing the query below, I'm getting the list of object with status as 'INVALID'.,
SELECT * FROM USER_OBJECTS WHERE STATUS='INVALID';
When I checked the status of the objects individually, they are in compiled state.,
Even after dropping those objects, they're still showing up when I execute the same query.,
A... | 91c995159de2dd4bca9bf42d3ca2a5ad71264f32646074d15fe277b7468c3d71 | ['f60da4e1ceef4caf9d901026f45c1679'] | I've used pandas to import a csv file as below:
import pandas as pd
csv_input = pd.read_csv('Accounts_Input.csv')
but after importing, while checking the values it seems that it ignored the 0 from the values if it start with a 0 as below:
input_file after_import
<PHONE_NUMBER> 897456129
<PHONE_NUMBER> <PHONE_NUMBER... |
782836eddbce8596ddf57a32f7f1c6c7bc738b027b9b48cdf4b826037890884c | ['f619aad72d1c4cd998c32b366d7253ed'] | You should specify which queue you are using for the input and for the established connection. For example, queue 0, with 192.168.0.2 as your gateway (assuming you are the gateway and the one that does the masquerade):
iptables -I INPUT -s <IP_ADDRESS> -p tcp --dport 6767 -j NFQUEUE --queue-num 0
iptables -I OUTPUT -d ... | bd491f2a715146bce0f53736c3731c969c0b8bf4283509decc1c46e1ac064ba4 | ['f619aad72d1c4cd998c32b366d7253ed'] | You can use scapy for packet manipulation
from scapy.all import *
packet = IP(src="<IP_ADDRESS>", dst="<IP_ADDRESS>")/UDP(dport=4321, sport=123)/"payload"
print str(packet)
# output: 'E\x00\x00#\x00\x01\x00\x00@\x11t\xc4\x01\x01\x01\x01\x02\x02\x02\x02\x00{\x10\xe1\x00\x0f+?payload'
|
11b161cd834b2f51c5df403803ef7e2e71b8a1950a30350bedfb4b983a48b031 | ['f63244f46fef434aaabdfc1cbd0767a3'] | My app is a sports app. In which the game should continue even in background, i have used nstimer for that. But I am not able to run the timer in background. whenever the app is in background the timer stops and when return it continues from same time from which it has left.
| d3d73b0fb3b78259c9a7ea9c79dbac2d1577399b54a19ed1ba3e10cc5a095410 | ['f63244f46fef434aaabdfc1cbd0767a3'] | I want write a textField value which is a user name to file named login.txt.
My code:
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
// the path to write file
loginFilePath= [documentsDirectory stringByAppendingP... |
f1422fe77dde643f48cdff27e7345a6439a8632cc0b143fe71fd2cf2a406c65f | ['f642aac4edba4aaab7f80f0d99e9d6ed'] | How about instead of closing the question as off topic, find a similar question that was answered with constructive help about how to teach your self to "debug simple issue", "learn to program", "use the debugger" etc. and link to that one as a possible duplicate... the Kid actually gets help learning, doesn't' get his... | afbcd155f29c811d8ac6f4831da27cfdd75cc76dcadc61265e2c4f43cebc1a6f | ['f642aac4edba4aaab7f80f0d99e9d6ed'] | I am trying to standardize map export for some of my maps with ArcPy. In the ArcGIS interface, I would click FullExtent before exporting (File --> Export map), so that the full map is covered in the image file.
With ArcPy, I have not understood how this works. Currently, I use arcpy.mapping.ExportToJPEG to export the m... |
15afc2be9266ac3a95b4eafe1104b9dc310c4ba2786ac01ba64c7c52ff8a4645 | ['f666cb9aad5d4e54ad3b0b738f3c42a8'] | I had a similar problem. I had both two installations of Python27---the Ananaconda distribution and the other. Python27 folders appeared before the Anaconda ones in my search path, although Spyder was executed through the Anaconda executable.
It turned out that making the Anaconda distribution folders first in the PYTH... | 6ae4a339d8f74f02f73b5ba7c3818ff682bba9b3deb4171f4f06de3d7ca77544 | ['f666cb9aad5d4e54ad3b0b738f3c42a8'] | You can stick the line you want executed at every startup in your .Rprofile file which should be in your home directory. I have 3.2.3 version of R and that worked; however I do get a warning message about using a non-http version of the site.
Similarly to you, I was finding the original repository the system was usin... |
effb53a725b037a896c9f7118a45be497a0db2bb2f678909b4ed53efe6045d49 | ['f66a29252fe044eca669c94985e6f34b'] | Find and write the output of the following C++ program code:
Note: Assume all required header files are already included in the program.
void Revert(int &Num, int Last=2)
{
Last=(Last%2==0)?Last+1:Last-1;
for(int C=1; C<=Last; C++)
Num+=C;
}
void main()
{
int A=20,B=4;
Revert(A,B);
cout<<A<<"&"<<B<<endl;
B--;
... | 2fc1a29902939351b50dd884c5a083e74a64635823c06582b6c5b9ed989f2a8a | ['f66a29252fe044eca669c94985e6f34b'] | What value does Firebase Auth Identifier store from Facebook Login If user is not registered with email but with Phone Number. My app provides facebook login but now when a user is carrying on with Facebook login my firebase auth stores the email address as an Identifiers but when someone login in my app via facebook l... |
da56b76e2f93a89960968be2d7fcf60b40ffc466de12e0dbe2686fea84c6a8c2 | ['f6716446725c40d7aab21c4d03facfd9'] | I am very new to Apache Spark and trying to connect to Presto from Apache Spark. Below is my Connection String, which giving the error.
val jdbcDF = spark.read.format("jdbc").options(Map("url" -> "jdbc:presto://host:port/hive?user=username&SSL=true&SSLTrustStorePath=/path/certificatefile", "driver" -> "com.facebook.pre... | 1072a3b405331c1175b1cb00df2f5e05cb035eedc2965c089d0604a3139b7385 | ['f6716446725c40d7aab21c4d03facfd9'] | I am using pyspark script to read data from remote Hive through JDBC Driver. I have tried other method using enableHiveSupport, Hive-site.xml. but that technique is not possible for me due to some limitations(Access was blocked to launch yarn jobs from outside the cluster). Below is the only way I can connect to Hive. ... |
65da0a00f335da69912d559edf8e3b83722ec70348a08b0f5e4de52e515cd813 | ['f67302bb250349dfaa7b982337a4bc64'] | Suppose that I run a fixed effect model
$$y_{ij}=\beta_0+\beta_1x_{ij}+d_i+\epsilon_{ij}$$
where $d_i$ is the fixed effect model for group $i$.
Now that I want to show the data, is it appropriate for me to show all $(x_{ij},y_{ij}-d_i)$ points so that all of them lie near one single line? Thanks a lot!
| d171c01494ccee458c660c4ee4d4e0b91a44d6b371f34d53395841e73b182069 | ['f67302bb250349dfaa7b982337a4bc64'] | a) Only after I had explained everything, did he stop blaming and did she stop crying.
b) Only after I had explained everything, did he stop blaming and she stop crying.
c) Only after I had explained everything, did he stop blaming and she stopped crying.
d) Only after I had explained everything, did he stop blaming an... |
a8db14a0259e873287bbb7dd9eca776da0e5b484b5539b7628979147f3307340 | ['f675642b723c4ef4bff45b10bb6e1f83'] | Use the openssh_keypair and authorized_key module to create and deploy the keys at the same time without saving it into your ansible host.
- openssh_keypair:
group: root
owner: root
path: /some/path/in/your/server
register: ssh_key
- name: Store public key into origin
delegate_to: central_server_name... | 393103ea2db4da2c2ad252ee89b6d0c01d5ce59aab1b2a6768e35933819a4650 | ['f675642b723c4ef4bff45b10bb6e1f83'] | There are a few problems i see with your code here. Correct me if i am wrong.
Here you have declared your variables vno,hours and fee globally. So why do you need to declare them again in the methods (input and calculate)? Use the same globally declared variables.
In this case your display method takes the vno, hours... |
98870a2c6f99992c4ba6ff687d75f66842c2555502977dd0eb2688d41a87795d | ['f67e2091c0c747ac9e4a0c39a01a9e1a'] | Layout.js
class Layout extends React.Component {
render() {
return (
<nav aria-label="breadcrumb">
<ol class="breadcrumb" style={{margin: 0}}>
<li class="breadcrumb-item"><a href="/movies">영화</a></li>
<li class="breadcrumb-item"><a href="/showtimes">예매</a></li>
... | d49d4c98a4b781e18524a5987eff1f48a281efc6088bf70960f96540874f87a7 | ['f67e2091c0c747ac9e4a0c39a01a9e1a'] | you don't know "lstrip"
click here, https://www.tutorialspoint.com/python/string_lstrip.htm
use this code instead of "url.lstrip(host)"
# -*- coding: utf-8 -*-
from urllib.request import urlretrieve
year = 2006
max_year = 2019
host = "http://data.wa.aemo.com.au/datafiles/outages/outages-"
ending = ".csv"
while year <... |
2d581714cc770e6614b1dcfc9b85a14a538baf53b364a7fc172ea125e0915f8b | ['f684531968384f5e9f279688a5437b9f'] | We've been seeing an significant increase in the number of script errors reported in our app that uses the Realtime API. Specifically this started happening around 1/27/16 at ~6/7PM PST. Poking around a bit I believe I was able to track this back to the XHR error callback installed by the Realtime API.
function EA(... | bca2606b84349ccc46467f38120f9a45af246e6034f898731cba5b51160e39a7 | ['f684531968384f5e9f279688a5437b9f'] | There are a few ways to retrieve the user's email address. The easiest is to use the id_token returned on the user's access_token that you receive (#3 below).
1) You can use the UserInfo endpoint after including the 'profile' OAuth scope: https://www.googleapis.com/oauth2/v1/userinfo?alt=json&access_token=[token]. Maki... |
29a8b8cb3974ff1173a9e10bf444d1acc97ff4f2d05c6e0465bd499c6579df42 | ['f687d6a50f8a40428976f1ae01a7ebc6'] | Very contentiously: <PERSON>'s original paper is about the computability properties of something "non-Platonic" (factual, etc. rather than "in math world") - a human performing calculations. (See <PERSON> and <PERSON> historical work.) Consequently it isn't mathematics <PERSON> is doing, but how humans do mathematics. ... | fe12b108af95a9bac3c88313c2bfa0eb26c9cd7306e38773e1a04f010b8492af | ['f687d6a50f8a40428976f1ae01a7ebc6'] | The accepted answer is a couple of years old, now, and only a select number of browsers still do not support TLS 1.2 by default and they only account for roughly ~5% of all web traffic. IE on Win XP and IE < 11 on newer versions are the biggest culprits.
This link displays a matrix of browsers that support TLS 1.2.
Chr... |
4b58099e4b0b1f9cb8e8c83fe7ecde46792a2a0fcb1bb3c842821d9e55142b40 | ['f6bed841435b480ea462f2c57a716848'] | Why doesnt work my mixin in new compass version?
I want to set colors for navigationpoints. In the older compass verison everytihng works fine (0.12.6). I updated to the last Version and got the problemes. This is my mixin and some parts of the sass files:
$basic: #f3f3f3;
$basicHO: #eeeeee; ... | 869220202f9b5dc06e675f0bc89c7167cd39ac0e39c3f867be12caf9b3580c78 | ['f6bed841435b480ea462f2c57a716848'] | Okay i got some workaround for that. Just open the jquery.bxslider.js, row 1212 copy and enter the code and make some adjustments:
el.goToNextFiveSlides = function(){
// if infiniteLoop is false and last page is showing, disregard call
if (!slider.settings.infiniteLoop && slider.active.last) ret... |
246cc19b343c3277dc5be41a0d0c48205f49e2d7014ca23cd2d3e355489f17cf | ['f6c76f3383864654b558a6bf817a723c'] | Finally fixed the issue. Factory use was incorrect. This is the factory module
.factory('Company', ['$resource', function ($resource) {
return $resource('/companies/getCompany/:id', null, {
save: {
method: 'POST',
url: '/companies/updateCompany'
},
insert: {
... | 05f6267f8947284f35aa97ed788753a9124c884bdf5d06b9b0c165ea6c5f780a | ['f6c76f3383864654b558a6bf817a723c'] | Solved the issue. Just use Bower to download needed dependencies and add them to /static directory.
Include in index.html
<!DOCTYPE html>
<html lang="en">
<script src="bower_components/angular/angular.min.js"></script>
<script src="bower_components/angular-resource/angular-resource.min.js"></script>
<script src="bower... |
1ed921bb45979f4bf5af1f014959be88a9199d552cac0df84911677b67ff2213 | ['f6dab2169e264c9c834ab2b2bbf7ec3a'] | You should install usb drivers for your device on Windows, if you don't have nexus device or cyanogenmodOS. Then activate debug mode, then when you plug device in PC, choose on status bar connection mode(for Sony - "only charge", for LG - MTP mode, for some HTC devices - PTP), then check it. It helped me, i have 3 devi... | d3c41588c8fb991167275f2d8af4ff83db9ced901f0da90729d5f7379fb66cf8 | ['f6dab2169e264c9c834ab2b2bbf7ec3a'] | Add this before onCreate:
private WebView mWebView;
private ProgressBar mProgressBar;
//new block
private static final String TAG = MainActivity.class.getSimpleName();
public static final int INPUT_FILE_REQUEST_CODE = 1;
public static final String EXTRA_FROM_NOTIFICATION = "EXTRA_FROM_NOTIFICATION";
private ValueCallb... |
26a00e02e186b6e159a67bb7b13a9ebd64a95b354d5c9c4463d43e2a0d25ef19 | ['f6dbb4ef8c6f4de09fba0e4a650ab0b1'] | What is currentDelayMs for video stream actually ?
How currentDelayMs is calculated in webrtc-internals? Why it differs from Rtt?
I tried to get an average of delay in video and audio from the graphs. Sometimes average delay is found about 2.25s. I want to know what it represents and how it is being calculated.
| 01f939133f8aba88530e4f379575c8890e82685372bbdcfd81a38d8fce4f1d02 | ['f6dbb4ef8c6f4de09fba0e4a650ab0b1'] | Is there any standard for tolerable delay in audio and video communication for web ? I have noticed delay using my WebRTC application and want to compare it with the standard (if any).
Wikipedia has mentioned following delays:
Live audio : several hundred ms to a few seconds,
Telephone Calls : 200ms,
IP calls: min 20m... |
49db6e3cd02050ed0cb1f1e295d417940fd1c75e475c905db22e3a36a6d23e04 | ['f6e5df0a4dff434fb6e4e89a32cb7bb3'] | I have added jCarousel to the HTML Form which has multiple columns.
For example: I have list of cars arranged first column and then it will have feature list of these cars in 8 columns which user can set using input fields.
If I set the list of cars outside of jCarousel it will not lined-up with input fields since som... | d512605eacdeab5f1a859ddc36097f036bd9ea4d4d1e1dfbcf83d8718d133a4e | ['f6e5df0a4dff434fb6e4e89a32cb7bb3'] | I have one daemon process written in perl which listens custom commands on port 8622.
Now I want to write a client program which can call daemon process using telnet command. client program must grab the output and process further based on received output.
I don't have any username password for telnet which is running ... |
b800ef24a7a1c3e4a8fe0f631ad4b50a1538399f121380610a8b0bba1db14566 | ['f6eb53b69dc04b61baac9ae1810d5cef'] | I got stuck with such kind of problem. I'm developing Django application hosted on Apache/mod_wsgi.
I replaced the standard Django authentication with REMOTE_USER authentication according to: https://docs.djangoproject.com/en/1.8/howto/auth-remote-user/
I want to get valid user from Apache mod_auth_vas service (which I... | a7b8b3c8d4da82a743e468368f27ff30bdd06c76878de51b12342a84f208472e | ['f6eb53b69dc04b61baac9ae1810d5cef'] | For me worked solution based on:
https://docs.djangoproject.com/pl/1.11/topics/auth/customizing/#extending-user
Let me explain what I did with Groups extending default model with email alias:
First of all I created my own django application let name it
python manage.py startapp auth_custom
Code section:
In auth_cust... |
4107b45d5e5aeadc93bf16258dc48f2abf5ee57eedcefadc3da7a971cc34ef35 | ['f6f988e3b4bd40d18def5173d9bbbad7'] | First-class continuations support allows you to express $P \lor \neg P$.
The trick is based on the fact that not calling the continuation and exiting with some expression is equivalent to calling the continuation with that same expression.
For more detailed view please see: http://www.cs.cmu.edu/~rwh/courses/logic/www... | 90496c93010603e780cf5ad1f2d452f91dc4e17b1bcde3a20721431415302340 | ['f6f988e3b4bd40d18def5173d9bbbad7'] | The problem with your snippet is that [ H: ?P |- ?P ] will always match in this case. The first time it will match H : blah, and the second time it will match H : C -- as C and blah are convertible in Coq -- and the unfold will not change anything, thus aborting the repeat.
I would write
Ltac my_auto_unfold nam := rep... |
f16560fe7b48c9d493d6c3447aea7ae8c85fb6905ca04c57041dd110be0c5aa7 | ['f70a0416f6a44451beed1a28d036ef95'] | I'm trying to make a text-based rpg using javascript. I currently have a script that can run by itself; as in it's completely automated and receives no input from the player. But I want to make it so that I can take the value from a textfield when the user pushes the button. So for example, if the user enters attack in... | 5178787580ee05e69a0d8c6fad8f8fabffbbabf224dd633342c6b622ddd37f21 | ['f70a0416f6a44451beed1a28d036ef95'] | I'm trying to post an image when in my javascript file with document.write(). The problem is that when I try it, the image always comes up broken. Here is the code. Am I writing the tag wrong? I've tested the images on non-javascript pages and they seem to show up fine.
var replay = "yes";
var userChoice = prompt("Do y... |
5e7d1fa64ea99a4aa4856493fee7d61cb21c2748c43d17f56b684504c060f09d | ['f70e41f9c0564d99a4d6ef697ed97a7e'] | There are a couple of problems:
1) google.maps.event.addListener(mapObject, 'click', function(event)
You haven't provided your map creation code, but the variable mapObject should be a map object... That doesn't fit with any of your other references to the map object map.
2) new google.maps.LatLng(event.latLng)
You don... | 5240ef341b499a4cd9499e766e1f7903bcbea58f51398c11bc4059c459c9f64e | ['f70e41f9c0564d99a4d6ef697ed97a7e'] | You can try switching based on file types. If you take the extension of the file:
$ext = pathinfo($file, PATHINFO_EXTENSION);
Then you can whitelist your images as so:
if($ext != 'gif' && $ext != 'jpg' && $ext != 'png' && $ext != 'jpeg')
{
header ('Content-Disposition: attachment; filename="'.basename($file).'"')... |
69fa5210d39a9d5c88991a57e26c7af5af3eb2fd23b3dbcd605cf898054f3aaa | ['f71471d913534f51934f9fe3debcb867'] | I am new to the world of cloud and have much to learn so forgive me if this is a simple and obvious question to ask. I am trying to deploy a WordPress website on the cloud. I am following this tutorial as a starting point WordPress Website with an External Amazon RDS Database to Elastic Beanstalk
I created my database ... | 3af9a099271eaa6024605ba3984bd245324e85439ac4e08c55a5a5ba753d58b2 | ['f71471d913534f51934f9fe3debcb867'] | I am making a dashboard with react, I want to have doughnut charts that display some information. I am following this tutorial that uses chartjs and I have ran into an unexpected problem.
When I run my app, the dashboard does not display the doughnut chart,
however if I add a Line graph or bar chart, they display ... |
c7cbe52aec7f236388aabb56566fb50a7dcc44aa57e0e001eb8f12283f5095f7 | ['f7186eb774694fd39e6e2bc081fc4166'] | My Problem is Showing 3D Bar chart With not more than 10 values in one series.
Coming to library what i have used is J4L charts for Graphical reports in my android application. So , when i want to show more series values , am unable to show them in chart only i can show 10 series values.
Hope you people understood.
if ... | 526528c9c8560a80d5ac8afbcdfa3883481fb9a4dbc3d6bd4763455f84135681 | ['f7186eb774694fd39e6e2bc081fc4166'] | I have done lot of research in collecting several types of charts in android...
these are some of them.....
Java related charts
J4L charts
artful bits charts
steema charts
afreecharts
android plot
achart engine charts
Using Javascript charts are build .
Below i have mentioned them
mcharts
opengl
fusion charts
...
li... |
a13df9a063bd8b40c72c1d0ffae1bcfb068384b54acc632852dfd1186b154014 | ['f71ad9ef5df243c896052037d7100c1e'] | I am trying to exchange some data between android and other arm device via BLE, and large data was splitted into small fragments since the limitation of MTU. For robustness, one frame CAN ONLY be sended(by writeCharacteristic) when its previous frame has been confirmed(by onCharacteristicWrite). now here comes the issu... | 223fa048e08695a178c95b53e9bb23dee3386360fd9a4d10ee12f6a1b742e9e0 | ['f71ad9ef5df243c896052037d7100c1e'] | I am trying to establish a wifi connection between iPhone and another ARM device(as AP), and thanks to NEHotsportConfiguration added in iOS11, the connecting process becomes easy and quick and all I need is AP's ssid and password which will be transmitted via BLE, Of cause they must be encrypted. now here comes the que... |
dc12e4e9dd3fd7672f8cd5c5e95390f8f960b1f034b83be2ce6fd7d30c84a26e | ['f72134eb1f294c2488f4faf0cbe374f5'] | Got the solution,
I used the following XAML to HTML converter in my silverlight project.
Thanks
// ---------------------------------------------------------------------
//
// Internal Methods
//
// ---------------------------------------------------------------------
#region Internal Methods
... | 2f92b647288c9a23ee82baccb2dab081a69baee97ac01d9955b770279664a27d | ['f72134eb1f294c2488f4faf0cbe374f5'] | I have created an application in silverlight containing a RichTextBox.
Now, the problem is...I want the HTML of the data which is entered in RichTextBox.
RichTextBox.xaml property gives me the xaml for the data in the RichTextBox.
Now I want to convert this xaml into html.
PS: I need to write the converter into SilverL... |
e3681f8faf56ecfb372c649aae1ed57314d1af75b249dee6893cde55c6fbc63c | ['f728109b56a94044ba06ebeadec3c304'] | Currently I have a batch file that calls a VBScript and executes the script and exits from that script into the command prompt window that I called the batch file from. I am wanting to return to the batch file from the VBScript and loop back into the beginning of the batch file and ask for the information from the user... | 977b446156d117234ceb387225894acb3096e46023835c81c84f4068a5ed934c | ['f728109b56a94044ba06ebeadec3c304'] | I am getting the following error with my code in a .vbs file:
C:\...\Root_VBS_Script_1.vbs(19, 1) Microsoft
VBScript runtime error: Invalid or unqualified reference
1 was unexpected at this time.
The .vbs file is as follows:
Set wshShell = CreateObject("Wscript.Shell")
Set args = WScript.Arguments
arg1 = args.Item(0... |
5cf7e2a6ec406b6e7dca1822e0947c5b731a8d948e385364acb6041535bf5eaf | ['f7285678a18245528ec477ef341681af'] | Sharepoint 2013. I am using wcf service to create items in list programmatically that contains DateTime value. This code falls with error "Invalid date/time value" on
item[NewsFields.Date.InternalName] = DateTime.Now;
Full code:
public ServiceResult<bool> CreateNews()
{
try
{
using... | eadfa33184a3713dfcc03b708589da74550df06268c7bd9cefeab380a484447a | ['f7285678a18245528ec477ef341681af'] | I have this liquidsoap script thath streaming an audio to icecast server
out = output.icecast(
host = "<IP_ADDRESS>",
port = 8000,
user = "dj",
password = "test",
name = "Test name",
encoding = "UTF-8"
)
wd = "C:/Users/Administrator/Desktop"
pl = "#{wd}/dreamsoundstation"
tech = "#{pl}/technical"
set("log.file.path"... |
ecc69b3348381883ff8c968604af7a0a12c2eeeecd0279e4536f14ab269e9aca | ['f7330194c3f145ebac69eef936b47990'] | To try and answer your question fully:
You are right. As you can see here https://docs.oracle.com/javase/7/docs/api/java/lang/Thread.html Thread.currentThread() returns a reference to the currently executing thread.
Yes there is. Android: How do I stop Runnable?
Because as you suggested in 1. you are interrupting the ... | c71ef7a670c6c5d14fe73a0f6c39921822d77a53d8bc084b8b59ebbc4826e772 | ['f7330194c3f145ebac69eef936b47990'] | Maybe I'm only being stupid right now, but I've been struggling really hard.
I am writing a networking application that interacts with another library right now.
The messages that this library produces are in the form Map<Path, Object>. These messages now need to be serialized.
I do not know of what type these Object's... |
4de750f3e2633ab5db259d0afc3476e0749b71bc5a7b9dbe065ac1a27c86fd3e | ['f734108c942f4c9eb58138d2243c148d'] | как передать объект в значении параметра при передаче GET-методом с помощью элемента <form>?
необходимо получить
https://example.com?token=123&obj={"name1":"value1"}&obj={"name2":"value2"}
следующий способ не подходит:
<form action="https://example.com">
<input type="hidden" name="token" value="123">
<input ty... | c403c4448259f71b48bdd022d2eb855f500ef3617f1511a99dfa30cdd4cee423 | ['f734108c942f4c9eb58138d2243c148d'] | My speakers are connected over SPDIF and when I plug in headphones (front of case), the speaker volume goes to 100% and back to its normal volume when I remove the headphones.
While the headphones are plugged in, the volume media keys change for the headphones but the speakers remain at 100%. So the system does switch ... |
f3a573c4267860136940f2b0abb433c4eb6f1f75a6e496db2ec3b315fad8d2ea | ['f73f3e2e01104b3b840a4a658640a2c2'] | @Krythic Same :) I do believe that it must contain some commonly used libraries (`libjpeg`, `zlib`) as these are mentioned in the WiiU's licence iirc. Probably a C and/or C++ compiler (after all Unity's IL2CPP needs to convert to /something/ and lots of useful libraries are C) Probably also some OpenGL based stuff too.... | 53f2c482b2edc4c030b7073411d192535c1eab46a49ed170f10d36e0480c7a22 | ['f73f3e2e01104b3b840a4a658640a2c2'] | Turns out, I didn't account for the fact that X11 has two buffers: primary and clipboard. My text from xterm was copied into primary buffer, while I needed it in clipboard buffer.
I was able to fix the problem by installing parcellite package, launching it and configuring it to synchronize two buffers.
|
1ab2eae60056d5ccfe27de066a076d6dfb7ba26b58ff4bf705b0a8c032cf98c7 | ['f786b0983c4844e198b64aee440e1d58'] | I recently purchased a web hosting plan with Godaddy. They use a program called cPanel to host the specified website (This is a Linux based machine). I recently added my website up to the file manager, but found I needed to change the document root. I got SSH working and went to the website directory folder and attempt... | 0e15085a46195f8cb579c263e9de89f1b58518c77371781a784283e87bb5c4cd | ['f786b0983c4844e198b64aee440e1d58'] | I am attempting to ssh onto a CentOS 7.5 machine (<IP_ADDRESS>) via smart card technology.
Now I can SSH using the master slot's x509 certificate with the matching private key to accomplish this, but this means that I must put the certificate's public key onto every machine that I wish to SSH onto. That is tedious if ... |
d404c88967563333fd816b5a094d1b5aff31bcd5411a50ad237f02465d88d5f6 | ['f7885db7e7d74a0fa0d9f8f1768c4b1c'] | With Angular 2 and angular-cli, it's pretty straight forward. You dont need any gulp or custom script. Just build with angular-cli ng build --prod and it does nice job of treeshaking, minifying and producing a very small and optimum bundle. I've written a small post on this - to build and deploy Angular 2 app on Google... | 5a6c5c4543a5bcc86f95a589856ac855b2f0591b7f9ece79c0dcb4e549ea4e63 | ['f7885db7e7d74a0fa0d9f8f1768c4b1c'] | This should work. Tested it locally
prefix = "004"
prefix_len = len(prefix) + 1 # +1 for space
end_line_prefix = "819"
desired_value = "8041"
with open("input.txt", "r") as rfile:
for line in rfile:
if not line.startswith(prefix):
continue # if it doesnt start with 004, not interested
... |
87036536e79212d53625aeba536e4029c1212e72e00219c0e7a5a892dd3cefcc | ['f791dac64354453a9c8093dc4a1744b3'] | I fixed this on Windows 10 by using the Troubleshoot compatibility tool. It has to do with an extra checkbox being enabled.
Navigate to devenv.exe by right clicking Visual Studio from start, click
properties, and select "Open File Location...".
Right click on devenv.exe and select "Troubleshoot Compatibility".
Click ... | 0863ab204c279f4e6d88c7ec5bb2dcabfcc7be5d277d76c5aa3a84077232cff4 | ['f791dac64354453a9c8093dc4a1744b3'] | I am currently trying to pass an object to my created directive below and the element property remains undefined even though the alias is matching the @input decorator. The onClick method is being hit correctly as well.
import { Directive, Input, HostListener } from '@angular/core';
@Directive({
selector: '[... |
386eb8888eae608c6ab56d48ab5153d59d56ba6d11ba7da78807da3513af070d | ['f7c7253a7d274a10a222996fb202b5b2'] | Thanks for your speedy response! I do have a few questions though. So I know energy is not quantized (E=hv). If you can have any frequency, you can have any energy. However, correct me if I'm wrong, but I thought that temperature would be distributed in a somewhat standard bell-curve: some outliers both above and bel... | b14b2571ac06f3b27abb09cbe787b651cc65498639bc4f3184fe4e4ce4dc2f72 | ['f7c7253a7d274a10a222996fb202b5b2'] | A good example: man sa-update (spamassassin)
EXIT CODES
An exit code of 0 means an update was available, and was downloaded and installed successfully if --checkonly was not specified.
An exit code of 1 means no fresh updates were available.
An exit code of 2 means ...
In this case, exit 1 is simply an informative co... |
7dffbdf9a23c20a1b5c817e94b2bb5fb869a783c70eecef720114e145ab6f773 | ['f7e7c91fc3564978b252fc6525ae6f71'] | You can define a common trait for Both Row and Col classes:
trait Element {
val value : Int
def init(value: Int): Element
def +(other: Element) = init(value + other.value)
}
and then use case classes so that you take advantage of the companion object's apply method:
case class Row(value: Int) extends Element {
... | c4000ce354abe30293dffb77f1810b2e43db1c24998fa79de494614a8600c047 | ['f7e7c91fc3564978b252fc6525ae6f71'] | System: Amazon EC2 instance running Debian 5.0.1 with Apache 2 and PHP 5.2.6
I need to send encrypted files using a PHP script. I had been intending to do this with command line instructions from the script(e.g. exec()), but have discovered that there is a PHP extension for GnuPG. I installed it using the steps provide... |
05e3367bad893cf11d7b26f17af6c8e6c82bdf8afd8a4e904ccbeecac3e82c44 | ['f7eeb5812d3a4e228f0b2163e5ddd60e'] | Assume you have a probability distribution $F$ over density functions $g$. Under what circumstances (if ever), is it possible to change the order of integration for the double integral $\int \int m g(m) dm dF(g)$, i.e. when is
\begin{equation}
\int \int m g(m) dm dF(g) = \int m \int g(m)dF(g)dm
\end{equation}
Essential... | e1c2fc54e3f5741b793e193bdace67cd6760edf6cd4dfdaaf7e224ca2f884855 | ['f7eeb5812d3a4e228f0b2163e5ddd60e'] | I have done everything that I could get off Google to correct the sound problem but none of them is working. My last install of Ubuntu had the sound working, but this one, I don't know why it is not. Pulseaudio/pavucontrol/driver manager/ unmuting alsamixer/ unmuting sound settings/ taking out the jack and plugging it ... |
fe41d9800beac330586068cab0b92ba6cc320c535396d79779a2678ef7889e68 | ['f7f6caf66d094cbc9713601c4c7793b5'] | how can I start a connection to an oracle database using flask-sqlalchemy and cx-oracle by sending these parameters:
alter session set nls_comp=linguistic;
alter session set nls_sort=Latin_AI;
In order to be able to make queries and sorts that do not distinguish, for example, between "<PERSON>" and "<PERSON>"
That's h... | e484e86102099f9cd2a18187d7d20cb0775b69a805b76d82ce634d5407c98310 | ['f7f6caf66d094cbc9713601c4c7793b5'] | I have a piece of code using beautifoulsoup to scrape some specific urls from a web page and have them stored in a list, I try to filter the None values once and for all, I have used the following alternatives:
1
list_links = [link.get('data-href') for link in BSOBJ.find_all('a') if link is not None]
2
list_links = ... |
bb549e9d388c8e6631ae4229677bbd29da5a52b0e5b11c2ff4aa921b042914e2 | ['f805462cd1134cf187f0bc4d15c411b3'] | It seems to me that your question is not clear enough, but I will try to help:
I believe you are not limited with Angular as long as you don't plan to write pure static html for your news. You would need a backend in the language of your choice (maybe nodejs) that would store your news in a database, and you would retr... | a503081fc7d4ee8666654224fdd630ffa300e3af9896c5eaf9a5c0b23216e610 | ['f805462cd1134cf187f0bc4d15c411b3'] | Try to include it directly in a component. I tried with the app component and it worked. You could create a separate component to execute this piece of code.
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'my-app',
templateUrl: './app.component.html',
styleUrls: [ './app.component.css'... |
96c01b32166566c286e6f3a690fff321ba7f4e3b9088c10469621ca9912e5bd5 | ['f80ddd4aad094334b0521c9a1e49dc40'] | I need help supporting back button with jquery ajax.load method.
I have tried a couple of plugins but i cant get any of them to work.
I am loading my content like this:
$('.pagination a').click(function(){
var url = $(this).attr('href');
ajaxLoad(url,null,'.container');
r... | ab7111cec4aab2cae5e1d53456ec0acc084d4dbd3e657ab3d9bdb954a4075128 | ['f80ddd4aad094334b0521c9a1e49dc40'] | I dont have any practical experience with rooting my phone. There is one thing that's been bugging me for a very long time: I need to be able to set a charging limit on my Pixel 2 since I dont feel like replacing the battery soon and destroying the water resistance.
My question is: if I root and set a charging limit a... |
7ad59a3aa3c8632923a14a09b1e56237d22e49d5c6f834af50f17098f60c859c | ['f810ab646ceb4b2c94417799dae6c1ed'] | Issue:
Same issue came on Xcode-11 and none of the above methods worked.
Answer
You need to check first the issue, where it is coming from. In my case it was due to all Pod libraries info.plist file was missing. (God knows how it got missed).
Comment the "pod libraries" in "pod file" and run "pod install"
Uncomment th... | e9975c5987d426be3b5b8d8ba22bfc7bde3644601dd2caf7aa257bcc5a62621e | ['f810ab646ceb4b2c94417799dae6c1ed'] | iOS 12, Xcode: 10, Swift-4
Getting error while uploading a large size image as a Base64String to server.
Its working fine with small files
▿ some : AFError
▿ responseValidationFailed : 1 element
▿ reason : ResponseValidationFailureReason
▿ unacceptableStatusCode : 1 element
- code : 413
I want to upload im... |
7d12ba7056ac46bd7ff4c6d036ef20608d96a97abaeb4c0a9985dd6eb6af0634 | ['f819f6c0ae93487ea60fc2ce9a373969'] | I am trying to install this library in Visual Studio 2019
https://github.com/alex-87/HyperGraphLib
The instructions only show how to do so for linux/unix I was curious how I would do this for windows. I can download the .zip but where would I extract this and how do I get Visual Studio to install the library.
| 13b82ab69dfb05d2b1d858f0dd3dfd7132849c62c6cbb49adb604b0fa0ce524d | ['f819f6c0ae93487ea60fc2ce9a373969'] | Solution
So instead of trying to handle this with JSON I just took an easier approach and created classes in java one for Nodes and another for an ArrayList of Nodes. Then I created various setters and getters in both and made a function for adding a node. This function would add an object of type Node to the ArrayList... |
1856fb57acf2766b6c9c86e7da7b9b6b2c5f0e3a0709f2e01a50ac9c1a793870 | ['f82dddf00abe4246a6bdc48bdc884741'] | Try to add AuthConfig as a dependency :
import {AuthHttp, AuthConfig} from 'angular2-jwt';
import {Http} from 'angular2/http'
@App({
template: '<ion-nav [root]="rootPage"></ion-nav>',
config: {}, // http://ionicframework.com/docs/v2/api/config/Config/
providers: [
provide(AuthHttp, {
useFactory: (http)... | f6162c82b52b30747c5c13fcad271f9e9ba8a39c479c6d417f39502c2a9178c1 | ['f82dddf00abe4246a6bdc48bdc884741'] | Indeed you have to declare a new FactoryBean in your @EnableJpaRepositories annotation:
@Configuration
@EnableJpaRepositories(value = "your_package",
repositoryFactoryBeanClass = CustomFactoryBean.class)
public class ConfigurationClass{}
CustomFactoryBean.java:
public class CustomFactoryBean<R extends JpaRepos... |
fa47dd0a47c8db6cc85812f23dc008c82c54820ad4098403845fcad1ddac17b5 | ['f830edec97de41ffa40048ba5540d926'] | I want to dynamically create a CanvasJS chart depending on N amount of objects from a JSON array. If a JSON array has 3 objects, the web page should be able to display 3 charts.
<div class="container-fluid" id="spectraContainers">
</div>
Through the id "spectraContainers", I have a javascript function that dynamicall... | bed709d9f3151ecf635706adfa529f18fff508f3f961e351d31ceb8c14b5a9ae | ['f830edec97de41ffa40048ba5540d926'] | I have 2 containers.
Container 1 has Jenkins on a Linux container.
Container 2 has .NET packages and other tools (MSBuild, Wix, Nuget, .NET framework 4.5, 4.6.2, KSign, etc) on a Windows container.
I searched online and I don't think it's feasible to install the software packages on container 2 on a Linux container...
... |
6f181ff48d155443e6a9d455702255d6c27195f2d0e3e63ee8c53a5d04bd88e3 | ['f86013c267854b4b90136ca1f2caad34'] | <ItemTemplate>
<asp:Label ID="lbldescription" runat="server" width="175px" Text='<%#Eval("description") %>'/>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="txtdescription" runat="server"></asp:TextBox>
</EditItemTemplate>
protected void gvManage_RowUpdating(object sender, GridViewUpdateEve... | cde60fc6dc64cc256330d02dac85d6235e0cb53572bc667aca8136114f2b6438 | ['f86013c267854b4b90136ca1f2caad34'] | protected void loadCandidate()
{
con.Open();
MySqlCommand cmd = new MySqlCommand("select studentID ,name from candidate ", con);
MySqlDataReader dr = cmd.ExecuteReader();
if (dr.HasRows == true)
{
GridView1.DataSource = dr;
GridView1.DataBind();
... |
637955f436855d1da1c07ed521c85dd47b1264dcaa4c7ac070e821a78d74020d | ['f86b09ca19874b8b8312c2039959749d'] | @KromStern I am using my Adobe Creative Cloud version of it, so its the CC edition. Actually, I found a workaround...so in Illustrator, I had to export the image at high (300 PPI) quality to a PNG file instead of saving it for the web...then I loaded it into Fireworks. In Fireworks, I used the Image Size button to use ... | f652f92584721c509f0f4ad98087ec51568753fd553514dce040e82da2be1892 | ['f86b09ca19874b8b8312c2039959749d'] | Thanks <PERSON>! My lisp skills are still pretty light, so I am still not sure about when I need to quote my variables. Do you have a recommendation for where I could see why this is so? My understanding was that the unquoted expression would evaluate to it's variable value, which would be void. Regardless, I will ... |
679aa3a255a4ea2b6f9f7f76aa5a6950877acf3d1e8d6ffe5e3beb863facb37e | ['f876dcc463cf411d88dd6c71927fa55c'] | The problem is that you are registering projeclist through parasails.registerPage function and then the ID of the DIV in the view ejs file is project-list.
I faced the same problem and solved it by setting the same name in both, so it will be:
parasails.registerPage('projectlist', {
data: {
},
.....
And in the view e... | 1b92c8c335c8d54e4ba1ed89f7d000dc823aa580050c8baf24ee851d858716aa | ['f876dcc463cf411d88dd6c71927fa55c'] | I have a Nodejs server with some API endpoints. One of them requires client authentication through SSL certificates. That works fine if I go to this endpoint with Firefox or Chrome but not with a custom nodejs client.
const https = require('https');
const fs = require('fs');
const options = {
hostname: 'localhost',
... |
0f93d8f7783286697f67260b37c8fed39bb5f10eb78c6742ec726a91a1aac185 | ['f87da5f0dc364681a0a7932e828d0086'] | I think the ploblem is about the new kernel 3.8.0-34 with the proprietary driver of nvidia. I solved with a new istallation of ubuntu 12.04 without update the kernel and istall only driver raccomanded by <PERSON> (319.xx ). I don't know if there is a solution less complicated. with rescue mode I try but I don't solved.... | 4cd09f924f416825da68772ff39365a279e898d83dfa5458d1305925db469a3c | ['f87da5f0dc364681a0a7932e828d0086'] | Generally, it is often not a good idea to hardcode values. For example, take a look at this piece of code. It won't work correctly from 2021 onwards:
if input_year <= 0 or input_year > 2020:
print("don't you know your birthday??")
Better do it like this:
date = datetime.now()
current_year = int(date.year)
if inpu... |
9ef680bedbe5b042765322e1caa44ea0facd45ee688dd0355c01e6f68b359075 | ['f880da0ee2fb4ce1b31e78e49535f59e'] | I get an exception:
WARN exceptions - Handler execution resulted in exception
org.springframework.web.multipart.MultipartException: Could not parse multipart servlet request; nested exception is org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. Stream... | 153b41f443493cae7273af6583761d9fab735c69f016056bbb52cb612b6e6445 | ['f880da0ee2fb4ce1b31e78e49535f59e'] | I'm trying to putExtra to Activity which will be launched after clicking on notification, but instead of value that I set I'm getting default value. This is my code in AlarmReceiver:
Intent notifActiv = new Intent(context, NotificationActivity.class);
notifActiv.putExtra("ID", id);
PendingIntent pI = Pendi... |
03f17b52cab8b8eddee75782fb117d666e3f4aaaeb5183029459cf11146ba354 | ['f88c8fea62f742d19ec8af6b36760b1d'] | following code is used to specify device on which tf node is running on
with tf.device('/gpu:0'):
a = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[2, 3], name='a')
i have already known:
this post, tensorflow doc and xla demo
what i want to know is:
is there a way to specify XLA_GPU as the device on which tf no... | 1b89599f33a387e013ea35c617c28c55213d049720f178f78600e5b088137ecb | ['f88c8fea62f742d19ec8af6b36760b1d'] | I use a sata/usb converter to connect a Samsung drive to the rpi. It is often not recognized at system start. The drive is recognized without problems when I plug the USB into my ubuntu laptop. I suspect that the drive takes too long to start.
Currently, I see no udev activity for it in the logs, no special file is ... |
ddebd87471d0d673a2a1b7236d477b7f8c2244a4e0d68784916dcc3814f1c7e4 | ['f88ee50f8fde4cdb9ca4b416bf02b0c5'] | It could be a DNS issue that can be solved by changing the DNS address to either Open DNS or Google DNS. May also require power cycling your PC and router. Check details here - www.pcappspot.com/fix-err-name-not-resolved/ One of my friend had this issue and later found out that his ISP put him through a safe browsing f... | 21faf932b7b4de3b3762e6eda8eb9820f32fef5f6aaf0ef35eaf5ad0bf3b7164 | ['f88ee50f8fde4cdb9ca4b416bf02b0c5'] | I have figured out the answer: The only monic factors of $x^p-1$ over $\mathbb{Z}/p^n\mathbb{Z}$ are those given above (i.e. either linear or degree $p-1$).
Let $n > 1$, and suppose $x^p - 1 = f(x) g(x)$ in $(\mathbb{Z}/p^n\mathbb{Z})[x]$ with $f$ and $g$ monic. We must show that either $f$ or $g$ is linear, so suppose... |
f4a51d2bcf7647b45f45f151b53fac0b8ef55d2fff2075a378f5fcf47698e592 | ['f8a65d3528a24e95ab68f75b7bf4be91'] | <PERSON> Thanks for the insight, I'll change that. If it was due to electrolytes the slope of the line should remain constant though, correct? The slope of the line tends to change quite a bit between runs. I suppose it could be that I am generating new electrolytes between runs however. | 8fc0552dc830168368273da1484f9473390d1f282cdf7e5975a1025b66874fa6 | ['f8a65d3528a24e95ab68f75b7bf4be91'] | The way your image is at the moment, with that "distressed" look (all of the voids and hollows) in each letter, Will be nearly impossible for a plotter. If you did an image trace in illustrator, converting the artwork from raster to vector, there would be no possible way you would have less than 2000 anchor points per... |
efad786e6d16dffc6358046328d1a4e6280a5e2e2593df6ebc2bd443abd04735 | ['f8ad4d0ce24f4587b4e38da8d9b972c5'] | I am using Typeorm with Postgresql. I've been trying sequelize too, but finally I decided to use typeorm because the code is clean and maintainable, your code is elegant and easy to read, support multiple DBMs, decoratos, it's a great ORM. I am using it with Typescript and Express.
I hope you can actually consider usin... | 7f46c11994212ccceb91a0c89ff6988c455e32817cea796e196e83b9aa3bf58c | ['f8ad4d0ce24f4587b4e38da8d9b972c5'] | try this sudo journalctl --follow _SYSTEMD_UNIT=nginx.service and see what's going in the console when you make a request. Also you can try to set up the error logging to debug following these steps
sudo nano /etc/nginx/nginx.conf
find the line error_log
change error level to debug logs/error.log debug;
sudo service ... |
97c4956b27c68ff2a099e270c9ad15757db07d77663fb969d972d23f15d397a5 | ['f8b26fa2030c4fc4888b7f0e9c8758c0'] | I'm having an issue regarding my Mi Gaming Laptop 2019, and I hope somebody here could help me.
The issue is with the battery. It charges slowly, to the point that it actually manages to lose charge while being plugged in! This happens if I launch some demanding games, I tested it on Kingdom Come Deliverance and RDR2.
... | 1816604ce02b151ce5cdd0b525fe1a72b9653bf80f7383731b14db375195f1ee | ['f8b26fa2030c4fc4888b7f0e9c8758c0'] | I'm learning CakePHP and I follow this tuto: http://book.cakephp.org/2.0/en/tutorials-and-examples/simple-acl-controlled-application/simple-acl-controlled-application.html
I'm working with CakePHP 2.2.3.
Well, I arrived where I have to add groups and users. But, I've not the name of my groups in my database...
Can you ... |
b250ffa99127cf3aa9bfad3c911d9176adba17cc290fa349a9f10a37b8a2f594 | ['f8bf2cb3bbea4aa09475df5600f3e8c0'] | I'm trying to run a simulation using an MPI cluster. It works well when I do not need extra packages. For example, I can get a liner model coefficients with multiple datasets running parallel. But when I try to do the same with quantile regression, I need to use the 'quantreg' package. So I use the following code. ... | d4626b8ad36bad4762c6c2d94dd6206478718b5e4958019d2f9cea7528e8ab29 | ['f8bf2cb3bbea4aa09475df5600f3e8c0'] | I have a data frame that looks like this:
value=c(1,2,6,4,5,6)
group=c(rep('A',3),rep('B',3))
mydata=data.frame(value,group)
I want to retain all values in group A and all values less than 6 in group B. That is, I need to end up with something like this:
value=c(1,2,6,4,5)
group=c(rep('A',3),rep('B',2))
What I've... |
5456be636898dc9589f1335e19af6d569cff37a46ae6146f1a43c10fcb30e42c | ['f8c512679b2a4975be836dfe1225769f'] | Being charitable one can describe the author as "joking", not "explaining", since the real explanation in that test was that the user liked what the red button did and saw no need to explore others ;-) It doesn't really matter *why* red is good (if indeed it is) and anyway there's almost certainly an element of learned... | 5bacf370cb35db643563e8ada4ce3e9753bbdc4258b13afbf3e61faa813757eb | ['f8c512679b2a4975be836dfe1225769f'] | "When a scraper really wants to copy your content, what stops them from just registering an account?" - the same thing that stops a legitimate user from registering an account when *they* really want to see your content. Effort. Of course it's a different height of hurdle for a scraper relative to the baseline effort, ... |
0579bc58f24b468e2ce24de229f6785668f568cec360b4493375ef8e6d21ca6b | ['f8cb697d394f405abe31610d3eb7e304'] | I'm trying to read multiple csv files from a directory by the following code, but it changes the size of each dataframe from 150000 to 150001, which causes problem when I test it with my trained dataset output which is of 150000 size. any body can fix this? since I'm a complete beginner to ML multiple suggestions and (... | 2d8f112e8ed148a734551400ca4ebeab1918a6d54aae08b4d930092180a40eea | ['f8cb697d394f405abe31610d3eb7e304'] | I'm trying to scrape a website, which loads its contents dynamically through javascript. I was able to request the source from which the data was loading but it returned the response in the json format, and within that json there is a field named 'results_html' which contains all the html that I need to query in order ... |
49fa4acc75235a80002db6cd34566410aea3a51559bd12ad31a6dd9f96a8728f | ['f8cfa2348b86492fa91c04cdd5c89e96'] | I am very much new to JavaFX, I started this week basing my knowledge solely off of small tutorials and sample projects learning the syntax. I have created a simple Table of Stock information that you can add and delete information in and would like to implement a login window to this program. I created the login windo... | 1bc670674ac63e4dace5bd76333005c9588162b92225bd20b149e9757cf6d15f | ['f8cfa2348b86492fa91c04cdd5c89e96'] | I'm required to implement methods into a simple program to familiarize myself with them in Java.
My code so far is:
import java.util.*;
public class Lab5a
{
public static void main(String args[])
{
double[] a = {1, 0, 0};
double[] b = {0, 1, 1};
double[] c = {1, 1, 1};
double[] ... |
79a7097316c497d8b9a64c9278f4e02fa7359fd77a47c06c214e507ee5d1f5e9 | ['f8e2e7b9a8844375bf9dcda125b4c7e4'] | I have a page that is a log online, with many fields...I want to make a button that saves the content of the fields in a txt file and automatically shows the download screen for the user... Ive tryed with :
$arq = "test";
header('Content-type: text/plain');
header( 'Content-Length: ' . strlen( $arq ) );
header('Conten... | 6e9493439a246634c299b139af5de36036d015f99c59daa09d1ce586e8f18cdf | ['f8e2e7b9a8844375bf9dcda125b4c7e4'] | Im starting in javascript and css... I want to do a simple div, appearing like a dialog, but i want that black screen behind, and the dialog modal, blocking the user to click somewhere not in div.. Ive searched in google, but im studing, and i want to know what is missing to the overlay...Someone could help me?
my css:... |
48f6edfeb75941cc2ffc352164aa7d4a6d1e14bd155a3fc9ea73b744f3b4e320 | ['f8e7c3ef0fb04cd8ab0b5d0528d1df75'] | When you are in "fullscreen-mode" on UWP the taskbar / window header always shows up, when you are touching the bottom / top of the display with your mouse cursor. In the UWP version of Rise of the Tomb Raider a small blue rectangle appears instead, that you have to click to show the taskbar / window header. How can I ... | f1c5642afc20370e8246c72377ae10d445051ed5723f5cd29eca70e6acf4cf71 | ['f8e7c3ef0fb04cd8ab0b5d0528d1df75'] | This is how I finally implemented it based on <PERSON> answer:
class MyGridView : GridView
{
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
{
(element as GridViewItem).PointerEntered += SelectItemOnEntered;
(element as GridViewItem).AddHandler(Poin... |
6272647b56ec9066f3649d2310206be8bab71ce5a9d6696ecb912a068d472811 | ['f8f5490c3d3a4d109cac43548d3bc26e'] | I have been a Linux user for a long time now mainly using Debian based systems. Recently I also bought a 15" MacBooK Pro with Retina Display and now, I am trying to install my lovely command line tools using Homebrew on it.
I have been successful so far, until now that I tried to install aria2 which failed. Here's what... | 8a6afe6379be6e215da3da7b77109b2968de61c2f7a20da0ac3a04525955fc5e | ['f8f5490c3d3a4d109cac43548d3bc26e'] | I want to install Xen on my PC, but I don't know where to start.
Basic usages:
Install two OSs (Linux, Ubuntu or Fedora), one for Database server, one for HTTP server (PHP).
Install one Windows 7 for Windows programs.
But my problem is I don't know which Linux distribution to use as my host OS. Which Linux is best ... |
4bd25d5f229fe00c510eae2f452472e70f642e86515ed9f3d1457a21e8e781b6 | ['f90f14dd74464087842ecbe5ce248425'] | First, you're not following Python convention: A class should be Capitalized (Pascal Case) and an attribute should be a lowercase :
class Product(models.Model):
name = models.CharField(max_length=700, null=True)
price = models.FloatField(null=True)
link = models.URLField(max_length=2000, null=True)
imag... | cf0158735db97f9fb7bcec8659d8271903a4ea9a60bc69e7acd42eaa5b47cb8f | ['f90f14dd74464087842ecbe5ce248425'] | For newest Chartjs like 2.7.2 just put: borderWidth: 0 in the data
var ctx = $('#progress-chart');
var data = {
datasets: [{
data: [25, 50, 25],
backgroundColor: ['red', 'green', 'blue'],
borderWidth: 0, //this will hide border
}],
// These labels appear i... |
b5cb88c3495052a009232c210df3e0c7b1677290c728c7d2ea5f94d3d6335703 | ['f91304b5b7eb48d494a4af941eec8328'] | Do you have the ability to alter the schema of your database? If so, I'd consider consolidating this into one table.
Barring that, you may want to try a one-to-one relationship in Doctrine. Perhaps something like:
class File {
private $id;
private $name;
private $mime;
private $content;
}
class Content... | 5e75f5ac2cb1df85540c8369ef57f9942d308861a6d29807fa92126ebda51527 | ['f91304b5b7eb48d494a4af941eec8328'] | Try this:
Sub ThisShouldWorkNow()
x = 3
formula = "=Erfc(" + x + ")"
Range("A1").Formula = formula
End Sub
Totally untested, since I don't have Excel on my Linux machine... But I think I'm getting the point across -- you need to use the .Formula property of the Range object.
There's more information here:
... |
86a76ef738b88a59ed78fc960afe4b4e5f7740d34489a750559d2a2525eb5112 | ['f924e50afb354a74b83821ccecdbabd6'] | We have a common.js file which contains the commonly used client/jquery related functions and validations. This common.js is included in the _Layout.cshtml. In this common.js file we have datepicker code, to maintain uniformity across application, as below,
function OsDatepicker(id, date, maxdt, dDate) {
var ctrl ... | 38afdf83bd2ffa27527938a459bb39a5e7c7b2081ec0eaf43d5de2310d378d93 | ['f924e50afb354a74b83821ccecdbabd6'] | If the number of approval columns is fixed and the values in them is either 0 or 1, then some thing like this would help
Select (fname_approval + lname_approval + mname_approval) from <table_name>
This query would give you the total, say 3.. which would mean all have been approved as the number of columns is same as t... |
de4b1dea660d00e97fb4c7e5bd1094bd39a0f8da37ae888439d97bd8bd885156 | ['f92eaa90f94247e18789e5ffeda85a62'] | <PERSON> I did try dbscan alone but the very big issue is that dbscan doesnt understand classifications by weight. Weight does not directly correlate with importance though: that is, I need to cluster high weights together and low weights together (and both are equally important), but almost always different clusters w... | 65c39af720b9c699eef4cf7f1e48b91e6286f6ed26a62bccc6b848ea78905cd7 | ['f92eaa90f94247e18789e5ffeda85a62'] | [!Hola, Soy nuevo en esto. Mi problema es quedesarrolle una appWeb en Django y al momento de subirla mi jefe me dice que la suba en este Cpanel (nunca eh subido una pagina web a Internet xd), investigando en internet vi que para subirlo necesito ese software "Setup Python App" en mi Cpanel (primera imagen )
Pero en e... |
499443bdd7d9d08c4c2df179e9990a0bafb93ad628d3564b47a6dd70140ae056 | ['f92ed33fb644423a8358af927dbf49e8'] | For combined date and time representations you must use basic format for both date and time or extended format for both date and time representations to comply with ISO 8601.
Examples of ISO 8601 compliant date and time representations:
2020-12-03T15:05:57+00:00 (extended)
2020-12-03T15:05:57Z (extended)
20201203T15055... | 9ee76330106be579b1bc3379e5867e49e0e18619afe8314ca3362a9cd045de5f | ['f92ed33fb644423a8358af927dbf49e8'] | The problem with the accepted answer numpy.argsort(data)[len(data)//2] is that it only works for 1-dimensional arrays. For n-dimensional arrays we need to use a different solution which is based on the answer proposed by @Hagay.
import numpy as np
# Initialize random 2d array, a
a = np.random.randint(0, 7, size=16).r... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.