Posts

osx - AppleScript duplicate folder inside pre-existing folder -

I am thinking that there is a way to use aplscript to duplicate a folder, and all files / folders In the second place - when leaving any file inside the location? Tell the application "finder" duplicate folder "Macintosh HD: User: YourCompName: Desktop : Test1 "to" Macintosh HD: User: YourCompName: Desktop: Test2 "

database - How to read file line by line and put it into orcale db -

"itemprop =" text "> This is my file that I want to read: - 20140901 | 2X-PRG-CZ | PRG | 2x | 2x-PRG-CGD || TIPX || QXXXX | QS | QS-PRG-GW | PRG | TEPB | Y 2 | 98 | 0 | 0 0 0 0 9 0 | 2x-PRG-CZ PRG | 2x | 2X-PRG-CZ ||| TAEPX || QXtxGx | OK. OK-PRG-MQ | PRG | TEPB | Y 14 | 672 | 0 | 0 0 0 001 | 2x-PRG-CZ PRG | 2x | 2xpg-cz ||| TAPX || QXtxGx | EK | EK-PRG-KK | PRG | TEPB | Y 1 | 48 | 0 | 0 0 0 9 01 | Xs-esin-ol | MAD | 3v | 3 V-MAD-OO ||| STXOL || QXTXGXS | 7x | 7X-BRU-EP | BRU | TYPEB | Y | 1 | 59 | 0 | 0 20,140,901 XS-SIN-OL | MAD | 3V | 3V-MAD-OO ||| STXOL || QXTXGXS | 3v | 3v-lgg-sp. LGG | TEEPB | Y 1 | 193 | 0 | 0 0 0 001 | XS-SIN-OL | MAD | 3v | 3 V-MAD-OO ||| STXOL || QXtxGx | 7x | 7X-PAR-EP | Equal TYPEB | Y | 1 | 59 | 0 | 0 20,140,901 XS-SIN-OL | MAD | 3V | 3V-MAD-OO ||| STXOL || QXTXGXS | YA | Ya-MAD-GS | MAD | TYPEB | Y | 4 | 923 | 0 | 0 My standalone program is like this .. package com.dbConn; Import java.io.buffferedReader; Import java.io.file...

merge - git abandon master branch -

In my git repository I have created a new branch called alt. After some work it seems that Alt is my master In the branch, I want to leave the master and I want to make a new master. C1 | C2 / \ Master - & gt; C3C4 | C5 and LT; - alt So I want to sacrifice C3, but still want to put it in the history committed for future reference and return to one branch. What is the best way to do this? My first thought is to transfer the master from C5, and then to merge the Alt in the master. is this correct? Do I need to move the master first? I can also merge master to Alt, solve all the merge tribs by placing the version of Alt, and then rename it to master Alt. Or should I take the master to Alt and just remove the branch alt, leave the C3 as a fragmented branch, which is actually a reality? I think there are many solutions here, there is a best practice to follow (always return branches to velvety vs open-ended) I think the easiest way to merge the ours strategy to the ...

c# - WPF - How to databind subclass property correctly -

I have a very stupid problem with databanding in WPF. I have a custom exception type public class MyException: exception {public class throwning method {public class registered mode} {string registered name for public reading; // ...} public read-only registered method regMethod; // ...} Public Read-Only ThrowingMethod Throw Method; OK, now in my wpf window, I public partial class exception display: window {Private Readonly IEnumerable & lt; MyException & gt; exception; Public exception display (IEnumerable & lt; MyException & gt; exception) {InitializeComponent (); This.exceptions = exceptions; } Private Zero Windows_Loaded_1 (Object Sender, RoutedEventArgs e) {DataContext = this.exceptions.First (); }} And I have two labels in XML: & lt; Label name = "message" content = "{binding message}" /> & Lt; Label name = "RegMethod" content = "{binding path = throwingMethod.regMethod.registeredName, mode = thwave}...

Store a 2D array within another array -- Java -

I should be able to store a 2D Boolean array within another array, which is as follows ... Boolean [] [] Player = New Boolean [1] [2]; Object [] game = new object [1]; Player [0] [0] = True; Player [0] [1] = Wrong; Game [0] = player [0] [0]; I should be able to set every game [] index with a player, but the one above does not work. Is there any way to insert an array into an array? If you want to store the 2D array game [0] Then you should do game [0] = player; Other points: I recommend you by creating a player class: class player {Boolean flag 1; Boolean flag 2; } Instead of creating arrays of boolean After your player array ( game ) the type will be player [] . Start the variable name with a lower name and the names of class begin with the case of capital. If you want to use actually arrays, I suggest you make a game to Boolean [] [] [] .

SAPUI5 get single property from JSON-Model -

Image
I am currently trying to figure out how I got a sap.ui.model.json.JSONModel In my main view: var gConfigModel = new sap.ui.model.json.JSONModel (); Var getConfigCallback = function (config) {gConfigModel.setData (config); }; OController.getConfiguration (getConfigCallback); Console.log (gConfigModel); In my controller: getConfiguration: function (callback) {var sServiceUrl = "/ sap / opu / odata / sap / xxx / configurationSet (' Start ') "; Var config = {}; Callback; $ .getJSON (sServiceUrl) .done (function (data) {config = data.d; callback (config);}); }, In your console.log statement, I can see that the data passed from the backend successfully and successfully set to the JSON model. The value of my requirement attribute is editable in a variable. I already have gConfigModel Tried .getProperty ('/'), did not work. Attempted to use GConfigModel.oData .. How can I store it in a value? Solution Comment: If you capture data from backen...

wpf - Nested ContentControls with template -

I have a custom window style , XAM looks like this: & lt; Style TargetType = "{x: type window}" x: Key = "WindowStyle" & gt; / ** Some Sets ** / & lt; Setter Estates = "Template" & gt; & Lt; Setter.Value & gt; & Lt; ControlTemplate TargetType = "Content Control" & gt; & Lt; AdornerDecorator & gt; & Lt; Grid Background = "# 88000000" X: Name = "Windbikgram Grid" & gt; & Lt; Border x: name = "WindowContentBorder" background = "{DynamicResource WindowBackground}" maxHeight = "{binding source = {x: static SystemParameters.FullPrimaryScreenHeight}}" MaxWidth = "{binding source = {x: static SystemParameters.FullPrimaryScreenWidth}}" Margin = "20" & gt; & Lt; Grid & gt; & Lt; Grid.RowDefinitions & gt; & Lt; RowDefinition Height = "Auto" /> & Lt; Roadfinion height = "*" /> ...