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 |
|---|---|---|---|---|---|
b39a866627bbcfc170cb97b8416e533802bc4c2509fe26aaf3a0d007babcac68 | ['fdf532a9cd504423be8198372b15ec01'] | I have implemented Singly linked list in my code and i have to sort the list.
But my code does not work, it stucks in an infinite loop. I have to compare nodes according to their id in ascending order.
I cant use arrays.
This is my SLL node implementation.
class SLLNode implements Comparable<SLLNode> {
protected int id;
protected int plata;
protected SLLNode succ;
public SLLNode(int id,int plata, SLLNode succ) {
this.id = id;
this.plata=plata;
this.succ = succ;
}
@Override
public int compareTo(SLLNode o) {
return o.id - this.id;
}
}
public static void sort(SLL lista){
SLLNode current;
boolean check = true;
while(check) {
current = lista.getFirst();
check = false;
while(current.succ != null)
{
if(current.compareTo(current.succ) > 0)
{
SLLNode temp = current;
current=current.succ;
current.succ=temp;
check = true;
}
current = current.succ;
}
}
}
| a4228cfc6d68dcc9b7248aaf1829e98811bd0ef2c90758f9babf30a9662e46e1 | ['fdf532a9cd504423be8198372b15ec01'] | I am trying to solve a problem that should delete occurrence of sublist in a given list.
For example:Input:
List: a b c d d b c a e a e
Sublist: b c
Output: a d d a e a e
Can anyone give me some advice or some tips how can i do it. My code gives null pointer exception.
public static void deleteSublist(DLL<Character> lista1, DLL<Character> lista2){
DLL<Character> finalList = new DLL<Character>();
DLLNode<Character> node1 = lista1.getFirst();
DLLNode<Character> temp = lista1.getFirst();
DLLNode<Character> node2 = lista2.getFirst();
int len1 = lista1.length();
int len2 = lista2.length();
int count = 0;
boolean check = false;
while(node1 != null){
check = false;
node2 = lista2.getFirst();
temp = node1;
while(temp != null){
if(!temp.element.equals(node2.element)){
check = true; // no sublist
break;
}
temp = temp.succ;
node2 = node2.succ;
}
if(!check){ //we have sublist
//Here I should delete sublist
}
node1 = node1.succ;
}
}
|
11c97263972bc2ac9a8b87476402f83b0b11b7da01207ccee031775a6e7ac938 | ['fe0da0cce2c2454b81c86d084d82d75d'] | @JRE I do know that the AC input coupling removes the DC component whereas the DC coupling doesn't , but I don't understand what the triggering has to do with the DC component being present or not ,we can see some videos on YouTube ( ex : https://www.youtube.com/watch?v=OFGm-Pel4Hg#t=5m40s ) ,when he actually enables the DC trigger coupling the wave form starts to slide in diagonal fashion across the screen , why is that ? | 2ad24d90010cf9ec4b34844b913d3f85fc34d9fce220a372eda25ce725e3e8a4 | ['fe0da0cce2c2454b81c86d084d82d75d'] | In his book "Finite State Machines in Hardware: Theory and Design (with VHDL and SystemVerilog)" the author said : 'The optional output register can be used to obtain a fully pipelined implementation with better time and higher clock speed predictability ' .
Where the aforementioned output register is indicated in the diagram below :
Question : How does this additional register permit using higher clock speeds ?
|
56db0600a13c7317deb088c48c272040eec22c43d93617e8b25aad0342f51a1b | ['fe1faed376244e8bbdbb00c13b675ba6'] | public static double maxProfit(double [] stockPrices)
{
double initIndex = 0, finalIndex = 0;
double tempProfit = list[1] - list[0];
double maxSum = tempProfit;
double maxEndPoint = tempProfit;
for(int i = 1 ;i<list.length;i++)
{
tempProfit = list[ i ] - list[i - 1];;
if(maxEndPoint < 0)
{
maxEndPoint = tempProfit;
initIndex = i;
}
else
{
maxEndPoint += tempProfit;
}
if(maxSum <= maxEndPoint)
{
maxSum = maxEndPoint ;
finalIndex = i;
}
}
System.out.println(initIndex + " " + finalIndex);
return maxSum;
}
Here is my solution. modifies the maximum sub-sequence algorithm. Solves the problem in O(n). I think it cannot be done faster.
| 364e713f2bcd60e39d6eac7e828937d53d274c34f75152853d71b2ebce83bf02 | ['fe1faed376244e8bbdbb00c13b675ba6'] | I know that in RSA algorithm a Public key is used to ecrypt data which can be decrypted using only the private key.
When a digital certificate is signed the hash of the certificate is signed using the private key of the RootCA and during validation the public key is used to verify the hash. In this case signing means encrypting. Also, sha1RSA algorithm is one of the algos used for signing a certificate.
Thus private key used for Encryption and public key used for Decrytion of the Hash ?
Is this possible using RSA or I understood wrong?
|
c550c204aa7619b62adbd8751965bfadbb3943be5187d104c2894830fa3b4aba | ['fe224fc6d8ad4238b182ddf240238d36'] | I'm trying to get matrix product of two tensors, where one of the tensor should be transposed before it multiplied (At*B).
So far what I've found in eigen documentation is matrix product without any transposed and with both matrix transposed.
I'm looking for a way to either directly contracting two tensor with one of the tensor is transposed, or either by transposing one tensor before contracting it.
| 233cc720fa7654ab6cb1d2ca285f3e8611c5f235213d8ee989611e3a702018ed | ['fe224fc6d8ad4238b182ddf240238d36'] | I figured it out, transpose effect can be done using shuffle method.
Eigen<IP_ADDRESS>Tensor<int, 2> m(3, 5);
m.setValues(
{
{1, 2, 3, 4, 5},
{6, 7, 8, 9, 10},
{11, 12, 13, 14, 15}
});
Eigen<IP_ADDRESS>array<int, 2> shuffling({1, 0});
Eigen<IP_ADDRESS>Tensor<int, 2> transposed = m.shuffle(shuffling);
Eigen<IP_ADDRESS>Tensor<int, 2> original = transposed.shuffle(shuffling);
|
369ccd84d58754f95ac65908fec1e43b6f3605dd303a2d8e0a461f50410ea396 | ['fe388cc6ee274068828e6e8b2074aff6'] | I have 4 tables joined together and this is the result of that query,
Name Year
Erin 2015
<PERSON> NULL
<PERSON> NULL
<PERSON> 2010
<PERSON> 2011
The two columns are from two different tables. They both have an ID I can match. How do I narrow it down to this result,
Name Year
<PERSON> 2015
<PERSON> NULL
Erin NULL
When Year = 2015, I want all of <PERSON>'s.
SELECT Name
CASE WHEN Year = 2015 THEN
......
END
Rest of the columns I've selected
FROM Table
Joined with 4 other tables
WHERE
Stuff
What can I put in between the CASE statement.
| 2de6682ff035bf6653532a3ccc1f72fc41379c5149d36d3524f4edbcfc00f55f | ['fe388cc6ee274068828e6e8b2074aff6'] | I have this table with Firm & Year column, and Answer column is what I want.
I need a 1 for each starting year of the firm, then 1 after every 3 years for that same firm. Is this possible with just formulas in Excel?
Firm Year Answer
Nokia 2007 1
Nokia 2008 0
Nokia 2009 0
Nokia 2010 0
Nokia 2011 1
Nokia 2012 0
Nokia 2013 0
Nokia 2014 0
Nokia 2015 1
Apple 2012 1
Apple 2013 0
Apple 2014 0
Apple 2015 0
Samsung 2009 1
Samsung 2010 0
Samsung 2011 0
Samsung 2012 0
Samsung 2013 1
Samsung 2014 0
Samsung 2015 0
Samsung 2016 0
Samsung 2017 1
|
232ce05b448cd66f47bfa50414552180d61feb7fcf3150bc5d6fb80677e1ef41 | ['fe397f5133074418b47587cb409ce32c'] | I'm trying to find a way to translate a dynamic JSON object into a valid HTML webpage. The idea is to be able to push up what did needs to be displayed from an IoT device into the cloud and have the user be able to input and save the configuration.
The json would look something like this
{
"loginConfiguration": {
"username": "string",
"password": "string",
"hostname": "string"
},
"systemConfiguration": {
"numberOfEvents": "int"
}
}
And the ideal output would be 3 text boxes with string inputs under a section called loginConfiguration and then another section with 1 integer input. But please note that the json object would differ and should be able to accommodate for that.
I'm open to technology stacks, but it seems to be the most possible with javascript/jQuery. If you have an alternative like Dart that is made for this then please show how this could be accomplished.
| f1f299810b76244297d2db18fa1494740f09dfc516cd029a0f3613687c11174e | ['fe397f5133074418b47587cb409ce32c'] | You have a few different solutions here. First off for the sake of completion let's create a simple little ViewModel with a backing model.
public class Foo : ReactiveObject
{
private Bar selectedItem;
public Bar SelectedItem
{
get => selectedItem;
set => this.RaiseAndSetIfChanged(ref selectedItem, value);
}
public ReactiveList<Bar> List { get; }
public Foo()
{
List = new ReactiveList<Bar>();
List.ChangeTrackingEnabled = true;
List.ItemChanged
.ObserveOn(RxApp.TaskpoolScheduler)
.Subscribe(_ => { SelectedItem = List.FirstOrDefault(x => x.IsSelected); });
}
}
public class Bar : ReactiveObject
{
private bool isSelected;
public bool IsSelected
{
get => isSelected;
set => this.RaiseAndSetIfChanged(ref isSelected, value);
}
}
A hacky fix (which I wouldn't recommend) is to change ObserveOn to SubscribeOn. See answer here for a better explanation: https://stackoverflow.com/a/28645035/5622895
The recommendation I'd give is to import reactiveui-testing into your unit tests. At that point you can override the schedulers with an ImmediateScheduler, this will force everything to schedule immediately and on a single thread
[TestMethod]
public void TestMethod1()
{
using (TestUtils.WithScheduler(ImmediateScheduler.Instance))
{
var bar = new Bar();
var foo = new Foo();
foo.List.Add(bar);
bar.IsSelected = true;
Assert.AreEqual(bar, foo.SelectedItem);
}
}
|
c742982935a3c565049d84b054824a4580c147ea936eba99fb153f180a9941e2 | ['fe39fa927b9a4fe39baa0d3e5bebd44b'] | I am using map coordinates as a part of website logo. (2.378628, 48.853373).
What I want to do, is count both numbers from 0.000000 so they reach given points during the same time (3-5 seconds), incrementing by 0.000001. How is that possible? This crashes my computer, and setInterval does sth every ms, which is not enough.
while (i < 48.853373) {
i = i + 0.000001;
$('.js-center-lat').text(i);
}
| 4b4d15fb7c648122559ce5fa91bf57203f0a83bb6a951e93389f65818dadc001 | ['fe39fa927b9a4fe39baa0d3e5bebd44b'] | I am working on a video slider, in which following video starts just before the previous ends - in a loop. At the same time i need to update a progress bar of each one. The code below works, but Chrome is burning my macbook. Am I doing sth wrong? How can I improve the performance? There are free slides, and videos has no loop="true" attribute. I just start the slider by playing the first video.
videos.on('timeupdate', function () {
var progress = this.currentTime / this.duration * 100 + '%';
$(this).closest('.slide').find('.js-video-progress').width(progress);
if ((this.currentTime * 1000 + 1000) > this.duration * 1000) {
if ($(this).closest('.slide').next('.slide').length) {
$(this).closest('.slide').next('.slide').addClass('is-swiped').find('video')[0].play();
} else {
$('.slide').eq(0).addClass('is-swiped').find('video')[0].play();
}
}
});
|
facd07a015cf140ef3c63d1fbbd3939c0ef123281e15a484e69f39fefa58a82b | ['fe45a372ff2846a5b94c8e43d6be7c94'] | I did bother to read the linked article (it didn't help) even before posting the question, which is whether he actually _has_ a Southern accent or is it RP jumbled up with Southern judging by the few lines he manages to say in the trailer :) (timestamps given) I'm terribly sorry if I misled you by saying "he" - I obviously meant the character. I thought that by saying he retained some British features I made it clear that I do realise he (<PERSON>, not the character) is British. | 62ab59968d3c66c76dabf25820cdfe160b1d7fa17fe2e1f8ffbe9b0e4f6d83f4 | ['fe45a372ff2846a5b94c8e43d6be7c94'] | I am unable to login to Ubuntu in the GUI interface using my username. It keeps returning to the login page once I enter the password. I can however login as a guest.
I had just manually installed Ubuntu 14.10 with a 500mb partition for /boot, a 2gb partition for swap, a 30gb partition for /, 50mb for EFI as a logical partition, 100gb for /home and 3 other logical partitions of 100 GB each which were given /d, /e and /f mount points respectively. If otherwise unspecified, all partitions were primary.
Device for installing Ubuntu was the entire hard disk.
I had to specify that at boot up that the EFI was to be turned off.
I could login normally after that. I then turned on the options for automatically mount for each of the 100gb hard disk partitions. I restarted my laptop after that and now I am unable to login.
Please help!
|
2e196757e45d7b9630a27e786e368fb60e729b221b2e8214fa8e9fd7f2632983 | ['fe59c87509a241cfb9611632971de145'] | <PERSON>: "Mirror image" is not a quality of any universe, it is a quality of the relationship between two universes. - When two universes are related in this way, which one is the "mirror image universe" depends on which one you're standing in. If you're not currently in any universe then the term remains undefined. | b91ab6bd588643f1395fad9c28b65fdb701fb2bd0cbce02c2f5c7fa184a618eb | ['fe59c87509a241cfb9611632971de145'] | Here are a couple of random suggestions. See if any of these are helpful.
Make the prompt more explicit to the user, maybe: 'enter rock or paper or scissors or quit: '
It is considered good practice to not use 'using namespace std:=;', instead prefix all the std symbols with std::. So std<IP_ADDRESS>cout, std:cin, std<IP_ADDRESS><IP_ADDRESS>. So std::cout, std:cin, std::end, etc.. For an initial and small project 'using namespace std;' seems okay.
Have the compiler report warnings. For clang these are some good flags: '-Wall -Wextra -Weverything'
out_s should be declared as a char. so 'char outp_s = NULL;'
|
11977b7255606cac89f97f59df68de28672224fd15847c57e7641532b0310ec3 | ['fe5f6606c0924459b3a65be88fd0dedf'] | How do I pass the name of an object's attribute to a function? For example, I tried:
def foo(object, attribute):
output = str(object.attribute)
print(output)
class Fruit:
def __init__(self, color):
self.color = color
apple = Fruit("red")
foo(apple, color)
but the above doesn't work because Python thinks that, in foo(apple, color), the color refers to an unitialized variable.
| 194035445640a5045141143bc9399c4a0a25d0d54d536fd6fe2d72b31ceac7ce | ['fe5f6606c0924459b3a65be88fd0dedf'] | I know that an easy way to create a NxN array full of zeroes in Python is with:
[[0]*N for x in range(N)]
However, let's suppose I want to create the array by filling it with random numbers:
[[random.random()]*N for x in range(N)]
This doesn't work because each random number that is created is then replicated N times, so my array doesn't have NxN unique random numbers.
Is there a way of doing this in a single line, without using for loops?
|
4b827ba5fd36d0ed7630fc2e34b2b695ae607b3cc6eaf326a524864aa700c5d2 | ['fe5fa9dba0204f4bb64cfdd638e52e95'] | Hi <PERSON>
We tested w diff themes, and in every respect, and never got it to work. Tried it on new install; same probs.
We have stepped away from Civi and replaced it on all but one client site, and will be replacing it on the last one this year. As longterm users of Civi we are keenly disappointed with this and other bugs, and how unresponsive and un-useful the forums have become. We have to solve problems, not install them and watch them plague our clients. Perhaps Civi is indifferent to Joomla now? Dunno | 24f2c82bb4a279266cfc5b66f8c1ded7fd9185922e2ee5780af0f590a76e1e11 | ['fe5fa9dba0204f4bb64cfdd638e52e95'] | I have an application running under Windows XP, and I'm accessing the Processor and Memory performance counters. When I try to run the same code and access them on XP Embedded, the counters don't seem to be present. They are present in the image - I can see them all in perfmon. What's the missing piece here?
|
7400729fe78f0ae39653b5a228e661f9c29834f3827eb171ccf08a1fdec07f3f | ['fe8b59f119264fa691350402168aaf77'] | I'm trying to create a docker image with development tools for Arduino, but it fails to communicate to the serial port.
This is the Dockerfile:
FROM ubuntu:16.04
RUN echo "Acquire<IP_ADDRESS>http<IP_ADDRESS>Proxy \"http://<IP_ADDRESS>:3142\";" >> /etc/apt/apt.conf.d/10aptprox
RUN apt-get update && apt-get install -y --no-install-recommends \
sudo \
make \
build-essential \
&& rm -r /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y --no-install-recommends \
cmake \
picocom \
gcc-avr \
avr-libc \
avrdude \
&& rm -r /var/lib/apt/lists/*
# Configure the user
ARG uid
RUN useradd -M --uid $uid --user-group user --groups uucp,dialout \
&& echo 'user ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers.d/user \
&& echo 'Defaults exempt_group+=${user}' >> /etc/sudoers.d/user \
&& chmod a=r,o= /etc/sudoers.d/user
USER user
(The cache is there so it doesn't download the packages on every iteration of the Dockerfile ;-) ).
This is how I build it:
docker build -t ard_cont --build-arg uid=$(id -u) .
Launch it:
docker run --rm -it -u $(id -u):$(id -g) --device /dev/ttyUSB0 ardev bash
And, when I try to get something out:
user@866782740b3a:/$ echo "Hello world" >> /dev/ttyUSB0
bash: /dev/ttyUSB0: Permission denied
user@866782740b3a:/$ sudo su
root@866782740b3a:/# echo "Hello world" >> /dev/ttyUSB0
root@866782740b3a:/#
So, I don't know how to configure the user so it can access the device.
| fbad59c0b7cebd673fbfe35074cab2c212d32844330c9886ece758a9d2076fb6 | ['fe8b59f119264fa691350402168aaf77'] | I'm new to android programming, and in the app I'm coding there are parts that require get data from shared preferences, which is set in a preference activity.
Now, the preference activity is coded mostly in XML, including the pref keys, and the app get this data in Java code. So far, so good.
The problem comes with the typos, let's say I write "Settings1" in XML, and "settings1" in java, it's likely that I'll burn every idea debugging but I won't see that. To avoid that I save the strings in a java class, and a XML resources file with the same strings. But still the same problem.
<resources>
<string name="SETTINGS1">Settings1</string>
</resources>
class Keys {
public static final String SETTINGS1 = "Settings1";
}
<SwitchPreference
android:key="@string/SETTINGS1" />
if(sharedPref.getBoolean(Keys.SETTINGS1, true)){ doSomething(); }
But I wanted to write the key value just once, so I came up with two possible solutions.
First one:
<resources>
<string name="SETTINGS1">Settings1</string>
</resources>
class Keys {
public static final String SETTINGS1 = resources.getString(R.string.SETTINGS1);
}
<SwitchPreference
android:key="@string/SETTINGS1" />
if(sharedPref.getBoolean(Keys.SETTINGS1, true)){ doSomething(); }
Or:
<resources>
<string name="SETTINGS1">Settings1</string>
</resources>
<SwitchPreference
android:key="@string/SETTINGS1" />
if(sharedPref.getBoolean(getString(R.string.SETTINGS1, true)){ doSomething(); }
Which one is better?? I also don't want to introduce too much overhead to the app, so if none of them is good then I won't use them.
|
703122e71f2b9c08bd838498b3e71499e0fd7b89f4540df69eb5fd25452c9dcf | ['fe8c3778b9114b91b5eb576b33c01a86'] | I'm trying to display the "Display_name" of an user in the menu. So I created a menu item called "#profile_name#".
It's working when i'm logged, but it displays "Untitled" when i'm not logged. Do you know why ?
function give_profile_name(){
$user=wp_get_current_user();
$name=$user->display_name;
return $name;
}
add_shortcode('profile_name', 'give_profile_name');
add_filter( 'wp_nav_menu_objects', 'my_dynamic_menu_items' );
function my_dynamic_menu_items( $menu_items ) {
foreach ( $menu_items as $menu_item ) {
if ( '#profile_name#' == $menu_item->title ) {
global $shortcode_tags;
if ( isset( $shortcode_tags['profile_name'] ) ) {
// Or do_shortcode(), if you must.
$menu_item->title = call_user_func( $shortcode_tags['profile_name'] );
}
}
}
return $menu_items;
}
Thank you
| 40cd34de5a46dd5dad89cb9b919ba98e3581a2f6f1ded56c0c41193bbe92b204 | ['fe8c3778b9114b91b5eb576b33c01a86'] | My issue finally solved after several hours, without requiring to reinstall OS or go back to a previous restore point.
The sequence of commands which did it are given below. I ran them in Windows PowerShell (right click->Run as administrator)
Enable SMBv1 on the SMB server:
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" SMB1 -Type DWORD -Value 1 -Force
Enable SMBv2 and SMBv3 on the SMB server:
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" SMB2 -Type DWORD -Value 1 -Force
Restart computer
Enable SMBv1 on the SMB client:
a) sc.exe config lanmanworkstation depend= bowser/mrxsmb10/mrxsmb20/nsi
b) sc.exe config mrxsmb10 start= auto
Enable SMBv2 and SMBv3 on the SMB client:
a) sc.exe config lanmanworkstation depend= bowser/mrxsmb10/mrxsmb20/nsi
b) sc.exe config mrxsmb20 start= auto
Restart computer
All the above commands are given in the Microsoft KB 2696547 article: https://support.microsoft.com/en-ie/help/2696547/how-to-enable-and-disable-smbv1-smbv2-and-smbv3-in-windows-and-windows-server. I had tried these commands earlier too, but missed to run the commands 4 and 5 above for the SMB client. Now after running all the commands, the issue is resolved!
Hope someone finds it helpful, and saves a few hours of time and endless frustration.
|
e303233aeb2992e9aed144b4ed33404552d2c84cfb362fde16d8307e54c0bcd1 | ['fe9d5892ad8e49d7908bd18472619495'] | I just find the solution, it's in the CameraConnectionFragment class :
protected static Size chooseOptimalSize(final Size[] choices, final int width, final int height) {
final int minSize = Math.max(Math.min(width, height), MINIMUM_PREVIEW_SIZE);
final Size desiredSize = new Size(1280, 720);
protected static Size chooseOptimalSize(final Size[] choices, final int width, final int height) {
final int minSize = Math.max(Math.min(width, height), MINIMUM_PREVIEW_SIZE);
final Size desiredSize = new Size(1280, 720);
// Collect the supported resolutions that are at least as big as the preview Surface
boolean exactSizeFound = false;
final List<Size> bigEnough = new ArrayList<Size>();
final List<Size> tooSmall = new ArrayList<Size>();
for (final Size option : choices) {
if (option.equals(desiredSize)) {
// Set the size but don't return yet so that remaining sizes will still be logged.
exactSizeFound = true;
}
if (option.getHeight() >= minSize && option.getWidth() >= minSize) {
bigEnough.add(option);
} else {
tooSmall.add(option);
}
}
just replace 1280, 720 by what we want.
| 558a4ebe3417caea2819e6b01119ca1be9450ca1b97b1b169126b8c5a8bb7fa0 | ['fe9d5892ad8e49d7908bd18472619495'] | On the tensorflow lite example object detection, the camera don't take all the screen but just a part.
I tried to find some constant in CameraActivity, CameraConnectionFragment and Size classes but no results.
So I just want a way to put the camera in all the screen or just an explanation.
Thanks you.
|
50a2efdb8c7d57f5994b1d3527859f6da395716aaacdc9cec7dd38a483e883b4 | ['fea0a2051e1542c6beae9c0b5ad717af'] | You never declared one as a variable...
If you want to use it try adding in.
int one;
somewhere. I'm not saying anything else is right. but this is why you are getting an error.
read more on your issue. you need to store the user input as one in order to compare. you have a reference to nowhere.
| 176f468a0435c1afda739684bd092696e101a1268961f2c704560ca04bd6c4b3 | ['fea0a2051e1542c6beae9c0b5ad717af'] | I've been looking to make a calendar that will show events like the following picture below in android. Can this be done with CalendarView? What is the best way to go about this?
I hope this isn't a duplicate, i looked through stackoverflow for a similar answer but there was no good starting point for calendarViews. Thank you for looking.
|
de7e8b2f3f9cd0079ee87e91d935779e8aee994aef55d3a3419af4d0645c33e1 | ['fea5c56145154d89ad3f294587a9d236'] | It looks like you are missing the declaration of the item variable in the for of loop inside renderFilter method:
renderFilter = () => {
const items = [];
for (let item of this.state.newsCats) {
items.push(
<TouchableOpacity key={item.module_cat_id} onPress={()=>this.FilterRequest(item.module_cat_id)}><Text style={styles.filterCat}>{item.module_cat} {item.module_cat_id}</Text></TouchableOpacity>
);
}
return items;
}
| d6fe81ad21e206f498cb0e9d75fcdafc0536220274374254ffd4d9bd7fb3d3a7 | ['fea5c56145154d89ad3f294587a9d236'] | The filter method returns an array. If you want to use that method, you will have to select the first element of the returned array in order to have the same behaviour that lodash find method has:
const current = items.filter(x => x.id === item.id)[0];
That being said, it is simpler to use the find method of array:
const current = items.find(x => x.id === item.id);
If you opt for this second option, have in mind that find is not supported in Internet Explorer.
|
bbb947f88543c9509d9c72ae1d350791d52d07b098cf4261f6cc7a3152f5d5e9 | ['feb5bec0b6d14df8aa02309777b8de4f'] | The standard specifies the second argument of static_assert to be a string literal, so no chance for computation there as far as I can see (except for preprocessor macros).
A compiler could extend the standard and allow const-expressions of approporiate type in this position, but I have no idea if any compiler does.
| 69d193ac111309330d1d3979aff1102a6154e562ea5b6b47a287a24857929197 | ['feb5bec0b6d14df8aa02309777b8de4f'] | First the conceptual part:
If you use the heap insertion method with the element that decreased it's value as the starting point for insertion instead of starting at the back of the collection everything just works.
I haven't done that in C++ yet, but std<IP_ADDRESS>push_heap looks fine for that purpose.
|
a0658820e263ed6c0e58939b0631a4aa8c21430bd2fdcc8b296ab4a70fa268b0 | ['fecd3cee5212485f8d69bde9b0667b98'] | Definitely a valid interpretation that I didn't see the first time. I don't know much about WoW, so I did a bit of research and as far as I can tell there's a linear reward structure where you just play more to earn more currency so you can buy the items, but I could be wrong. Would need to hear from OP either way I guess? | eb8b3a5429be8b5e242274458d5127f58a2268dbec92f9d3535e873147d71c04 | ['fecd3cee5212485f8d69bde9b0667b98'] | This answer was my first thought on the matter based on the title, but the second paragraph of the question makes it clear that time is not the true gating mechanism, here. The OP references "time" only assuming that the player is earning the required currency to purchase the item to make an attempt at this "Vision" thing. While this is a good answer for the title, I don't think it answers the question as asked. |
99cf3a7f4d70f80205b9f3d52eec448c8052eb1aca76ac36093c63d406c29076 | ['fed8b3eca25d45358e602ea20e00c268'] | The share count on the left bottom of image is the total share count of story and I placed there because that was near to sharing button so that this will make more sense, but I have a confusion, that user assume it as a share count of only image.
Is this relevant way to show whole story share count?
There is also a confusion in my mind that the text written on right bottom of image is the caption separately for image, then how the other element can represent whole article.
| 5c6994d62f42e7d6acf108726044fe44b81da9a098e42f4815f057327c58c9c9 | ['fed8b3eca25d45358e602ea20e00c268'] | Keep it in the tabular form but you can combine the brand name, address and opening hours as it will give you more space to expand horizontally & you can show the data without truncating. just differentiate brand name, address & opening hours by font styling. instead of writing excellent or bad use icon which will save more space.
Thank you!
|
b010ebd065d311f81f61d4d0d5f659a254d2982628995a1dbe48840dd5b6bd77 | ['fef6157a86934da5aaa37d06eb1ab6c9'] | I have solved the problem by replacing the "rs2.movenext" to "rs.movenext" and you can see the rs recordset value in the comment above and i just placed another piece of code "rs2.close"
Do Until rs.EOF
rs3.Open "select * from studentexamdetail", con, 1, 3
rs3.AddNew
rs3!AdmnNo = admno.Caption
rs3!semester = semester.Caption
rs3!Subjectcode = rs.Fields("Subjectcode")
rs3!Regular_Arrear = "Regular"
rs3!Fee = rs.Fields("Fee")
rs3.Update
rs3.Close
rs.MoveNext
Loop
MsgBox "Record Saved!"
Thanks God !
| 4fc560782c7e3fc8f34f9602c9d69cfc92042a44caaa750831f0a7f58854ee5d | ['fef6157a86934da5aaa37d06eb1ab6c9'] | I am using Vb6 and Access 2007. I am adding records to the access table name "subjectcode" from vb6. The details of subjectcode table are below.
Subjectcode table : Heading(Degree,Branch,Year1,Year2,Semester,Subjectcode,Subjectname,Theory_Practical, Major_Allied_Elective) values (Bsc,computerscience,2001,2004,1,RACS1,Vb6 programming,Theory,Major)
Note :The primary key in the above table is Degree,Branch,Year1,Year2,Semester,Subjectcode
And the code i used to add entry to the access table from vb6 are given below :
If degree = "" Or branch1 = "" Or year1 = "" Or year2 = "" Or semester = "" Or subcode.Text = "" Or subname.Text = "" Or theory.Text = "" Or major.Text = "" Then
MsgBox "Fields can't be empty ! All are mandatory!"
Else
rs.Open "select * from subjectcode", con, 1, 3
rs.AddNew
rs!degree = degree
rs!branch = branch1
rs!year1 = year1
rs!year2 = year2
rs!semester = semester
rs!Subjectcode = subcode.Text
rs!Subjectname = subname.Text
rs!Theory_Practical = theory.Text
rs!Major_Allied_Elective = major.Text
rs.Update
MsgBox "Successfully Saved !", vbOKOnly + vbInformation, "info"
rs.Close
End If
And the screenshot of that Add form of vb6 is here: http://tinypic.com/r/w7c7if/6
The record is added when the same entry is not exist. And if the record is already exist it should say "Record Already exists" and i don't know how to do that. Could you guys give me idea please.
|
b7930132ccb7dea1e54ce004f7a1e9e1c397230f394903b2a01b48b1e563a6ef | ['ff0331a9e763402593d0e62cc52cec8f'] | I have created a java gui which takes values from the user send it to python file for processing and then displays the output from the python file onto the java gui. This is working perfectly on eclipse but when i exported it into a jar file the output is not displayed. I've seen a bunch of other questions like this but they do not give a solution that would help me.
This is how i connect my python script to java.
public void connection(String name)
{
ProcessBuilder pb= new ProcessBuilder("python","recomold.py","--movie_name",name);
///System.out.println("running file");
Process process = null;
try {
process = pb.start();
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
int err = 0;
try {
err = process.waitFor();
} catch (InterruptedException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
// System.out.println("any errors?"+(err==0 ? "no" : "yes"));
/* try {
System.out.println("python output "+ output(process.getInputStream()));
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}*/
try {
matches.setText(output(process.getInputStream()));
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
private String output(InputStream inputStream) throws IOException {
StringBuilder sb = new StringBuilder();
BufferedReader br = null;
try{
br= new BufferedReader(new InputStreamReader(inputStream));
String line = null;
while((line=br.readLine())!=null)
{
sb.append(line+"\n");
//descp.setText("<html><br/><html>");
//sb.append("\n");
}
}
finally
{
br.close();
}
return sb.toString();
}
| ceb25e908d29b558dac6201ef1c5a56cfcd7fb8b065232ee6c097a306a56e6e8 | ['ff0331a9e763402593d0e62cc52cec8f'] | I was just trying to create a bot that uploads a tweet after a time interval (not necessarily regular). However, after a certain amount of tweets my app gets limited and restricted by twitter. Is there a work around for this?
The max number of tweets I've been able to send has been 30. I even tried using sleep() with random time limits but it still doesn't work.
import tweepy
import random
import time
consumerKey=''
consumerSecret=''
accessToken=''
accessTokenSec=''
def OAuth():
try:
auth=tweepy.OAuthHandler(consumerKey,consumerSecret)
auth.set_access_token(accessToken,accessTokenSec)
return auth
except Exception as e:
return None
oauth=OAuth()
api=tweepy.API(oauth,wait_on_rate_limit=True)
tweets=['i love roses','7 is my favourite number', 'Studies are hard','Guess how many donuts I just ate','A cat ran over my foot']
for i in range(40):
num2=random.randint(0,4)
randtime=random.randint(60,120)
api.update_with_media(imglink,+tweets[num2])
print("status uploaded")
time.sleep(randtime)
|
1b029a7bdaa4eefde1d051b86b41308d9674f76c1653bdfb5241b22285f662e1 | ['ff083c4b358b41bba5f72314a35e8a84'] | I'm a novice C# dev and I'm writing a database app the performs updates on two different tables and inserts on another two tables and each process is running on it's own separate thread. So I have two threads handling inserts on two different tables and two threads handling updates on two different tables. Each process is updating and inserting approximately 4 or 5 times per second so I don't close the connection until the complete session is over then I close the entire app. I wanted to know if I should be closing the connection after each insert and update even though I'm preforming these operations so frequently. 2nd, should I have each thread running on it's own connection and command object.
By the way I'm writing the app in C# and the database is MySQL. Also, as of now I'm using one connection and command object for all four threads. I keep getting an error message saying "There is already an open DataReader associated with this connection that must be closed first", that's why I'm asking if I should be using multiple connection and command objects.
Thanks
-Donld
| a7a3ee91599cf727a801aa1b77ef2a71b64ea9526bf0f3f49721028dc13a3cc0 | ['ff083c4b358b41bba5f72314a35e8a84'] | I have two domains, both of which are wildcards. Both use https only eg.
*.example.something.com
*.example.com
The issue is that nginx seems to always present the default certificate (example.something.com), which is not valid, when I go to https://t12345.example.com.
My current nginx.conf file has the following entries:
server {
listen 443 default_server;
server_name example.something.com;
ssl on;
ssl_certificate "/etc/nginx/star.example.something.com.crt";
ssl_certificate_key "/etc/nginx/star.example.something.com.key";
}
server {
listen 443 ssl;
server_name example.com;
ssl on;
ssl_certificate "/etc/nginx/star.example.com.crt";
ssl_certificate_key "/etc/nginx/star.example.com.key";
}
No errors are reported by nginx and the certificates, which are both valid wildcard certificates are present.
Any ideas why it doesn't pick up the second certificate?
|
09514892e0463f0dfe65b1b605ff1c41781c04de31fbb7d0b91d44921b114ff2 | ['ff0c9627f5614aa69dca13779725cbd2'] | I am working with an ASP repeater to get the elements from a Sitecore multi-list field (see code below). When the form is submitted, I can't pull the value of the selected option. Trying to add an ID and runat="server" to the element breaks the code because the repeater also has runat="server".
I'm very new to ASP, but it seems there has to be an option to pull the value of a selected field in a form.
This is the code:
<asp:Repeater ID="rptSubjectSelect" runat="server" OnItemDataBound="rptSubject_ItemDataBound">
<HeaderTemplate>
<select data-id="select" class="dropdown-component--select">
</HeaderTemplate>
<ItemTemplate>
<option value="<%# ((Sitecore.Data.Items.Item)Container.DataItem)["TextSubject"].ToString() %>"><%# ((Sitecore.Data.Items.Item)Container.DataItem)["TextSubject"].ToString() %></option>
</ItemTemplate>
<FooterTemplate>
</select>
</FooterTemplate>
</asp:Repeater>
| 2b9346aec2e9812b1c00b2e0988e7ac3202e40c8ed1cd2bb8f9e5c9c7218918a | ['ff0c9627f5614aa69dca13779725cbd2'] | You never sent the request. You're missing request.send(). You then listen for the load event, when you've gotten a response.
Here's an edited version of your code. I assumed that you want to loop through all the types of devices and count them.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div id="fullscreen">
<div class="fullscreen-content">
<div id="centered">
<h1>Battlefield 4 Stats Tracker</h1>
<input id="username" name="username" placeholder="PSN Username">
<button id="submit">Submit</button>
<p id="response">
Response goes here.
</p>
</div>
</div>
</div>
<script>
function reqListener () {
//THIS HAPPENS AFTER THE REQUEST HAS BEEN LOADED.
var obj = JSON.parse(this.responseText);
var counter = 0;
for(var k in obj) {
var o = obj[k];
counter += o.count;
}
document.getElementById("response").innerHTML = counter;
}
var request = new XMLHttpRequest();
request.addEventListener("load", reqListener);
request.open("GET", "http://api.bf4stats.com/api/onlinePlayers");
request.send();
</script>
</body>
</html>
You may want to consider other events such as a failed attempt to load the request, etc. Here's more info: https://developer.mozilla.org/en/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest
|
eeab5e8ae7bc814277cf766921049b839b3f4f9a84642062307b61dbe7d676ec | ['ff15a805246543d29489c34b70ea3e0a'] | This is just a theory based question. I am fairly new to programming and was wondering why this happens within HTML.
I'm making an HTML based resume where when I have a mouse pointer hover over my ul it will activate a function such as this.
$("li#about").hover(function(){
$("#content1").toggle();
});
The Issue While hovering over my selector when my #content was no longer hidden, my margins between my header and ul box would cause jittering within the page.
I went from:
<header>
<h1>Ryan Anderson</h1>
<h3>Developer</h3>
</header>
<body>
<div class="clearfix">
<div class="column">
<ul>
<li id="about"> <span>About Me</span> </li>
<li id='education'> <span>Education</span></li>
<li id='info'> <span>Experience</span></li>
<li id='ref'> <span>References</span></li>
</ul>
<div class="clr"></div>
</div>
to:
<header>
<h1>Ryan Anderson</h1>
<h3>Developer</h3>
<body>
<div class="clearfix">
<div class="column">
<ul>
<li id="about"> <span>About Me</span> </li>
<li id='education'> <span>Education</span></li>
<li id='info'> <span>Experience</span></li>
<li id='ref'> <span>References</span></li>
</ul>
<div class="clr"></div>
</div>
</header>
My questions:
What was the reason for the sporadic jittering and how did wrapping my ul within the header tag prevent this from occurring?
Is my solution proper etiquette? If not, what would you recommend?
If you have any good recommendations for coding etiquette please post links in comments.
sing-song Being new, I know my code must look like poo. Regardless I added a fiddle for you.
Thanks for the read! I apologize in advance for the ugly code. I posted a JSFiddle as well, figured it would help any other newbies to conceptualize what i'm asking. This fiddle is without correction Just change the closing header tag to where I specified above to see the results.
My Fiddle: https://jsfiddle.net/dgibbins1/cwn6ws02/4/
header{
background: #5a4c1c;
border-radius:10px;
opacity:0.85;
padding:1px 0;
}
h1{
margin: 0 0;
color: white;
padding-left:10px;
}
h3{
color:#dad6c7;
padding-left: 31px;
}
body{
background:#dad6c7;
}
ul{
list-style-type:none;
padding: 0px 15px;
margin: 50px 0;
}
span{
color:white;
}
li{
font-family:Helvetica;
}
div.column{
border-style:solid;
border-color:rgba(56,43,3,1);
}
#content1, #content2,#content3,#content4{
opacity:1;
display: none;
padding: 3px auto;
}
.clear-fix{
}
.column li{
padding:4px 0 4px 0;
margin-top:30px;
margin-bottom:30px;
font-family:'Oswald', sans-serif;
text-align: center;
font-size: 20px;
overflow: hidden;
}
.clr{
clear:both;
font-size:0;
}
.column{
float:left;
background-size: 220px 220px;
background:#5a4c1c;
padding: 5px 2px;
margin: 10px 10px 0 0;
opacity:0.5;
width: 15%;
border-radius:20px;
}
.column li:hover{
background: black;
border-radius:20px;
}
.content{
color:#5a4c1c;
font-weight: bold;
font-family: helvetica;
width:85%;
}
.footer{
text-align: center;
background:#5a4c1c;
color: white;
padding: 10px 0;
opacity: 0.5;
margin-top: 30%;
border-radius:10px;
}
<!DOCTYPE html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<link href="/normalize.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Oswald" rel="stylesheet">
<title> Resume: Ryan Anderson</title>
</head>
<header>
<h1>Ryan Anderson</h1>
<h3>Developer</h3>
</header>
<body>
<div class="clearfix">
<div class="column">
<ul>
<li id="about"> <span>About Me</span> </li>
<li id='education'> <span>Education</span></li>
<li id='info'> <span>Experience</span></li>
<li id='ref'> <span>References</span></li>
</ul>
<div class="clr"></div>
</div>
<div id="content1" class="content show-description">
<p>About me <br />
<small>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eligendi non quis exercitationem culpa nesciunt nihil aut nostrum explicabo reprehenderit optio amet ab temporibus asperiores quasi cupiditate. Voluptatum ducimus voluptates voluptas?</small>
</p>
</div>
<div id="content2" class="content" >
<p>Education <br />
<small>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eligendi non quis exercitationem culpa nesciunt nihil aut nostrum explicabo reprehenderit optio amet ab temporibus asperiores quasi cupiditate. Voluptatum ducimus voluptates voluptas?</small>
</p>
</div>
<div id="content3" class="content">
<p>Experience <br />
<small>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eligendi non quis exercitationem culpa nesciunt nihil aut nostrum explicabo reprehenderit optio amet ab temporibus asperiores quasi cupiditate. Voluptatum ducimus voluptates voluptas?</small>
</p>
</div>
<div id="content4" class="content">
<p>References <br />
Paul Garven (co-worker): (780)-828-1111<br />
Paul CWC (owner of CWWC): (416)- 721-1111<br />
Someone at Bitmaker: (416-967-11-11
</p>
</div>
</div>
<div class="footer">
<p>Contact <br/>
<small>mobile: (647)-333-8723 <br/>
e-mail: <EMAIL_ADDRESS><PERSON>>
<h3>Developer</h3>
</header>
<body>
<div class="clearfix">
<div class="column">
<ul>
<li id="about"> <span>About Me</span> </li>
<li id='education'> <span>Education</span></li>
<li id='info'> <span>Experience</span></li>
<li id='ref'> <span>References</span></li>
</ul>
<div class="clr"></div>
</div>
to:
<header>
<h1><PERSON>>
<h3>Developer</h3>
<body>
<div class="clearfix">
<div class="column">
<ul>
<li id="about"> <span>About Me</span> </li>
<li id='education'> <span>Education</span></li>
<li id='info'> <span>Experience</span></li>
<li id='ref'> <span>References</span></li>
</ul>
<div class="clr"></div>
</div>
</header>
My questions:
What was the reason for the sporadic jittering and how did wrapping my ul within the header tag prevent this from occurring?
Is my solution proper etiquette? If not, what would you recommend?
If you have any good recommendations for coding etiquette please post links in comments.
sing-song Being new, I know my code must look like poo. Regardless I added a fiddle for you.
Thanks for the read! I apologize in advance for the ugly code. I posted a JSFiddle as well, figured it would help any other newbies to conceptualize what i'm asking. This fiddle is without correction Just change the closing header tag to where I specified above to see the results.
My Fiddle: https://jsfiddle.net/dgibbins1/cwn6ws02/4/
header{
background: #5a4c1c;
border-radius:10px;
opacity:0.85;
padding:1px 0;
}
h1{
margin: 0 0;
color: white;
padding-left:10px;
}
h3{
color:#dad6c7;
padding-left: 31px;
}
body{
background:#dad6c7;
}
ul{
list-style-type:none;
padding: 0px 15px;
margin: 50px 0;
}
span{
color:white;
}
li{
font-family:Helvetica;
}
div.column{
border-style:solid;
border-color:rgba(56,43,3,1);
}
#content1, #content2,#content3,#content4{
opacity:1;
display: none;
padding: 3px auto;
}
.clear-fix{
}
.column li{
padding:4px 0 4px 0;
margin-top:30px;
margin-bottom:30px;
font-family:'Oswald', sans-serif;
text-align: center;
font-size: 20px;
overflow: hidden;
}
.clr{
clear:both;
font-size:0;
}
.column{
float:left;
background-size: 220px 220px;
background:#5a4c1c;
padding: 5px 2px;
margin: 10px 10px 0 0;
opacity:0.5;
width: 15%;
border-radius:20px;
}
.column li:hover{
background: black;
border-radius:20px;
}
.content{
color:#5a4c1c;
font-weight: bold;
font-family: helvetica;
width:85%;
}
.footer{
text-align: center;
background:#5a4c1c;
color: white;
padding: 10px 0;
opacity: 0.5;
margin-top: 30%;
border-radius:10px;
}
<!DOCTYPE html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<link href="/normalize.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Oswald" rel="stylesheet">
<title> Resume: <PERSON>>
</head>
<header>
<h1><PERSON>>
<h3>Developer</h3>
</header>
<body>
<div class="clearfix">
<div class="column">
<ul>
<li id="about"> <span>About Me</span> </li>
<li id='education'> <span>Education</span></li>
<li id='info'> <span>Experience</span></li>
<li id='ref'> <span>References</span></li>
</ul>
<div class="clr"></div>
</div>
<div id="content1" class="content show-description">
<p>About me <br />
<small>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eligendi non quis exercitationem culpa nesciunt nihil aut nostrum explicabo reprehenderit optio amet ab temporibus asperiores quasi cupiditate. Voluptatum ducimus voluptates voluptas?</small>
</p>
</div>
<div id="content2" class="content" >
<p>Education <br />
<small>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eligendi non quis exercitationem culpa nesciunt nihil aut nostrum explicabo reprehenderit optio amet ab temporibus asperiores quasi cupiditate. Voluptatum ducimus voluptates voluptas?</small>
</p>
</div>
<div id="content3" class="content">
<p>Experience <br />
<small>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eligendi non quis exercitationem culpa nesciunt nihil aut nostrum explicabo reprehenderit optio amet ab temporibus asperiores quasi cupiditate. Voluptatum ducimus voluptates voluptas?</small>
</p>
</div>
<div id="content4" class="content">
<p>References <br />
<PERSON> (co-worker): (780)-828-1111<br />
<PERSON> (owner of CWWC): (416)- 721-1111<br />
Someone at Bitmaker: (416-967-11-11
</p>
</div>
</div>
<div class="footer">
<p>Contact <br/>
<small>mobile: <PHONE_NUMBER><PHONE_NUMBER><br />
Paul CWC (owner of CWWC): <PHONE_NUMBER><br />
Someone at Bitmaker: <PHONE_NUMBER>
</p>
</div>
</div>
<div class="footer">
<p>Contact <br/>
<small>mobile: (647)-333-8723 <br/>
e-mail: hotmail@gmail.com</small>
</p>
</div>
<script>
$("li#about").hover(function(){
$("#content1").toggle();
});
$("li#education").hover(function() {
$("#content2").toggle();
});
$("li#info").hover(function() {
$("#content3").toggle();
});
$("li#ref").hover(function() {
$("#content4").toggle();
});
</script>
</body>
| 7c29fcf4aef2c7e893e212ce385ba19f498262d467c3b188cffcad6c3e611ac8 | ['ff15a805246543d29489c34b70ea3e0a'] | thanks again for taking the time. I have a question i'm working on for some schoolwork.
Question: I want to replace certain array values that are divisible by a certain number with a string. Now, I used the .flatten method and was wondering if I wanted parameters for
x%3 == 0 && x%5 == 0
would that be possible with the method i'm currently using for case shown below.
Thanks!
a=(1..10000).to_a
b=["string1"]
c=["string2"]
d=["string3"] #string3 is actually just a combination of string1+string2
a.map!{|x| x%3==0 ? b:x}.flatten!
a.map!{|x| x%5==0 ? c:x}.flatten!
a.map!{|x| x%3==0 && x%5==0 ? d:x}.flatten! #problem line.
puts a
|
f24b86db3538c16a35022c6662bf9e822d8821b274c802d039d35845a9df45d4 | ['ff312a4beba74f6a86c8cf4eab6fd10f'] | Probably a dumb question but I just started learning PHP and now I have to do an exercise in which, on the one hand, the session variables have to count how often you have visited the page before closing the browser. And on the other hand, the cookies should count how often you have visited a website in total.
So also if you have closed your web browser, the cookie should continue counting.
This is my problem though.
If I close my web browser and start it again, the cookie starts all over again with counting. How to solve this?
PHP File
<?php
session_start();
if (!isset($_SESSION['count'])) {
$_SESSION['count'] = 1;
} else {
$_SESSION['count']++;
}
echo "You have visited this page " . $_SESSION['count'] . " times before you closed your browser";
$count = $_SESSION['count'];
setcookie("count", "$count", time() + 3600);
if (!isset($_COOKIE['count'])) {
$_COOKIE['count'] = ($_COOKIE['count'] + $_SESSION['count']);
} else {
$_COOKIE['count']++;
}
echo "<br> In total you have visited this page " . $_COOKIE['count'] . " times";
?>
| 1a27546d6bf3474c094fa954e1c83c25644933823856109f802f85734c5f2660 | ['ff312a4beba74f6a86c8cf4eab6fd10f'] | I'm having a little problem with css.
I have to create a page with a form on which you can set your background-color by means of radio-buttons and a submit button.
But how could I actually change the css background-color in php?
<?php
if (isset($_POST['set'])) {
$color = $_POST['color'];
} else {
$color = "";
}
?>
<form method="post" action="">
<input type="radio" name="color" value="Red"
<?php if($color == "Red") { echo "checked='checked'"; } ?>>Red
<input type="radio" name="color" value="Green"
<?php if($color == "Green") { echo "checked='checked'"; } ?>>Green
<input type="radio" name="color" value="Blue"
<?php if ($color == "Blue") { echo "checked='checked'"; } ?>>Blue
<input type="radio" name="kleur" value="Pink"
<?php if ($color == "Pink") { echo "checked='checked'"; } ?>>Pink
<br>
<br>
<input type="submit" name="set" value="SET">
</form>
|
965305377019f614f5cd3c3f9ecf9297dee94d3da82d9ece4c446d7236c1cebc | ['ff36beb443ce418792949db4cda74dc9'] | I'm trying to arrange 2 plots that will utilise a common x-axis, the first plot represents market demand for a product, the second represents products available and how they compare to competitors. The aim is to represent the two plots on a single aligned plot canvas.
Firstly I've selected a simple bar chart to represent market demand, thus:
library(tidyverse)
library(graphics)
library(ggpubr)
library(cowplot)
library(gtable)
# Some sample data (representing market potential)
set.seed(1234)
df1<-data.frame(
capacity = round(seq(from=500,to=20000,length.out=25),0),
nr = sample(seq(0,800),25)
)
# Plot representing the market potential
p1<-ggplot(df1,aes(capacity,nr))+
geom_col(colour="black", fill="blue", alpha=0.1, width = 200)+
theme_minimal()+
ggtitle("Market Assessment Project:", subtitle ="Capacity vs Market Potential")+
ylab("No. Samples")+
xlab("Capacity")
p1
Next, I simulate data that represents the product portfolio to meet the market expectation, thus:
# Step 2. Example supply side data, Product(P), sizes <PHONE_NUMBER>)
df2<-data.frame(
Name = rep(c('P030','P040','P045','P050','P060','P080','P100','P110'),4),
viscosity=c(rep('380cSt, 50Hz',8),rep('700cSt, 50Hz',8),rep('380cSt, 60Hz',8),rep('700cSt, 60Hz',8)),
minflow=c(round(seq(from=400,to=6000,length.out=8),0),
round(seq(from=300,to=4500,length.out=8),0),
round(seq(from=500,to=6600,length.out=8),0),
round(seq(from=400,to=5000,length.out=8),0)
),
maxflow=c(round(seq(from=1200,to=18000,length.out=8),0),
round(seq(from=1000,to=12000,length.out=8),0),
round(seq(from=1500,to=20000,length.out=8),0),
round(seq(from=1200,to=15000,length.out=8),0)))
# Step 3. Sample supply side data, Competitor(C), sizes
df3<-data.frame(
Name = rep(c("C010","C020","C030","C040","C050","C060","C100"),2),
viscosity=c(rep("Comp,380cSt, 50Hz",7),rep("Comp,700cSt, 50Hz",7)),
minflow=c(round(seq(from=400,to=6000,length.out=7),0),
round(seq(from=300,to=4500,length.out=7),0)),
maxflow=c(round(seq(from=1200,to=18000,length.out=7),0),
round(seq(from=1000,to=12000,length.out=7),0)))
# Join everything together to plot
df4<-data.frame(rbind(df2,df3))
# make some colour spectra
blues<-c("#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#084594") # https://colorbrewer2.org/#type=sequential&scheme=Blues&n=8
greens<-c("#edf8e9", "#c7e9c0", "#a1d99b", "#74c476", "#41ab5d", "#238b45", "#005a32") # https://colorbrewer2.org/#type=sequential&scheme=Greens&n=8
# create a plot using geom_boxplot
p2<-ggplot(df4,aes(x=viscosity,y=maxflow,ymax=minflow,ymin=minflow,lower=minflow, upper=maxflow, middle=minflow, fill=Name))+
geom_boxplot(stat="identity",position="dodge", width=0.5,colour=1, alpha=0.75)+
geom_label(aes(label=maxflow), nudge_x = -0.4, size=3, show.legend = FALSE, alpha=0.75,label.size=0.1)+
coord_flip()+
theme_minimal()+
ggtitle("Market Assessment Project:", subtitle ="Capacity vs Viscosity and Speed")+ylab("Capacity")+xlab("Application")+
scale_fill_manual(values=c(blues,greens),aesthetics = "fill")
p2
Note that the x-axis has similar data, 0 to 20k. My problems start when I try to align the origin and x-axis, I've tried various methods, however all fail to properly align the two plots. Any assistance to create Plot 3 with an aligned origin and x-axis appreciated.
# Mash the two plots together (badly)
aligned_plots <- align_plots(p1, p2, align="h", axis="bl")
# Not aligned !
ggdraw(aligned_plots[[3]]) + draw_plot(aligned_plots[[4]],x=0.00 ,y=0.0, scale = 1.0)
# not aligned !
ggarrange(p2,p1, ncol=1,nrow=2, heights=c(3,2))
# not aligned !
p3<-ggarrange(aligned_plots[[3]],aligned_plots[[4]], ncol=1,nrow=2, heights=c(3,2))
p3
# Aligning plot panels
# from...
# https://cran.r-project.org/web/packages/egg/vignettes/Ecosystem.html
g1 <- ggplotGrob(p1)
g2 <- ggplotGrob(p2)
g <- rbind(g2, g1, size = "first") # at this step the dims don't match
g$widths <- unit.pmax(g1widths, g2$widths)
grid.newpage()
grid.draw(g)
# examine problem ... check the dimensions of g1, g2
dim(g1)
dim(g2)
| 2762962f363e663472bf4bcc1b7e35285e4c2a71428f1cf8ef42557d8a5f2f02 | ['ff36beb443ce418792949db4cda74dc9'] | My data set comes from a process control system with various digital inputs created by logical switching functions (recorded as 'alarms'). Each event changes the state of the input from 0 to 1 which is recorded as a "N" or "Y" character in the dataset, thus:
tstamp alarm0 alarm1 alarm2 alarm3 alarm4...alarm204
2015-10-01 16:23:06 N N N N N
2015-10-01 16:23:36 N N N N N
2015-10-01 16:24:06 Y Y N Y N
2015-10-01 16:24:36 Y N N Y N
2015-10-01 16:25:06 N Y N Y N
2015-10-01 16:25:36 N N N N N
...etc, producing ~1m rows per year.
My first aim is to count the number of "Y" within a given period (say hourly or daily) and to compare that with the frequency of events from other similar periods using a heatmap or similar. My second aim is to identify the number of times an alarm switches from 0 to 1, ie to determine if an event occurs infrequently and persists for a long period or if it occurs frequently for a short period.
I've cut the dataset into suitable time periods using...
cut(Mydf$tstamp,breaks="hour")
and I'm able to count "Y"s in the entire dataset using...
apply(X=Mydf,2,FUN = function(x) length(which(x=="Y")))
I've been unable to cut and count the the dataset when grouped by tstamp where breaks = 'hour' or 'week' or 'month'.
I've been trying to use ddply {plyr} to cut the dataset into time periods then count the instances of "Y" within each time period however this has been unsuccessful.
Here's my sample .csv dataset 1000 rows x 80 cols (~ 175kb)...
http://1drv.ms/1HsdY75
library(plyr)
# Read in the data files...
Mydf <- read.csv("C:/.../Mydf_small.csv")
# convert tstamp from "factor" class to "POSIXct" class (requires plyr package)
Mydf$tstamp <- as.POSIXct(Mydf$tstamp) # turn tstamp into a time format that can be evaluated
Mydf$timebrk <- cut(Mydf$tstamp,breaks="hour") # set the time interval to count the number of active alarms in
mylevels <- unique(Mydf$timebrk)
# example... this counts all instances of "Y" regaldless of mylevel...
MyCount <- apply(X=Mydf,2,FUN = function(x) length(which(x=="Y")))
MyCount
# want to count instances of "Y" within mylevel (...but this doesn't work)
ddcount <- ddply(.data=Mydf,.variables=mylevels,.fun = function(x) length(which(x=="Y")))
ddcount
Any assistance on these matters appreciated...
|
f5a26591c4c1aadc8602a1a6b048fe5f3088c9336867307c1ee470742916ecd0 | ['ff37e42e4766420aa65833caf2e1d074'] | I have a link/anchor HTML like:
<a href='/some-form' ng-click='someFunction(item)'>Text</a>
What I have in mind is that user clicks this link, then I want to load an HTML from server, and after the loading of that HTML, I want someFunction to be executed, which fills the loaded form with some data.
However, by debugging my code, it seems that Angular JS first fires someFunction function, and then browser loads the HTML. Not only I want this to be reverse, but also I need them to be executed sequentially (synchronously).
Is my design a good design? Is there any other way to achieve this behavior? If not, what should I do to make it work?
| b20229c69388e2e91c8fd2e19c0b6b30324f0e025bab0b7b8d13522cba449727 | ['ff37e42e4766420aa65833caf2e1d074'] | I'm trying to Delete an object from database; I have an UI layer and a Service layer, I have loaded the UI and the Service separately on IIS.I am using asp.net web api and i send the request with http delete method.So when i run services(with f5)and send the delete request to http:// localhost:15957/ all thing is ok.
But when i send the request to the site that host in iis get this error:
HTTP Error 405.0 - Method Not Allowed
I look at the response header and and see the unexpected header:
Allow:GET, HEAD, OPTIONS, TRACE
I dont add this header.
On the Web.config of the Service layer I'm adding the following to the header for CORS:
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Headers" value="Content-Type, x-xsrf-token" />
<add name="Access-Control-Allow-Methods" value="PUT, GET, POST, DELETE" />
</customHeaders>
What is my problem?
|
7a42a4f888fc1a8156a031536e609f79954e631ebc275d7a10325f21a6f530be | ['ff39ac54ea984947b3dbf381278fb886'] | In Opencart, I have a product which you select colors of.
Basically the pricing should be: Each additional printing color costs a flat rate of $50 + $0.25 for each.
So if a person were ordering 1000 items, with 2 colors, the cost would need to be BASECOST + $100($50x2) + $250(1000x$.25)
Right now I'm only able to set up the cost for each product. Since people are going to be both ordering large and huge quantities, there's no easy way to build it into the each price.
I could have sworn I saw a free extension awhile ago that allowed you to set both a flat price for an option, and a price for each on the quantity. Trying searching everything I could think of, but the only thing that I could find is for shipping (we already have a pretty complex setup for the shipping, so can't mess with that).
Has anyone came across a solution, or simple extension for this problem. Seems like a simple thing, but still can't find a solution for the life of me.
Thanks!
| c39db880279ecdcdfdca6be61acbd5d40de8b7e7c237bd0d7369235738e58582 | ['ff39ac54ea984947b3dbf381278fb886'] | Unfortunately, this is just part of adapting a site to be responsive.
First off, I'd recommend using media queries instead of javascript to do it. Start by adding in rules for the different widths you'll be defining for, so if it goes below 1100px, you'll need to have
@media screen and (max-width: 1100px) { /* Changes to your CSS for widths below 1100px will go here */}
What you want to do is resize your window below that width, and then see everything that "breaks" or needs to be redone with new CSS rules, and make those changes. You'll probably need to change the menu sizes, maybe font-sizes (depending on how you have it set up). But what I find to be the easiest, is to open up your browsers CSS Element Inspector / CSS Editor, and make those changes on the fly as you're resizing your browser. Then, just transfer those changes to your main code, and keep going for the lower widths. Chances are this one rule for under 1100px won't be enough, and you'll have to create a few to ensure it looks good at all widths. So say, once you get to 800px, you'll want to further update some elements, you just
@media screen and (max-width: 800px) { /* Changes to your CSS for widths below 800px will go here */}
And do the same thing. Keep going until your site works well at all widths, and your site will be responsive.
From the look of your question though, it seems as though you're looking for a magic bullet to make the menu work automatically responsively... unfortunately, that's not how it works, and you're going to have to code in the changes at each level to make it look how you'd like.
Good luck!
|
4ce3bd4761344c77f9adb4e236e441b7480341b8942df00fd99c696204b1291b | ['ff3a26ff4aa14fe28f8d5fe283e6ad44'] | I have a tabhost with 5 tabs, and the content of each one is an ActivityGroup than can start different activities. I'm trying to redefine the clic on the selected tab of my tabHost, to go back on the main activity of this tab.
For example, I'm in the first tab, which has a list of item. If I select one item, it replaces the content of my current tab with the new activity. And then, I want to clic on my selected tab in my TabBar, to go back to the previous activity.
My problem is to detect a clic on the selected tab, I cannot use the OnTabChangeListener, because it's not a tabChanged, and I don't find any other way ...
Thanks
| f7dcd9ffca4ffbe4ce7a5f1f29bde75782d2093b42a9c0339eb2b9c5db2e4014 | ['ff3a26ff4aa14fe28f8d5fe283e6ad44'] | In my app, I have different activities with listviews. The datas come from a server with a REST method, and it's only done once, when I start the application.
The pattern that I'd like to set is to precharge all the listviews with the JSONs that I already have in local, and in parallel, launch a thread that get the new JSONs files with my REST methods, and then update the listviews.
For now, when I start the app, I parse my JSONs files, and build all the lists of objects. I access them later in a static way, from my lists adapters.
So I would like to know the best way to launch this REST thread, and update the listview. Should I use AsyncTask ? A service ? and then, when I update my local JSONs, I have to re-parse them, updates the lists of object, and call in my adapters NotifyDataChanged ?
Thanks
|
d661135fa4f1818afa1061ef2670293be1bed2c568aa0af4f19f1c317736bc94 | ['ff3dc7ea2b584fd1b1c1cd167b7d8320'] |
.input {
width: 200px;
height: 35px;
outline:0;
padding:0 10px;
}
.label { position: absolute;
pointer-events: none;
left: 20px;
top: 18px;
transition: 0.2s ease all;
}
input:focus ~ .label,
input:not(:focus):valid ~ .label{
top: 10px;
bottom: 5px;
left: 20px;
font-size: 12px;
}
<div>
<input type="text" class="input" required/>
<span class="label">Company Name</span>
</div>
| 704339e19eeda179fe4e33479a2e84d5869ee98ca9a996b8b968ca4d5a1f2fdc | ['ff3dc7ea2b584fd1b1c1cd167b7d8320'] |
#hero h5 {
font-weight: strong;
font-size: 28px;
-webkit-animation-delay: 0.7s;
-moz-animation-delay: 0.7s;
animation-delay: 0.7s;
}
@-webkit-keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@-moz-keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.fade-in {
opacity:0;
-webkit-animation:fadeIn ease-in 1;
-moz-animation:fadeIn ease-in 1;
animation:fadeIn ease-in 1;
-webkit-animation-fill-mode:forwards;
-moz-animation-fill-mode:forwards;
animation-fill-mode:forwards;
-webkit-animation-duration:1s;
-moz-animation-duration:1s;
animation-duration:1s;
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<section id="hero">
<div class="content">
<div class="container">
<div class="row">
<h5 class="fade-in">Lorem Ipsum Demo Title</h5>
</div><!-- row -->
</div> <!-- container -->
</div> <!-- content -->
</section><!-- section -->
|
cb68a849fc401b7544cb0365727e96971038455c04b370dd7a1347c02d6c0d38 | ['ff4e3acebb4d4d589166bc44bbac32c8'] | If you can't assume the files are sorted, then I'd do something like this
def diffUnsorted(fn1, fn2) :
return set([l.strip() for l in open(fn1) if l.strip() != ""]) - \
set([l.strip() for l in open(fn2) if l.strip() != ""])
If you're going to be dealing with large files though, I'd go with a solution that sorts the files first, which gets you O(n) time and O(1) space (not counting the sorting..).
| 5ec3ddbcd1ce04f1cd8870d95f3d5b82b178e01fe8acca940deb9a427e9a9cf8 | ['ff4e3acebb4d4d589166bc44bbac32c8'] | Just a guess, but I'd say inside_window is not a const method, that's why you're getting that error. Can you show us the code for that?
You've declared p to be const, meaning you're promising not to change anything using it. But your inside_window() method does not promise not to do that, hence the compile is saying you're not honouring that promise. Make inside_window const and this should go away (if indeed you don't change anything inside that method, then it'll be an easy fix)
|
6ae27d2cfd2c588411b5aca3d2d737bb51d2a2e6997dfca8f89db44adcc36b43 | ['ff66293c48b746b2a88797c9464d30bd'] | I am using a function to check that my input in an integer only:
int input;
while (true)
{
std<IP_ADDRESS>cin >> input;
if (!std<IP_ADDRESS>cin)
{
std<IP_ADDRESS>cout << "Bad Format. Please Insert an integer! " << std<IP_ADDRESS>endl;
std<IP_ADDRESS>cin.clear();
std<IP_ADDRESS>cin.ignore(std<IP_ADDRESS>numeric_limits<std<IP_ADDRESS>streamsize><IP_ADDRESS>max(), '\n');
continue;
}
else
return input;
}
However when inputing a integer followed by a char, eg. 3s, the integer gets accepted and the message gets printed.
How can I make sure that the input in such format does not get accepted, nor do input in form 4s 5, so when the integer appears after the space.
| 6f7f33f0747623f692946c1dfe99d1f62a5a5f99f9e1286e2f609dff0e6d4bc1 | ['ff66293c48b746b2a88797c9464d30bd'] | I am encountering a problem when running my flask webapp on a VPS using unicorn and supervisor.
When running without supervisor everything works there are no internal server error not any problems with the app, everything works.
The problem arrises however when I want to user supervisor for monitoring. When running with it the main index loads, however when navigating to a page that requires a database connection an error happends.
It started happening when I decided to move my cloud based MongoDB to a local instance.
I don't know if supervisor is using a different route then the basic gunicorn, which in turn is getting blocked by my mongoDB.
If you have any ideas let me know.
|
9b534468c77611db2988a29053bc232e5963672f0878c0b9aa355e168bedcf94 | ['ff6994141638491a8c50fdbaa4519f53'] | I'm currently developing app that requires storage of lots of information from different controls. I've never done this before, and after reading couple things on this topic got a little confused. Do I need to download SQL server 2008 and work with it in order to store data from WinForm? If yes, then what is the service-side item for? Can I use for storage?I don't need to import data from database(at least not for now), I just need stuff to save somewhere, and I would like to know where exactly. Thank you!
| 5251774cd70178f6606e4d7fb45e7069bd97d9d2ac65ede00df9c94b612d9a58 | ['ff6994141638491a8c50fdbaa4519f53'] | I would like to compare strings but the following code won't work. I'm guessing it's because incompatible, is there any other way to do it?Thanks!
public class test
{
public static void main(String[] args)
{
String str1 = "abc def ghi abc ded abc ghi";
String str2 = "ghi";
int count = 0;
String array[] = str1.split("\t");
for(int i = 0; i < array.length; i++)
{
if(array[i].equals(str2))
{
count++;
System.out.println(array[i]);
System.out.println(count);
}
}//for
}//main
}//test
|
50cdce9f79b128792a3df970828b060494d1839ff458a64026ebd03a6af7e73c | ['ff81e83a68784f1aa4bc903345c7b3a6'] | I have my target data extension for my journey, however,the data extension which will inject data into it will change every day. For example, my DE name will be 123456_EM_1 on the Monday, on the Tuesday is will be 123456_EM_2, this will continue to 123456_EM_365
How can automation studio select the new DE which has an increment of 1 each day?
Thanks
| e65372c7493ce058875c6d070ccfb0bed3c2acf0d7eb766617f70343b32a3a5c | ['ff81e83a68784f1aa4bc903345c7b3a6'] | <PERSON> I would love it if I could get the extra time to be able to complete my work and hand in a dissertation that actually has a chance to be accepted by the committee. But my advisor doesn't seem to be leaning towards that... I just feel like it's better to quit while I'm ahead than having the committee not accepting my work due to something that could be fixed. |
d47e2cd3f7dfd9eb67de73d8f653c09518daf14f3f154900438b609fff75fcdb | ['ff82caa8127841a0b6228ad6485e9cba'] | public class NaturalNumbersCheck {
static int var = 2;
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
checkIsItANaturalNumber(n);
}
private static void checkIsItANaturalNumber(int n) {
if (n > 1) {
if (n % var != 0) {
var++;
checkIsItANaturalNumber(n);
} else if (n % var == 0) {
printIsItNaturalNumber(var, n);
}
}
}
private static void printIsItNaturalNumber(int var, int n) {
if (var == n) {
System.out.println(n + " is a natural number.");
} else {
System.out.println(n + " is not a natural number.");
}
}
}
| f7f8afa8395413b197d8715a2656dc26438c15ea71a8a68501116cea81d36ec1 | ['ff82caa8127841a0b6228ad6485e9cba'] | Now, i want to use these point ```.meas AC bw FIND V(out) WHEN ph(V(out))=-89.9``` to get the bandwidth: ```.meas AC BAW TRIG V(out=bw/sqrt(2) RISE=1 TARG V(out)=bw/sqrt(2) Fall=last ```. But it failed :/ These methode worked when i measured the maximal magnitude. But in my special case i cant use these methode because i have resonance peaks so. Do u have a solution when i found the -135° point? |
207d1006e6e450a39545c8d546aad959ada7fdb6c4fd7269f2701585649509f0 | ['ff8dad9f44fd4f578dc046569c4d499b'] | I have a expandable div on a website. I want to create a test case with Behat/Mink to assert that when the user reaches the page the box is not expanded.
<a class="expand" data-reactid=".r[37uxa].[1]" href="#">Click to expand</a>
<div class="expandable" data-reactid=".r[37uxa].[2]" style="height: 0px;">
Afterwards when the users clicks the "Click to expand" the value of the style="height" changes:
<a class="expand" data-reactid=".r[37uxa].[1]" href="#">Click to expand</a>
<div class="expandable" data-reactid=".r[37uxa].[2]" style="height: 157px;">
which means it is now expanded.
I was wondering if there is a way or if i could implement a step definition to check/get the value for the style attribute. Thank you.
| db348e0aa3e2f4386690b43624742e3617c56c32b8ff2c42e5baa3e38169356e | ['ff8dad9f44fd4f578dc046569c4d499b'] | Thank you both , I was able to work a solution to what I needed with your help. Here is the way I have used:
/**
* @Then /^The "([^"]*)" element should not be expanded$/
*/
public function theElementShouldNotBeExpanded($element)
{
$session = $this->getSession();
$page = $session->getPage();
$expandable = $page->find('css', '.expandable');
$style = $expandable->getAttribute('style');
if ($style === "height: 0px;") {
$message1 = sprintf('Is not expanded having the attribute: '.$style);
echo $message1;
} else {
$message2 = sprintf('The element is expanded having the attribute: '.$style);
throw new Exception($message2);
}
}
/**
* @Then /^The "([^"]*)" element shold be expanded$/
*/
public function theElementSholdBeExpanded($element)
{
$session = $this->getSession();
$page = $session->getPage();
$expandable = $page->find('css', '.expandable');
$style = $expandable->getAttribute('style');
if ($style === "height: 105px;") {
$message1 = sprintf('Is expanded having the attribute: '.$style);
echo $message1;
} else {
$message2 = sprintf('The element is not expanded having the attribute: '.$style);
throw new Exception($message2);
}
}
The step definitions are as follows:
Given I am on "/"
Then I should see an ".promotion" element
Then The ".expandable" element should not be expanded
And I follow "Click to expand"
Then The ".expandable" element shold be expanded
And I follow "Click to hide"
And the result:
Given I am on "/"
Then I should see an ".promotion" element
Then The ".expandable" element should not be expanded
--Is not expanded having the attribute: height: 0px;
And I follow "Click to expand"
Then The ".expandable" element shold be expanded
--Is expanded having the attribute: height: 105px;
Thank you both , have a nice day!
|
e7e67dc2b8c3b599b0156faae4a8e68d6da5fbced8c3b3ec5509fbcadafa9815 | ['ff99b3028b9d4201be782b5528f48a43'] | I've see that since java 1.5 or maybe a later version, you can initialize java collection leaving generics blank, i.e. using <> instead of writing out the whole < A,B >. but I can't find the official documents on this, and I'm wondering whether this has any benefits (or maybe I'm not remembering this correctly, in which case do point out the correct form). Thank you.!
| 15306d4af1d8ee205b9d1171f810374b050c9f7a11b20775060efc6f0d688799 | ['ff99b3028b9d4201be782b5528f48a43'] |
High level: I have a class A, which has a variable defined as "let _somevar".
I'm looking for ways to assign value to this variable from another class, B.
The details are a bit more involved:
Class A contains an initialization method to lazy load some module, and it has a variable "_somevar" which holds the module which is lazy loaded. Class A also has some public methods which checks whether this variable is null or not and executes accordingly.
Now Class B provides an initialization function to synchronously/directly (not lazy-load-ly) load the module. The problem is the public methods from Class A now wouldn't run because "_somevar" is not set. So I'm trying to set it from Class B so that the public methods in Class A can still be used.
I understand there's a lot of refactoring that can be done to these classes. but I don't own the codebase and I'm trying to make minimal code changes here to make it work.
I'd love to hear your suggestions. Thank you!
|
886b10756dcfe748c13e18235edaf22061c7c8a7658f050313c342cf66752b2c | ['ffb41b54df9b44b2a0c92b7c1625dd70'] | Consider just the subset of red cards. There are thirteen in the subset. The jack of diamonds has a 13/13 chance (100%) of being in that set. If you partition that set into two subsets, one with nine elements and one with four then the jack of hearts has a 9/13 chance of being in the first and a 4/13 chance of being in the second. Given that all of the nine center cards are red we know that there is a 9/13 chance that <PERSON> diamonds in in the nine center cards.
If the jack of diamonds is in the center nine it has a 1/9 chance of being in the exact center and a 8/9 chance of being in a different position.
For the jack of hearts to be in the center of the 5x5 grid it must satisfy both conditions: 1) that it be in the center nine red sub set (p=9/13) and 2) that it be in the center of those nine (p=1/9):
P = 9/13 * 1/9 = 1/13.
So, given that the nine center cards are red, the jack of diamonds has a 1/13 chance of being in the center of the 5x5 grid.
| aa60817234b76026c56a6d82827220faa3342e163e7848fcd4ce8e99844ddb8a | ['ffb41b54df9b44b2a0c92b7c1625dd70'] | ok qmake-qt4 worked. now i got error-
vivek@vivek-N61PB-M2S:/usr/local/src/0.9.1/sudoku$ make
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I../../../../share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o main.o main.cpp
main.cpp:1:24: fatal error: QApplication: No such file or directory
#include
^
compilation terminated. |
25d21e50d82cdc9d30676ba66f870a35cff1a35550f0e55558725830835d6728 | ['ffb8da492066435c801f6ac553516248'] | The underscore isn't always needed. From http://docs.scala-lang.org/cheatsheets/
val zscore = (mean:R, sd:R) => (x:R) => (x-mean)/sd
currying, obvious syntax.
def zscore(mean:R, sd:R) = (x:R) => (x-mean)/sd
currying, obvious syntax
def zscore(mean:R, sd:R)(x:R) = (x-mean)/sd
currying, sugar syntax. but then:
val normer = zscore(7, 0.4) _
need trailing underscore to get the partial, only for the sugar version.
| 24b6b5a2ed9a79e67caff2f4e51574321ca4aa9b724101fd28a17aee2070b18f | ['ffb8da492066435c801f6ac553516248'] | I've got a txt file with following contents:
abc
I made the file with Notepad and saved it in UTF-8. Calling the following function with "abc" from Scala Interpreter yields false The function searches the txt file with the string+final character of file.
def isWordKnown(word: String):Boolean={
val inputStreamFromKnownWordsList=new FileInputStream("D:\\WordTracker\\new english\\test.txt")
var stringWriter=new StringWriter()
IOUtils.copy(inputStreamFromKnownWordsList,stringWriter,"UTF-8")
val knownWordsString=stringWriter.toString()
val endOfLine=knownWordsString.substring(knownWordsString.length()-1, knownWordsString.length())
return knownWordsString.contains(word+endOfLine)
}
|
36ae864346bbf6628323844a6981a0b7cdc17a236a43b5871d0c1bedbff42bad | ['ffd0b393b6a2469d9ea2556b300e99f3'] | i'm trying to read some excel files with phpexcel, which works ok so far. phpexcel is a bit too clever though, and removes leading zeros from my cells. i guess i need to tell it to treat the cell as a text string, not as general or number. but i've failed. i even found threads on stackoverflow about this but the suggested solutions simply wouldn't work.
below is a snippet of the stuff i'm working on.
foreach(@$objWorksheet->getRowIterator() as $row){
$cellIterator = $row->getCellIterator();
$cellIterator->setIterateOnlyExistingCells(false);
foreach($cellIterator as $cell){
#$objWorksheet->getStyle($cell->getCoordinate())->getNumberFormat()->setFormatCode('@');
$cells[] = $cell->getValue();
}
}
any idea? i don't want to limit myself to only read numeric content, as i don't have any control over what the users will upload. treating everything as strings would be perfect.
/peder
| 93488ccffa26b3021f09948db334078bbe92e507e636d45f9a781a5880ae91d7 | ['ffd0b393b6a2469d9ea2556b300e99f3'] | i have written a daemon to fetch some stuff from mysql and make some curl requests based on the info from mysql. since i'm fluent in php i've written this daemon in php using System_Daemon from pear.
this works fine but i'm curious about the best approach for connecting to mysql. feels weird to create a new mysql connection every couple of seconds, should i try a persistent connection? any other input? keeping potential memory leaks to a minimum is of the essence...
cleaned up the script, attached below. removed the mysql stuff for now, using a dummy array to keep this unbiased:
#!/usr/bin/php -q
<?php
require_once "System/Daemon.php";
System_Daemon<IP_ADDRESS>setOption("appName", "smsq");
System_Daemon<IP_ADDRESS>start();
$runningOkay = true;
while(!System_Daemon<IP_ADDRESS>isDying() && $runningOkay){
$runningOkay = true;
if (!$runningOkay) {
System_Daemon<IP_ADDRESS>err('smsq() produced an error, '.
'so this will be my last run');
}
$messages = get_outgoing();
$messages = call_api($messages);
#print_r($messages);
System_Daemon<IP_ADDRESS>iterate(2);
}
System_Daemon<IP_ADDRESS>stop();
function get_outgoing(){ # get 10 rows from a mysql table
# dummycode, this should come from mysql
for($i=0;$i<5;$i++){
$message->msisdn = '070910507'.$i;
$message->text = 'nr'.$i;
$messages[] = $message;
unset($message);
}
return $messages;
}
function call_api($messages=array()){
if(count($messages)<=0){
return false;
}else{
foreach($messages as $message){
$message->curlhandle = curl_init();
curl_setopt($message->curlhandle,CURLOPT_URL,'http://yadayada.com/date.php?text='.$message->text);
curl_setopt($message->curlhandle,CURLOPT_HEADER,0);
curl_setopt($message->curlhandle,CURLOPT_RETURNTRANSFER,1);
}
$mh = curl_multi_init();
foreach($messages as $message){
curl_multi_add_handle($mh,$message->curlhandle);
}
$running = null;
do{
curl_multi_exec($mh,$running);
}while($running > 0);
foreach($messages as $message){
$message->api_response = curl_multi_getcontent($message->curlhandle);
curl_multi_remove_handle($mh,$message->curlhandle);
unset($message->curlhandle);
}
curl_multi_close($mh);
}
return $messages;
}
|
955984561b77f2b8be1be4cc91e154ffdb5b1237233fa0eb7245f6b034686376 | ['ffd6baa7fdea4b81b3141c04f85aec54'] | I'm trying to connect to Zoho CRM API to import data into PowerBI and I am receiving an error after logging into Zoho through my custom connector, I hope you can help as my connector seems 90% complete, just missing the final step! (code below).
Error message: [DataFormatError] We couldn't parse your query string as it was improperly formatted
// This file contains your Data Connector logic
section Zoho_Connector___V1.1;
// TODO: add your client id and secret to the embedded files
client_id = "XXXXX";
client_secret = "XXXXXX";
redirect_uri = "https://oauth.powerbi.com/views/oauthredirect.html";
windowWidth = 800;
windowHeight = 800;
//Oauth base url for
OAuthBaseUrl = "https://accounts.zoho.eu/oauth/v2/auth?";
[DataSource.Kind="Zoho_Connector___V1.1", Publish="Zoho_Connector___V1.1.Publish"]
shared Zoho_Connector___V1.1.Contents = () =>
let
navTable = Web.Contents("https://www.zohoapis.eu/crm/v2/Leads")
in
navTable;
// Data Source Kind description
Zoho_Connector___V1.1 = [
Authentication = [
// enable both OAuth and Key based auth
OAuth = [
StartLogin = StartLogin,
FinishLogin = FinishLogin,
Refresh=Refresh
]
],
Label = Extension.LoadString("DataSourceLabel")
];
// Data Source UI publishing description
Zoho_Connector___V1.1.Publish = [
Beta = true,
Category = "Other",
ButtonText = { Extension.LoadString("ButtonTitle"), Extension.LoadString("ButtonHelp") },
LearnMoreUrl = "https://powerbi.microsoft.com/",
SourceImage = Zoho_Connector___V1.1.Icons,
SourceTypeImage = Zoho_Connector___V1.1.Icons
];
// OAuth2 flow definition
//
// Start Login thorugh OAUTH
StartLogin = (resourceUrl, state, display) =>
let
AuthorizeUrl = OAuthBaseUrl & Uri.BuildQueryString([
scope = "ZohoCRM.modules.all",
client_id = client_id,
redirect_uri = redirect_uri,
response_type = "code",
state = state,
access_type = "online"])
in
[
LoginUri = AuthorizeUrl,
CallbackUri = redirect_uri,
WindowHeight = windowHeight,
WindowWidth = windowWidth,
Context = null
];
// Finish Login through OAUTH
FinishLogin = (context, callbackUri, state) =>
let
Parts = Uri.Parts(callbackUri)[Query]
in
TokenMethod(Parts[code], "authorization_code");
TokenMethod = (code, grant_type) =>
let
Response = Web.Contents(OAuthBaseUrl & "/token", [
Content = Text.ToBinary(Uri.BuildQueryString([
grant_type = "authorization_code",
client_id = client_id,
client_secret = client_secret,
redirect_uri = redirect_uri,
code = code
]
)),
Headers=[#"Content-type" = "application/x-www-form-urlencoded",#"Accept" = "application/json"]]),
Parts = Json.Document(Response)
in
Parts;
Refresh = (resourceUrl, refresh_token) => TokenMethod(refresh_token, "refresh_token");
Zoho_Connector___V1.1.Icons = [
Icon16 = { Extension.Contents("Zoho_Connector___V1.116.png"), Extension.Contents("Zoho_Connector___V1.120.png"), Extension.Contents("Zoho_Connector___V1.124.png"), Extension.Contents("Zoho_Connector___V1.132.png") },
Icon32 = { Extension.Contents("Zoho_Connector___V1.132.png"), Extension.Contents("Zoho_Connector___V1.140.png"), Extension.Contents("Zoho_Connector___V1.148.png"), Extension.Contents("Zoho_Connector___V1.164.png") }
];
Thank you!
| 5d4059338487f3a3aaee53c1530d14da6885deaa155e52ca96c3190b6f93cfd4 | ['ffd6baa7fdea4b81b3141c04f85aec54'] | I'm currently developing a Azure solution for one of my managed service clients.
we are developing a power bi service for their Azure backup/ azure recovery.
we are looking to host the whole process in our own azure environment, however we cannot get the data from A) their recovery vault logs into B) our Azure environment.
Anyone have any ideas on how to move data from their environment into our environment storage?
thank you
|
e6a83df34ada1bbaa6736e070d4d4c2df7d38c39a8605cbb7a78e15b43520c05 | ['ffd8e7ebb5dd4bc7b388c7919d99d6c4'] | I have a table view with a bunch of sections in it. I want to change the text of the sections to make it smaller and give it more character spacing.
I have overridden the following method where I change the .textLabel property of the UITableViewHeaderFooterView object:
func tableView(_ tableView: UITableView, willDisplayHeaderView view: UIView, forSection section: Int) {
if let header = view as? UITableViewHeaderFooterView {
header.textLabel?.attributedText = header.textLabel?.text.flatMap {
return NSAttributedString(string: $0, attributes: [
.kern: 1.15
])
}
header.textLabel?.font = header.textLabel?.font.withSize(10)
}
}
This works, but the label isn't wide enough for the added spacing between the characters. I tried calling .sizeToFit on both the header and the textLabel but it didn't work. I also tried changing the frame manually but that didn't work (the frame didn't update with my values for some reason.) How do I make the textLabel wider so that the text with the added character spacing can fit into it?
| e25da9ed4aeb8834a1462d992d4cb645bea61dc78d6fbd64e80ce056af0064a2 | ['ffd8e7ebb5dd4bc7b388c7919d99d6c4'] | I have a TabView with three tabs, one of which contains a map view that's implemented like this:
struct MapView: UIViewRepresentable {
let region: MKCoordinateRegion
let animatedRegion: Bool
func makeUIView(context: Context) -> MKMapView {
let mapView = MKMapView(frame: .zero)
mapView.delegate = context.coordinator
mapView.showsUserLocation = true
mapView.setRegion(region, animated: animatedRegion)
return mapView
}
func makeCoordinator() -> Coordinator {
Coordinator(self)
}
func updateUIView(_ mapView: MKMapView, context: Context) {
}
class Coordinator: NSObject, MKMapViewDelegate {
var control: MapView
init(_ control: MapView) {
self.control = control
}
}
}
The tab view is implemented like this:
TabView(selection: $selection) {
MapView(/* params */)
.tabItem {
Image(systemName: "1.square.fill")
Text("map")
}.tag(1)
Text("Screen #2")
.tabItem {
Image(systemName: "2.square.fill")
Text("2")
}.tag(2)
Text("Screen #3")
.tabItem {
Image(systemName: "3.square.fill")
Text("3")
}.tag(3)
}
The problem is that the makeUIView(:context) method is executed every time I switch back to the map tab from one of the other two tabs. It appears that the underlying MKMapView instance is deallocated when I switch to another tab, then it's recreated when I switch back. In UIKit it doesn't rerender the whole view like that. Am I doing something wrong, or is there anything I can do to make sure that the underlying MKMapView instance is retained when I switch back so that it doesn't have to recreate it every single time?
|
e8854e95ad434f9f74240fd45d772e3d4af189041a6c6790cbb11a908c8ca7d2 | ['ffe4e54b45af4315b438484e687a82e3'] | You can find the ANTLR4 grammar for the profiler output here: Link.
The commercial edition of the OpenEdge plugin for SonarQube already has a code coverage functionality. Here is an example of the code coverage on newly committed code in a Git repository (that's a demo project): Link
Disclaimer: I work for Riverside Software
| cbfa833fc36eb3dc7722013d2ca74668d80fae373d7fa82a12a8ca6d1f6747b1 | ['ffe4e54b45af4315b438484e687a82e3'] | First, you have to know that Proparse doesn't give access to every detail of the preprocessor. That said, the method unit.getMacroGraph() will give you access to the visible part of the preprocessor, so that's a good starting point.
If you're looking for usage of given preprocessor variable, you can search for NamedMacroRef instances pointing to the right MacroDef object (with NamedMacroRef#getMacroDef()#getName()), and the right value.
In a old-style for-each loop:
for (MacroRef ref : unit.getMacroSourceArray()) {
if ((ref instanceof NamedMacroRef)) {
if ("opts".equalsIgnoreCase(((NamedMacroRef) ref).getMacroDef().getName())
&& "A".equalsIgnoreCase(((NamedMacroRef) ref).getMacroDef().getValue())) {
System.out.println("OPTS variable usage with value 'A' at file " + ref.getFileIndex() + ":" + ref.getLine());
}
}
}
On this file:
&global-define opts a
&IF "{&opts}" = "A" &THEN
MESSAGE "DEPRECATED CODE".
&ENDIF
&undefine opts
&global-define opts b
&IF "{&opts}" > "A" &THEN
MESSAGE "OK CODE".
&ENDIF
This gives:
OPTS variable usage with value 'A' at file 0:2
So you don't have access to the expression engine, but I think that the current API is enough for what you want to do.
You can then report the issue with SonarQube with OpenEdgeProparseCheck#reportIssue()
|
67172c0c57347597a150766d3de0e2ad7ad97ff6f5b5389052a0c37e2a805ef6 | ['ffe945464bea4b9c959734f11c046f76'] | Good day All,
I have this error during data store plugin adding on amplify initialization.
com.amplifyframework.AmplifyException: Unknown/bad category type: dataStore
I have added the code i believe is pertinent, please ask for more if need it, have follow documentation as good as possible.
Thanks !!
Android logs
2020-04-17 18:58:55.797 <PHONE_NUMBER>/com.bakeano.htejobs E/bakeanoMessage: Amplify adding plugins Exception: Unknown/bad category type: dataStore
com.amplifyframework.AmplifyException: Unknown/bad category type: dataStore
at com.amplifyframework.core.AmplifyConfiguration.forCategoryType(AmplifyConfiguration.java:4)
at com.amplifyframework.core.Amplify.configure(Amplify.java:16)
at com.amplifyframework.core.Amplify.configure(Amplify.java:1)
at com.bakeano.htejobs.MyApplication$1.onResult(MyApplication.java:36)
at com.bakeano.htejobs.MyApplication$1.onResult(MyApplication.java:23)
at com.amazonaws.mobile.client.internal.InternalCallback.call(InternalCallback.java:75)
at com.amazonaws.mobile.client.internal.InternalCallback.onResult(InternalCallback.java:62)
at com.amazonaws.mobile.client.AWSMobileClient$2.run(AWSMobileClient.java:596)
at com.amazonaws.mobile.client.internal.InternalCallback$1.run(InternalCallback.java:101)
at java.lang.Thread.run(Thread.java:762)
Android Application Class (MyApplication.java)
package com.bakeano.htejobs;
import android.app.Application;
import android.util.Log;
import com.amazonaws.mobile.client.AWSMobileClient;
import com.amazonaws.mobile.client.Callback;
import com.amazonaws.mobile.client.UserStateDetails;
import com.amplifyframework.api.aws.AWSApiPlugin;
import com.amplifyframework.core.Amplify;
import com.amplifyframework.core.model.ModelProvider;
import com.amplifyframework.datastore.AWSDataStorePlugin;
import com.amplifyframework.datastore.generated.model.AmplifyModelProvider;
public class MyApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
// AWSMobileClient initialization
AWSMobileClient.getInstance().initialize(getApplicationContext(), new Callback<UserStateDetails>() {
@Override
public void onResult(UserStateDetails result) {
try {
// AWS Amplify datastore plugin
ModelProvider modelProvider = AmplifyModelProvider.getInstance();
Amplify.addPlugin(AWSDataStorePlugin.forModels(modelProvider)); <--- Error line
// AWS Amplify api plugin
Amplify.addPlugin(new AWSApiPlugin());
// AWS Amplify configure
Amplify.configure(getApplicationContext()); <--- Exception line
} catch (Exception e) {
Log.e("bakeanoMessage", "Amplify adding plugins Exception: " + e.getMessage(), e);
}
}
@Override
public void onError(Exception e) {
Log.e("bakeanoMessage", "AWSMobileClient init Exception: " + e.getMessage(), e);
}
});
}
}
Amplify status from amplify-cli amplify status
Current Environment: dev
Category | Resource name | Operation | Provider plugin
-----------------------------------------------------------------
Api | amplifyDatasource | No Change | awscloudformation
Auth | someResourceName | No Change | awscloudformation
GraphQL endpoint: https://somekey.appsync-api.us-east-1.amazonaws.com/graphql
GraphQL API KEY: someotherkey
| 55a5e24c9313003b44535c5830b4b620492eaebe17520e0cca7d25574183e299 | ['ffe945464bea4b9c959734f11c046f76'] | Good day all,
I am implementing AWS Amplify DataStore for android following the docs, and basically i get this error when i try to initialize the data store plugin on amplify according to this part of the doc:
Cannot resolve symbol 'AmplifyModelProvider'
You can find code from my gradle files and my application class below.
I am not an android expert, but i believe this is because of a missing dependency or i am doing something wrong during initialization or assignation of the ModelProvider. But i cant find any information on internet about this issue or any possible solution.
Thanks in advance for your help.
Steps to reproduce:
Create new android project
Install Amplify CLI, using npm, npm install -g @aws-amplify/cli
Configure amplify, amplify configure
On new android project root folder, run amplify init, amplify init
On new android project root folder, run amplify add auth, amplify add auth, adding authentication
Create android application class
Add android application class to AndroidManifest.xml
Try to add data store plugin to amplify on onCreate method of the application class
I already try the following solutions:
Clean project
Rebuild project
Run Make Project
Close and open again Android Studio
AndroidManifest.xml:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.bakeano.htejobs">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:name=".MyApplication"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
MyApplication.java
package com.bakeano.htejobs;
import android.app.Application;
import android.util.Log;
import com.amazonaws.mobile.client.AWSMobileClient;
import com.amazonaws.mobile.client.Callback;
import com.amazonaws.mobile.client.UserStateDetails;
import com.amplifyframework.api.aws.AWSApiPlugin;
import com.amplifyframework.core.Amplify;
import com.amplifyframework.core.model.ModelProvider;
import com.amplifyframework.datastore.AWSDataStorePlugin;
public class MyApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
// AWSMobileClient initialization
AWSMobileClient.getInstance().initialize(getApplicationContext(), new Callback<UserStateDetails>() {
@Override
public void onResult(UserStateDetails result) {
try {
ModelProvider modelProvider = AmplifyModelProvider.getInstance(); // Error on this line !!!
Amplify.addPlugin(AWSDataStorePlugin.forModels(modelProvider));
Amplify.addPlugin(new AWSApiPlugin());
Amplify.configure(getApplicationContext());
} catch (Exception e) {
Log.e("bakeanoMessage", "Amplify adding plugins Exception: " + e.getMessage(), e);
}
}
@Override
public void onError(Exception e) {
Log.e("bakeanoMessage", "AWSMobileClient init Exception: " + e.getMessage(), e);
}
});
}
}
Module Gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
applicationId "com.bakeano.htejobs"
minSdkVersion 23
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
testImplementation 'junit:junit:4.13'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
// androidx constraint layout
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta4'
// aws amplify framework core
implementation 'com.amplifyframework:core:0.10.0'
// AWSMobileClient
implementation 'com.amazonaws:aws-android-sdk-mobile-client:2.16.11'
// aws amplify for the drop-in ui
implementation 'com.amazonaws:aws-android-sdk-auth-userpools:2.16.11'
implementation 'com.amazonaws:aws-android-sdk-auth-ui:2.16.11'
// aws amplify api
implementation 'com.amplifyframework:aws-api:0.10.0'
// aws amplify data store
implementation 'com.amplifyframework:aws-datastore:0.10.0'
}
Project Gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.2'
// amplify tools gradle plugin
classpath 'com.amplifyframework:amplify-tools-gradle-plugin:0.2.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
// applying the amplify tools plugin
apply plugin: 'com.amplifyframework.amplifytools'
allprojects {
repositories {
google()
jcenter()
mavenCentral()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
|
315c9258ddc7f7faae8d760bff4b5c585eb392289c595f33687a847448dc238e | ['ffece4cb3cde4b70a76de8ee755ceced'] | Try this:
private PaintType getNegativePaintType(String hexa) {
//hexa = "#28cb43";
int color = Color.parseColor(hexa);
return new SolidColor((color & 0xFF000000) | (~color & 0x00FFFFFF));
}
The point is to cut off the inverted alpha value (~color & 0x00FFFFFF) and then apply (|) the original (color & 0xFF000000).
Or this:
private PaintType getNegativePaintType(String hexa) {
//hexa = "#28cb43";
int color = Color.parseColor(hexa);
int invertedColor = ~color;
return new SolidColor(Color.argb(Color.alpha(color), Color.red(invertedColor), Color.green(invertedColor), Color.blue(invertedColor)));
}
| 2dbce4b3d4b57ec8d0ee52d6bb027f99f2443a066c79eb40bb58737f0c3b0368 | ['ffece4cb3cde4b70a76de8ee755ceced'] | The requirement is to send form data produced by website visitors over JMS (ActiveMQ most probably) from Tomcat. There are two competing ideas - one would utilize an intermediary store and a thread pool to send to the queue (and attempt resend if posting to JMS fails for some reason), and the other is to just try sending the payload directly over JMS from the thread that handles the visitors' post request - and fail the request if the JMS posting fails for some reason.
The second option seems better to me, as I think it is an overkill to add an intermediary store in front of a message queue - the message queue itself should be the intermediary store. Does that sound right?
|
6b2f3fdd587f5041ed8023339afb783517e5c9d82a34b64a4794e9e83a64b80e | ['fff1ad7b30f04c1496a2eb3f8b59728b'] | I'm using vb.net and was able to One play video on DISPLAY 1 or 2 or 3. But I want to play 2 videos at the same time. And I want one to play on display 2 and the other at display 3. They don't have to start at the same time. But the goal is to play a video on DISPLAY 3 while there's already one playing on DISPLAY 2. I made a windows media Player on form 2, and another wmp on form 3. If I Play a video on form 2 to be displayed on display 2, there's no problem. But when I called another task to play another video on form 3 to be displayed on display 3, It opens form3 but doesn't play the video on windows media player that's in that form. Why?
| e01150346de74d514462e85945b76fdfe0291a908c561b4adbe5325284029850 | ['fff1ad7b30f04c1496a2eb3f8b59728b'] | I'm trying to get the title of an MP3 which is in the properties. For example the file name is "iasn_E_052" but the song title is "Guard Your Heart". Getting the file name is easy but the song title is I don't know how. I'm using vb.net visual studio 2013.
|
7d73d28e4ba003b7a425cfc7245be8da11d318f552d4b5418f7dc965d0deeecd | ['fff236977033411eab9e07a6eda9ae70'] | I'm posting the answer here hoping that will help anyone that encounters a similar issue. A post on another site indicated that these boards are known to be problematic.
After some digging, I came up with the schematics of this part of the mainboard :
I'm not an electronics genius, but clearly it's not the capacitor; so that leaves the pull-up resistor or the microcontroller.
Since the printer is already unusable, no harm in trying to replace the resistor, which is located just next to the connectors; for the bed it was the second from left, but if you encounter the same issue with another input, you may need to locate the proper one.
Make sure you have the proper tools and knowledge for removing and soldering SMD components; in my case it was a 4k7 resistor in 0805 footprint.
Bottomline : replacing a less-than-one-cent resistor saves a month of waiting for the delivery of a $25 board.
| 860cca776461822a8b5c23280e8b042afa07edd561cd7dabb520cb6ddc9bd4f6 | ['fff236977033411eab9e07a6eda9ae70'] | There could be a variation of <PERSON> idea he posited in Look to Windward. Here, he says:
... built purposefully to have no cultural baggage -- known as a 'Perfect
AI' -- will always and immediately choose to Sublime, leaving the
physical plane
The variation could be that the villain built the perfect AI. Then the AI basically spends his time meditating on the perfect evil acts, and decides that executing on the ideas would only devaluate the perfect evil.
|
41d551ffd3b2f47add8cb9e8a77f21ec5e5c25a1e576e55b599552afc32db88a | ['00147f12cd7c4021affdd3c1a730b8fb'] | This is rich coming from Catholic bishops, who have looked the other way when a priest serially molests children. Also the premise that having sex with member of same sex is grounds for dismissal, since it is against their religion is spurious. It assumes that they in fact are having sex, and they could be celibate. Besides, what they do behind closed doors in their own hours is their business, unless they are breaking the law. | 800e133cdf8747407f57ffded8443a714b98932580ca0e8adc818318bb3438b9 | ['00147f12cd7c4021affdd3c1a730b8fb'] | "That which does not kill us, makes us stronger" <PERSON>
That's the lesson of the day for us from <PERSON>. But i don't feel stronger, I feel scared, because we know that it can kill us, just not who, when and why? Maybe in a year, when I have herd immunity, if I survive I will perhaps feel stronger. |
0e1f9059441f464f609a370beba970fa8fcb6026cb89cc90db36d28ccb5e6195 | ['003bf9545335440e9da555410fe4093d'] | <PERSON> The tRump library will be housed in a bungalow at Mama Lego, and will be open only to those willing to pay a large entrance fee. But people will pay it - some former supporters who got rich off of his presidency, and others looking for a really good laugh. | 550c1f772819b2a31b239e2e2b405ff12dcb7e8c461bba62619404703ed6acf7 | ['003bf9545335440e9da555410fe4093d'] | This is spot on. I have long held that <PERSON> had as much influence in sending America down the rabbit hole as any real person, with his "Greed is Good" speech. Another speech that damaged America was <PERSON> pep talk - "Winning isn't everything, it's the ONLY thing".
Politics flows downstream from culture. Our country is failing politically because we have become culturally bankrupt. |
d0cc0df96209e60d5ff5a36dae44c20772977dd93b332eb5842f62fedf57d673 | ['003eb5f000a849f5985e564771566b10'] | Really sad after reading this story. I have really loved their show, family and her sense of style. And, I’m a Gay, married Dad of a 28 year old Nurse at a local hospital. After reading about their religious beliefs about my family, I’m choosing not to watch or buy from them. I was raised to include and celebrate people of different races, genders, sexual orientations and faiths and to defend their opportunities to get their share of the American Dream. | e61c209e2a3ab6ffa02c60beb6d0b4da9dc0b66aa6183d7d479ca6e950b6edc5 | ['003eb5f000a849f5985e564771566b10'] | The situation is very difficult for all parents. That said, the drama that the Times and the parents in the article bring to the article is catastrophic. Take it one day at a time and pool your resources to do better. Hearing property-owning families in the Bay Area complaining that having 4 families overseeing at home schooling as a matter of “survival,” was really a smart adaptation. The more drama that gets whipped up, the worse everyone’s mental health becomes |
e49e64eaa6d67551465f78584633cc47d37b1449c5023e47ebb6541f37e028c6 | ['0080dfde9ba84dea9a8483db532df6da'] | I have a few real problems with the house itself. First, I would never want to have my small child's bedroom so far away from my own. I suspect that <PERSON>'s actually in her parents' room a lot of nights.
The second problem might be based on a misunderstanding.
The article and photos make it seem like the only shower is in the primary suite, in the addition. This seems awkward for guests who want a shower in the morning. (plus, someday <PERSON> will be bathing herself!)
I agree with everyone else that calling the original a "tiny" house is ridiculous. So happy to see other people calling this out! | 84e4706adb103b9eeca5bab32abe05fff109088c68660655c88fc62c21ee5598 | ['0080dfde9ba84dea9a8483db532df6da'] | I'm furious with the way the DNC allowed <PERSON> to buy his way into the debates. I'm open to the possibility that <PERSON> will be nominated relatively fairly--that a lot of voters really will like him. In that case, sure, I'll vote for him.
But if I get the impression that things aren't fair--if the DNC continues to put a big thumb on the scales to favor <PERSON>, if the convention seems fishy--then I'll go with a third party. The Democratic Party seems focused on servicing its wealthy donor class. We need a party that genuinely tries to serve the 99% (like the Democrats used to do). |
4df41bdcd94a53a202425c802c915cda835d2aeb9ba8ac2b821f957163f6efbe | ['008412d92d7842c9b5982ed24e2a3d9b'] | @TS , I think it's safe to say that most generalities like that are an expression of concern, and even if they annoy you, can be accepted as such.
If it's someone you are close to, and it continues to annoy you, by all means, simply tell them that. | 5d5f12942aae2e58d8b0c64582184ad001a03e5a8821af2a952089f1e946713b | ['008412d92d7842c9b5982ed24e2a3d9b'] | <PERSON>, the courageous ones who objected to the war as patriots didn't wimp out with "bone spurs." They took the consequences of their actions. Some served in the medical corps. Some left their homes and families and went to Canada, barred from returning until <PERSON> extended amnesty. Some went to jail. Some served in other ways. |
6090e637520d2655ffec0e62c38f6cc10a0c5225775f49211899a5f808c4a558 | ['00847717861343b7b91ab69194c044d2'] | I invite the New York Times to look into Portugal and the Portuguese media.
For years, the media was used to promote <PERSON>. Political power was happy to have her money, all the while everyone knew the money was dirty.
This whistle-blower --- <PERSON> --- is well known in Portugal. He was jailed and harassed after thousands of emails from a soccer club --- Benfica --- were leaked. In those emails you could see bribery and corruption and match fixing.
Instead of investigating and prosecuting the soccer club, the Portuguese authorities went after <PERSON>. The media, not wanting to after their golden goose (the soccer club) actively contributed to defame <PERSON>.
Fast forward to the "Luanda Leaks". The media in Portugal is now extremely happy to use the leaks and are doing gymnastic works to both condemn him for leaks about Benfica, while using his leaks about Angola.
Look into how Portugal, in the EU, is still a country where corruption is rampant and at all levels. | 6afa457f286cd18b5b7c4856a071a1d79fd2dbe982be905b914d60da0cdbffc1 | ['00847717861343b7b91ab69194c044d2'] | Translating what <PERSON> above is trying to say:
<PERSON> uncovered a lot of dirt on Portugal's biggest soccer club. Portuguese authorities quickly shoved it under the rug and jailed <PERSON>.
If you want to know why Portugal is one of the least developed countries in Europe, look no further than this case. The passion for a soccer club (Benfica) leads millions to condone corruption and go after the one who denounces the crimes. |
77c0c2601f4c2a5eadd46e58804be802de41f198bc46d9342871d83e7d9a5ed2 | ['00fea75b1be740119bb6ed6b2e2755c1'] | It's a problem of the city's own making. The hack license bidding process created this mess, and must be discontinued immediately! Find a reasonable fee for a license and reimburse those who paid more for theirs.
And if that works, come to Jersey and help us to fix our equally arcane liquor license laws! | 8ee3fcea1d16f0dd28302f4adff217af11ec381be6da12f7de4ed1d1f225b6bc | ['00fea75b1be740119bb6ed6b2e2755c1'] | More for me and my family. If they don't want it, we'll happily move up towards the front of the line. It's a sad commentary, but for those of us in lower prioritization categories, we'll take whatever scientifically-proven advantage we can to protect our families. Darwinism writ large. |
93c9e7fb16cac76761514f99c8a2c59c51183f01447f9108781627add776df87 | ['016e77ecc2f24127aa67e13dd44e487d'] | @Tim If <PERSON> had been a "team" player, like the rest of the candidates did this week, and dropped out endorsing <PERSON>, <PERSON> would have handily won TX, MN, MA, and ME. Similarly if the other candidates hadn't dropped out and endorsed <PERSON> this also would have been a <PERSON> sweep.
<PERSON> completely burned the bern here. | 0ba48e115b23ffacf3f148477f8ca0a3bb653187a02835be84d27094a1c7e573 | ['016e77ecc2f24127aa67e13dd44e487d'] | <PERSON> The only thing that will stop this from becoming an epic disaster in the US would be if companies, in mass, allow there employees paid leave and/or work from home options starting right now till whenever the threat is gone.
This will of course not happen, probably not even in the slightest. Because the stock market. |
fe8c5ddd7a4de4e4fb17340f3c711597afd2b9b4118efa5989b18ed1c95a2a73 | ['019ac6f3351c4fa280f2436dd1d01efc'] | @Giant Squid
I understand exactly what your saying.(Im a dual citizen of Canada and the USA) Never in my 56 years have I seen a President of the United States pick fights with Canada! I was embarrassed as an American! He basically called PM <PERSON> the "antichrist" in a press conference he gave after meeting "<PERSON>". He thinks Dictators are wonderful ,because they control their people, and Countries of the G7 for example are worthless to him.Former VP <PERSON> already knows our allies, and their leaders.Like other classy people, he acts like a guest when he is in another Country.He does not BULLY himself to the front for a photo opp! | 6ba6353e50e8ba587695cce66910575fea9f72beae9f1405c927fa92cf21919e | ['019ac6f3351c4fa280f2436dd1d01efc'] | <PERSON>
YEs ,I did!
Bless you for opening up to your "medical misfortunes".You are a survivor, in many ways.I truly truly think that a President <PERSON> (that sounds so comforting!) will let the Scientists and specialists like Dr <PERSON>,speak FREELY, and that the USA will know what to expect with Covid(actually have a plan) and also study the LONG Haul effects of this horrible disease. I which you all the best! |
0b3e4d8ca1434e0640f30042252b18aa7d0e0873aff657562d6365cee252701d | ['01b79059b80f42ad892c43b9c653e6b4'] | <PERSON>, maybe plenty of Americans buy into some of it, but many more have a yearning and desire for some real grown up leadership - which <PERSON> can clearly provide in spades, I have to believe this, there is no point in being that dark, and I , for one, must keep hope alive. | 97031d22da8e7050919c2dadf21d07c416881c6ae91bf53e422b92a5082368b7 | ['01b79059b80f42ad892c43b9c653e6b4'] | <PERSON> ph.d. Millions of Americans try and survive on the minimum wage - which in some states is a state low as $7.25 an hour- and that is before taxes! These are you store shelf stockers, our cashiers, your slaughterhouse workers and of course many more- but our supply chain depends dearly on these people also, and we have left them shamefully out in the cold during this existential crisis.Many do not even have the credit to have a credit card to charge a vacation that they could never afford on. |
e8d1705ad6df20658a76befa95fd13910891fa352724ffd41fdb91c36d95c531 | ['01b8426615f641b6bcd71316f4e85bfd'] | I believe <PERSON> would be a wonderful choice. I have always loved <PERSON> and would certainly support a very high cabinet position. She is truly a wonderful, brilliant, fascinating woman who I would trust her with my grandchildren. <PERSON> is a rising star. She could be a U.S. Attorney General and more. Her future is bright and it is my hope to see her career skyrocket. | c2c403ed7e6ebcc5ec5c2da69af58f60582eac47fec62d4861eab0853ca162b6 | ['01b8426615f641b6bcd71316f4e85bfd'] | <PERSON> will do what is right for working families. That alone scares the dickens out of Republicans.
His lifetime voting record in the Senate is proof positive of the knowledge he has. The right knowledge (taking care of working families) is the reason <PERSON> will be a great President. |
8ec0709cb431fff7bfbfe437aadcb3ee939372fb0570eccdec68913584ad3939 | ['020d110c24964d6d8c6afb403a555ad9'] | This reminds me of a religious fundamentalist upbringing. No rock music, no movies with violence and sexually suggestive scenes. I'm not criticizing someone's choice to limit what comes into their home, or to closely monitor what their kids see.
As an adult, I am able to apply viewer discretion, and I don't expect the entertainment I consume to be a model for how I should think or behave. Suggesting otherwise is a secular form of religious fundamentalism applied without consent. | 965b139e2f7da36099d0097fe7c2b835a1515a59ba9fbef6be7a54880971e56e | ['020d110c24964d6d8c6afb403a555ad9'] | What teenage kid wouldn't relish the opportunity to use"alternative facts"? "I understand that curfew was an hour ago, but to cite alternative facts, I've already been home for two hours."
With previous administration firings/resignations, they've managed to find someone worse to fill the role. It's hard to imagine anyone worse than her doing that job. |
6fb0d56e593192644feee0725ed619ece35391dc9ad61bfb28d403525a86ce07 | ['02556438c5f34bf7a385cf94fc53b726'] | What may be needed is a "wall of journalists", who objectively view these atrocities by the federal thugs, and write about this over and over again until it really sinks in to the American public what our government is doing. This is not about protecting anything. As stated in <PERSON>'s article, it is about creating chaos so we'll pay less attention to the real crises in our midst. The one that <PERSON> is unable to handle. It is, of course, all about creating video footage for future political ads. We should be ashamed that <PERSON> was elected in the first place. Now it's time to replace him. | 37d4360de27df0b9e287b40935ef86eb9fc797e03660bb8993df4b655ae267eb | ['02556438c5f34bf7a385cf94fc53b726'] | In reading this enlightened article by <PERSON>, I am not surprised about the anger of many Chinese people with their leadership. For my own sake, I read it again and included <PERSON>'s name and Global Warming as the issue. We must realize that <PERSON> chooses to deny the human factor in warming, hence endangering all of humanity as the earth increases in temperature. I would blame <PERSON> as the Chinese are blaming their leadership. And, to me, the warming issue is even more serious, for obvious reasons. Without action, I don't see a solution. |
e827762aaf2ace8a3a95aa83d1326f7dc0b72a4713e3bc1fae8b07c679e50db3 | ['025761be27b1428d8938e81400bc8380'] | <PERSON>
I couldn’t agree more - it was public shaming that enforced societies norms in the past.
People were the sex they were born regardless of their feelings, bathroom choice was restricted to match your anatomy, biology mattered and if you got out of line you were fair game to be ridiculed until you corrected your behavior | 88d98d5b89039844070e771b637a2dafc49d412177604d8997697568690cf8e6 | ['025761be27b1428d8938e81400bc8380'] | I’m tired of hearing from this sanctimonious young lady. We need to focus on engineering out path out of the issues with the climate. Carbon scrubbing, desalination, population control and clean energy technologies are the way to fix this problem.
Pandering politicians will never bring about a solution.
Science is our salvation from this crisis. |
46b97c744e8ab088bf95c9b0391c367f708aeef47ffd73f96a2ad93b50f04a3c | ['029bd698e0774205b2c19c1e6899a58c'] | it looks like everyone in the photo is attending an auction or charity auction about plants. i think this because there is a man standing up in front of the crowd and pointing his finger out towards who have paper plates with numbers on them. also there are countless amounts of plants surrounding everyone and one woman who seems to be auctioning, is holding a plant in her arm. this auction may have also taken place before covid occured due to the lack of face masks every where and no social distancing happening. as well as the people in the photo seem to be conversating and are freely auctioning without any care. | 808417dbb6b8dc5d34fb753b6a466c4be7ac415eceb83cfe351aedd48ce1ea67 | ['029bd698e0774205b2c19c1e6899a58c'] | i think this kid is coming from his lunch period since he has a loaf of bread in his hand. maybe a pipe had burst inside of his school and they didn't want the kids to get wet or slip or become injured so they set up crates so help them get across the area. |
2d5e1b35d59d83b597ace1a7ffafa4932223bb8fdb34d755ead43366eb09bbf0 | ['02ffb73258294d6db3ac88dcc7e746f8'] | <PERSON> And yet, teaching the full inhumanity of this history can risk setting students up with a traumatizing victim-narrative. The laudable attempt to hold up a handful of heroes of resilience and success to counterbalance this narrative does not seem to answer this problem fully. Not to disagree with you, but there's a lot of tricky work to be done there. | 30d22d186a5f69f1b4eea9e3f0b26a95f50545db3e27fb3cf9c54a1bcd12b547 | ['02ffb73258294d6db3ac88dcc7e746f8'] | I notice in your video clips, the kids are basically in dogpiles. The biggest problem elementary teachers are having regarding safety is that the kids themselves do not understand what it takes to keep a safe distance. Your idea looks very compassionate on paper, but it is a false mercy. |
4e4aa3d54bbd48ca56af8bedd3d40018a2d1d9ddde1f8fa2301be4770ab74e2d | ['031400fddd85415f888c094a4f764caf'] | When my country, Vietnam, was name checked in the article, and here I am sitting in the US, I had to think for a moment if I was studying and living in the right country. I think I am but it does not change that this country is going through some serious reckoning.
144,000 Americans dead and the end is no where to be found.
I don’t blame Dr. <PERSON>. She is surrounded by idiots! I, too, would make a bad decision or two in my life if I wasn’t told not do it. The failure is not in the individual as always but in what got her there. <PERSON> maybe fired next week and <PERSON> gone in November but Americans must start immediately to undo the miseducation of the country.
A large part of this country has been proudly misinformed for way too long. High school educated citizens shouldn’t be advising or making decisions for the rest of the country, no less sending leadership to the White House. | c3e131eeee0a83eda8e53b9acef73b8984c062d51a0c037c0a172a01e2901bf0 | ['031400fddd85415f888c094a4f764caf'] | What we are seeing here is the every-man-for-himself approach. Some states meet some requirements, some do not meet one at all. No consistency.
Yet, they are all going for reopening. Why? Because they can. Because the federal government whose existence is to lead during cases like this has completely abdicated their duty.
A common theme for other countries who have succeeded so far in the fight against this pandemic is strength in national/federal leadership and the public trust. S. Korea and Germany are the two examples of this. The U.S. has neither the federal leadership nor the public trust. |
bd2b957809a6955e3cd35a9657d743a289984b36e6c3dd62add1f9155b31c8bc | ['033247a1ab9641a3bbc0ea0d72463481'] | @David
With more than a little help from Russia, don't you think?
Both in the disinformation and voter suppression tactics waged online by Russia, and the probable manipulation of the actual vote totals.
There were seven "toss-up" states on the eve of the election. <PERSON> "won" 6 out of 7, which statistically is only a 6 percent probability........And all 6 with a winning margin that just barely evaded the automatic recount hurdle........Imagine that kind of "luck"......Things that make you go "Hmmmmm"......The only "toss-up" state <PERSON> won was the smallest electoral prize, New Hampshire. Maybe just to throw people off the scent. | d1eaf26699b7b6f01d03ff544ad73c2e7f2761750a1eda917e5c01b2b0c94d86 | ['033247a1ab9641a3bbc0ea0d72463481'] | <PERSON>, I liked the main point of your opinion piece.
However, you seem constitutionally unable to avoid taking swipes at Democrats. And without merit.
You blame <PERSON> for what she hypothetically might do if faced with the same pandemic situation, basing it on what you think <PERSON> and <PERSON> have done wrong. That's quite a reach, don't you think?
And that our "economic woes" are due to "a lockdown strategy most avidly embraced by the president's critics". Seriously? You know who recommended this "lockdown" strategy? <PERSON>'s own government.
If <PERSON> hadn't tossed away the <PERSON> playbook regarding containing pandemics like Covid-19, and listened to the advice of experts in this field, we wouldn't have had these "economic woes", along with 110,000 deaths and counting.
I do blame <PERSON>. I also blame every Republican Congressmen for enabling him. And every person who voted for this national catastrophe of a President.
The "lockdown" strategy has been effective in slowing down transmission of this awful disease. Unfortunately, we are already seeing increases in Covid cases in many states that have "reopened".
You might change your perspective on the relative costs and benefits of maintaining what you term a "lockdown" if you were to take care of Covid patients first-hand, like I do, and watch them suffer, and die. |
db87feda5ee28aa029a1c17183be065be47345133b5dfd88ef66ac070f369065 | ['03622d7780944e9a85cf0dabab46c368'] | You may have an error in how you are calculating "daily growth rates" and "cases double every..." numbers in section 3.
The relationship between daily growth rate and doubling time in the table assumes that the daily growth rate is the growth rate of the total (cumulative) number of deaths. For example, (Durham-Chapel Hill numbers) a 43% daily growth rate means that if there had been 32 cumulative deaths up to April 27th, we'd expect there to be 13.76 (32*0.43) deaths on April 28th and 19.68 deaths (45.76*0.43) on April 29th. Deaths would more than double every 2 days. This lines up with your "Deaths double every 1.9 days" value in the table.
However, the daily growth rate in the table is *not* being calculated as the growth rate in the total (cumulative) number of deaths. It seems to be the growth rate of deaths compared to deaths over the last 1 week. To illustrate see below for Durham-Chapel Hill deaths:
Date New Cumulative grw rt vs prv wk rate vs total
04-11 1 3 50% 50%
04-12 0 3 0% 0%
04-13 0 3 0% 0%
04-14 1 4 50% 33%
04-15 0 4 0% 0%
04-16 0 4 0% 0%
04-17 3 7 150% 75%
04-18 0 7 0% 0%
04-19 1 8 25% 14%
04-20 0 8 0% 0%
04-21 1 9 20% 13%
04-22 10 19 200% 111%
04-23 2 21 13% 11%
04-24 1 22 6% 5%
04-25 3 25 20% 14%
04-26 4 29 22% 16%
04-27 3 32 14% 10%
Now averaging last 7 rows:
- grw rt vs prv wk: 42% (number in your table)
- rate vs total: 26% (number that should be in your table)
Please advise.
Thanks | 3a7612389db829070d17fc93bc64b11c4def3dfe01c80a63d193611f0ff3f61f | ['03622d7780944e9a85cf0dabab46c368'] | Thanks for making this tool. It's really helpful to be able to look at the data and charts for all of these different metro areas and compare them.
I'm curious about where the death data is coming from for a two of the metro areas.
1) Durham-Chapel Hill, NC. You show 10 deaths on April 22nd.
2) Providence, RI. You show somewhere over 100 deaths for April 25th.
I wasn't able to find any such large daily spikes when trying to source Providence,RI metro area or Durham-Chapel Hill metro area data myself.
Last question: Is the death data based on when the deaths occurred? or is it when the deaths were reported?
These two days in particular are driving Durham-Chapel Hill, NC and Providence, RI to the top of the 'Where Outbreaks Might Come Next' list.
Thanks! |
9717bb5fddd575c82ffaed56b514c19fa9d6d7833214dd9899b2f5a3ed828e85 | ['03913d014cba4bf286a8848396b00816'] | @Dactta So you are telling us he should have stayed in place where he knew it was impossible to win. Their entire strategy was to pressure him enough until he says the things they want to hear and be jailed until then.
If it was a different legal system, i would have agreed with you to ship him back but looking at the current japanese system, I'm going to have to disagree with that. | 66ddb26fb2abf615f92dfef60c3faa9e0ffdb6bb78b1b8e8271af0485aab5752 | ['03913d014cba4bf286a8848396b00816'] | @Steve Because Japan automotive is one of the most prominent and largest industries in the world and he wanted to develop his companies, and i don't understand, he had no problems with the country, until it basically tortured him, isolated him, and put him in an unfair trial. And everybody knew the problems of the legal system in Japan, this affair just shed more light into it. |
a8416ff2fc47ebdbc20fede5685f0c4fd3eefc213f5a5a380b1bb3752db7cf8e | ['03a892ce590742218d38c43c76cc9500'] | <PERSON> There is a point where we sadly have to admit that while neither you nor I want anything to do with the depravity of this administration, somehow this is who "we" are now to the world.
Measuring by <PERSON>, we are sociopaths. Measuring by <PERSON>, we are extortionists and conmen. Measuring by the Senate, we are lost. | 1a35eef13c890ec32b71f42c97391173f331f7ffcc4af29e261f7d230de497fc | ['03a892ce590742218d38c43c76cc9500'] | @Granny <PERSON> isn't speaking for me or to me. When <PERSON> leaves the race, I lose my voice for the rest of the election cycle. As do many others. Perhaps if <PERSON> chooses a much more inspiring VP I'll rouse myself. Regardless, you're asking for millions of Americans to lose their voice early in an election year that needs maximum energy from the Democratic side. You can't make people excited for <PERSON> simply by eliminating their candidate. |
cef2f5c13f92bb05d7833d219c260f11a7c5aa610a3c28a9c03f06f8168ceda0 | ['03cc16801a6149b289b6167a9769ff36'] | Oh, look our state and district senator, <PERSON>, made The New York Times. She doesn't deserve it.
I used to be fine with her. Then it turned to ambivalence. Now, my husband and I just can't stand her. And it's not her sidearm she's wearing in session or refusal to even consider working with the other side (both signs of a sadly limited mind). It's how after a few emails disagreeing politely with her, her staff now refuses to respond to any email my husband sends her office, saying we, quote, "Are not in her district." Which is really odd since on our district ballot last year she was the candidate that we made every point to vote against.
I wouldn't trust her as far as I could throw her if that's how she handles people who disagree with her and want an open discussion. | 434af7e811bc6ef7a349c544b55ce0210e9519d38aaf0cb0c7a6fe2a4a3b9cfa | ['03cc16801a6149b289b6167a9769ff36'] | Women can't rule the world. We're too busy angrily yelling at other women for being too thin (either naturally or not, doesn't matter. you're thin? you're part of the problem). Or we're too busy feeling bad about being overweight. And then ageism comes in and we're told we can't wear graphic t-shirts after age 30, yet the men's section in any given store is nothing BUT graphic t-shirts until the grave. So, maybe the skinny girls and the big girls should stop pointing fingers at each other, buy a bunch of graphic t-shirts, and plan our next move. Otherwise, looks like we're gonna keep spinning our wheels in outfits that are impractical, at best. |
a57cec9599969bc66036d8b49120e969ccfc7b1cf5281bfb0e8b52dbb56f1a9b | ['03d8439de060402bba3166bbfd5268ad'] | You stock up over time. Example: a product that you use regularly goes on sale - you buy two or three. Eventually, you have a stocked kitchen. Having a stocked pantry is important for a lot of reasons. For example, my fiancé and I have seasonal jobs. I start stocking up in January to make sure we have the essentials to get us through the summer. On some things, I make sure we always have one unopened item in stock. Such as peanut butter. I also baking items in stock. It’s easy. | 39ad42c8270f0cc0b7c2d0200c9381d7eae58852d52ed5d1de24ac11bc8dcf96 | ['03d8439de060402bba3166bbfd5268ad'] | It’s simple- Quarantines mean you can’t leave your home. Being prepared means having the supplies on hand to make it through the quarantine. My stocking up on toilet paper is just common sense, not fear. If I can’t leave my house, I need provisions in my home. Why are people questioning toilet paper stock ups but quiet about boxes of pasta disappearing from store shelves? |
8464ffc9fc64f2bfdae89ecc539841872d8a4511ab38ce1609a7bb352c4d0bc9 | ['0461ae9eaa8049229a8b98bdd9e5c63d'] | <PERSON> We ALL want more than just jobs. We ALL want to be safe. We ALL want the government to treat us with the highest of legal expectations and protect us according to our US Constitutional rights. A country where... the land was stolen from the indigenous people and then where those same people were continually attacked going on about 600 years or or so now through a campaign of genocide. A country where Africans were enslaved for 350+ years and then attacked through an ongoing campaign of apartheid with varying degrees of unhumanity and now milder but deadly institutional racism. We ALL want more than just jobs... Way bigger than that brother. | cb77b0a8314196b0786ad5026a9960dfdd45dfd37b173ce2a051540f026d8bee | ['0461ae9eaa8049229a8b98bdd9e5c63d'] | <PERSON> The bill was delayed because <PERSON> was lying as usual. He would agree to a deal then back out at the last minute time after time AND THAT is why it took 2 days or basically longer than it could have. You trump supports are delusional. <PERSON> lies constantly and has NO HONOR at all. I would love to have <PERSON> over <PERSON> any day and twice on Sundays and I am a progressive Democrat. At least with <PERSON> you knew he cared about people and was an actual Patriot. |
7c389e4527f656e3356649b4a08a084d40872747a791bd1ccf91404a25191ed5 | ['0581d9149f5042c19a2bf0cb184ce3f5'] | School’s still in session: NYC’s Mayor <PERSON> <PERSON> won’t cut classes amid coronavirus concerns
By <PERSON> and <PERSON>
NEW YORK DAILY NEWS
MAR 13, 2020 |
March 13... You chose poorly sir. Your awful decision making predictably led to the catastrophe your city now faces. I am fiercely independent but your words and actions epitomize the worst of “liberal” decision making. Use government power to steal the skills I’ve labored for 25 years to develop. Strip me of my family and community to deal with yours. I’ve “slept“ on my couch every 3-5th night my entire professional life so that my wife (also a physician) wouldn’t be awakened by pages from the icu. Now you propose using government power to compel me to come serve you and the people who elected you? Right. | 6b0530ebe30fb35503f38479acc2fc7b5f98ae1d696655530fa75945b461c7c1 | ['0581d9149f5042c19a2bf0cb184ce3f5'] | @SAO
While I agree with much of your point, if you look at labor force participation rate over the last 20 years, it steadily declined under <PERSON>. It was slowly improving under <PERSON> until covid hit. I think “unemployment rate” by itself doesn’t tell a very complete story. Policies that encourage people to enter the workforce and be fairly rewarded for their abilities and have done and will do more to eradicate poverty and inequality than anything else we can do. |
eada6beed9cad124d0a99fc02910cc1e72fc60cef543ec7259b1b471d1f96cbd | ['0595c955425b42f1ad8d8995850aaf94'] | <PERSON> You've just made their point. An unrealistic body image keeps many people from exercising and finding joy in fitness. I'm a two time Ironman without a perfect body (esp as I entered my 50s) but I saw other imperfect bodies at my races, and I saw them finish them. I have no argument with your call to remain fit, I continue to swim, bike, run, and do Pilates and yoga, but I don't, and never will, look like what the media tells me 56 yr old women look like. | 50e52dd243b4c1a155cd48c41d433d81a4ca61b5f91251b98a5c8cb33766b2da | ['0595c955425b42f1ad8d8995850aaf94'] | @Factumpactum Until I got my Ironman tattoo after I finished my first race, I didn't understand how personal body art is. My tattoo isn't cosmetic, it's a mark on my body of the hard physical and mental work I did to get to and finish that race. And when I raced my second one, it was a reminder to me that I could do it again. If you ask people with tattoos I think you'll find very personal stories, not cosmetic goals. |
aeb23f1342b87950100308e2129e288cdcd468789ef4ba1e0fd9518067a24696 | ['0645f8bfd9994bf98ed9a6360a5843aa'] | We're seeing the beginning of a fascist state in the U.S.A. thanks to the supine Republicans who put power above country. The ability for discussion and dissent is part of what makes a democracy. <PERSON> is doing away with it. Woe to us if he wins in 2020. | fefbff5caa7ae5757ad0c25668a3ef47f8b88e3d25638f04c6a0e5d2206b15e4 | ['0645f8bfd9994bf98ed9a6360a5843aa'] | The American people need to hear what state and federal election officials are going to do to stop chaos on election day and to insure that <PERSON> will be ousted if he loses after a full and fair count. We need to know which military, police, or other forces will back up a free and fair election. We cannot wait until the chaos occurs. The Supreme Court should declare now that it will decline to hear the election case, and other institutions should declare that the election should be decided by the voters. We need to know from Republicans that they will not back up <PERSON>'s false assertions about a 'rigged election'. Ultimately, I believe, we are depending on the military to defend American democracy despite what the 'commander in chief' orders them to do. I am very afraid! |
8cca136ef56affd4ae5ba611cb10f21f3eaaa8fede3bebbdd08c3a4b8aef120a | ['069e14ccb48e44d5bfc6fdaf4d31b05d'] | @atomek The CDC ignored the WHO test because it wasn't perfect (it produced 25% false positives). So, it created its own "gold-plated" test, that was too expensive, took too long to process, and could only be processed by the CDC. The CDC prevented private labs from producing their own tests (until very recently). Thus, the U.S. has lost the testing opportunity.
Further, there were few contact tracing teams, and all of the contact information had to be collected from memory. Other countries, such as South Korea, have QR codes for everyone, where the QR code contains much personal data so if someone tests positive, they can immediately identify family members, etc.
The list of failures is long....it spans many administrations and the American public's distrust of government and concerns about privacy. | 71a641b783b861e49290542305566efc46d171206419f6a230a8e8cf30447b5c | ['069e14ccb48e44d5bfc6fdaf4d31b05d'] | The graphs contain a fundamental error. By starting with the 25th death, the graph fails to account for the differences in country size. The 25th death in the U.S. is equivalent to the 5th death in the UK, France, etc. So, the graph line for the U.S. needs to be shift to the left....where it will more closely match those of the western European countries. |
ce15794016d9fd569bdaa630006ce2c9f1a1881725ac0eab60573218e4f63195 | ['0728f7d651fe422a98b18397e49117bb'] | Excellent article. Corporate capitalism works to build exactly what the words say, capital/wealth for the corporation. If we want them to be a social good, laws to help accomplish that are essential. “Free Market Capitalism” is not designed or directed to accomplish social good and often has no interest or incentive to do so. It may pay lip service to the concept, but this is often largely a PR effort and not something most corporations would hold dear. Any social good that is accomplished is either by accident or because ultimately companies do have to hire some employees and pay them a salary, and they have to sell a product that may have some value to society. But if they can produce as much with fewer employees, smaller salaries, or less value to the customer, they further optimize their capital accumulation and thus do so.
If society wants corporations to provide more good for society, then laws must be passed to force corporations to meet their obligation to the society which they are part. As this article beautifully illustrates, this will not happen automatically and it will not happen unless corporations are forced to do more good and, if in the process they create a bit less wealth for the capital class but more for Society as a whole, then they will be able to once again legitimately brag about their value to society like they did in the 1950s. | dcb15039615ebe5bb3677e209a4e18200b55dab338414ce50d891ecec33da7fe | ['0728f7d651fe422a98b18397e49117bb'] | Sad that nuns are used to enforce ideas and rules that are largely developed by and supported by conservative men who want to preserve their supremacy over women. Yes, reduced support for birth control medications will likely result in additional unwanted pregnancies and even additional abortions. And yes religious organizations will likely still be willing to pay for Viagra and similar medications which facilitate sexual activity by men. But all of that is acceptable to the religious Right because priority number one is the message that the wishes and desires of men are more important than those of women. |
9f60ca297cb4c3b09b85242498dc71195695a7bb74384555dc95be37bae450f0 | ['074143c28a0f42d5a83cec1d31b391d8'] | @AaronS
Disagree. One example, NKorea. Relations are warm? Toward what end? They have more nuclear weapons and greater missile capability since <PERSON> took office. Anyone could have negotiated that deal. The world is not safer because <PERSON> and <PERSON> have traded love letters.
Read <PERSON> article again for the other examples. | 9e4c7bd402e092358ebd33faa1b48734e897ceee961f3e7213b76ffe343aff2f | ['074143c28a0f42d5a83cec1d31b391d8'] | Think about this: almost every doctor office is open, but they are taking safety precautions e.g. daily temperature checks, mask wearing, hand washing, and social/work distancing. If this were not safe, then we would be hearing about doctor offices being “spreader” events.
In other words, you can open offices if you are safe about it.
Look <PERSON> was incompetent. He and his staff are non thinkers. They are not problem solvers. Their only concern was marketing and profiting. The rest of us can be and are different. There are safe ways to work in an office. It may take some trial and error and it will require constant vigilance and readjustment. But it can be done! |
a656bec5fd3666521c4eb5f98d4471d400d19b334bee3dc754242dc3229f49b0 | ['07725fa16d2b4df79912959e3f05ac6a'] | Wag the dog? For an impeached president, he might think this is an escape route. And what's the endgame here? Regime change in Iran? Impossible. And what happened to his strategy to drastically reduce the troops in the Middle East? It's just an opportunity for him to express his power as president. Too bad that he's putting 330 million of the rest of us in peril. | 1ea023fd0cd468da2e47b141abd3f0f078e34e00c75c99948801c0f31b319029 | ['07725fa16d2b4df79912959e3f05ac6a'] | The U.S. has 4.25% of the world's population, yet has 33% of reported COVID-19 cases and 28.4% of deaths in the world. And we're adding 25-30,000 new cases every day.
This administration has not defined a national strategy to defeat this virus, not does it take its own guidelines seriously. And who's paying for the President's incompetence? People of color, the poor, prisoners, nursing home residents. People <PERSON> doesn't waste his time fretting about those citizens, he wants us all to don our wartime uniforms and then let what's going to happen follow.
Come on fellow citizens, this must come to a stop. I wish the election were tomorrow. |
adba1ba51f1f956369fa7b8f361865da62063c1d46f19d1890dd4608703c6add | ['07d0e01e716d4848a6f38276ccbda935'] | <PERSON>
You do want to wash your hands completely BEFORE you wash your face. I think I saw an article about washing your face. I can't remember where. Your skin has natural oils that protect it and you. I haven't read evidence the virus can go through healthy skin. It seems to be transmitted through your mouth, nose and possibly your eyes. Not sure about your ears or the other two openings of your body. There probably hasn't been much research on the effectiveness of any extra face washing beyond the obvious such as when you take off your mask. Again, you should wash your hands completely BEFORE you wash your face.
The point is still.
1. Don't touch your face.
2. Wash your hands often and when you transition between contagious activities. | 175b49f2fcd5a65ed7e70627c1c28ebb9a05757d74e4076d75907ff2cbcf250a | ['07d0e01e716d4848a6f38276ccbda935'] | A supply of 3-6 cloth masks are probably the way to go for most people at this time.
I recently ordered some surgical masks and some n95's on the internet then realized I was just helping to raise the price. This makes them more expensive for healthcare workers globally, which can cause deadly shortages.
I think healthcare workers in the wealthy countries probably need to purchase their own personal 3-6 month PPE stash for emergencies when their employer can't supply it. I have been supplying my own masks and gloves for from my own pocket as a caregiver for an agency for 8 years. Of course, I only needed about 400 gloves and 30 masks on hand at any one time. Now I am using cloth masks more and being even more careful to wash my hands when I transition tasks. |
592a7a9c908d189f2de5c156c8b6d33471f201681711b99fc8a226bb5e7e920e | ['07d35c561a694708b6ba81295de791a9'] | @Eric This is one opinion, and yet you generalize that all teachers feel the way this writer does. She raises good points, and you do as well. Remote learning is not a joke if done correctly, and Ms. <PERSON> shows you examples of how she has adapted. She fails to consider blue-collar workers and their need to have their children go to school, not only because they may not have had innovative teachers/districts, but also because the parents need to work. | 3aa6605fe162485303bd9d00eb97c4765446a727ca8cf3360d616151e1cf6f64 | ['07d35c561a694708b6ba81295de791a9'] | As with your examination of Stop and Frisk and Bloomberg, this editorial made me think deeply about a man whose honorifics are the start of the first republic in the world, and who is the first leader to step down from power. I think your editorial would have been strengthened with a deeper look at prominent Colonists who opposed to slavery. It would be wonderful if you and <PERSON> debated Washington. |
dd458e71db856f1fcf0e42ec0e44be0d7a45c3f6c123380374e5d8d80e30bf56 | ['07d5fac33414406583c9b020557020f7'] | I’m a little fatigued at calls for outrage from journalists. Mr. <PERSON>, your descriptions of the complete failures and apathy of this administration on point, but what else are you doing besides writing columns calling for outrage? We’ve all been drinking from a firehouse of outrageous actions and behaviors from this administration for the last four years. Even if a million of us showed up on the Washington mall (in the midst of a pandemic) and demanded <PERSON>’s resignation today, would any arm of the government hold him accountable? No, they haven't yet. The event would consume the media for a couple of days until the next scandal from this administration pops up. For my part, I am supporting candidates that I believe are best for my family, my community and my country. I am supporting organizations that register voters and work to end voter suppression. I am counting down the days until I can vote in November. | 8b7ff4b8844aae45fc1c5bad6c03261c11d48b882d468bdbcff9ec21f97e2732 | ['07d5fac33414406583c9b020557020f7'] | Much of what you write is true (except for the idea that many of us dreamed enough Republican senators would go against <PERSON> to block the court nomination – there’s no basis in history to even consider that). However, I don’t think harping on doomsday election scenarios is useful anymore. We all know what can and may likely happen. These “what-ifs” only serves to fuel hopelessness, which is exactly what <PERSON> wants because it makes people believe their vote will not matter. <PERSON> will continue to make outlandish statements in an attempt to undermine the integrity of the election because they get headlines. I'm begging the media to just stop writing about it! If you are concerned for the survival our republic, I'd suggest that every column you write between now and Election Day should be a call to action to VOTE. An overwhelming electoral win for <PERSON> is the best way to ensure our wannabe dictator is shown the door. Everyone, vote! |
93850980435a9f6d8baf4a91f4fbcaaa25cdfb0ce6a628dc2738d09a90f4d2de | ['07ee91f9d1194f24b9b466a42e06d074'] | <a href="https://www.nytimes.com/2020/08/15/us/covid-college-tuition.html" target="_blank">https://www.nytimes.com/2020/08/15/us/covid-college-tuition.html</a>
In these unprecedented times, people are struggling mentally, emotionally, and most of all financially. People are losing work due to closings. Several businesses have had to close down due to lack of business. Colleges and schools across the country have shut down due to Covid-19. They have had to limit their learning to remote instruction from home. Because of this choice by universities, many parents and students are demanding some sort of refund because their children are not receiving the same education that they would if they were going full time and in person. It is becoming a back and forth argument because colleges are claiming that remote learning is very expensive to set up and pay for, and they need the funds in order to continue providing education for students.
I found this article to be really interesting because it is crazy to think of all of the things that the virus and shutdown is affecting. Going into reading the article I had a firm opinion of agreeing with the students side of the argument, but this article really allowed me to see the colleges side of things. They are doing the best they can with the restrictions in place, and with that comes new expenses so it would be really difficult to reduce tuition. Overall, I really enjoyed reading about this issue and getting a glimpse into the other side of it. | b60cf3925c6ca1c33a02ba14ebf62754a9871367609c2a8fce8cd0a60384cc81 | ['07ee91f9d1194f24b9b466a42e06d074'] | <a href="https://www.nytimes.com/2020/07/10/movies/hamilton-critics-lin-manuel-miranda.html?searchResultPosition=1" target="_blank">https://www.nytimes.com/2020/07/10/movies/hamilton-critics-lin-manuel-miranda.html?searchResultPosition=1</a>
This article about <PERSON> really sparked my interest. The moment the movie Hamilton came out on Disney plus on July 3rd, my mom and I sat together and watched. It is a special memory to me because we actually went to see <PERSON> in Pittsburgh as well. Seeing the difference in the two shows was truly amazing, and I loved getting to see the original cast and familiar faces perform the show. It was much easier to capture the small details, like things going on in the background that really adds to the musical.
Reading this article was really interesting to me because I really liked hearing the differences of the two shows from a professional standpoint. It really gave me more insight into how people can perform or come across differently depending on the platform they are being broadcasted on. Some characters came across better in the movie than others, while some were more comfortable on stage. Hearing a professional talk about, what they thought was different about the two aspects of performance really allowed me to see that a change in media can change a performance. |
a65b65701e75614532915d5d7883577608c70ff8739665d38fbe03cf4616e98b | ['08154437ffe746feb1f1636b59b76593'] | I am in full agreement with supplying workers with safety equipment like hand sanitizer, gloves and masks. None what so ever. But I do have a problem with the hazard pay. This is ridiculous. Perhaps I say this because I am a physician and will receive absolutely no hazard pay while taking care of sick patients during this pandemic. None. The workers at Amazon and Whole Foods ought to be happy that they have a job, because many have lost theirs. Small businesses are closing. At this point in this outbreak everyone is functioning under risk. So why should one group get more for that risk than another? The fact that the unions are behind this explains a lot and I think it is despicable.
Demanding safety equipment for essential workers is righteous. Demanding hazard pay is akin to price gouging. | eb0cdd4ec4c7b2a5c9b6bab916755dbc564d45de568cf25d3a62c1652d97c549 | ['08154437ffe746feb1f1636b59b76593'] | Is <PERSON> one of a minority of scientists whose work is not influenced by personal economics? Remdesivir is expensive, really expensive and it’s results are modest. HCQ/azithromycin is inexpensive, dirt cheap pennies on the dollar. But some in science and in the <PERSON> literature say it is fallacy. Perhaps but HCQ/azithromycin has not been tested at early stages of the infection. The last trial was in critically ill people, a study that asked the tall order: can the duo “salvage people.” Perhaps that is not where this dual therapy works best. <PERSON>’s at odds personality and methods aside I don’t discount his initial trials, and I too question whether there is economic gain influencing SARsCoV2 therapy. |
1a3d11bc9b737682bca431c02e4f20879e6cdaa3a1d563034e2a8e196e0220af | ['090ee87e29df4b51a7ec237e65ac0689'] | I just watched a parade of protesters down my street, in the <PERSON> town that I live in.
I can't help but read this and at the same time think about what just happened live outside the window. Small town USA, hundreds of people marching in protest of the times.
That's a good thing in dark times.
I understand (I think i do) what the writer is saying here & I agree. It's really up to "us", yep, white people, to make that effort, to bridge that gap, to accept people as human despite all that's been baked into us. It's not easy, many of us live in towns of 90% white people, it is what it is. But we have to get out, we have to get into the minority areas and be a part of them, in order to create that better world.
I see statues being taken down, I see protests, I see trying......I hope we get there. | d3178cda6f8c1de9f743306deca2b0bbb20a222d30ad3af7808c44529fe2a6e6 | ['090ee87e29df4b51a7ec237e65ac0689'] | "We want to begin to express "heartfelt" wishes for (the guy who...has no care in the world for.....people dying, children taken from their parents at our border, hiding his tax returns, encouraging the spread of a pandemic disease, chummy with Dictators who poison rivals and/or have them cut in pieces with a bone saw, looks on casually as scientists tell us that Climate Change, as a result of our choices, is as accepted as Gravity."
<PERSON>, thanks again for the laugh? Did you really mean that? "We"?
Wow. Sad.
Get well soon! |
7c5db78c63f189c3a25bf941a9cba4f590454f932ca90b72e5375b16a239c01b | ['092817f859a548398a1b464287dc8210'] | <PERSON> Focus should be on the number of deaths. And more specifically, reducing deaths.
Thus far only persons with a doctor’s recommendation is allowed to be tested, and those doctors need to tick off some boxes (suspected contact with confirmed cases, sustained fever, etc). Whether or not you agree with the methods is up to you, but there is a school of thought that testing everyone with covid anxiety will needlessly burden healthcare workers and take them away from treating real patients, taxpayers (Japan has heavily subsidized universal health care), and in the worst case risk increasing likelihood of infection by having perfectly healthy people spending hours lining up for tests in hospitals. | 4d515132ca5444a1bd981ac628ccc89faef26d431f155b45e22c02f93659ae17 | ['092817f859a548398a1b464287dc8210'] | <PERSON> Being flu season certainly there will be a lot of cases. Statistically, however, Japanese media has been reporting that flu cases are down by two-thirds this season as a welcome side effect of the heightened measures aimed at preventing covid (more frequent hand washing, greater use of masks, social distancing).
I read a South China Morning Post report yesterday of Hong Kong experiencing the same phenomenon - deaths from flu down two thirds and flu season declared ended after only 5 versus the usual 14 weeks. |
279547a7e0ee0345b96318a7c7e211e3c5acbe5c32d6f90f5dacbd93b3b7d8fa | ['09762973a6a74e568077d2f9ec59e8e5'] | What would be the "political repercussions" of delivering desperately needed aid to millions of people? To <PERSON>, it's all about losing face. He knows full well that his caucus won't back any sort of generous package because of the "deficit hawks" in his own party, who had absolutely no problem inflating the deficit by about a trillion dollars in order to give rich people a hefty tax cut. If the White House and the House strike a deal, he will be forced to either take a vote in the Senate or to kill the bill. If he allows a vote in the Senate, he knows the bill will pass almost entirely with Democratic votes, with a couple of Republicans who are in very tough Senate races (e.g., <PERSON>, <PERSON>). Either result would be a huge embarrassment to Midnight <PERSON> and to his caucus, and would give the American people, even those in red states, even more evidence about where his and their true priorities lie. In fact, it's thanks to <PERSON> that the Senate has effectively been sidelined in the discussions about aid. He left it to the White House, and for once <PERSON> wants to do the right thing, if only for all the wrong reasons (i.e., he's facing a drubbing next month). As for <PERSON>, it would be a political master stroke if she gets to "yes" with the administration. | 16e2b13bc2f9f576c2b69b906a0a88a2ea915cbb323cd7523f0ca0bcc4136b46 | ['09762973a6a74e568077d2f9ec59e8e5'] | @Jeff Actually, this is already happening. If you saw Justice <PERSON>'s recent dissent, the conservative majority of the Supreme Court has been all too willing to do the Trump Administration's bidding on suspending lower court rulings on an "emergency" basis, a trope that's been used only very sparingly in the past. Even when the government can't demonstrate at all convincingly how it faces "injury" by allowing the ruling to stand. |
12d5ac2a05073d7fbf6e097fafc102c4c9e03b44bdcabd2ba39773ed9415d9db | ['09f0a288d3714793919332334aa3842c'] | @Jonathan Oh yeah I do remember, it was during the spike in racism after some had the audacity to be president while black. Even back then <PERSON> was riding the wave at the racist backlash with his birtherism. And you cant be so stupid to not realize the racism that lead to <PERSON> and brown is the racism that propelled <PERSON> to succeed <PERSON> as the next president. <PERSON> didnt have the power to magically prevent racists from murdering black people in cold blood, but he at least stood against it. He knew BLM was long needed. Didnt stoke division and rile up his supporters into the only good Republican is a dead Republican mindset.
Meanwhile <PERSON> openly advocated for cops to be more willing to "rough suspects up", thinks 5 proven innocent black men who spent years in jail falsely charged still deserve the death penalty because... idk I guess he's so racist that even if it was proven they didnt rape that woman being black is still reason enough. Thinks 1st degree murder is the appropriate response to black people stealing from target. And the types of people that defend racist murders like <PERSON> and <PERSON> are staunch trump supporters.
Nice try though | 45ae4f624fe2ee6b5146183f9cf4eafc0d3847664775ba0cca701d62d990c70b | ['09f0a288d3714793919332334aa3842c'] | <PERSON> conservatives racist backlash against him exemplified by behavior like your dear leader trumps birtherism isn't on <PERSON>. He didnt treat the other side like they were the enemy(never heard anything close to the only good Republican is a dead Republican from him). He talked about unity, brought us out of the worst economic crisis since the great depression, brought healthcare to millions of previously uninsured. That "presidenting while black" was the unacceptable sin to cause such a deep division of your 40% from the rest of us is your own racists fault not <PERSON>'s |
ca45875420cabeccef317a540dcab1ef486de454d4538862de12929a4ee984c2 | ['09fbcbc0d830474180f3bdd16db0a40a'] | We live in a dangerous time if someone's opinion cannot be posted in a newspaper because it ruffles the feathers of its staff and does not fit in with their political viewpoint. The left used to stand for free speech but now its a censored form I see, it has to fit within PC police guidelines or you shall be banished. And you wonder why people distrust the media? | bf63e0e9e41b05ad8631bdac7a3414b29df7f96eede8ffb152a38b82c8383fbd | ['09fbcbc0d830474180f3bdd16db0a40a'] | Mr. <PERSON>, the only thing you get correct is that the virus does not care what political spectrum you reside on. As a registered independent voter I have to laugh at the left trying to blame the reopening of America on "gun waving" midwesterners. The fact is normal hard working people that need income for food and housing want to get back to work. This is not greed but necessity. Maybe elitists in NY high rises don't understand this? I live in a city that has over 10 million people in it. As of yesterday, 1,709 deaths were attributed to Covid 19 and the city council just recommended keeping a lock down for another three months?? That defies rationality and reason. No one, whether Republican or Democrat is suffering from inadequacy but reason and common sense is indeed being trodded upon. |
dc8f56a66fb3939a0736a6ca0b497f3c1cf8340ed21428664844a18714a3788a | ['0a3e142a15034d19a80b3c098abe7664'] | In choosing words between "amoral" versus "immoral" to describe <PERSON>, I now believe he is immoral. Amoral means he does not know there is a choice. Immoral means that he knowingly chose a caustic, corrosive, evil path that crashed and burnt along his way, all for his own benefits. He claimed to have mastered the art of the deal and he willingly and knowingly deal with the evils. | d9055bc86f181711c8a4361842c03c49d15baf2739f13a889ae26ba253769cdf | ['0a3e142a15034d19a80b3c098abe7664'] | "...because he has a narcissist’s inability to get inside the hearts and minds of other people." Perhaps the starting point is that <PERSON> can't get inside the heart and mind of himself. They are both empty and emptied. That's the nightmare we can't seem to shake off, yet. |
30d41b5dee1c36d0946bf7774e1ed282a324521e2cbfb467f4a1ecd2d76dc02b | ['0a54ed2371a24deb8ad8920d32adf330'] | <PERSON>
<PERSON>, <PERSON>, what would have them do? If they go even to a modest restaurant in, say, your city or town, they'll be "on the stage."
They could become hermits in a forest, of course, but they may want to educate their offspring -- unless that's too much for some people to bear.
Hey, I know! Plastic surgery might be just the thing for them! | 13964fa0e8396ecfc40e79992b44d01f0e752762ff06d6907ed0bbb3dbae82cd | ['0a54ed2371a24deb8ad8920d32adf330'] | @Concerned
When <PERSON> loses the election and still won't accept it in January when his term is up, how's about tasking several muscular Secret Service guys to pick him up and carry him out of the White House, depositing him outside the White House gate? Now there's a sight I'd love to see. |
34c42930559e6261fdd196a64df0353378697af7f044c4357942ea5260e193c7 | ['0a8bc62924804ad7a7d25d60c076f51a'] | The biggest surprise will be when <PERSON> is reelected. Mr. <PERSON> was in the right place at the right time, his current success has nothing to do with him. Mr. <PERSON>’s trajectory was changed within three days by the media and largely this paper (that I subscribe to). I was never a <PERSON>’s supporter, but at least he deserved the nomination. He’s not a whitewashed mascot that panders to the superficiality of aligning behind a candidate because he allegedly represents your bland identity politics better. Mr. <PERSON> had ideas---I could have stomached him being the nominee, but I will not support Mr. <PERSON> nor will I vote for him in the general election. The democrats need to do better---they’ve been consumed with reactionary behaviour for too long. It’s resulted in a party of endless compromises. I’m not supporting this mediocre philosophy of the lesser of two evils anymore. The party should spend more time creating substantive ideas that result in meaningful change and less time appealing to ethnicity and gender, which doesn’t matter to begin with. It’s clear the NYT has been overly consumed about only beating <PERSON> at all costs and has pushed its readers in this direction. It’s done this to both <PERSON> and <PERSON> through its reporting. I’m abstaining from the election, I’m not voting for someone I don’t believe in, just to win at all costs over <PERSON>, as this paper wants us to do. | 61cbe3004cececeac06374dbf8f0bec6c2b7ddd19933932f8e3855205e06998e | ['0a8bc62924804ad7a7d25d60c076f51a'] | <PERSON>
Democrats spent all the time <PERSON> has been in office by trying to tear him down instead of building themselves up. They did the same thing with <PERSON>. We’ve obsessed, reacted and taken the bait over every miniscule movement he makes. It’s consumed and infected us. And now we’re on the way to nominating a man no one seems to have an interest in, because we think all of a sudden he is our best shot at winning. If democrats wanted to coalesce around someone they should have done so a long time ago with <PERSON>, who had the intelligence and skills to be a good president---instead they trashed her again and again. (And that’s why <PERSON> got elected). I’m not now voting for a third rate candidate out of desperation---I’m not desperate, I can wait four more years to have a candidate that deserves my vote.
The democratic candidates squandered the primaries with low, unsophisticated blows of identity politics---trying to get ahead with unfounded claims of racism, misogyny and wealthism. That was the overwhelming and prevailing strategy. And, now, sorry, but no, I’m not willing to identify with the result.
PS You can dismiss me by saying I’m not a democrat, but you’d be wrong. I’ve only ever voted for democrats. |
d16517a2334103fd5009882252792805f2b1125a0f7e39ad11248ab838cd186a | ['0ab87cc2e53541faa06a631fa7b20de4'] | <PERSON> DOESN'T CARE about ordinary people. He only cares about himself and retaining power. The patriotic flag-waving rallies are a mirage. If he was a real American president, he'd be taking care of people in the aftermath of fires, floods, hurricanes etc. This is the guy that tossed rolls of paper towels to hurricane victims. He just doesn't care about us. Vote for someone with a heart and a brain. | 44060126c0833540196645b5497ac955d700447165e80d357c833e2186fcff50 | ['0ab87cc2e53541faa06a631fa7b20de4'] | <PERSON> is no Patriot.
He is a PR man, a circus act, a showman. He gets up there and riffs with the crowd, doing one liners and throwing zingers. He is PRETENDING to be president. He is a POSER.
The flags and the helicopters and the red white and blue imagery and waving at the crowd are all IMAGERY. <PERSON> is putting on a show.
Behind the scenes, he is breaking all the rules, while he claims to love law and order. He disses the military, while using them as backdrops for his visual montages.
I love the fireworks and the marching bands and red white and blue too. But you gotta love what it stands for. <PERSON> does not represent what these images stand for. Wake up <PERSON> supporters! <PERSON> is not your guy. He’s not the one to lead this country. He ONLY cares about keeping himself in the spotlight and in power. The United States of America is crumbling.
KICK THE BUM OUT |
e40f7e5d1e987e84e15093db5224501b3ae5e489681b6bd2ac64743a65004930 | ['0ace5d4e8ed74e518ceb97979f386a4d'] | Hey <PERSON>, I believe you are right about the gateway thing. But with the increase in this up-and-coming fad of keto lifestyle and fasting, do you also see an increase in disorders? There are new understanding in addictive behaviors in that, a 1st use filling in a blackhole in a soul vs a well adjusted individuals 1st use is all the difference in the start of addictive behavior.
Would you look at one-meal-a-day differently if it was done for health and not diet. My particular weight loss was just one of many many benefits and I did it for the Alzheimer’s benefits. So I don’t know how well that is working even though I’ve been keto and fasting once a month for 2 years. But, from the perspective of one who has had addictive behavior, I don’t see a black hole if you are just looking for health.
My 2 cents for sure but 1st hand cambio non-the-less. 😝 | d1ed9714c6b6686e63b309b8df1657855385b56b23c2e9e6abfa50fbec10e193 | ['0ace5d4e8ed74e518ceb97979f386a4d'] | @Doug I want to tell you why that is not true. All calories are not created equal. A gram of carbohydrates yields 4 calories. A gram of fat is 9. Fat burns longer and smoother and has more energy to release. But the magic that you say doesn’t exist is in how insulin works by locking down all the cells in the body from releasing stored sugar (or fat in the case of a fat adapted person). Carbs in the blood are treated like a toxin and must be used 1st as an energy source. That is what’s up with insulin. A sugar eater has access to 2500 calories and that is it! A fat burner has access to 40,000 calories and never runs out of energy because with low insulin levels the cells are not locked down and all that stored fat drains out and produces heavenly mana in the form of ketones. An ancient ancestor was able to go unsuccessfully hunting for weeks and remain an optimum hunting machine super focused with high octane ketones in the brain pan.
I think that being fat adapted (8 weeks of low to no carb) is probably as rare as blood drinking vampires the way the American diet is, But I gotta say, it is nothing but magic!
Anyway, please do your own research. |
0e84167ad1443bfaaa38de62e16cfdd75bfad73e79b1aed897a6f4dfe94baf8e | ['0adeaa7b25f3448892e85adf7e4821e2'] | Why threaten to leave? Just leave. I left Facebook a couple of years ago and left Twitter a while later and couldn’t be happier. Facebook and Twitter give us nonstop disinformation and conflict. They are the chief propaganda outlets for <PERSON> and his supporters, even the ones who aren’t Russia. The time that I used to spend on social media is now devoted to reading actual journalism and books, and engaging in real communication with my loved ones. It’s easy to get off social media. Just deactivate the account and get away from social media’s toxicity. You’ll be calmer, better informed and much happier. Facebook and Twitter, like the incompetent buffoon whom they helped elect President, are spent forces. It’s time to move on and reclaim all those hours of your life that you’ve been wasting. | 895d187d603734962b54e87516b3f204234ff97aaacd5704cc6cf6144420d9f7 | ['0adeaa7b25f3448892e85adf7e4821e2'] | And your choice is to extend the <PERSON> moment. Thanks to you, <PERSON> can continue to enrich himself with tax dollars, destroy the environment, destroy the climate, destroy our long-cherished institutions and continue, with his henchmen in Congress, to perpetuate rule by wealthy, white business interests. Is <PERSON> perfect? Of course not. But the reality is that the first step to dislodging the <PERSON> cancer from the Presidency is to elect <PERSON>. <PERSON> thanks you for your support! |
96d9965840d53ba469c39e09c158a1efda45565cb41bfb85371c8c7dfa7a3857 | ['0af05b7b3ebe4d569f15dc1a9c54c383'] | I would like to see if there are any influential Republicans that put their country first and believe in democracy. And these Republicans should NOT wait until after the election to call for <PERSON> to step down. They should do the right thing and endorse <PERSON> in the near future. And I’m not referring to former staffers or conservative writers, but current office holders and others that could make a difference in not making this election close.
The one person that that could make a huge difference is <PERSON>. He is clearly not a <PERSON> fan and understands how destructive and chaotic it could be if <PERSON> scenario comes true. Please President <PERSON> show that you are a true patriot - the country is depending on you. | b6668e87da406c1c2061fac01a0734f84bf617ed26802c9afc5e15614bc2f446 | ['0af05b7b3ebe4d569f15dc1a9c54c383'] | The article posits that the “choice comes down to whether preventing death or curbing the spread...is the highest priority.” Although this might seem harsh to some, I believe that saving years of life rather than preventing death should be a higher priority. I imagine that for any population there is data to estimate the chances of getting infected and the probability of death if they did contract COVID.
If you had 100 doses of vaccine how would you choose between vaccinating 2 potential groups? Example: The first group of 100 is aged 90 and over and have an average life expectancy of 4 more years and have 10 percent chance of contracting COVID (10 infected) and 50 percent (5 deaths) of them would likely die. So, if this group were vaccinated you would save 5 lives and 20 years of life - 5 deaths times 4 years of life expectancy. The second group of 100 are 50 year olds with comorbidities that have a life expectancy of 30 more years. They also have a 10 percent chance of contracting COVID (10 cases) and those infected have a 20 percent chance of dying (2 deaths). So, if this group were vaccinated you would save 2 lives and 60 years of life. I’m not an ethicist but my choice would be to vaccinate the second group as you would net 40 additional years of life.
I imagine that data modelers could use a multivariate model to both minimize years of life lost and to minimize the spread of the disease. How you would weight between those 2 objectives is above my pay grade. |
fbed590ecb03d442c4acd5ed0901901a97010170243ee5ad80af355331706c32 | ['0b2f9208a92845a3b434008de16feb76'] | Perhaps she understood that pedigree is just as, if not more, valuable than personal accomplishments. A perusal of the NY Times' wedding announcement pages will show that she was absolutely right. Her success after such a modest upbringing makes her accomplishments more sterling, not less. It's proof of how hollow and arbitrary it is to award someone status based on who their parents were and which corrupt private schools they attended. | c3a752f7bf7b4d93099ea83fdba978dc4eb44678d9597d676087e84adcce8eed | ['0b2f9208a92845a3b434008de16feb76'] | No one promoting libertarianism - a fringe movement of paleo-anarchist extremists - as a legitimate alternative to <PERSON>' moderate socialism gets to lecture others about extremism. If you're planning to vote for a libertarian candidate, you're not taking a principled stand against two equally unsatisfactory candidates, you're being a petulant child. Adults hold their noses and make responsible choices. |
0a40f538a04fbd3b963e759dec5f96d68f2c843b803d966ade476a9ee11e7915 | ['0b9579037ad944bda94a33cc27352ca8'] | “Rapid tests for infection might help detect people...”
Might??? Why is this merely speculation? The “president” originally said testing would be available to everyone. If only that were true.
How can anyone make statements on the number of infected people when tests continue to be largely unavailable? The number of cases reported are nothing but estimates. When maps show areas of the country with very few cases, this is dangerous misinformation that can give people a false sense of security, putting them at even greater risk.
The federal government has shown gross negligence, mishandling every aspect of this crisis from the very beginning.
And tragically, as a result, hundreds of thousands of Americans will die. | cc4fd5488c6a29f8fde528ee9cdccbf57940ec13611d75c922a9ad5ab76c7461 | ['0b9579037ad944bda94a33cc27352ca8'] | Why do so many automatically assume that the homeless are criminals and addicted to drugs? Particularly in this economy where people live paycheck-to paycheck at low paying jobs, layoffs can often result in homelessness. Where are these people supposed to go?
Here in Philadelphia, the homeless— some of them with families— have gathered in massive tent cities across from several major museums. The police have tried to move them out but there is simply nowhere to go.
Surely, someone paying $50k per child for a private school education might have a difficult time imagining what life is like when you have no money, no job prospects, no family to turn to for support and everyone wants you to magically disappear.
But it’s time for these privileged people to look outside their own bubbles of comfort at the very different world around them. Your tax dollars aren’t meant to protect you from seeing the unpleasantries of life. If you are offended by the mere presence of the disadvantaged, it is time to check yourself. You may own your own apartment but you don’t own the world beyond your doorman. |
1a8f0f59f620e223df9e3065741f525e0bade81d095ee38fad49c2a12895908e | ['0c222a346d844e5389e2bb95ae99a21a'] | I was raised in Wisconsin and it’s likely I will die here. The decision of the WSC today just makes it more likely it will happen sooner than I imagined. Same for the justices if they stick around. Shameful decision, you 4. Get out if you can, all 7 of you, presuming you value your lives. Mr. <PERSON>, keep fighting if you can survive this insanity. To quote Broadway’s greatest lyricist, “These are desperate times, Mrs. <PERSON> and desperate measures are called for.” Amen. | 41e4e4a5ed4b09a4d770e2c66e5653612787c0f2bcdfdced0df0a816c8ca2428 | ['0c222a346d844e5389e2bb95ae99a21a'] | What has been astonishing to me, among many other frightening insights of late, is how many friends, family members and people I thought I knew from all walks of life around me are showing their true colors by denying the urgency and reality of the pandemic while exclaiming and promoting the idea that they are “highly educated”. Any person who is highly educated does not need to say they are highly educated. And it doesn’t take a “highly educated” person to safely protect himself or herself (and others) by simply masking, distancing and washing hands. Most Americans are seemingly unwilling to trade their selfishness for basic civility and courtesy at a time when we need those humane attributes more than ever in this frightening time in our shared history. Shared. Not selfish. Please. |
8f28a92c5839d0a2661692936e765987c35ac2c72517933308bbb086ac96495f | ['0c96a533f58340fd9f7e8bc8aa73fdc8'] | The wrong man was fired from the White House today. I pray that the nightmare our country has been living in for the last three years will come to an end in November. I would give almost anything never to hear the t word or see him ever again or anyone in his disgusting family. We all would be the better for it. Of course the scourge of the world won't disappear even if he loses, but one can dream that day will come sooner rather than later someway somehow. | b8eaab809b8eb1fd895614bda2c61333838ce21f179ffc9097011fed8b980a5a | ['0c96a533f58340fd9f7e8bc8aa73fdc8'] | @MHB So true! I grew up in a southern baptist church in the 60's and 70's. Maybe I was naive, but I don't remember anything of what I see today from "christians". It is where I learned to sing "Jesus loves the little children, all the little children of the world. Red, Yellow, Black and White, they are precious in his sight." I believed that and I still believe that. |
7ba3204c942d45e09d97d68950821397e50defe31b7a3a8481ae6b8f2dc7744a | ['0cb377604e7546aba47a8b4c40eb81a5'] | I really changed in this lockdown. I think everyone changed, and probably in a good way. Since everyone had a chance to listen themselves more,they found their true self. Even though it effects me in a good way,this lockdown create some relationship problems for me too. However,as I said,I am really happy with the person I become. I used to overthink too much but this lockdown made me a calm person actually.
I didn’t create any new rituals in pandemic but I’m trying my best to improve my dancing skills. Sometimes it is so hard to motivate yourself in home. Now,I’m taking online dance classes but I really missed the atmosphere and my teacher. I think it might be really good to find a new hobbie during this lockdown because new hobbies really helps people to discover themselves. | 31e500a96bc1cf40edba8af4df701db8ee80b0a654cb029c2a88c21132661fc1 | ['0cb377604e7546aba47a8b4c40eb81a5'] | 5- This pandemic is a hard challenge for all of us. Our mental health is so important nowadays. For me, all these three techniques that athletes mentioned about are useful for people. However,I think the most useful technique is learning to pace yourself. It’s an important skill that everyone should learn,especially these days. We need to spend more time with ourselves and listen ourselves.
In my opinion,I could learn to embrace discomfort because I love challenging myself. When something is hard for me,I prefer to face it rather than just run away from it. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.