Coder Social home page Coder Social logo

couchbaselabs / mini-hacks Goto Github PK

View Code? Open in Web Editor NEW
137.0 137.0 55.0 34.18 MB

A fun and quick way to discover the beauty of Couchbase Mobile in real apps.

Home Page: http://developer.couchbase.com/mobile

License: MIT License

Java 42.33% Objective-C 8.35% Shell 1.40% Swift 18.16% C# 21.82% Batchfile 0.38% Python 0.22% HTML 0.10% JavaScript 6.33% Go 0.61% C 0.13% Ruby 0.18%

mini-hacks's People

Contributors

borrrden avatar elements-of-boredom avatar ingenthr avatar jamesnocentini avatar janhoffmann avatar nraboy avatar pasin avatar tleyden avatar waynecarter avatar williamhoang avatar zgramana avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mini-hacks's Issues

code doesn't match the README.md? can't run without editing

Reading the android README.md, it seems that I should just be able to run after importing the project, but I cannot as of commit ecdcc1.

MainActivity.java has an OOTB syntax error on line 88:

    //Step 1 - created 'startCBLite' method
    ...{
        //Step 2 - Get reference to database object

        //Step 3 - Create Index to allow for Fast Queries

    }

Unless I misunderstand the Setup > Verify step, I think I should be able to run this without changing things.

platform should be detected automatically

At Y-Gen Hackathon, the participant tried to mini-hacks for Android on his Windows platform. Then we spent long time to figure out that we should change platform to "windows".

It is ideal if build tool detects platform and automatically set appropriate platform.

code in swift readme will not compile

I'm not sure if its due to Swift 1.2 however in step 12 the below code results in "Cannot assign to the result of this expression"
rev["check"] = !wasChecked
I believe rev.properties["check"] = !wasChecked is either what was meant to be, or now needs to be.

Also in step 13, when properties is declared it needs to be explicitly declared as a Dictionary or by default its created as NSDictionary and requires casting when passed into doc.putProperties

Sync Gateway - Config File

For:
https://github.com/couchbaselabs/mini-hacks/tree/tutorial/android-fast-iterations/android-fast-iteration

Unclear why am I doing this and where am I suppose to execute this.


You can find the Sync Gateway binary in the bin folder and examples of configuration files in the examples folder. Copy the basic-walrus-bucket.json file to the root of your project:

$ cp /Downloads/couchbase-sync-gateway/examples/basic-walrus-bucket.json /path/to/proj/sync-gateway-config.json

gradle start of sync-gateway fails on Windows/Ubuntu, prevents building

The recent change with adding gradle starting sync-gateway failed when I was running an event where some attendees were trying the Android mini-hack. Users on Windows and Ubuntu couldn't build the project since the sync-gateway built in download/run would fail. I know the build file seems like it shouldn't do this, but it does. Was it tested on those platforms?

attach Couchbase Lite javadoc/sources in default project

I had a reason to add some addtional logging messages, and I found the Log.e() and friends in the MainActivity class, but neither javadoc or code are attached so I'm pretty much guessing at the API. Specifically, the TAG.

This also hampers other grokking of the API, since I can't just hover or command-click on a method to see what it does. For example, I can't click through to see what methods there are on Manager or what overloads of getDatabase() may exist.

I didn't find it here either:
http://developer.couchbase.com/mobile/develop/references/couchbase-lite/couchbase-lite/index.html

I'm not sure how hard it is, but it'd be a useful enhancement to have the javadoc or sources attached. I know this follows the android.util.Log class, but since it's pointing to our own com.couchbase.lite.util, it's up to us to link the javadoc.

Perhaps this is actually a bug? I don't actually see a good reason for us to be using a Couchbase extended class for logging in a sample app over the canonical logging methods.

Add a p2p mini-hack

As a mobile developer, I want to complete a 20-30 mini-hack so that I can quickly understand the central concepts and basic techniques required to build a Couchbase Mobile p2p app.

Requirements:

  • Simple peer discovery and authentication mechanism.
  • Demonstrate use of filter functions to only replicate a subset of data.
  • Demonstrate simple throttling to limit replication to one sync peer at a time.

Checked List items disappear when an item inside the list is deleted.

Issue found in kitchen-sync android version.

While the application opens up and the list items are displayed on the UI.

Say I start with four items in the list (the list in general may have n items).

I select say two items using their respective check boxes, as soon as I long press any other list item and confirm the deletion of the list item by pressing the yes in the dialog box that subsequently appears, all the checked items are unchecked.

Attached below are the snapshots of the issue:-

  1. Starts syncing - (starts with 4 items in the list initially)
    startssyncing
  2. Two items inside the list are selected.
    twoitemsselected
  3. Fourth item long pressed and confirmed deleted -
    fourthitemlongpressed
  4. Fourth item deleted, lost the checked list items -
    checkeditemslost

Thank you. There is no additional log trace generated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.