Skip to content

Instantly share code, notes, and snippets.

View danielrobbins's full-sized avatar

Daniel Robbins danielrobbins

View GitHub Profile
@danielrobbins
danielrobbins / MyPage.cs
Created October 5, 2017 02:33
Test Xamarin.Forms app with Picker input issues
using System;
using System.Threading.Tasks;
using Xamarin.Forms;
public class Scene : object
{
protected RelativeLayout _slidein_layout = null;
protected RelativeLayout _static_layout = null;
protected StackLayout _next_button = null;
@danielrobbins
danielrobbins / gist:4504433
Created January 10, 2013 18:17
may fix ZEN-2971 error at geocoding addresses
Index: /trunk/core/Products/ZenWidgets/skins/zenui/javascript/geomap.js
===================================================================
--- /trunk/core/Products/ZenWidgets/skins/zenui/javascript/geomap.js (revision 62520)
+++ /trunk/core/Products/ZenWidgets/skins/zenui/javascript/geomap.js (revision 62633)
@@ -105,5 +105,5 @@
this error when the user has reached their daily limit for their IP as well.
*/
- errorCount++;
+ errorCount++;
if(errorCount >= 5){
@danielrobbins
danielrobbins / gist:4504129
Created January 10, 2013 17:42
Fixes: ZEN-3758 Unable to run zeneventd under multiple threads in Zenoss Core, causes major RabbitMQ rawevents queue bottleneck!
Index: /branches/core/zenoss-4.2.x/Products/ZenEvents/configure.zcml
===================================================================
--- /branches/core/zenoss-4.2.x/Products/ZenEvents/configure.zcml (revision 52897)
+++ /branches/core/zenoss-4.2.x/Products/ZenEvents/configure.zcml (revision 67823)
@@ -9,5 +9,9 @@
<include package=".browser"/>
- <subscriber handler=".zeneventd.onDaemonStartRun"/>
+ <subscriber handler=".zeneventdEvents.onSigTerm"/>
+ <subscriber handler=".zeneventdEvents.onSigUsr1"/>
@danielrobbins
danielrobbins / changeset_62820.diff
Created August 22, 2012 18:50
reviewed by epowell fixes ZEN-3052 deprecate the use of datepicker.js in favor of ExtJs date field. Also allowing the user to set the date
Index: /trunk/core/Products/ZenModel/skins/zenmodel/maintenanceWindowDetail.pt
===================================================================
--- /trunk/core/Products/ZenModel/skins/zenmodel/maintenanceWindowDetail.pt (revision 61079)
+++ /trunk/core/Products/ZenModel/skins/zenmodel/maintenanceWindowDetail.pt (revision 62820)
@@ -1,10 +1,8 @@
<tal:block metal:use-macro="here/templates/macros/page2">
<tal:block metal:fill-slot="contentPane">
-<script type="text/javascript" src="/zport/portal_skins/zenmodel/datePicker.js">
-</script>
@danielrobbins
danielrobbins / changeset_r62520.diff
Created August 22, 2012 18:48
Fixes ZEN-2399 with a smarter delay feature. reviewed by jcausey
Index: /trunk/core/Products/ZenWidgets/skins/zenui/javascript/geomap.js
===================================================================
--- /trunk/core/Products/ZenWidgets/skins/zenui/javascript/geomap.js (revision 62411)
+++ /trunk/core/Products/ZenWidgets/skins/zenui/javascript/geomap.js (revision 62520)
@@ -19,4 +19,5 @@
var nodedata = null;
var linkdata = null;
+ var errorCount = 0;
/* PUBLICIZE */
@danielrobbins
danielrobbins / buildjs.sh
Created August 22, 2012 18:45
re-compiles JavaScript for Zenoss after patching
#!/bin/sh
##############################################################################
#
# Copyright (C) Zenoss, Inc. 2010, all rights reserved.
#
# This content is made available according to terms specified in
# License.zenoss under the directory where your Zenoss product is installed.
#
##############################################################################
@danielrobbins
danielrobbins / changeset_r63053.diff
Created August 21, 2012 20:05
MySQL connections now receive all relevant configuration options (fixes ZEN-3133; reviewed by jcausey)
Index: /branches/core/zenoss-4.2.x/Products/ZenUtils/MySqlZodbFactory.py
===================================================================
--- /branches/core/zenoss-4.2.x/Products/ZenUtils/MySqlZodbFactory.py (revision 62263)
+++ /branches/core/zenoss-4.2.x/Products/ZenUtils/MySqlZodbFactory.py (revision 63053)
@@ -128,10 +128,10 @@
if socket:
connectionParams['unix_socket'] = socket
- kwargs = {
+ relstoreParams = {
'cache_module_name':'memcache',
@danielrobbins
danielrobbins / changeset_branches_core_zenoss-4.2.x_Products_ZenUI3_browser_resources_js_zenoss_ComponentPanel.js_r62483.diff
Created August 13, 2012 18:30
Patches ZEN-2819: refs ZEN-2797 fixed by tsanders. Fixed by removing a double fire on first load. reviewed by noone, trunk reviewed by jhanson.
Index: branches/core/zenoss-4.2.x/Products/ZenUI3/browser/resources/js/zenoss/ComponentPanel.js
===================================================================
--- branches/core/zenoss-4.2.x/Products/ZenUI3/browser/resources/js/zenoss/ComponentPanel.js (revision 61801)
+++ branches/core/zenoss-4.2.x/Products/ZenUI3/browser/resources/js/zenoss/ComponentPanel.js (revision 62483)
@@ -566,7 +566,4 @@
if (token.split(Ext.History.DELIMITER).length!=3) {
this.getSelectionModel().selectRange(0, 0);
- // Ext, for some reason, doesn't fire selectionchange at this
- // point, so we'll do it ourselves.
- this.fireEvent('selectionchange', this, this.getSelectionModel().getSelection());
@danielrobbins
danielrobbins / changeset_trunk_core_Products_Zuul_facades_devicefacade.py_r62567.diff
Created August 13, 2012 17:28
reviewed by pwarren fixes ZEN-2893 update both the global and component search catalog when setting the monitored state of a component
Index: trunk/core/Products/Zuul/facades/devicefacade.py
===================================================================
--- trunk/core/Products/Zuul/facades/devicefacade.py (revision 62389)
+++ trunk/core/Products/Zuul/facades/devicefacade.py (revision 62567)
@@ -1,9 +1,9 @@
##############################################################################
-#
+#
# Copyright (C) Zenoss, Inc. 2009, all rights reserved.
-#
@danielrobbins
danielrobbins / zenpack-remove.py
Created July 12, 2012 19:01
A script to remove broken ZenPacks
packs = None
if hasattr(dmd, 'ZenPackManager'):
packs = dmd.ZenPackManager.packs
else:
packs = dmd.packs
phase2 = False
for pack in packs():
try: