Dragma

Members
  • Content count

    54
  • Joined

  • Last visited

  • Days Won

    2

Dragma last won the day on March 8 2018

Dragma had the most liked content!

About Dragma

  • Rank
    Level 3 Stud

Recent Profile Visitors

611 profile views
  1. Dragma

    Reinstructable in production.

    Thanks. Currently doing a UI redesign as I found having an item a row a bit tedious to scroll through the first week I used it seriously (non testing). I am hoping to have that out in a few weeks.
  2. Dragma

    Reinstructable in production.

    Whew, it has been a long road, but the latest mile stone is here, a fully stable working version of the first phase of Rebrickable has launched. You may find it here: https://play.google.com/store/apps/details?id=com.coding.dragmas.reinstructable and a page for it here: https://www.facebook.com/Reinstructable There is more to come, much more. I just wanted to get this out before I go to bed.
  3. Dragma

    Not receiving full JSON set inventories from API?

    yep, just keep on pulling till the next param gives you a null value. So similar to this (it is essentially how I do it) while (Next != null) { url = Next Result = API_Call(url) ...Process the result Next = Result.Next } Basic psudo code, but you should get the idea, and this will work no matter how small the page size gets.
  4. Dragma

    Reinstructable v1.3 in Open Beta

    Well, looks like I may have bitten off much more then I can chew at this time. Testing was going fine but then I got the bright idea of loading my full collection and the parts, needless to say the app is now bogged down and runs horribly slow. I gots alot more to learn about SQLite on android. As such I have closed down Beta testing (will impact maybe one person) until I can get this running at a satisfactory speed.
  5. Dragma

    Set 7907-1

    The Advent calendar 7907-1 Has one of its sub sets in the main set. Also is missing a pic for one of the days.
  6. Never mind, seems I was using the wrong password, carry on.
  7. I created a new user dragmasoft to test my syncing code, but when I attempt to connect to it, it gives me a 403 error This is from the API page. Is there a time limit that needs to pass? My main account has no problems.
  8. Dragma

    Scissor Lift help

    I was hoping for something less destructive and permanent. ah well.
  9. I know how to make a scissor lift (criss cross technic beams or bricks using pins or axles) my question is how to do one using just the thin liftarms so it fits in a 1 stud wide space. I have not found any connectors (axles or pins) that will work
  10. Dragma

    Bricks Quick Sort

    I may have to steal that look. Thanks.
  11. Thanks for pointing this out. I did see there is a property "page_size". so the CURL might be something like: curl -X GET --header 'Accept: application/json' --header 'Authorization: key {MyKey}' 'https://rebrickable.com/api/v3/lego/sets/3731-1/parts/?page_size=1000' Looks like I have more editing to do on my app. Luckly I only currently have 4 users.
  12. Dragma

    POST /api/v3/users/_token/ in Android

    Finally got it, sheesh I did not have this much trouble doing it in c#. Anyways if anyone else has the problem: String postData = "username=" + URLEncoder.encode ("*******@***.***") + "&password=" + URLEncoder.encode ("********"); URL url = new URL("https://rebrickable.com/api/v3/users/_token/?key={MyKey}"); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setDoInput(true); conn.setDoOutput(true); conn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); conn.setRequestProperty("Accept", "application/json"); conn.setRequestMethod("POST"); // Write body OutputStream output = conn.getOutputStream(); output.write(postData.getBytes()); int statusCode = conn.getResponseCode(); if (statusCode == 200) { InputStream inputStream = new BufferedInputStream(conn.getInputStream()); response = convertStreamToString(inputStream); } output.close(); it seems the key for this method is to build a flat string with the properties and their encoded values instead of doing from a Key / encoded Value pair. In this case the postData looks like: username=******%40*****.***&password=*******
  13. Dragma

    Bricks Quick Sort

    Not bad in the UI, and I would like to know how you did your menu (mine is a bit on the plane side). But what is the use of the app? the way you described it is it sounded a bit like the reverse of mine; where set up a collection of sets and import the elements. I thought yours would be: where you enter all the parts you own then figure out what sets can be built. Just a bit confused.
  14. Dragma

    Bricks Quick Sort

    I would say no, unless you have an android emulator on your PC.
  15. Dragma

    Bricks Quick Sort

    used: WT0H0EJGLK360VE58SXFMNX