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 |
|---|---|---|---|---|---|
e1dedd0512c77c98b89b1f471427f03f90f25143eb4676f15002d1fda4c11dab | ['ec4fd85073e549c69327e665bde21276'] | My question is different with the typical one. Assume we have,
X = ['123', '456', '789']
And, we want to find whether another list is in X with exact same order. For example,
A = ['123', '456']
# should return True since A in X with same order
B = ['456', '123']
# should return False since elements in B are not in sam... | 29b58adf48dec489cda360ba9d7c1d510a8a84881215aedd629649b904ec24ed | ['ec4fd85073e549c69327e665bde21276'] | df is like this,
A B C
0 NaN 150 -150
1 100 NaN 150
2 -100 -150 NaN
<PHONE_NUMBER> NaN
4 NaN 150 150
5 100 NaN -150
Another array is array([1, 2, 3])
I want to replace non-null value in each column with each value in array, and the result will be,
A B C
0 NaN 2 3
1 1 ... |
6c7ab95b105dd86e518429c8a266effda150e541b7f65089bea0ab79a0c62c6f | ['ec5166062f864c999270c31aa1827cb6'] | I already send batch messages using C# libs.
I want to do the same thing using python, how to do it?
Actually I'm able to send single messages but batch send will increase my throughtput.
This is the code:
from azure.servicebus import ServiceBusService
key_name = 'RootManageSharedAccessKey' # SharedAccessKeyName from... | c40802177af751d9012b148cd58468f89ba9aeec42375ca9533eb6527593f66d | ['ec5166062f864c999270c31aa1827cb6'] | I'm mapping different tables on C# classes.
i.e. If I've a table named "T" with columns "A" and "B", in C# I create something like that in my code:
class T{
A{get;set;}
B{get;set;}
}
My problem is with joined tables, what is a correct way to represent two joined tables in 1-1, 1-n, n-n relations?
I'm not using En... |
091a76eeba032d6f7ef3dd3ff8019172a9731960b2a1fadefc09de2ac6721439 | ['ec546b2f5a2746478e739b6628aaa585'] | When you check the notes from the boost module you might see that the lines in area type series won't be drawn. That is why you might think that colours looks flatter.
* Notes for boost mode
* - Area lines are not drawn
* - Lines are not drawn on scatter charts
* - Zones and negativeColor don't work
* - Dash style... | a535501a65fc1da059d12dbdec35b7ae33d3d366fc7d187ff4226f58290fdac9 | ['ec546b2f5a2746478e739b6628aaa585'] | You can use the Highcharts module called no-data-to-display because using innerHTML / outerHTML is not ideal because it's not pertuculary safe.
I recreated it in Angular similarly to what you might see in the API (I used a slightly simpler example since your has additional thins and seeing the difference might be diffi... |
6b4d9b80e6532e7ffe569421f27d19cd14424204cbef21418b0081a636d8737f | ['ec5e69b8b505478c8a9859f5b5daa224'] | I want to draw the following implicit function with gnuplot
x**2+y**2+(z-1)**3-2
I know that maple or matlab can to this very simple but I want to use gnuplot.
Up to know I have no idea so I can't provide a starting point.
sorry
Here the result plotted with maple
| 673fdbb42bab85cf663e7c5ae9327840d7f98456a601fe565656010fa9080e51 | ['ec5e69b8b505478c8a9859f5b5daa224'] | I have the following part of a Makefile
#.SILENT:
#.PHONY:
SHELL := /bin/bash
################################################################
## Colordefinition
################################################################
NO_COLOR = \x1b[0m
OK_COLOR = \x1b[32;01m
ERROR_COLOR = \x1b[31;01m
%.pdf: %.tex
... |
b98746a365bf6c2ea89cde61794da8bfd0874b6cff8fc84fe7baf8f14302e880 | ['ec6358536570497ea093a8447693ea25'] | I want to watch specific variable in visual studio 2010.
For example,
string stringVar = "blablabla";
I want to know when this variable is created? when modified or when assigned something to it.
--
In my application, one of variable value changing abruptly and I can not figure out why and I dont want to debug whole co... | 023f1c4114291f9bc9d56342bbafa7771091a228e4c25ad762422fbe8feb6114 | ['ec6358536570497ea093a8447693ea25'] | Simply, I created an asp.net web site on IIS7
When I click on the "browse google.com on *:80(http)" it opens the real google.com not mine...
So that, I can not be sure my site is working properly or not.
(I dont want to make google1.com to see it is working)
I change the hosts file :
xxx.yyy.zzz.kkk google.com
no... |
e71f32800258563df78941c0d45b88c8f1a9040765a8c73cfe402201b43e97c1 | ['ec6986e7515c4748ace88a0f86355149'] | To use .htaccess :
Redirect [URL source] [URL dest]
So :
Redirect www.example.com/blog www.example.com/blog/
Should works pretty good
Generally, people wants to delete the final "/" and not to add it. Are you tryng to do that on all your pages, or only a specific case ?
Otherwise try something like :
RewriteEngine... | cde86feeca4c2f9267cc4907b7ddbbfe7e6a8e41aa3abd962efdfa2b5ee68cc5 | ['ec6986e7515c4748ace88a0f86355149'] | Getting into spam box is relative to :
Subject
Sender Name
Sender Email
It works like reputations, and if you use something "<EMAIL_ADDRESS>" for your testing purpose you have great chance to get into spambox, no matter what code you are using !
At least try to test with plausible Emails, like your own personal one
|
be103b3632da73a5af893e77f3af73ada4d73f0d66e2ae64a707e4e7f2504ef9 | ['ec8fee1cbffb48049daaced9fdca71c9'] | I have few problems with installation GeoDjango. I tried install SpatiaLite for using it with SQLite and PostGIS for PostgreSQL with this tutorial: https://docs.djangoproject.com/en/dev/ref/contrib/gis/install/#spatial-database but no working results.
Actually I have
DATABASES = {
'default': {
'ENGINE': 'django.c... | e2e70558873099223818d0123c53e35b996ae83346fb75f0cbe388a42b16beec | ['ec8fee1cbffb48049daaced9fdca71c9'] | How can I check if the page is open in the active tab? I want to mute video on my website, when user leave tab. Currently I'm using:
$(window).on('focus', function() {
$("video").prop('muted', false);
});
but when user click on adressbar video is muted, so this is unexpected. Can I avoid this behavior? The best s... |
d00a322215c6a3ac25284347cec12ddb6a840c63ce96578fcf24a1640e6b03c4 | ['ec904884f0ab47f49fa646aa6a4b912b'] | I have a site running on php Modx Revo engine and served by nginx. I have a lot of files in the root folder and now they are accessible from the internet with mysite.com/README.md urls. I want to deny access to all of them except files with extensions I want to manually specify (json, js, html and png);
Here is my ngin... | 21a2385767fc8cfb26875f7c1b6f574bc965f43b33aafb70de32b943fac25857 | ['ec904884f0ab47f49fa646aa6a4b912b'] | I have this rule
location ~ ^/images/cars/(.*) {
return 301 /images/car/regular/gallery/$1;
}
But I also want to redirect /images/car/*.jpg files. If I do this
location ~ ^/images/car/(.*) {
return 301 /images/car/regular/exterior/$1;
}
then first rule is going recursively. So my question is how to exclude subf... |
afa6942ad28169e65a23382ad1da4decfbbb6efe75bfaf42b43036c86f5b5491 | ['ec95bd691cc14d358e3e20f282244ded'] | Array
(
[0] => Array
(
[id] => 1
[member_id] => 8
[total] => 5
[mainroomid] => 2
)
[1] => Array
(
[id] => 2
[member_id] => 11
[total] => 2
[mainroomid] => 2
)
[2] => Arr... | 82e8f272ed7af21262ccbb29b237a06073634086bd05f1ed352c932726f6ffa5 | ['ec95bd691cc14d358e3e20f282244ded'] | Data
Array
(
[0] => Array
(
[member_id] => 1
[total] => 0
[numrow] => 1
)
[1] => Array
(
[member_id] => 16
[total] => 0
[numrow] => //should fill in 3
)
[2] => Array
(
[member... |
a0d685adb35c992797838b0ebe22b6e80df04ba16902bb64d5b9c15c3735a686 | ['ec9a07617d5e43308ef7e0c2fead062b'] | I need a bat to delete all files with the RELATIVE name that are NOT contained in a text file
In the text file list.txt i have this:
C:\S-ATLANTICO-1\MEDIA\Innplay-Logo.mp4
C:\S-ATLANTICO-1\MEDIA\logo-FB_sep.png
C:\S-ATLANTICO-1\MEDIA\logo-news_sa.png
and the in the same folder have this files:
Innplay-Logo.mp4
logo-F... | b07adb3f6deff87a3ce5bf3159e44db792487355e001e55f545f630a1560977f | ['ec9a07617d5e43308ef7e0c2fead062b'] | Who can help me on this?
Pause Countdown when press "P" Key and continue the Countdown when press "S" key. Until now i have this code, but i cant find the way to solve this.
Thanks
from multiprocessing import Process
import keyboard
import time
def countdown_1():
i=6
j=40
k=0
while True:
a = k... |
a5c84457cc2b0f649a4e4c3460632c786342aa406a22abd4735e9b0b32555ab7 | ['ec9c7773e0324fc5a5c2a183793808fc'] | Try opening the file you're writing to in append mode rather than write mode.
In your save_csv function, with open('test_case.xlsx','w', newline='')... will overwrite the file if it already exists. To add onto an existing file, you want with open('test_case.xlsx','a', newline='')....
Reference: https://docs.python.org/... | 7e6e4e82a6da378b5d4cee8279be9a0e504d58ebbe57a24de7b09a1444361d73 | ['ec9c7773e0324fc5a5c2a183793808fc'] | If you don't want to use regular expressions, try simply going character by character:
def rSeriesValidate(tag):
if len(tag) < 1 or len(tag) > 9:
return False
for currChar in tag:
if not currChar.isalnum() and currChar != "-":
return False
return True
This first checks for th... |
352a114f3ff255da471777bbce6eb00e364e2641e7fc487ea969185d528c034b | ['eca16044c03f4948855652dca0af308e'] | You can use the date function to format the time, as what you're getting is a date as a string, you can use strtotime.
I think the format you're looking for is: date("Y-m-d", strtotime($Row["ETA"]));, you can either parse that into a variable and save it there, or you can concatenate the results together for the final ... | ad9dbdf97937617183bba47f58791b9d2f29c585d46a12ccac79fde1fdfc5dc0 | ['eca16044c03f4948855652dca0af308e'] | The problem is that you're binding it to a click on all elements with the class ".but", if you on the other hand gave the button an id like
echo '<input data-pid="'. sha1($product_id) . '" class="but" type="button" value="Add Cart" />';
and then in your jquery function would do the following (outside the loop):
<scri... |
8fe342486aa5ae127facea0a1c434a80a18f24e2c36cfb8ece3c9c906a5f900b | ['eca97c6fc64942f59470a480a0a421c6'] | I added the plugin by using the link at cli.
Plugin: phonegap local plugin add org.apache.cordova.device
Plugin-Link: https://github.com/hazemhagrass/phonegap-base64
Now I did copy the code in my controller, but it does not work.
Code:
//filePath is the absolute path to the file(/mnt/sdcard/...)
window.plugins.Base64.... | ca47dd7834b53e7d39092349d00883444a0f5b82471cb3efc1cf9d98bf1eda01 | ['eca97c6fc64942f59470a480a0a421c6'] | My problem is, that the controller just send an undefiend and not the data from http of service. I inspect it with chrome. I am new at ionic. By calling the AppSqliDBFactory.getMasterdataId() method, it shows an undefiend, also at the scope variable.
.controller('ReadMasterdataCtrl', function ($scope, $state, $ionicNav... |
e165c8f8235a24e50a0f984dcc82c94ac461489e86b9b0e8172dba99310891f0 | ['ecb04ef4657b4d0fa668dbe4e9dd2edf'] | For debugging Java APP from eclipse, Run application/programming in debugging mode.
For remote debugging, add debugging option to java process and connect to it using Eclipse remote debugging options.
Plus if you have changed your code and applied breakpoints, then needless to say you need to rebuild your project.
And ... | 1edbf15fd9fccc0f94dde031922da576c8bbbab0877f8894670e234ed83e2587 | ['ecb04ef4657b4d0fa668dbe4e9dd2edf'] | GC reclaims object, when an object no longer referenced becomes claimable candidate.
For basic app one cannot be sure if GC runs with in process lifetime. Thus here is a small example for testing theory:
public class Test {
static class Sample {
@Override
protected void finalize() throws Throwable ... |
5c9fb251a12f4d08b110c4ade7e35b9d93277a8f3016ea0d6409e0a955d95ae5 | ['ecb0fe0f10e34b8aba888545a8ca928f'] | Yes, you are right - this question is some what out of focus - but I think that this question bothers some people anyways ;-)
According to the announcements made at Google I/O 2014, technically speaking, any Wear-device is a stand-alone device: It can work without a connected phone and it can run its own applications ... | 813d7f4f138c2bdaf95cac5e55194deb7f4195be5c268a1e7d425c1d432a7370 | ['ecb0fe0f10e34b8aba888545a8ca928f'] | Does the one-page-notification you get show "My App" / "Hello Wear !"?
This would be logical, because you are building this notification (var notificationBuilder) and actually have it displayed (notificationManager.notify()).
For the two-page notification, you create the first and second page - but when merging the fir... |
f231ddee37610b6edca6d4f0c4a66b1ad6a0a8657c8fe49538e1439627350d04 | ['ecb84bd5b7b044c2bd2420e550c40a08'] | I have created variance with English and German and its reference URL is added in current and global navigation. I want to update title of variance site in current and global navigation. How to do that?
SPNavigationNodeCollection quickLaunchNav1 = web.Navigation.QuickLaunch;
PortalSiteMapProvide... | 2cc568b1c9b263b34c7bc09fb5276cf7b11aa08cc7651e4c82c4540fba9a4520 | ['ecb84bd5b7b044c2bd2420e550c40a08'] | In this case: You can either use Layer Clipping Masks or Closed Shapes with Shared Walls. I'd say Clipping Masks are ideal and more efficient way of working.
I've also noticed that your joints overlap - this is because the shapes are Open Shapes with Strokes aligned to the outside of the shape.
I'll upload a PSD of ... |
e580af6594cd97b5af6f0df7f7b80a5ab667d2808f509fca3088a3ff68c48f2d | ['ecbdf983cba545e8aedfe8e8b6a50ad1'] | I have a tcl driver script which in turn calls several other programs.
I want to invoke a python script from my tcl script.
lets say this is my python script "1.py"
#!/usr/bin/python2.4
import os
import sys
try:
fi = open('sample_+_file', 'w')
except IOError:
print 'Can\'t open file for writing.'
sys.exit(... | 9d9eab713811306db1a409cd77ec79cf305e2800ad334162748ca89780e7eadc | ['ecbdf983cba545e8aedfe8e8b6a50ad1'] | I am trying to run the gcc testsuite using a driver script in tcl.
When i write
if {[catch {exec make check RUNTESTFLAGS="compile.exp --target_board=atmega128-sim"} errmsg ]} {
puts "Test finished with failures\n $errmsg"
} else {
puts "Test finished"
}
This gives error as
Test finished with failures
make: u... |
850a817071d519826bc0dd14f3b222d5d4cb3dc8cd7e1049e0d75d6143c1895e | ['ecc2c2e628964e7987a2698f76e07115'] | There are some selectors that are wrong as other's have pointed out.
Also, I would use closest('.colors_storage_outer') with a selector so it goes up the tree and stops at the selector. You can do this with parents too (parents('.colors_storage_outer')). Then look for the select from there.
try:
$("body").on('click', "... | a133fa8d97818c0da5c79643b44c911b21ccfee74a8c3dea602c366aab102adf | ['ecc2c2e628964e7987a2698f76e07115'] | viewStatisticsArray.indexOf() == -1 won't work because each element of the array is different (the dates are different).
You could do:
var viewedByItem = viewStatisticsArray.filter(function(d) {
return d.viewedBy == itemName.viewedBy;
});
if (viewedByItem.length == 0) {
viewStatisticsArray.push({viewedDate: Dat... |
499c101d403f6bb12567b4bf1b59ed5b17ca4cfba223fb4077642e159199de84 | ['ecc33f2ab0484e35b13b341ed52069f3'] | I'm working on reformatting a badly formatted powerpoint using a master slide layout and am having issues. First off, I need to apply a custom bullet to all 80 or so slides. I changed a master slide to reflect that but it doesn't want to take on the regular slides.
Second, the master layout has images in the bottom of... | a86247ef0a5d5ad9a3e6490f7d6a18acd695adedaf51a0e45c29b1d053cc3445 | ['ecc33f2ab0484e35b13b341ed52069f3'] | I think I understand what you are asking for... So narrow my question down and provide links showing the research I've done yes? Guilty as charged on the attitude thing; I've been halfheartedly googling for solutions for months to fix my frustration with the current system I use. Thank you. |
a04d0d49a9366b5b7e4b5177477882f8b565fa902301c6f44d7e39152ab4cdfd | ['eccc22b43fb8436296d789875098ec5d'] | So for some reason when I hover over specific points below an image link I have that is wrapped in a div, it will trigger the hovering effect for the image link that I have created through CSS. I have tried multiple things (overflow:hidden, display:inline-block) but nothing seems to work. I will post my code and a jsfi... | 6687c226696ee6a8ad74b0460e59dddff8e66a504c0b2ba169e2f25c52bc3e0c | ['eccc22b43fb8436296d789875098ec5d'] | So I have a link of an email on my page that is supposed to transition from its base color (light-ish green) to a darker green when you hover over it. I have confirmed that it works in Chrome, IE, Edge, and Opera. It only does not work in Firefox. I also have it where it does the same thing with a border at the bottom ... |
dc1575fd8b6ca382a40ef1063f0876d2db337ae1bfb14d3931fc357aed423b0b | ['ecce153cb2254ec481126728358ebc2d'] | If your hard drive is failing then the the data on that drive is almost certainly corrupt. Save what you can of your files (document, picture, music, etc.) by connecting the drive to an operational computer (using a USB to IDE adapter works well). DO NOT do a system back up from failing or corrupt hard drive! You wil... | 346d88a49df23cc7200948ba98a550ae331745edc9e01211294630ca9e82584f | ['ecce153cb2254ec481126728358ebc2d'] | All of these ideas gave me something to go on. It also made me think another way about how to approach this problem so I can keep my terms simple. Sometimes you just need a good shove in the right direction and this was it for me. I've found what I'm looking for. |
9ef5f5c7ce3c44ed0ecd624c33e5b72d18cdfdfe46504e86ac88e727f4a30263 | ['ecd51c0ad8f840a1b17e371e087e479a'] | Consider this snippet:
def populate(l):
l.append(1)
class First:
__obj__ = []
class Second(First):
populate(First.__obj__)
def __init__(self):
pass
def __call__(self):
for i in Second.__obj__:
print(i)
a = Second()
a()
When run, it will output 1, so it seems tha... | 77f817cc5b80ee842961cad3a6d3b3b510ad905e7230095068e29bd079aa104c | ['ecd51c0ad8f840a1b17e371e087e479a'] | I have a list of dictionaries l, each of them is a simple 1-level dictionary with the same keys a, b, c, d.
Now I want to build a nested dictionary from l in this shape (i is an member of l):
{
i['a']: {
i['b']: {
i['c']: {
i['d']: some_value,
}
}
}
}
Rig... |
2406ed15f19bb1b3d153f3b0a534f42fdc064323e1910190e8a2ca78715f3cda | ['ecdeb6fc2184447c9a7afa2fffd67e29'] | Certo! As variáveis de sessão quando inciadas, elas tem a durabilidade até o fechamento do browser, assim o usuário ativo terá essa variável mesmo mudando de página, ela não perderá o valor. No segundo trecho de código unset que é como expirar essa variável, ela perde o valor. Estou inserindo mais um trecho de código, ... | 7f78c64e4a47c373756249219eb49ef8aa9901269900fca79065357ae9460e2f | ['ecdeb6fc2184447c9a7afa2fffd67e29'] | I have been 'Promoted' to manager but in order for me to achieve my pay raise I have to 'prove myself', as I keep being told. I have ran perfect shifts for weeks now and every time I ask about it i get told I haven't been judged properly. The other manager at my store is on 8.50 and is younger than me, she also did not... |
17092b722ae8e001f69c349d32be1b659ab17f29da1643a6f0a2b0c155a520a7 | ['ecf0ed5e60384c129130cdfbd06c58a6'] | In some different situations in a request life cycle on my project, joining to some other tables may be required for the main query of that request. How can I join with a table if it was not already joined with that? In the other word I need some methods like this:
context.query = context.query.join_if_not_already_joi... | e5fa2d7d420dcb1830b6123838a1fa20091f54035a5fa26ed8de26163b6797b7 | ['ecf0ed5e60384c129130cdfbd06c58a6'] | Have the fix. Needed to use overlay=eof_action=pass instead of overlay=0:0
Updated command, which works:
ffmpeg -y -i myvideo.mp4 -r 30 -itsoffset 00:00:00.000 -i myoverlay.mov -filter_complex "[1:v]scale=640:360[ovrl], [0:v][ovrl]overlay=eof_action=pass[outv];[0:a][1:a]amix[outa]" -map [outv] -map [outa] -c:v libx264... |
c6a920c4373218094113b1600dbfec0067ee6074d4ca43908a75e60f0ed8a21e | ['ecf1823ea77448e5b8f18afcaf03c5d3'] | I recently read The Elegant Universe by <PERSON> to understand more about relativity, quantum mechanics, and the conflict between them. What it says is that "the notion of a smooth spatial geometry, the central principle of general relativity, is destroyed by the violent fluctuations of the quantum world on short dista... | 20a86716e7580f9283d35699d857b1ccab720e0e676cf97227bad0780bade48a | ['ecf1823ea77448e5b8f18afcaf03c5d3'] | Let us assume person <PERSON> and person Y. Both entered grad school in the same year, X as a PhD student (without a prior masters degree) and Y as a masters student in the same field. Towards, the end of second year, X realized that a PhD was too much for him and decided to quit but was eligible for a masters degree (... |
26b6f5918a88fc92234149f9bada5ffa6dca3474840db8889ccf4b836ef8fc3a | ['ed103005b7a64b559bf3a941ff1cd15a'] | From what I understand, you want only the card to scroll, but not the rest of the content on the page. I've done this a few times in different contexts, but overall, this is a simple css-related fix.
You want to add the css property overflow: auto as a property to anything that you may want to have scroll within itsel... | de3de0377a5199cd0caeda7ed98536cce4f2d11cc3dd7fd9ecd65ecda2dcd244 | ['ed103005b7a64b559bf3a941ff1cd15a'] | One thing you should understand about setState is that it works asynchronously. If you try to console.log the state directly after calling setState, you won't see any changes yet.
You also don't have to clear out the array by calling setState with an empty array--you can just replace the current array with the new arra... |
7be4f48bf58cce1fb38a254db18e061755e5857cdf12ba22dbe80c5f3674b2a8 | ['ed1d182930db4c0b9269abc564c0d841'] | <PERSON> we will easily get the base case but how to prove that if $ \sum\limits^{n}_{i=m}a_i+\sum\limits^{p}_{i=n+1}a_i=\sum\limits^{p}_{i=m}a_i$ is true then $\sum\limits^{n-1}_{i=m}a_i+\sum\limits^{p}_{i=n}a_i=\sum\limits^{p}_{i=m}a_i $ is also true. Here we face the same problem. We can get a term outside the summa... | 9f25d98ff4f94b961ecc6669e973be2bcc1fa3c959b27cb2f8e049ea64325e1a | ['ed1d182930db4c0b9269abc564c0d841'] | Ok. I understand what natural means in this context. It appears to me from your answer that the diagram on the top of page 37 indeed comes from naturality. But I do not understand where do we get a map $A^* \rightarrow A $. I know we do have the snake lemma map $H^i(G,A^*) \rightarrow H^{i+1}(G,A) $ |
bf6b59d459e57b9a39e0b87a8a86f3f9be575b37d421f655d7aeb9de33e02c69 | ['ed1d6ffdaded49d084dc460216fa8a93'] | protected void btnSubmit_Click(object sender, EventArgs e)
{
String conString = @"Data Source=<IP_ADDRESS><PHONE_NUMBER>;Initial Catalog=RecruitPursuit;Persist Security Info=True;User ID=RecruitPursuit;Password=Recruit20!8";
SqlConnection con = new SqlConnection(conString);
//create a command behavior ... | d895527c73793d378409c24de94366dae941fc91bc7c10d8ced26cecd2b841b0 | ['ed1d6ffdaded49d084dc460216fa8a93'] | I have 30 textboxes available for user input and a Submit button that needs to insert only the textboxes with values. Currently, I have the empty text boxes receiving a "null" value, but this inserts the word "null" into the database instead of leaving it empty.
protected void btnSubmit_Click(object sender, Event... |
f44c9247b806bea1b2a9850dfa7e03af2392974dd476bd692c2ceb6c6216e340 | ['ed23c00dd8ad4bbeac9e395b898c3502'] | It's a general trend that basicity of oxides decreases down the group.
But recently I came across a statement "the basicity of second group oxide decreases down the group and decrease in basic nature of oxide from Be to Ba is due to decrease in polarizing power with increase in ionic size"
I'm not able to understand t... | 9de08b75b7030d6757fa5ee32b359494892c8dff49d766a2fc5c9b966739b965 | ['ed23c00dd8ad4bbeac9e395b898c3502'] | @DiogoGomes no problem, just hope to find someone here that can help or if they know of ways to fully export everything from Vivaldi so that i can just reinstall the system or if they know of other ways to list all installed apps that is as elegant as dash, i'll take it |
3cd4959f279ae50ed3b1e5761da5a8c9e7a910f56294d176bbd7939c982de7dd | ['ed3012fba8394d06a185886103b40963'] | I had this problem some time ago and after some digging I found out that my concern files where named using the Capitalize form (for some crazy reason).
So I renamed them from Searchable.rb to searchable.rb and it's all done! :)
PS. IF you use git/github, the diff isn't case sensitive so if you rename them from Levelab... | 6bf758933943e212e507fc020070df9154294e51764bc692137cf115cd24b183 | ['ed3012fba8394d06a185886103b40963'] | You are overriding the bootstrap css, which is ok, but you have to be careful with it, look at your stylesheet.css at line 28:
.navbar ul>li {
float: left;
display: inline;
}
and on your line 35:
.navbar ul>li>a {
color: #A4ABB0;
padding: 42px 29px 23px 29px;
text-decoration: none;
text-transform: uppercas... |
1d8fb68671fc7797fe01218881f9d2d54473464d87b5dc5a313d0b65fd6db137 | ['ed32329c1b48449f98a8f48aba83180f'] | I'm facing an issue with libxml2 (version <IP_ADDRESS>).
I'm attempting to dump a node while parsing an in-memory document with a xmlTextReaderPtr reader.
So upon parsing the given node, I use xmlNodeDump() to get its whole content, and then switch to the next node.
Here is how I proceed:
[...]
// get the xmlNodePtr fr... | f5cac932acdc26f281b06dbfefc0e228ad1fb4ebf708d853d8eff2cdaace8cba | ['ed32329c1b48449f98a8f48aba83180f'] | Vim is not autoindenting the C source files I am working on, although it claims both the autoindent and cindent options are enabled when I type the
:set
command.
Nothing is happening when I type in some code. For instance writing
int main()
{
return 0;
}
the "return 0;" statement stays on the left.
However if I type t... |
1ae7157334d61d30fdc33bde5e66c318a407fb70e07597755fb901007c23963f | ['ed3c3ef6af354e71adde1618646c2431'] | I'm not sure whether this is the correct site to ask this question, but why does it sometimes (game-specific, usually) take really long to enter / exit a fullscreen game (black screen for ~1-5s)? And why don't we have these problems for example when entering a Windows 8 fullscreen app?
| 8daa689289cea1bb32a24a7892a61303a57005f013c4d4b6f4d2debd90c03395 | ['ed3c3ef6af354e71adde1618646c2431'] | On my page visualforce page I have a few fields that on submit validation will run. For some reason the error is not displaying under the textarea but its working for other fields on my page. How can I solve this? The errorMsg class is not being applied to the textarea
On my visualforce page I have this
<div class="... |
9c398fbee847535b5de904d5d77238700c4e47c0d7f9fd1101b55d1956eb4171 | ['ed3ed45698da42018338c4936a3bd6e8'] | @ <PERSON>, it's so strange that after setting fcitx as your keyboard input method system, after changing schema file with glib-compile, when 'dpkg -i' was typed, error occurred again. And the schema file was changed as original 'Gtk/IMModule=fcitx'. Do you know what happened ? Thanks for your response. | dfcaf767f099d2a90559dc2033efef0dfb776c6fa0f2f10d31a4461965fdd16c | ['ed3ed45698da42018338c4936a3bd6e8'] | @Parto No, but 'dpkg error' issue seams have no affect on my using. As the answer said, the package ubuntu provides has not included the lib and include files at all. It's quite drama, and I felt guilty about your offering of the bounty. After all, I installed it through source code and it works. |
58eb54d35e3d9be196c4cd46368a2d602f0c4edb185166e62a2fd34a78d8340f | ['ed4203b6137940e9a34955a8eed7e1c1'] | Is it possible to set the same sesion_id everytime before session_start even after the session has expired?
I want to have the same session id for a user each time he logins for some testing purpose. This is how i do it.
session_id($myid);
session_start();
if(isset($_SESSION['something']))
{
// do something
}
el... | 25dc8724cc8c7bb33df89ae43543fbe215fe71ab080d232ddf52c42c0a76caa3 | ['ed4203b6137940e9a34955a8eed7e1c1'] | I am working on an html5 mobile app for a website. The website contains a lot of gifs(about 5-10 per page) on its pages which are making the app events, scroll, drag, css animations, and everything very slow. if i get rid of the gifs the app runs fine. I have tested the app on both android(nexus 7) and ios(iphone 5 and... |
900ac010ebe3f6c7c4d86f36b4c46e491a4fe227c2a9a4708846c101540db8d5 | ['ed4dfacf02274734b452580a4ab51189'] | I am writing code to allow a user to reset their password using Firebase. Currently, if the ask to reset their password, I use the sendPassword Reset button as follows:
@IBAction func sendConfirmationEmail(_ sender: Any) {
if let email = email {
auth.sendPasswordReset(withEmail: email, completio... | 3855c5922c9ec51926e96cce7c114b51c9dca4ebe3c591b0ad57353be9d4666a | ['ed4dfacf02274734b452580a4ab51189'] | I am attempting to use NSArrays and NSPredicates to filter certain cells of a UITableView. I have a TableViewController class called FilterTable that is made up of FilterCell, which is a subclassed UITableViewCell. The data in a filter cell comes from a UserProfile, which has a property "major". When the user clicks a ... |
079559c69d78df0843a7f6b60f602f77b28bc4963a58e139a3c61218556d795f | ['ed520a373cf9411195a4d4d388ef12ba'] | If you are using more than one item in your form, I would suggest using
var data = $('form').serialize();
This will pass all of the form values to your php script and then you can use php to insert them.
$("#apply").click(function(e) {
e.preventDefault();
var oppid = "<?echo $opportunity->id;?>";
var... | 78bff015f11bed4f3d0f013cd9c46b068e9dc6224977cd8d96ba3098638b3403 | ['ed520a373cf9411195a4d4d388ef12ba'] | I dont think you will need to necessarily worry about getting the text from the body to put into the database, I would personally store the answer in another table, but referencing the original questions.
So the table could be: (id, answer, userid, opportunityid) values (1, 'Yes i have', '1', '12'); or something like t... |
89b122fcaa477087ea0a87599ed91c07176b2b23cd063e33efd26055e33b85aa | ['ed5e84e443d34a098534277a5fed3be2'] | Simple question really, but I'm very confused by the starting point. Let's assume that we have a portfolio whose excess returns can be described by the following equation from the single index model:
E(R) = .04 + 1.4*(Risk Premium of the Market)
Obviously, alpha is .04, beta is 1.4. This portfolio is underpriced, as it... | f6884c1eb69a857f35b273f272af019c107022b75873ab6202965c5c6cca2b3e | ['ed5e84e443d34a098534277a5fed3be2'] | By code, when a hole is drilled to run a wire or pipe through a wood member (stud, plate, etc.), if there is less than 1.5" of wood between the face of stud and edge of hole, a nail plate (made of steel) must be used to protect the wire/pipe from unnecessarily long fasteners. Use a screw that will not penetrate into th... |
bc8cc46e355a741f8a303aa1b29c28b88975be414920979f0531518253398161 | ['ed67e21fac0749329068156597d0090c'] | I think this is what you are interested in.
Python provide direct methods to find permutations. These methods are present in itertools package.
Import itertools package to implement permutations method in python. This method takes a list as an input and return an object list of tuples.
# import itertools
from itertools... | a6fb0a6affc3b6c8c81faf4255860ecbbdf68424eb7d81430b2ea5db02702511 | ['ed67e21fac0749329068156597d0090c'] | One solution is to kill the port that is already in use and reuse it again. To a kill a specific port in Linux use below command:
sudo fuser -k Port_Number/tcp
eg: In your case it would be as follow:
sudo fuser -k 98/tcp
But to answer your question, I think the below code will help you to find all free tcp port:
from... |
045c03b34dce7a7a443a0c3478c3742e8354c38de1291180ca6429686b732430 | ['ed70bac299c346d591ce9d01baf127e5'] | While reading this answer, I came across the two different events
Application.Current.Dispatcher.UnhandledException
and
Application.Current.DispatcherUnhandledException
and I was wondering what the difference between those two are.
My guess is that Application.Current.DispatcherUnhandledException is kind of a wrappe... | eaa84cdabc8219e8390eeaf6168b958f8ef8ee06bcff1abdf8a31aa123c439e3 | ['ed70bac299c346d591ce9d01baf127e5'] | If you have the MySqlDataAdapter, try if the following code works for you:
string connectionstring = @"****;userid=*****;
password=***;database=***";
cnn = new MySqlConnection(connectionstring);
cnn.Open();
string query_date = "SELECT computer_name AS `computer_name` FROM wp_users WHERE user_login = @login";
MySqlCom... |
1dd94cdd92eeacfe89da67174a80fcff4caa5e189b15114c842cebece9714eec | ['ed76f348a3b84412baf81dbd1f759735'] | I have searched a lot on the website, but didn't find any related question. So I believe it is not a duplicate.
I know we can initialize an array with 3 ways:
char[ ] charAr=new char[10];
char[ ] charAr={'a', 'b', 'c'};
char[ ] charAr=new char[]{'a','b','c'};
1st question is: what is the name of {'a','b','c'} kind of... | e1b7a9a75d92aab8c8ecc0bd3f6e8dc38bc2877231e666f7400e96da8ddd0937 | ['ed76f348a3b84412baf81dbd1f759735'] | I have been confused for the words "dynamic" and "static" for a while. As I know, in different scenarios, they may have different meanings. Anyone can help me make it clear. I hope the explanations will be focused in Java. Thanks in advance!
Scenario 1: what does that mean when they are applied to data structures,like ... |
8d49f9d8a93a1d72718d67b785c3d3cb7c6dd9d6d36f03d3a75ed9f8491331ea | ['ed96857822fb4adda474d5ed8849f714'] | You can add a "st_url" Parameter to specify the shared url. Insert the current url without the page-parameter to share the same url across multiple pages.
<span class='st_fblike_hcount' st_url='http://www.example.com/seo_quotes_archive.php' displayText='Facebook Like'></span>
Source: http://support.sharethis.com/custo... | e8f84654cfce7bb40a2c92a448449d9b5e88585897b6f737690d899864eb62be | ['ed96857822fb4adda474d5ed8849f714'] | Is it possible to find out which constant has been passed as an argument?
Example
<?php
define( 'POINTS_REQUEST_ADD', '3' );
define( 'POINTS_REQUEST_DONE', '5' );
define( 'POINTS_REQUEST_REACTIVATE', '1' );
define( 'POINTS_REQUEST_UPLOAD', '3' );
public static function ... |
a4457b4e55154156dc3c1d9c6ca7a75c34c2b44f70762fdc53d961ba00a0f85e | ['edae5a25397f4f95b00ae0431202a335'] | I have a python function that needs to write an arbirary number of bytes to a bus:
def Writebytes(self,values):
for byte in values:
self.writebyte(byte)
The idea is you pass it a list of bytes and it writes them all out to the bus, e.g.
data=[0x10,0x33,0x14]
object.Writebytes(data)
i'd like to support a s... | debd20f942d7b3724728196bee550431f98724957cb23eae9dc55aa63c5397d6 | ['edae5a25397f4f95b00ae0431202a335'] | I'm having trouble with inherited methods in a class definitions in the Arduino environment. I have a base class portal which is inherited from by class gauge and then meter inherits from gauge. The base class has a definition for a method, but the compiler says it cant find a definition of meter::method.
Header file:
... |
f6363087d0b2aa7d26824b9e73b7a672cb56addbf4b22f29dc006a2c129a6327 | ['edaf14de45d74ecf929e6745ceb5bad3'] | I went through Dask tutorials and they always start with the initialization of the Client:
from dask.distributed import Client
client = Client(n_workers=4)
I am mostly interested in using Dask's read_csv function for reading DataFrames in parallel on my laptop.
import dask.dataframe as dd
df = dd.read_csv('trainset.... | 3a4f21be93bc1c802932c081227b86bbb31a5fec395f01227d15753dccb70813 | ['edaf14de45d74ecf929e6745ceb5bad3'] | If you have a pandas Dataframe you can use this template to plot two lines with different axis:
from bokeh.plotting import figure, output_file, show
from bokeh.models import LinearAxis, Range1d
import pandas as pd
# pandas dataframe
x_column = "x"
y_column1 = "y1"
y_column2 = "y2"
df = pd.DataFrame()
df[x_column] = r... |
3a10123783c469ab0ff7ff8a3f47c6419c992b1316903ceb3c8bb3716ab1d702 | ['edb7dd88a9f8484d8716d3004651ac43'] | Supposedly, TestNG creates failed.xml file under test-output->failed.xml but in my cases, the file is there but it's NOT showing correct failed test cases( correct XML test cases), It shows test cases that I had run sometime back.
Please suggest what configuration I am missing so it can generate a failed.xml file ever... | b6858fcfff58fe3c882670a7b566789e9280325106493b7abd830e2395b23588 | ['edb7dd88a9f8484d8716d3004651ac43'] | I am having the issue with the opening of android emulator thru appium. Here is error i am getting
[BaseDriver] Creating session with MJSONWP desired capabilities: {
[BaseDriver] "app": "/Users/MY_NAME/Downloads/ApiDemos-debug.apk",
[BaseDriver] "appActivity": ".view.TextFields",
[BaseDriver] "appPackage": "io.... |
40a2c0587b73b966d0551e496dc024efe1c5bc19fbaaa72671fbfefa2f98fcc9 | ['edc52ff127104aa7b4faa555fef7c66f'] | I am planning to develop a project which will have access to different services placed in different domains using ajax, so that it may get different types of data from each of them.
At the beginning I thought that due to cross-site scripting that can't be done so I would have to use a different approach or maybe use a ... | dea69a451b20ba8881aec6ef413ba784d0e98d809658da44966f3a50dcb6aca6 | ['edc52ff127104aa7b4faa555fef7c66f'] | As no one is answering I'm going to say that I've found that adding these folders to the ones I had open to public seems to do the trick pretty well at the moment, maybe I will need to add something else in future but it seems to be working:
<location path="umbraco"><system.web><authorization><allow users="?"/></author... |
ea57e751d3f6ad44b2c5e439f835d5a28e6e8897632e719e1dfb92ee2daa9a62 | ['edccd646dc724c0ab48c197569a269ce'] | It's a shame I can't downvote or comment on the accepted answer. As per the doc's, what was written and accepted is simply untrue. Sass only removes single line codes and preserves multiline comments.
Sass supports standard multiline CSS comments with /* */, as well as single-line comments with //. The multiline comme... | 44ce97dd15795a7bd1879b0ed0a0055577458624e00f3ae24e70ce3fe1986be8 | ['edccd646dc724c0ab48c197569a269ce'] | You need to be a little more specific, i.e. what your current html and css is and and example link.
A simple solution is to just float all 4 divs, giving them fixed width's and height's, clear the left float on the third div so that the final two divs drop down to the second line.
You don't even have to clear the third... |
4dcfd28f7e2c2295f2de4d9d07a76bfb036418327ee9bda47aa1882419c0b1a5 | ['edd01bfb077b4aa3a0b7f5c3da672331'] | @MadProgrammer I modified a little bit based on your code.
public String blowup(String str) {
StringBuilder sb = new StringBuilder();
for(int i =0; i < str.length(); i++) {
char c = str.charAt(i);
if(Character.isDigit(c) && i < str.length()-1) {
char next = str.charAt(i+1);
... | b44017d3a94fc879c76cafc821e27fc4e10bbfaa447676fd790927d0f4eebaeb | ['edd01bfb077b4aa3a0b7f5c3da672331'] | I came across some C++ code from a blog. I tested the code in my IDE. The function in the code can work properly even without the return statement in the recursion calls(the search(head->lchild, x) and the search(head->rchild, x)); Can anyone explain why?
Node* search(Node* head, int x){
if(head == NULL) return N... |
012b7cfb62af8334528867d76d66fce4bd61b12f3e9e9c1692528d6e6bfa3220 | ['edeec787ed0441c28dd370a029c87b40'] | This question has been asked many times before, but none of the answers helped in this case.
The following occurs on the /api location.
By default, Nginx is sending the 504 gateway timeout after one minute. We increased this timeout with proxy_connect_timeout, proxy_send_timeout, proxy_read_timeout, send_timeout and cl... | 3273e4d2e615dcab32b3a823ae9fea9687a32a434c75aa0cec021acb34f8569a | ['edeec787ed0441c28dd370a029c87b40'] | After nearly 3 hours of experimenting I got it and even 260 times faster as before:
SELECT MAX(pd.id) AS max_id, pd.name AS player, MAX( pd.update_time ) AS last_seen, MIN( pd.login_time ) AS first_seen,
SUM( pd.play_time ) AS ontime_total,
SUM( CASE WHEN pd.login_time > NOW( ) - INTERVAL 1 DAY THEN pd.play_ti... |
c54258d5256400aa269ff7ef4691ab1a24acf24bedd6872cef3643c61c68d571 | ['edfc4ba0c6744172b3a2906186ed3b7a'] | Yes, I was taking a look at the source code. I'm working on making a pull request, though there's not much documentation. I've realized now why I like C++. Python is great, but it is not easy to figure out how the objects of another person's project are constructed. It also seems that there is a big wishlist so I'd pro... | c9ffd6eeda18f6ea23c9c4593b76e8d3ffae951f15f072fdb6ccec2f1b54e6dd | ['edfc4ba0c6744172b3a2906186ed3b7a'] | Interesting... So I made the change you suggested and I now get an error, "history position out of range". I also tried running it using it's full path (it made no difference). Also I am sure that the history position is not out of range.... I have more than 400 items in my history. |
e0d4ed2b8df74dd4a7c7b1dae5b1060d64ebe3500093af1f3bba5470a38f7726 | ['ee09fcfcdcc14500bf1b0765bf5b3bc0'] | In your situation you will want a branch office Exchange and Domain Controller (on separate boxes). You should setup two sites in AD. The sites will replicate AD to one another less frequently. The remote Exchange server will talk to its local DC and have all the AD information it needs sitting right there next to i... | 605c9a5a844cae7895dbaafdaba12fdf9f985b1b2776fcd5c0501bffcfc4bb16 | ['ee09fcfcdcc14500bf1b0765bf5b3bc0'] | Could be lots of different things. What credentials are the scheduled task(s) running under? What commands are you running in your batch file? How are you connecting to the other machine to download the file?
Just in general I would have your script write out a log file between each command so you can see at what ... |
62b9ed8377977d409f9086a11c5d3347e2fb83c8f05ec2873ce1106acafb9fc7 | ['ee0c37554f22446f96e488cce08205ca'] | I'm working with a Leaflet map that displays marker data based on a MongoDB query. The query results are saved into a variable (I know, bad form for large volumes of info but okay if you only have ~25 pieces) as an array, and then I've iterated over that variable and it's stored information using a for loop to create m... | 84b23e41219e6b6397e796593979ed6d059056117343f6bb0a6154a65ac9ee48 | ['ee0c37554f22446f96e488cce08205ca'] | I've come up with a solution to the first part of my issue - at first a javascript closure/scope issue to the inner and outer function scopes. I spent about 2 days wrapping my head around this SO answer: the concept of using the first for loop to produce individual instances of the function (if this were a play, the fi... |
7a2b2b1c99ad6ac34196cb3f901cb3391f73e63ab241cb4369b5fd8d138887cc | ['ee256bfc9e614807a1b8c80d934e02b8'] | I am trying to run the pig script using the -f usecatalog option but it is giving me issue.
it says script does not exist, while I can see the file is present in hdfs file system. see below.
[hdfs@ip-xx-xx-xx-x-xx ec2-user]$ pig -useHCatalog -f /user/admin/pig/scripts/hcat1.pig
WARNING: Use "yarn jar" to lau... | 3a8b14804938a6b41c4d23110b61929cbb36eba01281e405cc1ffa73a62dfaee | ['ee256bfc9e614807a1b8c80d934e02b8'] | I am running a pig script , it is running fine but it fails when I am trying to store the output in file. dump works fine.
Could someone please let me know the reason or at lease guide me to how to troubleshoot.
pig -useHCatalog;
a = load 'geolocation_part' using org.apache.hive.hcatalog.pig.HCatLoader();
b = filter a... |
41a4c2df35fc5015409b4ea2946a02483de2f9095002809b2305cbc5765cde79 | ['ee2634781f154cb9a0d83b8c6a8c366b'] | You must set what's the decimal precision to be used, you can do it with stream manipulator setprecision (int n) where n will be the new precision to be used.
You can look at the following example from http://www.cplusplus.com/reference/iomanip/setprecision/:
// setprecision example
#include <iostream> // std::cout... | e2c5bf2d0fe857b7da706a5d5b4fab12bf1aeb396406ad6b578a00e08a6ba404 | ['ee2634781f154cb9a0d83b8c6a8c366b'] | I'm using python Logger in one of my programs.
The program is a solver for an np-hard problem and therefore uses deep iterations that run several times.
My question is if the Logger can be an issue in the performance of my program and if there are better ways to log information maintaining performance.
|
519ca8134d2adc042f8e1edc8418b53162830b4bb59c9339bfb2157a36c92dfd | ['ee2d18c39ebf4aa4b71c4043999da563'] | Note that there is a difference when using `sort -n | uniq` vs. `sort -n -u`. For example trailing and leading whitespaces will be seen as duplicates by `sort -n -u` but not by the former! `echo -e 'test \n test' | sort -n -u` returns `test`, but `echo -e 'test \n test' | sort -n | uniq` returns both lines. | 59cd963be99a20b997f045d049834271219b53d8d48a07897717978c6e2913fb | ['ee2d18c39ebf4aa4b71c4043999da563'] | @user1742529 You want to use ratarmount on system without any Python installation on it? Python is quite ubiquitous, it doesn't hurt having it installed. I could look into something like building an AppImage, FlatPak, or Snap, would that suffice in your opinion? Not sure if they work for this use case though. |
b62e6a867768a7152bb34feb5f19cb986cd32d3d6be1ab0cd79452f35c84e1aa | ['ee2f9c65fada4506ac352da26ae3e2be'] | I have a custom view that contain a framelayout. This framelayout contain two views (LinearLayout) that can be swipe. If I swipe the first one, the second one appears and vice versa. One of those views has a button but I don't know why, this button is like disable. I cannot click on it and the onClick method has no eff... | 241b06998d6c8953f72e0f834d24d851365d8c29c4b406b8c47fe8f9a88eb058 | ['ee2f9c65fada4506ac352da26ae3e2be'] | I know that this question has been asked several times but I really don't understand why my code doesn't work. I based upon a lot of examples (from stackoverflow answers) to write my code and I need help to understand where is the problem.
The context
The user can, trough preferences, choose a day to be notify.
I get a... |
5eb3ecefe81624a725762f825b120076b79a85538d53ec42b1bc9b10f9387039 | ['ee307ee41ec74a27b721a05ca73c7ab5'] | I want to have the user input a start and end of a list and for the program to find all the prime numbers in it and to print them. Right now my code looks like this:
def rangeStartEndPrime(v1, v2):
import math
check_prime = (v1,v2+1)
for num in check_prime:
is_prime = True
for i in range(2, int(num**0.5) +... | c5b302b2f16fd15058e9c2517f0c05998afa2fe6be7c93ea348dd78d99c8ffca | ['ee307ee41ec74a27b721a05ca73c7ab5'] | I have written a code where the user enters a code and the program rotates it by the desired amount but each time it rotates by two and not one.
E.g. 1 2 3 4 5 rotated by one would turn into 4 5 1 2 3
My code is:
arSize = int(input("Please enter the size of the list "))
arr = []
d = int(input("How many time... |
743f9bbd7b99fdc354eee9a3c77525bfa40a712f68c28d3bef7b05ca957ce839 | ['ee40605483b94b609bd11436b4dd4a10'] | про ссылку: благодарю, ознакомился, но нет, все верно, качество не падает, потому что в сохраненном mp3 файле все ок, как и должно звучать
второе: на входе у нас непрерывный поток, который извлекается с любого записывающего цифрового устройства (микрофон, аналоговый вход, ретрансляция потока для динамиков и т.д. и т.п.... | d80e355af478162e11ecb8109422262f19dacbf281b50f249b472f61fa72675e | ['ee40605483b94b609bd11436b4dd4a10'] | @MSDN.WhiteKnight вот здесь может быть проблема конвертации? как я понял, у mp3 другая частота дискретизации и кол-во кадров тоже отличается, а указал его значение я здесь. при установке 128 кадров для wav канала, он выводит ошибку, что максимум - 16, кое сейчас вообще должно и быть по умолчанию. Я не совсем понимаю пр... |
235c2b29438188316dcde4732465a863912d295a80be7afca2ce4af61d1c0b0a | ['ee57f38603e24c249cab7c2099e4660d'] | I really feel for you. I had a very similar experience in math graduate school. I won't go in to the details, but let's say I ended up in a research group whose general area I was interested in, but the particular research they did was not as interesting to me and required a rather different background. I struggled ... | 462f0fed1c0617688e0594e1f9d1ad3f65a23918739fc36186a3ae855b5a4001 | ['ee57f38603e24c249cab7c2099e4660d'] | I have pretty significant anecdotal insight here. I went to a very good but not quite top tier ( in math ) school and jointly majored in a humanities degree and a math degree. I was active in the math department, but was not the top student. I took maybe one or two graduate courses as an undergrad. By my senior yea... |
ed4e4f132fde220167feffef53c984d9ec1f9b1a5ff69ae67f2eed06ebf87aff | ['ee62a927478441399192c62859b04186'] | You have to look to official ReactiveX documentation:
https://github.com/ReactiveX/rxjs/blob/master/doc/pipeable-operators.md.
This is a good article about piping in RxJS:
https://blog.hackages.io/rxjs-5-5-piping-all-the-things-9d469d1b3f44.
In short .pipe() allows chaining multiple pipeable operators.
Starting in ver... | 28fb451b2c803e1e56b3aaf48120cc3af478a985e0f0ac20e67b2696e33e3d56 | ['ee62a927478441399192c62859b04186'] | You can try this example (without Typescript for simplicity):
source file:
import { of } from 'rxjs';
const tempVolunteers = [
{ firstName: '<PERSON>', lastName: '<PERSON>', totalHoursLogged: 85 },
];
export const getAllVolunteers = of(tempVolunteers);
React app file:
import React, { Component } fro... |
680273c208b70c0232104ed60983548b78a51804feef83f9da933c99d62aa0ed | ['ee6da477f5ba4989a121fdc29a175976'] | Maybe stupid question but I am developing for android 2.2 to 4.1. Can I use this functionality http://developer.android.com/reference/android/preference/PreferenceFragment.html which is available only from API 11?
or must I use old http://developer.android.com/reference/android/preference/PreferenceActivity.html which ... | 223ab2e7ccb3775f2335de76a08a7661a59d857bd59e49540a0da5af8c4794a3 | ['ee6da477f5ba4989a121fdc29a175976'] | private class CompAdvertisements : IComparer<Advertisements>
{
private string OrderBy { get; set; }
public CompAdvertisements(string orderBy)
{
OrderBy = orderBy;
}
#region IComparer<Advertisements> Members
public int Compare(Advertisements x, Advertisements y)
{
return x.Country.Name.CompareTo(y.Country.Name);
Can... |
6097386b85941ddc92c2deff1ee53793530a79f05a3c35425c41ba45e3fc7d53 | ['ee6e0955820544c0ac3f1948d48f8b2b'] | I've tried to mask image with my png and it perfectly works on chrome.
However, it doens't work on Firefox.
Here is the style I used
-webkit-mask: url("../img/mask.png");
-o-mask: url("../img/mask.png");
-ms-mask: url("../img/mask.png");
Does Firefox support masking and how to do it?
| 77a56dad9435d08e7863c8513dfefcd9cd3fbb6f884f3b6cbc0a72a4fa38df2c | ['ee6e0955820544c0ac3f1948d48f8b2b'] | http://iscrolljs.com/
I'm trying to search but I cannot find anything about adding inertia to iScroll js when we are scrolling it with mouse wheel (not when dragging it).
When I use mouse wheel, I'd like it to have momentum or inertia too.
Is it possible to do it?
|
7e8deb1cf2dc7badac81915c2673d2e00b8f6ea723fc9a65fe7ef54418ab74fe | ['ee71dbab8188423693b504c980127498'] | Currently I am working on an ASP.NET MVC application that should use an existing framework. I am hosting this ASP.NET MVC app in IIS Express. Some classes of this framework assume that files are relative to the current directory. Right now the assemblies are executed in c:\users\MyName\appdata\local\temp\temporary asp.... | 8122f0139c5a2f8f1c6bba17a0a1bb664d6642a4545cfeba8afa665efd21ce7f | ['ee71dbab8188423693b504c980127498'] | I finally placed a checkbox in the InstallDirDlg and based on its value I decided whether to use a Component with a ServiceInstall element with Start='auto' or to use a Component with a ServiceInstall element with Start='demand'. This solved my first problem. But I couldn't use the ServiceControl Element to start the s... |
48e62437ef61b70b26684f67a882a3940c90fbd4c390c80dd60f0d86b49ddb04 | ['ee73b19ee1df4743994775c97546ea03'] | I have a question regarding quering site groups via REST Graph API instead of SharePoint REST API. Currently I need to query SharePoint REST API to find implicit groups (*Visitors, *Members, *Owners) for each site in order to find users that are members of those groups (those groups are not present in groups Graph API)... | b246507dfb2d42040814d6be423482c6d5fc35cf4c0f74399deef777e8b80063 | ['ee73b19ee1df4743994775c97546ea03'] | If I believe my money variable (price of an item) does not have a linear relationship with interpreted user value/worth, should I transform it so that its split in the decision tree is based on a modified relationship between price:worth rather than tre linear one that I feel is incorrectly assumed?
|
029da032ae238725e5556ad715399d1cd8ab3927c1104e1a69aecc3c6ef25651 | ['ee74faba26c840318e13fe535a1b3c35'] | I am using BinarySecurityToken for OTA_AirRulesRQ, but I am getting USG_AUTHORIZATION_FAILED. I used the same token for BargainFinderMaxRQ and it worked. Is it some problem with the SOAP request I am sending or access to this method is not authorized form my PCC ?
Also I am able to hold PNR and Issue ticket with same c... | 821d2d6e8fe3076a1472aa78e01a1541b03820a0a866a1b39766bc601cf98da6 | ['ee74faba26c840318e13fe535a1b3c35'] | PLEASE MAKE THREE CHANGES AND IT WILL WORK PERFECTLY
1) SET ACTION NAME AS BargainFinderMax_ADRQ
<eb:Service eb:type="OTA">BargainFinderMax_ADRQ</eb:Service>
<eb:Action>BargainFinderMax_ADRQ</eb:Action>
2) SET NUMBER OF DAYS FOR FLEXIBILITY
<DateFlexibility NbrOfDays="1"/> OR
<DateFlexibility NbrOfDays="3"/> OR
<Dat... |
59e5d4d7ac5eb23a77ba0e7329e3dd30a96f03e3df31588b78b305021ec7eec3 | ['ee816fc0c8a74e60aa87c6f133b75f45'] | I have set up a sonarqube instance via docker and I am using Caddyserver as a reverse proxy.
Unfortunately I am unable to execute the sonar scanner.
I get following error:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException:
PKIX path building failed: sun.security.provider.certpath.SunCer... | 02e146362b17dc4ff9bb50ee0c146a07122e4f03bdf817b4866e6aca4d5a500d | ['ee816fc0c8a74e60aa87c6f133b75f45'] | I solved my problem. It was actually an issue with my firewall. The firewall was dropping packets sent via PHP, but via curl or wget were not being dropped. I added a rule for all traffic from that server and increased the packet drop length and everything is working great now!
This page was what pointed me in the r... |
7c812ce7fbcd62ae0c79850e4f46c64057bf03d73b9fa5166b0d4e9a130e0842 | ['ee83fd549abf4dd5a5fb1d310d08c3ae'] | I have a private pod, its role is to manage some "IconFont", it contains a .ttf file.
I hope my other projects will automatically register this font in the info.plist file when they rely on this pod
I wrote a script:
s.prepare_command = <<-CMD
cd ..
project_path=$(cd `dirname $0` ; pwd)
project_Name=${proj... | ba672a2c6c4afe17125959dbf499ae8ff9272e7810c0c41dfe22ec9366a96b05 | ['ee83fd549abf4dd5a5fb1d310d08c3ae'] | I wrote the following code and set a custom back button icon:
let navigationBar = UINavigationBar.appearance()
navigationBar.backIndicatorImage = image
navigationBar.backIndicatorTransitionMaskImage = image
It works, which is good.
But now in another controller, I want to reuse the system’s back button icon.
I have t... |
4b926cecd0cdf2967694ab71a88e176f33deeef4ed086040e11bf6e1e929bbb2 | ['ee968efd472c40f592d1b123c51c173d'] | I'm trying to implement multi-language in my app (English & Hebrew).
I've created 2 string files and implemented all the methods that should support the multi-language feature.
However, when I run the app and select "Hebrew" in the dialog, the layout changes from left-to-right to right-to-left (as it should be in Hebr... | 664f239ab8f666d5aadf9fbdca7b502a68e0567c7ed48c7b43887719c94520e9 | ['ee968efd472c40f592d1b123c51c173d'] | I have a circle image that contains multiple image-background 's - an image and a gradient.
I would like to blur only the image and keep the edges of the circle sharp. I use this image a few times in my HTML code and would like to use different levels of blur in each image - Like the example below.
I tried multiple s... |
ae93ea3862ed841c821ec537fa6cffe36be6426255040f4b2bb6dba2fd22129a | ['eea539688aef4bc79ef250df2e8212cd'] | I am trying to do a two-slider animation using Blender Rigid Body physics.
I want each slider to go on opposite direction at any time.
I tried using Force fields but to no avail. Almost every video on youtube about Blender Physics is about Demolition.
This model is for the ailevon (aileron+elevator) mechanism for a jet... | 2889492a3fa730f9d17e6987bf90e87b5a9933d63fe0893165c68dbf46d99891 | ['eea539688aef4bc79ef250df2e8212cd'] | The problem is not in NC unless P=NC. <PERSON> and <PERSON> showed in "Complete Problems for Deterministic Polynomial Time" that the problem (therein called CFMEMBER) is P-complete.
Interestingly, <PERSON> and <PERSON> showed in "Parallel Complexity of of logical query programs" that the same problem where the input CF... |
da3529aa554740d1b9df53a41ebd2cdd7001641a73e1007119c984060fc08ea0 | ['eea99807f1b24da8b174cfaa3216e089'] | I guess something like this:
#include <iostream>
#include <map>
#include <vector>
int main()
{
std<IP_ADDRESS>map<int,int> dummy;
dummy.insert(std<IP_ADDRESS>pair<int,int>(1, 40));
dummy.insert(std<IP_ADDRESS>pair<int,int>(2, 30));
dummy.insert(std<IP_ADDRESS>pair<int,int>(3, 60));
dummy.ins... | aa1caf18c077203835b758a63b3a41bdf958bd6893387a2f53de11ee00ef6c38 | ['eea99807f1b24da8b174cfaa3216e089'] | I am sorry to carry this here, but I spend around 7 hours maybe for a really easy thing. Maybe some of you identify the problem.
I try to render some pixel coordinates to screen. The code is below.
For a 800x600 screen. Simply trying to calculate the position of the lines, and then to render it to the screen.
For examp... |
a55b7cd55d54bc779b69db8440cb76b51531df8b71773b496b94777bb50ffdd5 | ['eeac029d99244e2084da600f4d4ea36e'] | Thanks for the comments. All but the XY arrogance were helpful. The comment about ildasm being the most helpful. I had forgotten about this but it's fantastic. Nearly gave me an ildasm.
MethodBuilder incPropMthdBldr =
tb.DefineMethod("_Inc" + propertyName,
MethodAttributes.Public ,
... | d41b171701c3f0cd5f15be0d476ba14190938b2288dbfa4c36006bdfc21c80ee | ['eeac029d99244e2084da600f4d4ea36e'] | I am creating a dynamic type at runtime with the purpose of creating/serializing/deserializing objects from this type to then bind to a grid control. Everything works but my way of updating properties with records from the database is pathetic. I pasted this setter generator from somewhere and it works wonderfully wh... |
94e19275f854a14f9008a66184897e94315ec6cdfa94e3f890d492d3bf10b755 | ['eeadceef35bb46f7b4c2aee69b7e767c'] |
let toDoList = [];
window.onload = function () {
let ulElement;
let node;
let textnode;
let form = document.getElementById("taskForm");
form.addEventListener("submit", addTask); }
function insertTasksInHtml(newTask) {
ulElement = document.getElementById("list");
node = document.createElement("li");
... | 596b6f8812f47233579a81bb50ea8698e111636ebdf7c194c8aba539889317a7 | ['eeadceef35bb46f7b4c2aee69b7e767c'] | window.onload = function() {
var text_max = 200;
$('#count_message').html('0 / ' + text_max );
$('#text').keyup (function() {
var text_length = $('#text').val().length;
var text_remaining = text_max - text_length;
$('#count_messag... |
1e4d432afc6e18a55348ea329248fc175b765f9db2f0daf5327fe1b27c46f8fd | ['eebe27405a5144df8edfab1bd4a79ccf'] | As said, you should use DependsOnTargets. I've done some research on MSBuild scope, you can find my results on my blog : http://blog.qetza.net/2009/10/23/scope-of-properties-and-item-in-an-msbuild-script/
The thing is there seems to be a global scope for the project and a local scope for the target . When entering the ... | 4a09f45d369a8b86ab1995f1e1e3d6bc4b8ec6c7ae55522074f1133e4d746211 | ['eebe27405a5144df8edfab1bd4a79ccf'] | So lately I noticed that the Coplanar Waveguid calculations of AppCAD (http://www.hp.woodshot.com/) did not give the same result as the online calculators do.
https://chemandy.com/calculators/coplanar-waveguide-with-ground-calculator.htm
http://wcalc.sourceforge.net/cgi-bin/coplanar.cgi
AppCAD:
Can anyone explain th... |
44f08de99c8354790a5b2d3fd6800af7d0f76d96d24b50b7ae07d0180400a918 | ['eed15eabf0914cfa90695c83c4ea5874'] | I get a error when after I published the app. Even on the same computer that I devolved on. While developing everything worked fine.
The system cannot find the path specified.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information... | 97a3b72033ce929240c37c58b81268643cbb013ee572cc35a756f796d7816525 | ['eed15eabf0914cfa90695c83c4ea5874'] | I couldnt find a exact answer to this question. I found a bunch of different questions.
I finally was able to piece together by using fetch.
You need to accept type 'arraybuffer', then you turn into a blob with resopnse.blob(). Then you can open the blob in a new window.
fetch('/post/url', {
... |
3d6a897e50c1bfa5a7bb43f7920831fdb36401fffbfe84819771732148dc31e9 | ['eed44260fe744046828077e5ccb7b989'] | I have built a dynamic library on Mac OS X, a .dylib file, that compiles just fine.
In order to run an application using the .dylib some functions in a file named fips_premain.c run before 'main' to check if a fingerprint was embedded in the .dylib properly. All one has to do in the case of a static library is run an ... | 2a383de5c62cb80530afa34305cd7b4912e09dd3fb40102ae94520b5056e03e6 | ['eed44260fe744046828077e5ccb7b989'] | When I have my iPhone (which I'll BobbyUserIPhone ) plugged into my Mac the name "BobbyUserIPhone" shows up in the scheme for one of XCode projects. I have another XCode Project open that just "iOS Device" instead of "BobbyUserIPhone" like I would expect. What might cause this and whats the best solution for it?
|
b9e52792e370de4872c742cc1daf2a6dc713cc4a43a10322d788fc054769fd31 | ['eed825415e194754adf64dedcb82b85e'] | In my javascript console it works when I do this$('.collapse').collapse();,
but it does not work when I append it to the bottom of my application.js file.
My application.js file looks like this
//= require rails-ujs
//= require activestorage
//= require turbolinks
//= require jquery3
//= require popper
//= require boot... | 02df9f25e8303d779bf10b653101d729fd54822e8c0a44c343af2bd8a2e4761a | ['eed825415e194754adf64dedcb82b85e'] | In Android Studio 3.1.4, as I'm reading some class definitions from android SDK 28, I observe that many import statements cannot be resolved. For example, the class MediaRecorder.java located at AppData\Local\Android\Sdk\sources\android-28\android\media\MediaRecorder.java has import statement import android.annotation.... |
4a174bafb7d805b6b84e9aa6b647646e2f4c9b4c3c20353fead405fc2f22d0a1 | ['eed8287282784929ac6d2cdd59dea66b'] | My website uses both Jekyll and Bootstrap, and the main navigation header is a dropdown. I would like the parent item (e.g., Solutions) to be highlighted in the header whenever the user is on a corresponding child page (e.g., Solutions > Solution 1).
My Jekyll navigation file (navigation.yml) is in the following forma... | f063f3a8d08e535953ee401d35f883360fd6d01ba591c2b8b86bcccc7ee02632 | ['eed8287282784929ac6d2cdd59dea66b'] | My sign-up form uses HTML5 validation to validate that required fields have been completed.
<div class="container">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<form action="https://www.salesforce.com" method="POST" id="signup">
<div class="form-group">
... |
de06fdd5db2b8e77765f84ec101c07edd614772abed956935dc873301a973910 | ['eedb387e917b42cf8e42116c731285bc'] | I need to install Xbuntu 18.04.5 WITHOUT ANY KERNEL, or remove ALL kernels right after installation.
The explanation is very simple - the system is supposed to work ONLY with the CUSTOM kernel, compiled specifically for this purpose.
Not only do I want to free up some disk space that I will never use, but I also want t... | 5778d471e022e8155cf83805b974d414901a4731546c8746d4237d74a761815d | ['eedb387e917b42cf8e42116c731285bc'] | I'm trying to install freeglut for MinGW on a Windows XP machine.
After downloading the sources (from here) I followed these instructions.
I opened a MinGW shell and typed the following commands:
./configure
make all
make install
Once done I can't find any freeglut.dll file in the directory.
I'm new at installing fro... |
e8dcfd2bf18d4ebc4cde8c1f1701e267a7f9bd8d08e15c077f792973fedeb23e | ['eeead66f3bc74261889b3504aea49ad5'] | When i say distributed monolith in that case I'm refering to the fact that if a service fails, all the services that communicate directly with others would also fail. Monoliths are defined by its highly coupled nature, which is also present when microservices communicate directly with each other via http requests.
I ... | e8db38d7608223a75a1d771372b23c9123cc3918439313a739cb34f0ef95c946 | ['eeead66f3bc74261889b3504aea49ad5'] | @c_maker I literally created an account here because I saw someone comment that in a similar question. I initally thought the same "why everyone assumes a service will fail and compromise the whole application? Uptime should be the biggest concern." But then I came to the conclusion that if someone decides to migrate f... |
f6b7e1d4447e9550059f232252886653cfb91580f92ea1a26bbeba8ad3b39ee1 | ['eefcb3bfb762481884a81f49ef6c8995'] | The memory cells are not the only component inside the SSD. Just because a SSD has double capacity, this does not automatically means it has all other internal components doubled. You just buy more hardware with two independent drives than you would have with the large one. This would result better performance in RAID ... | 0a9d9f50e275e394c07d1f03928e73802e843d0e8cd1adfefbee7af6e0a832ed | ['eefcb3bfb762481884a81f49ef6c8995'] | I have two virtual interfaces, one configured as NAT and another as host only adapter. The NAT interface is intended to provide Internet access from inside the virtual box (to pull Docker images, etc) while the host only adapter is for communication between host and quest.
My /etc/network/interfaces is
auto enp0s8
ifa... |
4a20bdc72de719d33db52516866747e16ac81bea45cab1f61a4b9c83214f316e | ['ef02a630249543c0b832d35180b7e8d4'] | Given a very large number(N)(say it has 500 digits) we have to count number of pairs of integers x and y such that 0 <= x < y <= N, and sum(x) < sum(y), where sum(k) = sum of digits of number k.
Source : here
As always I dont't expect a good tutorial from Hackerrank so I asked here, any pointers will be of great help.
... | cfe0dc4fcd82f92876c1609834aa890b2951ff6a945c59e035aab52f1217b394 | ['ef02a630249543c0b832d35180b7e8d4'] | I'd like to implement a customized content assist (aka. auto-completion) for my Java API's and custom jsp tags. Basically, I'd like to set the advisory level (discouraged use) on the undocumented features.
(Of course, the proper way is to expose api's through a facade. However, it's way to late for that and the only wa... |
607b4bb3b93c23d348ff871569a23b0372a0cbd43845fd7bc6277dc252046914 | ['ef0a4f721ac74784b5741414b41c6d4b'] | When I copy the name of a file called "A B" it only search for "A" everything after the space get ignored.
Is there a way to add "+" between the words.
Set WshShell = CreateObject("WScript.Shell")
Set X = CreateObject("htmlfile")
text = X.ParentWindow.ClipboardData.GetData("text")
WshShell.Run "cmd.exe /k start www.... | f8f1559c96474a13afbccf0e0c0b9f0cf485c1527c1d13cf077a2bd8517dc059 | ['ef0a4f721ac74784b5741414b41c6d4b'] | Thanks to <PERSON>,
Set WshShell = CreateObject("WScript.Shell")
Set X = CreateObject("htmlfile")
text = X.ParentWindow.ClipboardData.GetData("text")
text = Replace(text, " ", "+")
WshShell.Run "cmd.exe /k start www.google.com/search?q=" & text, 0
Set WshShell = Nothing
Set re = New RegExp
re.Pattern = "\s+"
re.Globa... |
3ce29206e65c7f6722a8707ee31c7b4cd7cc07d10e655708320a5adaad169d02 | ['ef24a50d7ecc49cb9a58ea0d355e4099'] | Your problem might come from your use of shmat. In C, never cast the return type of such a function. That you felt the need for it probably means that you had a spurious error message that came from the fact that you are missing the "sys/shm.h" header.
What happens in such cases is that gcc takes the return type for an... | 171eba97d454af48bfe87387ac3cc71cd399069e0d993573b2326e6b23fdc71a | ['ef24a50d7ecc49cb9a58ea0d355e4099'] | In C, this can be achieved with macros. The implementation of such a thing is a bit tricky, so you'd better use an existing toolbox to do so. I have collected such things in P99. With that you could define something like
#define DumpData(...) P99_CALL_DEFARG(DumpData, 3, __VA_ARGS__)
#define DumpData_defarg_2() 0
The ... |
beb69eb82a1906f3341c7f93476a43dc7db5d854ead7f3c4b5cab0cc5d511060 | ['ef31a31522524d4fa26f0253408479df'] | Please i need help on this. I am using stipe elements form , and while it is displaying on development, it does not display on heroku production and this is the error Inspect Element is giving me =>
ReferenceError: Card is not defined
i have no idea, so need help please.
i am on Ruby 2.3 & Rails 5.2.3
document.addEven... | bd0b4c4141bdde198cca6e8698041c827e4825db8023f8414138ead23bf9eb0a | ['ef31a31522524d4fa26f0253408479df'] | Please i need help validating this code.
Using Ruby 2.3.3 & Rails 5.2
i think all ending anchors are given though
<% if current_user.id != user.id %>
<div class="panel panel-default">
<div class="pane-body">
<center>
<% if !current_user.following?(user) %>
<%= form_for(current_user.... |
f2c25bd77ec5b542d61198d37f0cb55413450ac7eaea4dadfe861d4ee0786878 | ['ef3fcd84175e4dda94aecb15c8f65852'] | Woa! a year later, but what you are loking for is osmething near this:
Go to the dimension sheet, then select the Category Dimension, and click on the Edit Dimesnion button
there you can use something like this:
= If(Match(Category, 'a', 'b', 'c'), Category, Null())
This will make the object display only a b and c Ca... | a400a30f92858f25e063a37936c6c959784c34d2f17286bc555d974180986a49 | ['ef3fcd84175e4dda94aecb15c8f65852'] | in addition to @iddlefingers answer, here is a view of the log of the application (striping some useless params due to explanation purposes)
Parameters: {"utf8"=>"✓", ..., "comentar"=>"Confirmar"}
where we can see that comentar is the name of the parameter, and "Confirmar" is it's value, which is the button's text too... |
15ae84f47f601f4162dac352b03312f5e41afe980a47898425a292b35c3d00e2 | ['ef4d6b92b7204d51a5c595bd38344674'] | I'm having trouble simply showing the contents of my List in the ComboBox using Caliburn.micros BindableCollection. I get three blank options, but when I chose one of them I get the correct value back so I know it's working. Obviously I would also like to see what it is I'm choosing.
I've tried creating a local string ... | 4fc4014da1b18e6bed4d801829698ba36c97f2a60dc03fb5633ff5f8465f4dc1 | ['ef4d6b92b7204d51a5c595bd38344674'] | been trying to figure this out for a while now to no success. I dragged the image tool on the MainPage and named it MyImage.
XAML:
<Image x:Name="MyImage" Source="Assets/luigi.jpg" HorizontalAlignment="Left" Height="100" Margin="285,400,0,0" VerticalAlignment="Top" Width="100" RenderTransformOrigin="0.587,0.507"/>
C#:... |
fd75163093919a7a691bddea2c51b430f7e08201c20d663fee52b37a8e25b4fb | ['ef551848eb0449109e89ae724e4b9cf5'] | I'm using OpenTK and C#.
I'm rendering to a renderbuffer and I need to copy it's contents(ColorAttachment0) to a Texture2D so I can do some post-processing on it, and the draw it to the screen. How do I do this?
I would use texture instead of a renderbuffer, but I need to Anti-alias the framebuffer, and using GL.Render... | 48986526dc52abe4398b210ed6d5afe73b729a413695e09041fcafa39678b351 | ['ef551848eb0449109e89ae724e4b9cf5'] | I am helping with documentation for a hardware product that is compatible with Fat32 Formatted USB sticks. Instead of saying "Fat32" and confusing users who may not be tech-savvy, we'd like to provide a list of compatible drives and brands.
Rather than researching each product separately, we hope that there is a small... |
9c5de6de373d07d1e2b703df91a1edb92cd2f1f8916c785158530a6c48871ace | ['ef58286df464436ba0dabae2a54a1bec'] | I'm trying to calculate the distance between sequential points and partitioned by the ID number in BigQuery.
Here's what my table looks like:
OBJECTID ID DateAndTime Lat Long
1 1 2002-11-26T12:00:00 <PHONE_NUMBER> -109.9709871
2 1 2002-11-29T13:00:00 38.541137 -109.67757... | c7dea46b6c1fef13d82894f9865ab784c4c3f0420a1cdcff715ff926d62c2247 | ['ef58286df464436ba0dabae2a54a1bec'] | I ended up using an update cursor to solve my issue.
with arcpy.da.UpdateCursor(fc, fields) as cursor:
for row in cursor:
myDate = datetime.strptime(datetime.strftime(row[0], "%m/%d/%Y"), "%m/%d/%Y")
if (myDate >= datetime.strptime("03/30/2020", "%m/%d/%Y") and myDate <= datetime.strptime("04/13/202... |
945206bc6a902d4873ea349bf42f2e7334d89c087dd8f4c7222a7c4865b316fd | ['ef58501058984ffc8983320c875a97b2'] | Thanks for this helpful result, which I could not find elsewhere. For the common case of $n=2$, it simplifies as follows: To map from $ds^2 = a^2 \left(d\theta^2 + \sinh^2 \theta d\phi^2\right)$ to
$ds^2 = \frac{a^2}{y^2}\left(dx^2 + dy^2 \right)$,
use the transformation
$x = \frac{\cos\phi \sinh \theta}{\cosh \theta... | a6f10f4501cc55bfa928c4c5285530d85cfa85c71ac503f31bbd213f99db777f | ['ef58501058984ffc8983320c875a97b2'] | Я разместил на ViewController TableView, а на ней TableViewCell. Хочу вызвать саму tableView, чтобы у нее вызвать indexPathForSelectedRow, но он не находит tableView. Что сделать в данной ситуации?
"""
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if segue.identifier == "showDetail" {
... |
8829a8f463c29a17224dc5c25719f69df444c58bc4c7da762b5e71347cf7b929 | ['ef5bd8ad150646f0a9927b34e9050fdf'] | Now I am writing a WMI query utility following the examples provided in this link:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa390422(v=vs.85).aspx
But I find that the program may blocking on the call to IWbemLocator<IP_ADDRESS>ConnectServer. Here is the code:
hres = pLoc->ConnectServer(
_bstr_t(L"\... | a0f707f80174144d0b8a64d8b7b33231a637d08fb1337b39c31849a94a959716 | ['ef5bd8ad150646f0a9927b34e9050fdf'] | I just start to learning mips assembly programming and use QtSpim emulator. The example code is copied from a tutorial. But when loaded using QtSpim, it complains following error:
spim: (parser) syntax error on line 6 of file /home/k/Desktop/work/asm/h3.asm
la $t0, value
The exmple code:
1 # add two numbers
... |
43c11ec22cdae3b4ac4ec7fc3f63385e40b866897c17c29a58656a13d4e23978 | ['ef603632b914455b8c4a3eb7bcf6857f'] | This may sounds crazy but it seems unclear to me whether there is an interface to assembly programmers to write code to load one register on core 1 to a register on core 2. For example, load EAX on core 1 to EAX on core 2.
Is it even possible?
More over what is the interface to assembly programmers to use two cores (ru... | e70599999b6a51887ba098db550419b6f62029ca13b9330087ca9d1826709b4d | ['ef603632b914455b8c4a3eb7bcf6857f'] | One way to do this is run a WCF service on your server to do the Speech recognition using Microsoft Speech Recognition API (SAPI) and let your web service to talk with your WCF Service . Basically, the web service needs to get the audio, stream it and send it to the WCF service.
YOu can find more information on this po... |
7ff2becfe101f89068da8d5952d69b9674f4bfce4662e499bbbcc53118af9e54 | ['ef72751497214affbf81265c42404686'] | I am getting following error when I run code in Selenium and Java using TestNG. On multiple blogs/sites it is mentioned to clean the project and so I did Project->Clean but still it is throwing me this error. Can some one please point me what is wrong in this code? Thanks.
package firsttestngpackage;
//import org.test... | a53199b828f308ac9f3689001c80a5c397323428b3f6a937d6e1615ddf8ea3f0 | ['ef72751497214affbf81265c42404686'] | I am getting following error. I have Eclipse Mars and JRE V 1.7 (i initially had installed V1.8 but as it was not compatible so uninstalled and installed this version.)
I am facing this issue when invoking Eclipse itself.
eclipse.buildId=4.5.0.I20150603-2000
java.version=1.7.0_80
java.vendor=Oracle Corporation
BootLoa... |
ead1f558a3160486d71d35cb3ca1cab7d40c16d12e1fd623d91fd0ee9025d188 | ['ef7bf8dda4414688961175ff5d335f5c'] | This is possible but you will have to do native implementations to access the specific platform apis. For Android you will need to use WifiManager (https://developer.android.com/reference/android/net/wifi/WifiManager) and for iOS you could possibly use NEHotspotConfiguration (https://developer.apple.com/documentation/n... | 10fb82a8fcfee78881ee5b6ddeede6c753779515f76b03421162b76c2e836aec | ['ef7bf8dda4414688961175ff5d335f5c'] | From experience I can tell you that Azure does provide a few options that would allow you to work with geospatial data.
The first is Cosmos DB (DocumentDB) and it nicely integrates with Xamarin (https://learn.microsoft.com/en-us/azure/cosmos-db/mobile-apps-with-xamarin)
The second would be Azure Search. The advantage ... |
60ae9de7752a1b160d4b71a5e86e5e8c9f8c72353f82c61b83ec398d72b01ea3 | ['ef85ce8a57014dd5be5edf32d8e3a316'] | MATLAB introduced a new way of animating lines, starting with version R2014b, called animatedLine.
Here's how you can use it to draw the vertical line in your question.
x = 0;
h = animatedline();
set(gca,'ylim',[0 10],'xlim',[-5 5],'box','on');
for y=0:0.0001:10;
addpoints(h,x,y);
drawnow update
end
Adjust the... | ac89ba4d12b2a7fca6b2820ec5e992effdfac3d2f74b885fcc46d9bb1de9d09e | ['ef85ce8a57014dd5be5edf32d8e3a316'] | You should have two files created with GUIDE. For the sake of example, let's say your's are named raimo.fig and raimo.m. Let's also say you gave your uitable the tag, 'table_1'.
If you edit the raimo.m file, you should see a line like this
% --- Executes just before analysis is made visible.
function raimo_OpeningF... |
798f8a69f84627616c48730ab5d557c047c1457bb914beb7c3cea16b53c8c3fa | ['ef893428c4ee4c2c8c11c926cf448773'] | The problem is here:
if node not in path:
# Search the paths of that new node
newpaths = find_all_paths(node, end, path)
# Append new path to paths
for newpath in newpaths:
paths.append(newpath)
if node is already in path, the old newpaths will be used. All you need is to move the for loop under the if sta... | 820cda530c68b6dcad5278c57841c7f17f374fc9a90ba8753ed5ca974469e9e3 | ['ef893428c4ee4c2c8c11c926cf448773'] | Here is a reference implementation from one of my projects. It prints dots instead of a spinner, but it is trivial to change:
import threading
import time
def indicate_wait(func):
active = threading.Lock()
def dot_printer():
while active.locked():
print('.', end='', flush=True)
... |
fbaed2468b8210db919e067a45d5af540a57e8fdbb0f40b968a1485b267a1f34 | ['ef9326d17a434611bb3c4d1b6e12b8e4'] | Let's take an example: Suppose that at the begining of the history p=q=0.5; If the system outcomes is 1, the probability to get 1 in the next step now it's not just p, but k\*p (k>1, but close to 1). The probability to get another 1, is k\*k*p, and so on. The same for 0. So, in general, if the current outcome is 'x', t... | c25e664f91be78a68042f25a2fbcb46004a1bbbea208393c56698f9f19822726 | ['ef9326d17a434611bb3c4d1b6e12b8e4'] | You are right. Actually, the given problem says that B is in the upper $circle$ and C in the bottom one. This phrase means that they are in the parameter line. One last clarification... Is there a theoreme that says that the perpendicular radius cuts a segment between 2 different perimeter points of the circle in half? |
eaac05b011620ef14f4c401f66351adec5833d3d6c38019bcff10fcf2dbf6373 | ['ef9635e8080847c4b79a0248aeb87c76'] | "In other words, mankind deserves to be punished but <PERSON> gets punished for us." No, neither <PERSON>, <PERSON>, <PERSON>, or <PERSON> taught this. Protestants taught this, but they were declared heretical in oart for this by the largest Western branch: Latin Catholicism. To combine this Calvinist view with the Rom... | 68689de819d1ea4ad33b6f44753d5445323f3fa2d38ee6297980abcb8edb757e | ['ef9635e8080847c4b79a0248aeb87c76'] | Are you sure you want ERP? Sounds more like your looking for an accounting tool. Anyways, the single best resource for ERP processes ( and tools built around them) that I know of is <PERSON> - http://en.wikipedia.org/wiki/Eliyahu_M._Goldratt . His Theory of Constraints has been great and tools built around it are well ... |
a77920c1f69a2a42687c757bc178d65f6cc1602656fa988aaa4c1548845123b4 | ['ef9a29634bec462d9faded621a13fc9a'] | Desde que empece a programar con python estuve teniendo esta problema, no puedo explicarlo bien así que pondré un programa de ejemplo (me pasa en todos los programas que hago).
ejemplo = input('te gusta python?')
if ejemplo == 'si' or 'Si' or 'sI' or 'SI':
print('a mi también!')
elif ejemplo == 'no' or 'No' or 'nO'... | 83892482318efdde73f9905d18e3ddfadab2e0b38897b0ba5ff192cf174ffc2d | ['ef9a29634bec462d9faded621a13fc9a'] | This is exactly what I'm trying to do "If user input can’t be avoided, ensure that the supplied value is valid". In my case I can't validate based on the target domain, as we do not control these. Further more, the links should work from inside emails; which means that a "GET" request is unavoidable.
I know I can imp... |
04264ffb9ba372c7bd0110322fdbbd04e87f1e85d4593061daac972ac5d74a9c | ['efa02bcd75db48ea94464275810047cc'] | I am not able to understand what you are trying to achieve
What I understood is you are selecting an option in one select bar and another one is also get opened with the same value.
Solution:- What I found is you are using the same model for both the select bar: data.singleSelect
<select name="singleSelect" ng-model="... | b3170a6560012ceb741298dc132a2e5929a13bcaab74e2c0d62123afa0bd5b6c | ['efa02bcd75db48ea94464275810047cc'] | If you will see the SQL query generated by GORM, you will find that the distinct will apply on a complete row instead of the customerName. You can enable the logs by putting
logSql = true
in datasource.groovy.
You can try this
def criteria = Order.createCriteria()
def orders = criteria.list() {
and {
eq("showAddr... |
4fb3e5ddc707fe3bb830f31493943947a7c54b555a4490c5dcb15e3973ea5a5c | ['efaa5a66ab5b4fb99b73068497804ac4'] | Yes, it is possible. As to whether it's a good idea, this is just my 2 cents...
Before the XML datatype came along I worked on a system storing XML in an NTEXT column - that wasn't pleasant, and to get any real use out of the data meant shredding some of that data out into relational form.
OK, the XML datatype now make... | ff7cbd83a3beebb50bdae52c75434e0caa9998bc572fd866de17419ec2118ae4 | ['efaa5a66ab5b4fb99b73068497804ac4'] | Based on my understanding of the question, assuming you have an NVARCHAR column that you are looking at, you could try this example:
DECLARE @Data TABLE (Field1 NVARCHAR(100))
INSERT @Data VALUES ('ABC')
INSERT @Data VALUES ('123')
INSERT @Data VALUES (N'Value with 化ける unicode chars in')
SELECT * FROM @Data WHERE Fiel... |
461d9fd3f73d4551c1fa35be1ba60eef77cd82b841de6d28500b65b423a9f5cf | ['efaa82bab0ad45b9998c51b064c5d494'] | OK. We have table like this
CREATE Table MyTbl(id INT PRIMARY KEY IDENTITY(1,1), Code INT, Yr INT, Rate INT)
And we would like to calculate cumulative value by Code.
So we can use query like this:
1) recursion (requires more resources, but outputs the result as in the example)
with cte as
(SELECT *, ROW_NUMBER()OVER(PA... | 67b2453bc7a3c222e52074c0d177e35ef0d2fd1f046267405e1129cfab2ce7ae | ['efaa82bab0ad45b9998c51b064c5d494'] | I have a very big html table generated like this:
function getSpeciesRowHtml(row_data) {
var html = "";
html = html + '<tr>' +
'<td>' + row_data.id + '<input type="hidden" class="species_table_IDs" value="' + row_data.id + '"></td>' +
'<td>' + row_data.name + '</td>' +
'<td>' + row_data.name_lat + '... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.