body1
stringlengths
20
4.1k
body2
stringlengths
23
4.09k
I tried to install Wine in order to install some Windows software, like IDM 6.38, but I could not do it. What should I do to install it? In addition to this, when I try to update Ubuntu there is always an error which is related to apt-secure(8).
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package winehq-stable
I am new to Linux. I want to remove the home directory of the user andreas which was the administrator account into a directory called admins. I ran the command mv /home/andreas /admins I logged out and tried to log in and it does not let me log in. When I entered the password it leaves me at the login screen. How can I fix it? root@ubuntu:/home# ls -al total 28 drwxr-xr-x 7 root root 4096 Mar 4 10:19 . drwxr-xr-x 24 root root 4096 Mar 4 10:10 .. drwxr-xr-x 3 root root 4096 Mar 4 10:10 andreas drwxr-xr-x 2 root root 4096 Mar 4 08:58 employees drwxr-xr-x 19 kostas kostas 4096 Mar 4 10:23 kostas drwxrwxrwx 2 nicolas nicolas 4096 Feb 19 08:54 nicolas drwxr-xr-x 2 root root 4096 Mar 4 08:56 users root@ubuntu:/home/andreas# ls -al total 12 drwxr-xr-x 3 root root 4096 Mar 4 10:10 . drwxr-xr-x 7 root root 4096 Mar 4 10:19 .. drwxr-xr-x 22 andreas andreas 4096 Mar 4 08:55 admins root@ubuntu:/home/andreas# root@ubuntu:/home# ls admins andreas employees kostas nicolas users root@ubuntu:/home/admins# ls Desktop examples.desktop personal_info.txt sensitive_info.txt Documents mario Pictures Templates Downloads Music Public Videos root@ubuntu:/home/admins#
I did a fresh installation of Ubuntu 12.04 on all my computers yesterday and one of them just doesn't seem to like 12.04. Let's start with the symptoms: I initially tried installing through a USB flash with the desktop amd64 version. Since it had worked on all other (5) computers, I believe the USB flash drive was ok. However the computer seemed to be stuck after the Ubuntu GUI came up (bar on the top, pinkish background) but before the screen prompting to Try or Install. When the screen came up, the mouse was moving exceptionally slowly, i.e. it responded 2-3 seconds after I had moved it. After a few minutes, I could move the mouse with normal speed, but could not click anything. The Try/Install window never came up. The same thing had happened a few days ago when I had tried to install Ubuntu 12.04 Beta 2 on the same computer, but when the Try/Install screen kept failing to come up, I gave up. I assumed it was a problem with the desktop installer, so I tried the alternative installer, which worked fine. But then, the same (or possibly a similar) problem appears on the login screen: the mouse moves very slowly in the first few minutes, then it moves normally, I cannot click anything (for example the buttons on the top right), and I cannot type in my password to login or select the guest session. So I am stuck at the login screen. I did not encounter any problems on my other computers, so here are some specs of this one: CPU: Intel i7 980x extreme edition Motherboard: Asus Rampage III extreme RAM: 6GB GPUs: 2x NVidia GTX 580 in SLI HDD: Western digital 1TB green power (20GB for root (/), 6GB for swap, all the rest for /home) I should also note that this PC ran 11.10 flawlessly until yesterday, when I attempted to install 12.04. I tried installing 11.10 after I failed with 12.04 and it worked again, so its definitely something related to 12.04. Unfortunately, due to the nature of the problem, I don't know how to provide any logs, but if there is some way let me know.
In Linux you can access up to 6 different terminals plus the X display. In Mint, the shortcut for the X display is ctrl + alt + f8 instead of f7. Since f7 shows me log messages of VirtualBox and Timidity++, I'm assuming its the text version of the X display. I'm using Cinnamon as a WM and would like to use Unity in a different terminal. Is that even possible?
How can I run two instance of, e.g. GNOME, on my computer at once? I know how to change the virtual terminal, but I can't work out how to start a second instance of gnome - it just exits telling me that the X session is locked. EDIT: The other thing that I would really like to know is how to run two different desktops at once - e.g. XFCE and GNOME. I know that I can change the default desktop in .xinitrc or something like that, but then I would have to do so every time - is there any way to select the desktop type when creating the new XSession?
I am trying to use PHP to display a table on a page. My select statement consists of a join of two tables and each table contains the columns called "id", where one table's "id" column is joined via the other table's "project_id" column. i.e. Table A A.id, A.description Table B B.id, B.project_id WHERE A.id = B.project_id My problem is that when I try to display both the "project_id" column and the "B.id" column (without aliasing the columns) it just automatically grabs the "A.id" column. I have aliased the table names, but not the column names, and I have tried using "B.id" instead of just "id" in the PHP code. How do I grab the right data column?? I would like to know if there is another solution besides aliasing the columns, or if that is the proper way to deal with this situation. Thank you
I have two tables in my database: NEWS table with columns: id - the news id user - the user id of the author) USERS table with columns: id - the user id I want to execute this SQL: SELECT * FROM news JOIN users ON news.user = user.id When I get the results in PHP I would like to get associative array and get column names by $row['column-name']. How do I get the news ID and the user ID, having the same column name?
Where do I see the diffusion in the Grovers operator? I would think there should be an analogy to classical diffusion but I am not able to see the correspondence.
In the context of , the diffusion operator is defined as $U_s = 2|s\rangle \langle s| - I$ with $|s\rangle\equiv |+\rangle^{\otimes n}$. What is the significance of the term "diffusion"? Does it refer to some physical phenomena?
How do you decided when to use which as opposed to that? It never felt too important to me to be able to make this distinction, but now, I do want to get this right.
When is it appropriate to use that as opposed to which with relative clauses?
I am implementing a requirement in Service Cloud to track incoming and outgoing emails for some Purchase order Custom object. Within this we have to group some records and send email alert to customers. The requirement is to select some records from the listview and send One email towards To,Cc and Bcc, along with the functionality to attach some files. I know we can implement this using a lightning component and apex class. But, since each email address in the Messaging.SingleEmail will be counted as one api call and we have many more resources using SingleEmail method in production, this will hit Org wide limit of maximum 5000 Messaging.SingleEmail calls made in 24hrs. I have checked that these kind of limit doesn't apply for Workflow Alerts or Flows but neither of them have the ability add email recipients in Cc, Bcc or attach files from Content Document dynamically. Can anyone suggest a better way to implement this without touching any apex Email Method. Thanks in advance
I have been looking for some time looking for a way how can error SINGLE_EMAIL_LIMIT_EXCEEDED Email limit exceeded be avoided if I need to send one simple email to one single user, for example, myself. 15 Email invocations limit on Developer Edition is a very small number, and it is usually quickly exceeded. Using Workflow Email Alerts may help to send more emails but still it is limited.
I am running Ubuntu server 20.04 LTS in a VM hosted on a NAS (Synology.) Primary purpose of this system is to ingest data for ELK. This is the master node. Configuration is: Compute: Intel Celeron J3455 (4 cores allocated to the VM.) 1.5 (base) / 2.3 (burst) GHz Memory: 4 GB DDR3. Storage: 7200 RPM drive. Virtualisation is propitiatory to Synology. Following is the systems usage: I am planning to move this from the NAS to a workstation running: VMWare ESXi (free) Compute: Intel Xeon W 1290 with 10 cores (20 threads) with 3.20 GHz base and 5.20 GHz Turbo frequency. Memory: 64 GB DDR4 RAM @ 2933 MHz Storage: 7200 RPM drive + PCIe M.2 SSD (Dell Class 40) I am a self-funded student and I need to use this system as part of my final year perusing masters in software and systems security. I wanted assistance calculating systems requirements if the load on the system remains consistent. I am using Elasticsearch stack on this system. I am facing following issues: System load is always over 4.0 is this due to IOPs issue? If so, will adding RAM during migration to another system help? Or does this require faster storage such as an SSD? Will providing following configuration help situation load and improve performance without over provisioning? Compute: 3 processors x 2 cores per processor = 6 16 GB RAM Storage will be local (SATA, 7200 RPM NAS grade drive.) What steps should I take to ensure I am not over provisioning and able to use the system for other projects too? Thank you.
This is a about Related: I have a question regarding capacity planning. Can the Server Fault community please help with the following: What kind of server do I need to handle some number of users? How many users can a server with some specifications handle? Will some server configuration be fast enough for my use case? I'm building a social networking site: what kind of hardware do I need? How much bandwidth do I need for some project? How much bandwidth will some number of users use in some application?
If a suggested edit is overall good but introduces some questionable formatting, I improve it to remove the bad changes. If it's approved before then, the edit is less substantiative, because it changes less things. This is annoying; can it be changed to always consider edits more substantial than the edits they're improving? (Not when there's been an edit in between, just when it's been approved first.) This is doubly annoying when the edit is stopped because the title was already edited. I know I'm improving the title, because I clicked the "Edit" button in the suggested edit review panel.
I was reviewing a and decided that while the edit was incorrect, there were things to improve about the post. So I clicked β€œImprove” and set about my business. When I tried to submit my edit, I got the following error message, telling me that the post had been edited in the meantime by the suggester: User already edited the body of this post; your edit must be more substantive to override the current edit. When I tried later on a tag wiki, I got the altogether unhelpful indication that β€œan error has occurred”, and again no way to do anything but cancel and lose my work. But refreshing the page brought me to the suggested edit page, showing the suggested edit as approved, with no trace of my editing. (Fortunately I'd saved my text on the side!) With a , I was marked as having reviewed the suggestion, with the indication β€œedit” β€” but there was otherwise no trace of my alleged edit. So, if you improve a suggested edit and it gets approved in the meantime, you get into a situation where there is no link to the post; if you go back, you get to what you were doing before and lose your edit; if you reload the page as instructed, you lose your edit. The bug here is that unless you take extra precautions such as copy-pasting your edit into an external editor, you will lose your work. Expected behavior Unlike normal edit conflicts, an edit made to a suggested edit is guaranteed to be a derivative of the suggested edit - so if that edit was approved and then an "improved" version is submitted, that "improvement" edit should be applied to the post (the helpful status indicated by the checkbox shouldn't affect anything though). When two different reviewers both opt to improve a suggested edit, a conflict is unavoidable - this should be resolved based on the size of the edit, as is the normal behavior.
In the code below the i have called the constructor of class A in class B but I need to pass self in the parameters. Why do we to pass self that is a reference to object B to the constructor of A? Using Python 3.7.3 class A: def __init__(self,a): self.a = a def get_a(self): print(self.a) class B(A): def __init__(self,a,b): A.__init__(self,a) self.b = b def get_b(self): print(self.a) print(self.b) a = A(5) b = B(50,60) a.get_a() b.get_a() b.get_b()
I'm trying to understand the use of super(). From the looks of it, both child classes can be created, just fine. I'm curious to know about the actual difference between the following 2 child classes. class Base(object): def __init__(self): print "Base created" class ChildA(Base): def __init__(self): Base.__init__(self) class ChildB(Base): def __init__(self): super(ChildB, self).__init__() ChildA() ChildB()
See how to prove $\frac{1}{2}+\frac{1}{4}+\frac{1}{8}+...=1$ $x=\frac{1}{2}+\frac{1}{4}+\frac{1}{8}+...$ $2x=1+\frac{1}{2}+\frac{1}{4}+\frac{1}{8}+...$ Then: $x=1$ Now I use the same argument to prove $2+4+8+...=-2$ $x=2+4+8+...$ $2x=4+8+16+...$ Then: $x=-2$
I accept that two numbers can have the same supremum depending on how you generate a decimal representation. So $2.4999\ldots = 2.5$ etc. Can anyone point me to resources that would explain what the below argument that shows $999\ldots = -1$ is about? Here is the most usual proof I see that $0.999\ldots = 1$: $x=0.999\ldots$ $10x=9.999\ldots$ $10x - x = 9$ $x=1$ Using this same argument template I can show $999\ldots=-1$: $x= \ldots9999.0 $ $0.1x= \ldots9999.9$ $0.1x - x = 0.9$ $x=-1$ What might this mean? Edit from one of the comments: $$\sum_{k=0}^{\infty}{9 \cdot 10^k}=-1$$
Which one is right? the degree is imperative to consolidating my grasp on concepts and keeping me abreast of upcoming upgrades the degree is imperative to consolidate my grasp on concepts and keep me abreast of upcoming upgrades.
Is it correct to write: "An agreement is imperative to tackling the problem"? Or should it be: "An agreement is imperative to tackle the problem"? Thanks
I have around 3000 jpeg photos all with names like "DSC_0596". The metadata has the date the photo was created, which would be much more useful. Is there a way to extract the date from the metadata and add it to the photo name?
I want to specify a directory and have the software find all the photos in the directory and its sub-directories, and if they contain EXIF date/time, it sets their filesystem timestamp to match the EXIF.
I have a bash script that is used for auto updating. I want to log all output of this script and prepend a timestamp to each line. I'm not sure how to add this to what I already have. LOGFILE="logdir/update.sh.$(date +%Y-%m-%d_%H:%M).log" exec 1>$LOGFILE 2>&1 This redirects the output of my script to a file correctly, but there is (obviously) no date added to the line. How can I add this? For instance, I want the logged output to look like this: [2019-11-07 1:43:45 PM]: Ign http://security.debian.org jessie/updates InRelease I'm not looking to prepend anything to each individual command my script has, I'm looking to prepend the timestamp and log each line any one command outputs globally throughout the script.
I wish to prepend a timestamp to each line of output from a command. For example: foo bar baz would become [2011-12-13 12:20:38] foo [2011-12-13 12:21:32] bar [2011-12-13 12:22:20] baz ...where the time being prefixed is the time at which the line was printed. How can I achieve this?
int main(void) { int arr[] = { 2, 3, 4, 10, 40 }; int n = sizeof(arr) / sizeof(arr[0]); int x = 2; int result = binarySearch(arr, 0, n - 1, x); (result == -1) ? printf("Element is not present in array") : printf("Element is present at index %d", result); return 0; } so right beside the (result==-1) is the ? and : . now i've never seen these things before and don't know how they work, are they like True of false statements or like switch-cases?
I've always wondered how to write the "A ? B : C" syntax in a C++ compatible language. I think it works something like: (Pseudo code) If A > B C = A Else C = B Will any veteran C++ programmer please help me out?
I am using linux debian 8. I have webmin/virtualmin installed and 1 domain is running over the server. Php version is 7.1. But, i can not run curl on my server. i tried to install curl but it throws below error E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? I have tried all below commands which are not working: sudo apt-get -f install sudo apt-get update sudo apt-get clean sudo apt-get upgrade sudo apt-get update shows below errors: W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.sury.org jessie InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B188E2B695BD4743 W: Failed to fetch http://debian.mirrors.ovh.net/debian/dists/jessie-updates/InRelease Unable to find expected entry 'main/source/Sources' in Release file (Wrong sources.list entry or malformed file) W: Failed to fetch https://packages.sury.org/php/dists/jessie/InRelease W: Some index files failed to download. They have been ignored, or old ones used instead.} my sources.list file content: # deb cdrom:[Debian GNU/Linux 8.7.1 _Jessie_ - Official amd64 NETINST Binary-1 20170116-10:57]/ jessie main #deb cdrom:[Debian GNU/Linux 8.7.1 _Jessie_ - Official amd64 NETINST Binary-1 20170116-10:57]/ jessie main deb http://debian.mirrors.ovh.net/debian jessie main deb-src http://debian.mirrors.ovh.net/debian jessie main deb http://security.debian.org/ jessie/updates main deb-src http://security.debian.org/ jessie/updates main # jessie-updates, previously known as 'volatile' deb http://debian.mirrors.ovh.net/debian jessie-updates main deb-src http://debian.mirrors.ovh.net/debian jessie-updates main deb http://software.virtualmin.com/vm/6/gpl/apt virtualmin-jessie main deb http://software.virtualmin.com/vm/6/gpl/apt virtualmin-universal main
I'm using a docker image as a base for my own development that adds the jessie backports repository in its Dockerfile and uses that to install a dependency. This image uses the following command to add the repository: echo "deb http://ftp.debian.org/debian jessie-backports main" >> /etc/apt/sources.list The problem is that fetching packages from the backports repository now fails with the following error (this used to work previously): W: Failed to fetch http://ftp.debian.org/debian/dists/jessie-backports/main/binary-amd64/Packages 404 Not Found W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages 404 Not Found I looked on that server, and those paths are indeed not present there. I tried to figure out on the Debian backports site whether this particular repository should still be available, and I didn't find any indication that this was deprecated or something like that. Is this a temporary issue with the repository, or is the jessie-backports repository not available anymore? And if this is not a temporary issue, what options do I have to use this or an equivalent repository without upgrading to the newer Debian stable version?
Let $G$ be an algebraic torus ($\cong(\mathbb C^*)^n$) acting linearly on a finite dimensional $\mathbb C$ vector space $V$. For a character $\chi$ of $G$, we define $V_{\chi}=\{v\in V|\forall g\in G, g\cdot v=\chi(g)v\}$. I want to show that $V=\oplus_{\chi}V_{\chi}$. I am following the book 'Linear algebraic groups' by Springer Theorem $3.2.3$, page $44$. Let $X$ denotes the set of all characters of $G$ and $\phi:G\rightarrow GL(V)$ be the rational representation. This can be seen as a map to $\mathbb C^{n^{2}}$, therefore we have $\phi(g)_{i,j}\in\mathbb C[G]$ and we may write $\phi(g)_{i,j}=\sum_{\chi}a(i,j)_{\chi}\chi$, where $a(i,j)_{\chi}$ are constants. Thus we have \begin{align}\phi=\sum_{\chi}\chi A_{\chi}\end{align} for some $A_{\chi}\in GL(V)$(why $A_{\chi}$ is in $GL(V)$?). Note that only finitely many $A_{\chi}$ are non zero. Then by Dedikind's lemma we have $A_{\chi'}A_{\chi''}=\delta_{\chi',\chi''}A_{\chi'}$. We also have $\sum_{\chi}A_{\chi}=Id$. If we set $V_{\chi}=imA_{\chi}$, then $V=\oplus_{\chi}V_{\chi}$. My question is why this $V_\chi:=imA_{\chi}=\{v\in V|\forall g\in G, g\cdot v=\chi(g)v\}$. In the book it is also given that $g\in G$ acts on $V_{\chi}$ as $\chi(g).Id$. I also don't understand this. Any help is highly appreciated. Thank you.
Suppose a torus $T=(\mathbb{C}^\ast)^n$ acts on a finite dimensional vector space $W$, and define for $m \in M$ ($M$ is the character lattice of $T$) the eigenspace $W_m$ by $$W_m = \{w \in W \mid t\cdot w = \chi^m(t)w \text{ for all }t \in T \}$$ i.e. for $w \in W_m$ is a simultaneous eigenvector for all $t \in T$, with eigenvalue $\chi^m(t)$ depending on $t \in T$. Then it is a famous fact $$W=\underset{m \in M} \bigoplus W_m$$ Can someone provide a somewhat self-contained proof of this result? I don't know much about the theory of algebraic groups.
FCI is said to be an HA solution. If one node crashes, it spins up the 2nd node so why is it said to not be a DR solution? There was a disaster at node 1 and node 2 picked up from there. Isn't that isaster recovery? Further lets assume that the disk is replicated, then can we say that it is a DR solution? Here if node or disk crashes, we have the other node or disk to take over. Isn't this disaster recovery?
Throughout MS documentation for AlwaysOn Availability Groups (AG) and AlwaysOn Failover Cluster Instances (FCI) I see the following pattern: FCI is for HA scenarios. An AG synchronous secondary replica, co-located with the primary, is for HA scenarios. An AG asynchronous secondary replica, in a different datacenter, is for DR scenarios. Here is an . Since option #1 and #2 are both for HA scenarios, how do I decide between them? If MS published costs and RPO/RTO metrics for both #1 and #2, it would be fairly easy to decide which I want. Or perhaps there is a different way to understand the ROI differences between these options. For example, perhaps option #2 is best suited for VLDB's and option #1 is best suited for very high transaction volumes. I don't know. So again, what is the selection criteria a DBA uses to choose between options #1 and #2? To further complicate things, I know that options #1 and #2 can be combined! When is it wise to combine the two options? When is it pointless to combine the two options? I know when these options are combined, the AG no longer supports automatic fail-over. It's interesting trivia, but doesn't answer my question. Incidentally, I intend on provisioning my final solution into Azure IaaS. If I use an Always On FCI, I will likely create the quasi-SAN using Storage Spaces Direct (S2D). Update I've found two articles that give a comparison. The first is , and the other is . Both have a chart like this: ╔═════════════════════════════╦══════════════════════════╗ β•‘ FCI β•‘ AG β•‘ ╠═════════════════════════════╬══════════════════════════╣ β•‘ * Server Level β•‘ * Database Level β•‘ ╠═════════════════════════════╬══════════════════════════╣ β•‘ * Requires shared storage β•‘ * Uses direct β•‘ β•‘ (SAN or Storage Spaces β•‘ attached storage β•‘ β•‘ Direct) β•‘ β•‘ ╠═════════════════════════════╬══════════════════════════╣ β•‘ * RTO from 30 β•‘ * RTO typically less β•‘ β•‘ seconds to 20 minutes. β•‘ than 30 seconds β•‘ ╠═════════════════════════════╬══════════════════════════╣ β•‘ * RPO: no data loss. β•‘ * RPO: ??? β•‘ ╠═════════════════════════════╬══════════════════════════╣ β•‘ * Only Passive Secondaries β•‘ * Active or Passive β•‘ β•‘ β•‘ Secondaries β•‘ ╠═════════════════════════════╬══════════════════════════╣ β•‘ * One SQL Server β•‘ * Multiple SQL Server β•‘ β•‘ instance/license β•‘ instances / licenses β•‘ β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•©β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β• The article didn't comment on AG RPO, but I read elsewhere that there is no data loss when recovering from a synchronous secondary replica. I don't know if that is true and I don't know what the RPO of asynchronous secondary replica might be. In Azure there is are created with the AG (regardless if you have your own domain controllers). I don't know if an Azure FCI has the same heavy-handed requirement. Most significantly - I still don't know why it is valuable to combine the two techniques. I've only read that it availability. That is a vague claim IMO. More trivia: I also spotted a discussion suggesting that .
I have a 5 hour layover in Tokyo, between Hong Kong and Boston. Is that enough time to leave the airport and see the city? If not, is there anything I can do in the airport?
I am travelling from Singapore to San Francisco and the airline has a layover of 7.5 hours at Tokyo Airport (NRT). I am wondering if I would be allowed to go out to experience the city for a while in some form a visitor visa. I know Singapore has such facilities, but does anyone know if I can do it in Tokyo? Any suggestions or pointers are welcome. Note - I do not have a visa for Japan yet, but I am hoping that 1 day visitor visa could be possible at airport.
I tried with sed and awk but not getting in required format. 1.1.0010.1214.10 Expected output: 1.1.0010.121410 I tried below ways echo "1.1.0010.1214.10" | sed -e "s/\(.*\)./\1/g" 1.1.0010.1214.1
How do I replace only the last occurrence of "-" in a string with a space using sed? For example: echo $MASTER_DISK_RELEASE swp-RedHat-Linux-OS-5.5.0.0-03 but I want to get the following output ( replacing the last hyphen [β€œ-β€œ] with a space ) swp-RedHat-Linux-OS-5.5.0.0 03
I'm connecting to my RaspberryPi with Raspbian installed via ssh and my problem is, that I can't let the RasPi do things (installing software, make calculations) while my Computer is shut down, since the processes I launch via SSH are child processes of the SSH shell and are terminated when the connection ends. I know i can disconnect child processes from the shell, but I'm not sure which way to use and it i would like to be able to see as much of the output of the process as possible (maybe in a file?). BTW: I'm using PuTTY from Windows 7 :(
I have 2 computers, localpc and remoteserver. I need localpc to execute some commands on remoteserver. One of the things it needs to do is start a backup script that runs for a number of hours. I would like the command on localpc to β€œfire” and then be running totally independent on remoteserver, like localpc was never there in the first place. This is what I have done so far: remoteserver contains has the script: /root/backup.sh localpc is scheduled to run this: ssh root@remoteserver 'nohup /root/backup.sh' & Am I doing this the right way? Is there a better way to do this? Will I run into any trouble doing it this way?
Not sure this is the place to post this... I notice that Inbox notifications (in my case, over a comment I left) on a question that was deleted - still show up - even though the question was ultimately deleted. Should not these inbox notifications be deleted as well ? Example: the inbox notification below refers to a question deleted weeks ago
Lets start with a life-like scenario. User A receives an offensive comment in his inbox from the OP of a question. A then clicks on the notification in order to flag the offending comment. A mod sees the flag and deletes the comment. Shortly after, the question is also deleted. Because A clicked on the notification in the inbox, that notification is still in A's inbox, with the offensive part of the comment still visible. Edit: The flag was marked helpful because the post was deleted, not because the comment was deleted by a mod. Please note that although the behaviour of the notifications is as it is supposed to be, this does not fix the possible problem of such notifications "hanging around". User A can't get rid of that comment in any way, and it may be a long time before it is flushed out by new messages. This issue is mentioned in but it is supposed to be that comments on a post that you own can hang around, not on someone else's post. is speaking about comments which have not been read and this . To me this seem like an important issue. To have to see an offensive message every time you open your inbox is not a good thing. I can think of two ways in which this problem can be avoided: Make sure notifications for deleted comments don't hang around (this I'm sure is the easier option) Allow users to delete unwanted notifications (this could be useful, as this would also allow users to remove notifications that they are not interested in, or even just to keep their inbox uncluttered. It would most likely be hard to implement, though.) What are your thoughts on this?
I am an Indian national(Indian passport) traveling from Bangalore to US with a student F-1 visa. I have a 20 hour layover at London Heathrow. I will arrive at 1pm in LHR and leave for US the next day at 9:30am and I plan to stay at a hotel outside the airport during this time to get some sleep. So will I get the transit without visa(TWOV) for my case ? Also, will I be able to do some sighseeing while going to the hotel ? In any case, will I be denied to get out of the airport and stay at a hotel ?
Is there a website or some other way to find out if I need a transit visa for a short stop in the UK on my way somewhere else? Ideally this should give me the answer for all nationalities, and take into account any other visas I may have.
What is the point of oversampling an imbalanced data set if the ratio of the classes needs to be preserved in Cross validation ? If I have 1000 rows in a data set where 800 rows belong to one class and 200 rows to another class, this would be considered an Imbalanced data set due to it's skewed distribution. If I over sample the smaller class by just duplicating the rows and make it 400 rows, the ratio of the major and minor class is changed. Now having done that, why would I ensure in my cross-validation folds (if I should) that the ratio of majority to minority class is still 80:20 ? What am I missing here ? Additionally, my test set might not have the same ratio of classes. How can I ensure that the skewed distribution does not impact my model ?
We already had multiple questions about unbalanced data when using , , , and a number of other similar questions, what makes it a very popular topic! Unfortunately, each of the questions seems to be algorithm-specific and I didn't find any general guidelines for dealing with unbalanced data. Quoting , dealing with unbalanced data (...) heavily depends on the learning method. Most general purpose approaches have one (or several) ways to deal with this. But when exactly should we worry about unbalanced data? Which algorithms are mostly affected by it and which are able to deal with it? Which algorithms would need us to balance the data? I am aware that discussing each of the algorithms would be impossible on Q&A site like this, I am rather looking for a general guidelines on when it could be a problem.
Ubuntu-server 17.04 x64, Cinammon 3.2.7, Kernel 4.13.3 generic. Attempting to set up VirtualBox, though so far I have been unable to start any virtual machine. Upon installation (apt install virtualbox), I get the following lines near the end of the installation process: ● virtualbox.service - LSB: VirtualBox Linux kernel module Loaded: loaded (/etc/init.d/virtualbox; generated; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2017-09-21 19:57:07 +04; 18ms ago Docs: man:systemd-sysv-generator(8) Process: 463 ExecStart=/etc/init.d/virtualbox start (code=exited, status=1/FAILURE) CPU: 28ms Sep 21 19:57:06 Hiigaran systemd[1]: Starting LSB: VirtualBox Linux kernel module... Sep 21 19:57:06 Hiigaran virtualbox[463]: * Loading VirtualBox kernel modules... Sep 21 19:57:07 Hiigaran virtualbox[463]: * No suitable module for running kernel found Sep 21 19:57:07 Hiigaran virtualbox[463]: ...fail! Sep 21 19:57:07 Hiigaran systemd[1]: virtualbox.service: Control process exited, code=exited status=1 Sep 21 19:57:07 Hiigaran systemd[1]: Failed to start LSB: VirtualBox Linux kernel module. Sep 21 19:57:07 Hiigaran systemd[1]: virtualbox.service: Unit entered failed state. Sep 21 19:57:07 Hiigaran systemd[1]: virtualbox.service: Failed with result 'exit-code'. Tried following the top answer in question, by removing virtualbox-dkms and installing it again. This resulted in the same lines as above. Attempting to start a virtual macine, I get an error giving the following details: Kernel driver not installed (rc=-1908) The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall virtualbox-dkms package and load the kernel module by executing 'modprobe vboxdrv' as root. where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT. The modprobe command results in: modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/4.13.3-041303-generic
I tried to use my Virtual Box and this is the error I received - (I just updated to the new Ubuntu also) and I am VERY new at this Linux OS. Kernel driver not installed (rc=-1908) The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing '/etc/init.d/vboxdrv setup' as root. Users of Ubuntu, Fedora or Mandriva should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.
I have two vectors, a1 and a2. They're identical except for a certain lag: I expected their cross-correlation to have a maximum of 1 at their lag. However that's not the case: their max cross-correlation is close to 1, but not quite (0.9998). (If I just remove the lag manually and correlate, I of course get a correlation of exactly 1.) My intuitive understanding was that cross-correlation took two vectors, "slide one over" by a certain amount, and calculated a correlation. Clearly that's not the case, because I don't get a value of exactly 1. Why isn't the peak 1? (This question is followup to , where the discrepancy is much bigger, so I take this is a general feature of ccf.) Code # make vectors a0 = runif(25) a1 = c(rep(0.5, 2), a0) a2 = c(a0, rep(0.5, 2)) # plot require(ggplot2) ggplot() + geom_line(aes(x=1:27, y=a1), color="red") + geom_line(aes(x=1:27, y=a2), color="blue") # cross-correlate tmp = ccf(a1, a2, type="correlation", plot=F) print(paste("maximum correlation is", max(tmp$acf)))
I have two sigmoid functions, sig1 and sig2, made with this function sigmoid = function(x, A =1, mu=0, ss = 1) A*1 / (1 + exp(-(x-mu) * ss)). Since they have a true offset of 10 (mu1=50 and mu2=60) I expected their cross-correlation function to peak at a lag of 10. My non-mathematical intuition is that cross-correlation "slides" one of the curves over by a given lag, correlates, and repeats for multiple lags. When I do this by myself in code (my.ccf in the code below) I do directly recover the lags I designed into the curves. However, ccf, the real R cross-correlation function, returns max lag of 4 (see below). What's going on? To replicate, I did the same thing for two sines. They have a designed "lag" of 10 (see below). Here, the max lag returned by ccf (9) is closer to the designed-in value, but isn't exactly equal. My intuitive function returns 10, the "correct" answer. Why doesn't the max of the two cross-correlation functions (4 and 9) exactly equal the lag I coded into the curves (10 and 10, respectively)? What's wrong with my intuition? Edit: As pointed out by Whuber, why isn't the max of ccf 1, since these are identical and perfectly aligned vectors. (code) # sigmoid function sigmoid = function(x, A =1, mu=0, ss = 1) A*1 / (1 + exp(-(x-mu) * ss)) # my intuition my.ccf = function(x,y, lag=20) { lags = -lag : lag # add padding to y y.padded = c(rep(NA,lag), y, rep(NA,lag)) # correlate rr = numeric(length(lags)) for (ii in 1:length(lags)) { # apply lag to y.padded I = (1:length(x)) + (ii-1) y.lagged = y.padded[I] rr[ii] = cor.test(x, y.lagged)$estimate } return(rr) } # make sigmoids and cross-correlate sig1 = sigmoid(1:100, mu=50, ss=1/3) sig2 = sigmoid(1:100, mu=60, ss=1/3) ccf.sig=ccf(sig1, sig2, plot=F) rr.sig = my.ccf(sig2,sig1,lag=16) # do the same with sines sin1 = sin((1:100) * 4*pi/100) sin2 = sin(((1:100) - 10) * 4*pi/100) ccf.sine=ccf(sin1, sin2,plot=F) rr.sine = my.ccf(sin2,sin1,lag=16) # plot sigmoids + ccf.sig p1 = ggplot() + geom_line( aes(x=1:100,y=sig1)) + geom_line(aes(x=1:100,y=sig2)) + ggtitle("sigmoids 1 and 2") p2 = ggplot(data.frame(lag=ccf.sig$lag, corr=ccf.sig$acf), aes(x=lag, y=corr)) + geom_line() + ggtitle("ccf function") p3 = ggplot() + geom_line(aes(x=-16:16, y=rr.sine)) + ggtitle("my intuition") p1 + p2 + p3 # plot sines + ccf.sig p1 = ggplot() + geom_line( aes(x=1:100,y=sin1)) + geom_line(aes(x=1:100,y=sin2)) + ggtitle("sines 1 and 2") p2 = ggplot(data.frame(lag=ccf.sine$lag, corr=ccf.sine$acf), aes(x=lag, y=corr)) + geom_line() + ggtitle("ccf function") p3 = ggplot() + geom_line(aes(x=-16:16, y=rr.sig)) + ggtitle("my intuition") p1 + p2 + p3
When I'm reading Computer Systems: A Programmer's Perspective, I met the sum of binary numbers and failed to prove it: $$ 2^0 + 2^1 + 2^2 + 2^3 + \cdots + 2^n = 2^{n+1} - 1 $$ This might be preliminary knowledge, I'm not good at mathematics, any body could give me a hint?
Since everyone freaked out, I made the variables are the same. $$ \sum_{x=1}^{n} 2^{x-1} $$ I've been trying to find this for a while. I tried the usually geometric equation but I couldn't get it right (if you need me to post my work I will). Here's the outputs I need: 1, 3, 7, 15, 31, 63 If my math is correct.
I want to share a folder between my host windows7 and guest Ubuntu but whenever I select add guest additions I get the following error: Unable to mount the CD/DVD image C:\PROGRA~1\Oracle\VIRTUA~1\VBoxGuestAdditions.iso on the machine Ubuntu. Would you like to force mounting of this medium? Could not unmount the currently mounted media/drive (VERR_PDM_MEDIA_LOCKED). What should I do? I got the following message on the terminal: ... Building the main guest additions module...done! Building the shared folder support module....fail! Atleast tell me how I can enable copy and paste between the host and guest. I have changed the settings to bidirectional but still the copy/paste is not working
I've recently installed Ubuntu on Oracle's Virtualbox. Now I want to install the guest additions. I started up my Ubuntu guest OS, clicked "Devices" and chose "Install Guest Additions". Nothing happened, and I don't see the CD icon on my desktop. How can I make this work?
I was reviewing "First Posts" queue with "answers" filter, and a wild question appeared: This way is very easy to detect some audits.
Just recently the . I've got this morning which seems to be out of scope for my filtered list. I have filtered my list to only review VBA and Excel-VBA tags while the audit is tagged with perl http pipes which have nothing in common with VBA. I see a problem with the way the system currently works Since I have a filtered list of tags, once I see a differently tagged question I already know it's an audit. Come on, that's too easy! Can this please be fixed? update I have ran into which I decided to edit - the question was tagged VBA and I thought it had nothing to do with VBA so I selected Edit which was the correct action. Now, once the first audit was clearly one to close - nothing to do with VBA and really easy to know that it actually was an audit - the second one was a very good audit. I am just thinking now if this is a proper bug or just a matter of malfunction in the system. I think the first one may have been made an audit for the wrong reason. Let's turn this into a discussion as I can't clearly work the system out.
Show that there are only two types of subgroups in $\mathbb{R}$ , either Discrete or Dense?
Let's say $G$ is some additive subgroup of $\mathbb{R}$ that has at least two elements. From what I understand, $G$ is then either dense in $\mathbb{R}$, or has some least positive element. What is the reason for this?
We have a SQL Agent job that runs daily that sends emais out to our drivers with their schedules for the next day. For 85% of drivers, the emails are not getting out of the SQL server. The other 15% send without error. I checked the logs and see this error: The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 3 (2020-03-22T16:00:06). Exception Message: Cannot send mails to mail server. (Failure sending mail.). ) Does anyone have any idea what's wrong, or how to get a more detailed error? This problem started after we migrated the server to a new datacenter. We are running SQL Server 2014 on a Windows Server 2008 R2 host.
SQL Sever 2016 with the latest updates. Running on WS2012R2. Following error message is received: The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 5 (2017-04-14T21:34:10). Exception Message: Cannot send mails to mail server. (The operation has timed out.). ) I have tried several ways of setting up Database Mail, a mixture of precreated scripts and following the interface in SSMS. I have also tried two different mail server credentials (Google and a Web Hosting Company), and both fail with the same error. The Web Hosting Credentials are used on a PHP Script on another Server which works perfectly fine. What should I check to get this working?
Let $f$ be a differentiable function with $|f'(x)|\leq1$ and $f(-3)=-3, f(3)=3$. Then find $f(0)$. I think this is mean value theorem problem. But I can't solve... help me please.
Given $f(x)$, which is differentiable at every point such that: $f'(x) \ge -5$ for every $ x \in R$ $f(2) = -13$, $f(9) = -48$ Prove that:$ f(3) = -18$ Now it's quite obvious that $ f(3) = -18$ since that if we know that the lowest value of the derivative is -5, the difference between $f(2)$ and $f(9)$ is $-48-(-13)=-35$ that means that that in the area $[2,9]$, $f'(x)=-5$ right? that's why I told that $f(3) = -18$, but I feel that my proof is insufficient, probably because I'm missing some theorems or such. can someone help me structure this proof into something RIGHT :)? Thanks a lot!
Issue: I'm having an issue with the decimal/floating point math in JavaScript/Typescript. , but I'm having no luck. Desired Result: 82.8 Result: 82.80000000000001 What's Working: total += (array[i] * weight[i] * 100) / 100; line is correctly working, but that same logic isn't working with the total. What I've Tried: In another function, I've multiplied and divided the value by 10 or 100. This works, but I can't get it to work in my case. const remainder: number = ((1 - Math.sqrt(value)) * 10) / 10; People have suggested using toFixed(2);, but that changes the typecast of the number to a string, which is what I don't want. calulateWeightedAverage.tsx: // Calculate Weighted Average export const calculateAverageWeighted = (array: Array<number>, weight: Array<number>) => { // Check If Data Exists if (array.length >= 1) { // Weight Length: Must Equal Array Length if (weight.length == array.length) { // Weight Sum: Must Equal 1 Or 100 if (weight.reduce((total: number, value: number) => { return total + value }) === 1 || weight.reduce((total: number, value: number) => { return total + value }) === 100) { // Total let total: number = 0; // Iterate Over Array let i: number = 0; while (i < array.length) { // Add To Total total += (array[i] * weight[i] * 100) / 100; // Increase I i++; } // IMPORTANT: FLOAT MATH (NOT WORKING HERE) return (total * 100) / 100; } else { // Error throw new Error('Error: Values of Weight Array must be equal to 1 or 100 (calculateAverageWeighted)'); } } // Array Length Is Less Than Weight Length else if (array.length < weight.length || array.length > weight.length) { // Error throw new Error('Error: Length of weight must be equal to input Array (calculateAverageWeighted)'); } } else { // Error throw new Error('Error: Empty Array (calculateAverageWeighted)'); } };
Consider the following code: 0.1 + 0.2 == 0.3 -> false 0.1 + 0.2 -> 0.30000000000000004 Why do these inaccuracies happen?
Which of the following sentences is more accurate? You may schedule a meeting as per your convenience. vs You can schedule a meeting as per your convenience. Or is there a better sentence to convey the same meaning?
Which word to use when we ask for help? Some conditions: We know that the person asked is able to do it. We don't know if the person asked is able to do it.
I have this query: SELECT avg(sum) FROM ( SELECT date_trunc('month', "timestamp"), sum(amount) as sum FROM bookkeeping WHERE summary LIKE 'Bitcoin purchase:%' GROUP BY date_trunc('month', "timestamp") ) a It gave me an impossible average cost of my Bitcoin purchases per month. I soon found out why: it ignores all the numerous months over the years where I did not buy Bitcoin at all, including only months when I did buy at least once. Since there aren't a ton of "empty" months included (with 0 for sum), it does the average of the sums for only the months where I bought at least once, so the average becomes completely wrong. How do I make it "invent" rows for the months which aren't represented by at least one record, so that the avg(sum) will actually be meaningful?
Consider: with days as (select day::date from generate_series(date '2013-01-01', date '2013-01-01' + 365, interval '1 day' day) day ) select 'Inspections'::text as data_label, count(i.reporting_id) as daily_count, d.day as date_column from days d left join inspection i on i.close_case_date = d.day group by d.day order by d.day This returns a set that looks like this: data_label | daily_count | date_column Inspections 1 01/01/13 Inspections 2 01/02/13 Inspections 4 01/04/13 Inspections 8 01/06/13 Note the 1 and 2 day gaps in the record set. I need to generate a set with those values filled in with 0 like so: data_label | daily_count | date_column Inspections 1 01/01/13 Inspections 2 01/02/13 Inspections 0 01/03/13 Inspections 4 01/04/13 Inspections 0 01/05/13 Inspections 8 01/06/13 How would I do this? I am not much of a Database Developer and am new to Postgres, so I am not sure where to start and can not find anything on how to accomplish this objective.
I have a main that start a thread for my form. I want to update the label1 text from the main thread. I have created my delegate and my method to update it but i don't know how to access the form thread and to modify the label1 text. Here my code for the main: public class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { //Thread l'affichage de la form Program SecondThread = new Program(); Thread th = new Thread(new ThreadStart(SecondThread.ThreadForm)); th.Start(); //Update the label1 text } public void ThreadForm() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); } } Here the code for my form1: public partial class Form1 : Form { public delegate void SetTextLabelDelegate(string text); public void SetTexLabel(string text) { if (this.label1.InvokeRequired) { SetTextLabelDelegate SetLabel = new SetTextLabelDelegate(SetTexLabel); this.Invoke(SetLabel, new object[] { text }); } else { this.label1.Text = text; this.Refresh(); } } public Form1() { InitializeComponent(); } } How can i access to the form thread and to modify the label1 text ? I am using C# and .Net 4.5.
I cannot figure out how to make a C# Windows Form application write to a textbox from a thread. For example in the Program.cs we have the standard main() that draws the form: static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); } Then we have in the Form1.cs: public Form1() { InitializeComponent(); new Thread(SampleFunction).Start(); } public static void SampleFunction() { while(true) WindowsFormsApplication1.Form1.ActiveForm.Text += "hi. "; } Am I going about this completely wrong? UPDATE Here is the working code sample provided from bendewey: public partial class Form1 : Form { public Form1() { InitializeComponent(); new Thread(SampleFunction).Start(); } public void AppendTextBox(string value) { if (InvokeRequired) { this.Invoke(new Action<string>(AppendTextBox), new object[] {value}); return; } textBox1.Text += value; } void SampleFunction() { // Gets executed on a seperate thread and // doesn't block the UI while sleeping for(int i = 0; i<5; i++) { AppendTextBox("hi. "); Thread.Sleep(1000); } } }
I saw a lot of answer to call a method from a given object using a string, but no one to get the object itself. I would like something like that var a var b var c function getObject(objectAsString) { return getMyObject(objectAsString); } then if I write var obj=getObject("a") my result is obj=a Is there a function "getMyObject"? Thanks
Is there a way to find JavaScript variable on the page (get it as an object) by its name? Variable name is available as a string constant.
Is it possible to render in cycles refractive shadows through glass texture (as pictured)? I have tried varying light bounces, specular lighting and increasing samples, perhaps my setup isn't powerful enough to try the very highest, although I am not sure that will enhance the refraction in the shadows - my current state of rendering (may download .blend file below): Thank you in advance for your advice and help! I have attached .blend file if this helps
What is the best method to create this kind of reflection and how to animate it?
Could someone please explain me this reviewer comment: asymmetric distribution could affect Principal Component Analysis results, symmetry of distribution should be tested. Authors should also indicate if outliers were observed and consequently excluded because they could affect factors My question: what does it mean asymmetry distribution could affect PCA? And also outliers, could they affect factors?
I want to do principal component analysis (factor analysis) on SPSS based on 22 variables. However, some of my variables are very skewed (skewness calculated from SPSS ranges from 2–80!). So here are my questions: Should I keep the skewed variables like that or could I transform the variables on principal component analysis? If yes, how would I interpret factor scores? What type of transformation should I do? log10 or ln? Originally, my KMO (Kaiser–Meyer–Olkin) is 0.413. Much literature recommends a minimum of 0.5. Can I still do factor analysis, or do I need to remove variables to raise my KMO to 0.5?
How to prove for any prime $$p \neq \{2,7\}, \exists n \text{ s.t. }p \mid n$$ where n is a number that consists only of 1s in octal base. I started off but need some direction. I thought of using $$ 8^{p-1} - 1 \text{ (mod p)} $$ and that $$ 8^{p-1} - 1 $$ given $(p-1)$ number of 7s in octal form; and that this divided by 7 is all 1s in octal form.
Prove that every number ending in a $3$ has a multiple which consists only of ones. Eg. $3$ has $111$, $13$ has $111111$. Also, is their any direct way (without repetitive multiplication and checking) of obtaining such multiple of any given number( ending with $3$) ?
Kinda a follow-up from . Actually, a more specific case, just to be sure. About Spell Scrolls: If the spell is on your class’s spell list, you can read the scroll and cast its spell without providing any material Components. Otherwise, the scroll is unintelligible. From what I understand from the rulings and seems to be accepted by , creatures can only cast spells from spell scrolls if they have a Spellcasting ability linked to a class. Innate Spellcasters don't, so they can't. Is that right? In particular, does it change if the Spell Scroll is specific to a Spell that the Creature knows? For example, can a Mind Flayer (the normal one, not the Arcanist Variant) cast Dominate Monster from a spell scroll? (Mind Flayers can otherwise innately cast the spell) I can see it being house-ruled as a Yes, similar to (depending on their domain), since the spells they learn from the domain are included on their "class' spell list", but from RAW I understand it as a No. Is my reading correct?
The DMG outlines what it means to be a spellcaster: If the prerequisite is to be a spellcaster, a creature qualifies if it can cast at least one spell using its traits or features, not using a magic item or the like. The requirement to cast spells from scrolls as referenced by the Spell Scroll magic item (DMG pg. 200) says: ...if the spell is on your class's spell list, you can use [it]... But creatures don't typically have spells lists as they have traits or features for casting spells. Does that mean that no creature is able to cast spells from scrolls even those categorized as spell casters? What creatures can cast spells from scrolls? Note: This question differs from as this question pertains to creatures specifically which that question does not address.
I am using Google Compute Engine VM for a web server. I currently have 3TB as disk space but want to bring it down to 1TB. Can someone tell me where I can do this from? Thanks.
i have a huuuuge problem. Created a snapshot and image from my instance...instance has 1000GB of disk. Now i need to reduce it but everytime i try to create an image or a snapshot from that, i get the same error "Disk need to be at least 1000GB". There is a way to reduce disk size directly on instance? Some workaround?
@AuraEnabled public static List<StaffReport__c> getUserReports(String UserId, Date startDate, Date endDate) { return [Select Date__c from StaffReport__c where User__c =: UserId AND Date__c >=: startDate AND Date__c <=: endDate ORDER BY Date__c ]; } Here i am passing startDate date and endDate in Date format, But it is appending timestamp in Query like 2019-06-01 00:00:00 I need to remove timestamp from Date and use it in Query I am Using below methods to remove Datetime.newInstance(sd.year(), sd.month(), sd.day()).format('yyy-MM-dd') this will result 2019-06-01 but cant assign it to Date type but at the End Date__c is Date type need to convert it from Datetime to Date, Again appending 00:00:00 Any solution for this? Thanks in Advance.
The following code returns the time of the current date: System.debug('Current date: ' + Date.today().toStartOfMonth()); Output: 2018-08-01 00:00:00 How to remove time from date?
I want to write the if condition by using greater than or less than symbol inside java script in xsl. I used like this '<' , but getting SyntaxError: missing ) after condition in the html. Please share your suggestions. <![CDATA[ if(1 < 1){ alert('yes'); }else{ alert('no'); }; ]]>
i have a tiny little problem with xslt, js and html entities, eg. within a template: <script type="text/javascript"> <xsl:value-of select="/some/node"/> for (var i = 0; i < 5; i++) { // ^^^ js error } </script> <script type="text/javascript"> <xsl:value-of select="/some/node"/> for (var i = 0; i < 5; i++) { // ^ xslt error } </script> <script type="text/javascript"> <xsl:value-of select="/some/node"/> // <![CDATA[ for (var i = 0; i < 5; i++) { // ^ becomes < } // ]]> </script> <script type="text/javascript"> <xsl:value-of select="/some/node"/> for (var i = 0; i <xsl:value-of disable-output-escaping="yes" select="string('<')"/> 5; i++) { // works of course } </script> does anyone have an idea where my problem could come from? i always thought the xslt processor would leave the content of a <script/> element unescaped when using the html output method ... i run libxslt2 version 1.1.24 on OSX which was installed using macportsports ...
I downloaded all the files that came along the iso of ubuntu 15.10 provided on the ubuntu website. But when i copied them to a usb, it shows no signs of the 15.10 installer. PLSSSS help!!!
I would like to see a full how-to guide on how to install Ubuntu.
I have the following function defined on $\mathbb{R}$: $$f(x) = \begin{cases} 0 & \text{if $x$ irrational} \\ 1/n & \text{if $x = m/n$ where $m, n$ coprime} \end{cases}$$ I want to show that $f$ is continuous at every irrational point, and has a simple discontinuity at every rational point. I was able to show the first and partially the second (I showed that $f$ has a discontinuity at every rational point, but got stuck on showing that the discontinuity is simple). However, I've realized that I can simply show that $\lim_{t \rightarrow x}f(t) = 0$ for every $x$, and both of the things I want to show follow from this. How can I show this?
I have to prove that a function $f:]0,1] \rightarrow \Bbb R$ : $$ f(x) = \begin{cases} \frac1q, & \text{if $x \in \Bbb Q$ with $ x=\frac{p}q$ for $p,q \in \Bbb N$ coprime} \\ 0, & \text{if $x \notin \Bbb Q $} \end{cases} $$ is discontinuous in every point $x \in \ ]0,1] \cap\Bbb Q$. And then to consider $x \in \ ]0,1] \backslash \Bbb Q$ and prove that it is continuous. For now I learned different ways to prove continuity (epsilon-delta, sequences), but I'm never sure what would be better to use in each different case. I wanted to prove the discontinuity by using sequences: $$\forall x_n \quad x_n\rightarrow a \quad \Rightarrow \quad f(x_n) \rightarrow f(a)$$ I tried creating a sequence $ x_n=\frac1n + a$, we know it converges to $a$ but $f(x_n)\ $ doesn't converges to $\ f(a)$ because there would still be some points not in our set (irrational numbers that creates gaps). But I don't think it works, so I'm asking you if you could help me solving the two questions.
I thought about gravitational field. In Newtonian mechanics, gravitational energy between two matter is $U=-G\frac{M_1 M_2}{R^2}$ when mass of each matter is M1 and M2, having a distance R. With this equation, I was able to obtain the energy density of the gravitational field. But since Newtonian mechanics are good approximation of relativity, it should be used only in non-relativistic situation. Anyway, I obtained the formula that if the strength of gravitational field(which also means gravitational acceleration) is g, the energy density of field was $u_g=-\frac{1}{8\pi G}g^2$. Now here is my question. Does gravitational field really has negative energy density? Or is my miscalculation due to an error between Newtonian mechanics and relativity? If so, can a system have a negative net energy? edit) In the link from comment, there was solution using Schwarzschild raidus. Then what is the net energy difference between black hole with mass $M$ and system with same mass $M$, but nearly no potential energy due to large distane between particles. (Lets assume that black hole is Schwarzschild Black Hole for simple calculation :)
With respect to both gravity and electromagnetism, to the best of my understanding potential energy is added or subtracted from a system based on the distance between two objects such as charged or massive objects. Would this then imply that when oppositely charged objects or two massive objects are brought together within a small enough radius that the drop in potential energy would be greater than the combined mass of the two objects making the net mass/energy of the system negative?
Hello I am new to D3 and I am wondering what the best choices would be as to followers. Should I be changing them constantly depending on the situation? Should I be changing them depending on the difficulty, or the class? What is the best way to determine what follower I should be using. I am currently using the new Crusader class. Help me out here becasue my indecision is through the roof.
I've been playing mostly multiplayer so far, so I haven't had much experience with using followers. But now that I started a new character that I will be playing solo, I will surely need a follower to keep my squishy self out of harm's way. This has got me wondering: Which follower should I choose? What are the strengths and weaknesses of each of the followers? Which followers would you suggest for each of the character classes, and why?
I have a problem with codeblocks ver 10.05. I made a c++ project, and I wrote a program like this: main.cpp #include <iostream> #include "vectorddd.hpp" using namespace std; int main() { vector3D<int> tesztinttomb; tesztinttomb.saveout("igen.dat"); return 0; } header file (vectorddd.hpp): #ifndef VECTORDDD_HPP_INCLUDED #define VECTORDDD_HPP_INCLUDED #include <iostream> template <class T> class vector3D { T *x; T *y; T *z; int meret; public: void saveout(char* FileName); vector3D(int Meret=0) : x(new T[meret]), y(new T[Meret]), z(new T[Meret]), meret(Meret) {} ~vector3D() { delete [] x; delete [] y; delete [] z; } }; #endif // VECTORDDD_HPP_INCLUDED implementation file (vectorddd.cpp): #include "vectorddd.hpp" template <class T> void vector3D<T>::saveout(char* FileName) { int i=0;// I know this is stupid... but the emphasis is on the linking problem } And it just doesn't link together. I know I have to check .cpp files link and compile settings at properties->build options. And I don't find any problem, but is just write always the same: In function `main': undefined reference to `vector3D<int>::saveout(char*)' ||=== Build finished: 1 errors, 0 warnings ===| And if I put the .cpp files implementations into my .hpp file it works correctly. But this is not how codeblocks should work.
Quote from : The only portable way of using templates at the moment is to implement them in header files by using inline functions. Why is this? (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)
Let $n \in \mathbb{N}$ and suppose that $n = kl$, for some $k, l \in \mathbb{N}$ such that $1<k<l<n$. Show that $(n-1)! \equiv 0(\mod n)$. So far I have show Wilson's Theorem, that is $(p-1)! \equiv -1(\mod p)$ for some prime $p$. How would I go about this?
I have a proof and need some feedback. It seems really obvious that the statement is true but it is always the obvious ones that are a little trickier to prove. So I would appreciate any feedback. Thank you! Here is what I am asked to prove: If $n$ is composite then $(n-1)! \equiv 0 \pmod n$. Proof: $n$ is composite $\implies n=ab$ where $a,b \in \mathbb{Z}$ and $0<a,b<n$. Case 1: If $a=b$ then $n=a^{2}$. Now $n \mid (n-1)! \implies a \mid (n-1)!$, so $$\begin{aligned} (n-1)! &\equiv 1\times 2\times \dotsb \times a \times\dotsb\times (n-a)\times\dotsb\times (n-1) \\ &\equiv 1\times 2\times \dotsb\times a \times\dotsb\times -a\times\dotsb\times -1 \\ &\equiv 0 \pmod n \end{aligned}$$ Case 2: $0<a<b<n$. Then, since $a \mid n$, $b \mid n$ and $n \mid (n-1)!$ we have that $a \mid (n-1)!$ and $b \mid (n-1)!$. So this implies $(n-1)! \equiv 1\times 2\times \dotsb\times a \times\dotsb\times b\times\dotsb\times (n-1) \equiv 0 \pmod n$, Q.E.D.
I'm trying to cite with biblatex on WinEdt. Unfortunately, it doesn't work. Here's the code: \documentclass{article} \usepackage[backend=biber, bibencoding=latin1]{biblatex} \addbibresource{C:/citations/library.bib} \begin{document} fsdfsd \textcite{Organski1958} \printbibliography \end{document} Output: fsdfsd Organski1958 There is no reference list and the citation has no separation between author name and year. I'm not sure why this is and would appreciate your help very much!
Running the minimal example \documentclass{article} \usepackage{filecontents} \begin{filecontents*}{\jobname.bib} @ARTICLE{example, author = {Other, Anthony Norman}, title = {Some things I did}, year = {2014}, journal = {J.~Irrep. Res.}, volume = {1}, number = {1}, pages = {1-10} } \end{filecontents*} \usepackage[backend=biber]{biblatex} \addbibresource{\jobname.bib} \begin{document} Hello\cite{example}. \printbibliography \end{document} I get the warning There were undefined references. I have read and know that I need to run: LaTeX Biber LaTeX However, my editor is only set up to run BibTeX. How do I go about setting up my editor/IDE to be able to run Biber, and how do I run the LaTeX/Biber/LaTeX cycle? Answers (sorted alphabetically by editor name) Answer guidelines Each answer should be for one editor. If the editor is cross-platform, if possible give a single answer with notes covering the minor platform variations. Please edit the question to include new answers in the 'link list' Each answer should be 'stand alone', i.e. don't say 'It's almost the same as editor Y but ...' for the editor part Instructions for 'build tools' such as arara or latexmk are welcome but should explain how to set up the editor in question as not all editors allow simple addition of arbitrary tools
I want to iterate through a list of videos and convert them from .avi to .mp4 using a script, which takes about ~1 min for each file. find . -name "*.avi" -type f | while read FILE; do HandbrakeCLI [flags] $FILE # execute 30 sec ~ 2 min function here done problem is, this seems to be only running on the first file, as though successive invocations are blocks. How can I spawn asynchronous threads to handle each case? This is a duplicate of that other issue which is trying to solve new processes of ssh, and the solution is based on arguments available to ssh. I am asking for a way to spawn new bash threads in an iterator, maybe theres a duplicate ticket that can direct me that way?
I've been banging my head against for wall for a while with this one. I want to SSH into a set of machines and check whether they are available (accepting connections and not being used). I have created a small script, tssh, which does just that: #!/bin/bash host=$1 timeout=${2:-1} ssh -qo "ConnectTimeout $timeout" $host "[ \`who | cut -f1 | wc -l \` -eq 0 ] && exit 0 || exit 1" This script works correctly. Returning 255 if there was a connection problem, 1 if the machine is busy and 0 if everything is good. If anyone knows a better way to do this please let me know. So next I try and call tssh on my set of machines using a while read loop, and this is where it all goes wrong. The loop exits as soon as tssh returns 0 and never completes the full set. while read nu ; do tssh "MYBOXES$nu" ; done < <(ruby -e '(0..20).each { |i| puts i }') At first I thought this was a subshell problem but apparently not. Any help, along with comments on style/content, would be much appreciated! I know I'm going to kick myself when I find out why...
I am using the lightning:recordForm for creating the record <lightning:recordForm aura:id="recordViewForm" objectApiName="{!v.sObjectName}" columns="2" recordId="{!v.recordId}" layoutType ="Full" mode="edit" onsuccess="{!c.onSuccess}" onsubmit="{!c.onSubmit}" onload="{!c.onLoad}" onerror="{!c.onError}"/> onSuccess : function(component, event, helper) { console.log('event response==='+ (event.getParams("response")).Id); // this log statement returns --> event response===undefined }
I am using lightning:recordEditForm and lightning:inputField for creating a new record. this component is being used inside a lightning community builder. When i click the submit button, i am able to create a new record in my custom object. However i need the created record ID as i need to pass it in the URL for the next page.
database.emptyRecycleBin([select id from test__c where IsDeleted = true ALL ROWS]); when i run the above and try to query the bin record, still record exist. What is wrong ? Please guide me !
I did the following 1)Deleted a record in sfdc and then ran the query using ' ALL ROWS' keyword and i could see that as per the documentation that data from recycle bin is also retrieved with isdeleted=true 2)I deleted the record from recycle bin and now i observed that still i was able to retrieve it . Can anybody aware why this happens ? Also if i filter the records by date and use ALL ROWS will the date filter still apply?
I want to put windows and Ubuntu together in one pc (seems possible xD). I reduce my hard drive to 150GB and install Ubuntu 14.04 on that. All easily. He installed all well and I restart it. Then immediately suggests a update, which I installed also. Another reboot and then it happens. The boot manager grub works and it also starts, but will not display, but it shows an black screen or there is the following error message: [4.498559] sd 0: 0: 0: 0: [sdg] No caching mode page found [4.498600] sd 0: 0: 0: 0: [sdg] Assuming drive cache: write through [12.205496] init: Error while reading from descriptor: Broken pipe I installed then Ubuntu , and with the same problem: Either black screen or remains stuck at the points of loading. I have checked my hard disk to the cluster error and also defragmented. It is not on the hard disk and the CD-ROM drive that burns the CD it is also not, because I have also used other CD burner with the same problem. How can I solve it?
I am trying to boot Ubuntu on my computer. When I boot Ubuntu, it boots to a black screen. How can I fix this? Table of Contents:
I think that these two sets cannot be turned into fields by re-defining addition or multiplication (or both) but I am not sure how to prove this only from axioms of the field and (if needed) some elementary properties of fields that follow directly from axioms of the field. My intuition is that $\mathbb N_0$ and $\mathbb Z$ are not "dense enough", as is, for example, $\mathbb Q$, to be able to become fields. How would you prove that we can(or cannot) turn them into fields?
Is it possible to define addition and/or multiplication on the set of a) natural numbers (including $0$: $0,1,2,3,...$) b) integers $(..., -2, -1, 0, 1, 2, ...)$ in such way that they will become fields? Thanks in advance.
There are homomorphisms of a group into itself that are one-to-one but not onto. Example : $f:\Bbb Z \rightarrow \Bbb Z$ defined by $f(n)=2n$. $f$ is a homomorphism with kernel ${0}$. Therefore it is one-to-one. Image of the homomorphism is $2\Bbb Z$. Therefore it is not onto. Is there an example of a homomorphism of a group onto itself that is not one-to-one? It has to be an infinite group $G$ having a normal subgroup $N$ such that $G/Nβ‰ˆG$. Index of this normal subgroup $N$ in $G$ must be infinite.
Let $G$ be any group such that $$G\cong G/H$$ where $H$ is a normal subgroup of $G$. If $G$ is finite, then $H$ is the trivial subgroup $\{e\}$. Does the result still hold when $G$ is infinite ? In what kind of group could I search for a counterexample ?
I frequently encounter the following situation: I am proving a claim which consists of multiple sub-claims, which I've enumerated in a list using the enumerate environment provided by the eponymous package. The proof then also takes the form of such a list. At the end of the proof, the tombstone (a.k.a. QED symbol) appears vertically offset from the final line of the last item of this list. Here's a minimal working example to see this behavior: \documentclass{article} \usepackage{enumerate} \usepackage{amsthm} \begin{document} \begin{proof} \begin{enumerate} \item Problem \end{enumerate} \end{proof} \end{document I don't like this behavior, and would like the tombstone to appear vertically aligned with the final line of the last item. So far, I've gotten by with some quick and dirty solutions (using negative \vspace) but I've now come across a case where that doesn't work (because of page breaking). So I'm looking for a proper solution. I've taken a look at , which the site's algorithm suggested to me while typing this up, but didn't like the quick and dirty way suggested there (and wasn't able to implement egreg's answer in a satisfactory manner).
I write the codes below to get a square as if to say q.e.d. $$equation$$\textbox{\hfill\square} Text\textbox{\hfill\square} I want the square at the right extreme of the same line. I succeed only when the rest of the line has text and/or an equation within $ $, but not when it has an equation within $$ $$. In this case the square appears in the extreme right but in the next line but I want it on the same line. Any help is appreciated.
If $f$ and $g$ are irreducible polynomials in $K[X,Y]$ that are not associates, show that the zero set $Z(f,g)$ is either empty or finite. Here is what I been told to do: If $(f,g)β‰ K[X,Y]$, show $(f,g)$ contains a nonzero polynomial in $K[X]$ and similarly a nonzero polynomial in $K[Y]$. and what i should do before that is let $R=K[X]$ and $F=K(X)$, and apply Gauss’s Lemma to show $f$ and $g$ are relatively prime in $F[Y]$. Can any one help please, thanks a lot.
Let $k$ be any field, and let $f,g\in k[x,y]$ be two irreducible polynomials such that $g$ is not divisible by $f$. Prove that $V(f,g)\subseteq A_k^2$ is finite.
When people talk about experience gains in Pokemon go, they usually talk about catch bonuses, evolution bonuses, hatching bonuses, etc. I haven't found anything that discusses experience gains from gym battles. Unlike the bonuses mentioned above, gym battles seem to not reward experience in numbers ending in 0 (or 5 in the case of a Pokemon escaping). I would assume that the higher the CP of the Pokemon defeated, the more experience would be given, but it looked like I was receiving different amounts for defeating the same Pokemon each time (training a gym). Does anyone know if the experience reward for battling includes other factors like time remaining or HP remaining?
I have tested this a little bit and I'm not quite sure I understand the exact numbers or what impacts them. I took a gym, put in a 25cp Magikarp, and trained against it. 521cp Vaporeon: 10xp and 100 prestige 10cp Magnemite: 100xp and 1000 prestige I didn't record other numbers, but I know I would only get around 800ish prestige with pokemon around the 25cp-35cp range. Purpose to this (feel no need to answer these): What if there were 2+ low cp defenders? Would I gain 100xp per defeat as long as my cp is equal to or lower than theirs? Could I gain more xp if the defender was 500cp and I won with a 200cp? Is this a strat to take down more prestige at an opposing gym (low cp, type advantage)? For all I know, getting less than 100xp per defeat is based on HP difference, attack power difference, or even how many attacks it took to win. Does anyone know the math for how much xp you gain or prestige you gain when training, and how much they lose at opposing gyms? Thanks!
I am new to Java. I wrote this program and when I run it, it always gives me that the answer is 0.0 Can you tell me what I did wrong? import java.util.Scanner; public class Learnclass { public static void main(String[] args) { Double fnum, snum; Double ans = 0.0; String opr; Scanner getIn = new Scanner(System.in); System.out.print("Enter your first number: "); fnum = getIn.nextDouble(); System.out.print("Enter your second number: "); snum = getIn.nextDouble(); System.out.print("Enter the operation: "); opr = getIn.next(); if(opr == "add") { ans = fnum + snum; } System.out.print("Answer is " + ans); } }
I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug. Is == bad? When should it and should it not be used? What's the difference?
Suppose $X$, $Y$ are random variables and $E(X|Y)=Y, E(Y|X)=X$. Is this sufficient to show that $X=Y$? Or at least $X = Y$ almost surely?
Assume that $X$ and $Y$ are two random variables such that $Y=E[X|Y]$ almost surely and $X= E[Y|X]$ almost surely. Prove that $X=Y$ almost surely. The hint I was given is to evaluate: $$E[X-Y;X>a,Y\leq a] + E[X-Y;X\leq a,Y\leq a]$$ which I can write as: $$\int_A(X-Y)dP +\int_B(X-Y)dP$$ where $A=\{X>a, Y\leq a\}$ and $B=\{X\leq a,Y\leq a\}$. But I need some more hints.
I want to start photograph newborns. But know I am pretty comfused which lens would be good on my Nikon D7200 crop camera.? Everywhere i look for information all suggestions are for full frame camera. At start I wanted 24-70mm lens, bur now I dont know. So maybe you can help me decide. Which lens could give me sharp pictures and beautiful bokeh? :)
I am an amateur photographer and I have a newborn session coming up for a family friend. My current gear is: Canon T5i (crop sensor) Canon 18-55 IS STM Kit lens 85mm f/1.8 lens I plan on buying a reflector for the shoot and will be using natural light as my light source. So my question is: is this enough gear to get some nice photos? Should I get another prime lens besides the 85mm? I don't really use the kit lens. I also have another 8 month old baby shoot coming up and an informal wedding shoot coming up so it would be nice to use the lenses in all situations. I don't need a telephoto at the moment and will probably not use one any time soon.
I am in London. Is it a good idea to travel 11 miles (one way) from home to office.Google says it takes 56 minutes. I wear office formal with out a suit and tie. What advice can you suggest on clothing? My office hours are 9-5
In the (distant) past I commuted 6 km (more than half an hour) each way, on a cheap bike with big knobbly tyres. Soon I'll have a new commute: 18 km each way, daily. That's much further than I've done in the past, and I don't want it to take 2 hours each way; but suggests that it's feasible: Most people who reside 10 to 20 kilometres away will also find it quite easy to cycle to work, although the distance in the high end of this range will become a little more demanding. If I can do it in 80 minutes or even less each way, that would be ideal. I'm 49 years old, 6 foot tall, and weigh 170lb, and I want to commute by bike because otherwise I'd be getting no exercise in my week at all. I've never bought or ridden anything but a cheap bike. What equipment should I buy then, to commute 11 miles each way through a city (Toronto) on flat, paved roads, shared with cars: Wheels? Tyres? Clipless pedals and shoes? Gears? Handlebars (e.g. flat or dropped)? Frame (size, shape, material)? Mud-guard/fender?
I have an Acer Chromebook with model-number CB3-132-C971 and it will be reach end of support in June 2022. I don't want to throw this computer away. Is it possible to install Ubuntu on this computer with an ISO-file? How do I remove Chrome-OS totally and install Ubuntu instead? what are the steps?
I want to uninstall Chrome OS and install Ubuntu instead. How would I do this?
From Mechanics; Landau and Lifshitz, it's stated on page 5: Since space is isotropic, the Lagrangian must also be indpendent of the direction of $ \mathbf{v}$, and is therfore a function only of its magnitudie, i.e. of $ \mathbf{v} \cdot \mathbf{v}=v^2$: $L = L(v^2)$ How is he able to exlude $L = L(| \mathbf{v}|)$?
I'm a newbie in physics. Sorry, if the following questions are dumb. I began reading "Mechanics" by Landau and Lifshitz recently and hit a few roadblocks right away. Proving that a free particle moves with a constant velocity in an inertial frame of reference ($\S$3. Galileo's relativity principle). The proof begins with explaining that the Lagrangian must only depend on the speed of the particle ($v^2={\bf v}^2$): $$L=L(v^2).$$ Hence the Lagrance's equations will be $$\frac{d}{dt}\left(\frac{\partial L}{\partial {\bf v}}\right)=0,$$ so $$\frac{\partial L}{\partial {\bf v}}=\text{constant}.$$ And this is where the authors say Since $\partial L/\partial \bf v$ is a function of the velocity only, it follows that $${\bf v}=\text{constant}.$$ Why so? I can put $L=\|{\bf v}\|=\sqrt{v^2_x+v^2_y+v^2_z}$. Then $$\frac{\partial L}{\partial {\bf v}}=\frac{2}{\sqrt{v^2_x+v^2_y+v^2_z}}\begin{pmatrix} v_x \\ v_y \\ v_z \end{pmatrix},$$ which will remain a constant vector $\begin{pmatrix} 2 \\ 0 \\ 0 \end{pmatrix}$ as the particle moves with an arbitrary non-constant positive $v_x$ and $v_y=v_z=0$. Where am I wrong here? If I am, how does one prove the quoted statement? Proving that $L=\frac{m v^2}2$ ($\S$4. The Lagrangian for a free particle). The authors consider an inertial frame of reference $K$ moving with a velocity ${\bf\epsilon}$ relative to another frame of reference $K'$, so ${\bf v'=v+\epsilon}$. Here is what troubles me: Since the equations of motion must have same form in every frame, the Lagrangian $L(v^2)$ must be converted by this transformation into a function $L'$ which differs from $L(v^2)$, if at all, only by the total time derivative of a function of coordinates and time (see the end of $\S$2). First of all, what does same form mean? I think the equations should be the same, but if I'm right, why wouldn't the authors write so? Second, it was shown in $\S$2 that adding a total derivative will not change the equations. There was nothing about total derivatives of time and coordinates being the only functions, adding which does not change the equations (or their form, whatever it means). Where am I wrong now? If I'm not, how does one prove the quoted statement and why haven't the authors done it?
I am having the transaction dataset which contains 95% or user initiated transactions and 5% fraud transactions. When I am fitting the logistic regression model, it gives me bias prediction - as most of the transactions are as user initiated. So, I want to fix this issue of data distribution or other issue? One of source suggested that prior probability can help in this issue. If this is true can any one explain? What's it and if this is not helpful then which are the possible solution for this problem? I have other user profile variables but I want to get this thing solved without considering them. Is there any solution ?
Okay, so I think I have a decent enough sample, taking into account the 20:1 rule of thumb: a fairly large sample (N=374) for a total of 7 candidate predictor variables. My problem is the following: whatever set of predictor variables I use, the classifications never get better than a specificity of 100% and a sensitivity of 0%. However unsatisfactory, this could actually be the best possible result, given the set of candidate predictor variables (from which I can't deviate). But, I couldn't help but think I could do better, so I noticed that the categories of the dependent variable were quite unevenly balanced, almost 4:1. Could a more balanced subsample improve classifications?
We have public computers in our library, where we have installed Linux exclusively. It has come to our notice that some geeks are installing Windows on our machines. Those Windows are pirated versions. In due time they crash and repairing a PC becomes headache for us. If there can be a way - so we can set these computers in such a way that they do not accept any new OS installation except for what we have installed (only we, the admins should have the control on what we choose to install) - this shall remain a great help. Thanks & Regards.
I want to disable a particular USB storage device (a sandisk flash drive). I read somewhere that you can use the .config file. How do i use it to disable that?
This question was asked in my abstract algebra quiz and professor gave answers but my answer is wrong. Question: Is $x^4+x^2 +1 =0$ irreducible in $\mathbb{Z}[x]$? Root of $x^4+x^2 +1 =0$ doesn't exists in $\mathbb{Z}$ as it is always +ve and as $x^4+x^2 +1 =0$ is irreducible over $Z_2$ so it is irreducible over rationals and hence irreducible over integers. But answer is that it is reducible! Can you please tell what mistake I am making and what is right way to do?
Alright, I met this example solved in a book, but I want to know how did they come up with the answer: $$ (1+q^2+q^4) = (1+q^2+q)(1+q^2-q) $$ Can you also refer me some internet source where I can learn the rules of factoring. Thank you in advance.
I am looking for a TV series I saw around 2000-2005. I believe it was about a secret organisation sending people in the past to prevent a disaster. I remember at the end of the episode, they were celebrating another successful mission - that person 5th or 10th - which was rare because all the other people sent before became insane after only 2 or 3 missions. I do remember it because the main character was looking at a champagne glass, but the bubbles were going down, implying that mental health was degrading.
This is a TV series from the early 2000s (maybe the late 90s). It was on prime time TV in the US. There is a government agency that has a time machine that allows the main character to jump back in time a day or a week - I can't remember exactly, but it couldn't send you very far back in time. I recall one episode where a terrorist releases some sort of virus from a lab that kills lots of people, including someone important (maybe the President?). The first symptom is a bloody nose. The hero has to go back over and over to stop the outbreak, each time getting closer and closer to the culprit before he breaks the vial that contains the virus. When he finally succeeds, he is the only one infected, but they immediately quarantine him and give him treatment.
I'm doing a tutorial on how to save a text file with StreamWriter. I understand how to do it but I started reading a tutorial on the StreamWriter Class to get a better understanding of it. In an example, it places the word using StreamWriter but in the other tutorial, it does not. Why is this? Do I need to use the using? how to save to text tutorials way private void button3_Click(object sender, EventArgs e) { StreamWriter File = new StreamWriter("data.txt", true); File.Write(""); File.Close(); } == StreamWriter Class In C# With Programming Example == namespace StreamWriter_Class { class Program { static void Main(string[] args) { string file = @"D:\csharpfile.txt"; ---> using (StreamWriter writer = new StreamWriter(file))
User answered the wonderful question by mentioning the using keyword. Can you elaborate on that? What are the uses of using?
When looking in the terminal, I have NameIWantoToChange@My-MacBook-Air. I've searched and found ways to change the name to the right of the @ sign but I want to change the name of the one to the left, I'm new to Apple and don't know what it's called to properly search for the solution.
My computer name in System Preferences > Sharing is set to "archos", but is showing as "iphone" on Terminal. It just started doing this after I loaded Xcode for doing iPhone development: Last login: Mon Nov 7 14:46:55 on ttys001 iphone:~ travis$ Any ideas what could be causing this?
We can define the cofinite topology as the following $\mathcal{T}_{cofinite} = \{U \subseteq X| U = \emptyset, X-U \mbox{is finite}\}$. Let $\mathcal{U}= \{U_{\alpha}\}_{\alpha \in I}$ be an open cover for $\mathbb{R}$. But where can we take this argument. We want to find a finite sub cover for $\mathbb{R}$ and then we are done. We can also included that since $\mathcal{U}= \{U_{\alpha}\}_{\alpha \in I}$ is an open cover for $\mathbb{R}$ that $\mathbb{R} = \cup_{\alpha \in I} U_{\alpha}$.
While we know that every finite set is compact, how to prove that every infinite subset of $\mathbf{R}$, the set of all real numbers, is also compact in the finite-complement topology (also called the co-finite topology)? What is the situation in the case of an arbitrary infinite set $X$ with the finite-complement topology?
Dear People who will read this I was programming php by fallowing tutorial with phpacademy Login and Register tutorial before that it was fine and I noticed after I closed terminal it gave me 500 Error code it also says The website encountered an error while retrieving nameofmydomain/lr/index.php. localhost is my server name It may be down for maintenance or configured incorrectly Code for the index.php file <!doctype html> <html> <?php include 'includes/head.php'; ?> <body> <?php include 'includes/header.php'; ?> <div id="container"> <?php include 'includes/aside.php'; ?> <h1>Home</h1> <p>Just a template.</p> </div> <?php include 'includes/footer.php'; </body> </html> All I did is fallowed tutorial in video 3 by including head,header,aside,footer, pretty much I am linking php files to index.php file. I don't know why it gave me error server error code 500. I already cleared cache deleted cookies, after I deleted cookies I restarted my browser and it still gives me an error. Any suggestions, any help, any advice would be greatly appreciated. Sincerely Guy who needs help with his localhost server. I already read error log so I'm gonna say on line 13 there opening and closing script tag.
I have found a very similar to this, which I thought would solve my problem. However, after changing my .htaccess file, with index.php on the end of the list, and then index.php as the only entry, I still cannot get index.php to display. Every other page works fine, but I don't know how to fix this. Thanks.
On the blog page, there is a link to the blog page. However, following this link results in "Sorry, we can't find that page that you're looking for."
Previously, in order to explain the benefits of (certain limited kinds of) duplication on Stack Exchange sites, I've seen a blog.stackoverflow blogpost with the words "Dr. Strangedupe" in the title. The post comes up in a search on the new blog, but Can we please bring this post back? I'd love to link to it when , to reassure the questioner that there is value in not deleting their question because of search terms, but the blog post explained it a lot better than I could in a comment.
I am training a model (Recurrent Neural Network) to classify 4 types of sequences. As I run my training I see the training loss going down until the point where I correctly classify over 90% of the samples in my training batches. However a couple of epochs later I notice that the training loss increases and that my accuracy drops. This seems weird to me as I would expect that on the training set the performance should improve with time not deteriorate. I am using cross entropy loss and my learning rate is 0.0002. Update: It turned out that the learning rate was too high. With low a low enough learning rate I dont observe this behaviour. However I still find this peculiar. Any good explanations are welcome as to why this happens
In it says To make gradient descent work correctly, we need to choose the learning rate Ξ· to be small enough that Equation (9) is a good approximation. If we don't, we might end up with $\Delta C>0$, which obviously would not be good! At the same time, we don't want $\eta$ to be too small, since that will make the changes $\Delta v$ tiny, and thus the gradient descent algorithm will work very slowly. In practical implementations, $\eta$ is often varied so that Equation (9) remains a good approximation, but the algorithm isn't too slow. We'll see later how this works. But just a few paragraphs before we established that $\Delta C\approxβˆ’\eta\nabla Cβ‹…\nabla C=βˆ’\eta\|\nabla C\|^2$ is obviously always negative (for positive $\eta$). So how can $\Delta C$ be positive if we don't choose a small enough learning rate? What is meant there?
I need to screen mirror my android phone to Ubuntu PC. Is there any tool or package available in Ubuntu to do this?
There is a thing which is called miracast, it can mirror the display of the Android phone to another monitor, but my screen doesn't have this function, am I possible to do it in Ubuntu?
I currently have the ASP following code, where if a particular non-Latin character "Π΄" appears in my search string, I get a desired response as below. myQuery = request("myQuery") If InStr(1, myQuery, "Π΄", 1) > 0 then Response.write "Query from languages ...... detected." Else Response.write "Continue searching English/Latin archive." End if But how do I replace my single character with an array of characters: myArray = Array("ß","ΓΌ","ş","ğ", "Γ€", "Π΄", "Ρ„") In other words, how do I check to see if any of the characters in myArray appears in myQuery?
In the code below For i = LBound(arr) To UBound(arr) What is the point in asking using LBound? Surely that is always 0.
I just asked a question a moment ago, the subject of which was "Is there a word for taking an (possibly undeserved) authoritative tact?" And I immediately had the follow up question of "was that sentence grammatically correct?" Namely, does the article a/an connect to what's in the parentheses (in which case I should have used "a") or to the adjective that follows, which the article actually refers to (in which case I did the right thing).
When a/an precedes a parenthetical aside (sometimes seen in informal/conversational writing), should the vowel rule depend on the first word in parentheses, or the next word in the "regular" flow of the sentence? I need a (memorable) idiom (preceding an m word; use a) or I need an (memorable) idiom (preceding an i word; use an)
I have an invocation target exception issue. I am having one object(window) which i am calling on a click of a button, now using that common button on two different User Interfaces. The problem is that when i click on it on one UI it shows me the data but when i click it on other UI it returns invocation target exception. Code is: @Override public void buttonClick(ClickEvent event) { // This if block will be called when user clicks on list of // document button if(event.getButton() == mlistButton) { try { listButtonButtonClicked(); } catch (RequestDetailTableException | InvocationTargetException e) { e.printStackTrace(); } } // this if block will be called when user clicks on Tracking button if(event.getButton() == mtrackingButton) { trackingButtonClicked(); } } /** * This function will be called when user clicks on list of * document button. * @throws Exception */ protected void listButtonButtonClicked() throws RequestDetailTableException { DocumentListLayout ldocumentList = null; try { ldocumentList = new DocumentListLayout(mrequestInfoBean,mdetailRequestLayout.getGeoAISUI()); } catch (DocumentListLayoutException e) { throw new RequestDetailTableException(e); } mdetailRequestLayout.getGeoAISUI().addWindow(ldocumentList); } Stack Trace: java.lang.NullPointerException at org.ids.geoais.common.RequestDetailTable.listButtonButtonClicked(RequestDetailTable.java:306) at org.ids.geoais.common.RequestDetailTable.buttonClick(RequestDetailTable.java:275) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:508) at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:198) at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:161) at com.vaadin.server.AbstractClientConnector.fireEvent(AbstractClientConnector.java:995) at com.vaadin.ui.Button.fireClick(Button.java:393) at com.vaadin.ui.Button$1.click(Button.java:61) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:158) at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:118) at com.vaadin.server.communication.ServerRpcHandler.handleInvocations(ServerRpcHandler.java:313) at com.vaadin.server.communication.ServerRpcHandler.handleRpc(ServerRpcHandler.java:202) at com.vaadin.server.communication.UidlRequestHandler.synchronizedHandleRequest(UidlRequestHandler.java:95) at com.vaadin.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:41) at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1408) at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:350) at org.ids.geoais.Servlet.service(Servlet.java:160) at javax.servlet.http.HttpSer The compiler moves to this: /** * Constructs a InvocationTargetException with a target exception. * * @param target the target exception */ public InvocationTargetException(Throwable target) { super((Throwable)null); // Disallow initCause this.target = target; }
What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them? What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?
Whenever trying to install any software or try to run sudo apr update command it shows up this error as mentioned in the title and also along with it The list of sources could not be read. I am running 18.10 version of ubuntu.
I'm relatively new to Ubuntu 16.04, and everything has been going fine until my OS threw this error today. Below is the source code from /etc/apt/sources.list for line 54: deb http://archive.canonical.com/ partner I have tried appending ubuntu after the / and before partner, but this does not seem to work. Any ideas what else to try? I can't run sudo apt-get update until this is fixed.
Let's imagine we have this string: string Transport = "car motorcycle motorcycle plane train"; How can I find the first occurence of the word "motorcycle" in this string and change it in the original string to something else instead of having to create a separate string using LINQ?
I want to replace the first occurrence in a given string. How can I accomplish this in .NET?
Edit: I am aware that there are plenty of questions abut pass-by-reference/value and so on, and I've checked a ton of them. I still don't 'get' it. If someone could just explain THIS piece of code like I'm three years old, I think it would finally click. Edit 2: I'm an idiot. There WAS a main method, I just read over it somehow. Adjusted the example code. Original post: I would never play 'reference hide-and-seek' in real life, but I am stumped by the following exam question. I know the answer, but I cannot figure out WHY it is the answer, if that makes any sense. If someone can help me make this 'click', I would greatly appreciate it. Here is the code: class Person { public String name; public int height; } class EJavaGuruPassObjects1 { public static void main(String args[]) { Person p = new Person(); p.name = "EJava"; anotherMethod(p); System.out.println(p.name); someMethod(p); System.out.println(p.name); } static void anotherMethod(Person p) { p = new Person(); p.name = "anotherMethod"; System.out.println(p.name); } static void someMethod(Person p) { p.name = "someMethod"; System.out.println(p.name); } } According to the book I'm using, the code should output: anotherMethod EJava someMethod someMethod I can't, for the life of me, figure out why it does this? The third and fourth line of the answer, someMethod has set the name of 'p' to "someMethod" and then it printed p.name. Okay, no problem there. But anotherMethod does something curious: it seems to assign either a new Person object to 'p', or create a new reference variable that is also called 'p' and assigns the new Person object to that one. I suspect it does the latter. Now it gets interesting: the method has worked its magic and the remaining code wants to print p.name now. If the existing variable was reassigned (I don't think so, but... maybe?), it should print "anotherMethod" again. If a second 'p' variable was indeed created, we have a problem. Why does it print EJava? How does it know which 'p' reference is adressed?
I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?
Let's say I decide to jump into a large black hole. A distant observer never sees me enter the black hole, but he does see the black hole evaporate. According to this reasoning, I would then keep going, having never gone into the black hole. This doesn't seem to be what happens, though. What is the flaw in my reasoning (unless I'm correct!)?
I am not a professional physicist, so I may say something rubbish in here, but this question has always popped in my mind every time I read or hear anyone speak of particles hitting singularities and "weird things happen". Now to the question at hand, please follow my slow reasoning... As far as I've learned, to reach a black hole singularity, you must first cross an event horizon. The event horizon has this particular property of putting the external universe on an infinite speed to the falling observer. Now due to the Hawking radiation, and knowing that the cosmic background radiation is slowly dimming, sooner or later every black hole in this particular instance of inflation we are living in will evaporate, according to an external observer of said black holes. This means that every black hole has a finite timespan, as long as this universe survives that long. Now if we go back to the falling observer, we had already established that such an observer would see the outside universe "speed up" infinitely. This means that when the falling observer "hits" the event horizon, he will (or it if we speak about particles, which is clearer in this case), be immediately transported in time towards the final evaporation moment of the black hole. Either this or the particle gets some weird treatment. My point is, such a particle never gets to the singularity, because it has no time to get to it. The moment it crosses the event horizon, the black hole itself evaporates. Where am I wrong here?
I'm about to send out some questions to someone. How was it starting your own business? tougher,easier than you had expected? Does "tougher" need to become "Tougher"?
May I use a question mark in the middle of a sentence? Examples: Would you like the drapes to be white? or perhaps something off-white? Would you like the logo to be centered? at the bottom? left off entirely?
My Update Manager in Ubuntu 12.04 pops up this message while installing updates: 'Requires installation of untrusted packages. The action would require the installation of packages from not authenticated sources'. In Details: 'gnome-control-center gnome-control-center -data libgnome-control-center' How to solve the problem? Thankyou. :)
It didn't fixed the error. So, how do I fix my GUI update? For every software I have to install it from command line because I got same error when install software from Ubuntu Software Center.
iam about to blow up: i cant figure out why my jobs in the crontab -e file of any user are not running. None of them do so the "last cron job is not running" problem is not aplicable. Also i checked thread and couldn't find any mistakes. I even escaped my percent signs. Here's my crontab -e file when running under the root user: # Edit this file to introduce tasks to be run by cron. # # Each task to run has to be defined through a single line # indicating with different fields when the task will be run # and what command to run for the task # # To define the time you can provide concrete values for # minute (m), hour (h), day of month (dom), month (mon), # and day of week (dow) or use '*' in these fields (for 'any').# # Notice that tasks will be started based on the cron's system # daemon's notion of time and timezones. # # Output of the crontab jobs (including errors) is sent through # email to the user the crontab file belongs to (unless redirected). # # For example, you can run a backup of all your user accounts # at 5 a.m every week with: # 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/ # # For more information see the manual pages of crontab(5) and cron(8) # # Minute Stunde TagIMonat Monat TagIWoche Kommando # m h dom mon dow command 50 3 * */2 * /usr/bin/openssl pkcs12 -export -out /home/user/export.pfx -inkey /etc/letsencrypt/live/domain/privkey.pem -in /etc/letsencrypt/live/domain/chain.pem -password pass: blabla > /var/log/cron.log 51 3 * */2 * /usr/bin/sshpass -p xxx scp /home/user/export.pfx [email protected]:/path/to/file/> /var/log/cron.log 0 0 */5 * * /usr/bin/rsync -avx /var/www/nextcloud/apps /nextcloud/backup/path/nextcloud-apps_`date +"\%Y\%m\%d"`/ > /var/log/cron.log 0 0 */5 * * /usr/bin/rsync -avx /var/www/nextcloud/config/config.php /nextcloud/backup/path/nextcloud-config_`date +"\%Y\%m\%d"`/ > /var/log/cron.log 0 0 * * * /usr/bin/mysqldump --single-transaction -h localhost -u user -pPassword db > /nextcloud/backup/path/nextcloud-sqlbkp_`date + "\%Y\%m\%d"`.sql > /var/log/cron.log Maybe someone can help me with my problem. Thanks
This is a about using cron & crontab. You have been directed here because the community is fairly sure that the answer to your question can be found below. If your question is not answered below then the answers will help you gather information that will help the community help you. This information should be edited into your original question. The answer for 'Why is my crontab not working, and how can I troubleshoot it?' can be seen below. This addresses the cron system with the crontab highlighted.
For SharePoint development, I am used to placing all the images/CSS/JS files into the mapped layouts folder (..\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS) using Visual Studio. Recently, I saw my colleague using the STYLES folder in the layouts to store the CSS files. Are there any implications or differences in the way we are storing the files? Just curious on what could be the best practice to store these files. In addition, the files are located under a folder that goes by the name of the Project (i.e. \Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\Project1.Branding). What if I need to reuse certain images/CSS/JS files for a different project, what will be the proper way of reusing these? Edit: I do not understand why people are marking this as duplicate with the question comparing Document library with layouts. My question relies on layouts alone, the Style (found under layouts) folder is also a mapped folder in visual studio. Please enlighten me with this.
There's been a lively conversation (such as it can be in 140 chars) lately about whether it is better to put CSS files on the disk in the _layouts folder or to store them in a Document Library in the Site Collection. This seemed like a good place to post the topic to allow some longer discussion about it. As for me, I always prefer to avoid putting anything on the disk if I can avoid it. I prefer a Document Library for the CSS. There are many reasons for this, but here are some: versioning, fine-grained permissions, approval processes, they are a part of a Site Collection backup, touching the server can lead to problems, etc. I also don't believe that files on the disk will be served up any faster than files in SQL if SQL is managed correctly. What's your opinion? Weigh in!
Examples: Yes Siree Bob Bob's your uncle Who is bob and where did he/she come from?
What is the origin of the phrase "Bob's your uncle"? Is it used internationally or is this just a term used in the UK? I have often heard an extension of this phrase: "Bob's your uncle and Fanny's your aunt", can anyone shed any light on this variant? An example of how it is used: "Put it in the oven for 20 minutes and Bob's your uncle, your dinner will be done".
I have a string like "test http://www.bing.com test". I want to extract just the url ("http://www.bing.com") from this string. How do I go about doing it? How would the regex look like?
How can I check if a given string is a valid URL address? My knowledge of regular expressions is basic and doesn't allow me to choose from the hundreds of regular expressions I've already seen on the web.
I Have an external 8T external hard disk on "encrypting" process since 10 days in my MAC ... and stuck in 27% ... * Seagate with APFS. How can I stop the process and access to my info ?
I accidentally turned off FileVault on my MacBook when trying to allow downloaded Canon driver software to be opened. FileVault is currently decrypting and I want to stop it as soon as possible. How do I stop FileVault decryption?
I am traveling from the UK to Delhi and I am bringing 4 phones with me + mine the rest are for friends. These phones are all used so will this be an issue in bringing them through customs?
I am planning to travel to India (COK airport, Kerala) from United States. I want to take my laptop as well as my tablet (iPad). Am I allowed to take both in my backpack with my documents related my work. I think I am allowed to take only one computer as per the rule. Will the customs consider my iPad as a computer? What all I can take? One of my friends took 2 laptops (1 work and 1 personal) and had trouble at the airport. Also I am planning to take some wristwatches (7 of them, each avg price is 45 $). I read in a website that I can take stuff up to max 35000 INR. Is that true? In that case, how will I manage my stuff?
i have two controllers a login and main, when logincontroller validates a user then maincontroller holds the control, i tried this method, but not working, the userName variable gives null value. logincontroller class: public class loginController implements Initializable{ private String user; public String getUser() { return user; } if((user.equals(loginUsername.getText()) && (pwd.equals(loginPassword.getText())))){ switch(role){ case "Admin": Stage adminStage=new Stage(); FXMLLoader adminLoader = new FXMLLoader(getClass().getResource("/FXML/Admin/Admin.fxml")); Parent adminRoot = adminLoader.load(); AdminController adminController = (AdminController)adminLoader.getController(); adminController.setLoginController(this); } maincontroller class: public class AdminController implements Initializable { @FXML private Label userName; public void setLoginController(LoginController loginController) { this.loginController = loginController; } public void initialize(URL url, ResourceBundle rb) { loginController =new LoginController(); try { db = new DBConnector(); // String user = loginController.getUser(); System.out.println(user); String query = "SELECT u_full_name,img FROM Users WHERE u_username='"+user+"'"; db.setResultSet(query); while(db.getResultset().next()){ userName.setText(db.getResultset().getString(1)); imageUpload.setImage(new Image("file:"+db.getResultset().getString(2))); } } catch (SQLException e) { JOptionPane.showMessageDialog(null, "can't retreive photo",e.toString(),0); } }
What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them? What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?
How to exactly prove that the square integrable functions on $[0,1]$ are integrable on $[0,1]$? That is, For a function $f$, $\int_{[0,1]}f^2 dx < \infty~\Rightarrow \int_{[0,1]}f dx < \infty$ Or how to prove $\int_{[0,1]}f^2 dx$ diverges whenever $\int_{[0,1]}f dx$ diverges?
I'm reading Real analysis(Stein) and confused by a statement: If $f\in L^2$, then $f\chi_R$ is in both $L^1$ and $L^2$, where $\chi_R$ is the characteristic function of $[-R, R]$. But $f$ in $L^2$ does not mean that $f\in L^1$. Such an example given by . How could this function on $[-R, R]$ be in $L^1$?
I can't figure out how to download a book to my iPhone 7 iOS 13.6 that's currently stored in iCloud. How can I download the book so that I can read it offline later?
There is something strange going on with Books on iPad and iPhone. It keeps deleting some books locally, keeping them in the cloud. It's frustrating because it happens when I'm offline and I simply lose the access to them. Why is this happening at all? And how can I stop it? I enabled syncing things over iCloud Drive and everything, but I can't see an option to disable such optimizations. PS: the same thing happens with Photos, Numbers and Pages. The Photos app has an optimize storage option. But there doesn’t seem to be such an option for Books, Numbers and Pages. A clear example: just a few hours I was reading a book on Books, I took a nap, and when I opened the Books app, the book was not available offline anymore. Since I don’t have internet right now, it’s simply impossible to access the document.
I want to prove the following lemma: $t^n-1$ divides $t^m-1$ in $F[t, t^{-1}]$ if and only if $n$ divides $m$ in $\mathbb{Z}$. I have done the following: $\Leftarrow $ : $n\mid m \Rightarrow m=kn, k \in \mathbb{Z}$ $t^m-1=t^{kn}-1=(t^n)^k-1=(t^n-1)(t^{n(k-1)}+\dots +1)$ So, $t^n-1\mid t^m-1$. Is this correct? How could we show the other direction?
For all $a, m, n \in \mathbb{Z}^+$, $$\gcd(a^n - 1, a^m - 1) = a^{\gcd(n, m)} - 1$$
I am going to replace my bent hub on my MTB. The hub is Novatec D042SB and the rim which I am going to order is Sun Ringle Inferno 25 29er. Since my hub is not so popular there are not any default dimensions available in online spoke calculator databases. I cannot take apart all the stuff on the wheel for precise measurements and that's why I have to ask for your help. I have used several calculators and all of them gave me different result ranging from 290mm to 294mm. Here are the dimensions of my hub in Novatec's official website. Flange to Flange 58.4mm Flange Diameter 58mm Over Locknut 135mm Offset of centers 6.8 mm Rim ERD 602 mm If anyone has experience with building a wheel, please help me to determine the exact length of the spoke Thanks in advance
I have lots of bikes and lots of interesting wheel sizes, I would like to know how to calculate the right spoke lengths for a wheel. I appreciate that there are probably rather a lot of variables but this is something that has been an issue for me from time to time so being able to work out the right spoke length for an arbitrary wheel (did I mention that I have half a dozen or more different wheel sizes in the garage?) would be useful. To be clear - I don't want a calculator, I want to know what the sums are.
My console is set to use the Instant-On power mode and I’ve checked the box allowing it to β€œdownload updates automatically” when in this mode. However, when I launch games and apps, I still see the β€œOh, shoot. We need to update first” screen quite often. I’ve also noticed that items in my download queue are not completed while in Instant-On mode. Is this setting really just for system updates? Or does it apply to app/game updates as well? Is it available outside the United States or something silly? Edit: My console does go to sleep so that is not the issue.
I have my Xbox One set up to automatically download and install updates, the rest of my settings are shown below: Is there a reason my games will show an update symbol on their tile, but they still don't download the update until I start the game manually?
I am trying to install Unity Tweak Tool but I can't install it. I am getting the following output when I tried installing it via the Ubuntu Software Center installArchives() failed: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_IN.ISO8859-1" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_IN.ISO8859-1" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_IN.ISO8859-1" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 197290 files and directories currently installed.) Preparing to unpack .../unity-tweak-tool_0.0.7-0~201~ubuntu15.10.1_all.deb ... Unpacking unity-tweak-tool (0.0.7-0~201~ubuntu15.10.1) ... dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt dpkg-deb: error: subprocess <decompress> returned error exit status 2 dpkg: error processing archive /var/cache/apt/archives/unity-tweak-tool_0.0.7-0~201~ubuntu15.10.1_all.deb (--unpack): cannot copy extracted data for './usr/share/unity-tweak-tool/monitor-window-snapping.png' to '/usr/share/unity-tweak-tool/monitor-window-snapping.png.dpkg-new': unexpected end of file or stream Error in function:
I tried multiple times installing the unity tweak tool via the terminal but every time it give me the following output. Similarly i cant install it via the Ubuntu software center. I have tried sudo apt-get install -f & sudo apt-get install unity-tweak-tool . the output when using the terminal is as follows: nikunj@nikunj-DL-H61MXE-V:~$ sudo apt-get install unity-tweak-tool [sudo] password for nikunj: Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: unity-tweak-tool 0 upgraded, 1 newly installed, 0 to remove and 170 not upgraded. Need to get 0 B/368 kB of archives. After this operation, 2,761 kB of additional disk space will be used. (Reading database ... 197290 files and directories currently installed.) Preparing to unpack .../unity-tweak-tool_0.0.7-0~201~ubuntu15.10.1_all.deb ... Unpacking unity-tweak-tool (0.0.7-0~201~ubuntu15.10.1) ... dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt dpkg-deb: error: subprocess <decompress> returned error exit status 2 dpkg: error processing archive /var/cache/apt/archives/unity-tweak-tool_0.0.7-0~201~ubuntu15.10.1_all.deb (--unpack): cannot copy extracted data for './usr/share/unity-tweak-tool/monitor-window-snapping.png' to '/usr/share/unity-tweak-tool/monitor-window-snapping.png.dpkg-new': unexpected end of file or stream Errors were encountered while processing: /var/cache/apt/archives/unity-tweak-tool_0.0.7-0~201~ubuntu15.10.1_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1) nikunj@nikunj-DL-H61MXE-V:~$
There are those triangulated shadows on my object in the rendered viewport and in the render,I use a sun as a lamp.How to avoid those weird triangles?
I've been modeling a hermit crab and I don't know why but some areas of the mesh are really dark on some spots, like the legs and the claws. I hope you can help me fix it.