This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 9f094a6f42418cd0c23fabfc7cf0b2e89f3d62d6 Mon Sep 17 00:00:00 2001 | |
From: Jiang Jiang <gzjjgod@gmail.com> | |
Date: Mon, 28 Jul 2014 09:01:02 +0200 | |
Subject: [PATCH] Correct release of retained cff_charsets | |
The cff_charsets we retained is owned and cached by cid_opt struct | |
thus should be released in release_opt() instead of pdf_close_device(). | |
--- | |
texk/dvipdfm-x/ChangeLog | 4 ++++ | |
texk/dvipdfm-x/cid.c | 4 ++++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/texk/dvipdfm-x/cff.c b/texk/dvipdfm-x/cff.c | |
index 596b1cc..5ffedac 100644 | |
--- a/texk/dvipdfm-x/cff.c | |
+++ b/texk/dvipdfm-x/cff.c | |
@@ -1119,7 +1119,7 @@ cff_charsets_lookup_inverse (cff_font *cff, card16 gid) | |
ERROR("Charsets data not available"); | |
} | |
- if (gid == 0) { | |
+ if (gid == 0 || gid - 1 >= cff->charsets->num_entries) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time, threading, processing | |
for cls in [threading.Thread, processing.Process]: | |
start = time.time() | |
for _ in range(1000): | |
child = cls(target=lambda: None) | |
child.start() | |
child.join() | |
print 'Spawning 100 children with %s took %.2fs' % ( | |
cls.__name__, time.time() - start) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 6d8ad63addd9a384c036b6b9a8f6711512534667 Mon Sep 17 00:00:00 2001 | |
From: Jiang Jiang <gzjjgod@gmail.com> | |
Date: Sun, 3 Aug 2014 19:53:45 +0200 | |
Subject: [PATCH 1/2] Fix ToUnicode stream creation for non-subst glyphs | |
non-subst glyphs generated with Unicode -> CID CMap are now properly | |
handled by storing the correct GID used and match them with the CMAP | |
in the fonts. | |
subst glyphs (the ones when OpenType features have been applied) can |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/components/password_manager/core/browser/password_manager.cc b/components/password_manager/core/browser/password_manager.cc | |
index e0b9bee..00d97c2 100644 | |
--- a/components/password_manager/core/browser/password_manager.cc | |
+++ b/components/password_manager/core/browser/password_manager.cc | |
@@ -401,7 +401,8 @@ void PasswordManager::CreatePendingLoginManagers( | |
// relevant tags anyways (7/11/2014). | |
// http://crbug.com/178358 | |
PasswordStore::AuthorizationPromptPolicy prompt_policy = | |
- PasswordStore::DISALLOW_PROMPT; | |
+ iter->scheme == PasswordForm::SCHEME_HTML |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSString *resourcePath = [[NSBundle mainBundle] resourcePath]; | |
NSLog(@"documentsDirectory: %@", resourcePath); | |
NSString *fontPath = [NSString stringWithFormat: @"%@/MinionPro-Regular.otf", resourcePath]; | |
NSURL *fontURL = [NSURL fileURLWithPath: fontPath isDirectory: NO]; | |
fontProvider = CGDataProviderCreateWithURL((CFURLRef) fontURL); | |
NSLog(@"%@, fontProvider = %p", fontURL, fontProvider); | |
mainFont = CGFontCreateWithDataProvider(fontProvider); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ "${ARCHS}" = "armv6" ]; then | |
CODESIGN_ALLOCATE=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate codesign -s "Jjgod Jiang" -f ${TARGET_BUILD_DIR}/${EXECUTABLE_FOLDER_PATH}/${EXECUTABLE_NAME} | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
solutions=[ | |
{ | |
"name": "src", | |
"url": "https://chromium.googlesource.com/chromium/src.git", | |
"managed": False, | |
"deps_file": ".DEPS.git", | |
"custom_deps": { | |
'src/chrome/test/data/extensions/api_test/permissions/nacl_enabled/bin': None, | |
'src/chrome/tools/test/reference_build/chrome_linux': None, | |
'src/chrome/tools/test/reference_build/chrome_mac': None, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
../../content/common/gpu/media/vt_video_decode_accelerator.cc:321:42: error: use of undeclared identifier 'GL_TEXTURE_RECTANGLE_ARB' | |
kNumPictureBuffers, texture_size_, GL_TEXTURE_RECTANGLE_ARB); | |
^ | |
../../content/common/gpu/media/vt_video_decode_accelerator.cc:356:12: error: use of undeclared identifier 'GL_TEXTURE_RECTANGLE_ARB' | |
glEnable(GL_TEXTURE_RECTANGLE_ARB); | |
^ | |
../../content/common/gpu/media/vt_video_decode_accelerator.cc:366:24: error: use of undeclared identifier 'GL_TEXTURE_RECTANGLE_ARB' | |
texture_binder(GL_TEXTURE_RECTANGLE_ARB, texture_ids_[picture_id]); | |
^ | |
../../content/common/gpu/media/vt_video_decode_accelerator.cc:369:9: error: use of undeclared identifier 'GL_TEXTURE_RECTANGLE_ARB' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from urllib2 import Request, urlopen, URLError | |
import json | |
import sys | |
import utm | |
utm_data = utm.from_latlon(59.948845,10.772473) | |
data = "coordinates=(x={0},y={1})&proposals={2}&maxdistance={3}".format(int(utm_data[0]), int(utm_data[1]), 10, 1400) | |
request = Request('http://reisapi.ruter.no/Place/GetClosestStops?{0}'.format(data)) | |