yashsingh1/xdaforums huggingface dataset:
[Pebble] pebblemike:
That's good to know, John,

Since the first 3 tasks of my prototype will get me to usable JS code for my integrated app, I'm not too concerned, even if it gets bundled and distributed.

But I thought that published/ready meant that Android uses would be able to download it immediately. I wouldn't want to publish anything that didn't work.

Mike

UPDATE:

Hey, everybody. Cherie just posted: "Submit your JS changes before 8/19/2014 11:59AM PST"
[Pebble] pebblemike:
AppMessage timing issue

I've just implemented the AppMessage code for my app which requires a rapid sequence of requests and responses that is always kicked off from the javascript side. It's working fine when all my logging is in place, so I disabled the log messages and now it gets stuck after the first round-trip message. The message sequencing for the test is as follows:

JS: send count of 30 to C

C: request item 0 to JS

JS: returns item 0 to C

C: request item 1, then both sides go idle. JS does not get the message.

I found that if I add a psleep(100) before each request in the C code, it will get farther, but will eventually stop at a different item number, for example:

​

Not sure why yet. The send / receive code in the C program is a slight variant of the todo list demo app in the 2.0 sdk, also similar to what's in the weather and quotes apps in the 2.2 sdk.

Code as it stands is checked into github.com/mikebikemusic/FoodTrucks

I'll probably figure it out while out doing errands today.

====================================================

Update: Searching through the pebble forums, I found a few others who had similar problems. One of whom said his solution was in the todo list demo app, without explaining what his fix was, which didn't help me much. There was mention in several places about waiting for an ACK, but never an example. I updated my SDK to 2.4.1, but the demo apps all looked pretty much like mine. So, I re-read the app_message API looking for a way to set a callback for an ACK and noticed that app_message_outbox_begin can return,APP_MSG_BUSY. I then coded a retry/timeout using psleep, and lo and behold, the code is now working. Looking back at the 3 SDK samples they will all do the same dumb thing: throw away the request if it can't be sent immediately.

A little experimentation and measurement and I found that sometimes the wait between outgoing messages to the JS can be up to 1 second. I coded up a stress test that ran for a number of minutes and kept running even through an incoming phone call conversation. I caught this screenshot right before stopping it (over 20,000 round trips without stopping):
[Pebble] pebblemike:
Bogus memory leak report

I started to see the following during testing of starting and stopping my app:

[PHONE] pebble-app.js:?: JS: starting app: 19177E4B-72D9-4B0C-B9D3-497C77488971 Food Trucks

[PHONE] pebble-app.js:?: app is ready: 1

[INFO] ocess_manager.c:291: Heap Usage for App <Food Truck: Total Size <13348B> Used <5692B> Still allocated <0B>

[PHONE] pebble-app.js:?: JS: stopping app: 19177E4B-72D9-4B0C-B9D3-497C77488971 Food Trucks

[PHONE] pebble-app.js:?: JS: starting app: 19177E4B-72D9-4B0C-B9D3-497C77488971 Food Trucks

[PHONE] pebble-app.js:?: app is ready: 1

[INFO] ocess_manager.c:291: Heap Usage for App <Food Truck: Total Size <13348B> Used <5248B> Still allocated <42949

[PHONE] pebble-app.js:?: JS: stopping app: 19177E4B-72D9-4B0C-B9D3-497C77488971 Food Trucks

[PHONE] pebble-app.js:?: JS: starting app: 19177E4B-72D9-4B0C-B9D3-497C77488971 Food Trucks

[PHONE] pebble-app.js:?: app is ready: 1

[INFO] ocess_manager.c:291: Heap Usage for App <Food Truck: Total Size <13348B> Used <5692B> Still allocated <0B>

[PHONE] pebble-app.js:?: JS: stopping app: 19177E4B-72D9-4B0C-B9D3-497C77488971 Food Trucks

[PHONE] pebble-app.js:?: JS: starting app: 19177E4B-72D9-4B0C-B9D3-497C77488971 Food Trucks

[PHONE] pebble-app.js:?: app is ready: 1

[INFO] ocess_manager.c:291: Heap Usage for App <Food Truck: Total Size <13348B> Used <5692B> Still allocated <0B>

[PHONE] pebble-app.js:?: JS: stopping app: 19177E4B-72D9-4B0C-B9D3-497C77488971 Food Trucks

Since only 24kb is available, 42949 makes no sense. It reports no leaks if my code also creates/destroys the scrolling window. It's almost as if I need to do a minimum amount of memory allocation before the leak detector works properly.
[Pebble] pebblemike:
Release Notes

