Commit Graph

4823 Commits

Author SHA1 Message Date
Bill Thiede 83d2546d21 diskpacked: bug fix walkPack and add test.
Replace reindex.go deleted blob.Ref detection loop with a regexp.
Replace diskpacked.go's isDeletedRef with same regexp.

Add a test that verifies the returned blobs match expectations and verifies
multipack diskpacked works..

Tests fail without the changes to reindex.go.

Change-Id: I332c2c3c8c37ebf262ce95e1ec0628146ab5108e
2014-07-06 22:14:07 -07:00
Brad Fitzpatrick 4ac89ec630 Merge "Clarified use of camtool googinit" 2014-07-05 03:02:58 +00:00
Brad Fitzpatrick cc956829f3 Rename android.go files to androidx.go
Go 1.4 (Go tip currently) defines a new GOOS=android, and a GOOS.go file is ignored on
other operating systems. But these android.go aren't actually meant to be only run on
GOOS=android, since we just build Linux binaries on Android for now.
2014-07-08 11:18:40 -07:00
Robert Kroeger f40e2e6e61 Clarified use of camtool googinit
To avoid user confusion, force camtool googinit use to actually
specify if Google Cloud Storage or Google Drive auth setup is
desired.

Change-Id: I6541b4a589de2dda73b725fcaf7bcdadd3f60b65
2014-07-07 08:33:53 -06:00
Piotr S. Staszewski 24ec41b484 feed importer: meaningful names for permanodes
Instead of spamming with "", "Items" and "feed account" permanodes
use the feed's title to set meaningful titles.

Simplified version.

Change-Id: I2f008a30b48a1376e45cdca8d2dfa8b23bf49f40
2014-07-04 16:53:37 +02:00
Bill Thiede b2f5ff81c1 context: minor typos in documentation.
Learned that cancelled is appropriate for non-US English, but the function is
IsCanceled, so I went with consistency.

Change-Id: If63a8af75338780c2f8e81bf4404fc4b5f852d77
2014-07-03 22:05:16 -07:00
Bill Thiede bf6a89c9ad images: add support for fast jpeg down-sampling.
The new package pkg/images/fastjpeg uses djpeg(1) to quickly
down-sample images at load time as described here:

  http://jpegclub.org/djpeg/

Add benchmark comparing std lib jpeg.Decode and fastjpeg.DecodeDownsample
with a factor of 1, 2, 4, and 8.
Benchmark resizes a 4000x4000 pixel JPEG to 128x128.

Refactor in pkg/images to make images.Decode a little more readable.

Change-Id: I571db1f3c3068f99da4a01ec84fd246ef098a18c
2014-07-03 21:06:06 -07:00
Piotr S. Staszewski 98a73d966d twitter importer: meaningful names for permanodes
Make meaningful titles for created permanodes, simplified.

Change-Id: If0575b5c0ffec037feb8ce74e46f66556c582372
2014-07-03 19:27:44 +02:00
Bill Thiede eb7f66fe28 jpeg: enable images/jpeg imported from Go tip.
Addresses https://camlistore.org/issue/463

Change-Id: Ie7b8f937ded78d95875f4cd13b024d0429136981
2014-07-02 21:22:15 -07:00
Bill Thiede c919f12cf1 jpeg: import images/jpeg from go tip.
Imported @ version:

  parent: 20306:04c9a977b540 tip
   runtime: make runtime·usleep and runtime·osyield callable from cgo callback
  branch: default
  commit: (clean)
  update: (current)

Addresses https://camlistore.org/issue/463

Change-Id: I5a38144cb944f6474085d305f86bd2231d7fb0a2
2014-07-02 21:22:02 -07:00
Brad Fitzpatrick bafc53703d context: don't allow mutating an existing context's HTTP client
Instead, require specifying it when constructing a new context.

Prevents misuse and bugs / data races.

