I have parsed a txt file and as a result I have now a String str = "33 00 9D F2 C9 59 02 0A 00 00 CB 08 01 01 03 01 43 97 B1 02 9D F2 C9 59 1C 01 04 00 10 00 00 16 03 80 05 00 19 00 00 00 4D 00 06 00 45 00 5A A0 47 3E A7 04 D5 08 00 00 00"  now I do str.split(" ") which gives me a String[] containing each of those values from the string. How can I translate each of those 2 char strings to bytes without changing their values?  So basically how to do String[] = {"33", "00", "9D"....} -&gt; byte[] = {33, 00, 9D}?
I am looking for a way to convert a long string (from a dump), that represents hex values into a byte array.  I couldn't have phrased it better than the person that posted .  But to keep it original, I'll phrase it my own way: suppose I have a string "00A0BF" that I would like interpreted as the  byte[] {0x00,0xA0,0xBf}   what should I do?  I am a Java novice and ended up using BigInteger and watching out for leading hex zeros. But I think it is ugly and I am sure I am missing something simple.
How do I find out which folder an app is in in iOS 11? In older versions of iOS, if I searched for an app with Spotlight, it would tell me which folder the app was in. (E.g., this feature still works on my iPad, which is running iOS 9, but not on my iPod Touch, which is running iOS 11.)  This feature seems to have been removed at some point. When I search for an app under iOS 11 using Spotlight, it will find the app and let me run it, but it doesn't tell me which folder it is in.  How can I find out which folder an app is in now? So to help prevent brute force attacks against my phpmyadmin install I've configured nginx to require HTTP Basic Auth (extra username and password) and then the requests need to come from a whitelisted IP Address. However the IP Address whitelist works fine if I run  however without adding the extra .php block I could load  without my IP being whitelisted. This issue doesn't affect the HTTP Basic Auth. Is there a reason this happens? Anyway to get around having to add extra .php blocks? A copy of the config area for phpmyadmin is below.  # Setup and secure phpMyAdmin location /phpmyadmin/ {   allow 1.2.3.4;   deny all;   auth_basic "phpMyAdmin - HTTP Basic Login";       auth_basic_user_file /etc/nginx/pma_pass;     location ~ \.php$ {     include snippets/fastcgi-php.conf;             fastcgi_pass unix:/run/php/php7.0-fpm.sock;     allow 1.2.3.4;     deny all;     } } How to group distinct values from a list using odata rest api Scale and Rotate Stopped Working [2.8] Most of us have seen on the profile page a loss of reputation citing as a reason "User was removed". This reason comes with the useful link:  which explains (emphasis mine):     This message means that a user who voted for one of your posts had their account deleted (either by request or due to violating the network's terms of service). As a result, all of their votes were removed, and the reputation you gained or lost from them was undone. The resultant reputation change could be any amount; it could even be a reputation gain if enough of the removed votes were downvotes. All the reputation changes from a single user's deletion are rolled into a single event in the reputation page labelled "User was removed".      This removal occurs whenever a user is deleted, unless that user had a very high reputation score. Because high-reputation users have usually cast a great many votes, removing all of them could be that much more disruptive to other users. In such cases, the staff use a special deletion that preserves the votes, resulting in no reputation change for those who had been voted on by that user.   However, I have got recently such a message on one of beta sites, where I have no posts. Here is  on that site. As you can see, I have only got points from association bonus,  and the last event in my reputation history is the reputation loss with the message 'User was removed'. (Notice that the post, where I made suggested edit, was not deleted. And the users who approved the posts are Community♦ and one another user, who did not delete their account.)  You can also see from  on that particular site that I have posted no questions/answers there so far. Which means there are no votes on my posts which could have been removed.     Why this did happen? How can I lose reputation points in this way if I have never made a post on that site?   I am not sure if this is a . (Feel free to remove the tag if it does not fit the question.) (EDIT: The answer and the comments posted so far indicate, that it is not a bug, so I have removed the tag from the question.) But if there is some reason why reputation posts can be lost even without having some posts and actual votes on the posts, then the description of "User was removed" seems to be a bit imprecise. (Of course, if it is a very rare edge case, it is probably not that important to have it included in the explanation.)    Just a short disclaimer: I do not care that much for the 2 points I lost. (Obviously, it would be very silly to make a fuss just for 2 points, and even more on a site which I do not frequent that much.) But if this could be indication of some hidden bug, it might be interesting to know more about this.    I have also noticed two related questions       In both cases in some answers or in comments as a possible explanation was given that probably a post, where a suggested edit was made, has been deleted. As you can see from the links I, this is not the case here. If you activated a free upgrade to Windows 10 or bought and activated   Windows 10 from the Microsoft Store, you have a digital license for   your device. This means you can reinstall the same edition of Windows   10 that your device has a digital license for without entering a   product key. During reinstallation, if you’re asked to enter a product   key, you can skip this step. Windows 10 will automatically activate   online after the installation is complete.   source:   Does MS digital license 'fingerprint' hardware information  during the free upgrade / activation and store it (at Microsoft) , so that the next re-install queries MS for the fingerprint and activates Windows 10?  Thought the disk drive may change, I expect that none of the other fingerprinted hardware will change. I added two planes in Cycles with Image Texture in png with some transparency. I covered one by the other but transparency doesn't work, I mean it is impossible to see the one which is under despite transparency in the one which is above. What could be the problem? Does the scientific community consider the Loschmidt paradox resolved? If so what is the resolution? Does anyone know of any interesting subsets of the Cantor set? When I first started thinking about this, I thought that since the Cantor set $C$ is the intersection of disjoint unions of closed sets, those particular closed sets would be subsets of $C$. Those sets, however, happen to be intervals! The Cantor set contains no isolated points nor (open) intervals, so then what subsets does it contain besides $\varnothing$ and itself? Which is faster in Python: x**.5 or math.sqrt(x)? I've been wondering this for some time. As the title say, which is faster, the actual function or simply raising to the half power?  UPDATE  This is not a matter of premature optimization. This is simply a question of how the underlying code actually works. What is the theory of how Python code works?  I sent Guido van Rossum an email cause I really wanted to know the differences in these methods.  My email:     There are at least 3 ways to do a square root in Python: math.sqrt, the   '**' operator and pow(x,.5).  I'm just curious as to the differences in   the implementation of each of these.  When it comes to efficiency which   is better?   His response:     pow and ** are equivalent; math.sqrt doesn't work for complex numbers,   and links to the C  sqrt() function. As to which one is   faster, I have no idea... Efficient computation of $\sum_{k=1}^n \left\lfloor \frac{n}{k}\right\rfloor$ I realize that there is probably not a closed form, but is there an efficient way to calculate the following expression?  $$\sum_{k=1}^n \left\lfloor \frac{n}{k}\right\rfloor$$  I've noticed $$\sum_{k=1}^n \left\lfloor \frac{n}{k}\right\rfloor = \left\lfloor\frac{1}{2}\sum_{k=1}^{\left\lfloor\frac{n}{2}\right\rfloor} \left\lfloor\frac{n}{k}\right\rfloor\right\rfloor + \sum_{k=1,\ odd(k)}^n \left\lfloor \frac{n}{k}\right\rfloor$$  But I can't see an easy way to let the second term enter in a recursion. Bonferroni adjustment in SPSS - what does it do? Do you get Hex Warrior's Cha bonus with a two-handed Pact Weapon? Hex Warrior says:     you can touch one weapon with which you are proficient and that lacks the two-handed quality. When you attack with that weapon you can use your Charisma for attack and damage rolls.   later the ability says:     This benefit extends to every weapon conjured with the Pact of Blades feature, no matter the type.   (emphasis mine)  Does this allow me to use my charisma with 2 handed weapons(provided it is my Pact Weapon and my Hex Warrior Blade)?  This question is not the same as . That one is asking how many weapons, I'm asking if type means 2 handed or something else(Slashing or Ranged for examples). I cannot make xmodmap run on login in Ubuntu 13.04. I have searched around, including in askubuntu and all answers I found do not work.  I have a file named .Xmodmap in my home folder which contains the desired mappings. If I run it manually it works fine, so there is no error there. In order to make it run on startup, I have tried:     Using various .xinitrc containing one of the following commands:      xmodmap .Xmodmap xmodmap ~/.Xmodmap   /usr/bin/xmodmap /home/NAME/.Xmodmap if [ -s ~/.Xmodmap ]; then xmodmap ~/.Xmodmap fi  Using .Xresources instead of .xinitrc with the same variations. Setting it as a startup application.   None of the above works in Ubuntu 13.04 (64-bit). I also saw a few ideas about globally changing the keyboard mappings, but most of them were not applicable in Ubuntu 13.04 (i.e. the corresponding files did not exist where specified) and I prefer not to touch the global settings anyway. Prevent users from submitting a form by hitting Enter Does option "-h" for "ls" display size in MB or MiB and is it consistent over Unix-based systems? Automatically show connected mass storage devices on Windows desktop Read two column CSV as dict with 1st column as key How to escape text for regular expression in Java Consider I have N dynamic points on my Scene, I would like to "frame" all them, with my Camera.    How can i calculate (at runtime) Vector3 Position to correctly frame all my scene ?   This is my idea:    Calculate Avarage for all my points  Move my Camera "up" to correctly "frame" all my points  (i don't know how) Use Unity LookAt(myAvaragePoint)   Thanks