PostId
int64
13
11.8M
PostCreationDate
stringlengths
19
19
OwnerUserId
int64
3
1.57M
OwnerCreationDate
stringlengths
10
19
ReputationAtPostCreation
int64
-33
210k
OwnerUndeletedAnswerCountAtPostTime
int64
0
5.77k
Title
stringlengths
10
250
BodyMarkdown
stringlengths
12
30k
Tag1
stringlengths
1
25
Tag2
stringlengths
1
25
Tag3
stringlengths
1
25
Tag4
stringlengths
1
25
Tag5
stringlengths
1
25
PostClosedDate
stringlengths
19
19
OpenStatus
stringclasses
5 values
unified_texts
stringlengths
47
30.1k
OpenStatus_id
int64
0
4
10,423,963
05/03/2012 01:33:43
601,993
02/03/2011 17:44:51
121
2
Dynamic resize of <p:layoutUnit> can it be done?
I asked this question on the PrimeFaces forum and got no response, so I figured I would try here. - Using PrimeFaces 3.0 - I have a page that contains <p:layout> with a <p:layoutUnit> that I want to resize dynamically in a backing bean. There are two ways I am using this: 1) A <p:commandButton> calls a backing bean that sets the bean property for the size parameter in the <p:layoutUnit> component. I can do this, but in order to make it work, I have to set ajax="false" and update="@all" (probably don't need the update) in order to force a page redraw. When I do that, the width of the <p:layoutUnit> is reset and the panel draws at the desired width. 2) I have a <g:map> component with <p:ajax event="overlaySelect" > I want to resize the panel in a similar way when the overlayEvent is activated. The problem I am having is that I can't seem to make the <p:overlayUnit> resize without a complete page refresh, and I can't seem to get the overlaySelect event to cause the page to refresh (or it does not do so in a manner that will resizze the <p:layoutUnit>. It will resize if I do a page refresh. I have two questions: 1) Is there a way to dynamically resize a <p:layoutUnit> component without having to do a complete page refresh? I can't seem to make it work any other way. 2) Is there a way to force the <p:agax event="overlaySelect" > to force a complete page refresh so I can force the resize like I do in my first scenario? Thanks Here is the page code if anyone is interested: <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <f:view id="mapPolygonView" contentType="text/html" beforePhase="#{mappingSessionBean.beforePhase}" xmlns="http://www.w3.org/1999/xhtml" xmlns:comp="http://java.sun.com/jsf/composite/ezcomp" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:cc="http://java.sun.com/jsf/composite" xmlns:p="http://primefaces.org/ui" xmlns:c="http://java.sun.com/jsp/jstl/core"> <html> <h:head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link href="./resources/css/default.css" rel="stylesheet" type="text/css" /> <link href="./resources/css/cssLayout.css" rel="stylesheet" type="text/css" /> <script src="./resources/js/Raphael.js" type="text/javascript"></script> <script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script> <style type="text/css"> .ui-layout-north { z-index:20 !important; overflow:visible !important;; } .ui-layout-north .ui-layout-unit-content { overflow:visible !important; } </style> <title>Map Polygon Edit</title> </h:head> <h:body> <p:layout fullPage="true" onResize="onResizeEvent(event)" > <p:layoutUnit position="north" size="82" resizable="true" > <h:form id="formNorth" prependId="=false" > <p:outputPanel id="panelNorth" > <comp:header id="headerComp" /> <comp:menuBar id="menuBarComp" /> </p:outputPanel> </h:form > </p:layoutUnit> <p:layoutUnit id="layoutWest" position="west" size="#{mappingSessionBean.optionPanelWidth}" resizable="true" collapsible="true" header="Options" > <h:form id="formWest" prependId="=false" > <p:outputPanel id="panelWest" > <h:panelGrid columns="1" style="padding-top: 5px; width: 98%;" rendered="#{mappingSessionBean.displayOptionGridWest}" > <h:commandLink value="Add Polygon" style="margin-left: 5px;" action="#{mappingSessionBean.addNewPolyAction}" disabled="#{mappingSessionBean.disableAddPolygonLink}" rendered="#{mappingSessionBean.displayAddPolygonLink}" update="@form :formCenter:mapPanel :formCenter:polygonAddPanelComp:polygonAddPanel" /> <h:commandLink value="Edit Polygon" style="margin-left: 5px;" action="#{mappingSessionBean.editPolyAction}" disabled="#{mappingSessionBean.disableEditPolygonLink}" rendered="#{mappingSessionBean.displayEditPolygonLink}" update=":formCenter:messageComp:messagePnl" /> <h:commandLink value="Disable Polygon" style="margin-left: 5px;" action="#{mappingSessionBean.disablePolyAction}" disabled="#{mappingSessionBean.disableDisablePolygonLink}" rendered="#{mappingSessionBean.displayDisablePolygonLink}" update=":formCenter:messageComp:messagePnl" /> <h:commandLink value="Locate Address" style="margin-left: 5px;" action="#{mappingSessionBean.locateAddressAction}" disabled="#{mappingSessionBean.disableLocateAddressLink}" rendered="#{mappingSessionBean.displayLocateAddressLink}" update="@form" /> <p:separator /> <h:outputText value="Locate Address:" style="margin-left: 5px;" rendered="#{mappingSessionBean.displayLocateAddress}" /> <p:inputTextarea value="#{mappingSessionBean.searchAddress}" style="width: 125px;; height: 40px;" autoResize="false" maxHeight="40" rendered="#{mappingSessionBean.displayLocateAddress}" /> <p:commandButton value="Find" action="#{mappingSessionBean.findAddressAction()}" update="@form :formCenter:gmap :formCenter:messageComp:messagePnl" rendered="#{mappingSessionBean.displayLocateAddress}" /> <p:separator rendered="#{mappingSessionBean.displayLocateAddress}" /> <p:commandButton id="btn3" value="Save Polygon" style="width: 135px;" disabled="#{mappingSessionBean.disableSavePolyBtn}" onclick="confirmDialog.show();" update="@form :formCenter:gmap :formCenter:messageComp:messagePnl" /> <p:commandButton id="btn5" value="Refresh Polygons" style="width: 135px;" disabled="#{mappingSessionBean.disablePolyBtns}" action="#{mappingSessionBean.refreshPolygons}" update="@form :formCenter:gmap" /> <p:commandButton id="btn6" value="Test State" style="width: 135px;" action="#{mappingSessionBean.testStatePolygon}" onclick="confirmDialog.show();" update="@form :formCenter:gmap" /> <p:separator /> </h:panelGrid> <h:panelGrid columns="3" style="width: 145px;" > <h:outputText value="Map Height: " style="margin-left: 5px;" /> <p:commandButton value="+" action="#{mappingSessionBean.polyMapPlus}" update=":formCenter:gmap" /> <p:commandButton value="-" action="#{mappingSessionBean.polyMapMinus}" update=":formCenter:gmap" /> </h:panelGrid> <h:panelGrid columns="1" style="padding-top: 5px; width: 98%;" > <p:commandButton value="Restore Original" style="width: 135px;" disabled="#{mappingSessionBean.disablePolyBtns}" action="${mappingSessionBean.restoreOriginalPolyView}" update=":formCenter:gmap :formEast:panelEast" /> </h:panelGrid> <comp:polygonAddPanel id="polygonAddPanelComp" /> <comp:polygonEditPanel id="polygonEditanelComp" /> </p:outputPanel> </h:form > </p:layoutUnit> <p:layoutUnit position="center" resizable="true" > <h:form id="formCenter" prependId="false" > <p:idleMonitor onidle="idleDialog.show();" timeout="#{sessionBean1.timeout}" > <p:ajax event="idle" listener="#{sessionBean1.idleListener}" update="@form" /> </p:idleMonitor> <comp:message id="messageComp" message="#{sessionBean1.message}" /> <p:outputPanel id="mapAddPolyPanel" > <h:panelGrid id="mapAddPolyPanelGrid" style="width: 90%; height: 35px; margin-top: 10px; display: block; position: relative;" columns="4" > <h:outputText value="Account:" /> <p:selectOneMenu style="width: 250px;" value="#{mappingSessionBean.selectedAccount}" > <f:selectItems value="#{sessionBean1.custAccountList}"/> <p:ajax listener="#{mappingSessionBean.accountSelectAction}" update="polyGrpDD gmap" /> </p:selectOneMenu> <h:outputText value="Polygon Group:" /> <p:selectOneMenu id="polyGrpDD" style="width: 250px;" value="#{mappingSessionBean.selectedPolyGroup}" > <f:selectItems value="#{mappingSessionBean.polygonGroupList}"/> <p:ajax listener="#{mappingSessionBean.polyGroupSelectAction}" update="@form :formEast:panelEast :formWest:panelWest gmap" /> </p:selectOneMenu> </h:panelGrid> <p:outputPanel id="mapPanel" style="top: 0px; width: 98%; left: 10px; position: relative;" rendered="#{mappingSessionBean.displayMapPanel}" > <p:gmap id="gmap" center="#{mappingSessionBean.mapCenter}" zoom="#{mappingSessionBean.mapZoom}" type="HYBRID" style="#{mappingSessionBean.polygonGmapStyle}" fitBounds="#{mappingSessionBean.fitBoundsFlag}" model="#{mappingSessionBean.mapModel}" disableDoubleClickZoom="true" widgetVar="map" > <p:ajax id="gmapAjax1" event="overlaySelect" listener="#{mappingSessionBean.onMapOverlaySelect}" update="@all :formEast:polyDetailPnl gmap messageComp:messagePnl :formCenter:mapPanel :formWest" /> <p:ajax id="gmapAjax3" event="pointSelect" listener="#{mappingSessionBean.onMapPointSelect}" update="gmap" /> <p:ajax id="gmapAjax2" event="stateChange" listener="#{mappingSessionBean.onMapStateChange}" /> <p:ajax id="gmapAjax4" event="markerDrag" listener="#{mappingSessionBean.onMapMarkerDrag}" update="gmap" /> </p:gmap> </p:outputPanel> </p:outputPanel> </h:form > </p:layoutUnit> <p:layoutUnit position="east" size="205" resizable="true" collapsible="true" header="Polygons" > <h:form id="formEast" prependId="=false" > <p:outputPanel id="panelEast" > <h:panelGrid id="grid2" columns="1" style="height: 500px; width: 96%; display: block;" > <h:panelGrid columns="2" > <p:selectBooleanCheckbox value="#{mappingSessionBean.displayAllPolygons}" > <p:ajax listener="#{mappingSessionBean.displayAllPolyAction}" update="@form :formCenter:gmap polyTable" /> </p:selectBooleanCheckbox> <h:outputText id="txt2" value=" Select all (Checked = visible)" /> </h:panelGrid> <!-- p:outputPanel id="panel2" style="position: relative; width: 100%; height: 300px; display: block; border-width: 1px; border-style: solid; border-color: #000000; overflow: auto;" --> <p:dataTable id="polyTable" var="polys" style="width: 98%;" value="#{mappingSessionBean.polyDataList}" rowKey="#{polys.name}" paginator="true" paginatorPosition="bottom" rows="10" selection="#{mappingSessionBean.selectedPolyData}" selectionMode="single" > <p:column headerText="" style="width: 20px;" > <p:selectBooleanCheckbox value="#{polys.visible}" > <p:ajax listener="#{mappingSessionBean.visibleCheckBoxAjax(polys)}" update="@form :formCenter:gmap" /> </p:selectBooleanCheckbox> </p:column> <p:column headerText="Name" > #{polys.name} </p:column> <p:ajax event="rowSelect" listener="#{mappingSessionBean.selectedPolyListener}" update="@form :formCenter:gmap" /> </p:dataTable> <!-- /p:outputPanel --> <h:outputText id="rxt3" value="Polygon Details" /> <p:outputPanel id="panel3" style="position: relative; width: 98%; height: 175px; display: block; border-width: 1px; border-style: solid; border-color: #000000; overflow: auto;" > <p:outputPanel id="polyDetailPnl" > <h:panelGrid columns="2" > <h:outputText value="Polygon Id: " /> <h:outputText value="#{mappingSessionBean.selectedPolyData.polygonId}" /> <h:outputText value="Name: " /> <h:outputText value="#{mappingSessionBean.selectedPolyData.name}" /> <h:outputText value="Active Flag: " /> <h:outputText value="#{mappingSessionBean.selectedPolyData.active}" /> <h:outputText value="Color: " /> <h:outputText value="#{mappingSessionBean.selectedPolyData.lineColor}" /> </h:panelGrid> <h:panelGrid columns="1" > <h:outputText value="Polygon Points: Lat., Lon." /> <h:outputText value="#{mappingSessionBean.selectedPolyPoints}" escape="false" /> </h:panelGrid> </p:outputPanel> </p:outputPanel> </h:panelGrid> </p:outputPanel> </h:form > </p:layoutUnit> </p:layout> <p:confirmDialog id="confirmDialog" widgetVar="confirmDialog" header="Confirm Polygon Add / Update / Disable" message="#{mappingSessionBean.polyConfirmMsg}" > <h:form> <p:commandButton value="Yes" style="margin-left: 10px;" actionListener="#{mappingSessionBean.confirmAddPolyContinueAction}" oncomplete="confirmDialog.hide();" update=":formCenter:gmap :formCenter:messageComp:messagePnl" /> <p:commandButton value="No" style="margin-left: 25px;" actionListener="#{mappingSessionBean.confirmAddPolyQuitAction}" oncomplete="confirmDialog.hide();" update="@form :formCenter:gmap" /> </h:form> </p:confirmDialog> </h:body> </html> </f:view>
primefaces
null
null
null
null
null
open
Dynamic resize of <p:layoutUnit> can it be done? === I asked this question on the PrimeFaces forum and got no response, so I figured I would try here. - Using PrimeFaces 3.0 - I have a page that contains <p:layout> with a <p:layoutUnit> that I want to resize dynamically in a backing bean. There are two ways I am using this: 1) A <p:commandButton> calls a backing bean that sets the bean property for the size parameter in the <p:layoutUnit> component. I can do this, but in order to make it work, I have to set ajax="false" and update="@all" (probably don't need the update) in order to force a page redraw. When I do that, the width of the <p:layoutUnit> is reset and the panel draws at the desired width. 2) I have a <g:map> component with <p:ajax event="overlaySelect" > I want to resize the panel in a similar way when the overlayEvent is activated. The problem I am having is that I can't seem to make the <p:overlayUnit> resize without a complete page refresh, and I can't seem to get the overlaySelect event to cause the page to refresh (or it does not do so in a manner that will resizze the <p:layoutUnit>. It will resize if I do a page refresh. I have two questions: 1) Is there a way to dynamically resize a <p:layoutUnit> component without having to do a complete page refresh? I can't seem to make it work any other way. 2) Is there a way to force the <p:agax event="overlaySelect" > to force a complete page refresh so I can force the resize like I do in my first scenario? Thanks Here is the page code if anyone is interested: <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <f:view id="mapPolygonView" contentType="text/html" beforePhase="#{mappingSessionBean.beforePhase}" xmlns="http://www.w3.org/1999/xhtml" xmlns:comp="http://java.sun.com/jsf/composite/ezcomp" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:cc="http://java.sun.com/jsf/composite" xmlns:p="http://primefaces.org/ui" xmlns:c="http://java.sun.com/jsp/jstl/core"> <html> <h:head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link href="./resources/css/default.css" rel="stylesheet" type="text/css" /> <link href="./resources/css/cssLayout.css" rel="stylesheet" type="text/css" /> <script src="./resources/js/Raphael.js" type="text/javascript"></script> <script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script> <style type="text/css"> .ui-layout-north { z-index:20 !important; overflow:visible !important;; } .ui-layout-north .ui-layout-unit-content { overflow:visible !important; } </style> <title>Map Polygon Edit</title> </h:head> <h:body> <p:layout fullPage="true" onResize="onResizeEvent(event)" > <p:layoutUnit position="north" size="82" resizable="true" > <h:form id="formNorth" prependId="=false" > <p:outputPanel id="panelNorth" > <comp:header id="headerComp" /> <comp:menuBar id="menuBarComp" /> </p:outputPanel> </h:form > </p:layoutUnit> <p:layoutUnit id="layoutWest" position="west" size="#{mappingSessionBean.optionPanelWidth}" resizable="true" collapsible="true" header="Options" > <h:form id="formWest" prependId="=false" > <p:outputPanel id="panelWest" > <h:panelGrid columns="1" style="padding-top: 5px; width: 98%;" rendered="#{mappingSessionBean.displayOptionGridWest}" > <h:commandLink value="Add Polygon" style="margin-left: 5px;" action="#{mappingSessionBean.addNewPolyAction}" disabled="#{mappingSessionBean.disableAddPolygonLink}" rendered="#{mappingSessionBean.displayAddPolygonLink}" update="@form :formCenter:mapPanel :formCenter:polygonAddPanelComp:polygonAddPanel" /> <h:commandLink value="Edit Polygon" style="margin-left: 5px;" action="#{mappingSessionBean.editPolyAction}" disabled="#{mappingSessionBean.disableEditPolygonLink}" rendered="#{mappingSessionBean.displayEditPolygonLink}" update=":formCenter:messageComp:messagePnl" /> <h:commandLink value="Disable Polygon" style="margin-left: 5px;" action="#{mappingSessionBean.disablePolyAction}" disabled="#{mappingSessionBean.disableDisablePolygonLink}" rendered="#{mappingSessionBean.displayDisablePolygonLink}" update=":formCenter:messageComp:messagePnl" /> <h:commandLink value="Locate Address" style="margin-left: 5px;" action="#{mappingSessionBean.locateAddressAction}" disabled="#{mappingSessionBean.disableLocateAddressLink}" rendered="#{mappingSessionBean.displayLocateAddressLink}" update="@form" /> <p:separator /> <h:outputText value="Locate Address:" style="margin-left: 5px;" rendered="#{mappingSessionBean.displayLocateAddress}" /> <p:inputTextarea value="#{mappingSessionBean.searchAddress}" style="width: 125px;; height: 40px;" autoResize="false" maxHeight="40" rendered="#{mappingSessionBean.displayLocateAddress}" /> <p:commandButton value="Find" action="#{mappingSessionBean.findAddressAction()}" update="@form :formCenter:gmap :formCenter:messageComp:messagePnl" rendered="#{mappingSessionBean.displayLocateAddress}" /> <p:separator rendered="#{mappingSessionBean.displayLocateAddress}" /> <p:commandButton id="btn3" value="Save Polygon" style="width: 135px;" disabled="#{mappingSessionBean.disableSavePolyBtn}" onclick="confirmDialog.show();" update="@form :formCenter:gmap :formCenter:messageComp:messagePnl" /> <p:commandButton id="btn5" value="Refresh Polygons" style="width: 135px;" disabled="#{mappingSessionBean.disablePolyBtns}" action="#{mappingSessionBean.refreshPolygons}" update="@form :formCenter:gmap" /> <p:commandButton id="btn6" value="Test State" style="width: 135px;" action="#{mappingSessionBean.testStatePolygon}" onclick="confirmDialog.show();" update="@form :formCenter:gmap" /> <p:separator /> </h:panelGrid> <h:panelGrid columns="3" style="width: 145px;" > <h:outputText value="Map Height: " style="margin-left: 5px;" /> <p:commandButton value="+" action="#{mappingSessionBean.polyMapPlus}" update=":formCenter:gmap" /> <p:commandButton value="-" action="#{mappingSessionBean.polyMapMinus}" update=":formCenter:gmap" /> </h:panelGrid> <h:panelGrid columns="1" style="padding-top: 5px; width: 98%;" > <p:commandButton value="Restore Original" style="width: 135px;" disabled="#{mappingSessionBean.disablePolyBtns}" action="${mappingSessionBean.restoreOriginalPolyView}" update=":formCenter:gmap :formEast:panelEast" /> </h:panelGrid> <comp:polygonAddPanel id="polygonAddPanelComp" /> <comp:polygonEditPanel id="polygonEditanelComp" /> </p:outputPanel> </h:form > </p:layoutUnit> <p:layoutUnit position="center" resizable="true" > <h:form id="formCenter" prependId="false" > <p:idleMonitor onidle="idleDialog.show();" timeout="#{sessionBean1.timeout}" > <p:ajax event="idle" listener="#{sessionBean1.idleListener}" update="@form" /> </p:idleMonitor> <comp:message id="messageComp" message="#{sessionBean1.message}" /> <p:outputPanel id="mapAddPolyPanel" > <h:panelGrid id="mapAddPolyPanelGrid" style="width: 90%; height: 35px; margin-top: 10px; display: block; position: relative;" columns="4" > <h:outputText value="Account:" /> <p:selectOneMenu style="width: 250px;" value="#{mappingSessionBean.selectedAccount}" > <f:selectItems value="#{sessionBean1.custAccountList}"/> <p:ajax listener="#{mappingSessionBean.accountSelectAction}" update="polyGrpDD gmap" /> </p:selectOneMenu> <h:outputText value="Polygon Group:" /> <p:selectOneMenu id="polyGrpDD" style="width: 250px;" value="#{mappingSessionBean.selectedPolyGroup}" > <f:selectItems value="#{mappingSessionBean.polygonGroupList}"/> <p:ajax listener="#{mappingSessionBean.polyGroupSelectAction}" update="@form :formEast:panelEast :formWest:panelWest gmap" /> </p:selectOneMenu> </h:panelGrid> <p:outputPanel id="mapPanel" style="top: 0px; width: 98%; left: 10px; position: relative;" rendered="#{mappingSessionBean.displayMapPanel}" > <p:gmap id="gmap" center="#{mappingSessionBean.mapCenter}" zoom="#{mappingSessionBean.mapZoom}" type="HYBRID" style="#{mappingSessionBean.polygonGmapStyle}" fitBounds="#{mappingSessionBean.fitBoundsFlag}" model="#{mappingSessionBean.mapModel}" disableDoubleClickZoom="true" widgetVar="map" > <p:ajax id="gmapAjax1" event="overlaySelect" listener="#{mappingSessionBean.onMapOverlaySelect}" update="@all :formEast:polyDetailPnl gmap messageComp:messagePnl :formCenter:mapPanel :formWest" /> <p:ajax id="gmapAjax3" event="pointSelect" listener="#{mappingSessionBean.onMapPointSelect}" update="gmap" /> <p:ajax id="gmapAjax2" event="stateChange" listener="#{mappingSessionBean.onMapStateChange}" /> <p:ajax id="gmapAjax4" event="markerDrag" listener="#{mappingSessionBean.onMapMarkerDrag}" update="gmap" /> </p:gmap> </p:outputPanel> </p:outputPanel> </h:form > </p:layoutUnit> <p:layoutUnit position="east" size="205" resizable="true" collapsible="true" header="Polygons" > <h:form id="formEast" prependId="=false" > <p:outputPanel id="panelEast" > <h:panelGrid id="grid2" columns="1" style="height: 500px; width: 96%; display: block;" > <h:panelGrid columns="2" > <p:selectBooleanCheckbox value="#{mappingSessionBean.displayAllPolygons}" > <p:ajax listener="#{mappingSessionBean.displayAllPolyAction}" update="@form :formCenter:gmap polyTable" /> </p:selectBooleanCheckbox> <h:outputText id="txt2" value=" Select all (Checked = visible)" /> </h:panelGrid> <!-- p:outputPanel id="panel2" style="position: relative; width: 100%; height: 300px; display: block; border-width: 1px; border-style: solid; border-color: #000000; overflow: auto;" --> <p:dataTable id="polyTable" var="polys" style="width: 98%;" value="#{mappingSessionBean.polyDataList}" rowKey="#{polys.name}" paginator="true" paginatorPosition="bottom" rows="10" selection="#{mappingSessionBean.selectedPolyData}" selectionMode="single" > <p:column headerText="" style="width: 20px;" > <p:selectBooleanCheckbox value="#{polys.visible}" > <p:ajax listener="#{mappingSessionBean.visibleCheckBoxAjax(polys)}" update="@form :formCenter:gmap" /> </p:selectBooleanCheckbox> </p:column> <p:column headerText="Name" > #{polys.name} </p:column> <p:ajax event="rowSelect" listener="#{mappingSessionBean.selectedPolyListener}" update="@form :formCenter:gmap" /> </p:dataTable> <!-- /p:outputPanel --> <h:outputText id="rxt3" value="Polygon Details" /> <p:outputPanel id="panel3" style="position: relative; width: 98%; height: 175px; display: block; border-width: 1px; border-style: solid; border-color: #000000; overflow: auto;" > <p:outputPanel id="polyDetailPnl" > <h:panelGrid columns="2" > <h:outputText value="Polygon Id: " /> <h:outputText value="#{mappingSessionBean.selectedPolyData.polygonId}" /> <h:outputText value="Name: " /> <h:outputText value="#{mappingSessionBean.selectedPolyData.name}" /> <h:outputText value="Active Flag: " /> <h:outputText value="#{mappingSessionBean.selectedPolyData.active}" /> <h:outputText value="Color: " /> <h:outputText value="#{mappingSessionBean.selectedPolyData.lineColor}" /> </h:panelGrid> <h:panelGrid columns="1" > <h:outputText value="Polygon Points: Lat., Lon." /> <h:outputText value="#{mappingSessionBean.selectedPolyPoints}" escape="false" /> </h:panelGrid> </p:outputPanel> </p:outputPanel> </h:panelGrid> </p:outputPanel> </h:form > </p:layoutUnit> </p:layout> <p:confirmDialog id="confirmDialog" widgetVar="confirmDialog" header="Confirm Polygon Add / Update / Disable" message="#{mappingSessionBean.polyConfirmMsg}" > <h:form> <p:commandButton value="Yes" style="margin-left: 10px;" actionListener="#{mappingSessionBean.confirmAddPolyContinueAction}" oncomplete="confirmDialog.hide();" update=":formCenter:gmap :formCenter:messageComp:messagePnl" /> <p:commandButton value="No" style="margin-left: 25px;" actionListener="#{mappingSessionBean.confirmAddPolyQuitAction}" oncomplete="confirmDialog.hide();" update="@form :formCenter:gmap" /> </h:form> </p:confirmDialog> </h:body> </html> </f:view>
0
11,662,496
07/26/2012 04:47:52
263,485
02/01/2010 11:43:54
560
14
How to update couchdb document in nano?
I need to get document, change/insert/delete some fields and put it back. "put" action requires revision of document, But in nano I cannot find function which takes revision as parameter and inserts doc in DB. How to do it?
couchdb
nano
null
null
null
07/26/2012 17:34:27
not a real question
How to update couchdb document in nano? === I need to get document, change/insert/delete some fields and put it back. "put" action requires revision of document, But in nano I cannot find function which takes revision as parameter and inserts doc in DB. How to do it?
1
1,063,372
06/30/2009 12:26:13
21,005
09/23/2008 09:47:05
4,412
158
Which programming concepts a beginner should learn in which order?
If someone wants to learn programming starting from scratch, in which order should I recommend to learn which programming concepts? Should he start with data-structures or algorithms. When obejct-oriented-programming should be introduced? Should he take a look at functional programming? Should he learn about pointers and heaps, even if I recommend in the end a language with automatic memory-management?
programming-concepts
subjective
null
null
null
04/30/2012 18:06:48
not constructive
Which programming concepts a beginner should learn in which order? === If someone wants to learn programming starting from scratch, in which order should I recommend to learn which programming concepts? Should he start with data-structures or algorithms. When obejct-oriented-programming should be introduced? Should he take a look at functional programming? Should he learn about pointers and heaps, even if I recommend in the end a language with automatic memory-management?
4
10,738,279
05/24/2012 13:17:39
793,260
06/10/2011 19:11:19
118
1
facebook app get userID bypass Oauth2.0
I would like to create a Facebook app similar to this page https://www.facebook.com/carlorinosg/app_150206515038121 user clicks like and the page checks if the user has click "like" with the correct userID ,it will allow user to access the content below. If i am not mistaken, all fb apps require user to go through the permission page before user can interact with the application. However this app seems to allow user to click the like and it gets the userID via $facebook->getUser(); ( if i am not mistaken) **without going through the permission page**.. i was wondering how do I achieve the same design as this facebook app ?
php
facebook
facebook-like
facebook-fql
null
null
open
facebook app get userID bypass Oauth2.0 === I would like to create a Facebook app similar to this page https://www.facebook.com/carlorinosg/app_150206515038121 user clicks like and the page checks if the user has click "like" with the correct userID ,it will allow user to access the content below. If i am not mistaken, all fb apps require user to go through the permission page before user can interact with the application. However this app seems to allow user to click the like and it gets the userID via $facebook->getUser(); ( if i am not mistaken) **without going through the permission page**.. i was wondering how do I achieve the same design as this facebook app ?
0
5,695,086
04/17/2011 17:25:20
712,327
04/17/2011 17:11:39
1
0
What architecture should we use for develop web application for 2 lake users in dot net 4.0(Sql Server 2008 in back end)
Please suggest me on above query; this application will be access by thousands of users any time. Thanks In Advance Deepak
.net
architecture
asp.net-4.0
null
null
04/18/2011 03:48:32
not a real question
What architecture should we use for develop web application for 2 lake users in dot net 4.0(Sql Server 2008 in back end) === Please suggest me on above query; this application will be access by thousands of users any time. Thanks In Advance Deepak
1
4,186,775
11/15/2010 16:52:39
332,299
05/04/2010 11:36:29
1
1
how do i build multiple CodeIgniter image galleries that have the same setup and different content?
I'm new to CodeIgniter, MVC, and OOP. I'm trying to make two image galleries that rely on different content, but are the same setup and functionality. What's the best way to set this up? Should I create a library containing all the functionality and call it in my controllers?
php
oop
mvc
codeigniter
null
null
open
how do i build multiple CodeIgniter image galleries that have the same setup and different content? === I'm new to CodeIgniter, MVC, and OOP. I'm trying to make two image galleries that rely on different content, but are the same setup and functionality. What's the best way to set this up? Should I create a library containing all the functionality and call it in my controllers?
0
10,670,417
05/20/2012 02:50:47
1,319,922
04/08/2012 05:25:08
19
2
How to create a page in ASP.NET MVC?
I am designing a MVC application in which i want to add capability of asking questions. In the application i do have a `QuestionController` which at present is normal controller. What i want is when a user click on the **Button** (of Question controller) then a new page with a random URL should be create as http://example.com/Question/ts5dfjdf and it allows the user to add a Question, its answer options (with radio buttons) and a comment box. and when user is finished with his question then he should have a `Save button` which saves the page with url and info....so that user can send the url to anyone and get the reply. How to develop this ? any code, tutorial or logic advice please Thank you
asp.net-mvc
html5
mvc
controller
null
05/20/2012 23:49:59
not a real question
How to create a page in ASP.NET MVC? === I am designing a MVC application in which i want to add capability of asking questions. In the application i do have a `QuestionController` which at present is normal controller. What i want is when a user click on the **Button** (of Question controller) then a new page with a random URL should be create as http://example.com/Question/ts5dfjdf and it allows the user to add a Question, its answer options (with radio buttons) and a comment box. and when user is finished with his question then he should have a `Save button` which saves the page with url and info....so that user can send the url to anyone and get the reply. How to develop this ? any code, tutorial or logic advice please Thank you
1
8,624,779
12/24/2011 13:19:10
1,112,524
12/22/2011 21:33:25
3
0
My python program is very slow! How can I speed it up? Am I doing something wrong?
I don't know if I should post all of my code on here at once because I worked really hard on my program (even if it isn't too good), so for now I'm just going to ask...How do I make my Python program faster? I have 3 suspects right now for it being so slow: 1. Maybe my computer is just slow 2. Maybe my internet is too slow (sometimes my program has to download the html of web pages and then it searches through the html for a specific piece of text) 3. My code is slow (too many loops maybe? something else? I'm new to this so I wouldn't know!) If anyone could offer me advice, I would greatly appreciate it! Thanks!
python
performance
null
null
null
12/24/2011 15:07:27
not a real question
My python program is very slow! How can I speed it up? Am I doing something wrong? === I don't know if I should post all of my code on here at once because I worked really hard on my program (even if it isn't too good), so for now I'm just going to ask...How do I make my Python program faster? I have 3 suspects right now for it being so slow: 1. Maybe my computer is just slow 2. Maybe my internet is too slow (sometimes my program has to download the html of web pages and then it searches through the html for a specific piece of text) 3. My code is slow (too many loops maybe? something else? I'm new to this so I wouldn't know!) If anyone could offer me advice, I would greatly appreciate it! Thanks!
1
9,318,897
02/16/2012 20:54:21
1,019,039
10/28/2011 19:56:44
1
0
Trying to determine if jquery draggable and droppable methods are keyboard accessible?
I am trying to evaluate if I can use the jquery .draggable() and .droppable() methods to implement drag and drop and was wondering if it was keyboard accessible. From what I can tell of the demos, the draggable section does not get focus when I tab. I did not find a jquery drag and drop plugin that was accessible either. Thoughts?
jquery
drag-and-drop
accessibility
null
null
02/18/2012 02:43:19
not constructive
Trying to determine if jquery draggable and droppable methods are keyboard accessible? === I am trying to evaluate if I can use the jquery .draggable() and .droppable() methods to implement drag and drop and was wondering if it was keyboard accessible. From what I can tell of the demos, the draggable section does not get focus when I tab. I did not find a jquery drag and drop plugin that was accessible either. Thoughts?
4
6,185,625
05/31/2011 09:34:17
174,892
09/17/2009 11:03:14
129
10
SQL select first weekday prior to certain date
Hello I have a report that is currently being run manually on the first weekday prior to the 20th of the month. I would like to automate this so am going to create a job to run monthly. What I need is to figure out is how to have it run on the first weekday prior to the 20th of the current month. So if the 20th falls on a Saturday run on Friday 19th. If 20th falls on Sunday, run on Friday 18th. It always needs to default to first working day... am not sure how to do this so need help! Clarification i.e. SELECT DATE WHERE DATE <20th Current Month and weekday
sql
sql-server
sql-server-2008
null
null
null
open
SQL select first weekday prior to certain date === Hello I have a report that is currently being run manually on the first weekday prior to the 20th of the month. I would like to automate this so am going to create a job to run monthly. What I need is to figure out is how to have it run on the first weekday prior to the 20th of the current month. So if the 20th falls on a Saturday run on Friday 19th. If 20th falls on Sunday, run on Friday 18th. It always needs to default to first working day... am not sure how to do this so need help! Clarification i.e. SELECT DATE WHERE DATE <20th Current Month and weekday
0
11,178,616
06/24/2012 15:19:13
755,000
05/16/2011 01:56:59
107
1
VLC compilation error in Eclipse (in Ubuntu)
I am trying to export VLC to Eclipse and compile it from there (in Ubuntu). There have been a number of errors mostly related to the location of some of the header files that I could fix. But now I am getting two errors that I don't know how to fix. The errors are: **unknown type name ‘pthread_rwlock_t’** **unknown type name ‘pthread_spinlock_t’** both of these are used in **"vlc_threads.h"** Any help is highly appreciated. Thank you very much, TJ
eclipse
ubuntu
compilation
error-message
vlc
06/27/2012 11:54:46
off topic
VLC compilation error in Eclipse (in Ubuntu) === I am trying to export VLC to Eclipse and compile it from there (in Ubuntu). There have been a number of errors mostly related to the location of some of the header files that I could fix. But now I am getting two errors that I don't know how to fix. The errors are: **unknown type name ‘pthread_rwlock_t’** **unknown type name ‘pthread_spinlock_t’** both of these are used in **"vlc_threads.h"** Any help is highly appreciated. Thank you very much, TJ
2
7,366,093
09/09/2011 18:44:27
609,042
02/09/2011 01:00:18
99
5
A prototyping language with the ability to be fast
as an engineering student with a strong mathemathical background, i dealing some problems like this at university: - (numerical) Simulations - AI Problems - Robotics - Control Systems - and some more as you can see some are just numerical ones, others have to process some kinds of symbols. currently i'm working with java, but i'm not very pleased with it (can't say exactly why, probably a personal taste) and now i'm searching for a programming language, in which i can easily prototype new algorithms, like for example in python, and don't care about low level stuff, but has the ability to speed things up if neccessary, e.g. with concurrent/parallel programming, etc. (writing it in python and rewrite it in C/C++ isn't really a option i prefer...) to sum it up: - easy to prototype, but - the ability to speed algorithms up - syntax without boilerplate stuff like in java - syntax which is easy to read (i know this could be achived with the most, but some language encourage you more...) i've looked around at sites, like http://rosettacode.org/ and picked 2 or 3 favorites: Go, Lisp (and maybe Haskell) but other recommandations are welcome
math
prototype
lisp
artificial-intelligence
go
09/10/2011 18:29:50
not constructive
A prototyping language with the ability to be fast === as an engineering student with a strong mathemathical background, i dealing some problems like this at university: - (numerical) Simulations - AI Problems - Robotics - Control Systems - and some more as you can see some are just numerical ones, others have to process some kinds of symbols. currently i'm working with java, but i'm not very pleased with it (can't say exactly why, probably a personal taste) and now i'm searching for a programming language, in which i can easily prototype new algorithms, like for example in python, and don't care about low level stuff, but has the ability to speed things up if neccessary, e.g. with concurrent/parallel programming, etc. (writing it in python and rewrite it in C/C++ isn't really a option i prefer...) to sum it up: - easy to prototype, but - the ability to speed algorithms up - syntax without boilerplate stuff like in java - syntax which is easy to read (i know this could be achived with the most, but some language encourage you more...) i've looked around at sites, like http://rosettacode.org/ and picked 2 or 3 favorites: Go, Lisp (and maybe Haskell) but other recommandations are welcome
4
11,366,213
07/06/2012 16:33:05
1,505,486
07/06/2012 00:48:55
1
0
Background Intelligent Transfer Service (BITS)
anyone has the source code of BITS or similar implemenation? Thanks!
c#
java
c
null
null
07/06/2012 16:43:11
not a real question
Background Intelligent Transfer Service (BITS) === anyone has the source code of BITS or similar implemenation? Thanks!
1
2,586,842
04/06/2010 17:18:42
310,253
04/06/2010 17:18:42
1
0
javascript if/else or ternary operator is faster?
Which method is faster or more responsive in javascript, if/else or the ternary operator? Is it preferred to use one or the other and if so, for what reasons?
javascript
null
null
null
null
null
open
javascript if/else or ternary operator is faster? === Which method is faster or more responsive in javascript, if/else or the ternary operator? Is it preferred to use one or the other and if so, for what reasons?
0
6,416,270
06/20/2011 19:19:39
270,760
02/11/2010 01:25:34
970
42
ZBAR sdk free to use?
So I have read over this page a couple of times http://zbar.sourceforge.net/iphone/sdkdoc/licensing.html Maybe its just been a long weekend or Im missing something but the page is almost suggesting that we need to "pay" something to use? Even though it states its open source. Or that Apple might not allow the SDK? So question is.. do we need to pay for use of this SDK? Will Apple approve an app using this SDK, and does anyone know of any approved apps that are using this sdk? Thanks in advance!
iphone
iphone-sdk-4.0
iphone-sdk-3.0
null
null
06/21/2011 05:50:46
off topic
ZBAR sdk free to use? === So I have read over this page a couple of times http://zbar.sourceforge.net/iphone/sdkdoc/licensing.html Maybe its just been a long weekend or Im missing something but the page is almost suggesting that we need to "pay" something to use? Even though it states its open source. Or that Apple might not allow the SDK? So question is.. do we need to pay for use of this SDK? Will Apple approve an app using this SDK, and does anyone know of any approved apps that are using this sdk? Thanks in advance!
2
3,979,201
10/20/2010 14:55:01
410,802
08/04/2010 12:59:33
8
1
Xcode google map navigation
I currently have an application which will drop pins onto various points of interest on a map, all done programmatically on the iPhone. What I am aiming to get done now is to allow a user to navigate to that location and get turn by turn directions by calling up the built in navigation tools on the iPhone. Is there anyway that I can do this? I've scoured the developer center and searched both google and here and couldn't find anything about this.
iphone
objective-c
xcode
google
maps
null
open
Xcode google map navigation === I currently have an application which will drop pins onto various points of interest on a map, all done programmatically on the iPhone. What I am aiming to get done now is to allow a user to navigate to that location and get turn by turn directions by calling up the built in navigation tools on the iPhone. Is there anyway that I can do this? I've scoured the developer center and searched both google and here and couldn't find anything about this.
0
10,361,402
04/28/2012 07:05:54
1,262,045
03/11/2012 09:04:14
4
0
change text direction to right in jqueryUI dialog
i want to change the direction of dialog title in jquery UI dialog to right.
javascript
jquery
css
jquery-ui
null
04/28/2012 16:10:59
not a real question
change text direction to right in jqueryUI dialog === i want to change the direction of dialog title in jquery UI dialog to right.
1
6,768,544
07/20/2011 21:03:25
660,503
03/15/2011 11:57:02
50
1
Jaxb, Class has two properties of the same name
with jaxb, i try to read a xml file only a few element in xml file is interesting, so i would like to skip many element [xml content][1] xml i try to read <?xml version="1.0" encoding="UTF-8"?> <!--Sample XML file generated by XMLSpy v2010 rel. 3 sp1 (http://www.altova.com)--> <flx:ModeleREP xsi:schemaLocation="urn:test:mod_rep.xsd mod_rep.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:flx="urn:test:mod_rep.xsd"> <flx:DocumentHeader> <flx:Identification v="04489"/> </flx:DocumentHeader> <flx:TimeSeries> <flx:Identification v="test1a"/> <flx:BusinessType v="A01"/> <flx:Product v="123a"/> <flx:ResourceObject codingScheme="N" v="testa"/> <flx:Period> <flx:TimeInterval v="2011-07-02T00:00/2011-07-16T00:00"/> <flx:Resolution v="PT2H"/> <flx:Pt> <flx:P v="1"/> <flx:Q unitCode="String" v="1.0"/> <flx:A currencyIdentifier="String" v="195.0"/> </flx:Pt> </flx:Period> </flx:TimeSeries> <flx:TimeSeries> <flx:Identification v="test2a"/> <flx:BusinessType v="A01"/> <flx:Product v="a123b"/> <flx:ResourceObject codingScheme="N" v="test2"/> <flx:Period> <flx:TimeInterval v="2011-07-02T00:00/2011-07-16T00:00"/> <flx:Resolution v="PT2H"/> <flx:Pt> <flx:P v="1"/> <flx:Q unitCode="String" v="1.0"/> <flx:A currencyIdentifier="String" v="195.0"/> </flx:Pt> <flx:Pt> <flx:P v="2"/> <flx:Q unitCode="String" v="1.0"/> <flx:A currencyIdentifier="String" v="195.0"/> </flx:Pt> </flx:Period> </flx:TimeSeries> </flx:ModeleREP> my class @XmlRootElement(name="ModeleREP", namespace="urn:test:mod_rep.xsd") public class ModeleREP { @XmlElement(name="TimeSeries") protected List<TimeSeries> timeSeries; public List<TimeSeries> getTimeSeries() { if (this.timeSeries == null) { this.timeSeries = new ArrayList<TimeSeries>(); } return this.timeSeries; } public void setTimeSeries(List<TimeSeries> timeSeries) { this.timeSeries = timeSeries; } } @XmlAccessorType(XmlAccessType.FIELD) @XmlRootElement(name = "TimeSeries") public class TimeSeries { @XmlElement(name="ResourceObject") protected RessourceObject resourceObject; @XmlElement(name = "Period") protected Period period; public RessourceObject getResourceObject() { return this.resourceObject; } public void setResourceObject(RessourceObject resourceObject) { this.resourceObject = resourceObject; } public Period getPeriod() { return this.period; } public void setPeriod(Period period) { this.period = period; } } @XmlAccessorType(XmlAccessType.FIELD) @XmlRootElement(name = "ResourceObject") public class RessourceObject { @XmlAttribute(name = "codingScheme") protected String codingScheme; @XmlAttribute(name = "v") protected String v; public String getCodingScheme() { return this.codingScheme; } public void setCodingScheme(String codingScheme) { this.codingScheme = codingScheme; } public String getV() { return this.v; } public void setV(String v) { this.v = v; } } @XmlAccessorType(XmlAccessType.NONE) @XmlRootElement(name = "Period") public class Period { @XmlElement(name = "TimeInterval") protected TimeInterval timeInterval; @XmlElement(name = "Pt") protected List<Pt> pt; public TimeInterval getTimeInterval() { return this.timeInterval; } public void setTimeInterval(TimeInterval timeInterval) { this.timeInterval = timeInterval; } public List<Pt> getPt() { if (this.pt == null) { this.pt = new ArrayList<Pt>(); } return this.pt; } public void setPt(List<Pt> pt) { this.pt=pt; } } @XmlAccessorType(XmlAccessType.FIELD) @XmlRootElement(name = "TimeInterval") public class TimeInterval { @XmlAttribute(name = "v") private String timeIntervalPeriod; public String getTimeIntervalPeriod() { return this.timeIntervalPeriod; } public void setTimeIntervalPeriod(String timeIntervalPeriod) { this.timeIntervalPeriod = timeIntervalPeriod; } } @XmlAccessorType(XmlAccessType.FIELD) @XmlRootElement(name = "Pt") public class Pt { @XmlElement(name = "P") protected P p; @XmlElement(name = "A") protected A a; public P getP() { return this.p; } public void setP(P p) { this.p = p; } public A getA() { return this.a; } public void setA(A a) { this.a = a; } } @XmlAccessorType(XmlAccessType.FIELD) @XmlRootElement(name = "P") public class P { @XmlAttribute(name = "v") protected String position; public String getPosition(){ return this.position; } public void setPosition(String position){ this.position=position; } } @XmlAccessorType(XmlAccessType.FIELD) @XmlRootElement(name = "A") public class A { @XmlAttribute(name = "v") protected String calculatedAmount; public String getCalculatedAmount() { return this.calculatedAmount; } public void setCalculatedAmount(String calculatedAmount) { this.calculatedAmount = calculatedAmount; } } when i try to read the xlm file i get i get com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions Class has two properties of the same name "timeSeries" this problem is related to the following location: at public java.util.List testjaxp.ModeleREP.getTimeSeries() at testjaxp.ModeleREP this problem is related to the following location: at protected java.util.List testjaxp.ModeleREP.timeSeries at testjaxp.ModeleREP [1]: http://www.copypastecode.com/75029/ i don't understand this error
java
xml
jaxb
null
null
07/22/2011 13:58:39
not a real question
Jaxb, Class has two properties of the same name === with jaxb, i try to read a xml file only a few element in xml file is interesting, so i would like to skip many element [xml content][1] xml i try to read <?xml version="1.0" encoding="UTF-8"?> <!--Sample XML file generated by XMLSpy v2010 rel. 3 sp1 (http://www.altova.com)--> <flx:ModeleREP xsi:schemaLocation="urn:test:mod_rep.xsd mod_rep.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:flx="urn:test:mod_rep.xsd"> <flx:DocumentHeader> <flx:Identification v="04489"/> </flx:DocumentHeader> <flx:TimeSeries> <flx:Identification v="test1a"/> <flx:BusinessType v="A01"/> <flx:Product v="123a"/> <flx:ResourceObject codingScheme="N" v="testa"/> <flx:Period> <flx:TimeInterval v="2011-07-02T00:00/2011-07-16T00:00"/> <flx:Resolution v="PT2H"/> <flx:Pt> <flx:P v="1"/> <flx:Q unitCode="String" v="1.0"/> <flx:A currencyIdentifier="String" v="195.0"/> </flx:Pt> </flx:Period> </flx:TimeSeries> <flx:TimeSeries> <flx:Identification v="test2a"/> <flx:BusinessType v="A01"/> <flx:Product v="a123b"/> <flx:ResourceObject codingScheme="N" v="test2"/> <flx:Period> <flx:TimeInterval v="2011-07-02T00:00/2011-07-16T00:00"/> <flx:Resolution v="PT2H"/> <flx:Pt> <flx:P v="1"/> <flx:Q unitCode="String" v="1.0"/> <flx:A currencyIdentifier="String" v="195.0"/> </flx:Pt> <flx:Pt> <flx:P v="2"/> <flx:Q unitCode="String" v="1.0"/> <flx:A currencyIdentifier="String" v="195.0"/> </flx:Pt> </flx:Period> </flx:TimeSeries> </flx:ModeleREP> my class @XmlRootElement(name="ModeleREP", namespace="urn:test:mod_rep.xsd") public class ModeleREP { @XmlElement(name="TimeSeries") protected List<TimeSeries> timeSeries; public List<TimeSeries> getTimeSeries() { if (this.timeSeries == null) { this.timeSeries = new ArrayList<TimeSeries>(); } return this.timeSeries; } public void setTimeSeries(List<TimeSeries> timeSeries) { this.timeSeries = timeSeries; } } @XmlAccessorType(XmlAccessType.FIELD) @XmlRootElement(name = "TimeSeries") public class TimeSeries { @XmlElement(name="ResourceObject") protected RessourceObject resourceObject; @XmlElement(name = "Period") protected Period period; public RessourceObject getResourceObject() { return this.resourceObject; } public void setResourceObject(RessourceObject resourceObject) { this.resourceObject = resourceObject; } public Period getPeriod() { return this.period; } public void setPeriod(Period period) { this.period = period; } } @XmlAccessorType(XmlAccessType.FIELD) @XmlRootElement(name = "ResourceObject") public class RessourceObject { @XmlAttribute(name = "codingScheme") protected String codingScheme; @XmlAttribute(name = "v") protected String v; public String getCodingScheme() { return this.codingScheme; } public void setCodingScheme(String codingScheme) { this.codingScheme = codingScheme; } public String getV() { return this.v; } public void setV(String v) { this.v = v; } } @XmlAccessorType(XmlAccessType.NONE) @XmlRootElement(name = "Period") public class Period { @XmlElement(name = "TimeInterval") protected TimeInterval timeInterval; @XmlElement(name = "Pt") protected List<Pt> pt; public TimeInterval getTimeInterval() { return this.timeInterval; } public void setTimeInterval(TimeInterval timeInterval) { this.timeInterval = timeInterval; } public List<Pt> getPt() { if (this.pt == null) { this.pt = new ArrayList<Pt>(); } return this.pt; } public void setPt(List<Pt> pt) { this.pt=pt; } } @XmlAccessorType(XmlAccessType.FIELD) @XmlRootElement(name = "TimeInterval") public class TimeInterval { @XmlAttribute(name = "v") private String timeIntervalPeriod; public String getTimeIntervalPeriod() { return this.timeIntervalPeriod; } public void setTimeIntervalPeriod(String timeIntervalPeriod) { this.timeIntervalPeriod = timeIntervalPeriod; } } @XmlAccessorType(XmlAccessType.FIELD) @XmlRootElement(name = "Pt") public class Pt { @XmlElement(name = "P") protected P p; @XmlElement(name = "A") protected A a; public P getP() { return this.p; } public void setP(P p) { this.p = p; } public A getA() { return this.a; } public void setA(A a) { this.a = a; } } @XmlAccessorType(XmlAccessType.FIELD) @XmlRootElement(name = "P") public class P { @XmlAttribute(name = "v") protected String position; public String getPosition(){ return this.position; } public void setPosition(String position){ this.position=position; } } @XmlAccessorType(XmlAccessType.FIELD) @XmlRootElement(name = "A") public class A { @XmlAttribute(name = "v") protected String calculatedAmount; public String getCalculatedAmount() { return this.calculatedAmount; } public void setCalculatedAmount(String calculatedAmount) { this.calculatedAmount = calculatedAmount; } } when i try to read the xlm file i get i get com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions Class has two properties of the same name "timeSeries" this problem is related to the following location: at public java.util.List testjaxp.ModeleREP.getTimeSeries() at testjaxp.ModeleREP this problem is related to the following location: at protected java.util.List testjaxp.ModeleREP.timeSeries at testjaxp.ModeleREP [1]: http://www.copypastecode.com/75029/ i don't understand this error
1
8,473,763
12/12/2011 11:43:22
1,093,605
12/12/2011 11:32:43
1
0
what does getPropertyInfo method in java JDBC Driver Interface supposed to return?
i don't understand what was written in the documentation here <br> http://docs.oracle.com/javase/1.4.2/docs/api/java/sql/Driver.html#getPropertyInfo%28java.lang.String,%20java.util.Properties%29 <br> i don't even know who may use this method .. ?
sql
database
jdbc
null
null
12/12/2011 18:39:33
not a real question
what does getPropertyInfo method in java JDBC Driver Interface supposed to return? === i don't understand what was written in the documentation here <br> http://docs.oracle.com/javase/1.4.2/docs/api/java/sql/Driver.html#getPropertyInfo%28java.lang.String,%20java.util.Properties%29 <br> i don't even know who may use this method .. ?
1
3,143,928
06/29/2010 19:12:29
334,369
05/06/2010 11:37:11
458
5
Is there any themes available for .net windows application like wpf?
Is there any themes available for .net windows application like WPF? how to use that.where to learn it?
wpf
winforms
themes
null
null
06/12/2012 09:50:56
not constructive
Is there any themes available for .net windows application like wpf? === Is there any themes available for .net windows application like WPF? how to use that.where to learn it?
4
1,075,976
07/02/2009 18:33:09
39,677
11/03/2008 21:48:03
2,061
2
Domaan-drive design newbie, please explain 'value objects' and 'services' briefly
I am reading http://en.wikipedia.org/wiki/Domain-driven_design right now, and I just need 2 quick examples so I understand what 'value objects' and 'services' are in the context of DDD. * Value Objects: An object that describes a characteristic of a thing. Value Objects have no conceptual identity. They are typically read-only objects and may be shared using the Flyweight design pattern. * Services: When an operation does not conceptually belong to any object. Following the natural contours of the problem, you can implement these operations in services. The Service concept is called "Pure Fabrication" in GRASP. Value objexts: can someone give me a simple example this please? Services: so if it isn't an object/entity, nor belong to repository/factories then its a service? I don't understand this.
domain-driven-design
asp.net-mvc
null
null
null
null
open
Domaan-drive design newbie, please explain 'value objects' and 'services' briefly === I am reading http://en.wikipedia.org/wiki/Domain-driven_design right now, and I just need 2 quick examples so I understand what 'value objects' and 'services' are in the context of DDD. * Value Objects: An object that describes a characteristic of a thing. Value Objects have no conceptual identity. They are typically read-only objects and may be shared using the Flyweight design pattern. * Services: When an operation does not conceptually belong to any object. Following the natural contours of the problem, you can implement these operations in services. The Service concept is called "Pure Fabrication" in GRASP. Value objexts: can someone give me a simple example this please? Services: so if it isn't an object/entity, nor belong to repository/factories then its a service? I don't understand this.
0
11,214,567
06/26/2012 19:25:24
1,405,318
05/19/2012 15:52:58
113
3
Seaching a specific pattern for photoshop
any one knows how to find this pattern: http://xn--80aqafcrtq.cc/img/1/7/4/174334.jpg It looks so awesome, I really need it! Thanks for your help!
design-patterns
photoshop
null
null
null
06/29/2012 00:50:38
off topic
Seaching a specific pattern for photoshop === any one knows how to find this pattern: http://xn--80aqafcrtq.cc/img/1/7/4/174334.jpg It looks so awesome, I really need it! Thanks for your help!
2
3,151,322
06/30/2010 16:28:37
167,897
09/03/2009 13:57:36
550
33
Some dev forgot to lock their machine, Tricks! to play?
Some developers are just lazy and forget to lock their session when leaving. We strongly believe here that such bad habits should be punished. It's **trick or treat**: - Invert mouse buttons - Change wallpaper for a nice message in picture - Send email from his account to *everyone*: "Bringing cakes tomorrow for being so bad!" What's your trick to play on them?
fun
trick
null
null
null
06/30/2010 16:32:27
off topic
Some dev forgot to lock their machine, Tricks! to play? === Some developers are just lazy and forget to lock their session when leaving. We strongly believe here that such bad habits should be punished. It's **trick or treat**: - Invert mouse buttons - Change wallpaper for a nice message in picture - Send email from his account to *everyone*: "Bringing cakes tomorrow for being so bad!" What's your trick to play on them?
2
4,716,289
01/17/2011 18:06:26
576,187
01/14/2011 20:44:09
1
1
how to create jar file in eclipse for applet
i have problem in creating jar file , error occurs only in applet creating jar file not while creating in jframes error is: "A Java Exception ha occurred" but only in java applet not in java frame thank you
file
jar
applet
null
null
05/02/2012 19:03:16
not a real question
how to create jar file in eclipse for applet === i have problem in creating jar file , error occurs only in applet creating jar file not while creating in jframes error is: "A Java Exception ha occurred" but only in java applet not in java frame thank you
1
2,133,174
01/25/2010 15:12:06
258,515
01/25/2010 15:12:06
1
0
Mixed Table Type with other types as parameters to Stored Procedured c#
I am asking about how could i pass multi parameters to a stored procedure, one of these parameters is user defined table. When I tried to do it it shows this error: INSERT INTO BD (ID, VALUE, BID) values( (SELECT t1.ID, t1.Value FROM @Table AS t1),someintvalue) here @Table is the user defined table parameter. Msg 116, Level 16, State 1, Procedure UpdateBD, Line 12 Only one expression can be specified in the select list when the subquery is not introduced with EXISTS. Msg 109, Level 15, State 1, Procedure UpdateBD, Line 11 There are more columns in the INSERT statement than values specified in the VALUES clause. The number of values in the VALUES clause must match the number of columns specified in the INSERT statement. Thank you
c#
stored
procedures
parameters
null
null
open
Mixed Table Type with other types as parameters to Stored Procedured c# === I am asking about how could i pass multi parameters to a stored procedure, one of these parameters is user defined table. When I tried to do it it shows this error: INSERT INTO BD (ID, VALUE, BID) values( (SELECT t1.ID, t1.Value FROM @Table AS t1),someintvalue) here @Table is the user defined table parameter. Msg 116, Level 16, State 1, Procedure UpdateBD, Line 12 Only one expression can be specified in the select list when the subquery is not introduced with EXISTS. Msg 109, Level 15, State 1, Procedure UpdateBD, Line 11 There are more columns in the INSERT statement than values specified in the VALUES clause. The number of values in the VALUES clause must match the number of columns specified in the INSERT statement. Thank you
0
11,119,069
06/20/2012 11:59:47
1,469,144
06/20/2012 11:54:03
1
0
iTunes Connect Sales and Trends Delay?
I have a paid application on the App Store, which when a user downloads, creates a new "user" in my database. From this database, I see that I had approximately 140 new devices added yesterday, which means 140 new people have purchased my app. However, when in iTunes Connect, I only see 1 sale for yesterday. Is there some sort of delay in them displaying sales data for a day? Or is it possible that my paid App has just been released on some jailbroken app store for free? Just wondering if anyone has experienced this, and what they did to figure it out. Thanks!
iphone
ios
itunesconnect
null
null
06/24/2012 01:51:37
off topic
iTunes Connect Sales and Trends Delay? === I have a paid application on the App Store, which when a user downloads, creates a new "user" in my database. From this database, I see that I had approximately 140 new devices added yesterday, which means 140 new people have purchased my app. However, when in iTunes Connect, I only see 1 sale for yesterday. Is there some sort of delay in them displaying sales data for a day? Or is it possible that my paid App has just been released on some jailbroken app store for free? Just wondering if anyone has experienced this, and what they did to figure it out. Thanks!
2
9,620,906
03/08/2012 16:12:49
22,399
09/25/2008 21:09:10
1,456
23
Logging Facebook API Urls with Facebook C# SDK
I am using the [Facebook C# SDK][1]. Is there any way, using the API as written, to see the exact URL that the SDK sends to Facebook? Especially for GET requests (though POST requests would be nice, too -- and seeing what was POSTed as well!) I want to keep a log of these requests and the success / failure of each call. It would be extremely useful for diagnosing issues. [1]: http://csharpsdk.org/
facebook-c#-sdk
null
null
null
null
null
open
Logging Facebook API Urls with Facebook C# SDK === I am using the [Facebook C# SDK][1]. Is there any way, using the API as written, to see the exact URL that the SDK sends to Facebook? Especially for GET requests (though POST requests would be nice, too -- and seeing what was POSTed as well!) I want to keep a log of these requests and the success / failure of each call. It would be extremely useful for diagnosing issues. [1]: http://csharpsdk.org/
0
11,589,819
07/21/2012 05:44:28
1,542,224
07/21/2012 05:40:52
1
0
C# code to generate certificate request (CSR) and get it signed from CA server and receive it
Please help me with dotnet code if any one of you have done this before or experience of doing My Requirement is follows. 1.Generate a Certificate Signing Request(CSR) 2.Send it to CA Server for Public key. 3.Receive it at my end extract its private key. 4.Protect with password and send to mail. My Dev elopement machine is windows xp.VS2010. Thanks for your help.
c#
asp.net
csr
ca
null
07/21/2012 06:29:53
not a real question
C# code to generate certificate request (CSR) and get it signed from CA server and receive it === Please help me with dotnet code if any one of you have done this before or experience of doing My Requirement is follows. 1.Generate a Certificate Signing Request(CSR) 2.Send it to CA Server for Public key. 3.Receive it at my end extract its private key. 4.Protect with password and send to mail. My Dev elopement machine is windows xp.VS2010. Thanks for your help.
1
3,283,310
07/19/2010 17:17:32
391,795
07/14/2010 16:16:27
1
1
Assert that a WebElement is not present
In tests that I write, if I want to assert a WebElement is present on the page, I can do a simple: driver.findElement(By.linkText("Test Search")); This will pass if it exists and it will bomb out if it does not exist. But now I want to assert that a link does *not* exist. I am unclear how to do this since the code above does not return a boolean.
webdriver
null
null
null
null
null
open
Assert that a WebElement is not present === In tests that I write, if I want to assert a WebElement is present on the page, I can do a simple: driver.findElement(By.linkText("Test Search")); This will pass if it exists and it will bomb out if it does not exist. But now I want to assert that a link does *not* exist. I am unclear how to do this since the code above does not return a boolean.
0
11,732,230
07/31/2012 02:19:13
702,275
04/11/2011 13:46:41
1,709
72
What is the name and location of the Nginx config file (htaccess equivalent)?
There are many [tutorials][1] on how to write Nginx rewrite rules to mimic Apache's .htaccess file but I can't confidently say I know what the name or location of this so-called Nginx config file actually is. I'm specifically looking for the Nginx config file that allows you to write server path and PHP directives. I'm using Ubuntu 12 linux and Codeigniter as my PHP framework. Here's what I know so far: 1. This file: `/etc/nginx/nginx.conf` despite its enticing name is apparently not the place for server directives. 2. This file: `/etc/nginx/sites-available/default` seems like what I need (i'm able to generate php errors specific to my app) but I can't get the Codeigniter-specific path routing correct. First of all, is this the "config" file/.htaccess equivalent everyone speaks of? Any guidance would be greatly appreciated. [1]: http://hiteshjoshi.com/linux/secure-nginx-and-codeigniter-configuration.html
php
apache
.htaccess
codeigniter
nginx
07/31/2012 13:59:49
off topic
What is the name and location of the Nginx config file (htaccess equivalent)? === There are many [tutorials][1] on how to write Nginx rewrite rules to mimic Apache's .htaccess file but I can't confidently say I know what the name or location of this so-called Nginx config file actually is. I'm specifically looking for the Nginx config file that allows you to write server path and PHP directives. I'm using Ubuntu 12 linux and Codeigniter as my PHP framework. Here's what I know so far: 1. This file: `/etc/nginx/nginx.conf` despite its enticing name is apparently not the place for server directives. 2. This file: `/etc/nginx/sites-available/default` seems like what I need (i'm able to generate php errors specific to my app) but I can't get the Codeigniter-specific path routing correct. First of all, is this the "config" file/.htaccess equivalent everyone speaks of? Any guidance would be greatly appreciated. [1]: http://hiteshjoshi.com/linux/secure-nginx-and-codeigniter-configuration.html
2
9,903,260
03/28/2012 07:53:09
1,285,305
03/22/2012 07:45:08
20
1
Using Jquery - By selecting radio buttons need to bind data from database
I have two radio buttons in my webpage using jquery. I binded data from .asmx file by selecting the radio button. Is it possible bind data from database while selecting the radio buttons. Please verify the below code that I applied <script type="text/javascript"> $(function () { var firstParam = 'F'; var radBtn = $("table.tbl input:radio"); var lBox = $('select[id$=lb]'); $(radBtn).click(function () { lBox.empty(); var firstParam = $(':radio:checked').val(); $.ajax({ type: "POST", url: "Services/EmployeeList.asmx/FetchEmpOnGender", data: "{empSex:\"" + firstParam + "\"}", contentType: "application/json; charset=utf-8", dataType: "json", success: function (msg) { var gender = msg.d; if (gender.length > 0) { var listItems = []; for (var key in gender) { listItems.push('<option value="' + key + '">' + gender[key].FName + '</option>'); } $(lBox).append(listItems.join('')); } else { alert("No records found"); } }, error: function (XMLHttpRequest, textStatus, errorThrown) { alert(textStatus); } }); }); }); </script> Thanks In Advance Bhanu Prakash Inturi
c#
javascript
jquery
asp.net
null
03/28/2012 14:37:24
not a real question
Using Jquery - By selecting radio buttons need to bind data from database === I have two radio buttons in my webpage using jquery. I binded data from .asmx file by selecting the radio button. Is it possible bind data from database while selecting the radio buttons. Please verify the below code that I applied <script type="text/javascript"> $(function () { var firstParam = 'F'; var radBtn = $("table.tbl input:radio"); var lBox = $('select[id$=lb]'); $(radBtn).click(function () { lBox.empty(); var firstParam = $(':radio:checked').val(); $.ajax({ type: "POST", url: "Services/EmployeeList.asmx/FetchEmpOnGender", data: "{empSex:\"" + firstParam + "\"}", contentType: "application/json; charset=utf-8", dataType: "json", success: function (msg) { var gender = msg.d; if (gender.length > 0) { var listItems = []; for (var key in gender) { listItems.push('<option value="' + key + '">' + gender[key].FName + '</option>'); } $(lBox).append(listItems.join('')); } else { alert("No records found"); } }, error: function (XMLHttpRequest, textStatus, errorThrown) { alert(textStatus); } }); }); }); </script> Thanks In Advance Bhanu Prakash Inturi
1
9,984,103
04/02/2012 21:28:43
622,194
02/17/2011 21:50:38
107
0
Opinions on what course to select for next semester
I am studying BS in software engineering and finishing my second year. Now is the annual course registration for next semesters. I want to get some opinion or advice from pepole that is working as software developers or have some experience on whether to take Computer Network and Security course or Graph Theory course. I have learnt something about graphs both in discrete math and algorithms course. I find graph interesting. I know there are lots of problems in the computer science and software development that are based on graphs. Would it be usefult to take more mathematical approach on graphs? I find the game industry exciting and working around game engines is something i would like to do after i finish the degree. But i cant decide whether to take the graph theory or pick up some knowledge about Computer Networks that i dont find interesting but might be useful for the future. I want to see if I can get opinion from experienced people on what course I should take next semester. (Sorry if this question does not apply here.)
graph
software-engineering
network-protocols
null
null
04/03/2012 12:06:44
off topic
Opinions on what course to select for next semester === I am studying BS in software engineering and finishing my second year. Now is the annual course registration for next semesters. I want to get some opinion or advice from pepole that is working as software developers or have some experience on whether to take Computer Network and Security course or Graph Theory course. I have learnt something about graphs both in discrete math and algorithms course. I find graph interesting. I know there are lots of problems in the computer science and software development that are based on graphs. Would it be usefult to take more mathematical approach on graphs? I find the game industry exciting and working around game engines is something i would like to do after i finish the degree. But i cant decide whether to take the graph theory or pick up some knowledge about Computer Networks that i dont find interesting but might be useful for the future. I want to see if I can get opinion from experienced people on what course I should take next semester. (Sorry if this question does not apply here.)
2
3,575,555
08/26/2010 13:32:33
431,887
08/26/2010 13:32:33
1
0
ZXING and LWUIT
I am using LWUIT to develop ZXING application which stops taking video when video come across with a QR code. I have seen j2me codes for zxing. Unforunately I found out that I cannot use some codes coz Canvas has been used a lot which LWUIT has no canvas.You have sample codes for LWUIT users to stop gettting video when camera saw a QRCode? I will be appreciated if you can provide me a sample code or tips for that. Thank you so much from now. Cheers Altaico
lwuit
zxing
null
null
null
null
open
ZXING and LWUIT === I am using LWUIT to develop ZXING application which stops taking video when video come across with a QR code. I have seen j2me codes for zxing. Unforunately I found out that I cannot use some codes coz Canvas has been used a lot which LWUIT has no canvas.You have sample codes for LWUIT users to stop gettting video when camera saw a QRCode? I will be appreciated if you can provide me a sample code or tips for that. Thank you so much from now. Cheers Altaico
0
5,944,122
05/10/2011 01:03:04
131,399
06/30/2009 23:13:43
709
19
Fullscreen facebook apps
I have noticed that some apps (such as grafati) have a fullscreen button that seems to work quite well but it seems that all of these apps are based on Flash. Is there any similar Facebook API call that is for non Flash apps?
facebook
fullscreen
null
null
null
null
open
Fullscreen facebook apps === I have noticed that some apps (such as grafati) have a fullscreen button that seems to work quite well but it seems that all of these apps are based on Flash. Is there any similar Facebook API call that is for non Flash apps?
0
7,433,658
09/15/2011 15:45:23
947,155
09/15/2011 15:33:56
1
0
Disabling certain aspects during unit test runs
I have integration tests (load context) and unit tests running together. My code does aspectj compile time weaving using spring. My problem is that my declared advises also run during some of my unit tests. This kills the notion of a unit test, which is why I would like to disable them. Is there something I can put on the pointcut declaration, some method I can call, some spring configuration, or maven command that disables these advises for something like all *UnitTest.java? Thanks for the help.
java
unit-testing
spring
aspectj
null
null
open
Disabling certain aspects during unit test runs === I have integration tests (load context) and unit tests running together. My code does aspectj compile time weaving using spring. My problem is that my declared advises also run during some of my unit tests. This kills the notion of a unit test, which is why I would like to disable them. Is there something I can put on the pointcut declaration, some method I can call, some spring configuration, or maven command that disables these advises for something like all *UnitTest.java? Thanks for the help.
0
6,043,107
05/18/2011 10:18:50
350,670
05/26/2010 08:14:41
1,299
39
Should one read ECMA-334 C# Spec to become an expert in C#
I came to here from a friend of mine that, to master the C# language, one must go through the [ECMA C# spec][1]. Is this true? [1]: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-334.pdf
c#
null
null
null
null
05/18/2011 10:28:15
not constructive
Should one read ECMA-334 C# Spec to become an expert in C# === I came to here from a friend of mine that, to master the C# language, one must go through the [ECMA C# spec][1]. Is this true? [1]: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-334.pdf
4
11,381,255
07/08/2012 06:51:44
1,508,708
07/07/2012 12:25:09
1
0
How i can run a script outside from standalone application made in matlab?
I have a standalone app in matlab. It gets a file name as an input and need to run this file. The file is on the same path as the standalone app. thx, Mike.
matlab
null
null
null
null
null
open
How i can run a script outside from standalone application made in matlab? === I have a standalone app in matlab. It gets a file name as an input and need to run this file. The file is on the same path as the standalone app. thx, Mike.
0
10,555,002
05/11/2012 16:13:05
1,304,842
03/31/2012 09:21:43
10
1
How can use callback function with Objective-C
every one. I'm working with iPhone. I have some Problems. Can I use callback function in Object-C? How can i do? Help me.
objective-c
null
null
null
null
05/14/2012 14:11:11
not a real question
How can use callback function with Objective-C === every one. I'm working with iPhone. I have some Problems. Can I use callback function in Object-C? How can i do? Help me.
1
5,713,680
04/19/2011 08:35:59
339,297
05/12/2010 12:39:13
19
0
How to convert KDD 99 dataset to tcpdump format?
Can anyone guide me in converting the KDD 99 dataset,consisting of ip packets in the following format to TCP dump format? 0,udp,private,SF,105,146,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0.00,0.00,0.00,0.00,1.00,0.00,0.00,255,254,1.00,0.01,0.00,0.00,0.00,0.00,0.00,0.00,normal. 0,udp,private,SF,105,146,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0.00,0.00,0.00,0.00,1.00,0.00,0.00,255,254,1.00,0.01,0.00,0.00,0.00,0.00,0.00,0.00,normal. 0,udp,private,SF,105,146,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0.00,0.00,0.00,0.00,1.00,0.00,0.00,255,254,1.00,0.01,0.00,0.00,0.00,0.00,0.00,0.00,normal.
ip
packets
tcpdump
null
null
null
open
How to convert KDD 99 dataset to tcpdump format? === Can anyone guide me in converting the KDD 99 dataset,consisting of ip packets in the following format to TCP dump format? 0,udp,private,SF,105,146,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0.00,0.00,0.00,0.00,1.00,0.00,0.00,255,254,1.00,0.01,0.00,0.00,0.00,0.00,0.00,0.00,normal. 0,udp,private,SF,105,146,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0.00,0.00,0.00,0.00,1.00,0.00,0.00,255,254,1.00,0.01,0.00,0.00,0.00,0.00,0.00,0.00,normal. 0,udp,private,SF,105,146,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0.00,0.00,0.00,0.00,1.00,0.00,0.00,255,254,1.00,0.01,0.00,0.00,0.00,0.00,0.00,0.00,normal.
0
7,100,306
08/17/2011 22:29:14
899,585
08/17/2011 22:29:14
1
0
Protobuf-net - Serialize only a few properties
It is possible to serialize only a few properties of the class? ex: public class Client { [ProtoMember(1)] public int Id { get; set; } [ProtoMember(2)] public string Name { get; set; } public int Age { get; set; } [ProtoMember(3)] public string Guid { get; set; } } Thus, I get the value of "Id" incorrect. The other properties are correct. If I fill it with "[ProtoMember]" all the properties, the value of "id" is correct. Why?
c#
protobuf-net
null
null
null
null
open
Protobuf-net - Serialize only a few properties === It is possible to serialize only a few properties of the class? ex: public class Client { [ProtoMember(1)] public int Id { get; set; } [ProtoMember(2)] public string Name { get; set; } public int Age { get; set; } [ProtoMember(3)] public string Guid { get; set; } } Thus, I get the value of "Id" incorrect. The other properties are correct. If I fill it with "[ProtoMember]" all the properties, the value of "id" is correct. Why?
0
3,397,173
08/03/2010 13:54:19
409,719
08/03/2010 13:54:19
1
0
A question on c program language
i want print a statement 5 times without using any loop n should be in a line
c
null
null
null
null
08/03/2010 13:59:36
not a real question
A question on c program language === i want print a statement 5 times without using any loop n should be in a line
1
9,194,845
02/08/2012 14:04:43
1,197,320
02/08/2012 13:46:08
1
0
Gettext only functioning for one language
I use gettext localization like this $lang = $_GET['lang']; echo $lang; putenv("LANG=$lang"); setlocale(LC_ALL, $lang); bindtextdomain("messages", realpath("../locale")); bind_textdomain_codeset("messages", "utf-8"); textdomain("messages"); ... echo _("Welcome!") etc. I can see localization works, because the site can be seen translated in Slovak. However, no mather what is in the $lang variable, the site only is translated in Slovak or not translated at all. Slovak means whatever .po and .mo files i have in 'sk' folder. I have tried putting different languages in the 'sk' folder, it works and I get different translations. But I cannot make it to take different folder, like 'en' or 'cs'. All other folders are ignored. What am I doing wrong?
php
localization
language
gettext
null
null
open
Gettext only functioning for one language === I use gettext localization like this $lang = $_GET['lang']; echo $lang; putenv("LANG=$lang"); setlocale(LC_ALL, $lang); bindtextdomain("messages", realpath("../locale")); bind_textdomain_codeset("messages", "utf-8"); textdomain("messages"); ... echo _("Welcome!") etc. I can see localization works, because the site can be seen translated in Slovak. However, no mather what is in the $lang variable, the site only is translated in Slovak or not translated at all. Slovak means whatever .po and .mo files i have in 'sk' folder. I have tried putting different languages in the 'sk' folder, it works and I get different translations. But I cannot make it to take different folder, like 'en' or 'cs'. All other folders are ignored. What am I doing wrong?
0
10,429,102
05/03/2012 09:59:50
1,371,763
05/03/2012 06:53:56
1
0
Posting on facebook wall from ASP.net MVC
How to post on Facebook wall from ASP.net MVC application?
c#
asp.net-mvc
facebook
asp.net-mvc-3
null
05/03/2012 23:31:27
not a real question
Posting on facebook wall from ASP.net MVC === How to post on Facebook wall from ASP.net MVC application?
1
382,200
12/19/2008 21:06:30
12,950
09/16/2008 16:22:14
15,789
900
Getting back on track after disruptions
Over the past few weeks it seems like I've been interrupted by maintenance tasks from old projects quite a bit in addition to a taking a training class. I feel like I've lost all forward momentum on my current project. It's difficult to even start coding because I'm not sure what I was doing and what I was thinking before the interruption. What tips or techniques do you have to help make it easier to get restarted after an interruption that takes you away from your current project for a couple of hours or days?
tips-and-tricks
organization
null
null
null
03/04/2012 05:37:27
off topic
Getting back on track after disruptions === Over the past few weeks it seems like I've been interrupted by maintenance tasks from old projects quite a bit in addition to a taking a training class. I feel like I've lost all forward momentum on my current project. It's difficult to even start coding because I'm not sure what I was doing and what I was thinking before the interruption. What tips or techniques do you have to help make it easier to get restarted after an interruption that takes you away from your current project for a couple of hours or days?
2
8,415,051
12/07/2011 12:06:59
1,085,492
12/07/2011 11:20:23
1
0
apache reverse proxy config
Am new to Apache Proxy server config. My setup is an apache reverse proxy in my DMZ connecting to a combined Web/App Server ( on the Lan). I have the reverse proxy working - the problem is that the web/app server has many urls associated with it. I wish to restrict the public access to just one url and any child urls coming from this. Whilst retaining full access to all urls from within the lan Any ideas?
apache
null
null
null
null
03/22/2012 23:07:43
off topic
apache reverse proxy config === Am new to Apache Proxy server config. My setup is an apache reverse proxy in my DMZ connecting to a combined Web/App Server ( on the Lan). I have the reverse proxy working - the problem is that the web/app server has many urls associated with it. I wish to restrict the public access to just one url and any child urls coming from this. Whilst retaining full access to all urls from within the lan Any ideas?
2
10,895,731
06/05/2012 10:34:38
1,437,099
06/05/2012 10:25:05
1
0
C# I want Application to always focus the textbox
i want my application to always focus at the textbox. i already use topmost and showdialog but when another application start it lose focus from textbox. any suggestion???
c#
focus
null
null
null
06/05/2012 11:23:48
not a real question
C# I want Application to always focus the textbox === i want my application to always focus at the textbox. i already use topmost and showdialog but when another application start it lose focus from textbox. any suggestion???
1
719,939
04/06/2009 00:24:43
23,822
09/30/2008 15:46:41
737
44
How do you pronounce "Enum"?
In the spirit of [this question][1] how do you pronounce Enum? Tagging as subjective and community wiki obviously. I've heard E-Nuhm and E-Nnoom any others? [1]: http://stackoverflow.com/questions/691437/how-do-you-pronounce-the-word-tuple
programming-terms
pronunciation
null
null
null
10/27/2011 05:16:58
not constructive
How do you pronounce "Enum"? === In the spirit of [this question][1] how do you pronounce Enum? Tagging as subjective and community wiki obviously. I've heard E-Nuhm and E-Nnoom any others? [1]: http://stackoverflow.com/questions/691437/how-do-you-pronounce-the-word-tuple
4
9,857,402
03/25/2012 02:17:25
1,290,736
03/25/2012 01:58:04
1
0
I am using $this in a class, but it keeps giving me Fatal error: Using $this when not in object context
I created a a cart class which contains songs to be bought. The cartSong class works fine, but when I use the cart class, an error about $this always comes up. I want the variable $songList (array) to add a song object to the cart every time addToCart is called, and $trackno to iterate. The line where the error is located is specified in the code: <?php $indexpath = "index.php"; $cartpath = "data/cart.xml"; class cartSong{ private $albumid = null; private $trackno = null; function cartSong($albumid, $trackno){ $this->albumid = $albumid; $this->trackno = $trackno; } function setSong($albumid, $trackno){ $this->albumid = $albumid; $this->trackno = $trackno; } function getTrackNo(){ return $this->trackno; } function getAlbumID(){ return $this->albumid; } } class cart{ public $songList; public $songCount; function cart(){ $this->songList = array(); $this->songCount = 0; } function addToCart($albumid, $trackno){ $checker=0; for($i=0;$i<$this->songCount;$i++){ // THIS LINE GIVES AN ERROR ($this->songCount) if( ($this->songList[$i]->getAlbumID()==$albumid) && ($this->songList[$i]->getTrackNo()==$trackno) ) $checker=1; } if($checker==0){ $song = new CartSong($albumid, $trackno); $this->songList[]=$song; $this->songCount++; } else echo "Song already exists in cart."; echo $this->songList[0]->getAlbumID(); echo $this->songList[0]->getTrackNo(); } function removeFromCart($albumid, $trackno){ $checker=0; for($i=0;$i<count($songList);$i++){ if( ($songList[$i].getAlbumId()==$albumid) && ($songList[$i].getTrackNo()==$trackno) ) $checker=1; } if($checker==1){ array_splice($songList,$i); } else echo "Song does not exist in cart."; } function emptyCart(){ $songList = (array) null; } } ?> There is only one error when I run this: Fatal error: Using $this when not in object context in C:\wamp\www\musiquebasse\data\cartfunctions.php on line 40.
php
object
context
this
fatal-error
null
open
I am using $this in a class, but it keeps giving me Fatal error: Using $this when not in object context === I created a a cart class which contains songs to be bought. The cartSong class works fine, but when I use the cart class, an error about $this always comes up. I want the variable $songList (array) to add a song object to the cart every time addToCart is called, and $trackno to iterate. The line where the error is located is specified in the code: <?php $indexpath = "index.php"; $cartpath = "data/cart.xml"; class cartSong{ private $albumid = null; private $trackno = null; function cartSong($albumid, $trackno){ $this->albumid = $albumid; $this->trackno = $trackno; } function setSong($albumid, $trackno){ $this->albumid = $albumid; $this->trackno = $trackno; } function getTrackNo(){ return $this->trackno; } function getAlbumID(){ return $this->albumid; } } class cart{ public $songList; public $songCount; function cart(){ $this->songList = array(); $this->songCount = 0; } function addToCart($albumid, $trackno){ $checker=0; for($i=0;$i<$this->songCount;$i++){ // THIS LINE GIVES AN ERROR ($this->songCount) if( ($this->songList[$i]->getAlbumID()==$albumid) && ($this->songList[$i]->getTrackNo()==$trackno) ) $checker=1; } if($checker==0){ $song = new CartSong($albumid, $trackno); $this->songList[]=$song; $this->songCount++; } else echo "Song already exists in cart."; echo $this->songList[0]->getAlbumID(); echo $this->songList[0]->getTrackNo(); } function removeFromCart($albumid, $trackno){ $checker=0; for($i=0;$i<count($songList);$i++){ if( ($songList[$i].getAlbumId()==$albumid) && ($songList[$i].getTrackNo()==$trackno) ) $checker=1; } if($checker==1){ array_splice($songList,$i); } else echo "Song does not exist in cart."; } function emptyCart(){ $songList = (array) null; } } ?> There is only one error when I run this: Fatal error: Using $this when not in object context in C:\wamp\www\musiquebasse\data\cartfunctions.php on line 40.
0
11,495,022
07/15/2012 19:41:08
1,527,336
07/15/2012 19:07:28
1
0
How to add text at absolute position in every page of an existing pdf document, using itext?
I am trying to update an existing file. Please help me.
java
itext
null
null
null
07/16/2012 08:48:25
not a real question
How to add text at absolute position in every page of an existing pdf document, using itext? === I am trying to update an existing file. Please help me.
1
116,121
09/22/2008 17:05:14
18,722
09/19/2008 10:26:04
2
3
Do you keep your project files under version control?
Do you keep project files like Eclipse's .project, .classpath, .settings under version control (e.g. subversion)?
java
version
version-control
null
null
09/20/2011 02:05:59
not constructive
Do you keep your project files under version control? === Do you keep project files like Eclipse's .project, .classpath, .settings under version control (e.g. subversion)?
4
11,003,656
06/12/2012 19:40:09
1,273,586
03/16/2012 08:50:31
4
0
How to create a jquery plugin like this?
i would like to know if anyone knows a plugin for a simple slider controlled by buttons. So it doesn't have to be one with much features. I found one myself but i don't really know how to install this on my site. IT would be nice if someoen could help me with this? link to the plugin: http://www.simplesli.de/ thanks in advance
jquery
jquery-plugins
null
null
null
06/13/2012 02:47:15
not a real question
How to create a jquery plugin like this? === i would like to know if anyone knows a plugin for a simple slider controlled by buttons. So it doesn't have to be one with much features. I found one myself but i don't really know how to install this on my site. IT would be nice if someoen could help me with this? link to the plugin: http://www.simplesli.de/ thanks in advance
1
4,901,786
02/04/2011 18:48:33
459,041
09/27/2010 01:00:48
349
14
GWT: Best Way to Build Library Code
Suppose I want to create some library code which could be shared across multiple GWT modules. What is the typical method for reusing this library. Should I create a module for the library, and then import it inside my .gwt.xml file? Is there any way to release it as a jar?
gwt
null
null
null
null
05/22/2012 12:22:43
not constructive
GWT: Best Way to Build Library Code === Suppose I want to create some library code which could be shared across multiple GWT modules. What is the typical method for reusing this library. Should I create a module for the library, and then import it inside my .gwt.xml file? Is there any way to release it as a jar?
4
7,342,402
09/08/2011 02:06:06
933,914
09/08/2011 02:06:06
1
0
Javascript Popup Window as a singleton
I have a page A which opens a javascript window as myWin = window.open(..). Now in another page B in the same domain, when user clicks on a link, I want to check if myWin is available, if yes then bring that window in front, else do a new myWin. The problem I have is the window.js file in both pages and window.js contains the line var myWin = null; Within Page A scope, my logic works and brings window to front. Within Page B it works as well. Howver when I open window in Page A, click on link in Page B, it fails. It is as if myWin is reset to null in scope of Page B. How can I overcome this problem? Pointers??/
javascript
null
null
null
null
null
open
Javascript Popup Window as a singleton === I have a page A which opens a javascript window as myWin = window.open(..). Now in another page B in the same domain, when user clicks on a link, I want to check if myWin is available, if yes then bring that window in front, else do a new myWin. The problem I have is the window.js file in both pages and window.js contains the line var myWin = null; Within Page A scope, my logic works and brings window to front. Within Page B it works as well. Howver when I open window in Page A, click on link in Page B, it fails. It is as if myWin is reset to null in scope of Page B. How can I overcome this problem? Pointers??/
0
7,331,115
09/07/2011 08:50:48
684,534
03/30/2011 18:53:05
579
0
Push data for Android
We'd like to develop Android APP connecting to some web-service (cloud) with "the push ability" -- receiving data from the service and evaluating it without polling. Which communication protocol/server-library can do that? We would like to use .NET on the server side.
android
web-services
cloud
push-notification
null
02/22/2012 14:38:12
not constructive
Push data for Android === We'd like to develop Android APP connecting to some web-service (cloud) with "the push ability" -- receiving data from the service and evaluating it without polling. Which communication protocol/server-library can do that? We would like to use .NET on the server side.
4
6,553,854
07/01/2011 22:33:57
657,235
03/13/2011 04:48:21
34
0
display the details of a flight where its code ends with 1
display the details of all the flights from FLIGHT table where the aircraft_code ends with 1. please tell me the exact query of how to retrieve the details of a flight by using his last code number. thanks, Churchill
sql-server-2000
null
null
null
null
07/01/2011 23:23:52
not a real question
display the details of a flight where its code ends with 1 === display the details of all the flights from FLIGHT table where the aircraft_code ends with 1. please tell me the exact query of how to retrieve the details of a flight by using his last code number. thanks, Churchill
1
2,877,262
05/20/2010 19:47:11
32,834
10/30/2008 17:00:00
690
15
Java SecurityException : signer information does not match
I recompiled my classes as usual, and suddenly got the following error message, why ? How to fix it ? "java.lang.SecurityException: class "Chinese_English_Dictionary"'s signer information does not match signer information of other classes in the same package at java.lang.ClassLoader.checkCerts(ClassLoader.java:776)
java
securityexception
signer
information
match
null
open
Java SecurityException : signer information does not match === I recompiled my classes as usual, and suddenly got the following error message, why ? How to fix it ? "java.lang.SecurityException: class "Chinese_English_Dictionary"'s signer information does not match signer information of other classes in the same package at java.lang.ClassLoader.checkCerts(ClassLoader.java:776)
0
11,505,102
07/16/2012 13:13:41
1,222,588
02/21/2012 05:01:33
11
1
create more than one map(collection) using for loop
How do I create more than one map(collection) using for loop(or dynamic) in java..? List<Integer> temp = new ArrayList<Integer>(); for(int i=1; i<=10; i++) { Map<Integer, Map> temp.get(i) = new HashMap<Integer, Map>(); } Consider temp has the values "one","two"... "ten" Please help..
collections
null
null
null
null
null
open
create more than one map(collection) using for loop === How do I create more than one map(collection) using for loop(or dynamic) in java..? List<Integer> temp = new ArrayList<Integer>(); for(int i=1; i<=10; i++) { Map<Integer, Map> temp.get(i) = new HashMap<Integer, Map>(); } Consider temp has the values "one","two"... "ten" Please help..
0
529,377
02/09/2009 18:55:39
48,553
12/23/2008 03:51:30
228
18
Help pick a book
My role at my company is the sole developer, and my experience is limited (I got the job mostly because I'm probably the only person who will do it for the money they're willing to pay - but I digress) compared to the averge developer but more extensive than the average recent grad. As such I'm looking for some good books to fill in the gaps that the internet (or the few books I already have) can't or doesn't do well. Usually this is in the realm of design patterns, refactoring, testing. I've looked around and found some books that I think I'd like to buy, but as I'm on a budget, it's more about which to get FIRST as opposed to which to get at all (though I'm very open to suggestions). - Patterns of Enterprise Application Architecture - Fowler - Refactoring to Patterns - Kerievsky - Pragmatic Unit Testing in C# With NUnit - Hunt/Thomas/Hargett
c#
design-patterns
unit-testing
books
null
02/17/2012 19:52:49
not constructive
Help pick a book === My role at my company is the sole developer, and my experience is limited (I got the job mostly because I'm probably the only person who will do it for the money they're willing to pay - but I digress) compared to the averge developer but more extensive than the average recent grad. As such I'm looking for some good books to fill in the gaps that the internet (or the few books I already have) can't or doesn't do well. Usually this is in the realm of design patterns, refactoring, testing. I've looked around and found some books that I think I'd like to buy, but as I'm on a budget, it's more about which to get FIRST as opposed to which to get at all (though I'm very open to suggestions). - Patterns of Enterprise Application Architecture - Fowler - Refactoring to Patterns - Kerievsky - Pragmatic Unit Testing in C# With NUnit - Hunt/Thomas/Hargett
4
11,568,244
07/19/2012 19:51:12
1,396,240
05/15/2012 13:06:46
83
4
403 Forbidden Access
Yesterday my supervisor mounted one of his directories onto my server. The problem is, I can't access them and I have no way of contacting him right now. When I type in the URL I get this error: "Forbidden You don't have permission to access /~<username>/core/ on this server." I tried to cd into the "core" directory and do the following: chmod -R 755 *.* but, even with all the permissions changed, I still can't get access! The weird thing is, I *can* access and edit the files. Any suggestions? I can't do anything if I can't access these files! I really appreciate it, -N
linux
.htaccess
command-line
permissions
null
07/19/2012 19:53:26
off topic
403 Forbidden Access === Yesterday my supervisor mounted one of his directories onto my server. The problem is, I can't access them and I have no way of contacting him right now. When I type in the URL I get this error: "Forbidden You don't have permission to access /~<username>/core/ on this server." I tried to cd into the "core" directory and do the following: chmod -R 755 *.* but, even with all the permissions changed, I still can't get access! The weird thing is, I *can* access and edit the files. Any suggestions? I can't do anything if I can't access these files! I really appreciate it, -N
2
6,801,879
07/23/2011 16:52:13
401,543
07/25/2010 13:35:27
35
2
How do I write a TOS (terms of service) for my iPhone app?
I'm resisting the urge from my web development days of just ripping out one from the web and modifying it. How do I write a TOS (terms of service) for my iPhone app?
ios
terms-of-use
null
null
null
07/23/2011 18:27:28
off topic
How do I write a TOS (terms of service) for my iPhone app? === I'm resisting the urge from my web development days of just ripping out one from the web and modifying it. How do I write a TOS (terms of service) for my iPhone app?
2
11,676,824
07/26/2012 19:41:25
1,296,497
03/27/2012 20:01:17
122
17
Copy files from local linux computer to amazon aws linux instance
How do you copy files from local linux computer to amazon aws linux instance?
amazon-ec2
null
null
null
null
07/27/2012 01:42:11
off topic
Copy files from local linux computer to amazon aws linux instance === How do you copy files from local linux computer to amazon aws linux instance?
2
7,627,898
10/02/2011 17:12:01
498,448
11/05/2010 14:55:05
9
0
Save document with Zoho remote api
I am using Zoho remote api to open and view a .doc file. I want now to convert the .doc file into a pdf file and save into my hosting account. Thay have hier a small tutorial but i don't get it right : https://apihelp.wiki.zoho.com/Sample-Code-for-SaveURL.html . Have someone expiriense how this can be done?
php
word
.doc
zoho
null
null
open
Save document with Zoho remote api === I am using Zoho remote api to open and view a .doc file. I want now to convert the .doc file into a pdf file and save into my hosting account. Thay have hier a small tutorial but i don't get it right : https://apihelp.wiki.zoho.com/Sample-Code-for-SaveURL.html . Have someone expiriense how this can be done?
0
7,042,118
08/12/2011 15:07:18
312,896
04/09/2010 14:51:11
15
1
D3DXSprite and showing textures and rotating them in different ways
i have many textures to show on the screen, some of these textures may have rotation or other transformation. All transformation independent. Do i need to create D3DXSprite for every independent texture? Because, if i create only one sprite and apply transformation it have an affect for every texture in the sprite. Thanks.
directx
2d
null
null
null
null
open
D3DXSprite and showing textures and rotating them in different ways === i have many textures to show on the screen, some of these textures may have rotation or other transformation. All transformation independent. Do i need to create D3DXSprite for every independent texture? Because, if i create only one sprite and apply transformation it have an affect for every texture in the sprite. Thanks.
0
11,139,993
06/21/2012 14:07:06
1,472,203
06/21/2012 13:10:56
1
0
.net MVC Master Detail View with associated records
I am looking to make a Master Detail View. I have two tables tbFamily and tbFamilyMember. I am currently able to view the Family Details and list the associated family members, however, I want to seperate the Family Members based on their Role. i.e. I want to display a list of the Parents/Guardians and then a list of the children ordered by Date of Birth. My Models are as follows: public class tbFamily { public int tbFamilyID { get; set; } public string Surname { get; set; } public string Address1 { get; set; } public string Address2 { get; set; } public string Address3 { get; set; } public string Town { get; set; } public string County { get; set; } public string Postcode { get; set; } public string Country { get; set; } public string Telephone { get; set; } public string Mobile { get; set; } public string Email { get; set; } public virtual ICollection<tbFamilyMember> tbFamilyMember { get; set; } public virtual ICollection<tbFamilyData> tbFamilyData { get; set; } } public class tbFamilyMember { public int tbFamilyMemberID { get; set; } public int tbFamilyID { get; set; } public int Role { get; set; } public string Firstname { get; set; } public string Surname { get; set; } public char Gender { get; set; } [DisplayFormat(DataFormatString = "{0:d}", ApplyFormatInEditMode = true)] public DateTime DateOfBirth { get; set; } public virtual tbFamily tbFamily { get; set; } } My Controller currently looks as follows: public ActionResult Details(int id = 0) { tbFamily tbfamily = db.tbFamily.Find(id); if (tbfamily == null) { return HttpNotFound(); } return View(tbfamily); } Its associated View @foreach (var item in Model.tbFamilyMember) { @Html.DisplayFor(modelItem => item.Firstname) @Html.DisplayFor(modelItem => item.Surname) @Html.DisplayFor(modelItem => item.Role) } To Get the Children: public ActionResult GetChildren(int id) { var tbFamilyData = from f in db.tbFamilyMember where f.tbFamilyID.Equals(id) where f.Role.Equals(3) select f; return View(tbFamilyData); } Its associated View: @foreach (var item in Model.tbFamilyData) { @Html.DisplayFor(modelItem => item.tbFamilyMember.Firstname) @Html.DisplayFor(modelItem => item.tbFamilyMember.Surname) @Html.DisplayFor(modelItem => item.tbFamilyMember.Role) } Just not sure how to get the two working together! I have created a seperate Model tbFamilyData public class tbFamilyData { public virtual tbFamily tbFamily { get; set; } public virtual tbFamilyMember tbFamilyMember { get; set; } } I am now getting the error tbFamilyData has no key defined. Hoping someone can help.
asp.net
mvc
razor
null
null
null
open
.net MVC Master Detail View with associated records === I am looking to make a Master Detail View. I have two tables tbFamily and tbFamilyMember. I am currently able to view the Family Details and list the associated family members, however, I want to seperate the Family Members based on their Role. i.e. I want to display a list of the Parents/Guardians and then a list of the children ordered by Date of Birth. My Models are as follows: public class tbFamily { public int tbFamilyID { get; set; } public string Surname { get; set; } public string Address1 { get; set; } public string Address2 { get; set; } public string Address3 { get; set; } public string Town { get; set; } public string County { get; set; } public string Postcode { get; set; } public string Country { get; set; } public string Telephone { get; set; } public string Mobile { get; set; } public string Email { get; set; } public virtual ICollection<tbFamilyMember> tbFamilyMember { get; set; } public virtual ICollection<tbFamilyData> tbFamilyData { get; set; } } public class tbFamilyMember { public int tbFamilyMemberID { get; set; } public int tbFamilyID { get; set; } public int Role { get; set; } public string Firstname { get; set; } public string Surname { get; set; } public char Gender { get; set; } [DisplayFormat(DataFormatString = "{0:d}", ApplyFormatInEditMode = true)] public DateTime DateOfBirth { get; set; } public virtual tbFamily tbFamily { get; set; } } My Controller currently looks as follows: public ActionResult Details(int id = 0) { tbFamily tbfamily = db.tbFamily.Find(id); if (tbfamily == null) { return HttpNotFound(); } return View(tbfamily); } Its associated View @foreach (var item in Model.tbFamilyMember) { @Html.DisplayFor(modelItem => item.Firstname) @Html.DisplayFor(modelItem => item.Surname) @Html.DisplayFor(modelItem => item.Role) } To Get the Children: public ActionResult GetChildren(int id) { var tbFamilyData = from f in db.tbFamilyMember where f.tbFamilyID.Equals(id) where f.Role.Equals(3) select f; return View(tbFamilyData); } Its associated View: @foreach (var item in Model.tbFamilyData) { @Html.DisplayFor(modelItem => item.tbFamilyMember.Firstname) @Html.DisplayFor(modelItem => item.tbFamilyMember.Surname) @Html.DisplayFor(modelItem => item.tbFamilyMember.Role) } Just not sure how to get the two working together! I have created a seperate Model tbFamilyData public class tbFamilyData { public virtual tbFamily tbFamily { get; set; } public virtual tbFamilyMember tbFamilyMember { get; set; } } I am now getting the error tbFamilyData has no key defined. Hoping someone can help.
0
7,794,938
10/17/2011 14:04:45
999,287
10/17/2011 13:55:03
1
0
gestureRecognizers - new region
I've changed the region of the screen in which the user can navigate using gestures by creating an arbitrary view (called gestureRegion) and assigning gestureRecognizers to it. But this only overides the tap gesture.The swipe right and left gestures seems to still work on the entire page. Is there a way to overide the swipe gestures? Or disable it entirely? My code: self.gestureRegion.gestureRecognizers = self.pageViewController.gestureRecognizers; [self.pageViewController.view addSubview:gestureRegion]; Apple Doc: gestureRecognizers An array of UIGestureRecognizer objects that are configured to handle user interaction. (read-only) @property(nonatomic, readonly) NSArray *gestureRecognizers Discussion These gesture recognizers are initially attached to a view in the page view controller’s hierarchy. To change the region of the screen in which the user can navigate using gestures, they can be placed on another view. Availability Available in iOS 5.0 and later. Declared In UIPageViewController.h
ios5
null
null
null
null
null
open
gestureRecognizers - new region === I've changed the region of the screen in which the user can navigate using gestures by creating an arbitrary view (called gestureRegion) and assigning gestureRecognizers to it. But this only overides the tap gesture.The swipe right and left gestures seems to still work on the entire page. Is there a way to overide the swipe gestures? Or disable it entirely? My code: self.gestureRegion.gestureRecognizers = self.pageViewController.gestureRecognizers; [self.pageViewController.view addSubview:gestureRegion]; Apple Doc: gestureRecognizers An array of UIGestureRecognizer objects that are configured to handle user interaction. (read-only) @property(nonatomic, readonly) NSArray *gestureRecognizers Discussion These gesture recognizers are initially attached to a view in the page view controller’s hierarchy. To change the region of the screen in which the user can navigate using gestures, they can be placed on another view. Availability Available in iOS 5.0 and later. Declared In UIPageViewController.h
0
6,160,838
05/28/2011 09:43:55
641,151
03/02/2011 12:15:31
427
0
How to use c++ functions in c?
C++ can use c functions by `extern "C"`, can c use c++ functions somehow?
c++
c
null
null
null
null
open
How to use c++ functions in c? === C++ can use c functions by `extern "C"`, can c use c++ functions somehow?
0
9,133,961
02/03/2012 18:56:13
809,007
06/21/2011 18:06:58
1
0
Does anyone know how the p1020_rdb_probe get called from u-boot?
I'm trying to bring up a 2.6.27 linux kernel on a freescale eval board (P1020RDB-PC). I'm using the latest open source u-boot. I have a kernel image that I compiled (with the initramfs built in). The kernel image format is uImage. However, when I try to boot it up, I always get stuck after the kernel image is uncompressed successfully. After that uboot just hangs. Here's a sample log: U-Boot 2011.12 (Feb 01 2012 - 15:41:00) CPU0: P1020E, Version: 1.1, (0x80ec0011) Core: E500, Version: 5.1, (0x80212051) Clock Configuration: CPU0:800 MHz, CPU1:800 MHz, CCB:400 MHz, DDR:333.333 MHz (666.667 MT/s data rate) (Asynchronous), LBC:25 MHz L1: D-cache 32 kB enabled I-cache 32 kB enabled Board: P1020RDB CPLD: V3.1 PCBA: V2.0 rom_loc: nor upper bank SD/MMC : 4-bit Mode eSPI : Enabled I2C: ready SPI: ready DRAM: Detected UDIMM 1 GiB (DDR3, 32-bit, CL=5, ECC off) Flash: 16 MiB L2: 256 KB enabled NAND: 32 MiB MMC: FSL_SDHC: 0 PCIe1: Root Complex of mini PCIe SLOT, no link, regs @ 0xffe0a000 PCIe1: Bus 00 - 00 PCIe2: Root Complex of PCIe SLOT, x1, regs @ 0xffe09000 02:00.0 - 1095:3132 - Mass storage controller PCIe2: Bus 01 - 02 In: serial Out: serial Err: serial Net: eTSEC2 is in sgmii mode. No address specified for VSC7385 microcode. PHY reset timed out eTSEC1, eTSEC2, eTSEC3 Hit any key to stop autoboot: 0 => => bootm 0xef080000 <<<<<Location in NOR flash where the uImage resides. WARNING: adjusting available memory to 30000000 ## Booting kernel from Legacy Image at ef080000 ... Image Name: Linux-2.6.27.47 Created: 2012-02-02 21:50:44 UTC Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5566263 Bytes = 5.3 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Uncompressing Kernel Image ... OK <<<<< Hangs after this. I've copied the uImage into the flash after tftp'ing it. What I know is: when I do a bootm it picks up the right headers, as it knows the compile time and image size. But what I don't know is whether the platform specific initialization function is actually getting invoked. Any thoughts?
linux
powerpc
u-boot
null
null
02/04/2012 14:12:51
off topic
Does anyone know how the p1020_rdb_probe get called from u-boot? === I'm trying to bring up a 2.6.27 linux kernel on a freescale eval board (P1020RDB-PC). I'm using the latest open source u-boot. I have a kernel image that I compiled (with the initramfs built in). The kernel image format is uImage. However, when I try to boot it up, I always get stuck after the kernel image is uncompressed successfully. After that uboot just hangs. Here's a sample log: U-Boot 2011.12 (Feb 01 2012 - 15:41:00) CPU0: P1020E, Version: 1.1, (0x80ec0011) Core: E500, Version: 5.1, (0x80212051) Clock Configuration: CPU0:800 MHz, CPU1:800 MHz, CCB:400 MHz, DDR:333.333 MHz (666.667 MT/s data rate) (Asynchronous), LBC:25 MHz L1: D-cache 32 kB enabled I-cache 32 kB enabled Board: P1020RDB CPLD: V3.1 PCBA: V2.0 rom_loc: nor upper bank SD/MMC : 4-bit Mode eSPI : Enabled I2C: ready SPI: ready DRAM: Detected UDIMM 1 GiB (DDR3, 32-bit, CL=5, ECC off) Flash: 16 MiB L2: 256 KB enabled NAND: 32 MiB MMC: FSL_SDHC: 0 PCIe1: Root Complex of mini PCIe SLOT, no link, regs @ 0xffe0a000 PCIe1: Bus 00 - 00 PCIe2: Root Complex of PCIe SLOT, x1, regs @ 0xffe09000 02:00.0 - 1095:3132 - Mass storage controller PCIe2: Bus 01 - 02 In: serial Out: serial Err: serial Net: eTSEC2 is in sgmii mode. No address specified for VSC7385 microcode. PHY reset timed out eTSEC1, eTSEC2, eTSEC3 Hit any key to stop autoboot: 0 => => bootm 0xef080000 <<<<<Location in NOR flash where the uImage resides. WARNING: adjusting available memory to 30000000 ## Booting kernel from Legacy Image at ef080000 ... Image Name: Linux-2.6.27.47 Created: 2012-02-02 21:50:44 UTC Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5566263 Bytes = 5.3 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Uncompressing Kernel Image ... OK <<<<< Hangs after this. I've copied the uImage into the flash after tftp'ing it. What I know is: when I do a bootm it picks up the right headers, as it knows the compile time and image size. But what I don't know is whether the platform specific initialization function is actually getting invoked. Any thoughts?
2
7,690,086
10/07/2011 16:21:59
984,333
10/07/2011 16:13:19
1
0
PHP - Uploading file from one server to another (via HTTP POST)
Alright, here's my issue: I have an Apache server running on a client's computer, with PHP installed. I have scheduled a task to automatically create a database backup, and it's working fine. But it makes no sense keeping the backups on the same HD the system's running, so I have to send it to me. At first, I tried doing a PHP FTP Upload, but the client's firewall's blocking all FTP connections, and I cannot unblock it (his company won't allow me). Then, I tried sending the backup using SMTP, to an e-mail account. Also didn't work. All SMTP connections are also blocked (I know...). I'm trying now to access a webpage (on my server), via a HTTP POST REQUEST, with the file attached on the page-header. It should be possible, seeing that's pretty much what the browser does, with a file-input object, right? I just sends the multipart/data using the page header. Will I have to create the page header manually? Or are there any scripts that already do that? Thanks in advance.
php
file
upload
header
null
null
open
PHP - Uploading file from one server to another (via HTTP POST) === Alright, here's my issue: I have an Apache server running on a client's computer, with PHP installed. I have scheduled a task to automatically create a database backup, and it's working fine. But it makes no sense keeping the backups on the same HD the system's running, so I have to send it to me. At first, I tried doing a PHP FTP Upload, but the client's firewall's blocking all FTP connections, and I cannot unblock it (his company won't allow me). Then, I tried sending the backup using SMTP, to an e-mail account. Also didn't work. All SMTP connections are also blocked (I know...). I'm trying now to access a webpage (on my server), via a HTTP POST REQUEST, with the file attached on the page-header. It should be possible, seeing that's pretty much what the browser does, with a file-input object, right? I just sends the multipart/data using the page header. Will I have to create the page header manually? Or are there any scripts that already do that? Thanks in advance.
0
7,297,797
09/04/2011 06:47:44
1,534,386
10/04/2010 13:38:14
531
7
where from to learn functional languages - haskell
Functional Languages - I have heard about them a lot. A related thread <a href="http://stackoverflow.com/questions/102911/whats-a-good-functional-language-to-learn-first"> Best Functional Language to start with </a> recommends a learner to start with Haskell and subsequently grow his knowledge in the domain. So I was thinking about starting to learn Haskell. Are there any better choices to start with? If not, Could you help me with some resources from where I can get a deep insight into the world of Haskell. I am a newbie to fucntional languages, and as such, I have no idea of what these are. Could you help me with some good e-books which is a recommended read for this topic?
functional-programming
suggestions
null
null
null
09/04/2011 08:37:49
not constructive
where from to learn functional languages - haskell === Functional Languages - I have heard about them a lot. A related thread <a href="http://stackoverflow.com/questions/102911/whats-a-good-functional-language-to-learn-first"> Best Functional Language to start with </a> recommends a learner to start with Haskell and subsequently grow his knowledge in the domain. So I was thinking about starting to learn Haskell. Are there any better choices to start with? If not, Could you help me with some resources from where I can get a deep insight into the world of Haskell. I am a newbie to fucntional languages, and as such, I have no idea of what these are. Could you help me with some good e-books which is a recommended read for this topic?
4
4,792,163
01/25/2011 10:09:37
588,811
01/25/2011 10:09:37
1
0
Does anyone have an example of a unit test for a Razor view?
Has anyone successfully written a unit test for a Razor view in ASP.Net MVC 3? I've been trying to create one but keep banging my head against various Null Reference exceptions.
asp.net-mvc-3
razor
null
null
null
null
open
Does anyone have an example of a unit test for a Razor view? === Has anyone successfully written a unit test for a Razor view in ASP.Net MVC 3? I've been trying to create one but keep banging my head against various Null Reference exceptions.
0
5,773,172
04/24/2011 20:51:46
428,862
08/23/2010 21:29:45
251
4
In python Sorting a list of tuples?
How do you sort a list by elemant thats a tuple? Let say below is the list LL. I want to sort ID2 -- LL[1] which is a tuple as asc. How would I do it. Id, Id2 CCC A123 A120 '2011-03' LL= A133 A123 '2011-03' D123 D120 '2011-04' D140 D123 '2011-04'
python
sorting
null
null
null
null
open
In python Sorting a list of tuples? === How do you sort a list by elemant thats a tuple? Let say below is the list LL. I want to sort ID2 -- LL[1] which is a tuple as asc. How would I do it. Id, Id2 CCC A123 A120 '2011-03' LL= A133 A123 '2011-03' D123 D120 '2011-04' D140 D123 '2011-04'
0
4,239,055
11/21/2010 17:02:12
515,115
11/21/2010 13:42:36
1
0
C bit manipulation char array
If I have a pointer to an unsigned char array e.g. *uc_array, if I shift the content that the address points to right by 8 bits will they be in uc_array++ ?
c
bit-manipulation
null
null
null
null
open
C bit manipulation char array === If I have a pointer to an unsigned char array e.g. *uc_array, if I shift the content that the address points to right by 8 bits will they be in uc_array++ ?
0
8,110,433
11/13/2011 08:10:12
499,131
11/06/2010 09:22:05
109
10
Best storage engine for database with 10,000,000 rows
I have a database table with 10,000,000+ rows which I process to create a new table. What is the best type of storage engine for reading? Currently I use: $sql = "UPDATE `packages_unsorted` SET `acv_return_viadetails` = '0';"; Then to select the records: $sql = "SELECT * FROM `packages_unsorted` WHERE `acv_return_viadetails` = '0' LIMIT 1000;"; I collect the primary key `id` into an array called $ids and I process the records and write the data to a CSV file for import at the end of each 1000 rows. I then update the acv_return_viadetails field with: $sql = "UPDATE `packages_unsorted` SET `acv_return_viadetails` = '1' WHERE `id` IN ('".implode("','",$ids)."') LIMIT 1000;"; As the above is the only write to the table and I select all fields every time. Should I be using a memory table or some other type of storage engine to make things faster? Or are there any other optimizations I could introduce that would speed things up? Also what would be a reasonable my.cnf configuration for such an operation. Thanks in advance :)
php
mysql
update
innodb
myisam
11/13/2011 09:03:50
not constructive
Best storage engine for database with 10,000,000 rows === I have a database table with 10,000,000+ rows which I process to create a new table. What is the best type of storage engine for reading? Currently I use: $sql = "UPDATE `packages_unsorted` SET `acv_return_viadetails` = '0';"; Then to select the records: $sql = "SELECT * FROM `packages_unsorted` WHERE `acv_return_viadetails` = '0' LIMIT 1000;"; I collect the primary key `id` into an array called $ids and I process the records and write the data to a CSV file for import at the end of each 1000 rows. I then update the acv_return_viadetails field with: $sql = "UPDATE `packages_unsorted` SET `acv_return_viadetails` = '1' WHERE `id` IN ('".implode("','",$ids)."') LIMIT 1000;"; As the above is the only write to the table and I select all fields every time. Should I be using a memory table or some other type of storage engine to make things faster? Or are there any other optimizations I could introduce that would speed things up? Also what would be a reasonable my.cnf configuration for such an operation. Thanks in advance :)
4
6,887,925
07/31/2011 06:19:46
778,896
06/01/2011 07:09:08
117
0
Difference in behaviour of system commands
This is a multiple answer type question(One or more may be correct) Using which command can one figure out if a port on a certain host is open? • ping • telnet • traceroute • dig Please answer this question
homework
telnet
ping
traceroute
dig
07/31/2011 07:07:39
not a real question
Difference in behaviour of system commands === This is a multiple answer type question(One or more may be correct) Using which command can one figure out if a port on a certain host is open? • ping • telnet • traceroute • dig Please answer this question
1
10,208,442
04/18/2012 11:31:52
1,311,333
04/03/2012 20:08:25
12
1
How can I use PHP to automatically change the page if
...the conditions of an if statement are fulfilled? I have some code to add data to a database if certain conditions are met, after the data is added I want the page to redirect to another page? How can I do this?
php
mysql
database
url
hyperlink
04/18/2012 19:55:47
not a real question
How can I use PHP to automatically change the page if === ...the conditions of an if statement are fulfilled? I have some code to add data to a database if certain conditions are met, after the data is added I want the page to redirect to another page? How can I do this?
1
10,707,625
05/22/2012 18:10:27
1,380,443
05/07/2012 18:29:42
11
0
Two Way Audio via SIP protocol
I have a Two Way Audio device wich has an IP: 192.168.1.XX with a Two Way Audio Port: 5060 I made some research about it and found that the way to access to it should be via SIP Protocol the thing is that I don't know the address I'm using EKIGA(SIP client) and aparently it's working because in the interface provided by the device's producer it says that it is being used by another program, but even though it says it's being used by another program I am not able to send any sound to the device the address i use is: @192.168.1.XX:5060 I have to write a username befor "@" but i don't know what... Does anybody know something about it????
sip
network-protocols
two-way
null
null
null
open
Two Way Audio via SIP protocol === I have a Two Way Audio device wich has an IP: 192.168.1.XX with a Two Way Audio Port: 5060 I made some research about it and found that the way to access to it should be via SIP Protocol the thing is that I don't know the address I'm using EKIGA(SIP client) and aparently it's working because in the interface provided by the device's producer it says that it is being used by another program, but even though it says it's being used by another program I am not able to send any sound to the device the address i use is: @192.168.1.XX:5060 I have to write a username befor "@" but i don't know what... Does anybody know something about it????
0
5,364,680
03/19/2011 20:26:05
86,047
04/02/2009 07:14:01
132
12
Is there any tab manager for visual studio?
It's common for me to have 20+ files opened in Visual Studio _(I use VS 2008 now, but we will migrate to VS 2010, soon.)_. **Is there any add-in which could help organize actively opened files?** I mean something like [Firefox colorful tabs][1] or a tab-manager which will group windows tabs by projects or folders,... [1]: http://rockyourfirefox.com/2010/09/colorfultabs/
visual-studio
visual-studio-2008
visual-studio-2010
add-in
null
null
open
Is there any tab manager for visual studio? === It's common for me to have 20+ files opened in Visual Studio _(I use VS 2008 now, but we will migrate to VS 2010, soon.)_. **Is there any add-in which could help organize actively opened files?** I mean something like [Firefox colorful tabs][1] or a tab-manager which will group windows tabs by projects or folders,... [1]: http://rockyourfirefox.com/2010/09/colorfultabs/
0
9,886,847
03/27/2012 09:34:18
454,951
09/22/2010 10:52:33
14
1
"$(elementId + "_editor") is null" alert box appear while opening wysiwyg editor in magento
I have a button in magento in add item to open wysiwyg editor. Once i click on that i got alert box like "$(elementId + "_editor") is null" . and wysiwg editor is not opened. only ok and cancle button of that is opened.
javascript
jquery
magento
wysiwyg
null
null
open
"$(elementId + "_editor") is null" alert box appear while opening wysiwyg editor in magento === I have a button in magento in add item to open wysiwyg editor. Once i click on that i got alert box like "$(elementId + "_editor") is null" . and wysiwg editor is not opened. only ok and cancle button of that is opened.
0
6,683,883
07/13/2011 18:40:54
197,606
10/27/2009 19:49:00
3,075
105
What do you use to document site procedures, infrastructure and code?
I'm looking at http://www.phpdoc.org/, but wondering what you guys have found useful. I'm wanting something that will help document our code, but also procedures and tasks that are performed frequently on the site. What's the best solution for this in a linux/PHP/MySQL environment?
php
code-documentation
null
null
null
07/13/2011 21:25:19
off topic
What do you use to document site procedures, infrastructure and code? === I'm looking at http://www.phpdoc.org/, but wondering what you guys have found useful. I'm wanting something that will help document our code, but also procedures and tasks that are performed frequently on the site. What's the best solution for this in a linux/PHP/MySQL environment?
2
6,355,539
06/15/2011 09:18:50
764,182
05/21/2011 17:37:51
18
0
How can I find all *.js file in directory recursively in Linux?
Help find all *.js file in directory recursively in Linux? And output should be an absolute path (like /pub/home/user1/folder/jses/file.js ).
linux
null
null
null
null
06/15/2011 11:16:16
off topic
How can I find all *.js file in directory recursively in Linux? === Help find all *.js file in directory recursively in Linux? And output should be an absolute path (like /pub/home/user1/folder/jses/file.js ).
2
8,368,204
12/03/2011 14:06:27
1,076,395
12/01/2011 22:16:21
4
0
trying to implement a foreach on a form but not sure if that is possible
i am trying to get multiple text boxes to appear based on the number of modules in a table so i can rate then and submit the ratings back to the database and in the text box would be to never the moduleID. <?php $sql = "SELECT moduleID, COUNT(*) FROM module"; $stmt = $conn->prepare($sql); $st = $conn->prepare($nRows); try { $stmt->execute(); $results = $stmt->fetchColumn(); if (!$results){ // check we have some results echo "No modules Available to rank <br />"; } else{ //generate form foreach ($results as $row ){ print <form action= "<?php echo $_SERVER['PHP_SELF']; ?>" method="post" > <label for="search">Rate 1:</label> <input type="text" name="moduleID" id="addRate" value="" /> <input type="submit" name="submit" id="submit" /> print </form> } } } catch ( PDOException $e ) { echo "Query failed: " . $e->getMessage(); } ?>
php
mysql
forms
pdo
null
12/03/2011 17:57:40
not a real question
trying to implement a foreach on a form but not sure if that is possible === i am trying to get multiple text boxes to appear based on the number of modules in a table so i can rate then and submit the ratings back to the database and in the text box would be to never the moduleID. <?php $sql = "SELECT moduleID, COUNT(*) FROM module"; $stmt = $conn->prepare($sql); $st = $conn->prepare($nRows); try { $stmt->execute(); $results = $stmt->fetchColumn(); if (!$results){ // check we have some results echo "No modules Available to rank <br />"; } else{ //generate form foreach ($results as $row ){ print <form action= "<?php echo $_SERVER['PHP_SELF']; ?>" method="post" > <label for="search">Rate 1:</label> <input type="text" name="moduleID" id="addRate" value="" /> <input type="submit" name="submit" id="submit" /> print </form> } } } catch ( PDOException $e ) { echo "Query failed: " . $e->getMessage(); } ?>
1
5,621,324
04/11/2011 12:34:12
480,527
10/19/2010 13:41:50
3,306
198
jQuery val() and checkboxes
Is there some rationale for `val()` being useless for checkbox controls, whereas it is useful for getting input data consistently across every other input control? e.g. for checkboxes, at appears to *always return "on" regardless of the checkbox state.* For other input controls that don't actually have a "value" attribute, e.g. select and textarea, it behaves as you would expect. See: http://jsfiddle.net/jamietre/sdF2h/4/ I can't think of a good reason why it wouldn't return `true` or `false`. Failing that, at least return "on" only when checked, and an empty string when not. Failing that, at least always return an empty string, given that checkboxes have no `value` attribute! Obviously I know how to get the value using `attr`, but here's the situation. I am developing a simple (so far anyway) C# jQuery implementation to do HTML parsing on the server, and I am trying to be completely faithful to jQuery's implementation so it behaves consistently on either the client or server against the same DOM. But this just seems stupid and I'm having a hard time getting myself to actually code "value" to return "ON" for a checkbox no matter what. But if I don't, it won't be consistent. So I'm trying to understand, is there some reason for doing this? Does it serve some purpose, or is it simply an artifact of some kind? Would anyone ever use the `val()` method against a checkbox, if so, why? If not, why did the jQuery architects decide on this approach to make it not useful?
jquery
null
null
null
null
null
open
jQuery val() and checkboxes === Is there some rationale for `val()` being useless for checkbox controls, whereas it is useful for getting input data consistently across every other input control? e.g. for checkboxes, at appears to *always return "on" regardless of the checkbox state.* For other input controls that don't actually have a "value" attribute, e.g. select and textarea, it behaves as you would expect. See: http://jsfiddle.net/jamietre/sdF2h/4/ I can't think of a good reason why it wouldn't return `true` or `false`. Failing that, at least return "on" only when checked, and an empty string when not. Failing that, at least always return an empty string, given that checkboxes have no `value` attribute! Obviously I know how to get the value using `attr`, but here's the situation. I am developing a simple (so far anyway) C# jQuery implementation to do HTML parsing on the server, and I am trying to be completely faithful to jQuery's implementation so it behaves consistently on either the client or server against the same DOM. But this just seems stupid and I'm having a hard time getting myself to actually code "value" to return "ON" for a checkbox no matter what. But if I don't, it won't be consistent. So I'm trying to understand, is there some reason for doing this? Does it serve some purpose, or is it simply an artifact of some kind? Would anyone ever use the `val()` method against a checkbox, if so, why? If not, why did the jQuery architects decide on this approach to make it not useful?
0
5,218,781
03/07/2011 10:54:30
361,635
06/08/2010 17:17:07
550
4
Screen Resulation and XML
How can Screen resulation detected via xml? A query like this: http://{api_url}/articles/show/?screen_resolution=320x480 Thanks in advance
xml
mobile
null
null
null
03/07/2011 11:29:26
not a real question
Screen Resulation and XML === How can Screen resulation detected via xml? A query like this: http://{api_url}/articles/show/?screen_resolution=320x480 Thanks in advance
1
1,857,055
12/06/2009 23:45:15
192,910
10/20/2009 07:56:41
32
0
How to lex 0 .. 255 ?
I want to accept a decimal number between 0 and 255. This is the best I can come up with: <pre> fragment my_token : ('0'..'9') | // 0 -> 9 ('1'..'9' '0'..'9') | // 0 -> 99 ('1' '0'..'9' '0'..'9') | // 100 -> 199 ('2' '0'..'4' '0'..'9') | // 200 -> 249 ('25' '0'..'5'); // 250 -> 255 </pre> but I am just a clueless n00b. Surelry there is a better way?
antlr
antlr3
null
null
null
null
open
How to lex 0 .. 255 ? === I want to accept a decimal number between 0 and 255. This is the best I can come up with: <pre> fragment my_token : ('0'..'9') | // 0 -> 9 ('1'..'9' '0'..'9') | // 0 -> 99 ('1' '0'..'9' '0'..'9') | // 100 -> 199 ('2' '0'..'4' '0'..'9') | // 200 -> 249 ('25' '0'..'5'); // 250 -> 255 </pre> but I am just a clueless n00b. Surelry there is a better way?
0
11,468,742
07/13/2012 10:30:57
1,523,294
07/13/2012 10:28:21
1
0
Wix Installer password protected
I need to make my Wix Installer password protected. How can I do this?. Thanks in advance. Eddy C
installer
wix
null
null
null
07/17/2012 14:36:50
not constructive
Wix Installer password protected === I need to make my Wix Installer password protected. How can I do this?. Thanks in advance. Eddy C
4
8,589,717
12/21/2011 12:17:48
1,020,476
10/30/2011 07:55:30
185
3
C# How can write a client and server in win app to transfer http
I am interesting to write a C# Client Server application and there are my issues: 1-the client App must be a WinServer 2-the client side, store some files, zipped them and send by http (no TCP or UDP or Socket) to the Server 3-the client side must check the server if the server was offline must be store zip files in some place of local machine and by schedule check the server to start transfer them. 4-the server send some command to client (or client check the server for commands) and need a command execution in client side 5-the client need to check server for some parameters or replace them by default(if server was offline or did not suggest any parameter) I need some idea about the implementation of this, Does any one have any Idea about it?
c#
http
windows-services
client-server
null
12/21/2011 13:53:19
not a real question
C# How can write a client and server in win app to transfer http === I am interesting to write a C# Client Server application and there are my issues: 1-the client App must be a WinServer 2-the client side, store some files, zipped them and send by http (no TCP or UDP or Socket) to the Server 3-the client side must check the server if the server was offline must be store zip files in some place of local machine and by schedule check the server to start transfer them. 4-the server send some command to client (or client check the server for commands) and need a command execution in client side 5-the client need to check server for some parameters or replace them by default(if server was offline or did not suggest any parameter) I need some idea about the implementation of this, Does any one have any Idea about it?
1
8,220,825
11/22/2011 01:19:11
1,057,668
11/21/2011 11:04:15
1
0
What are the advantages of using LINQ?
What are the advantages of using LINQ over other data querying mechanisms such as SQL?
sql
linq
null
null
null
11/22/2011 10:10:34
not constructive
What are the advantages of using LINQ? === What are the advantages of using LINQ over other data querying mechanisms such as SQL?
4
3,206,093
07/08/2010 16:56:58
156,787
08/15/2009 00:13:02
481
22
Push local master commits to remote branch
I've been working on a local clone of a remote git repository, committing my changes to my local master branch. Now, I want to push my commits to the remote repository. However, I want to keep my local commits separate from the remote master branch, so that I don't break anything. How can I push my local commits to a new remote branch?
linux
git
null
null
null
null
open
Push local master commits to remote branch === I've been working on a local clone of a remote git repository, committing my changes to my local master branch. Now, I want to push my commits to the remote repository. However, I want to keep my local commits separate from the remote master branch, so that I don't break anything. How can I push my local commits to a new remote branch?
0
10,802,191
05/29/2012 15:28:41
1,424,049
05/29/2012 15:13:25
1
0
Using meteor with postgresql
I want to use meteor to connect to our relational database (postgreslq). Is there any experience in connection meteor to other databases? I guess we have to write our own connector to use the nice features of meteor with postgresql.
sql
postgresql
meteor
null
null
null
open
Using meteor with postgresql === I want to use meteor to connect to our relational database (postgreslq). Is there any experience in connection meteor to other databases? I guess we have to write our own connector to use the nice features of meteor with postgresql.
0
1,108,950
07/10/2009 11:04:28
136,161
07/10/2009 09:44:40
18
0
NVL statement
can nvl() function be cascaded,...it was asked me in IBM interview .....and why????
sql
function
null
null
null
null
open
NVL statement === can nvl() function be cascaded,...it was asked me in IBM interview .....and why????
0
9,332,339
02/17/2012 16:56:53
1,216,670
02/17/2012 16:08:05
1
0
Random information from API
with my team we are working on a project that require to retrive posts on user home. We are using the PHP-SDK (last version) and the Graph API for retrive the information; but the problem isn't this, the php script is perfectly working, but there is an issue: every time i refresh the page, facebook give us different information...an example: $home_posts=$facebook->api('/me/home?limit=20'); foreach($home_posts['data'] as $home_posts){ operation... } Sometimes on a limit of 20 posts it gives us 10 posts, sometimes 15, sometimes all 20 postes etc... Or doesn't give a post, or give different information... It's like facebook gives random informations :S The Graph API Explorer facebook tool give sometimes this problem too (http://developers.facebook.com/tools/explorer/), it returns a different number of post or doesn't give a post etc... It's very strange and is a very boring problem for those want to create a service that use Facebook API Someone can help us? Someone has encountered this issue? I think there is a problem in facebook API system, but reading the Platform Status give ever Facebook Platform is Healthy.
facebook
facebook-graph-api
facebook-php-sdk
issues
facebook-wall
null
open
Random information from API === with my team we are working on a project that require to retrive posts on user home. We are using the PHP-SDK (last version) and the Graph API for retrive the information; but the problem isn't this, the php script is perfectly working, but there is an issue: every time i refresh the page, facebook give us different information...an example: $home_posts=$facebook->api('/me/home?limit=20'); foreach($home_posts['data'] as $home_posts){ operation... } Sometimes on a limit of 20 posts it gives us 10 posts, sometimes 15, sometimes all 20 postes etc... Or doesn't give a post, or give different information... It's like facebook gives random informations :S The Graph API Explorer facebook tool give sometimes this problem too (http://developers.facebook.com/tools/explorer/), it returns a different number of post or doesn't give a post etc... It's very strange and is a very boring problem for those want to create a service that use Facebook API Someone can help us? Someone has encountered this issue? I think there is a problem in facebook API system, but reading the Platform Status give ever Facebook Platform is Healthy.
0
5,766,573
04/23/2011 20:01:43
4,653
09/05/2008 00:53:33
1,800
84
in C#, what is the best way to compare 2 integer lists / array
i want to compare 2 integer list for equality. i am happy to sort them in advance if that makes it easier. Here is an example of two things that i want to compare. For the below, i want the result to be true. List<int> list = new List<int>(){1, 4,6,7}; int[] myArray = new int[]{1, 6,7 ,4};
c#
arrays
integer
null
null
null
open
in C#, what is the best way to compare 2 integer lists / array === i want to compare 2 integer list for equality. i am happy to sort them in advance if that makes it easier. Here is an example of two things that i want to compare. For the below, i want the result to be true. List<int> list = new List<int>(){1, 4,6,7}; int[] myArray = new int[]{1, 6,7 ,4};
0
9,896,133
03/27/2012 19:17:38
198,037
10/28/2009 11:55:30
70
0
Reverse unsigned to signed conversion in Java
Using C++, an int gets converted from "signed" to "unsigned". Can I convert this "unsigned" int back to "signed" using JAVA. >Signed value (-3) converted in to unsigned (65533) using C++. >How can i convert unsigned (65533) value back to signed (-3) using JAVA Thanks in advance. Prav
java
c++
null
null
null
null
open
Reverse unsigned to signed conversion in Java === Using C++, an int gets converted from "signed" to "unsigned". Can I convert this "unsigned" int back to "signed" using JAVA. >Signed value (-3) converted in to unsigned (65533) using C++. >How can i convert unsigned (65533) value back to signed (-3) using JAVA Thanks in advance. Prav
0
7,210,868
08/26/2011 21:45:50
914,815
08/26/2011 20:56:05
1
0
(PHP) Design pattern for the same entity over different access layers
I've been having trouble finding the right design pattern for the following situation: I'm programming MVC with PHP-Activerecord and a custom framework in an enterprise setting with a SOAP-based SOA. Now I'm trying to access and/or persist basically the *same* entity over different access layers, depending on the situation. To be a bit more to the point, I will choose an example: There is a "Member" entity in our system. Now one way to access this member is over a SOAP webservice for which I have written an abstractor: class Member extends ServiceAbstractor {} Pro: Live access to the data (there is no other way for me to reach the production database directly). Con: Pretty slow and I can't do things like a "JOIN" with other entities or a "SELECT LIKE '%member1%'" easily due to the architecture which I cannot change. Another way is to access the same entity through an older database replication. For that I would use a syntax like this: class Member extends ActiveRecord\Model { /* Connection 1 */ } Pro: Blazingly fast and I can do all the fancy stuff described above to do filtering, reporting and aggregation on the Member Data with SQL. Con: Readonly, data is a little older (but does not really matter for most applications). Sometimes, I even need to store additional metadata on the member, like who changed something about it for example. For that I would use a local MySQL database, also with ActiveRecord, but on a different connection: class Member extends ActiveRecord\Model { /* Connection 2 */ } Now I would basically love to work with the same entity "Member" in a logical perspective, but obviously I cannot inherit the same class from three different access layers. Probable use case: Get a member ID via a partial name search from the database copy (SELECT LIKE), then get the "real" member from the webservice, update it with something and then store the editor and last changes for this member in my local database. Now I could name the respective classes something like "Member", "MemberCopy" and "MemberMeta" (?), but that leaves me a little unsatisfied, as think I'm talking about the very same entity here. Does anyone have similar problems and/or some advice on naming or design patterns for this issue?
mvc
design-patterns
activerecord
php-5.3
webservice-client
null
open
(PHP) Design pattern for the same entity over different access layers === I've been having trouble finding the right design pattern for the following situation: I'm programming MVC with PHP-Activerecord and a custom framework in an enterprise setting with a SOAP-based SOA. Now I'm trying to access and/or persist basically the *same* entity over different access layers, depending on the situation. To be a bit more to the point, I will choose an example: There is a "Member" entity in our system. Now one way to access this member is over a SOAP webservice for which I have written an abstractor: class Member extends ServiceAbstractor {} Pro: Live access to the data (there is no other way for me to reach the production database directly). Con: Pretty slow and I can't do things like a "JOIN" with other entities or a "SELECT LIKE '%member1%'" easily due to the architecture which I cannot change. Another way is to access the same entity through an older database replication. For that I would use a syntax like this: class Member extends ActiveRecord\Model { /* Connection 1 */ } Pro: Blazingly fast and I can do all the fancy stuff described above to do filtering, reporting and aggregation on the Member Data with SQL. Con: Readonly, data is a little older (but does not really matter for most applications). Sometimes, I even need to store additional metadata on the member, like who changed something about it for example. For that I would use a local MySQL database, also with ActiveRecord, but on a different connection: class Member extends ActiveRecord\Model { /* Connection 2 */ } Now I would basically love to work with the same entity "Member" in a logical perspective, but obviously I cannot inherit the same class from three different access layers. Probable use case: Get a member ID via a partial name search from the database copy (SELECT LIKE), then get the "real" member from the webservice, update it with something and then store the editor and last changes for this member in my local database. Now I could name the respective classes something like "Member", "MemberCopy" and "MemberMeta" (?), but that leaves me a little unsatisfied, as think I'm talking about the very same entity here. Does anyone have similar problems and/or some advice on naming or design patterns for this issue?
0
5,088,024
02/23/2011 07:17:58
374,402
06/23/2010 15:54:09
328
8
Serve multiple client request from server using some bridge
My client basically make RDP kind of connection to server (see VNC server) So, there are multiple client making connection to the server. To lower bandwidth, I want a bridge between server and clients. Basically this bridge will connect to server at a port and serve multiple client request. request can also be of seeing output in true color or monochrome. I hope i cleared my problem. Can anyone suggest what todo?
c++
networking
vnc
null
null
06/10/2012 16:55:18
off topic
Serve multiple client request from server using some bridge === My client basically make RDP kind of connection to server (see VNC server) So, there are multiple client making connection to the server. To lower bandwidth, I want a bridge between server and clients. Basically this bridge will connect to server at a port and serve multiple client request. request can also be of seeing output in true color or monochrome. I hope i cleared my problem. Can anyone suggest what todo?
2
3,175,081
07/04/2010 15:04:19
383,121
07/04/2010 14:47:05
1
0
Domain-Driven-Design - How a UnitOfWork should be notified about entities that were updated?
There is something not clear to me about domain-driven-design and unit of work pattern. Let's say I have an entity that was retrieved from a repository. Once I updated this entity, how UnitOfWork should know that it was updated, so the updated entity can be persisted to the DB? Currently, I see two options: 1) Manually call uow.Update(entity) in the service layer. E.g.: Employee emp = EmployeeRepository.GetByID(1); emp.Name = "NewName"; uow.Update(emp); uow.Commit(); 2) Rely on some ORM magic to track changes, and persist updated entities to the DB. E.g.: Employee emp = EmployeeRepository.GetByID(1); emp.Name = "NewName"; uow.Commit(); Both these options seems hairy to me: First - if changes were made inside some aggregate, the aggregate should let the service layer know that it updated some entities. Second - isn't relying on ORM implementation is violation of Persistence Ignorance principle? What do you do in your projects? Or maybe I miss something / messed up something and there is better solution? Thanks
domain-driven-design
null
null
null
null
null
open
Domain-Driven-Design - How a UnitOfWork should be notified about entities that were updated? === There is something not clear to me about domain-driven-design and unit of work pattern. Let's say I have an entity that was retrieved from a repository. Once I updated this entity, how UnitOfWork should know that it was updated, so the updated entity can be persisted to the DB? Currently, I see two options: 1) Manually call uow.Update(entity) in the service layer. E.g.: Employee emp = EmployeeRepository.GetByID(1); emp.Name = "NewName"; uow.Update(emp); uow.Commit(); 2) Rely on some ORM magic to track changes, and persist updated entities to the DB. E.g.: Employee emp = EmployeeRepository.GetByID(1); emp.Name = "NewName"; uow.Commit(); Both these options seems hairy to me: First - if changes were made inside some aggregate, the aggregate should let the service layer know that it updated some entities. Second - isn't relying on ORM implementation is violation of Persistence Ignorance principle? What do you do in your projects? Or maybe I miss something / messed up something and there is better solution? Thanks
0
11,176,296
06/24/2012 09:18:49
1,300,229
03/29/2012 08:20:22
14
0
Activating UIImageView with GestureRecognizer in a ScrollView
I, I'm currently trying to implement a Gesture recognizer into a ScrollView. I first created a custom ScrollView in which I integrated ImageView object. When the user clicks on a ImageView, normally the PanGestureRecognizer activates and the ImageView object follow the move on the screen. I have read and followed the instructions on Gesture Recognizer and the Raywenderlich blog (which is very well done). If someone has a clue of what is missing in my code, I would be happy to read it Thank in advance. Here is my code #import <Foundation/Foundation.h> #import "mainInterface03.h" #import <QuartzCore/QuartzCore.h> #import "boutonHome.h" #import "DragGestureRecognizer.h" @class boutonHome; @class DragGestureRecognizer; @interface TapScrollView : UIScrollView { // id<TapScrollViewDelegate> delegate; NSMutableArray *classementBoutons; int n; int o; UIView *bouton01; } @property (nonatomic, retain) UIView *bouton01; @property (retain, nonatomic) IBOutletCollection(UIButton) NSMutableSet* buttons; -(id)init; -(void)initierScrollView; -(void) createGestureRecognizers; -(IBAction)handlePanGesture:(UIPanGestureRecognizer*)sender; @end m.file #import "TapScrollView.h" @implementation TapScrollView @synthesize bouton01; - (id) init { if (self = [super init]) { NSLog(@"Classe TapScrollView initiée"); } return self; } -(void)initierScrollView { int i; for (i=0; i<6; i++) { UIImage *image = [UIImage imageNamed:@"back.png"]; UIImageView *bouton = [[UIImageView alloc] initWithImage:image]; [bouton setTag:i]; [bouton setFrame:CGRectMake(72*i+20,10,62,55)]; [classementBoutons insertObject:bouton atIndex:i]; [self addSubview:bouton]; } UIPanGestureRecognizer *recognizer = [[UIPanGestureRecognizer alloc] initWithTarget:bouton01 action:@selector(handlePanGesture:)]; [bouton01 addGestureRecognizer:recognizer]; } - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = [touches anyObject]; [super touchesBegan:touches withEvent:event]; for (o=1; o<6; o++) { if ([touch view] == [self viewWithTag:o]) { bouton01 = [self viewWithTag:o]; } } return; } -(IBAction)handlePanGesture:(UIPanGestureRecognizer*)recognizer { NSLog(@"Mouvement ok"); CGPoint translation = [recognizer translationInView:self]; recognizer.view.center = CGPointMake(recognizer.view.center.x + translation.x, recognizer.view.center.y + translation.y); [recognizer setTranslation:CGPointMake(0, 0) inView:self]; } @end
iphone
uiscrollview
uiimageview
uigesturerecognizer
null
null
open
Activating UIImageView with GestureRecognizer in a ScrollView === I, I'm currently trying to implement a Gesture recognizer into a ScrollView. I first created a custom ScrollView in which I integrated ImageView object. When the user clicks on a ImageView, normally the PanGestureRecognizer activates and the ImageView object follow the move on the screen. I have read and followed the instructions on Gesture Recognizer and the Raywenderlich blog (which is very well done). If someone has a clue of what is missing in my code, I would be happy to read it Thank in advance. Here is my code #import <Foundation/Foundation.h> #import "mainInterface03.h" #import <QuartzCore/QuartzCore.h> #import "boutonHome.h" #import "DragGestureRecognizer.h" @class boutonHome; @class DragGestureRecognizer; @interface TapScrollView : UIScrollView { // id<TapScrollViewDelegate> delegate; NSMutableArray *classementBoutons; int n; int o; UIView *bouton01; } @property (nonatomic, retain) UIView *bouton01; @property (retain, nonatomic) IBOutletCollection(UIButton) NSMutableSet* buttons; -(id)init; -(void)initierScrollView; -(void) createGestureRecognizers; -(IBAction)handlePanGesture:(UIPanGestureRecognizer*)sender; @end m.file #import "TapScrollView.h" @implementation TapScrollView @synthesize bouton01; - (id) init { if (self = [super init]) { NSLog(@"Classe TapScrollView initiée"); } return self; } -(void)initierScrollView { int i; for (i=0; i<6; i++) { UIImage *image = [UIImage imageNamed:@"back.png"]; UIImageView *bouton = [[UIImageView alloc] initWithImage:image]; [bouton setTag:i]; [bouton setFrame:CGRectMake(72*i+20,10,62,55)]; [classementBoutons insertObject:bouton atIndex:i]; [self addSubview:bouton]; } UIPanGestureRecognizer *recognizer = [[UIPanGestureRecognizer alloc] initWithTarget:bouton01 action:@selector(handlePanGesture:)]; [bouton01 addGestureRecognizer:recognizer]; } - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = [touches anyObject]; [super touchesBegan:touches withEvent:event]; for (o=1; o<6; o++) { if ([touch view] == [self viewWithTag:o]) { bouton01 = [self viewWithTag:o]; } } return; } -(IBAction)handlePanGesture:(UIPanGestureRecognizer*)recognizer { NSLog(@"Mouvement ok"); CGPoint translation = [recognizer translationInView:self]; recognizer.view.center = CGPointMake(recognizer.view.center.x + translation.x, recognizer.view.center.y + translation.y); [recognizer setTranslation:CGPointMake(0, 0) inView:self]; } @end
0
2,887,590
05/22/2010 09:38:39
306,761
04/01/2010 10:08:15
1
0
UnsupportedOperationException on Collection
While studying the `Collection` API, we find that some methods (`add`, `remove`,...) may throw a `java.lang.UnsupportedOperationException` if the current implementation of the Collection does not support those functionalities. Is there,actually, in the JDK, a concrete `Collection` that does not support those methods ? Thanks a lot for your answers.
java
exception
collection
unsupportedoperationexcep
null
null
open
UnsupportedOperationException on Collection === While studying the `Collection` API, we find that some methods (`add`, `remove`,...) may throw a `java.lang.UnsupportedOperationException` if the current implementation of the Collection does not support those functionalities. Is there,actually, in the JDK, a concrete `Collection` that does not support those methods ? Thanks a lot for your answers.
0
11,476,986
07/13/2012 19:19:14
832,636
07/07/2011 01:12:21
72
0
Boost algorithms execution?
Does anybody know how to run (compile/execute) the algorithms provided by the Boost library? I am trying to use some of their algorithms to perform tests and can't figure out how to run them. Thanks in advance.
c++
boost
null
null
null
07/14/2012 18:27:04
not a real question
Boost algorithms execution? === Does anybody know how to run (compile/execute) the algorithms provided by the Boost library? I am trying to use some of their algorithms to perform tests and can't figure out how to run them. Thanks in advance.
1
7,312,145
09/05/2011 19:43:34
219,872
11/27/2009 07:25:08
141
0
Is this possible to allow users to pay directly to the movie theaters in iphone?
Is this possible to allows user to pay directly to the movie theaters. Do we require external approvals or assistance from the web administrator for the cinemas to do the above? 2) Would apple allow me to charge an admin fee for each transaction made on my app? Please let me know about, i have to answer this to my client.
iphone
null
null
null
null
09/05/2011 19:54:21
off topic
Is this possible to allow users to pay directly to the movie theaters in iphone? === Is this possible to allows user to pay directly to the movie theaters. Do we require external approvals or assistance from the web administrator for the cinemas to do the above? 2) Would apple allow me to charge an admin fee for each transaction made on my app? Please let me know about, i have to answer this to my client.
2