0.1 Aug 17 10 pm Published first beta to allow a working pebble-js-app.js to be bundled and to solicit user beta testing.

0.2 Aug 19 9:30 am Watch icon added. Changed startup message. Pre-build scroll window and its layers at startup. Bug fixes: Prevent multiple scroll windows when repeating select button quickly. Reset scroll to top when selecting details. Clear prior city's list when switching cities.

0.3 Aug 21 7:30 am Built javascript driven testing of C app. Used it to debug malloc/free code. The Javascript tests exercise the app with unrealistically large strings and large numbers of trucks coming from the API. In examining the API, I found that the developer added 5 new cities, so I added them also to the configuration screen. I will be doing live testing for all the cities before publishing an official 1.0 release.

Update: Aug 21 7:30 pm Of the 5 new cities I tested, only 1 had active trucks, so I removed the other 4 from the drop down. Fortunately, this is a simple server-side fix to hide the others until they are ready.
[Pebble] pebblemike:
malloc/free challenge/solution

I ran into a little snag (which I eventually solved) during the conversion from using a fixed size array for the menu titles and subtitles to allocating them on the fly with malloc/free. I wanted to change the pointer directly in the menu_items.title without having to allocate a separate array of pointers. Problem was that title and subtitle are declared const, so free(menu_items.title) gets a compiler error.

I discovered that reinterpret_cast<> and const_cast<> are not supported by the compiler. Eventually I tried a simple (void *) cast, which did the trick. Then I refactored the code so that one bottleneck method took care of the free function and updating the pointer. I'm pretty proud of that code change. It's aware of the two string pointers that are not malloc'ed and provides an interface that prevents accidental leaks when my code dynamically changes the menu list.
[Pebble] pebblemike:
Comments about developing using cloudpebble.com

I started writing pebble apps using cloudpebble soon after it first came out. I didn't have to install a dev system at home and I could make a quick bug fix at work, if necessary. I've since installed the development tools at home and used that primarily. I decided to give cloudpebble a second look for this competition. It's progressed a lot, but there are still some things on my wish list.

I find it a bit inconvenient when I have compile errors that I cannot see unless I open a second browser window to view source and errors side by side. A single button to flip back and forth between the compile logs and the current source code would really help.

Cloudpebble does not allow me to check in files unrelated to compilation, such as the configuration html. At one point, I tried to commit new code and I got an error (with no error message, just the word error). I figured out it was because of updates I had done to files unrelated to the compilation, but the only choice I had might have replaced all the new code I wrote with the previous commit. So I made a backup of my changes, updated the project and pasted back the changes.

Finally, as I had mentioned at the start of the challenge, the new code generation feature did not help me because I needed layers that were not supported yet. I ended up creating those layers while I was trying to track down the false memory leak report. I like doing that because now, if the app runs out of memory due to too many trucks in the menu, it won't fail to create the scroll layer for those that made it into the menu. Hmm, I need to put together a test case for that...
[Pebble] pebblemike:
Feedback Anyone?

Android users can download my app from the Pebble store.

iOS users can get an advance copy here. The easiest way to load on iOS is to put the pbw file on your dropbox and, from dropbox, select the file and Open In Pebble.

Use the Reviews, Feature Requests, and Bug Reports tabs at the top of this development page. Also, search for "Food" in the Pebble store to find my app and tap the heart button on it. I see 5 already!
[Pebble] pebblemike:
Adding another city

Looks like several more city's data has come online. I've added Hamilton (Near Toronto), Surrey, and Kitchener-Waterloo to the configuration. The other new city, Columbus, Ohio just has a few trucks using streetfoodapp.com. Only 2 of the 20 trucks registered with streetfoodapp.com in Columbus are promoting themselves this way.

If you live in Columbus, Surrey, or Kitchener-Waterloo that list just a few trucks, go tell your favorite food truck vendors to start publishing their schedule on streetfoodapp.com. If you live in a city not supported, click here to request your city
[Pebble] pebblemike:
Feature creep vs planned development

