Skip to content

Instantly share code, notes, and snippets.

@magaton
magaton / README.md
Last active June 25, 2021 11:13
apoc.log problem in the trigger and apoc.periodic.iterate

The problem: I have 20430 lines in CSV. Each line is one order. Orders are made by clients (I have 100 clients)

On each row, I MERGE Order and Client and connect them with MADE relatuonship (Client)-[:MADE]->(Order)

There is a trigger that kicks off when MADE relationship is created. Trigger contains apoc.log.info CALL.

Started with both bluetooth enabled (they see each other - Good!)
Disabled bluetooth on SM-T820 (5.1.1) (they dont see each other - Good!)
Enabled bluetooth on SM-T820 (5.1.1) (they dont see each other - Bad!)
From this point they dont see each other no matter which bluetooth (off/on) status has been changed
SM-T820 (5.1.1)
07-24 12:12:11.737 4618-4618/com.hypelabs.hypechatdemo I/libpersona: KNOX_SDCARD checking this for 10112
07-24 12:12:11.737 4618-4618/com.hypelabs.hypechatdemo I/libpersona: KNOX_SDCARD not a persona
07-24 12:12:11.947 4618-4618/com.hypelabs.hypechatdemo D/SecWifiDisplayUtil: Metadata value : SecSettings2
@magaton
magaton / gist:21aa78a7c00eac175f3559ff8d0b7c9d
Created July 24, 2017 11:48
Wifi enabled, bluetooth disabled
Started with bluetooth disabled on SM-T280, both connected to the same infra wifi with enabled wifi direct. (they dont see each other - Bad!)
Enabled bluetooth on SM-T280, still both connected to the same infra wifi with enabled wifi direct. (they dont see each other - Bad!)
SM-T813 (7.0.0)
07-24 00:14:20.897 24183-24183/? I/SELinux: SELinux: seapp_context_lookup: seinfo=untrusted, level=s0:c512,c768, pkgname=com.hypelabs.hypechatdemo
07-24 00:14:21.009 24183-24183/com.hypelabs.hypechatdemo D/AbsListView: Get MotionRecognitionManager
07-24 00:14:21.012 24183-24183/com.hypelabs.hypechatdemo D/MotionRecognitionManager: mSContextService = null
07-24 00:14:21.014 24183-24183/com.hypelabs.hypechatdemo D/MotionRecognitionManager: motionService = com.samsung.android.gesture.IMotionRecognitionService$Stub$Proxy@f3d2133
07-24 00:14:21.041 24183-24183/com.hypelabs.hypechatdemo D/ViewRootImpl@e1e9d8f[ContactActivity]: ThreadedRenderer.create() translucent=false
@magaton
magaton / gist:c75ca5fa5cd53e18c67dfba6b36b5caa
Created July 19, 2017 16:02
Experiments with new devices
Scenario 1. Doesn't work, wifi diff networks, wifi direct enabled, bluetooth disabled on one device.
Samsung SMT280 API 22 5.1.1
bluetooth on, wifi network1
07-19 17:33:50.031 7858-7858/com.hypelabs.hypechatdemo D/SecWifiDisplayUtil: Metadata value : SecSettings2
07-19 17:33:50.061 7858-7858/com.hypelabs.hypechatdemo D/PhoneWindow: *FMB* installDecor mIsFloating : false
07-19 17:33:50.061 7858-7858/com.hypelabs.hypechatdemo D/PhoneWindow: *FMB* installDecor flags : -2139029248
07-19 17:33:50.071 7858-7858/com.hypelabs.hypechatdemo D/AbsListView: Get MotionRecognitionManager
07-19 17:33:50.081 7858-7858/com.hypelabs.hypechatdemo E/MotionRecognitionManager: mSContextService = null
@magaton
magaton / gist:fd94ee5eb6fd5c9d72fbdedcbcb270e7
Last active July 18, 2017 14:58
Scenario 2: same wifi, bluetooth on
Scenario 2.
Freshly installed - same wifi, bluetooth on
LG
Bluetooth on
wifi network1
07-18 13:02:54.465 26629-26629/com.hypelabs.hypechatdemo D/ContextHelper: convertTheme. context->name=com.hypelabs.hypechatdemo themeResourceId=2131361893
07-18 13:02:54.479 26629-26629/com.hypelabs.hypechatdemo I/PhoneWindow: [generateLayout] setColorNavigationBar => color=0x ff000001
07-18 13:02:54.484 26629-26629/com.hypelabs.hypechatdemo D/PhoneWindowEx: [PWEx][generateLayout] setNavigationBarColor2 : colors=0xfff5f5f5
@magaton
magaton / gist:a4878e797e49eab9d90ea9d2aad36b9e
Created July 18, 2017 14:38
Scenario 1: Wifi enabled, Bluetooth disabled on both devices
Scenario 1.
Freshly installed - same wifi, bluetooth off
LG
Bluetooth off
wifi network1
07-18 12:18:43.489 3200-3200/com.hypelabs.hypechatdemo D/ContextHelper: convertTheme. context->name=com.hypelabs.hypechatdemo themeResourceId=2131361893
07-18 12:18:43.497 3200-3200/com.hypelabs.hypechatdemo I/PhoneWindow: [generateLayout] setColorNavigationBar => color=0x ff000001
07-18 12:18:43.501 3200-3200/com.hypelabs.hypechatdemo D/PhoneWindowEx: [PWEx][generateLayout] setNavigationBarColor2 : colors=0xfff5f5f5
@magaton
magaton / AndroidManifest.xml
Last active June 28, 2017 15:00
HypeLabs log
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.hypelabs.hypechatdemo">
<!-- Permissions needed to run Infrastructural Wi-Fi -->
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<!-- Permissions needed to run Wi-Fi Direct -->
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
@Configuration
@EnableNeo4jRepositories(basePackages="com.magaton.reco.repository.neo4j", transactionManagerRef = "neo4jTransactionManager")
@EnableTransactionManagement
@EnableConfigurationProperties(Neo4jProperties.class)
public class Neo4jConfiguration extends WebMvcConfigurerAdapter {
private final Logger log = LoggerFactory.getLogger(Neo4jConfiguration.class);
@Bean
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.kie.spring.jbpm.LocalEntityManagerFactorySpringTest
2014-03-16 13:33:11,013 [main] INFO Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@6b6a4b18: startup date [Sun Mar 16 13:33:11 CET 2014]; root of context hierarchy
2014-03-16 13:33:11,078 [main] INFO Loading XML bean definitions from class path resource [jbpm/local-emf/local-emf-spring.xml]
2014-03-16 13:33:11,281 [main] INFO Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@3e4e6138: defining beans [jbpmEMF,jbpmTxManager,process,runtimeEnvironment,runtimeManager,logService]; root of factory hierarchy
2014-03-16 13:33:11,352 [main] INFO persistence-local.xml should be located inside META-INF directory; cannot determine persistence unit root URL for class path resource [jbpm/local-emf/persistence-local.xml]
2014-03-16 13:33:11,371 [main] INFO