Change-Id: I775e998bf69b9e238ec726c469494c1a65f8f9de
2014-07-02 14:34:24 -07:00
Brad Fitzpatrick 9e20a76c99 Fix Makefile's forcefull target to avoid broken targets.
Change-Id: I43073fec6565d52375367dff108dee1ef25fa13a
2014-07-02 14:33:33 -07:00
Brad Fitzpatrick 208c28ce68 Merge "lock: Merge added FreeBSD support from upstream." 2014-07-02 19:49:24 +00:00
Bill Thiede 9d58809e8f lock: Merge added FreeBSD support from upstream.
Change-Id: I2cb6de1fe32069a675eed405744d632054d67a11
2014-07-04 19:21:02 -07:00
Brad Fitzpatrick a4cb591707 Merge branch 'master' of https://camlistore.googlesource.com/camlistore 2014-07-04 13:03:06 -07:00
Brad Fitzpatrick b7c2417f5d C+A: add Piotr Staszewski (Individual CLA)
Change-Id: I6a15bc42fb81bcb00374eef52409e82b9593da89
2014-07-04 13:02:57 -07:00
mpl cc40a72019 Merge "ui/permanode.js: some clean up" 2014-07-02 20:24:16 +00:00
mpl 37a000e400 ui/permanode.js: some clean up
-removed redundant "gallery" feature (since container aspect does it)
-> allowed to get rid of blob_item_container dependency.

-removed the whole resolvedMetaData business. If one wants to derive
properties (such as the title) from children blobs/permanodes, just
create a new BlobItem for that child and get the properties with
methods on that child.
-> makes for clearer code, and easier to prevent null errors.

-started making use of search session

Change-Id: Ic706c96e1c05ad5489ab4b14ed21e315a557a8a8
2014-07-03 22:42:31 +02:00
Brad Fitzpatrick b8aa2d8fb3 Merge "pkg/osutil: add FreeBSD CPU usage." 2014-07-02 19:49:24 +00:00
Bill Thiede 15efa84eae pkg/osutil: add FreeBSD CPU usage.
Change-Id: Ic2cf8f8e422d2aef8c7c5e217da988d14735a416
2014-07-04 20:00:00 -07:00
Brad Fitzpatrick 02e43fabf6 Merge "diskpacked: use indexKV constant in reindex.go" 2014-07-02 19:49:24 +00:00
Andrew Gerrand 0dbc1aeabe diskpacked: use indexKV constant in reindex.go
Change-Id: I2e9253920567e97906b2020c3a4886d8673ec0e0
2014-07-05 08:27:48 +10:00
Brad Fitzpatrick 0e81a865ed Merge "serverconfig: only add importer when index available" 2014-07-02 19:49:24 +00:00
Andrew Gerrand 594328e21c serverconfig: only add importer when index available
Change-Id: I1142afd0bfa1cf581641b4cd4dac1c9e76e6671a
2014-07-05 08:25:28 +10:00
Brad Fitzpatrick b451e9a165 Merge "Improve documentation of permanode in terms" 2014-07-02 19:49:24 +00:00
Brad Fitzpatrick d208f96dd7 Merge branch 'master' of https://camlistore.googlesource.com/camlistore 2014-07-06 09:50:12 -07:00
Brad Fitzpatrick f5f852d9f6 C+A: add Rob Young (Individual CLA)
Change-Id: I8975bed689150dac4ea5f29c16d0dcd16cc1dd34
2014-07-06 09:50:08 -07:00
Rob Young fccb39c2b1 Improve documentation of permanode in terms
Split the long sentence to make it more immediately obvious that the
permanode is signed by its owner rather than its owner and the search server.

Change-Id: Ia03c3f137cc55f445cfd19713e1421e0035209a2
2014-07-06 17:35:38 +01:00
mpl cc6dc2a3cb Merge "buildbot: be more patient when waiting for camlistored" 2014-07-02 20:24:16 +00:00
mpl c23933efdc buildbot: be more patient when waiting for camlistored
I'm hoping this will help with our first test suite run (Go1) which
is often failing at the test trying to hit http://localhost:3179/ui