It may seem like I've stopped working on my app now that it's feature complete and stable, but that's not entirely true. Yes, I've requested and am awaiting feedback from users, and I'm especially interested in seeing what happens when iOS users can see the app on their app store. That should happen any day now, since I met the Aug 19 deadline for JS bundling. I needed to publish another bug fix 2 days later, and one of the fixes I planned would have required a minor change to my JS. That JS fix was for an edge case that could only occur with the artifical data I supplied as a unit test that had a string size much larger than any in real data. If I updated my JS, iOS users would be delayed getting the other C code fixes. So, I chose to ship 0.3 with the original JS. It is interesting to note that when I reverted my JS manually, and published it, the dev-portal considered it a different version, so I pulled that release and reverted the JS to what I checked in to github. It turned out to be a whitespace difference. So, word of caution, the JS is compared byte by byte (or maybe a checksum).

Meanwhile, I have considered a few improvements. And I've experimented with one of them, which required further JS changes. The change will eventually go to the master branch, but rather than providing an improvement that nobody really cares or needs, I'd rather wait for feedback and act on that first, rather than announce future planned improvements. As features creep in, it's easy for the app to become more complex to use.

I'll give you one example. I'm on the west coast and when I look at the times reported for the Boston food trucks, the times are off by 3 hours. Should I fix it? Some would say, of course. But think about it. Are the real users who use this app going to be in a different time zone when they need to go out to lunch and open my app? Extremely unlikely. Both JS and the pebble watch API fall flat on their face when it comes to determining time zone differences, both dealing only with local time. I know how to compute that offset by calling another TZ API like I did for my Any Time Zone app. What I chose to do instead was contact the Food Truck API developer suggesting he provide all API users with a TZ offset in the data response. He has agreed to do so in a future API version. This is how planned development should work.

Mike
[Pebble] pebblemike:
1.0 released

I posted my 1.0 build last night. It is available in both the Android and iOS Pebble App Stores for download.
[Android Q&A, Help & Troubleshooting] shoppy:
Hi all,

I have my Onda V972 for about a year now and it works great but since yesterday I cannot make new folders or copy other folders to my internal sdcard.

I was working with "Ofline Browser" and on a given moment he just stopped copying webpages and said "Cannot find .....".

I checked the r/w permissions with ES File Explorer and all is well.

I can make a new file or copy one to an existing folder but I cannot make new folders or subfolders.

Anyone knows how to fix this?

John

specs:

Onda V972 Core 4

4.2.2

Firmware v3.2.1_v2

Kernel 3.3.0 Lgm@SzExdroid5 #1 2013/7/25
[Android Q&A, Help & Troubleshooting] UltraWelfare:
Have you tried any other file explorer?

Or trying to make new folders from your PC?
[Android Q&A, Help & Troubleshooting] shoppy:
Yes, I tried several file managers.

I can make new folders on it from the PC.

Just to be clear: It is about my internal sdcard, my external sdcard works fine!

John
[Android Q&A, Help & Troubleshooting] UltraWelfare:
Are you sure you are not on KitKat version?
[Android Q&A, Help & Troubleshooting] shoppy:
Yes I am sure, it just happened without a reason.

The stupid thing is that everything works fine but when an app tries to make a new folder or subfolder it says that it can't find the file.

Thats because he couldn't make the folder.

Strange huh?
[Android Q&A, Help & Troubleshooting] UltraWelfare:
Try to Factory data reset
[Android Q&A, Help & Troubleshooting] shoppy:
I was considering this but I couldn't make a copy or backup from this disk so I would loose everything on it.

Finally after a few days trying I managed to connect to the PC and I simply repaired the disk from within Explorer.

All works well again now.

Thanks for the help and thinking.
[Android Q&A, Help & Troubleshooting] UltraWelfare:
If only you could press the "Thanks" button located under my post I would be better than happy :D.
[G3 Q&A, Help & Troubleshooting] Toshiba.bosch:
Friends,

I tried using the #3845#*855# and pressed DEVICE TEST and my LG G3 32GB restarted. It just boots up in miniOS mode and the screen is blank..

I tried rebooting and pressing the POWER AND volume UP button together --- RESULT - NO EFFECT

I tried rebooting and pressing the POWER AND volume DOWN button together --- RESULT - NO EFFECT

Any help is very much appreciated.

Thanks and Regards
[G3 Q&A, Help & Troubleshooting] suljo94:
see here
[G3 Q&A, Help & Troubleshooting] martinkerr:
THIS TRIC'LL DO IT, BUDDY..... SUGGEST NEXT TIME YOUSTAY CLEAR OF THE HIDDEN MENU THOUGH!!! UNFORTUNATELY YOU'LL LOSE ALL OF YOUR DATA..NO JUMPING THIS.

1. Start your phone up by holding onto both the power button and the buttom volume key. When the logo pops up, let go for a second, and hold onto both buttons again. This should bring up the option to reset your phone. Agree to both prompts.

