body1
stringlengths
20
4.1k
body2
stringlengths
23
4.09k
i'm currently studying Java and i want to know what is the difference between implementing Runnable to a class and declaring a new thread and executing what you need inside. Thread t = new Thread(){ public void run() { //code here } }; t.start(); vs Thread t = new Thread(My_class_with_runnable_implementation); t.start();
From what time I've spent with threads in Java, I've found these two ways to write threads: With implements Runnable: public class MyRunnable implements Runnable { public void run() { //Code } } //Started with a "new Thread(new MyRunnable()).start()" call Or, with extends Thread: public class MyThread extends Thread { public MyThread() { super("MyThread"); } public void run() { //Code } } //Started with a "new MyThread().start()" call Is there any significant difference in these two blocks of code ?
Before I begin, I'd like to point out that my primary interests aren't actually in literature/linguistics, but within the domain of music. However, I have come accross a problem I feel is of much concern and is in essence a problem with the (English) language, in part that is, not as a whole. Anyway, I am writing a song about a person who is climbing a mountain, but they are doing so both physically, and then metaphorically. This is a song that is supposed to represent human weakness and strength, and so naturally that includes both men and women. The lyrics go something like this: 1.2-2 Oh... 2-3 Will he... 3-4 Sur-vive? 4-5 and climb this 5-6 Mounta…ain ? 5.2-6 He will do 6-6.2 One 6.2-7 Of only two things 7-7.2 He 7.2 - 8 Will fail and fall into the dark The lyrics presented are not meant to be grammatically correct, to me they just need to represent the words to fit the song. Also, the numbers are just units of time, but that doesn't matter here. So, as you can see, I used what I think is a pronoun, the word 'he', to generalise the term to both males and females. Now, whilst this is common practise, I do not think it is good practice, so I was wondering if there may be another, ideally single syllable word, that one could use to describe both males and females. I feel that such a word really should be integrated into the English language, as it would be much more effective than s/he, or even worse, just he.
Is there a pronoun I can use as a gender-neutral pronoun when referring back to a singular noun phrase? Each student should save his questions until the end. Each student should save her questions until the end.
I am using the following basic RGB color scheme for my website: 43/66/79 84/129/156 79/68/43 156/122/84 176/176/176 79/79/79 I would like to extend the pallette, but not in a random way. I would like to apply known theories of how that is systematically done. Can someone refer me to reading on the subject, or perhaps even better, places on the net that allows me to enter the base colors and receive suggestions on extentions.
I have a set of colors on a webpage where one color is the main one: #864062 <-- main color #853f61 #925071 #541c38 #64304A #eac9d7 Now I would like to derive similar color scheme for any arbitrary main color. My idea was to: Convert all colors to decimal notation (r, g, b) Calculate ratio of individual components for each other color and main color Use these rates as a conversion matrix for any other main color. For my example, rgb of individual colors is: 134 64 98 133 63 97 146 80 113 84 28 56 100 48 74 234 201 215 Ratio of each component (other color / main color): 0.99 0.98 0.99 1.09 1.25 1.15 0.63 0.44 0.57 0.75 0.75 0.76 1.75 3.14 2.19 Now for any new main color I can calculate all the other colors: 100 100 100 <-- new main color 99 98 99 109 125 115 63 44 57 75 75 76 175 255 219 (max is 255, cannot have 314) My question is if this way of calculation makes any sense as I have never done any math with colors before.
I dual booted my PC 2 years ago, and I installed a 50gb partition for Ubuntu. But now I use Ubuntu most of the time. And now there is no space remaining in my Ubuntu partition. I have watched several tutorials, read many blogs, but still can't extend my Ubuntu partition size. I have tried using GParted in Ubuntu and Disk Management in Windows. But in Gparted, I can't extend ext4 partition size And in case of Disk Management it only shows delete and help option for the Ubuntu partition. There are no extend option. I have a lot of free space in other drives, please someone suggest me the solution free -h: total used free shared buff/cache available Mem: 7.7G 2.8G 761M 1.2G 4.1G 3.4G Swap: 1.9G 0B 1.9G grep -i swap /etc/fstab: # swap was on /dev/sda8 during installation UUID=6d6b17ee-13d7-49f9-90aa-6a1118c56698 none swap sw 0 0 sudo blkid | grep -i swap: /dev/sda8: UUID="6d6b17ee-13d7-49f9-90aa-6a1118c56698" TYPE="swap" PARTUUID="93bc1965-08"
Till today I was using ubuntu 13.04 in my windows7/ubuntu dual boot. Just now I have upgraded to ubuntu 14.04. My software updater showed an updates available message. I proceeded with Install Now . Soon I got the following window. Then I tried sudo apt-get clean as recommended. Nothing happened! Not even a window opened. Teach me deleting the temporary packages. Deleting temporary files may not be highly helpful in case of further updates and installs for I don't have too much space left in my /. I wanna extend my / partition with the help of the unallocated space in my HD. The following is my Gparted window. I got an answer . But it wasn't useful for me. I had two choices. But the answer wasn't working for both my chioces. Choice 1: I may use the 4.25 GiB unallocated space to extend my /dev/sda10. To do so, I must need to move my linux-swap partition. But my Resize/Move option is disabled for the linux-swap partition. Choice 1 failed! Choice 2: I may use the 14.35 GiB unallocated space instead. In this case I must move more than one partition. /dev/sda4 partition is the first on the list. Even that partition has the same problem. Resize/Move option is disabled. Choice 2 failed! I am out of choices now. What shall I do? Help me to extend my / with Gparted.
I feel like I am missing something obvious. Evocation/Channeling can be used for a great deal of fun effects on your turn. But what about when you need to make a defend roll against an enemy? As far as I can tell, the only way to defend yourself with magic is to create a block before the opponent attacks you. The books are FULL of Harry tossing up a transient shield as a split-second reaction to someone shooting a gun, or an explosion, or whatever. In our short time with DFRPG so far, we have not figured out how this would be represented mechanically.
Say that Player X is 2nd in the initiative. 1st is the Black Court vampire that is in a rage and taking a swing at Player X. Player X gets a built in defense [Athletics/Fists + 4dF] but can Player X instead use his action this turn to cast his Rote Evocation Shield? It is not his turn in the initiative order. A Block is an Action that a Player can take on his turn. Thematically though, it seems to make sense that the char could cast a Rote Evocation Shield in response to an attack ahead of him in the initiative order. At least thematically in the books. Also, the example in YS252, shows him reacting to an attack by Agatha Hagglethorn by bring up his shield. I am hoping there is some as yet undiscovered dark corner where this concept is covered or squashed.
You 'collect' them when done and have an inventory of them. Can they be sold?
I keep building these imperial levels and delivering supply workers to build items that show in my inventory screen (rebel secrets! security codes!) but I can't figure out why I would want to do that. What do the imperial items do for me other than pile up in my inventory menu item?
Consider the code below: \documentclass[convert = false, border = 1cm]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node[font = \scriptsize] at (-3.5, 4) {Position of $S_2$ when}; \node[font = \scriptsize] at (-3.5, 3.7) {$S_1$ reaches $C$}; \end{tikzpicture} \end{document} I used two nodes to write short explanation of a point in a figure I am constructing. However, I had to play around with the set up so they weren't spaced vertically too far a part and the second node was centered on the content of the first node. Is there a better way to this?
How can I insert a line break in a TikZ node? Simply putting \\ where I want the break doesn't work (see MWE). Is there a way to make lines break automatically at some specified width? And can I control the alignment of the text (left, right, centered, justified)? \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node {First line\\second line}; \end{tikzpicture} \end{document}
Can someone tell me if I need to purchase the online subscription in order to download and play Fortnite on Xbox? It's for my children. I will purchase either the XBOX or PS4. Also am I capable of putting this on a laptop or Chromebook?
Can you play Fornite on PS4 without PlayStation Plus? If so, how do you do it?
In VB.NET there are two ways to declare an array without initialization 1. Dim Foo() As Integer 2. Dim Foo As Integer() I noticed that but never really cared about it and sometimes used the first and sometimes the second syntax. Now I wonder if both methods are really identical. Which one should I use? Looking at the IL code in ILSpy I see that Private d1() As Integer Private d2 As Integer() results in .field private int32[] d1 .field private int32[] d2 meaning that they are both identical. Is this always the case? Why are there two ways to write the same code?
This may sound trivial, but what is the difference between Dim v As String() and Dim v() As String in VB.NET?
For some reason Disk Utility (16.0) didn't eject my HDDs correctly and show the list of ghosts external drives as per below image: despite I've no any external hard drives connected. Ejecting them from contextual menu doesn't do anything. I've tried to use diskutil to unmount these non-existing drives: diskutil list diskutil unmountDisk /dev/disk2 but it didn't work. Including this shell command to unmount them all: $ while read disk _; do diskutil unmountDisk force $disk; done < <(diskutil list | grep external) Unmount of all volumes on disk2 was successful Unmount of all volumes on disk4 was successful Unmount of all volumes on disk5 was successful Unmount of all volumes on disk6 was successful Unmount of all volumes on disk7 was successful Unmount of all volumes on disk8 was successful Unmount of all volumes on disk9 was successful Unmount of all volumes on disk10 was successful but the command doesn't take any (even with force) effect despite the successful message. So these disks are still showing after restarting Disk Utility as per below command: $ diskutil list | grep external /dev/disk2 (external, physical): /dev/disk4 (external, physical): /dev/disk5 (external, physical): /dev/disk6 (external, physical): /dev/disk7 (external, physical): /dev/disk8 (external, physical): /dev/disk9 (external, physical): /dev/disk10 (external, physical): The following log entries shows when unmounting a single disk: $ log stream opendirectoryd: Client: <private>, UID: 501, EUID: 501, GID: 20, EGID: 20 opendirectoryd: <private> completed, delivered 1 result diskutil: (CoreFoundation) Loading Preferences From System CFPrefsD For Search List diskutil: (CoreFoundation) Loading Preferences From User CFPrefsD For Search List authd: (Security) SecTrustEvaluateIfNecessary trustd: [com.apple.securityd.policy] cert[2]: AnchorTrusted =(leaf)[force]> <CFBoolean 0x7fffcc25d578 [0x7fffcc25cbd0]>{value = false} authd: (Security) [com.apple.securityd.security_exception] CSSM Exception: -2147411889 CSSMERR_CL_UNKNOWN_TAG authd: (Security) [com.apple.securityd.security_exception] CSSM Exception: -2147411889 CSSMERR_CL_UNKNOWN_TAG authd: (Security) [com.apple.securityd.security_exception] CSSM Exception: -2147411889 CSSMERR_CL_UNKNOWN_TAG authd: (Security) [com.apple.securityd.security_exception] CSSM Exception: -2147411889 CSSMERR_CL_UNKNOWN_TAG authd: (Security) [com.apple.securityd.security_exception] CSSM Exception: -2147411889 CSSMERR_CL_UNKNOWN_TAG authd: (Security) [com.apple.securityd.security_exception] CSSM Exception: -2147411889 CSSMERR_CL_UNKNOWN_TAG opendirectoryd: Client: <private>, UID: 0, EUID: 0, GID: 0, EGID: 0 opendirectoryd: <private> completed, delivered 1 result opendirectoryd: Client: <private>, UID: 0, EUID: 0, GID: 0, EGID: 0 opendirectoryd: <private> completed, delivered 1 result opendirectoryd: Client: <private>, UID: 0, EUID: 0, GID: 0, EGID: 0 opendirectoryd: <private> completed, delivered 1 result authd: Succeeded authorizing right 'system.volume.external.unmount' by client '/usr/sbin/diskutil' [30724] for authorization created by '/usr/sbin/diskutil' [30724] (13,0) opendirectoryd: Client: <private>, UID: 0, EUID: 0, GID: 0, EGID: 0 opendirectoryd: <private> completed, delivered 1 result opendirectoryd: Client: <private>, UID: 0, EUID: 0, GID: 0, EGID: 0 opendirectoryd: <private> completed, delivered 1 result opendirectoryd: Client: <private>, UID: 0, EUID: 0, GID: 0, EGID: 0 opendirectoryd: <private> completed, delivered 1 result authd: Succeeded authorizing right 'system.volume.external.unmount' by client '/usr/libexec/diskarbitrationd' [97] for authorization created by '/usr/sbin/diskutil' [30724] (2,0) taskgated: (Security) [com.apple.securityd.security_exception] MacOS error: -67062 taskgated: (Security) [com.apple.securityd.security_exception] MacOS error: -67062 How do I get rid of these non-existing volumes without restarting the system?
I have this external (USB) drive that can't seem to be disconnected correctly. Whenever I eject the drive, it won't disappear from Disk Utility. Afterwards when the drive gets re-connected again, it cannot be mounted. At this stage, I would need to reboot the Mac to get the drive to mount again. Ejecting from the Terminal via diskutil eject /dev/disk2 returns a Disk /dev/disk2 ejected message and unmounts the disk. However the disk still shows up both in Disk Utility and diskutil list. Furthermore even after the USB cable is disconnected, the disk still shows in both Disk Utility lists — GUI and command line. How can I solve this? OS: macOS Mojave 10.14.1 (18B75)
i have a question about CBC operating mode. what problem happen if we always use IV Zero in CBC Mode?
I have a need to encrypt credentials for a third-party app used by a secured internal app. Over on ITSec.SE, I was helpfully shown a scheme to encrypt the third-party credentials based on a hash of the credentials for the internal app. I picked AES as the encryption algorithm, but the problem is that the password-based scheme doesn't produce a "secret" IV. So, the IV must at least be known to an attacker (stored alongside the encrypted data). A hash value used for password verification could work, or I could just generate a pseudorandom byte array and drop it in the DB as a new column. I was further considering, for simplicity, to use a constant IV. What adverse effect will either of these choices have on the security of the encryption? Does AES depend, as many block ciphers do, on an unpredictable IV? Does it matter if the IV is stored as unencrypted plaintext?
Since rational numbers are real algebraic numbers, clearly the real algebraic numbers must be dense in $\mathbb{R}$. So it seems natural to ask: are the (complex) algebraic numbers dense in $\mathbb{C}$? If not, is the (topological) closure of the algebraic numbers known?
Clearly, $\mathbb Z$ is not dense in $\mathbb Q$ (and not dense in $\mathbb C$). But why is the ring of algebraic integers $\overline{\mathbb Z}$ dense in $\overline{\mathbb Q}$? In particular, if this is so, it is dense in $\mathbb C$.
Is there something I can do that will filter questions so I only see questions in real time from sites I choose? A huge bonus would even be a preview of the question text along with the title and such. Or should I attempt to write some program to monitor the page and push questions from there to somewhere else?
I'm thinking that adding options to choose from what sites the would fetch would be useful (with the available choosing of meta sub-sites).
I have made a JAVA program where I have initialized a 1-D String array. I have used for loop to search any inputted String if it exists in the array(Scanner Class). Here is the source code :- import java.util.*; class search { public static void main(String args[]) { Scanner sc=new Scanner(System.in); System.out.println("Enter the name to search :-"); String s=sc.nextLine(); String array[]={"Roger","John","Ford","Randy","Bacon","Francis"}; int flag=0,i; for(i=0;i<6;i++) { if(s==array[i]) { flag=1; break; } } if(flag==1) System.out.println("The name "+s+" Exists"); else System.out.println("The name "+s+" does not Exists"); } } The class even compiles successfully, but when I enter a valid string(say- Roger), the output is The name Roger does not Exists. Please help me out with this issue, and for this I shall be grateful to you. Thanking You, J.K. Jha, 01.09.2018.
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?
I am a student reviewing multiple COVID tracing applications deployed in various countries around the world. Although I'm located in the US, I'm also interested in applications that other countries have deployed. As far as I understand, to do that I would need to find a VPN server in the country I am interested in and browse Play Store from there. It looks that people all around the internet advise to: Connect to the VPN, Remove cache and data from Play Store, and Restart Play store. However, this does not work for me. Play Store still lists only the applications available in the US and prices in US dollars. I have checked whether my VPN works and it does. whatismyipaddress.com shows that at least my search queries coming from the browser go through a foreign VPN server.
Can someone tell me how to change the country preference for Google Play? I have searched high and low but in most of the forums people ask you to go to Gmail settings -> edit profile and change the country there. But there is no place to change the country in settings! There is a something called place (which can be marked as current) but that has no impact on Google Play. I don't want to circumvent country restrictions, I want to permanently change the country. So it's NOT a duplicate of .
This is what i do xmodmap -e "keycode 135 = g" but i lost it everytime i shutdown/restart my computer. I use ubuntu 14.04. Please someone can help me to make this change be permanent? Thanks!
I'm unsure how to swap these 2, this is the thought process I had but am unsure how to get it working: remove sh = Shift_R remove dl = Delete keysym Delete = Shift_R keysym Shift_R = Delete add sh = Delete add dl = Shift_R This is based on the code I use to swap caps lock and control. Any thoughts? xmodmap output: dan@lantea:~$ xmodmap -pke | grep Shift_R keycode 91 = Shift_R NoSymbol Shift_R keycode 119 = Shift_R NoSymbol Shift_R dan@lantea:~$ xmodmap -pke | grep Delete keycode 62 = Delete NoSymbol Delete
I am having a difficult time obtaining the correct size of a string in order to satisfy strcpy_s. For example if I specify char buffer = {0}; char *str1 = (char*)&buffer; strcpy_s(str1,sizeof("This is a string\n"),"This is a string\n"); Then it will work as expected. If however I declare the following: char buffer = {0}; char *str1 = (char*)&buffer; const char* string1 = "This is a string....."; strcpy_s(str1, ?????,string1); If I use anything other than a literal in place of ????? it will fail with a memory exception, for example if I use std:strlen(str1), etc. Any size literal for ???? will work. Of course using a fixed literal is not acceptable. This is a major re-edit of the original question and I apologise to the people who have answered to date. However none of the the answers below have worked.
First off, here is some code: int main() { int days[] = {1,2,3,4,5}; int *ptr = days; printf("%u\n", sizeof(days)); printf("%u\n", sizeof(ptr)); return 0; } Is there a way to find out the size of the array that ptr is pointing to (instead of just giving its size, which is four bytes on a 32-bit system)?
So lets say you have the following two polynomials: $$f_1(x)=(x-1)(x-2)^2$$ and $$f_2(x)=(x-1)^2(x-2)$$ And we want know whether Newton-Raphon's method will converge quadraticly or linearly for finding the root $x=2$. How would I go by doing this?
How would you show that if f'(a)=0 then the Newton's Method is linear convergent when 1. $f''(a)\neq 0$ 2. $f''(a)=0, f'''(a) \neq 0$? I am having some trouble getting it to the point where you can take the limit of ratio of the error terms and using L'hospital's rule to prove this.
ArrayList<String> values=new ArrayList<String>(); values.add("s"); values.add("n"); values.add("a"); values.add("s"); In this Array, I want to remove repeated values.
I have an ArrayList<String>, and I want to remove repeated strings from it. How can I do this?
By pressing a rice bowl on his abdominal muscles, Zhang Xingquan was able to create enough suction to pull a 36.15 tonnes heavy train for 40 meters Source: Guinness world records website. How does the bowl 'attach' to his abdominals and not fall down as he walks backwards? How is he able to use suction to pull such a heavy object? A video can be found .
My roommate and I are having trouble agreeing on how suction cups work. Presumably, the ambient air pressure is the only thing which keeps the suction cup attached to the object. When lifting an object with a suction cup (or a rigid chamber with air pumped out): Given that the suction cup isn't physically affixed to the object, it can't apply any force to lift it. How does pulling actually lift the object? What dictates how much weight can be lifted? If the object is touching the ground (so there's no air underneath it), can it be lifted? If not, can the suction cup be detached by pulling? In practice, why does a rubbery suction cup work better than a rigid object (such as an inverted glass cup)? Inside a rigid spherical shell (with gravity towards the center), presumably a suction cup can be used to hang a mass. Yet, the air pressure is acting nearly uniformly on the sphere. How does the gravitational force on the mass get balanced out so the whole system doesn't move?
I want to learn how to create stylish Graphic User Interfaces for android applications beyond the common style of the google apps itself. if some one has some documents i can read to give applications that particular style. for example i like a lot the style of the QuizUp app, i would like to learn more about how they got this look.
Thanks to the internet, graphic design and programming are becoming increasingly overlapping fields. As a programmer, I constantly find myself needing basic knowledge of Graphic Design, but have trouble locating thorough yet concise graphic design learning resources, and instead usually find bits and pieces of knowledge applicable to the task at hand. Can you guys offer some tips or recommend some good books, tutorials, blogs, and websites which provide a beginner level overview of web design that have been, in your experience, effective and high quality learning materials. I'm not looking for tips on how to use image editing tools, but assuming a basic grasp of those, which resources and advice will best help a new designer create professional looking designs?
when I tried to delete some records from a MYSQL server (version 5.0.95-log) and checked the process list I got the result as follows mysql> show processlist \G *************************** 2. row *************************** Id: 3480 User: admin Host: db: test_db1 Command: Connect Time: 8367 State: invalidating query cache entries (key) Info: NULL I would like know what is this "invalidating query cache entries (key)" and is this due to any configuration settings.Replication is configured in this machine and it acts as the Master Server. Please find the my.cnf file setting blow [mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock user=mysql lower_case_table_names = 1 default-storage-engine=InnoDB innodb_buffer_pool_size=5G innodb_log_file_size=512M query_cache_size=512M table_cache=64 innodb_flush_method=O_DIRECT #Replication log-bin=mysql-bin server-id=1 sync_binlog=1 innodb_flush_log_at_trx_commit=1 binlog-do-db=test_db1 binlog-do-db=test_db2 # Default to using old password format for compatibility with mysql 3.x # clients (those using the mysqlclient10 compatibility package). old_passwords=1 # Disabling symbolic-links is recommended to prevent assorted security risks; # to do so, uncomment this line: # symbolic-links=0 [mysqld_safe] log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid
I'm currently working on a MySQL database where we are seeing a large number of invalidations from the query cache, primarily because of the high number of INSERT, DELETE and UPDATE statements that are being executed on many of the tables. What I'm trying to determine is whether or not there is any benefit at all to allowing the query cache to be used for SELECT statements that are being run against these tables. Since they get invalidated so quickly, it seems to me the best thing would be to just use SQL_NO_CACHE on SELECT statements with these tables. Is the overhead of frequent invalidation ever worth it? Edit: At the request of the user @RolandoMySQLDBA below, here's the info on MyISAM and INNODB. InnoDB Data Size: 177.414 GB Index Size: 114.792 GB Table Size: 292.205 GB MyISAM Data Size: 379.762 GB Index Size: 80.681 GB Table Size: 460.443 GB Additional info: Version: 5.0.85 query_cache_limit: 1048576 query_cache_min_res_unit: 4096 query_cache_size: 104857600 query_cache_type: ON query_cache_wlock_invalidate: OFF innodb_buffer_pool_size: 8841592832 24GB of RAM
I know it is possible to comment on someone's question or answer, but is it possible to ask a question about or on his profile?
Related Posts: I was thinking about . and I thought being able to leave a comment on a user profile would be a nice solution. Once in a while I have a question for a specific person. Once I notice a person doing OSdev and wanted to know about his projects he was working on. I remember a person mentioning a paper he did and I wanted to ask him more. I'm sure he didn;t notice my comment because he has many replies (which get commented on) and isn't on the site for days at a time. If he decided to look at his profile comments I am sure he would have a higher chance of noticing it. I would like comments on user profiles. I dont think flamewars would be an issue and would be hard to follow if you cant reply back on the same page (you either cant post on your own profile and if you can the other person would be notified of the comment which may slow it down)
Please explain the difference between X's Y and Y of X. Example: "The building's roof" and "roof of the building". Is there a "correct" form? When is the former used and when the latter?
I gave a quick answer to part of which had not been covered by previous answers, trying to clarify the reason you would say time of decoding but not decoding’s time. I said it was ’s usually indicates possession, but of course there were several counterexamples that would have occurred to me after a moment’s consideration, and these where helpfully supplied: Britain’s climate two days’ time a day’s work the sun’s rays I am still of a mind to say that possession of some sort is what allows the ’s. Even though the sun does not have title to its rays, they do belong to the sun. Now, at the risk of duplicating the original question and/or being pigheaded, I am curious as to why time of decoding but not decoding’s time is correct, if not for the reason I gave.
Is the flair tab working correctly? It is counting aproximately 3 times more points and over 2 times more bronze badges at the time I'm posting it.
I took a look at my profile, where I stuck my flair. Here's the flair: However, I don't have 28k rep. According to chat, I have 19.7k. Note: I know about the combined flair - I've had this in my profile for at least a year. It had been showing me the same as in chat, now it isn't. What is going on here? Edit: I'm reporting a bug here, that the combined flair is not showing the correct number, as it has in the past.
I was trying to install ubuntu but when I select the USB boot option on my BIOS it does nothing,just got a black screen and the computer restarts. I was able to install windows xp via USB on that computer. I've already tried a few programs like unetbootin and LilLi but the computer keeps restarting. I've been using the 14.04 ISO
I tried to use the usb-creator.exe from Ubuntu 10.10 desktop i386 ISO image and it does create an USB stick that doesn't boot. When I try to boot from it I get: Operating System not found. I try to do this from Windows 7 x64. I'm not looking to create a live Ubuntu media, only an installation USB disk. I repeated the process several times and I even tried to reformat the USB drive (FAT32), no success yet. The USB stick is a 8GB one.
Now there are dedicated stackexchange sites for wordpress, drupal etc. I got a question regarding the wordpress and so I asked it in wordpress.stackexchange.com. But as the audience is less, I didn't get an answer. But I am sure that I would get a response if posted it on stackoverflow. If I pasted the same question, it will be marked as double posting across the network. So how can I point the stackoverflow users to the wordpress question and get a response?
With the advent of the WordPress Answers Stack Exchange site, there's undoubtedly going to be overlap. But I just want to get some advice: I'm a developer and I kinda hate WordPress, but have to use it occasionally. My WordPress questions are usually development ones (when I have them), and most often related to 'how WordPress handles things', which are pretty obvious in straight programming terms. But with the WordPress layer of abstraction, they become problematic. I find that most developers that have gone near WordPress are usually also PHP/JS/CSS/MYSQL guys who dabble with WordPress and, as a result, hangout more on SO. And theres a die hard bunch who are heavy into the WP.SE site, but generally the WP site is for people trying to muddle through the day to day operation of using WordPress and its many themes/plugin etc. As a result, if I were to ask something pretty in-depth about writing / integrating new & strange features or something, I'm talking to a much smaller group of devs than I would be on SO. So, enough of the ramble, my question: Should I be posting heavy development questions relating to WordPress on the WP.SE site or to SO? Can I post to both, or is cross posting frowned upon in these cases still?
My makefile will not run for some reason. This code comes from one of my instructors on how to run a makefile for java programs. It's called Makefile all: javac cs286_p1/*.javac jar cmf manifest.mf cs286_p1.jar cs286_p1 @echo "+ to run type: java -jar exampleProgram.jar" @echo "+ to run with command line arguments, simply append them to the line above" I've run cat -e -t -v Makefile to see what the result was and it was this: $ cat -e -t -v Makefile all:^M$ ^Ijavac cs286_p1/*.javac^M$ ^Ijar cmf manifest.mf cs286_p1.jar cs286_p1^M$ ^I@echo "+ to run type: java -jar exampleProgram.jar"^M$ ^I@echo "+ to run with command line arguments, simply append them to the line above"^M$ Any help with this? EDIT: It seems as as though dos2unix didn't work. I edited the file to take out the ~$. I'm editing and working on this in a linux environment that I'm currently connected to, I however started this on Notepad++ and made sure that ANSII was the encoding. Still not working, however, anything else that can be thought of?
We have 10 PC with some version of Ubuntu and only remote access. While doing some upgrades to custom software I did not notice that the line endings in some scripts were Windows version (CR+LF) and not the Unix version (LF). So now when I want to launch the script it gives an error: bash: /usr/local/bin/portsee: /usr/bin/python^M: bad interpreter: No such file or directory Is there a way to change all line endings in a script from terminal. The thing is that I can not install any new software to this group of PC-s.
The Stack Exchange network seems like the best way to get good answers fast, but I don't if and what SE forum I should use to ask my question: I'm looking for somewhere, anywhere, that would let me view and or purchase the full taping of the September 20th, 1973 tennis match between Billy Jean King and Bobby Riggs, also known as "The Battle of the Sexes". I just need evidence that it exists somewhere so I can go about trying to obtain it. Any help at all would be greatly appreciated.
There are many general resource questions that ask questions such as "what is the best programming language?" or "How do I implement this commonly-confusing thing?", which get closed for being subjective or generalized. While these are currently outside the scope of SE, many have generated . Therefore, I suggest that instead of closing these questions, the best ones should be relocated to a new sister site like this: assorted.stackoverflow.com (or any other prefix) I've looked around and seen something like this suggested before, but what I found suggested things such as a compiled FAQ or separate site (which is similar, but then would be hard to search since all site questions would be merged into one long list). Of course, I understand the implications of such a heady statement, and the effort that would be required to accomplish this must be immense. However there are good reasons for this change: This would provide a place to ask subjective questions, which means instead of closing questions against the community's will, misplaced questions can be migrated. This can discourage repetitious questions that continuously ask the same popular questions. It certainly wouldn't get all of the duplicates, but it might help. This would encourage users to write new, useful questions that are inherently subjective, but are still very helpful. A number of technologies could accompany this that could make integration simpler: Each site has the sub-site in the main toolbar listed between "chat" and "main/meta". This allows for quick navigation between the sub-sites. The new sub-site could have its search results automatically included in the "main" portion of the site so that it can be seen by people posting their questions on the main page (to help avoid duplicates). Either a new rating system could be imposed which does not affect the user's rep (i.e. is local to the question only) so that the questions can be ordered by rating, or rating can be taken out altogether. I don't recommend tying in the rating with the parent site because the sites may become indistinguishable. Allow for migration to the new sub-site. Perhaps require less migration votes to move to this particular sub-site because A) it still pertains to the actual subject matter, and B) Migration would be more frequent to this sub-site. Finally, if this would become a reality, Stack Exchange would likely require a change to their mission statement to include that there is a small subsection devoted to the most highly-valued subjective questions, or something along those lines. Now, nothing ever gets done without first being discussed, so how does everybody feel about all of this? NOTE TO DOWNVOTERS Thank you for your interest. Downvoting does not mean that you dislike my post. Do not downvote because the question happens to be a duplicate of a question that by all means, I would never have found without stumbling across it myself (yes, I took a good hard look before I asked this one). Remember that downvoting is only meant to indicate a bad question or for feature requests, a poorly thought-out request. I took a lot of time writing this request; because you do not agree with it is no cause for the (to quote another user) "Haterade".
I don't understand how a zener diode placed in series with a resistor creates a constant voltage for a load in parallel with the diode. The load voltage drop must be the same as the zener diode voltage drop since they are in parallel, right?
I'm having trouble understanding the simple voltage regulator that can be built using a zener diode (from section 2.04 in the Art of Electronics). I know that it would be better to use amplifiers, et cetera, but I'm just trying to understand how this circuit works. I don't really understand how the circuit works, but I am guessing that when a load is applied to the output, it drains current from the source (Vin) and thus causes the voltage to drop? How does the zener diode help to maintain the voltage and thus make this circuit act as a regulator?
Prove the inequality for a triangle with sides $a,b,c$ we have $$\dfrac{a}{b+c}+\dfrac{b}{c+a}+\dfrac{c}{a+b} <2$$ Trial: Since $a,b,c$ are sides of a triangle I know $a+b>c,b+c>a,a+c>b$
How can one show that for triangles of sides $a,b,c$ that $$\frac{a}{b+c}+\frac{b}{c+a}+\frac{c}{a+b} < 2$$ My proof is long winded, which is why I am posting the problem here. Step 1: let $a=x+y$, $b=y+z$, $c=x+z$, and let $x+y+z=1$ to get $\frac{1-x}{1+x}+\frac{1-y}{1+y}+\frac{1-z}{1+z}<2$ Step 2: consider the function $f(x)=\frac{1-x}{1+x}$, and note that it is convex on the interval (0,1), so the minimum of $\frac{1-x}{1+x}+\frac{1-y}{1+y}+\frac{1-z}{1+z}$ is reached when the function takes the extreme points. i.e. $x=y=0, z=1$. But going back to the fact that this is a triangle, we note that $x=y=0 \implies a=0$ which is not possible, so the inequality is strict.
Does anyone know this short story I read many years ago? It's about a group of people who decided to get to a distant planet on a spaceship that isn't very advanced. Some time after they started their trip, new technology got developed that allows space travel at a much faster speed. A second group of people who set out for the same destination end up arriving a lot earlier than the first group of people. I think this would be a good story to introduce my kids to space travel but couldn't remember the name of the book.
I'm a huge fan of SF from the golden age of SF, so this could be a fairly old book. It was a story about a "generation" starship or sublight starship. I believe most of the story was about their journey and some of the problems and difficulties. I believe that something strange is observed along the way which later turns out to be them being passed by an FTL starship which was developed, on their long voyage, after they left Earth. When they arrived at their destination they were amazed and, I believe, disheartened to be greeted by people from Earth.
I remember a story I have read buy could not remember the author the name or anything apart from the basic plot. The story is about some future where humanity has to fight with some aliens (not 100% sure). The story tells about a guy who was some kind of activist and who was in a prison two or more times and somehow helped humanity by being held in a prison (can't remember details). I think the story starts by saying that there is a statue in his honor that is not very well known but he did more to help humanity than famous politicians. The story is most likely written by some famous English-speaking author, though I read it in a translation.
I am looking for the title or author of a atory I read back in the 90's, no idea when it was written. The plot goes something like this: Humanity has gained access to space travel and sends 9 or 12 survey ships towards galactic center, only 1 returns with stories of an enemy so rapacious that humanity starts preparing for war. After a long time, the enemy hasn't shown up and people begin to doubt the need to keep building for war. The government engineers a plan to turn the core systems against the fringe worlds and start warring amongst ourselves so that we may be prepared for when the real enemy shows up. Written with the focus on one spaceship captain battling in our own internal war.
Hello, everyone. Is there a way in python to insert all items from one dictionary to another inside variable assignment? dict1 = {"a": 1, "b": 2, "c": 3} dict2 = {"d": 4, #INSERT THERE ALL FROM "dict1"#, "e": -1} Maybe there's smth like {key: value for key, value in temp.items()} or other "hack"? I know that there's update() method and I've already applied it, but it looks a bit weird. Order of entries matters so to build dict in proper order I need to write next code : dict1 = {"a": 1, "b": 2, "c": 3} dict2 = {"d: 4"} dict2.update(dict1) dict2.update({"e": -1, "f": -2}) Hope there's a way to do it more "nice".
I have two Python dictionaries, and I want to write a single expression that returns these two dictionaries, merged (i.e. taking the union). The update() method would be what I need, if it returned its result instead of modifying a dictionary in-place. >>> x = {'a': 1, 'b': 2} >>> y = {'b': 10, 'c': 11} >>> z = x.update(y) >>> print(z) None >>> x {'a': 1, 'b': 10, 'c': 11} How can I get that final merged dictionary in z, not x? (To be extra-clear, the last-one-wins conflict-handling of dict.update() is what I'm looking for as well.)
I have found many people asking for help about login looping issue of ubuntu.One thing i wand to insure is that there is no single particular reason which may result in login looping so there is no single solution to this.But,there is only one solution why works for all and that is reinstalling ubuntu.Well, what is about the data i had in,how can i save it? The answer is we can reinstall it without loosing data of home/ directory.for this,while partitioning,we can use home partition of old installation in new installation without formation it.Other partitions (swap,root,efi) need to be created again.so we can free up these partitions mentioned to create again for new installation.
My Ubuntu is stuck in a login loop when trying to enter my desktop. When I login, the screen gets black and soon after that the login screen comes back. I've read that the problem might be caused by an error depending on the graphics, here's my graphics card: ATI Radeon 7670M
I am currently working inandroid studio. I have an input form activity, which is written to a CSV file on submit, which is then added as an attachment for an email. In a particular field, if I press the Enter key, to create a new line - the CSV file format is disturbed (but I need to be able to press enter in the field)
Is it possible/legal to somehow encode CR/LF characters into a CSV file? (as part of a CSV standard?) If so how should i encode CR/LF?
Hi I have an array defined in my header filed private: Customer** customerListArray; In my cpp file I set it as following, customerListArray = new Customer* [data.size()]; cout << "arr size " << data.size() << "\n"; cout << "arr size " << sizeof(customerListArray) << "\n"; However data.size() is 11900, but sizeof(customerListArray) array is always 4. I've tried replacing data.size() with 100 and still I get 4. What am I doing wrong here? Thank you.
First off, here is some code: int main() { int days[] = {1,2,3,4,5}; int *ptr = days; printf("%u\n", sizeof(days)); printf("%u\n", sizeof(ptr)); return 0; } Is there a way to find out the size of the array that ptr is pointing to (instead of just giving its size, which is four bytes on a 32-bit system)?
My question pertains to article submission waiting times. How long, your experiences, is the period of time between a journal receiving completed peer reviews back on a paper (as indicated by the online system), and a decision being issued to the authour? My particular case: I have submitted to a large geography journal, and can see that peer reviews have been in for a month, in which time my manuscript is shown as "awaiting ed decision". Advice as to if/when to pester the editors would be useful to me. Thanks greatly
What steps does a manuscript typically go through from submission to publication (or rejection) in a typical journal? How are these steps referred to, in particular by editorial systems, and how long do they each typically take? Note that this question is about the typical situation and hence not about: Journals with an atypical workflow, e.g. those that allow for an instantaneous reviewer–author interaction. Exceptional steps or rare occurrences such as withdrawal or . This is a canonical question on this topic as per . Due to its nature, it is rather broad and not exemplary for a regular question on this site. Please feel free to improve this question.
Say $B$ is a basis for the topology $O$ on some set $X$. Then, must we have $\emptyset \in B$ ? If not, then how does one get $\emptyset \in O$ from taking the union of non-empty sets of $B$ ? My definition of a basis for a topology is a collection $B$ of open sets is a basis for the topology, if every open set of the topology is a union of elements of $B$.
In Munkres’ topology, there are two instances where we would have to represent the empty set as a union of sets. First, we have a lemma that says if $X$ is a set; and $\mathcal{B}$ is a basis for a topology $\tau$ on $X$, then $\tau$ is equal to the collection of all unions of elements of $\mathcal{B}$. Later on, we define a subbasis $S$ of a topology on a set $X$ to be a collection of subsets of $X$ whose union equals $X$, and the topology generated is the collection of all unions of finite intersections of elements of $S$. So there are a few questions I wanted to ask about these just to make sure that I'm understanding them correctly. First in the case of the subbasis, when Munkres says finite intersections, he's allowing for a set to be intersected with itself right? There's nothing that says the sets have to be different? This is important because we will need the elements of S to be in the collection of finite intersections so that we can get the full set X. Secondly, and more importantly, when dealing with the empty set, how do we say that this set is a union of anything? If I have a collection of sets D and I take the empty collection $\mathcal{A}$, then can I say the union of the empty collection is the empty set? I think this is ok to do, and Munkres mentions this earlier in the book, so is he allowing this to occur when he says all unions of elements from a collection of sets? I suppose its not that hard to understand but I guess I'm not used to thinking this way. Lastly, in the proof of the lemma I mentioned first, Munkre's proves that every open set is a union of basis elements in the following way. Let $U \in \tau$, choose for each $x \in U$ an element $B_x$ of the basis such that $x \in B_x \in U$. Then $U = \bigcup_{x \in U} B_x$, so $U$ equals a union of elements of the basis. I'm having trouble interpreting this statement if we start with $U=\emptyset \in \tau$. Then there is no $x \in U$, so how do we interpret the rest of the statement? Thank you
$f(x,y) = 2x+y$ subject to $g(x,y)=x^2+y^2-1=0$. The Lagrangian function is given by $$ \mathcal{L}(x,y,\lambda)=2x+y+\lambda(x^2+y^2-1), $$ with corresponding $$ \nabla \mathcal{L}(x,y,\lambda)= \begin{bmatrix} 2 + 2\lambda x \\ 1+2\lambda y \\ x^2+y^2-1 \end{bmatrix}. $$ From the latter we can see that $x=\frac{-1}{\lambda}$ and $y=\frac{-1}{2\lambda}$, which we can substitute into $x^2+y^2=1$ to obtain $\lambda = \pm\sqrt{\frac{5}{4}}$. Meaning that $x = \pm \dfrac{2}{\sqrt{5}}$ and $y= \pm \dfrac{1}{\sqrt{5}}$. We find the critical points $(\frac{2}{\sqrt{5}}, \frac{1}{\sqrt{5}})$ and $(\frac{-2}{\sqrt{5}}, \frac{-1}{\sqrt{5}})$. I am confused on how I should proceed to check wether these points or minima or maxima? I know the Hessian is involved, but which one?
QUESTION Determine all extrema of the function $$f(x,y) = x+ 2y $$ subject to $$x^2 + y^2 - 80 = 0$$ ATTEMPT I don't think I understand what I'm supposed to do. This was in a test and I ended up trying to "graphically"or ïntuitively" find out how the $f(x,y)$ would behave in a circle of radius $\sqrt80$ Which left me with some pretty random numbers that turned out to also be wrong. What could I have done differently? (If possible could I get a bit of a detailed explanation or some links to that info.) Lagrange Multipliers: I tried that too on the paper and it also went horribly wrong (but I did get some points, though) but I couldn't quite figure it out.
I would like to know if the color of a mesh means something special. Is it because these two triangles are deep grey that something is wrong with them? Thanks everyone.
While rendering a mesh with smooth shading on, I get a dark region/shadow on certain faces. The effect is more evident when smooth shading is applied to a mesh containing ngons, with the ngons turning black when rendered. The blackening effect is visible in the viewport too. How can I solve this problem?
In this story, it is in the far future so that it feels like a fantasy story. The protagonist is a boy named Flea with one shriveled leg. He gets dumped in a hole by his adopted family of orcs (or trolls?). He finds a cave and keeps journeying deeper into the earth. Along the way, he finds traps and puzzles that he solves, allowing him to continue. Among them, he finds a room with flying girl-like beings, which aren't afraid of him. He kills an animal there for food, and then gets in big trouble. At the end of the journey, he meets a wizard. Any idea what this book is called, or who wrote it?
This is a novel that I think I remember reading somewhere in the 1990s courtesy of my brother (who does not remember the book). Only a few details are coming to mind at the moment. It's a male protagonist. Something was not quite right with his legs, which led to him being nicknamed Frog or Leapfrog due to his usual method of locomotion, which consisted of pushing off from his legs to his hands and vice versa. Something happens and he winds up moving between a number of worlds (I want to say that he fell into a well or a hole in a field). There was a part which stuck with me where he's in a bottomless hole and finds he keeps falling faster and faster without end with the rushing wind becoming actively painful (I don't remember if he actually reaches a terminal velocity or if some aspect of the world prevented it while still allowing the rushing air to affect him physically). Unfortunately, that's all I can remember. I don't remember whether he eventually gains companions on the voyage or how it ended. The most vivid memory is that of the nonstop falling.
Here in the exercice, I have to show that $(Z[t],+, . )$ and $(Q[t],+, .) $ are not isomorphic. I know the answer! I am simply wondering if it would be true that, showing that $(Z,+, . )$ and $(Q,+, . )$ are not isomorphic is sufficient to say that the polynomial rings are also not isomorphic. If not, can you find me a counter example? thank you!
This is a very simple question but I believe it's nontrivial. I would like to know if the following is true: If $R$ and $S$ are rings and $R[x]$ and $S[x]$ are isomorphic as rings, then $R$ and $S$ are isomorphic. Thanks! If there isn't a proof (or disproof) of the general result, I would be interested to know if there are particular cases when this claim is true.
My flash disk encountered an error saying that it has been write protected, so of course I can't even copy files or even format my flash drive. What happened to my flash drive to cause this? And is there a way I can I fix this?
When I plug in my USB flash drive, it shows up on my computer as write-protected or read-only. I am unable to transfer data to it, nor can I modify or delete any files already stored on it. I also cannot repartition or reformat the drive using Windows Disk Management, DiskPart, GParted, or other tools. The drive does not have a write-protect switch. Why did this happen and what can I do about it? Is there a way to remove the write protection? (Note that this can happen with some memory cards, too, as they often use controllers similar to those used in flash drives. In some cases, the system may report that the drive or card was formatted successfully even though it was never actually formatted; the original data reappears when the device is reinserted.) This question comes up often and the answers are usually the same. This post is meant to provide a definitive, canonical answer for this problem. Feel free to edit the answer to add additional details.
I have a new Lenovo Thinkpad E560, running Windows 7. I installed Ubuntu 16.10, creating partitions for root, home, tmp, and swap. A partition called "bios_grub" was created automatically. Now whenever I boot the system it boots to Windows 7. My boot menu does not seem to be from grub, it shows only four items: Windows ATAPI CD0 – boots from DVD ATA HDD0 – does nothing PCI LAN – does nothing My question is not "how do I install Ubuntu". I have done that several times, without any major problems. This time, however, although Ubuntu has been installed on my disk, it does not appear in the boot menu. I booted from an Ubuntu live DVD and ran boot-repair but it tells me it cannot deal with a BIOS boot, only UEFI. So I tried to change the Windows boot to UEFI. The result is no booting system at all, with the following message: File: \EFI\Microsoft\Boot\BCD Status: 0xc000000d Info: An error occurred while attempting the boot configuration data. When I changed the boot menu back to BIOS Windows worked again. No Ubuntu boot option. The file \EFI\Microsoft\Boot\BCD exists on the EFI system partition, and the partition is flagged as "boot" and "esp" (shown by gparted). There is no other partion flagged as "boot". The disk is GPT. The Windows partition administration says the partition has status "no errors (EFI system partition)". It is the first partition on the disk. I see two possible ways to proceed: (1) Can I change my Windows boot to UEFI, so I can run boot-repair successfully? (2) Alternatively, is there a way to get a dual boot (grub or whatever) running with BIOS? Any help is appreciated. Please inform me if there is more information I should provide. Edit: Output from "sudo lsblk -f": NAME FSTYPE LABEL … sda ├─sda1 vfat SYSTEM_DRV … ├─sda2 ├─sda3 ntfs Windows7_OS … ├─sda4 ntfs Lenovo_Recovery … ├─sda5 ├─sda6 swap … ├─sda7 ext4 … ├─sda8 ext4 … ├─sda9 ext4 … ├─sda10 ext4 … sr0 tso9960 Ubuntu 16.04.1 LTS amd64 … /cdrom loop0 squashfs … /rofs sudo lsblk -fm additionally gives the following sizes: sda 931.5G sda1 100M sda2 128M sda3 232.9G sda4 14G sda5 95M sda6 14.9G sda7 9.3G sda8 14.9G sda9 540.2G sda10 105.1G I installed Ubuntu 16.10 from a live DVD, which I booted via the second item in my boot menu (ATAPI CD0). How can I "start installer in UEFI mode", as oldfred suggested? If I can do that, maybe it resolves my problem. Sorry, I cannot answer in a comment (size limitation), so I have to edit my original question. @ubfan1's hint to change my boot options from "BIOS first" to "UEFI first" solved my problem. I re-installed Ubuntu after changing this, and now I have a Grub menu. – ubfan1, if you re-enter this as an answer rather than a comment I will gladly give you credit.
I would like to see a full how-to guide on how to install Ubuntu.
About the information paradox in the black holes, isn't it possible in principle, that the "singularity" itself doesn't really exists, and its just the horizon plane, where the particles that falls into it gets stucked, and the hawking radiation, instead of being the creation of the 2 virtual particles, it would creates only the one that goes out of it, and that be entangled with a correspondent one stuck in the horizon, with that way we could retrieve the information, I'm sure that is some problems with that view, but, since we proved we can describe all the black hole just with the horizon itself, doesn't it shows that there isn't nothing more than the horizon? I mean, for me its a much smaller leap, than what physics is doing to assume that since the black hole can be described by the horizon, our hole universe can be described in one less dimension.
Assuming we have a sufficiently small and massive object such that it's escape velocity is greater than the speed of light, isn't this a black hole? It has an event horizon that light cannot escape, time freezes at this event horizon, etc. However this object is not a singularity. If a large star's mass were compressed to the size of, say, a proton, it would certainly have these properties but it would still not be a singularity as a proton does have volume. The reason "physics breaks down" at singularities is because we cannot divide by zero, but as long as the proton-sized object has volume, physics won't "break down", yet we still have an event horizon and an object that is invisible (but not undetectable) from the outside. I have read the answers to related question. I'm not sure if they don't address my specific question or if I don't understand the answers.
Basically, I want a tool to interpret the raw output of commands that output ANSI color codes, terminal reset codes, etc. in the Linux/Unix/macOS terminal. Something based on would be ideal. Does something like this already exist? If not, it wouldn't be too hard to write a tool to read codes from standard input and translate it using this page.
To get the character sequences of a particular keyboard shortcut we use showkey -a or verbatim insert (Ctrl+V). What is the opposite of it? How can I get the keyboard shortcut in human readable format from character sequences? I used some keybindings for example ^[^? ^X^U ^[[3;5~ ^[[1;2D ^[[1;2C ^[[1;5C ^[[1;5D ^[[1;6C ^[[1;6D .... Now I do not remember which key/key-combination they used to represent. How can I find that out? Update 1 I am looking for something which will output Ctrl+R or Ctrl+Delete etc, I mean in human readable format. Any reference to a table which has possible character sequences and their human readable formats will also do.
I have 7 different Likert Scales each consisting of 4 Likert items. In other words, I have 7 variables (Likert scales) and 28 Likert items (questions). I tested for reliability using cronbach's aplha and all likert scales were above 0.70. Now by putting the likert items together to build new variables do I use the mean or mode? And lastly, I want to find the correlation between one likert scale and the rest of them? What kind of analysis should I use? Thanks
I have some gained from survey questions. In my case they are responses (Strongly Disagree-Disagree-Neutral-Agree-Strongly Agree). In my data they are coded as 1-5. I don't think means would mean much here, so what basic summary statistics are considered usefull?
as a preface - my only experience with Ubuntu is playing around on VM's, so I apologize in advance for any naivety. I've just updated my Yoga 2 Pro from Windows 8.1 to 10, and am trying to install Ubuntu 14.04.2 along side. I created a UEFI bootable USB with Ubuntu 14.04.2 using rufus . I disabled secure boot and fast boot and enabled USB boot in the BIOS menu. I was able to get 'try Ubuntu' running, but when I go to install, I get errors with the grub install. When I select /dev/sda as the pointer for the boot loader, I get the error: The 'grub-efi-amd64-signed' package failed to install into /target/. Without the GRUB boot loader, the installed system will not boot. This is followed by the installation crashing. Looking online, it seems like others had this issue, but it was resolved when they pointed the boot loader to /dev/sda2 (which is where the Windows Boot Manager is). Unfortunately, I get another error when I do this: Executing 'grub-install /dev/sda2' failed. This is a fatal error. If it matters, I elected to not have separate root and home partitions due to a smaller SSD. So I have a partition, sda8, that is a 8gb swap partition and a ~25gb root partition, sda9, formated in Ext4 and mounted at /. EDIT: I've tried going through to no avail. I tried to install 15.04 as well (the above link seems to indicate that alone could resolve some UEFI related issues) but got the same errors. Ubuntu seems to be installing (the installer sees a previous install in the correct partition), but crashes at the boot loader. EDIT 2 - SOLUTION: I'm not sure what solved it, but here is what I did in case anyone else has the same issue. Some how the EFI partition corrupted. I deleted the ubuntu partitions using a live USB, then deleted /EFI/boot/Ubuntu. This lead to a failure to boot windows as well, so I used a windows recovery USB to repair windows boot manager. Then, in windows, I created the partitions for a clean ubuntu install. Finally, I reinstalled with no problem.
I'm absolutely new to Linux. I would like to know how to install Ubuntu alongside the pre-installed Windows 8+ OS. Should I do it with Wubi, or through the Live USB/DVD? What steps do I need to take to correctly install Ubuntu?
Suppose i invest 100000 today.and suppose rate of interest is 12% and inflation rate is 6% . so what amount i will get after 2 year at the rate of 12% and inflation of 6%. In other word you can say,how the rate of interest affects inflation rate. Please help me to get this.I'm struggling for this for a long while. Any help will be appreciated. Thanks in advance.
Suppose the following: if a child's age is 2 years today and he/she will go to college at the age of 15 years for 2 years(duration of education) and for which Cost incurred P.A. as on today (Rs.) 100000, Expected rate of return (%) 12 Expected Inflation rate (%) 6, how can we calculate the future expenditure of education of child. And for help the answer is: Amount required at start of College (Rs.) :4,39,383 To meet this Goal you must Invest (Rs.) : - 1,00,695 Lumpsum amount OR - 1,228 Monthly SIP Can anyone help me to get the formula to calculate the future amount with right logic.
I am trying to detect if a sequence of text begins with a numbering, eg I), IV., a), C/, C. C -, C- etc with a regex. I tried the following regex : m = re.search(r'^(IX?{\s|-|-\s|,|,\s|\)|\)\s|.|.\s}|IV?{\s|-\s|-|\)|\)\s|.\s|.}|VI{0,3}?{\s|-|-\s|\)|\)\s|.|.\s})', "II - Informations supplementaires") m.group(0) >> 'I' m.group(1) >> 'I' It only gives me 'I' as a result, I don't have "II", "II -", which are expected .... What is my error in the pattern ^^ ?
Thinking about , i decided I can't even create a regular expression that will match roman numerals (let alone a context-free grammar that will generate them) The problem is matching only valid roman numerals. Eg, 990 is NOT "XM", it's "CMXC" My problem in making the regex for this is that in order to allow or not allow certain characters, I need to look back. Let's take thousands and hundreds, for example. I can allow M{0,2}C?M (to allow for 900, 1000, 1900, 2000, 2900 and 3000). However, If the match is on CM, I can't allow following characters to be C or D (because I'm already at 900). How can I express this in a regex? If it's simply not expressible in a regex, is it expressible in a context-free grammar?
Editing ignored tags can be cumbersome when you have a lot of them already. If you would be so kind to take a look at the following. My front page looks like this: When I proceed to click "edit" on the right of Ignored Tags... ... I have to scroll all the way to the bottom of the page to find a small add box using my trusty scrollbar or scroll wheel. Both of which take ages: To add to my agony, I normally middleclick to make the autoscroll option appear. Then I can just move my mouse down and it will go to the place fast. But if I middle click to the right of the list of ignored tags, the add box dissappears. So I have to use the scroll wheel or scroll bar instead, which takes forever. Could something be done to address this issue?
It seems that most people who use the ignored tags feature end up with a fairly long list of those tags. Although , it is sometimes necessary to add new ignored tags manually (typically when adding some-tag*). It would be a lot easier if the add box was above the long list of ignored tags rather than below. I suppose the same would apply to the favorites tags for consistency's sake.
I know the Fourier transform is an isometry of $L^2$ functions. I've read that the Laplace Transform of an $L^2$ function is $L^2$ but cannot prove it nor can I find a proof. Does anyone know of a proof?
The Laplace transform is defined by \begin{equation} (\mathscr{L}f)(s) \triangleq \int_0^\infty e^{-sx} f(x) dx, \quad s>0, \end{equation} then how can we check that the Laplace transform $\mathscr{L}$ is bounded as an operator from $L^2(\mathbb{R}_+)$ to $L^2(\mathbb{R}_+)$ with norm $\sqrt{\pi}$?
Use counting arguments to prove these identities: I don't know how to type this: it is two numbers in brackets the first on top of the other, but there is no fraction line. Here is an image of both of the identities. $${n \choose 0} + {n \choose 1} + {n \choose 2} + \cdots + {n \choose n} = 2^n$$ $$ {n \choose 1} + 2 {n \choose 2} + 3 {n \choose 3} + \cdots + n{n\choose n} = n 2^{n-1}$$
Prove that $$\sum^{n}_{i=1}\binom{n}{i}i=n2^{n-1}$$ I can't find counting interpretations for either of the sides. A hint of "if $S$ is a subset of $\{1, . . . , n\}$ and $S^\prime$ is its complement then $|S| + |S^\prime| = n$" was also given, but I still don't know how to begin.
How many points can exist in one dimension? ANS: Infinite! How many lines can exist in a two dimension? ANS: Infinite! Now my question is how many points can exist two dimensions or even higher dimensions? "Infinite points * Infinite lines" infinity? Or "just" infinity? Can we say two dimensions contain more points than one dimension?
Is the set of points or the set of lines on a plane "larger",or there is a 1-1 correspondence between lines and points?
I found a writing in an old book which was: "Apple pie à la mode". I was wondering what is the meaning of that?
In American English, à la mode means: in fashion, up to date. with ice cream. (of beef) braised in wine, typically with vegetables. While the first meaning matches the French meaning, the other two meanings are different. Why does à la mode have also the last two meanings, in English?
Consider a scenario, a bus is about to pass over a bridge. The bridge is broken in the middle. Now according to ground observer the broken part is bigger than bus (because bus appears smaller to ground observer due to the motion of the bus) and hence bus will fall down the bridge. Now for observer on the bus sees that the broken part is smaller because, according to him, the bridge is moving and not him and he thinks bus will remain on the bridge. Whose prediction is right in this situation?
There is a relativistic paradox I was introduced by a friend in Ithaca (Courtenay Footman). It involves a vehicle travelling over a ravine relativistically, so it's in the general family of ladder paradoxes. There are many ways to phrase it, but here's a simple one. A three-car train with each car of length $L$ is travelling over a bridge across a ravine. (Assume that the couplings between cars are stiff: this train does not bend.) Unfortunately, some evil genius has precisely removed a length $6L$ of the track. The train however is relativistic, travelling at a speed such that $\gamma \approx 12$. In the reference frame of the ground, the train should appear to be 1/24th the size of the gap, which suggests that it will fall a little and should crash into the bridge opposite. But in the reference frame of the train, each car of the train is at least twice as long as the gap and aside from the very front wheel and the very back wheel, which need to be supported by rigidity, everything is constantly well-supported. This suggests that the train makes it. Who is right? I vaguely remember that as an undergraduate knowing only a little relativity, I trusted the train's perspective because it's at rest in that perspective, and Courtenay said that this was ultimately correct after a lot of details got resolved. But I do not remember all of these details such that I could work it out for myself. So I'm looking for some discussion that's a little more well-sourced or authoritative. What is this paradox called, and what literature has addressed the issue?
If my target variable has more 1's (say around 80%) than 0's then how do I handle such imbalanced data for building models using different methods such as GBM, RF, logistic regression, etc. Should I perform under sampling of 1's?
Suppose the event of interest occurs in approximately $10 \%$ of the cases where the number of cases is around $5,000$. Should you use a penalized logistic regression for this or is regular logistic regression okay? In other words, what qualifies something as a rare event?
I tied the following, it seems that there's no difference import java.math.BigInteger; import java.util.Random; import java.util.Scanner; public class Main { /** * @param args */ final static int MAXN = 100005; public static void main(String[] args) { // TODO Auto-generated method stub int n = 100; BigInteger[] a = new BigInteger[n]; BigInteger b[] = new BigInteger[n]; for (int i = 0;i < n;i++){ a[i] = BigInteger.valueOf(i); } b = a; for (int i = 0;i < n;i++){ b[i] = BigInteger.ZERO; } if (a == b){ for (int i = 0;i < n;i++){ System.out.println(a[i]); } } } }
I have recently been thinking about the difference between the two ways of defining an array: int[] array int array[] Is there a difference?
When I type import pygame in Thonny I get an error. I installed pygame with sudo apt-get install python-pygame, but it's not working. Can somebody help?
I had a hard time installing pygame on my ubuntu 16.04 LTS. I use python 3. these are the steps I took to install pygame: 1.first I installed pip: sudo python3 get-pip.py this is the output of running pip --version: pip 10.0.1 from /usr/local/lib/python3.5/dist-packages/pip (python 3.5) I executed the following commands: sudo apt-get install python3-dev mercurial sudo apt-get install libsdl-image1.2-dev libsdl2-dev libsdl-ttf2.0-dev then I executed the following command: pip install --user hg+http://bitbucket.org/pygame/pygame and this is the result in terminal: Collecting hg+http://bitbucket.org/pygame/pygame Cloning hg http://bitbucket.org/pygame/pygame to /tmp/pip-req-build-hxy86__i abort: error: Connection reset by peer Command "hg clone --noupdate -q http://bitbucket.org/pygame/pygame /tmp/pip-req-build-hxy86__i" failed with error code 255 in None and it fails to install pygame. what should I do??
We all know that for a differentiable function $f$ on $\mathbb R$,its derivative function can have only essential or $2$nd kind discontinuity.Now my question is if $X$ be that set of all points of discontinuities of the derivative function,then can we predict the nature of $X$,i.e.can we say anything about the structure of $X\subset \mathbb R$.
There is a well-known result in elementary analysis due to Darboux which says if $f$ is a differentiable function then $f'$ satisfies the intermediate value property. To my knowledge, not many "highly" discontinuous Darboux functions are known--the only one I am aware of being the Conway base 13 function--and few (none?) of these are derivatives of differentiable functions. In fact they generally cannot be since an application of Baire's theorem gives that the set of continuity points of the derivative is dense $G_\delta$. Is it known how sharp that last result is? Are there known Darboux functions which are derivatives and are discontinuous on "large" sets in some appropriate sense?
I've noticed that there's a line break occurring in the content__date when the browser is in mobile view. I tried to add another container for the content__date but it is not working. Any ideas would be appreciated.~ I am totally new in web development please bear with me. .content__item { display: flex; align-items: center; justify-content: flex-start; height: 100vh; width: 100vw; color: black; font-family: sans-serif; margin: 0; } .content .p { margin: 0; } .content__wrapper { display: flex; align-items: flex-start; justify-content: flex-start; max-width: 600px; } .content__date { display: flex; transform: rotate(-90deg); border-bottom: 2px solid black; padding-left: 3rem; } .content__category-wrapper { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; margin-left: -3.25rem; margin-top: -3rem; } .content__category { padding-bottom: 1rem; } .content__category-text { padding-left: 1rem; } .content__title-line { border-top: 2px solid black; margin-left: 0.5rem; padding-left: 20rem; } .content__title { padding-top: 1rem; padding-left: 20px; font-size: 18px; } <div class="content__item"> <div class="content__wrapper"> <div class="content__date"> <p class="content__date-text">June 7, 1941</p> </div> <div class="content__category-wrapper"> <div class="content__category"></div> <p class="content__category-text">Some text here</p> <div class="content__title-line"></div> <p class="content__title">Another text here</p> </div> </div> </div>
Is there a word-wrap or any other attribute that stops text from wrapping? I have a height, and overflow:hidden, and the text still breaks. Needs to work in all browsers, before CSS3.
I am looking for different ways to pause and resume programmatically a particular process via its process ID under Windows. Process suspend/resume tool does it with SuspendThread / ResumeThread but warns about multi-threaded programs and deadlock problems. Or Detect Threads of any process ID. I need method deadlocks or uses another method? Prefered languages : C#
How do I suspend a whole process (like the Process Explorer does when I click Suspend) in C#. I'm starting the Process with Process.Start, and on a certain event, I want to suspend the process to be able to do some investigation on a "snapshot" of it.
In my phone,Google+ app or google play store is an unsupported app. My phone is a Nokia XL. But if I connect to Facebook, will my village be saved?
When I try to connect to Google Play, it would say "download Google play service". After I downloaded it, it says that it is "not supported by your device, please contact the manufacturer".
I am reading about indefinite integrals and I have a question regarding the use of the modulus in integrating $\frac{1}{x}$. The book I am reading gives me the following explanation - The book later gives no further explanation, which has left me confused. I have found no reasonable explanation online, so I would like to ask why this is the case in integration. What does the book cite as "difficulties that may arise"?
My professor says that writing this is convenient $$\int \frac 1x \mathrm{d}x = \ln|x| + C\tag{1}$$ but wrong, since it should be written as: $$\int \frac 1x \mathrm{d}x = \begin{cases}\ln x + C &x > 0\quad(\star)\\[0.2em] \ln(-x) + C &x < 0\end{cases}$$ I was wondering why is that the case. I thought that the two were equivalent, as one can see by the definition of absolute value. In $(\star)$ the equality sign is dropped because the logarithm is not defined in $0$, but that would be the case with $(1)$ as well.
I would like to allocate certain number of CPU cores to a specific process for performance improvement. How can I do this?
How to limit process to one cpu core ? Something similar to ulimit or cpulimit would be nice. (Just to ensure: I do NOT want to limit percentage usage or time of execution. I want to force app (with all it's children, processes (threads)) to use one cpu core (or 'n' cpu cores)).
We know that if $f(x)$ and $g(x)$ are continuous in a domain then $f(x)/g(x)$ is continuous in the domain except for those elements in the domain for which $g(x) = 0$. If I take two functions $f(x) = x$ and $g(x) = 1/x$, then $f(x)$ is continuous for all $R$ and $g(x)$ is continuous for $R-\{0\}$ but if I take $f(x)/g(x)$ which is $x/1/x$ or $x^2$ then it is continuous for all $R$ even when $0$ was not in the domain of $g(x)$. Is this correct?
Let $f(x) = \frac{x}{x}$. Is it correct to say that $f(x) \ne 1$, since $f(x)$ has a discontinuity at $x=0$?
I have two text files. The first "file1.txt" has content: Apple Orange Banana while the second file "file2.txt" has content: monday tuesday wednesday I want to combine them into one file and its output is: Apple monday Orange tuesday Banana wednesday
Standard cat concatenates files line by line (row by row, if you will). I find myself needing a horizontal cat command more and more often recently; i.e. a command that takes a list of files and concatenates them horizontally, column by column. So far I’ve used ad-hoc workarounds but I’d like to know if there exists a good solution for this. To clarify, consider the following comparison between cat and hcat of two files: $ cat a.dat 1.dat a b c d 1 2 3 4 $ hcat -s ' ' a.dat 1.dat a b 1 2 c d 3 4 (Unlike for cat we need to specify a separator since by convention UNIX files don’t have a column separator at the end.)
In clang's ActOnIfStmt function, we have: return Owned(new (Context) IfStmt(Context, IfLoc, ConditionVar, ConditionExpr, thenStmt, ElseLoc, elseStmt)); I'm under the impression that Context is a pointer type, but it's a class type. How does this work, and what does this code do?
Has anyone here ever used C++'s "placement new"? If so, what for? It looks to me like it would only be useful on memory-mapped hardware.
If I input value: 3.123456789012345e-09 I should get back 3.12345678901235e-09 But it will only round up on .6 to .9 ostringstream os; double d = 3.123456789012345e-09 ; os << setprecision( 15 ); os << d; istringstream is ( os.str() ); is >> setprecision( 15) >> d; std::cout << d << std::endl; The real bizzare thing is: The rounding behaviour changes depending on the power: 3.123456789012345e-09 = 3.12345678901234e-09 3.123456789012345e-10 = 3.12345678901234e-10 3.123456789012345e-11 = 3.12345678901235e-11 3.123456789012345e-14 = 3.12345678901235e-14 Every 1000th power rounds correctly... I am so confused. I know that rounding is a bit a of a weird subject but I cant make heads or tails of this. on a 64 bit machine btw.
Consider the following code: 0.1 + 0.2 == 0.3 -> false 0.1 + 0.2 -> 0.30000000000000004 Why do these inaccuracies happen?
I'm trying to model regional implicit bias using multilevel regression with poststratification as described in Hoover, J., & Dehghani, M. (2019). The big, the bad, and the ugly: Geographic estimation with flawed psychological data. Psychological Methods. Advance online publication. . The authors model Implicit Bias (imp_bias) as a function of six fixed effect county-level (contextual) variables (vote_prop.std + ... + latino_prop.std) and various random effects. Three of these random effects are geographical units: Counties nested within states nested within divisions. Though they are not explicitly specified as nested factors (as (1 | division/state_fips/county_fips) would do), they should be handled as nested factors because every fips-code is unique to the specific geographical unit. The other three are demographic variables: education, sex, & age. In the paper the authors write that the demographic effects were estimated as random intercepts crossed with division and that they did cross them with division because otherwise the model didn't converge. I am confused as to whether the code they report does achieve this: iat.imp.mrp.2 <- lmer(imp_bias ~ 1 + vote_prop.std + ... latino_prop.std + (1 | county_fips) + (1 | state_fips) + (1 | division:educ_3lvl) + (1 | division:sex:age_4lvl), data = iat.estimation.df, verbose=T, control=lmerControl(optimizer="bobyqa", optCtrl=list(maxfun=2e5))) To my understanding (1 | division:educ_3lvl) indicates that education is nested within division rather than crossed with division. And how does this model differ from the following? iat.imp.mrp.2 <- lmer(imp_bias ~ 1 + vote_prop.std + ... latino_prop.std + (1 | county_fips) + (1 | state_fips) + (1 | division) + (1 | educ_3lvl) + (1 | sex) + (1 | age_4lvl), data = iat.estimation.df, verbose=T, control=lmerControl(optimizer="bobyqa", optCtrl=list(maxfun=2e5))) To summarize, I don't really understand what the : does in the authors' code and would like to know how to specify with which of the three levels the demographic variables are crossed. Any help is really much appreciated!
Here is how I have understood nested vs. crossed random effects: Nested random effects occur when a lower level factor appears only within a particular level of an upper level factor. For example, pupils within classes at a fixed point in time. In lme4 I thought that we represent the random effects for nested data in either of two equivalent ways: (1|class/pupil) # or (1|class) + (1|class:pupil) Crossed random effects means that a given factor appears in more than one level of the upper level factor. For example, there are pupils within classes measured over several years. In lme4, we would write: (1|class) + (1|pupil) However, when I was looking at a particular nested dataset, I noticed that both model formulas gave identical results (code and output below). However I have seen other datasets where the two formulas produced different results. So what is going on here? mydata <- read.csv("https://web.archive.org/web/20160624172041if_/http://www-personal.umich.edu/~bwest/classroom.csv") # (the data is no longer at `http://www-personal.umich.edu/~bwest/classroom.csv` # hence the link to web.archive.org) # Crossed version: Linear mixed model fit by REML ['lmerMod'] Formula: mathgain ~ (1 | schoolid) + (1 | classid) Data: mydata REML criterion at convergence: 11768.8 Scaled residuals: Min 1Q Median 3Q Max -4.6441 -0.5984 -0.0336 0.5334 5.6335 Random effects: Groups Name Variance Std.Dev. classid (Intercept) 99.23 9.961 schoolid (Intercept) 77.49 8.803 Residual 1028.23 32.066 Number of obs: 1190, groups: classid, 312; schoolid, 107 # Nested version: Formula: mathgain ~ (1 | schoolid/classid) REML criterion at convergence: 11768.8 Scaled residuals: Min 1Q Median 3Q Max -4.6441 -0.5984 -0.0336 0.5334 5.6335 Random effects: Groups Name Variance Std.Dev. classid:schoolid (Intercept) 99.23 9.961 schoolid (Intercept) 77.49 8.803 Residual 1028.23 32.066 Number of obs: 1190, groups: classid:schoolid, 312; schoolid, 107
I tried to write a regular expression using PCRE and regex101 to match a given list of palindromes. Special thanks to @trincot for pointing at the faults I made in earlier versions. My latest work solves the problems from before though. I wonder if anyone could find a palindrome that isn't matched correctly. Link to regex:
That was an interview question that I was unable to answer: How to check that a string is a palindrome using regular expressions? p.s. There is already a question "" and it gives a lot of answers in different languages, but no answer that uses regular expressions.
Mathematical visualisations (not sure how these should be described, is there a better noun?) are not displaying correctly for me on the stack exchange app. As you can see in the screenshot, they are being displayed exactly as entered, rather than being parsed and displayed the way the author intended. This only occurs in comments on all sites. They show fine in questions and answers. They also appear fine in my browser (chrome mobile). This has been the case for as long as I've used the app, but only just decided to report it here. The app has no pending updates Device: HTC 10 OS: Android 6.0.1 Is there anything I can do to remedy this or is it a bug?
I'm using the Stack Exchange app for Android. The app displays TeX formulas inside questions and answers as expected, but not in comments. Here it shows only the raw TeX code. I first noticed this issue .
I am interested to know, in which location and format are files stored when we put them in Recycle Bin? And when we delete them, where they go?
What does the Recycle Bin in Windows actually do? Is it just a glorified folder and a holding place for soon to be deleted files, or does it do something specific? Specifically, are files that are "moved" to the Recycle Bin actually moved on the hard disc, or are just the pointers to the files moved? I am a fairly experienced user, I just wanted a more depth explanation of the Recycle Bin.
I'm new to programming so I guess this question is kinda stupid. I want to check if current Text exists in Array of Labels, because I get same name twice sometimes. for (int i = 0; i < DM.checkedListBox1.CheckedItems.Count; i++) { labels[i] = new Label(); for (int j = i; j < DM.dataGridView1.Columns.Count; j++) { if (DM.dataGridView1.Columns[j].Visible) { if (labels.Contains(DM.dataGridView1.Columns[j].HeaderText)) { labels[i].Text = DM.dataGridView1.Columns[j].HeaderText; break; } } } } Thank you!
What would be the best way to look in a string[] to see if it contains a element. This was my first shot at it. But perhaps there is something that I am overlooking. The array size will be no larger than 200 elements. bool isStringInArray(string[] strArray, string key) { for (int i = 0; i <= strArray.Length - 1; i++) if (strArray[i] == key) return true; return false; }
For the purposes of titles, in particular on sites like Sci-Fi & Fantasy, Literature, and Movies & TV, is it possible to allow basic markdown appropriate for titles (italics) in the tag wiki excerpts? I was recently editing a tag wiki on Movies & TV and realized that the markdown does not work in the excerpts so I'm forced to either leave titles without appropriate text decoration (which is what is generally done on both sites) or to use quotes. Neither of these solutions are "correct". Is it possible to allow italics specifically on sites that warrant it by having a large volume of book, film, or TV show titles as tags? Or is this something not possible due to how the excerpts work? This is a very specific request to be only used in very special cases and most likely would not be enabled on all Stack Exchage sites. I understand that, in general, markdown is not popular for tag wiki excerpts but I think that it may be worth making an exception if it is beneficial for clarity.
For example, : Format like bold or italic are not available , so it leaves ugly text there: **This tag is *extremely* ambiguous. Consider using other tags instead.** Does this need to get fixed, or it's not supported and the tag-wiki needs to be format-free?
Let $M$ be a closed connected 3-manifold, and write $H_1(M, \mathbb{Z})$ as $\mathbb{Z^r} \oplus T$ where $T$ is torsion. Show that $H_2(M, \mathbb{Z})$ is $\mathbb{Z^r}$ if $M$ is orientable or $\mathbb{Z^{r-1}} \oplus \mathbb{Z_2}$ if $M$ is not orientable. I tried applying the UCT for Homology but I am not getting any information about $H_2$. On the other hand, when I used UCT for cohomology I am unable to proceed because of the $Ext(*)$. Can anyone help?
I'm trying to solve this problem from Hatcher 3.3.24. Let $M$ be a closed connected 3-manifold, and write $H_1(M, \mathbb{Z})$ as $\mathbb{Z^r} \oplus T$ where $T$ is torsion. Show that $H_2(M, \mathbb{Z})$ is $\mathbb{Z^r}$ if $M$ is orientable or $\mathbb{Z^{r-1}} \oplus \mathbb{Z_2}$ if $M$ is not orientable. In particular $r \geq 1$ if $M$ is not orientable. Using exercise 6 construct examples showing there are no other restrictions on the homology groups of closed 3-manifolds. (In the nonorientable case consider the manifold $N$ obtained from $S^2 \times I$ by identifying $S^2 \times \{0\}$ with $S^2 \times \{1\}$ via a reflection of $S^2$.) I think I've solved the first part, here's my proof: First note the following theorem: If $M$ is a closed connected and orientable n-manifold then $H_n(M, \mathbb{Z}) = \mathbb{Z}$ and $Tors(H_{n-1}(M, \mathbb{Z})) = 0$. If nonorientable, then $H_n(M, \mathbb{Z}) = 0$, $Tors(H_{n-1}(M, \mathbb{Z})) = \mathbb{Z_2}$. Now note by Poincare duality and UCT we have that $H_2(M) \cong H^1(M) \cong \mathbb{Z^r} \oplus T_0 \cong \mathbb{Z^r}$. In the nonorientable case consider the exact sequence: $0 \longrightarrow H_2(M) \longrightarrow H_1(M) \longrightarrow H_0(M) \longrightarrow 0$ But we know $H_1(M) = \mathbb{Z^r} \oplus Z_2$ from the earlier theorem and $H_0(M) = \mathbb{Z}$. Therefore $H_2(M) \cong ker(\mathbb{Z^r} \oplus Z_2 \rightarrow \mathbb{Z}) \cong \mathbb{Z^{r-1}} \oplus \mathbb{Z_2}$. For the rest of the question I'm quite lost.
I have a page with an iframe. Inside that iframe I have a javascript function like this: function putme() {} How can I call this function on the main page?
Basically, I have an iframe embedded in a page and the iframe has some routines I need to invoke from the parent page. Now the opposite is quite simple as you only need to call parent.functionName(), but unfortunately, I need exactly the opposite of that. Please note that my problem is not changing the source of the iframe, but invoking a function defined in the iframe.
The Fourier transform of a 1-d "disk" or: f(x) = \begin{cases} 1 & \text{ if } \left | x \right |< \frac{1}{2} \\ 0 & \text{ if } \left | x \right |> \frac{1}{2} \\ \end{cases} gives a sinc function, and the Fourier transform of a 2-d disk: f(x,y) = \begin{cases} 1 & \text{ if } \left | \sqrt{x^{2}+y^{2}} \right |< \frac{1}{2} \\ 0 & \text{ if } \left | \sqrt{x^{2}+y^{2}} \right |> \frac{1}{2} \\ \end{cases} gives a jinc function. What is the Fourier transform of: f(x,y,z) = \begin{cases} 1 & \text{ if } \left | \sqrt{x^{2}+y^{2}+z^{2}} \right |< \frac{1}{2} \\ 0 & \text{ if } \left | \sqrt{x^{2}+y^{2}+z^{2}} \right |> \frac{1}{2} \\ \end{cases} , or for that matter any n-disk?
What is the Fourier transform of the indicator of the unit ball in $\mathbb R^n$? I think it is known as one of special functions, so I would be happy to know which one.
I am 11 years old, and I have made an app I want to post to the App Store. Is there any way to do that, or do I have to use my mom's account? (I have an Apple id because of Family Sharing)
I've seen a lot of questions like this throughout the web but they're mostly from 2 or 3 years ago, so I decided to ask to have some updated answers. I'm 16 and I want to start publishing and using the benefits that comes with the Developer Program. In the legal agreement says that I should be over 18, and I'm not so, i can't do it. I've contacted the apple developer support and they told me that I should use a account in my father's name. We reside in Brazil. With that, I had some doubts: Will the name on the App Store be mine or my father's? In the future, when I'm 18, this account can be transferred to my name? Besides that, if someone has any advice or (legal) workaround I'd appreciate it, thanks
I have some armored cable (AC/MC) that needs to be fastened to the floor joist. Very limited access. I could probably reach in and swing a hammer a few inches, but no way to get a drill or screwdriver without busting up the ceiling. I can use staples meant for NM cable?
I've heard some people say that code requires wiring in the wall to be stapled to framing every so often (how often?), but when you are doing a remodel, is that necessary? I have a two story house, and would like to remove one standard dome light on the first floor ceiling and replace it with 6 recessed lights. There is about 12" of empty space between the floors, and it seems easy enough to run the wire from light to light without cutting any drywall except for the 4-5" holes required for the lights. However, there's no way I'd be able to staple the wiring down. It's just going to be loose in the ceiling, running through a small hole in the I joists every once in a while. They sell "remodel" light cans that are made specifically so you only have to cut a hole big enough for them to fit in, so this seems like a common job. What am I missing and how can I do this job in the most correct way? This is in Dallas, TX, single family residence.
I have configured FTPS in a linux machine but when i am trying to connect through ftps in filezila below error is coming. Status: Connection attempt failed with "ECONNREFUSED - Connection refused by server". Error: Could not connect to server
This is a about Connection Refused We see a lot of questions to the effect When I try to connect to a system I get a message Connection refused Why is this ?
I'm thinking of buying either a high-end 13'' Air (i7 and 8GB RAM $1,549.00) or 13'' rMBP with an i5 ($1,699.00). Setting aside portability, display and other differences which I'm still pondering, how does the 1.7GHz Dual-Core Intel Core i7 compare to the 2.6GHz Dual-core Intel Core i5 in terms of performance? I do some photo editing and programming.
I can see that the 13" version of MacBook Pro and MacBook Air is same $1199, but the Pro is more feature-loaded than Macbook Air. Why would anyone buy MacBook Air? What's the catch in this? I was thinking of buying a MacBook for development purposes, and worried if there's any problem in the Pro version, because it comes with more features (like more storage). Edit: Thanks for the answer guys, I bought a MacBook Pro a week ago and already loving it.
I have a variable which has to be encrypted and after that saved to the database via mysqli prepared statement. I use AES-256-CTR. $tabvar = openssl_encrypt($final, $encryptionMethod, $secret, OPENSSL_RAW_DATA, $iv); After the encryption the result looks like this: 5œœ¼Ç=áüû;€é? This is my php insert code: $ins = mysqli_prepare($db, "INSERT INTO tab (tid, tabvar) VALUES (?,?)"); mysqli_stmt_bind_param($ins, "ss",$tid,$tabvar); mysqli_stmt_execute($ins); Because the $tabvar consist of some very strange characters once encrypted, it doesn't get inserted in the database. If I change $tabvar to "i" the row get's inserted, but the entry under tabvar column is 0? Does anyone have an idea how to solve this?
How do I store binary data in ?
He_____ (ride) a horse when he was a child. She ______ (sing) in a school choir many years ago.
At the dentist's: I was on time for my dentist's appointment, but the dentist was still busy with another patient, so I sat in the waiting room and read some of the old magazines lying there. All the while I was wondering whether to leave and come back another day . Why past simple here and not past continuous? To me both actions are in progress they are not completed
I am creating ArrayList l1 and passing l1 reference to the method foo. As we know that Java doesn't support Pass-By-Reference but here its giving different results. See the below code public static void main(String[] args) { List l1 = new ArrayList(Arrays.asList(4,6,7,8)); System.out.println("Printing list before method calling:"+ l1); foo(l1); System.out.println("Printing list after method calling:"+l1); } public static void foo(List l2) { l2.add("done"); // adding elements to l2 not l1 l2.add("blah"); } Output: Printing list before method calling:[4, 6, 7, 8] Printing list after method calling:[4, 6, 7, 8, done, blah]
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?
In Latex, I put the following code: \begin{tikzcd} A \arrow[r, "f"] & B \end{tikzcd} However, the 'f' does not appear over the arrow. How can I solve this?
Why do I get the error Missing \endcsname inserted at line 15? \documentclass{article} %\usepackage[strict]{csquotes} %\usepackage[autostyle=true]{csquotes} \usepackage[T2A,T1]{fontenc} \usepackage[russian,main=english]{babel} \usepackage{tikz-cd} \begin{document} \begin{tikzcd} f \arrow[d, "\partial"] \\ g \end{tikzcd} \end{document} Again I get the error if instead of option russian I use: \usepackage[T1]{fontenc} \usepackage[german,main=english]{babel} As the commented-out preamble lines show, I tried to invoke package csquotes, in two different ways, to avoid the problem, but that failed, too. I do not get the error with babel option french however, as in: \usepackage[T1]{fontenc} \usepackage[french,main=english]{babel}
I have 2 laptops (one of which is my primary PC) and a desktop PC. The desktop run on Vista Home Edition, the secondary laptop also runs on vista and the primary laptop runs on windows 8. It is possible to link these machines in order to increase the processing power and speed of my primary laptop?
Here are a few questions, I wish you could enlighten me. Is it possible to combine processing power of 2 computers? How do I do it?
I use in Arch Linux for installing packages. The command for installing is pacman -S, The command for a full system upgrade is pacman -Syu and The command for repository update is pacman -Syy. I want to know what is the equivalent for pacman in Ubuntu and its corresponding command.
How can I install applications like Google Chrome on Ubuntu? Are there any commands to install an application? Index of answers:
I have a .ttf file in which I need to add some missing characters. Maybe some of you have faced and overcame this earlier? I would relay appreciate your time spared ;)
I'm trying to find a free tool (on windows ) that would enable me to change some settings on a TrueType font. Specifically, I'm trying to fix the following errors: E1311 The macStyle bold bit doesn't match the name table's font subfamily string macStyle bold bit is set, but subfamily is Regular W2000 The subfamily string is inconsistent with the style of the font OS/2.fsSelection bold bit is set, but subfamily string = 'Regular' I can do that with fontographer, but would prefer to use something free. Fontforge doesn't seem to work with this font, when saved it corrupts the cyrillic letters in the font.
I understand that this is part of Euclid's Lemma but how do I prove that a must be prime?
I am trying to understand the proof for the following theorem: Let $R$ be an integral domain. If $x \in R$ is prime, then $x$ is irreducible. Here is the proof: I typed this a while ago and I don't understand the part where if $x | bc$, then $x=bc$? Is something wrong at this step? Also, is the definition of prime elements where $p$ is prime if whenever $p|ab$, then either $p|a$ or $p|b$? Now I don't feel so sure. This could be the reason why I am not understanding the proof...
I'm a beginner programmer I'm working on a website with my friend Alex, we're both beginners actually, I took on the task of designing the landing page to get some practice in. I want to have these divs which contain nothing but text centered horizontally and vertically (or dead center), I've tried some things other people have suggested on other posts on this site but nothing seems to be working. Could one of you gurus please help me? And thanks in advance :D (I should probably mention that I'm using DW with the Bootstrap framework) Here's the html: <!DOCTYPE html> <html lang="en"> <head> <!--GOOGLE FONT--> <link href='https://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Untitled Document</title> <!-- Bootstrap --> <link href="css/bootstrap.css" rel="stylesheet"> <link href="css/stylesheet.css" rel="stylesheet" type="text/css"> <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body class="background"> <div id="nav"> <ul> <li><a href=""> About </a></li> <li><a href=""> Sign up </a></li> </ul> </div> <div id="welcome"> <p>TEXT I WANT CENTERED</p> </div> <div id="best"> TEXT I WANT BELOW CENTERED TEXT </div> <!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> <script src="js/jquery-1.11.2.min.js"></script> <!-- Include all compiled plugins (below), or include individual files as needed --> <script src="js/bootstrap.js"></script> </body> </html> Heres the css: @charset "utf-8"; /* CSS Document */ .background { background: url(../img/bg1.jpg) no-repeat 50% 50% fixed; margin: 0 auto; max-width: 80%; min-width: 50%; width: 80%; height:auto; background-size: cover; -webkit-background-size: cover; -o-background-size: cover; -moz-background-size: cover; } li { display: inline; letter-spacing: 2px; padding-right: 0.5em; float: right; font-size: 125%; font-style:normal; font-weight: bold; text-transform: uppercase; text-decoration:none; color:#ffffff; text-shadow: 4px 3px 0px #000000, 9px 8px 0px rgba(0,0,0,0.15); } #welcome { font-family: 'Montserrat', sans-serif; max-width: 90%; min-width: 80%; height: 50%; font-size: 350%; font-style:normal; font-weight: bold; text-transform:uppercase; text-decoration:none; text-align: center; color:#ffffff; position: relative; text-shadow: 4px 3px 0px #000000, 9px 8px 0px rgba(0,0,0,0.15); z-index: 9998; } welcome p { width: 300px; height: 100px; padding: 20px; } #best { font-family: 'Montserrat', sans-serif; max-width: 100%; min-width: 70%; font-size: 200%; font-style:normal; font-weight: bold; text-transform:uppercase; text-decoration:none; text-align:center; color:#ffffff; position: relative; text-shadow: 4px 3px 0px #000000, 9px 8px 0px rgba(0,0,0,0.15); } p { text-align:center; } a { color: #FFFFFF; } a { hover: #2a7315; text-decoration: none; }
Best way to center a <div> element on a page both vertically and horizontally? I know that margin-left: auto; margin-right: auto; will center on the horizontal, but what is the best way to do it vertically, too?
I am trying to do SSO with an external website. Is there a way to pass the salesforce object data when doing SSO so that forms on the external website are already prefilled when the page opens up.
I've implemented Single Sign On with Salesforce as Identity Provider scenario using SAML. I want to pass additional attributes via SAML response to the Service Provider. Out of the box the Connected App allows adding custom attributes based on User/Profile/System objects: I want to add attributes from other objects. Is it even possible? Should I implement some interface to have specific fields visible?
I have done it thus far: $$\lim_{x \to 0}\frac{{(x+1)}^\frac{1}{x}-e}{x} = \bigg[\frac{0}{0}\bigg] = \frac{((x+1)^\frac{1}{x}-e)'}{x'}=({x+1})^\frac{1}{x} \cdot \left(\frac{\ln(x+1)}{x}\right)' = \\({x+1})^\frac{1}{x} \cdot \frac{\left(\frac{x}{x+1}-(\ln(x+1)\right)}{x^2} = ({x+1})^\frac{1}{x} \cdot \left(\frac{\frac{1}{x+1}}{x} - \frac{\ln(x+1)}{x^2}\right) $$ I don't know what to do next. Also could someone elaborate as to why when I have to find a derivative for $\frac{\ln(x+1)}{x}$ I need to use the quotient rule, but when I first derived the fraction that is given I could derive numerator and denominator separately?
Find the following limit: $$\lim_{x\to 0}\frac{(1+x)^{1/x}-e}{x} \tag{1}$$ The following is my approach, although is full of incorrect assumptions (statements etc). $$f(x)= \lim_{h\to 0}(1+x+h)^{1/(x+h)}\\$$ From here we can say $f(0) = e$. $$\ln(f(x)) = \lim_{h\to 0}\frac{1}{x+h}\ln(1+x+h)$$ Near $x=0$, we can use the series of logarithm: $$\ln(f(x)) = \lim_{h\to 0}\frac{1}{x+h}\left(x+h-\frac{(x+h)^2}{2}...\right)$$ Differentiating we get: $$\frac{f'(x)}{f(x)} = \lim_{h\to 0}-\frac{1}{2} +\frac{x+h}{3} ... \tag{2}$$ Now we note that $(1)$ is actually $f'(0)$ (?) and so from $(2)$ we get: $$f'(0) =\frac{-1}{2} f(0) = \frac{-e}{2}$$ While the answer is seemingly correct, the method is absolutely not. It looks like this is fluke than anything else. I also tried computing taylor series of $(1+x)^{1/x}$ near $x=0$ but couldn't do it.
I've got a subclass of DataGridView that adds all the columns it needs in it's own constructor, but when I use this component in the VS designer it insists on generating code to add the same columns on top of the ones added in the component constructor. How do I force it to not generate code for columns it already finds populated inside a datagridview?
I generate all my columns in a subclassed DataGridView programmatically. However Visual Studio 2008 keeps reading my constructor class (which populates a DataTable with empty content and binds it to the DataGridView) and generates code for the columns in the InitializeComponent method - in the process setting AutoGenerateColumns to false. This causes errors in design-time compilation which are only solved by manually going into the design code and deleting all references to these autogenerated columns. How can I stop it doing this? I have tried: Making the control 'Frozen' Setting the DataGridView instantiated object protected (suggested in a previous post which referred to )
I am trying to set up an openstack environment, but I am a bit confused due to the different mechanisms to do this. I have an environment with 8 nodes, and MAAS is installed at one node.( Ubuntu 15.04 with MAAS installation. The other 7 nodes are 14.04 LTS) Now what ? Use this procedure and go for Landscape Autopilot to setup openstack ? There are also other choices in the install procedure Install JUJU and use JUJU GUI to install Openstack ? Install openstack step by step from shell ? Openstack-autopilot (? is this the same as landscape-autopilot?) Other ways ?
How do I install ? Is there an easier way other than official installation instructions?
Failed failed to mount Mount unit for gnome-3-26-1604, revision 98 Failed Failed to mount Mount unit for gnome-3-28-1804, revision 128 Failed Failed to mount Mount unit for gnome-3-28-1804, revision 145 Failed Failed to mount Mount unit for gnome-3-28-1804, revision 60 Failed Failed to mount Mount unit for gnome-3-28-1804, revision 66 Failed Failed to mount Mount unit for gnome-system monitor, revision 145 Failed Failed to mount Mount unit for gnome-system monitor, revision 148 Failed Failed to mount Mount unit for...... Failed Failed to mount Mount unit for.... Failed Failed to mount Mount unit for..... Failed Failed to mount Mount unit for..... Failed Failed to mount Mount unit for...... you are in emergency mode. After logging in, tye "jornalctl -xb" to view system logs,"systemctl reboot" to reboot, "systemctl default" or "exit" to boot into default mode. Pulse enter para mantenimiento (o punse Control -D para continuar)
Yesterday I started the upgrade from 12.10 to 13.04, but I interrupted it because it was taking too long. Now if I restart it, it doesn't proceed. Is there any possibility to clean the mess it left when I interrupted it and make a clean restart of this update?
The alternate series $S=\displaystyle \sum_{k=2}^{\infty} \frac{(-1)^n}{\sqrt{n}+(-1)^n} $ converges? $S$ is absolutely convergent?
Discuss the convergence of the sum: $$\sum _{k=2} ^\infty \frac{(-1)^k}{\sqrt{k}+(-1)^k}.$$ My answer so far: It does not converge absolutely since $$\left | \frac{(-1)^k}{\sqrt{k}+(-1)^k} \right | \geq \frac {1} {\sqrt{k} + 1},$$ the sum of whose terms diverges. Intuitively, I think it should converge conditionally because $ \sum \frac{(-1)^k}{\sqrt{k}}$ does, and the $(-1)^k$ in the denominator should not make a big difference. However, I am having trouble demonstrating its conditional convergence. Evidently, the problem is that $\frac{1}{\sqrt{k}+(-1)^k}$ is not monotone. Let's call this sequence $a_n$. If we can show that $$\sum_{k=2}^\infty |a_k - a_{k-1}| < \infty,$$ then we're done by Dirichlet's test. But this seems to be $O(1/k)$. Any ideas?
So I have been trying to learn how to do motion tracking and I have a good solve error of 0.5507. I thought that after I rendered my object in my video wouldn't experience any irrational moving or sliding but I was wrong. I don't know what I'm doing wrong... Is it these spikes in my graph that is causing it to slide around? I've read that deleting these spikes will get rid of the sliding, but literally all of my tracks do this so deleting the spike would mean deleting all my tracks. anyone know how to fix this? Also here are the files so you can take a look at it all yourself.
Whenever I do camera tracking in Blender the reconstruction is always zooming out or not on the axis. I have a great quality camera, but the end results of the camera tracking always has the model sliding. If you have a solution please tell me.
I'm trying to do some shizzle with SFTP and SSH but it would seem I'm getting hung up on super-simple array declaration. According to , I should be able to use the following syntaxes to create an array: [bob in ~] ARRAY=(one two three) [bob in ~] echo ${ARRAY[*]} one two three [bob in ~] echo $ARRAY[*] one[*] [bob in ~] echo ${ARRAY[2]} three [bob in ~] ARRAY[3]=four [bob in ~] echo ${ARRAY[*]} one two three four The part from that for me to focus on is this line: [bob in ~] ARRAY=(one two three) I tried replicating in my script: #!/bin/bash USERS=("user1" "user2" "user3") PASSES=("pass1" "pass2" "pass3") for i in ${!USERS[@]}; do echo ${PASSES[i]}; done Running this (using sh script.sh) outputs: script.sh: 2: script.sh: Syntax error: "(" unexpected Why is my array declaration incorrect? Is the guide just wrong? I know I can use: declare -a ARRAY and then append to it, but I like the idea of using a one-liner wherever possible. Thanks,
Does bash and sh execute a script differently? I executed a shell script with both bash and sh, and got the same output. So what is the difference? Also, when you just run ./executable, does it use bash or sh?