Skip to content

Instantly share code, notes, and snippets.

@gonzalonm
gonzalonm / ObservableListData.java
Last active February 8, 2018 18:21
Retrieve an Observable (including key) using RxFirebaseDatabase
RxFirebaseDatabase
.observeValueEvent(database.getReference("list"))
.map(new Function<DataSnapshot, List<DataEntity>>() {
@Override
public List<DataEntity> apply(@NonNull DataSnapshot parent) throws Exception {
List<DataEntity> list = new ArrayList<>();
for (DataSnapshot item : parent.getChildren()) {
DataEntity entity = new DataEntity();
entity.setEndDate((Integer) item.child("endDate").getValue());
entity.setStartDate((Integer) item.child("startDate").getValue());
@gonzalonm
gonzalonm / EnvInfo.log
Created March 30, 2017 14:17
Information about environment for GC option 'AndroidEnabledSGenConcurrent'
=== Xamarin Studio Community ===
Version 6.2 (build 1829)
Installation UUID: 23bccbc1-24a1-42f4-b80c-1712c6477e8d
Runtime:
Mono 4.8.0 (mono-4.8.0-branch/8f6d0f6) (64-bit)
GTK+ 2.24.23 (Raleigh theme)
Package version: 408000520
@gonzalonm
gonzalonm / HelloTests.log
Last active March 30, 2017 12:11
Hello Tests for EnableSGenConcurrentTests - Passed
#[2017-03-30 09:09:34 -03:00] XQA: /Users/gonzalo/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb devices
#[2017-03-30 09:09:35 -03:00] XQA: /Users/gonzalo/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb devices
#[2017-03-30 09:09:35 -03:00] XQA: /Users/gonzalo/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb devices
#[2017-03-30 09:09:35 -03:00] XQA: /Users/gonzalo/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb devices
#[2017-03-30 09:09:35 -03:00] XQA: /Users/gonzalo/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb devices
#[2017-03-30 09:09:35 -03:00] XQA_INFO: The current executing assembly is located at: /Users/gonzalo/git/Xamarin/QualityAssurance/Automation/XQA/XQA.Android/bin/Debug/XQA.Core.dll
#[2017-03-30 09:09:35 -03:00] XQA_INFO: The current executing assembly is located at: /Users/gonzalo/git/Xamarin/QualityAssurance/Automation/XQA/XQA.Android/bin/Debug/XQA.Core.dll
#[2017-03-30 09:09:35 -03:00] XQA_INFO: The current ex
=== Xamarin Studio Community ===
Version 6.2 (build 1730)
Installation UUID: 23bccbc1-24a1-42f4-b80c-1712c6477e8d
Runtime:
Mono 4.6.2 (mono-4.6.0-branch/ac9e222) (64-bit)
GTK+ 2.24.23 (Raleigh theme)
Package version: 406020016
ASP.NET and Web Tools 2015.1 (Beta8)
ASP.NET Web Frameworks and Tools 2012.2 4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563
ASP.NET Web Frameworks and Tools 2013 5.2.40314.0
For additional information, visit http://www.asp.net/
Common Azure Tools 1.8
Microsoft Visual Studio Community 2015
Version 14.0.25425.01 Update 3
Microsoft .NET Framework
Version 4.6.01586
Installed Version: Community
Visual Basic 2015 00322-20000-00000-AA040
Microsoft Visual Basic 2015
=== Xamarin Studio Community ===
Version 6.1.3 (build 19)
Installation UUID: 23bccbc1-24a1-42f4-b80c-1712c6477e8d
Runtime:
Mono 4.6.2 (mono-4.6.0-branch/ac9e222) (64-bit)
GTK+ 2.24.23 (Raleigh theme)
Package version: 406020016
ITs-MacBook-Pro:WorkingWithStyles gonzalo$ /Applications/Xamarin\ Studio.app/Contents/MacOS/mdtool -v build
Xamarin Studio Build Tool
ERROR [2017-01-06 17:01:35Z]: Another XS process is sending telemetry packets
System.IO.IOException: Lock violation on path /Users/gonzalo/Library/Caches/Xamarin/AppInsights/ad58ff9da41d9e46a009b5b523971c10f8ed4e28/storage-lock
at System.IO.FileStream.Lock (System.Int64 position, System.Int64 length) [0x00056] in /private/tmp/source-mono-4.6.0/bockbuild-mono-4.6.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System.IO/FileStream.cs:869
at Xamarin.Ide.LogReporting.AppInsights.Channel.PersistenceTransmitter.AcquireMutex (System.Action action) [0x0001b] in /Users/builder/data/lanes/3509/7fabf929/source/md-addins/Xamarin.Ide/Xamarin.IdeCustomization/Xamarin.Ide.LogReporting/AppInsights/Channel/PersistenceTransmitter.cs:91
ERROR [2017-01-06 17:01:35Z]: PersistenceTransmitter: Unhandled exception in CreateSenders:
ERROR [2017-01-06 17:01:35Z]: Error ini
=== Xamarin Studio Community ===
Version 6.2 (build 1704)
Installation UUID: bf6d8753-8770-4eb9-9454-903153b2106c
Runtime:
Mono 4.6.2 (mono-4.6.0-branch/ac9e222) (64-bit)
GTK+ 2.24.23 (Raleigh theme)
Package version: 406020016
Microsoft Visual Studio Community 2015
Version 14.0.25425.01 Update 3
Microsoft .NET Framework
Version 4.6.01586
Installed Version: Community
Visual Basic 2015 00322-20000-00000-AA040
Microsoft Visual Basic 2015