2. You should be on a new screen. It may warn you not to touch the screen because it is calibrating or testing it. You will have to press OK, and then give it a few seconds to do that bit.

3. The screen should have a list of options at this point (some of which say "+power) on them. If you want to use any of these options, you need to hold the power button, and then press that option on the screen. Press "normal boot (+power)" (don't forget to hold the power button at the same time). This should put your phone back to normal, and set it up again just like it came out of the box.

ENJOY YOUR PHONE BACK
[T-Mobile Samsung Galaxy Note II] XDAKWK:
Hey Guys -

I have a Galaxy Note 2 with T-Mobile, and used to have WiFi Calling and texting prior to getting the ROM flashed. It's really important that I enable it since I moved and get ZERO signal. How do I get it to work now?

I just did a master reset.

Also, when I sell the phone next month, how do I do a reset back to total factory, without the root and Jedi X19 ROM?

Thanks very much.
[T-Mobile LG G3] dhlee528:
I heavily use IM on my phone to talk to friends oversea,

whenever I'm on T-mobile network 4G/4G LTE, phone won't download pictures.

as soon as I connect to Wi-Fi everything downloads very quickly.

it doesn't happen when I browse website or facebook.

I haven't try MMS..

has anyone know how to fix this issue?

it doesn't happen on other carriers, I have friends who are on ATT, Verizon and sprint use same IM and have no problem.

my friend who has T-mobile S3 LTE saids no problem with it..
[General Questions and Answers] tearlach2:
I have a SCS-2U01 which i got from Verizon because I moved and my service sucked. I Have goggled all over looking for an antenna upgrade for it, it uses a little tiny antenna and I imagine it would be greatly improved if I could find an antenna to raise the gain, I don't care about the consequences of increasing my signal such as more people being able to hop on my extender, everyone around here uses US Cellular and I don't care, I want better service.. All I see online are Better GPS antennas that will plug into it, That is not my problem my range extender gets a great GPS signal. I want to expand my CELL service the extender provides, it barely works on the other side of my house.

If no-one knows who sells an antenna upgrade for this device (possibly because it uses a strange connector, I haven't looked), can someone tell me which specific frequencies I need to nail to look for a compatible antenna then make my own connector for it. If it is a multi-Frequency issue I am willing to hack together multiple antennas just like an old TV house antenna, but since I'm only dealing with Verizon's EVDO Rev A and voice signal it should be Verizon's 800MHZ and 1900MHZ bandwidths they use. I'm asking for advice from anyone who has done this or knows about using two separate antennas then putting them together into one coaxial connector (of whatever type connector the extender uses). I know that one coaxial connection can support more than one frequency at a time, my asus router has 3 dual 2.4 and 5ghz antennas with only a coaxial connection per antenna.

To summarize my questions are, 1 is there a high(er) gain unpowered 800/1900 antennas out there (or decently cheap powered ones), 2 are those the only two frequencies I need for Verizon service below LTE (Verizon doesn't sell an LTE extender) or is there third frequency I need to be aware of and 3, does anyone know of an issue with SCS-2U01 that wouldn't allow me to do this. It appears the antenna is removable. Well, let me put it this way, I will remove it one way or another if I find higher gain antennas.

Thanks for any and all advice given, I will greatly appreciate it.
[General Questions and Answers] aicragleon:
antenna

I know this is really late, but I just purchased the

5db Magnetic Mount Antenna with SMA Male connector 690~960 MHz, 1710~2170 MHz, 2500~2700 MHz for LTE, AWS, 4G, 3G, 2G, PCS, GSM etc

from this site:

http://www.maxmost.com/

I was thinking of the 11db Gain Magnetic Mount Antennas Tri-band (800/ 900 / 1800/ 1900 mhz) but the post from here:

http://www.wirelessforums.org/alt-cellular-verizon/verizons-network-extender-96712.html

says this antenna might cause an FCC violation. Plus this antenna is almost 3 feet long so I opted for the 5db antenna that is about 1 foot long. I figured that the frequency has to be around the 800mhz and 1900mhz band since that is what the specs of the scs-2u01 and others say in the specs site: http://www.verizonwireless.com/accessories/samsung-network-extender-scs-2u01/

I tried to use an antenna from an asus router, but that antenna was meant for 2.4ghz and 5ghz so it did not work properly. I will let you know how this antenna does. I was thinking of purchasing a couple of the business model scs-2u3100 and linking them, but this antenna might do the trick, and I already have a working scs-2u01. I tried for a while to get it to work with an asus RT-AC68U, but I could not do it even with all the tricks (DMZ, port forwarding, turning dmsmasq off, disabling SPI, toggling open access and managed access for the extender in verizonwireless.com, setting a static IP address for the extender, changing the static IP address of the extender, and all in 3 different firmwares (latest OEM firmware and latest beta, Merlin's AsusWRT, and DD-WRT )) I finally just replaced the Asus with the Netgear Nighthawk x6. This router is not worth the extra money for me other than the fact that it actually works with the network extender. I thought it might have just been broken for a while, but now I get signal in my house. Every call dropped before I got this working.
[General Questions and Answers] LavaIce:
Was wondering how you guys made out with alternative antennas. Looking at an upgrade myself. Thanks.
[General Questions and Answers] LavaIce:
Just in case there are others that are looking to do this I figured I would post my results as I went and purchased a The Wilson 311125 (formerly 301125), 50 Ohm 12-inch Magnet-Mount Antenna is a multi-band antenna that features up to 6.12 dB of gain, from Amazon and just hooked it up to my SCS-2U01. I went from my LG G3 reporting 1 bar of service in my living room to a consistent 3 bars and the notification bar reports 3G connectivity where it didn't prior.
[General Questions and Answers] jazex2:
That sounds good! What was the connection at the SCS-2U01, i.e. what type of rf connector was it? How difficult was it to detach the existing antenna and attach the 311125?
[General Questions and Answers] tearlach2:
Only 7 years later lol, glad that worked out.. Anyone know about the same info but for the newer 4g or 5g extenders?

My original problem was solved by Wi-Fi Voice on a newer phone.
[G3 Q&A, Help & Troubleshooting] GoldFran1983:
Hi!

I have LG G3 D855 Vodafone ESP with free ROM v10i

Have one problem:

When connect USB LG to PC, dissable (I don´t know like) USBs Mode, only charge,

How fix this optiom to change an other one, options to MTP?

Thanks
[G3 Q&A, Help & Troubleshooting] Chrispy10:
Giving this a bump, as I now have this problem as well. Just today is when this occurred. I've had the LG G3 for about two weeks now and always had the option of switching between full charge mode or MTP, but now I suddenly lost the feature all together. I rooted my phone about a week ago, and made all the changes then. Had the feature all the way up to yesterday and now today I am noticing it is no longer there.

Rebooting the phone doesn't bring it back either. Any ideas?

---------- Post added at 06:46 PM ---------- Previous post was at 06:34 PM ----------

Nevermind! Embarrassing but fixed it. Issue was the USB cable not being plugged all the way in the slot.
[G3 Q&A, Help & Troubleshooting] runesmtr:
Lost USB connection mode Fix

Go to Settings and click on storage and then click on the 3 dots at the top right of your screen then click on USB PC connection click on Media device (MTP) or Send Images (PTP) and that's it you will be fixed :)
[G3 Q&A, Help & Troubleshooting] zach1791:
Except I don't have any dots in that menu :( I upgraded to lollipop so I don't know if that could be the reason why. Any other suggestions? I'm desperate here
[G3 Q&A, Help & Troubleshooting] BWolf56:
Quick google search: http://support.bell.ca/Mobility/Sma...ow_to_change_the_usb_connection_options_on_my

The guy above gave you the solution, whether you are on kk or lollipop, it's still in your settings. Just gotta find it.
[G3 Q&A, Help & Troubleshooting] zach1791:
That would be an easy fix right? It's why I'm asking here. Once I made the mistake and press the charge only option and now it will not allow me to go back and choose any other option such as MTP or PTP. Know any workaround for this?
[G3 Q&A, Help & Troubleshooting] 573v3:
Go into Settings > Apps > Tap "Three Dots" top right > Reset Default Apps > Select Clear on App....
[G3 Q&A, Help & Troubleshooting] zach1791:
Thanks for the reply man. Didn't work though. I cleared every single default setting and app preferences. The problem remains. Funny enough it still persists even after factory resetting.
[G3 Q&A, Help & Troubleshooting] thewall76:
help

hello you managed to solve the problem I also have the same problem just that to me even with charging usb charger
[G3 Q&A, Help & Troubleshooting] zach1791:
Sorry no I haven't. It's really perplexing because I wiped the phone clean (which should have set all settings to default) and yet the problem remains.
[G3 Q&A, Help & Troubleshooting] nippz:
I'm having this problem also.. Been a month I tried all above suggestions but still no fix