Change-Id: I972072ebc27b7a59136a90532000ca7e9d58a471
2014-07-05 18:20:06 +02:00
Aaron Boodman 90cb6a84fb Merge "Replace cam.Nav with cam.NavReact. We weren't using the non-React one anymore." 2014-07-02 19:49:24 +00:00
Aaron Boodman 4009ece74e Replace cam.Nav with cam.NavReact. We weren't using the non-React one anymore.
Change-Id: I9369dda7ed4b9fc45a1fd91ef0c6343f37e3baf5
2014-07-04 21:33:27 -07:00
Aaron Boodman de204ded6a Require date and username before custom rendering Twitter items.
Change-Id: I642ceac6c3ccca18dc32cc092a513604152384cb
2014-07-01 14:23:38 -07:00
Aaron Boodman 5b0cba5b50 Don't custom render a Twitter item with incomplete data.
Change-Id: I03aad6b6f7f4d0b95e79818c0db4765dc09ee253
2014-07-01 14:20:13 -07:00
Brad Fitzpatrick adf538ba7c picasa: fix compilation failure 2014-07-01 11:48:35 -07:00
Brad Fitzpatrick 6fd1550371 picasa: remove useless uplodateDate property
No use storing time.Now().
2014-07-01 11:47:19 -07:00
Aaron Boodman f61d429d32 Merge "Always handle clicks on aspect links in JavaScript." 2014-07-01 18:32:25 +00:00
Aaron Boodman fef60569f4 Always handle clicks on aspect links in JavaScript.
It would be better to support real URLs for these, but I need to
figure out how routing those should work first.

So for now this is maybe less annoying.

Change-Id: I1992d23cb0f94b509f73db23a542b56ca5df7531
2014-07-01 14:51:48 -07:00
tnt 8c6b8614ff updated name in AUTHORS/CONTRIBUTORS
Change-Id: Ic19f455ad4a567977e3f8036c57c2a00a3b0db41
2014-07-01 20:06:55 +02:00
tnt 4ac9938c8b Fixed some formatting functions that were called with invalid number/type of arguments.
Change-Id: I261c6fb732a6cf1e54e01fa3e5388c39c6deb720
2014-07-01 12:48:33 +02:00
Brad Fitzpatrick 289eb1c77c A+C: add Alkaloid (Individual CLA)
Change-Id: I2a76ec646e3197a97589195f81dd203768747e40
2014-06-30 16:47:57 -07:00
Brad Fitzpatrick 5bae132e66 Merge "Fixed wrong calls to formatting functions. E.g: fmt.Println("%s", "hello world") -> fmt.Printf("%s", "hello world")" 2014-06-30 22:33:07 +00:00
tnt 5d8eeb534b Fixed wrong calls to formatting functions.
E.g: fmt.Println("%s", "hello world") -> fmt.Printf("%s", "hello world")

Change-Id: I51c0bd54c14173e074fafd86c83a5287fcdb1520
2014-06-30 22:05:22 +02:00
Aaron Boodman af6e3663e7 Merge "Don't do local navigation if a modifier key is pressed." 2014-06-28 06:54:59 +00:00
Aaron Boodman 6cfd84b278 Don't do local navigation if a modifier key is pressed.
Change-Id: I8e3996628f8c247652c8a51a8bcf602d5bdfef02
2014-06-28 20:00:48 -07:00
Brad Fitzpatrick 8a9ff86371 camget: add -skip_irregular flag for Windows users mostly
Change-Id: I8037d2f6a54e375eeeb7c79ecfedbbeaf547efed
2014-06-27 13:48:05 -07:00
Brad Fitzpatrick f90bf57452 0.8 notes: add debug UI window
Change-Id: I2242037fb0625c608c40a282c93f4646951b8768
2014-06-27 13:33:05 -07:00
mpl a9b25eca93 Merge "importer/picasa: a couple schema changes" 2014-06-26 21:54:16 +00:00
mpl 77c59e97bb importer/picasa: a couple schema changes
-album: removed Name attribute. It seems like a valid entry from the feed
(picago indeed gets value), but it is not referenced anywhere in
https://developers.google.com/picasa-web/docs/2.0/reference and it seems
to have the same value as Title anyway.

-photo: removed broken (and redundant with camliContent if not broken)
camliPath.

-s/ID/picasaId/

Change-Id: I5389d825eae83b7618f282698a43c94be6ca8df3
2014-06-27 19:21:54 +02:00
mpl 24ef842446 Merge "index: fix data race on BlobSource, make it private." 2014-06-26 21:54:16 +00:00