Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The new PhotoUpLink for iPhone uploads true Tumblr photosets. It is a free download from the App Store at <a href="http://uplink.to/5o" rel="nofollow">http://uplink.to/5o</a> example photosets at <a href="http://photouplink.tumblr.com" rel="nofollow">http://photouplink.tumblr.com</a></p> <p>The Tumblr uploader is based on @VictorVanHee's epic. I did optimize the code by switching to straight C for the NSData stringWithoutURLEncoding subroutine:</p> <pre><code>- (NSString *) stringWithoutURLEncoding { NSString *hexDataDesc = [self description]; hexDataDesc = [[hexDataDesc stringByTrimmingCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@"&lt;&gt;"]] stringByReplacingOccurrencesOfString:@" " withString:@""]; int hlen = [hexDataDesc length]; NSString *hexDataDescU = [hexDataDesc uppercaseString]; const char *hexcString = [hexDataDescU cStringUsingEncoding:NSASCIIStringEncoding]; char *newStringC = malloc(hlen *3); memset(newStringC, 0, hlen *3); int xC= 0, upd = 3000, value = 0; char *componentC = malloc(5); // = "XX"; componentC[2] = 0; const char *px = "%x"; char ptc = '%'; for (int x=0; x&lt;hlen; x+=2) { componentC[0] = hexcString[x]; componentC[1] = hexcString[x+1]; value = 0; sscanf(componentC, px, &amp;value); if ((value &lt;=46 &amp;&amp; value &gt;= 45) || (value &lt;=57 &amp;&amp; value &gt;= 48) || (value &lt;=90 &amp;&amp; value &gt;= 65) || (value == 95) || (value &lt;=122 &amp;&amp; value &gt;= 97)) //48-57, 65-90, 97-122 { newStringC[xC++] = (char)value; } else { newStringC[xC++] = ptc; newStringC[xC++] = (char)componentC[0]; newStringC[xC++] = (char)componentC[1]; } } NSString *newString = [NSString stringWithCString:newStringC encoding:NSASCIIStringEncoding]; NSString *aNewString = [newString stringByReplacingOccurrencesOfString:@"%20" withString:@"+"]; free (newStringC); free (componentC); return aNewString; } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload