How do I convert a Swift Array to a String?

I know how to programmatically do it, but I’m sure there’s a built-in way…

Every language I’ve used has some sort of default textual representation for a collection of objects that it will spit out when you try to concatenate the Array with a string, or pass it to a print() function, etc. Does Apple’s Swift language have a built-in way of easily turning an Array into a String, or do we always have to be explicit when stringifying an array?

How do I convert a Swift Array to a String?

read more

How To change "Tags" in wp-admin menu, page title, & posts editor

In the wp-admin WordPress backend under the Posts menu there are default menus for Category and Tags. I want rename “Tags” something else. I already know how to do it in the menu, but how do you change it where it displays as a title on the Tags page as well as in the right side widget area in the post editor?

Picture illustrates the areas in which the Tag label is displayed and needs to be adjusted..

enter image description here

enter image description here

How To change "Tags" in wp-admin menu, page title, & posts editor

read more

How can I shuffle bits efficiently?

I need to shuffle a 16 bit unsigned integer in a way that the even indexes land in the lower byte, and the odd indexes land in the upper byte.

fedcba98 76543210 (contiguously numbered)

fdb97531 eca86420 (even and odd separated)

My code looks like this at the moment:

typedef unsigned short u16;

u16 segregate(u16 x)
    u16 g = (x & 0x0001);
    u16 h = (x & 0x0004) >> 1;
    u16 i = (x & 0x0010) >> 2;
    u16 j = (x & 0x0040) >> 3;
    u16 k = (x & 0x0100) >> 4;
    u16 l = (x & 0x0400) >> 5;
    u16 m = (x & 0x1000) >> 6;
    u16 n = (x & 0x4000) >> 7;

    u16 o = (x & 0x0002) << 7;
    u16 p = (x & 0x0008) << 6;
    u16 q = (x & 0x0020) << 5;
    u16 r = (x & 0x0080) << 4;
    u16 s = (x & 0x0200) << 3;
    u16 t = (x & 0x0800) << 2;
    u16 u = (x & 0x2000) << 1;
    u16 v = (x & 0x8000);

    return g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v;

read more Could not find resource for full path

windows 7(64);




Project Name : hello



public class RESTEasyHelloWorldService {

    public String getMsg(@PathParam("param") String name) {
        String msg = "Rest say: good " + name;
        return msg;


<web-app xmlns:xsi=""
    id="WebApp_ID" version="3.0">


    <!-- Auto scan REST service -->

    <!-- this should be the same URL pattern as the servlet-mapping property -->




read more