Dragma

Members
  • Content Count

    55
  • Joined

  • Last visited

  • Days Won

    3

Dragma last won the day on January 26

Dragma had the most liked content!

About Dragma

  • Rank
    Level 3 Stud

Recent Profile Visitors

698 profile views
  1. Thanks for the comments. I have not abandoned this project, just low energy from dieting and working out. Parts lists would be a great idea. Goes along with being able to generate your own build part outs.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. Never mind, seems I was using the wrong password, carry on.
  8. 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.
  9. I was hoping for something less destructive and permanent. ah well.
  10. 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
  11. I may have to steal that look. Thanks.
  12. 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.
  13. 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=*******
  14. 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.
  15. I would say no, unless you have an android emulator on your PC.