(List has migrated to https://gaming.stackexchange.com/a/322443/181240)
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
// Source: WFC v5.0 Developer's Toolkit Programmer's Guide | |
// Chapter 3: Advanced Programming Topics | |
// https://forge.cornell.edu/sf/docman/do/downloadDocument/projects.cit_is_customer_apps/docman.root.design_docs/doc5084 | |
/* | |
Copyright:Kronos, Inc. 2001 | |
Description: | |
This file provides the basic methods and objects needed to login, logout, and send xml requests to WFC v4.0 xml api gateway. |
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
# Logs on to Kronos WFC using an XML request | |
# Written as an example for https://stackoverflow.com/a/46776518/3357935 | |
import requests | |
url = "http://localhost/wfc/XmlService" | |
headers = {'Content-Type': 'text/xml'} | |
data = """<Kronos_WFC version = "1.0"> | |
<Request Object="System" Action="Logon" Username="SomeUsername" Password="SomePassword" /> | |
</Kronos_WFC>""" |
I have a simple XML element created with [xml.etree.ElementTree
][1] in Python 3. This element contains a person's name and age.
import xml.etree.ElementTree as ElementTree
person = ElementTree.Element("Person", Name="John", Age=18)
I can use [Element.get()
][2] to access individual attributes from my element without any issues.
import xml.etree.ElementTree as ElementTree
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
<?xml version="1.0"?> | |
<gameList> | |
<game> | |
<path>./audiosettings.rp</path> | |
<name>Audio</name> | |
<desc>Configure audio settings. Choose default of auto, 3.5mm jack, or HDMI. Mixer controls, and apply default settings.</desc> | |
<image>/home/pi/RetroPie/retropiemenu/icons/audiosettings.png</image> | |
</game> | |
<game> | |
<path>./bluetooth.rp</path> |
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
# Base Classes | |
class BaseAdapter(object): | |
def __init__(self): | |
super(BaseAdapter, self).__init__() | |
class BaseAdapter2(object): | |
pass | |
class Second: | |
def __init__(self): |
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
import csv | |
import sys | |
import os | |
# Convert comma-delimited CSV files to pipe-delimited files | |
# Usage: Drag-and-drop CSV file over script to convert it. | |
inputPath = sys.argv[1] | |
outputPath = os.path.dirname(inputPath) + "/output.csv" |
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
java.lang.NoClassDefFoundError: org/dom4j/ElementHandler | |
at java.lang.Class.getDeclaredConstructors0(Native Method) | |
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671) | |
at java.lang.Class.getConstructor0(Class.java:3075) | |
at java.lang.Class.newInstance(Class.java:412) | |
at com.taleo.integration.client.step.CustomStepWrapper.init(CustomStepWrapper.java:108) | |
at com.taleo.integration.client.workflow.WorkflowManager.addSteps(WorkflowManager.java:1006) | |
at com.taleo.integration.client.workflow.WorkflowManager.addPostProcessSteps(WorkflowManager.java:977) | |
at com.taleo.integration.client.workflow.WorkflowManager.createWorkflow(WorkflowManager.java:172) | |
at com.taleo.integration.client.workflow.WorkflowManager.execute(WorkflowManager.java:328) |
This list has been moved to https://github.com/Stevoisiak/stack-exchange-community-links. Original version has been preserved below
An unofficial list of Stack Exchange alternatives, offshoot chats, and community projects
OlderNewer