When Web Essentials minifies css files, it does not generate the map files.
Do I miss any special settings?
Here's my WebEssentials-Settings.json:
{
"BrowserLink": {
"CssIgnorePatterns": "bootstrap*; reset.css; normalize.css; jquery*; toastr*; foundation*; animate*; inuit*; elements*; ratchet*; hint*; flat-ui*; 960*; skeleton*",
"EnableMenu": true,
"EnablePixelPushing": true,
"ShowMenu": true
},
"CodeGen": {
"CamelCasePropertyNames": true,
"CamelCaseTypeNames": false
},
"CoffeeScript": {
"CompileOnBuild": false,
"CompileOnSave": true,
"GenerateSourceMaps": true,
"LintOnBuild": false,
"LintOnSave": true,
"LintResultLocation": "Message",
"MinifyInPlace": false,
"OutputDirectory": null,
"ShowPreviewPane": true,
"WrapClosure": true
},
"Css": {
"AdjustRelativePaths": true,
"AutoMinify": true,
"GzipMinifiedFiles": false,
"ShowBrowserTooltip": true,
"ShowInitialInherit": false,
"ShowUnsupported": true,
"SyncVendorValues": true,
"ValidateEmbedImages": true,
"ValidateOverQualifiedSelector": true,
"ValidateStarSelector": true,
"ValidateVendorSpecifics": true,
"ValidateZeroUnit": true,
"ValidationLocation": "Messages"
},
"General": {
"AllMessagesToOutputWindow": false,
"KeepImportantComments": true,
"SvgPreviewPane": true
},
"Html": {
"AutoMinify": false,
"EnableAngularValidation": true,
"EnableEnterFormat": true,
"GzipMinifiedFiles": false,
"ImageDropFormats": [
{
"HtmlFormat": "<img src=\"{0}\" alt=\"\" />",
"Name": "Simple Image Tag"
},
{
"HtmlFormat": "<div><img src=\"{0}\" alt=\"\" /></div>",
"Name": "Enclosed in Div"
},
{
"HtmlFormat": "<li id=\"item_{1}\"><img src=\"{0}\" alt=\"\" /></li>",
"Name": "Enclosed as List Item"
},
{
"HtmlFormat": "<div style=\"background-image=url('{0}')\"></div>",
"Name": "Inline CSS"
}
]
},
"JavaScript": {
"AutoMinify": true,
"BlockCommentCompletion": true,
"GenerateSourceMaps": true,
"GzipMinifiedFiles": false,
"LintOnBuild": false,
"LintOnSave": true,
"LintResultLocation": "Message"
},
"Less": {
"CompileOnBuild": false,
"CompileOnSave": true,
"EnableChainCompilation": true,
"GenerateSourceMaps": true,
"MinifyInPlace": false,
"OutputDirectory": null,
"ShowPreviewPane": true
},
"Markdown": {
"AutoHyperlink": false,
"AutoNewLines": false,
"CompileOnBuild": false,
"CompileOnSave": true,
"EncodeProblemUrlCharacters": false,
"GenerateXHTML": true,
"LinkEmails": false,
"MinifyInPlace": false,
"OutputDirectory": null,
"ShowPreviewPane": true,
"StrictBoldItalic": false
},
"Scss": {
"CompileOnBuild": false,
"CompileOnSave": true,
"EnableChainCompilation": true,
"GenerateSourceMaps": true,
"MinifyInPlace": false,
"OutputDirectory": null,
"ShowPreviewPane": true
},
"SweetJs": {
"CompileOnBuild": false,
"CompileOnSave": true,
"GenerateSourceMaps": true,
"MinifyInPlace": false,
"OutputDirectory": null,
"ShowPreviewPane": true
},
"TypeScript": {
"LintOnBuild": false,
"LintOnSave": true,
"LintResultLocation": "Message",
"ShowPreviewPane": true
}
}
Related
My datatable columns header is not aligned with their content:
Here is how it looks like:
Here is a datatable code:
$("#myTable").dataTable(
{
"sDom": 't<"fg-toolbar ui-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix"i>',
//sDom:
//'l' - Length changing
//'f' - Filtering input
//'t' - The table!
//'i' - Information
//'p' - Pagination
//'r' - pRocessing
"bAutoWidth": false,
"aoColumns": [
{ "sSortDataType": "dom-checkbox" }, //checkbox
{ "sType": "string", "bSortable": true }, //CreatedDate
{ "sType": "string", "bSortable": true }, //CreatedBy
{ "sType": "string", "bSortable": true }, //Category
{ "sType": "string", "bSortable": false }, //Note
{ "sType": "string", "bSortable": true}, //Application
{ "sType": "string", "bSortable": false } //Update Button
],
"sScrollY": "180px",
"bPaginate": false,
"bFilter": false,
"aaSorting": [],
"bAutoWidth": false,
"bInfo": true,
"bJQueryUI": true
});
What am I missing?
I have found a solution for my case.
I've been searching online but couldn't find a solution that would help in my case, so I played with a css and found what fixed my problem
My table has an id #myTable.
So, I just needed to set the particular columns' left padding:
#myTable td:nth-child(6){
padding-left:50px;
}
#myTable td:nth-child(7){
padding-left:50px;
}
And it fixed the problem:
Here is the documentation EntityMetadata EntityType where all the properties of an entity are described.
I can not find any property that can describe the possibility to create a record of this entity type there.
How can I figure out that this entity type supports the creation of records?
As an example - activitypointer EntityType supports only Operations Supported GET, but in the entity metadata description, there is nothing related to it.
ActivityPointer EntityMetadata
{
"ActivityTypeMask": 1,
"AutoCreateAccessTeams": false,
"AutoRouteToOwnerQueue": false,
"CanBeInCustomEntityAssociation": {
"CanBeChanged": false,
"ManagedPropertyLogicalName": "canbeincustomentityassociation",
"Value": false
},
"CanBeInManyToMany": {
"CanBeChanged": false,
"ManagedPropertyLogicalName": "canbeinmanytomany",
"Value": false
},
"CanBePrimaryEntityInRelationship": {
"CanBeChanged": false,
"ManagedPropertyLogicalName": "canbeprimaryentityinrelationship",
"Value": false
},
"CanBeRelatedEntityInRelationship": {
"CanBeChanged": false,
"ManagedPropertyLogicalName": "canberelatedentityinrelationship",
"Value": false
},
"CanChangeHierarchicalRelationship": {
"CanBeChanged": false,
"ManagedPropertyLogicalName": "canchangehierarchicalrelationship",
"Value": false
},
"CanChangeTrackingBeEnabled": {
"CanBeChanged": true,
"ManagedPropertyLogicalName": "canchangetrackingbeenabled",
"Value": true
},
"CanCreateAttributes": {
"CanBeChanged": false,
"ManagedPropertyLogicalName": "cancreateattributes",
"Value": false
},
"CanCreateCharts": {
"CanBeChanged": false,
"ManagedPropertyLogicalName": "cancreatecharts",
"Value": true
},
"CanCreateForms": {
"CanBeChanged": false,
"ManagedPropertyLogicalName": "cancreateforms",
"Value": false
},
"CanCreateViews": {
"CanBeChanged": false,
"ManagedPropertyLogicalName": "cancreateviews",
"Value": true
},
"CanEnableSyncToExternalSearchIndex": {
"CanBeChanged": false,
"ManagedPropertyLogicalName": "canenablesynctoexternalsearchindex",
"Value": false
},
"CanModifyAdditionalSettings": {
"CanBeChanged": true,
"ManagedPropertyLogicalName": "canmodifyadditionalsettings",
"Value": true
},
"CanTriggerWorkflow": false,
"ChangeTrackingEnabled": true,
"CollectionSchemaName": "ActivityPointers",
"DataProviderId": null,
"DataSourceId": null,
"DaysSinceRecordLastModified": 0,
"Description": {
"LocalizedLabels": [
{
"HasChanged": null,
"IsManaged": true,
"Label": "Task performed, or to be performed, by a user. An activity is any action for which an entry can be made on a calendar.",
"LanguageCode": 1033,
"MetadataId": "499709b3-2241-db11-898a-0007e9e17ebd"
}
],
"UserLocalizedLabel": {
"HasChanged": null,
"IsManaged": true,
"Label": "Task performed, or to be performed, by a user. An activity is any action for which an entry can be made on a calendar.",
"LanguageCode": 1033,
"MetadataId": "499709b3-2241-db11-898a-0007e9e17ebd"
}
},
"DisplayCollectionName": {
"LocalizedLabels": [
{
"HasChanged": null,
"IsManaged": true,
"Label": "Activities",
"LanguageCode": 1033,
"MetadataId": "4b9709b3-2241-db11-898a-0007e9e17ebd"
}
],
"UserLocalizedLabel": {
"HasChanged": null,
"IsManaged": true,
"Label": "Activities",
"LanguageCode": 1033,
"MetadataId": "4b9709b3-2241-db11-898a-0007e9e17ebd"
}
},
"DisplayName": {
"LocalizedLabels": [
{
"HasChanged": null,
"IsManaged": true,
"Label": "Activity",
"LanguageCode": 1033,
"MetadataId": "4a9709b3-2241-db11-898a-0007e9e17ebd"
}
],
"UserLocalizedLabel": {
"HasChanged": null,
"IsManaged": true,
"Label": "Activity",
"LanguageCode": 1033,
"MetadataId": "4a9709b3-2241-db11-898a-0007e9e17ebd"
}
},
"EnforceStateTransitions": false,
"EntityColor": "#505050",
"EntityHelpUrl": null,
"EntityHelpUrlEnabled": false,
"EntitySetName": "activitypointers",
"ExternalCollectionName": null,
"ExternalName": null,
"HasActivities": false,
"HasChanged": null,
"HasFeedback": false,
"HasNotes": false,
"IconLargeName": null,
"IconMediumName": null,
"IconSmallName": null,
"IconVectorName": null,
"IntroducedVersion": "5.0.0.0",
"IsAIRUpdated": false,
"IsActivity": false,
"IsActivityParty": false,
"IsAuditEnabled": {
"CanBeChanged": false,
"ManagedPropertyLogicalName": "canmodifyauditsettings",
"Value": false
},
"IsAvailableOffline": true,
"IsBPFEntity": false,
"IsBusinessProcessEnabled": false,
"IsChildEntity": false,
"IsConnectionsEnabled": {
"CanBeChanged": false,
"ManagedPropertyLogicalName": "canmodifyconnectionsettings",
"Value": true
},
"IsCustomEntity": false,
"IsCustomizable": {
"CanBeChanged": false,
"ManagedPropertyLogicalName": "iscustomizable",
"Value": true
},
"IsDocumentManagementEnabled": false,
"IsDocumentRecommendationsEnabled": false,
"IsDuplicateDetectionEnabled": {
"CanBeChanged": false,
"ManagedPropertyLogicalName": "canmodifyduplicatedetectionsettings",
"Value": false
},
"IsEnabledForCharts": true,
"IsEnabledForExternalChannels": false,
"IsEnabledForTrace": false,
"IsImportable": false,
"IsInteractionCentricEnabled": true,
"IsIntersect": false,
"IsKnowledgeManagementEnabled": false,
"IsLogicalEntity": false,
"IsMSTeamsIntegrationEnabled": false,
"IsMailMergeEnabled": {
"CanBeChanged": false,
"ManagedPropertyLogicalName": "canmodifymailmergesettings",
"Value": false
},
"IsManaged": true,
"IsMappable": {
"CanBeChanged": false,
"ManagedPropertyLogicalName": "ismappable",
"Value": false
},
"IsOfflineInMobileClient": {
"CanBeChanged": false,
"ManagedPropertyLogicalName": "canmodifymobileclientoffline",
"Value": false
},
"IsOneNoteIntegrationEnabled": false,
"IsOptimisticConcurrencyEnabled": true,
"IsPrivate": false,
"IsQuickCreateEnabled": false,
"IsReadOnlyInMobileClient": {
"CanBeChanged": false,
"ManagedPropertyLogicalName": "canmodifymobileclientreadonly",
"Value": false
},
"IsReadingPaneEnabled": true,
"IsRenameable": {
"CanBeChanged": false,
"ManagedPropertyLogicalName": "isrenameable",
"Value": true
},
"IsSLAEnabled": false,
"IsSolutionAware": false,
"IsStateModelAware": false,
"IsValidForAdvancedFind": true,
"IsValidForQueue": {
"CanBeChanged": false,
"ManagedPropertyLogicalName": "canmodifyqueuesettings",
"Value": false
},
"IsVisibleInMobile": {
"CanBeChanged": false,
"ManagedPropertyLogicalName": "canmodifymobilevisibility",
"Value": false
},
"IsVisibleInMobileClient": {
"CanBeChanged": false,
"ManagedPropertyLogicalName": "canmodifymobileclientvisibility",
"Value": true
},
"LogicalCollectionName": "activitypointers",
"LogicalName": "activitypointer",
"MetadataId": "c821cd41-f315-43d1-8fa6-82787b6f06e7",
"MobileOfflineFilters": "",
"ObjectTypeCode": 4200,
"OwnershipType": "UserOwned",
"PrimaryIdAttribute": "activityid",
"PrimaryImageAttribute": null,
"PrimaryNameAttribute": "subject",
"Privileges": [
{
"CanBeBasic": true,
"CanBeDeep": true,
"CanBeEntityReference": false,
"CanBeGlobal": true,
"CanBeLocal": true,
"CanBeParentEntityReference": false,
"Name": "prvCreateActivity",
"PrivilegeId": "091df793-fe5e-44d4-b4ca-7e3f580c4664",
"PrivilegeType": "Create"
},
{
"CanBeBasic": true,
"CanBeDeep": true,
"CanBeEntityReference": false,
"CanBeGlobal": true,
"CanBeLocal": true,
"CanBeParentEntityReference": false,
"Name": "prvReadActivity",
"PrivilegeId": "650c14fe-3521-45fe-a000-84138688e45d",
"PrivilegeType": "Read"
},
{
"CanBeBasic": true,
"CanBeDeep": true,
"CanBeEntityReference": false,
"CanBeGlobal": true,
"CanBeLocal": true,
"CanBeParentEntityReference": false,
"Name": "prvWriteActivity",
"PrivilegeId": "0dc8f72c-57d5-4b4d-8892-fe6aac0e4b81",
"PrivilegeType": "Write"
},
{
"CanBeBasic": true,
"CanBeDeep": true,
"CanBeEntityReference": false,
"CanBeGlobal": true,
"CanBeLocal": true,
"CanBeParentEntityReference": false,
"Name": "prvDeleteActivity",
"PrivilegeId": "bb4457f2-9b45-4482-a95a-7adef25f388a",
"PrivilegeType": "Delete"
},
{
"CanBeBasic": true,
"CanBeDeep": true,
"CanBeEntityReference": false,
"CanBeGlobal": true,
"CanBeLocal": true,
"CanBeParentEntityReference": false,
"Name": "prvAssignActivity",
"PrivilegeId": "8b99344e-ebbf-4f84-8438-e1e34d194de9",
"PrivilegeType": "Assign"
},
{
"CanBeBasic": true,
"CanBeDeep": true,
"CanBeEntityReference": false,
"CanBeGlobal": true,
"CanBeLocal": true,
"CanBeParentEntityReference": false,
"Name": "prvShareActivity",
"PrivilegeId": "b5f2ee06-d359-4495-bbda-312aae1c6b1e",
"PrivilegeType": "Share"
},
{
"CanBeBasic": true,
"CanBeDeep": true,
"CanBeEntityReference": false,
"CanBeGlobal": true,
"CanBeLocal": true,
"CanBeParentEntityReference": false,
"Name": "prvAppendActivity",
"PrivilegeId": "78777c10-09ab-4326-b4c8-cf5729702937",
"PrivilegeType": "Append"
},
{
"CanBeBasic": true,
"CanBeDeep": true,
"CanBeEntityReference": false,
"CanBeGlobal": true,
"CanBeLocal": true,
"CanBeParentEntityReference": false,
"Name": "prvAppendToActivity",
"PrivilegeId": "6ec8e901-d770-44c0-8f12-d07425f638bd",
"PrivilegeType": "AppendTo"
}
],
"RecurrenceBaseEntityLogicalName": null,
"ReportViewName": "FilteredActivityPointer",
"SchemaName": "ActivityPointer",
"SyncToExternalSearchIndex": false,
"UsesBusinessDataLabelTable": false
}
I reviewed this and I agree that there is no explicit entity metadata attribute akin to IsCreatable.
You could wrap an attempt to Create an empty entity of the type in a try / catch block.
When I ran:
var pointer = new ActivityPointer();
pointer.Create(svc);
The service threw this exception, even though the pointer entity contains no attributes:
System.ServiceModel.FaultException`1: 'The 'Create' method does not
support entities of type 'activitypointer'.'
This article lists the entities that support the IOrganizationService Create method under "Supported Entities".
Here is the list:
Account
ActivityMimeAttachment
Annotation
AnnualFiscalCalendar
Appointment
AsyncOperation
AttributeMap
BusinessUnit
BusinessUnitNewsArticle
Calendar
Campaign
CampaignActivity
CampaignResponse
ColumnMapping
Competitor
Connection
ConnectionRole
ConnectionRoleObjectTypeCode
ConstraintBasedGroup
Contact
Contract
ContractDetail
ContractTemplate
ConvertRule
ConvertRuleItem
CustomerAddress
CustomerOpportunityRole
CustomerRelationship
Discount
DiscountType
DuplicateRule
DuplicateRuleCondition
DynamicProperty
DynamicPropertyAssociation
DynamicPropertyInstance
DynamicPropertyOptionSetItem
Email
EmailServerProfile
Entitlement
EntitlementChannel
EntitlementTemplate
EntitlementTemplateChannel
Equipment
ExchangeSyncIdMapping
Fax
FieldPermission
FieldSecurityProfile
FixedMonthlyFiscalCalendar
Goal
GoalRollupQuery
HierarchyRule
HierarchySecurityConfiguration
Import
ImportEntityMapping
ImportFile
ImportJob
ImportMap
Incident
IncidentResolution
Invoice
InvoiceDetail
IsvConfig
KbArticle
KbArticleComment
KbArticleTemplate
Lead
Letter
List
LookUpMapping
Mailbox
MailMergeTemplate
Metric
MonthlyFiscalCalendar
msdyn_PostAlbum
msdyn_PostConfig
msdyn_PostRuleConfig
msdyn_wallsavedquery
msdyn_wallsavedqueryusersettings
Opportunity
OpportunityClose
OpportunityProduct
OrderClose
OrganizationUI
OwnerMapping
PhoneCall
PickListMapping
PluginAssembly
PluginType
Position
Post
PostComment
PostFollow
PostLike
PriceLevel
PrincipalObjectAttributeAccess
ProcessSession
ProcessTrigger
Product
ProductAssociation
ProductPriceLevel
ProductSubstitute
Publisher
PublisherAddress
QuarterlyFiscalCalendar
Queue
QueueItem
Quote
QuoteClose
QuoteDetail
RecurrenceRule
RecurringAppointmentMaster
RelationshipRole
RelationshipRoleMap
Report
ReportCategory
ReportEntity
ReportVisibility
ResourceSpec
Role
RollupField
RoutingRule
RoutingRuleItem
SalesLiterature
SalesLiteratureItem
SalesOrder
SalesOrderDetail
SavedQuery
SavedQueryVisualization
SdkMessageProcessingStep
SdkMessageProcessingStepImage
SdkMessageProcessingStepSecureConfig
SemiAnnualFiscalCalendar
Service
ServiceAppointment
ServiceEndpoint
SharePointDocument
SharePointDocumentLocation
SharePointSite
Site
SLA
SLAItem
SLAKPIInstance
SocialActivity
SocialInsightsConfiguration
SocialProfile
Solution
Subject
SystemForm
SystemUser
Task
Team
TeamTemplate
Template
Territory
TraceLog
TransactionCurrency
TransformationMapping
TransformationParameterMapping
UoM
UoMSchedule
UserEntityInstanceData
UserEntityUISettings
UserForm
UserQuery
UserQueryVisualization
WebResource
Workflow
WorkflowDependency
WorkflowLog
I am trying to generate a list of "views" and the "domains" in each view.
i.e.:
internal/baseserver1
internal/baseserver2
external/baseserver1
...
For each of the above, I want to check for the existence of a "regular" file on the remote host under a known directory inserting the above values into the list of files to be checked. I am attempting to check the value of isreg for each view/host in the above list.
roles/default/main.yml
---
zone_dir: /var/named
zone_domains:
- domain:
name: "jlhimpel.net"
hostmaster_email: "john"
views:
- view:
name: internal
hosts:
- host:
name: baseserver1
ip: 192.168.1.20
- host:
name: baseserver2
ip: 192.168.1.30
- view:
name: external
hosts:
- host:
name: baseserver1
ip: 343.22.56.237
...
roles/tasks/main.yml
---
- name: Debug fqn zone path
stat:
path: /var/named/internal/jlhimpel.net.zone
register: f
become: true
- name: Display f
debug:
var: f
- name: Display f.stat.isreg
debug:
var: f.stat.isreg
- name: Debug symbolic zone path
stat:
path: "{{ zone_dir }}/{{ item[1].name }}/{{ item[0].name }}.zone"
loop: "{{ zone_domains|subelements('views') }}"
register: p
become: true
- name: Display p
debug:
var: p
- name: Display p.results.stat.isreg
debug:
var: item.isreg
with_items:
p.results.stat
...
Output:
PLAY [dnsServiceGroup] *********************************************************
TASK [Gathering Facts] *********************************************************
ok: [testFedora.jlhimpel.net]
TASK [pocDnsService : Debug fqn zone path] *************************************
ok: [testFedora.jlhimpel.net]
TASK [pocDnsService : Display f] ***********************************************
ok: [testFedora.jlhimpel.net] => {
"f": {
"changed": false,
"failed": false,
"stat": {
"atime": 1582308757.2357316,
"attr_flags": "",
"attributes": [],
"block_size": 4096,
"blocks": 8,
"charset": "us-ascii",
"checksum": "b8e6ecf9a617314ed1e040b4cd72dbde3dc9753c",
"ctime": 1581784999.833953,
"dev": 64768,
"device_type": 0,
"executable": false,
"exists": true,
"gid": 25,
"gr_name": "named",
"inode": 18788348,
"isblk": false,
"ischr": false,
"isdir": false,
"isfifo": false,
"isgid": false,
"islnk": false,
"isreg": true,
"issock": false,
"isuid": false,
"mimetype": "text/plain",
"mode": "0640",
"mtime": 1581784999.1509356,
"nlink": 1,
"path": "/var/named/internal/jlhimpel.net.zone",
"pw_name": "root",
"readable": true,
"rgrp": true,
"roth": false,
"rusr": true,
"size": 406,
"uid": 0,
"version": "1161797691",
"wgrp": false,
"woth": false,
"writeable": true,
"wusr": true,
"xgrp": false,
"xoth": false,
"xusr": false
}
}
}
TASK [pocDnsService : Display f.stat.isreg] ************************************
ok: [testFedora.jlhimpel.net] => {
"f.stat.isreg": true
}
TASK [pocDnsService : Debug symbolic zone path] ********************************
ok: [testFedora.jlhimpel.net] => (item=[{'domain': None, 'name': 'jlhimpel.net', 'hostmaster_email': 'john', 'views': [{'view': None, 'name': 'internal', 'hosts': [{'host': None, 'name': 'baseserver1', 'ip': '192.168.1.20'}, {'host': None, 'name': 'baseserver2', 'ip': '192.168.1.30'}]}, {'view': None, 'name': 'external', 'hosts': [{'host': None, 'name': 'baseserver1', 'ip': '343.22.56.237'}]}]}, {'view': None, 'name': 'internal', 'hosts': [{'host': None, 'name': 'baseserver1', 'ip': '192.168.1.20'}, {'host': None, 'name': 'baseserver2', 'ip': '192.168.1.30'}]}])
ok: [testFedora.jlhimpel.net] => (item=[{'domain': None, 'name': 'jlhimpel.net', 'hostmaster_email': 'john', 'views': [{'view': None, 'name': 'internal', 'hosts': [{'host': None, 'name': 'baseserver1', 'ip': '192.168.1.20'}, {'host': None, 'name': 'baseserver2', 'ip': '192.168.1.30'}]}, {'view': None, 'name': 'external', 'hosts': [{'host': None, 'name': 'baseserver1', 'ip': '343.22.56.237'}]}]}, {'view': None, 'name': 'external', 'hosts': [{'host': None, 'name': 'baseserver1', 'ip': '343.22.56.237'}]}])
TASK [pocDnsService : Display p] ***********************************************
ok: [testFedora.jlhimpel.net] => {
"p": {
"changed": false,
"msg": "All items completed",
"results": [
{
"ansible_loop_var": "item",
"changed": false,
"failed": false,
"invocation": {
"module_args": {
"checksum_algorithm": "sha1",
"follow": false,
"get_attributes": true,
"get_checksum": true,
"get_md5": false,
"get_mime": true,
"path": "/var/named/internal/jlhimpel.net.zone"
}
},
"item": [
{
"domain": null,
"hostmaster_email": "john",
"name": "jlhimpel.net",
"views": [
{
"hosts": [
{
"host": null,
"ip": "192.168.1.20",
"name": "baseserver1"
},
{
"host": null,
"ip": "192.168.1.30",
"name": "baseserver2"
}
],
"name": "internal",
"view": null
},
{
"hosts": [
{
"host": null,
"ip": "343.22.56.237",
"name": "baseserver1"
}
],
"name": "external",
"view": null
}
]
},
{
"hosts": [
{
"host": null,
"ip": "192.168.1.20",
"name": "baseserver1"
},
{
"host": null,
"ip": "192.168.1.30",
"name": "baseserver2"
}
],
"name": "internal",
"view": null
}
],
"stat": {
"atime": 1582308757.2357316,
"attr_flags": "",
"attributes": [],
"block_size": 4096,
"blocks": 8,
"charset": "us-ascii",
"checksum": "b8e6ecf9a617314ed1e040b4cd72dbde3dc9753c",
"ctime": 1581784999.833953,
"dev": 64768,
"device_type": 0,
"executable": false,
"exists": true,
"gid": 25,
"gr_name": "named",
"inode": 18788348,
"isblk": false,
"ischr": false,
"isdir": false,
"isfifo": false,
"isgid": false,
"islnk": false,
"isreg": true,
"issock": false,
"isuid": false,
"mimetype": "text/plain",
"mode": "0640",
"mtime": 1581784999.1509356,
"nlink": 1,
"path": "/var/named/internal/jlhimpel.net.zone",
"pw_name": "root",
"readable": true,
"rgrp": true,
"roth": false,
"rusr": true,
"size": 406,
"uid": 0,
"version": "1161797691",
"wgrp": false,
"woth": false,
"writeable": true,
"wusr": true,
"xgrp": false,
"xoth": false,
"xusr": false
}
},
{
"ansible_loop_var": "item",
"changed": false,
"failed": false,
"invocation": {
"module_args": {
"checksum_algorithm": "sha1",
"follow": false,
"get_attributes": true,
"get_checksum": true,
"get_md5": false,
"get_mime": true,
"path": "/var/named/external/jlhimpel.net.zone"
}
},
"item": [
{
"domain": null,
"hostmaster_email": "john",
"name": "jlhimpel.net",
"views": [
{
"hosts": [
{
"host": null,
"ip": "192.168.1.20",
"name": "baseserver1"
},
{
"host": null,
"ip": "192.168.1.30",
"name": "baseserver2"
}
],
"name": "internal",
"view": null
},
{
"hosts": [
{
"host": null,
"ip": "343.22.56.237",
"name": "baseserver1"
}
],
"name": "external",
"view": null
}
]
},
{
"hosts": [
{
"host": null,
"ip": "343.22.56.237",
"name": "baseserver1"
}
],
"name": "external",
"view": null
}
],
"stat": {
"atime": 1582326121.0318115,
"attr_flags": "",
"attributes": [],
"block_size": 4096,
"blocks": 8,
"charset": "us-ascii",
"checksum": "5deeb57dfd80c5b264ab5ebff8af728b2a551860",
"ctime": 1582079607.5288289,
"dev": 64768,
"device_type": 0,
"executable": false,
"exists": true,
"gid": 0,
"gr_name": "root",
"inode": 25378368,
"isblk": false,
"ischr": false,
"isdir": false,
"isfifo": false,
"isgid": false,
"islnk": false,
"isreg": true,
"issock": false,
"isuid": false,
"mimetype": "text/plain",
"mode": "0640",
"mtime": 1582079607.4818277,
"nlink": 1,
"path": "/var/named/external/jlhimpel.net.zone",
"pw_name": "root",
"readable": true,
"rgrp": true,
"roth": false,
"rusr": true,
"size": 406,
"uid": 0,
"version": "2850301314",
"wgrp": false,
"woth": false,
"writeable": true,
"wusr": true,
"xgrp": false,
"xoth": false,
"xusr": false
}
}
]
}
}
TASK [pocDnsService : Display f.stat[].isreg] **********************************
ok: [testFedora.jlhimpel.net] => (item=p.results.stat) => {
"ansible_loop_var": "item",
"item": "p.results.stat",
"item.isreg": "VARIABLE IS NOT DEFINED!"
}
Any advise would be greatly appreciated.
Sorry for pasting such verbose output.
The task below
- name: Display p.results.stat.isreg
debug:
msg: "{{ item }}"
loop: "{{ p.results|json_query('[].stat.isreg') }}"
gives
"msg": true
"msg": true
I am new to browser-sync and I can't seem to figure out how to get live reload to work on a proxy server. In my current setup I don't have access to the files on my local machine so I have to use a proxy. I currently have a config file and here is the current setup.
module.exports = {
"ui": {
"port": 3001,
"weinre": {
"port": 8080
}
},
"files": ['Styles/bootstrap-custom-addons.css', '/Styles/*.css'],
"watchOptions": {},
"server": false,
"proxy": {
target: "http://example.com",
files: ['Styles/bootstrap-custom-addons.css', '/Styles/*.css'],
},
"port": 3000,
"middleware": false,
"ghostMode": {
"clicks": true,
"scroll": true,
"forms": {
"submit": true,
"inputs": true,
"toggles": true
}
},
"logLevel": "info",
"logPrefix": "BS",
"logConnections": false,
"logFileChanges": true,
"logSnippet": true,
"rewriteRules": false,
"open": "local",
"browser": "default",
"xip": false,
"hostnameSuffix": false,
"reloadOnRestart": true,
"notify": true,
"scrollProportionally": true,
"scrollThrottle": 0,
"reloadDelay": 0,
"reloadDebounce": 0,
"plugins": [],
"injectChanges": true,
"startPath": null,
"minify": true,
"host": null,
"codeSync": true,
"timestamps": true,
"clientEvents": [
"scroll",
"input:text",
"input:toggles",
"form:submit",
"form:reset",
"click"
],
"socket": {
"path": "/browser-sync/socket.io",
"clientPath": "/browser-sync",
"namespace": "/browser-sync",
"clients": {
"heartbeatTimeout": 5000
}
},
"tagNames": {
"less": "link",
"scss": "link",
"css": "link",
"jpg": "img",
"jpeg": "img",
"png": "img",
"svg": "img",
"gif": "img",
"js": "script"
}
};
Page Scroll and clicks work across browsers, but when I update a file on the server it does not automatically reload the page, am I not setting up the config file correctly? Also what is the difference between running browser-sync start --config bs-config.js and just running brower-sync start --proxy "http://www.example.com"?
I am working with struts2 and ajax . I am using jboss as application server, I am calling jsp page and there from i am calling action. Can i able to call action from my ajax source directly, without calling jsp page instead of.I am loading data in table My ajax code follows
oTable=$('#tblDisplay').dataTable( {
"bAutoWidth": false,
"oLanguage": {"sSearch": "Search all columns:"},
"bJQueryUI": true,
"aLengthMenu": [[-1,10, 25, 50, 100,250],["All",10, 25, 50, 100,250]],
"sPaginationType": "full_numbers",
"iCookieDuration": 60*60*24*10,
"sCookiePrefix": "SQLFly_admin_datatable_",
"aaSorting": [],
"aaSortingFixed": [],
"asStripClasses": [ "odd", "even"],
"sScrollY": "",
"bScrollCollapse": true,
"bSortCellsTop": false,
"bDeferRender": true,
"sScrollX": "",
"sScrollXInner": "",
"aoColumnDefs": [{ "bSearchable": false, "bVisible": false, "aTargets": [0] }],
"bProcessing": true,
"bServerSide": false,
"iDisplayStart": iStart,
"iDisplayLength": iDisplayLength,
"bStateSave": false,
"sAjaxSource": "sPermissonData.jsp",
"fnServerData": function ( sSource, aoData, fnCallback )
{
$.ajax({"dataType": 'json', "cache":false, "type": "GET", "url": sSource, "data": aoData , "success": fnCallback } );
},
Thank You
return JSON: http://struts.apache.org/2.2.3.1/docs/json-plugin.html
return String: http://struts.apache.org/2.0.11.1/docs/how-can-we-return-a-text-string-as-the-response.html