Posts

java - Is there a way to map a Set to a List with BeanUtils.copyProperties? -

I'm using BeanUtils.copyProperties to convert two beans Beanutils. Copproperties (organization, deto organization); I have to do a list in one bean and set one to in the other. First Been: Public Category Form {Private Set & lt; Organization & gt; Organization; } Second bean: Public final category DTOForm {Private list & lt; DTOOrganization & gt; Organization; } The result is an exception as described here: Is it possible to optimize BeanUtils.copyProperties ? You can solve it by using custom converters. The main idea is that set ListEntity, which has list / Code> Property (as far as I do not ignore the setters and gates): Public Class List {Private list & lt; Integer & gt; Col = new arreelist & lt; & Gt; (); Public listing & lt; Integer & gt; GetCol () {Return Colonel; } Public Zero Set Call (list & gt; integer & gt; col) {this.col = col; Set}} SetEntity, which has set propert...

sharepoint - How to upload videos to Windows Media Services 2008 -

Long-term secrecy, first time the questioner-to-question We have been running our SharePoint 2010 intranet company, and we want the ability to stream video locally. SP2010 is terrible for it. I'm looking for a free download / addon for Windows Media Services 2008, Windows Server 2008. I have Googled and Googled, but I just How do you actually upload media in Media Media Services 2008? Our IT department server (and it is even more complex due to being half-managed by the third party company). I have to know whether I will be able to upload media to WMS2008 on my network, like with URL, we can click on our computer and click instead of doing it on the actual server itself. I know that it will look like a silly question, but I can not find the answer. Help me in StackHorflow, you are my only hope. I'm not sure that you have already found the answer to this question, but I have video streaming I am also working on Windows Media Services (WMS) 2008 and got you...

java - Log4j is not working -

I'm trying with logging methods (Log4j) in Eclipse and I'm having the following problems And I posted the log4j.properties file in the project folder. Below is one of the main ways of my program: package com.aransys.roughworkout.log4j; Import org.apache.log4j.Logger; Import java.io.IOException; Import java.sql.SQLException; Import java.util.logging. *; Public class Log4jExample {static logger log = logger .getRootLogger (); Public static zero master throws (string [] args) IOException, SQLException {log.debug ("sample debug message"); Log.info ("Sample information message"); Logs. Warne ("Sample Warning Message"); Log.error ("sample error message"); Log.fatal ("Sample Hazardous Message"); }} and below is a code in my program in Log4j.properties: log4j.rootlogger = debug, FILE log4j.appender.FILE = Org .apache.log4j.ConsoleAppender log4j.appender.FILE.layout = org.apache.log4j.SimpleLayout But the code is not ru...

Storing Currency as Decimal in Cassandra and indexing via DSE Search (SolR) -

I'm using a decimal value type in the cassandra (BigDial, A) to collect money. I think that is unable to list this area. SolR data type I tried to match it and then the float error message is almost the same: Solar type text and cassandra type: does not match for decimal field CurrencyField expects currency and value, as a taple, is it necessary to store currency values ​​in C * as a string, so that it is indexed correctly? As an alternative solution, I can store values ​​twice as a decimal, string, although I do not like the needlessness, which makes updates and other handling complicated. Thank you for your suggestions ... Try using double or float if you scan the range If you plan to do so, use the TriSolar field: TripletFlilled Float Reference Docs:

jquery - How to set default time in Mobiscroll? -

The main problem is that the project is a bit old and I can not update Mobiscroll The current version of do not know ... My code looks like this: jQuery ('# select-time'). Mobiscroll (). Time ({'timeFormat': 'HH: IE: SS', 'TIMEWELLS': 'HHICIS',}); Let me set the time in 00:00:00 You can work as an arbitrary date and 00:00:00 time $ ('# demo'). Mobiscroll (). ({Time format: 'HH: IISS', Time values: 'HHICIS'}); $ ('# Demo'). Mobile Carroll ('Set Date', New Date (2015, 0, 0, 0, 0, 0, 0), true);

wordpress - Sublime Text regex: replace Strings with Gettext -

I made a mistake in writing a template page in Wordpress and so I put regular string everywhere instead of Gettext call. Now I should change all the strings in these specific constructs with Gettext calls. Example: displayDataRow ($$ fuelTypePacksName, 'model-tech-wheels', 'wheels'); DisplayDataRow ($$ fuelTypePacksName, 'model-tech-curb-weight', __ ('wheels', 'ager')); I have not learned regex yet, sorry: ( It is not clear what you want to change, but the pattern to find string '[^'] * ' Therefore, if the example You want to change the "Hello World" with the GetText ("Hello World") Find: ('[^ '] *' Replaces: GetText (\ 1) Basically, thirty-five added around the pattern means "whatever your Keep it there ", and \ 1 means" replace with the first thing you got.

osx - Applescript changes : copy the result as list isn't the same -

Some of my applets running recently on computers have recently discovered a bug that asks bug questions Ask applescript and try to find two answers: the answer to the text and the button that has returned is basically like this script: display dialog is "this is a question" default Answer "Text" button {{"button1", "button2", "button3"} as a result of the copy {"the_text", "the_button"} list Of The copy of the copy is the only way in which I have to save the two answers, but here's the problem: In 10.7, applescript returns the result to this command: returning the text, the button returned and in 10.9, applescript result in reverse order Lets, first button, then text. So it is impossible to use the answer. Do you know in a way that I can save both answers and work it on 10.9 to 10.7? Try: set {text return: the_text, return Button: The "button 1", "button2", "button3...