GET /api/v4/channels/{channel_id}/posts?since=<ts> intermittently returns an
empty set for a recent since even though matching posts exist, on both
Postgres and MySQL. Root cause: the GetPostsSince CTE uses LIMIT 1000 with
no ORDER BY, so the returned set is query-plan-dependent. Served as a
prepared statement, Postgres switches to a generic plan after a few executions;
once a since matching >1000 rows shapes that plan on a pooled connection, a
later since matching <1000 recent rows returns 0.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void BuildMenu () | |
| { | |
| DAL.SetupDB(); | |
| RootElement menu = new RootElement ("Simcoe Cabinets") | |
| { | |
| new Section() | |
| { | |
| new StringElement ("Orders", ShowOrdersForm), | |
| new StringElement ("Settings",ShowSettings) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private static UINavigationController _navigation; | |
| private static object navLock = new object(); | |
| public static UINavigationController navigation | |
| { | |
| get{ | |
| if(_navigation == null) | |
| lock(navLock) | |
| _navigation = new UINavigationController(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| protected override void OnCreate(Bundle bundle) | |
| { | |
| base.OnCreate(bundle); | |
| string intentString; | |
| bool intentBool; | |
| //if the activity is being resumed... | |
| if (bundle != null) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # cat /var/etc/racoon.conf | |
| # This file is automatically generated. Do not edit | |
| path pre_shared_key "/var/etc/psk.txt"; | |
| path certificate "/var/etc"; | |
| listen | |
| { | |
| adminsock "/var/db/racoon/racoon.sock" "root" "wheel" 0660; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using MonoMobile.Views; | |
| using MonoTouch.UIKit; | |
| using MonoTouch.Foundation; | |
| using OBDIIEngineLibrary; | |
| namespace ObdSync | |
| { | |
| [Preserve(AllMembers = true)] | |
| [Theme(typeof(NavbarTheme))] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using Android.App; | |
| using Android.Content; | |
| using Android.OS; | |
| using Android.Runtime; | |
| using Android.Views; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using Android.App; | |
| using Android.Content; | |
| using Android.OS; | |
| using Android.Runtime; | |
| using Android.Views; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static string DeviceID (ContentResolver resolver) | |
| { | |
| return Android.Provider.Settings.Secure.GetString(resolver, | |
| Android.Provider.Settings.Secure.AndroidId); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static string DeviceIp | |
| { | |
| get | |
| { | |
| Util.Defaults.Init(); | |
| return Util.Defaults.StringForKey("deviceip"); | |
| } | |
| set |
NewerOlder