Posts

Showing posts from February, 2011

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...

How to do swipe to delete cardview in android using support library -

नमस्ते मैं कार्ड विडियो कार्यक्षमता को प्राप्त करने के लिए सहायता पुस्तकालय android.support.v7.widget.CardView का उपयोग कर रहा हूं। मेरे एंड्रॉइड ऐप में मैं इसे भी कार्यक्षमता को हटाने के लिए स्वाइप प्राप्त करना चाहता हूं। & lt; android.support.v7.widget.CardView xmlns: card_view = "http://schemas.android.com/apk / रेस-ऑटो "एंड्रॉयड: आईडी =" @ + id / card_view "एंड्रॉयड: layout_gravity =" केन्द्र "एंड्रॉयड: layout_width =" 200dp "एंड्रॉयड: layout_height =" 200dp "card_view: cardCornerRadius =" 4dp "& gt; & Lt; TextView एंड्रॉइड: id = "@ + id / info_text" एंड्रॉइड: layout_width = "match_parent" एंड्रॉइड: layout_height = "match_parent" / & gt; & LT; /android.support.v7.widget.CardView> इसमें कार्यक्षमता को हटाने के लिए कड़ी चोट कैसे प्राप्त करें? अग्रिम धन्यवाद। मुझे ऐसा करने के लिए अनुकूलित किया गया है। एक वर्किंग नमूना आवेदन के साथ, और के होते हैं: है...

javascript - Using jQuery to load icon based on <label> contents -

I have a website where content is dynamically filled with a database, the content for each label is different One can be prepared as a normal: while in the form of a TV:. My question is, is there any way that jQuery (depending on HTML output for label) can replace NAME: with font fonts? For example: & lt; Label & gt; TV: & lt; / Labels & gt; will be: & lt; I class = "fa fa-film fa-2x" & gt; & Lt; / I & gt; Try var icons = {' TV: ':' movie ',' edit: ':' edit '}; Copy (). ToLowerCase (), icon = Icon [text]; Return icon? '& Lt; I class = "$" '(' label '). Replace (with function () {var text = $ (this) .text () FA FA-' + Icon + 'FA-2X' 'gt; & lt; / I & gt; ': undefined;}) & lt; script src = "https: / /ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js "> gt; & lt; / script & gt; link = rel =...

android - Failed to download and save file in phonegap -

Hi Phonegap Lovers / Developers, demanding a strict request. True, specifically: window.requestFileSystem (LocalFileSystem.PERSISTENT, 0, function onFileSystemSuccess (file system) {are fileSystem.root.getFile (create "tmp.txt", {- I the following code throw error: false} function gotFileEntry (fileEntry) {var sPath = fileEntry.fullPath.replace ( "tmp.txt", ""); var fileTransfer = new fileTransfer (); fileEntry.remove (success, fail); fileTransfer.download (encodeURI (FILE_URL), sPath + "theFile.pdf", function (thefile) {console.log ( "Download complete." + theFile.toURL (), 'successful');}, failed);} , Unsuccessful);}, unsuccessful); Function failed (error) {console.log (error + ', code:' + error.code); } Btw, I found this fileTransfer.download that fails on the error code 2 which means the destination directory / loc is incorrect. Later I found the fileEntry.fullPath value "/" only happens on the IO...

How to take selected data from VB.net drop down list -

I am currently practicing Vibinet in Visual Studio 2013 and I was asked to create a data-down list table I'm down and working. What I am stuck is how to drag the selected option from the drop down list and use it to display the label in the web control to show on the screen when a button is pressed for selection, can anyone help? My code file Default.aspx.vb dim dsData1 new datasets dsData1 = tableData as () DDList.DataSource = dsData1 DDList.DataValueField = "code" DDList.DataTextField = "Description" DDList.DataBind () DDList.Items.Insert (0, New ListItem (String.Empty, String.Empty)) DDList.SelectedIndex = 0 my my Code file in function.vb public shared function tableData () datasets dim oraConnect New OracleConnection oraConnect.ConnectionString = ConfigurationManager.ConnectionStrings as ( "smart_dev") ConnectionString OracleCommand new as dim oraCommand oraCommand.Connection = oraConnect oraCommand .CommandType = Data.CommandType.Te...

ruby on rails - How do I execute transitions in AASM from controller? -

Is it possible to safely execute the infection by using its name in ASAM? Now what am I doing in ASAM: if order.aasm.events.include? What can I do in state_machine order.state_event = params [: event] order.save Can you do your aasm do block? I have not used before state_machine , but it is not how a typical uses aasm you do not need to send the transition anytime; Rather, you only call the event and you automatically transit states based on the incident / transition rules you have made. Here's a short example. aasm do state: draft state: review state: approved state: rejected event: submit change: from = & gt; : Draft ,: from = & gt; : Review transition: from = & gt; : Review, and = & gt; : Approved end event: reject changes: form = & gt; : Review, and = & gt; : In the example given above, if the item is in the draft state and you call object.submit then this drafts Will have a transition from to review and if you are in ...

jasper reports - how to ignore repeated value at sum time? -

I'm new to JasperReports , I have a report in which table data is table title / P> id | Products | Zodiac Discount ---------------------------------- 1. ABC | 12000 | 10 1 ABC | 12000 | 10 1 ABC | 12000 | 10 2 ABC 5000 | 20 2 ABC | 5000 | 20 2 ABC | 5000 | 20 2 ABC | 5000 | 20 3 ABC | 13000 | 25 3 ABC | 13000 | 25 I want to use built in functionality like JasperReports , such as "print duplicated value is unchecked" its display is not shown repeated, but when I Trying to sum up this amount will give all this amount, but I have to get out of 12000 + 5000 + 13000 So how do I get results? I want to get the results id. Products | Zodiac Discount ---------------------------------- 1. ABC | 12000 | 10 | ABC | | | ABC | | 2 | XYZ | 5000 | 20 | XYZ | | | XYZ | | | XYZ | | 3 | PQR | 13000 | 25 | PQR | | ---------------------------------- Total 30000 55 ------------- ---------------------

c# - How to mock a webservice using ClientBase -

I am a customer for a Web service implemented with the following interface and legacy: public partial class FixLinkReportingServiceClient: System.ServiceModel.ClientBase & lt; STPTradeRetriever.FixLinkReportingService.IFixLinkReportingService & gt;, STPTradeRetriever.FixLinkReportingService.IFixLinkReportingService {....} How Should I Go as fun objects and especially if I try to do the following : Public class FakeSuccessConnection: ClientBege & lt; STPTradeRetriever.FixLinkReportingService.IFixLinkReportingService & gt;, STPTradeRetriever.FixLinkReportingService.IFixLinkReportingService {} It will complain about the lack of end points in the app.config: default termination could not find the element that references contract configu ration section 'FixLinkReportingService.IFixLinkReportingService' service model client could be because there was no configuration file for your application, or a conclusion that matches the contract Point element ...

java - Server to Server communication using servlet? -

In my case there is a cloud server and a personal application server. I have to communicate between the two servers to access data from time to time. How to create an API for communication using the servlet It is possible to use a timer suggestion? > Yes, you can create a user in the sublet, but as suggested by Stanley, it is a layer at the top of the http that you can use and it is easy Could. If you can write sublets in some quick and dirty manner, and make some requests. If you go to JavaEE, then it is even easier because you can create web services using annotations and there is already one that lets you rewet the wheel.

node.js - Nodejs Azure storage blob service : getStats not working -

I NodeJS 'blue-storage module (version: 0k3k3) use I would like blue about storage blob service to obtain global data of course, I have all the blobs to calculate by hand query will hand use of the total volume of use so I think That can help me by using blobService.getServiceStats but this method returns an error this.blobService.getSe RviceStats (function (error, result) {if (error) {console.info (error) ;.} Else {console.info (results);}}); This results in the following error: {[Error: Specifie to a query parameter RequestId: 51b156a6-0001-002d-765f- b4ebd5000000 time: 2014-10-17T12: 40: 59.1246311Z] code: 'InvalidQueryParameterValue', queryparametername: 'COMP', queryparametervalue: 'figures', because: ', statusCode: 400, requestId:' 51b156a6-0001-002d- 765f- B4ebd5000000 '} This query parameter is being determined by' comp = statistics' SDK: What's wrong? Do you think I should open an issue? Do you kno...

ios - Accessory Disclosure indicator is not showing up in custom cell -

I'm creating a table view with custom panel. I have used xib files to create both. As I wanted to do this, my table is performing, but only a problem table of cells are not showing the disclosure indicator. The pointer is shown in the xib file after setting it to the inspector but not in the simulator. As I covered this program too - (UITableViewCell *) tableView: (UITableView *) tableView cellForRowAtIndexPath: (NSIndexPath *) indexPath {InboxTableViewCell * Cell = (Inboksteblaviawsell *) [Tblaviav Dekveuereuslekelvithidentifiar [Inboksteblaviawsell Reuseidentifiar]]; If (cell == nil) {[[NSBundle mainBundle] loadNibNamed: customCellName Owner: own choice: nil]; Cell = _tblVIewInboxCell; _tblVIewInboxCell = Zero; } Cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; Cell.lblTitleInbox.text = @ "Title"; Cell.lblSubTitleInbox.font = [UIFont fontWithName: @ "Wordana" Size: 16.0]; Cell.lblSubTitleInbox.text = @ "Subtitle"; Cell.lbl...

dynamic - How to give an dynamicly loaded TreeViewItem an EventHandler? -

At this time, I programm loads into a TreeView after entering every database of a database based chat system. means:. I requestres the friends using the following Funktion after the login request, string namesSt [] = get.getUserFriendNameByUserID (currentUserID); In my friendlist / TreeRootItem "rootItem", use the given names to load them as TreeItem (for integer counters = 0; Counter & lt; namesSt.length; counter ++) {System.out.println (namesSt [Counter]); TreeItem & LT; String & gt; Item = new tree item & lt; String & gt; (NamesSt [Counter]); Item.addEventHandler (MouseEvent.MOUSE_CLICKED, handler); . RootItem.getChildren () add (item); } When I now add my root item, I see the name in the tree view. But if I click on a name, Given this is not called MouseEventHandler. In addition I want to request the text of the element which speedes MouseEvent so that I can submit these names to a spezial Funktion. How can I cure such a MouseEven...

c# - Storing element from repeater for use again -

I have a list that I am using as a discussion board. It has a box next to each user in which it has color and its initials, I basically want to show a color random (from a list) in the box, but use the same color again if that person first I've got boxes working with colored colors coming from random colors, but I can learn how to use an item from repeaters. Whether they should re-use of color rather than show random colors. / P> HTML: & lt; ASP: Repeater runat = "server" id = "rptThread" OnItemDataBound = "rptThread_ItemDataBound" & gt; & Lt; ItemTemplate & gt; & Lt; Li class = "media" & gt; & Lt; One class = "pull-left" href = "#" & gt; & Lt; Div class = "foo hidden-xs" runat = "server" id = "divColour" & gt; & Lt; Center & gt; & Lt; Span & gt; & Lt; ASP: label runat = "server" id = "lbl initial" &...

ios - Failable initializer in Xcode 6.1 -

I have a custom UITableViewCel (nothing fancy) that works perfectly on Xcode 6.0. When I try to compile it with Xcode 6.1, the compiler shows the following error: A non-flaalileizer with the phonastic initiator 'init (style: again user :)' Written 'init? ' Here is the cell's code: Class Main Television: UITableViewCell {override init (style: UITableViewCellStyle, reuseIdentifier: String?) {Super. Init (style: style, reuseIdentifier: reuseIdentifier) ​​self.setup ()} required init (coder aDecoder: NSCoder) {super.init (coder: aDecoder) self.setup ()} func setup () {& lt; ... and gt; ;}} The compiler's proposal as a solution 'init?' Promote Failure with : override init? (Style: UITableViewCellStyle, reuseIdentifier: string?) {Super.init (style: style, reuseIdentifier: reuseIdentifier) ​​self.setup ()} I'm a little confused (Non) functional initial and how should it be used and overridden? with SWIFT 1.1 (in Xcode 6.1) App...

java - What is the meaning of method having two diamond brackets in generics? -

What is the need to have two diamond brackets in one method, and if T is not a return type then why do we need it ? Or is anything related to casting? Package Generic; Import java.util.ArrayList; Import java.util.list; Public category GenericMethodType {public & lt; T & gt; & Lt; T & gt; ToList (T [] parameters) {// some related to casting is t & lt; T & gt; List = New Arrestist & lt; & Gt; (); For (T: parameter) {list.add (t); } Return list; } Public static zero main (string [] args) {GenericMethodType gmt = new GenericMethodType (); System.out.println (gmt.toList (new integer [] {1,2,34,4}); }} public & lt; T & gt; & Lt; T & gt; ToList (T [] parameters) ^ / / Introduction of general type T / This means that the name is a defined general type with the name T Strong> only for the scope of this method More information:

android - TextSwitcher "Slots Type" animation for number change -

I am currently using texts and I am doing a slide from left to right and the slide is correct on a text view Sliding on the animation in which the amount of a money I want to do an animation that when the number changes, then this number will be like a slot machine like scroll Can someone tell me in the right direction? If possible, I would like to use Android Animation to do this; I am sure that I can only loop through a loop and change the textview with the path of the destination number but it just looks like Overkill. I'm not sure this will help, but using the canvas Something can be easier to do, and then animate that drauble. Also check the open source code of the clock as they do the same animation

c# - ASP.NET MVC 4 Updates Causing Access Issues for MediaFormatters -

My project has a custom mediaformer, as long as the ASPNET MVC4 update was working fine last night. Now I get the following error from my WebPia project? I have all the DLS deployed in my bin folder, so system systems should not be used. I tried to save the signature of CanReadType from the public but I got an error. Derivative method 'CanReadType' type 'project. Access to MediaFormatters.JsonNetFormatter 'Assembly' project, version = 1.0.0.0, culture = neutral, publicKeyToken = null 'can not be reduced. Installing Microsoft. Espanet Web API Client version: 4.0.30506.0 should fix your problem. It seems you used a very old version of System.Net.Http.Formatting. The new version of MVC 4 update GACs System.Net.Http.Formatting caused the runtime error. After updating your mediaformer, you get a compilation error because your project still references the old version.

sql server - SQL Join Tables - 2nd newest entry to related main entry in other table -

After the abstract scenario, I have 2 tables, one contains "posts" and other "comments" if you use a new " Post ", a new" comment "type of" initial "type has been added whenever you add a real comment, then it becomes a type of post id and" picture "," text "," movie " Is ... Now showing me the date of a table initial post and the first "real" comment Wanna may include that when the first note was taken not done until it's how long he wrote. SELECT post.ID, post.Title, post.uthor, post.CreateDate, comment.Type, comment.Text, comment. Post from posts as post INNER post. ID = Join comment as a comment. Postid This gives me the post information for the amount of comments I now just want to post the first "real" comment date standing next to the createDate (comment where. 'Initial') How to do this, I do not know, can anyone help me in this matter? It is also possibl...

wxPython application auto launched at system startup -

I'm trying to create my wxPython application - which is a preview for launching on Windows, Maccode and Linux - The system is booted automatically on startup. APAI, I can use Python's WIND to write a shortcut link for the Windows registry. But is there a way to do that can run on all system tasks? All ideas will be appreciated. You can of course use _winreg in the registry key in Windows , Though I think you can also insert a shortcut into the special startup folder of the window which is buried in the user folder in the new Windows versions. For Linux, it seems that you '/ etc / rc.local' See the following link for additional details: On the Mac, it seems that you may need to use Automator:

Restrict Yammer Embed -

I am reading through the Yamor embed API doctor and one thing for me is unclear. Can our users embed our Yammer group into a website that can be seen publicly? I used the code that was provided by clicking on the embed embed button from the web interface, and it appeared that it required authentication. Is it possible that a user can embed this website with a auth token so that it appears without login? If this is possible, then there is no way that I can restrict the embed feature as a network administrator? Thank you! The nature of the yammers is a private, corporate social network, capable of embeding a feed from your network Which are displayed publicly without user authentication using the Umar Amplet Widget.

javascript - delay in animation after several calls using jquery.animate -

I try to show the overlay after calling jquery.animate in a click event after clicking on the div and clicking on the div What I am doing after many clicks like 4 or 5 tries, I start to note that there is a delay in clicking on div and overlays and this delay is increasing after every click In a detailed code and here is the JavaScript code Function initTemplateEditor (params) {if (parameters type === "undefined") {new error ("Can not init editor without parameters!"); } Var openEditor = function () {$ (params.templateEditor). Value ({opacity: 1}, {duration: 350}, start: work () {$ (params.templateEditor) .css ({"display": "block", "width": $ (window) - 10, "height": $ (window). Height () - 10});}}); }, CloseEditor = function () {$ (params.templateEditor). Value ({opacity: 0}, 350, function () {$ (this) .css ("display", "none");}); }; $ ("Close the editor"). Click (function () {closeEdito...

python: class namespace for simple decorator function -

I am new to those who decorate in Python and are struggeling with a simple decorator, to check my state The problem is that I want to know about everything in the decorator function itself and the actual work is 'logic' (? ) class myClass (object) ): __int __ (self): self .__ isFoo = wrong self .__baz = 0 def doFoo (self): ... itself .__ isFoo = true def fooInit (self, funk): if not itself .__ isFoo: Self.doFoo () return func @property @fooInit df findbiz (self): return self.__baz However, with this one, I get an error myObj = myClass () myObj.getBaz ~~ & gt; TypeError: fooInit () Absolutely 2 arguments (1 given) That makes me understand something, because it's just self.fooinit (self.getBaz) if I think the decorator correctly Am, or? So now I'm a little lost, how can I define decorator in an easy way, does it even know other objects in the class namespace? Aruisdante following suggestions I managed to do a proper decorator def fooInit (fu...

html - Correct HTML5/ARIA markup for collapsable submenus -

I tried to locate to mark the correct way navigation with collapse sections using HTML5 and ARIA I am doing It is that I have done so far: & lt; Nav> & Lt; H2 id = "heading-overview" aria-controls = "section-overview" & gt; Overview & lt; / H2 & gt; & Lt; Ul id = "section-overview" aria-labeledby = "heading-overview" aria-expanded = "false" & gt; & Lt; Li & gt; & Lt; An aria-selected = "true" & gt; Layout & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A & gt; Color schema & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; H2 id = "heading-typography" aria-controls = "section-typography" & gt; Typography & lt; / H2 & gt; & Lt; Ul id = "section-typography" aria-labeledby = "top-typography" aria-expanded = "false" & gt; & Lt; Li ...

ruby - Can I omit braces for a hash in a hash? -

I have a hash in hash: valid: password, length: { Inside: 5..30}, Attendance: True Is it possible for a hash to leave the braces? It: valid: password, length: inside: 5..30, presence: true raises a syntax error. More accurately, you have a hash within the word hash verbatim which is the last log in method call it happens. The only time you can leave the braces, when hash is the last argument in a method call, they require second place everywhere. Your internal hash is a value in the other hash and this is not the last argument in a method call, no, you can not do this

html - Vertically Sliding CSS Background Image -

I saw The background image scroll is vertically giving a meaning that it is larger than the viewport. I tried to play with CSS with no luck. HTML & lt; Div class = "out" & gt; & Lt; Div class = "inner" & gt; Hello & lt; / Div & gt; & Lt; / Div & gt; css @keyframes scrollbugrigrix {0% {Transform: Youtube (Translator); } 100% {Conversions: Translator Y (-330px); }}. Manufacturer {Animation: 35S linear 0s general front 1 scrollbugrigrix; Background color: red; Status: Completed; Clip: Rect (0 pixels, 50px, 50px, 0px); Width: 200px; } .out {height: 200px; } pseudo-element sliding background one or two background pseudo & lt; Body & gt; Elements of are the position: fixed with height and width. Use this to show the elements above the background: element-to-show-above {status: relative; Z-index: 1; } For pages with many content, it will be able to apply the above properties in a cover that contai...

asp.net mvc 5 - MVC 5 Save Drafts While Ignoring Missing Required Fields -

I have searched for existing solutions, but do not get a set of directions or examples as a way to get the following : The original requirements were included in the model with the required fields, so we included comments on those areas. As usual, the last minute changes are made and we are asked to allow users to save the draft. I would like to know what are the best practices for this problem. I am considering the solution, but I admit that they can be a hack (and this is why I am asking the experts) If If the user clicks on "draft as save" then I can capture those fields which have information other ActionResult and run the original verification on those areas as the expected field is an opportunity to disappear, That's why I captured the information I'm thinking of storing a temporary model (without any necessary annotation). If the user decides to edit such a form, then I can temporarily populate the fields in the views. The model does not click on...

Ansible and the RSA validation prompt -

I am using Ansible to build my cloud infrastructure to verify the RSA key fingerprint I have no problem verifying "yes" when asked for it However, it becomes counter productive if I am trying to configure spin and 50 + machine at a time . Is unable to use the enzyme ... or at least answer it once? As David has mentioned that you use ansible.cfg You can leave it with host_key_checking = False , but if you have gone crazy, then you may prefer to use the keys to accept keys for the first time, or whenever your keys (Eg, when a loft and environment is destroyed and reconstructed).

sql - Partition by ignoring some columns -

मुझे यह क्वेरी में है: ROW_NUMBER () ओवर (भाग द्वारा (NUMB ) OR_CER BY MY_COL2) एएस row_number यह बहुत अधिक समान रूप से NUMB वेरिएबल के आधार पर मूल्यों को असाइन करेगा। मुझे वास्तव में कुछ स्तंभों के लिए असाइनमेंट को छोड़ने की आवश्यकता है जहां MY_COL3 की तरह 'बहिष्कृत' क्या इसके ऊपर तर्क को शामिल करने का एक आसान तरीका है? अगर नहीं है, तो मुझे दो अलग-अलग प्रश्नों को बनाने और एक क्वेरी में उपर्युक्त कार्य का उपयोग करना होगा, और किसी अन्य को (अलग-अलग) के साथ कोई भी असाइन नहीं करना होगा और फिर संघ दोनों प्रश्नों का उत्तर देगा। समस्या यह है कि यह बहुत समय लगता है और बड़ी क्वेरी है और मैं इसे टालना चाहता हूं ... यदि कोई है तो त्वरित समाधान की तलाश करें ... अधिक जानकारी: यह अब क्या प्रश्न है (सरलीकृत) NUMB = 4 पर आधारित: ROW NUMBER | USER | पाठ | स्थिति | 1 | विधेयक | ब्लाह 1 | अच्छा 1 | विधेयक | ब्लाह 2 | 2 निकालें | जैक | ब्लाह 3 | अच्छा 2 | जैक | ब्लाह 4 | निकालें 3 | विल | ब्लाह 5 | अच्छा 3 | विल | ब्लाह 6 | 4 को छोड़ दें | एंडी | ब्लाह 7 | अच्छा 4 | एंडी | ब...

jquery - css temporarily broken when the page load ( .addClass ) -

I am using a WordPress plugin that allows me to generate a filter field. I can not modify the CSS directly in the plugin so I use .addClass The problem is that when the page is loading, Jquery has been added. How can I display these areas directly with the appropriate class? I tried to bypass the problem with a preloader but loading on a mobile device is too long. My code: $ ("[adclass (" Grid-33 suffix -66 tablet-grid-33 tablet-suffix -66 Add-on ("Grid-33 Tablet-Grid-33 Mobile-Grid-100 Slider-Pre-Mobile", "Mobile-Grid-50 Mobile-Prefix-50 Block-Erdosystem"); $ ("[Data-id = '2']"). AddClass ("Grid-33 Tablet-Grid-33 Mobile-Grid-100 Slider-Pre"); ("[Data-id = '4']; (" [Data-id = '3'] " ] "AddClass" ("Grid-33 Tablet-Grid-33 Mobile-Grid-100 Slider-Pre"); Paco WordPress wp_enqueue_style () You need to take advantage of the functionality and override CSS as you...

ruby - Rails, calling model method in another model method -

I have a model method that translates the country code of the entire country name: Country country country = ISO3166 :: country [country_code] country.business [I18n.locale.to_s] || Country.name end Then I want to define another method in the same model that searches the full country name field. But, I have to use country_name, defined in the above model method, how can I go about calling this method? My attempt is down, but it does not seem so ... thanks a long time ago! def ("summary ILIKE? Or country_name ILIKE?", "% # {Query}%", "% # {query}%") P>

handlebars.js - Simplest way to add one class or another -

हैंडलबार के साथ, एक {{# #] द्वारा प्रदान किए जाने वाले प्रत्येक तत्व को एक वर्ग या दूसरे को जोड़ने का सबसे सरल तरीका क्या है? प्रत्येक ...}} सहायक? मुझे साइट के लिए एक मौजूदा सीएसएस सेटअप के साथ एकीकृत करना होगा, जिसके लिए एक वर्ग या दूसरे को एक सूची में वैकल्पिक तत्वों को जोड़ने की आवश्यकता है। उदाहरण सहायक: {{# प्रत्येक आइटम}} & lt; div class = "{{यहाँ क्या है?}}" & Gt; ... & lt; / div & gt; {{/ प्रत्येक} ... जहां हम वर्ग के नाम के रूप में भी या अजीब चाहते हैं (हां, फिर, मुझे पता है कि यह सीएसएस के साथ किया जा सकता है; मैं एक मौजूदा साइट के सीएसएस के साथ एकीकरण कर रहा हूं जो इसके बजाय वैकल्पिक कक्षाओं का उपयोग करता है।) एक हैंडलेबर्स नौसिख के रूप में, मैं कुछ भी अंतर्निहित नहीं देख रहा हूं, लेकिन एपीआई एक सहायक को जोड़ने में आसान बनाता है जो आपको एक मनमानी से चयन करने देता है - आइटम की लम्बाई सूची, इस तरह: हैंडलबार। रजिस्टरहाल्पर ('चक्र', फ़ंक्शन (इंडेक्स) {अनुक्रमणिका = अनुक्रमणिका% (arguments.length - 2); // 2 छोड़ने के ...

Camel ProducerTemplate possible memory leak -

To some degree, this is a bit of a shot in the dark, but we have a process that is dramatically slow One day's course we have found that all the things running on the fuses begin to draw, but when we are running a specific process, JPPropellers are going on, I have found that the increase in magnetic usage increases over time. . Org.apache.camel.ProductTemplate.Send So my main question is, is the way in which the manufacturer product is being used here which is wrong / can this be a problem? exchange foo = new DefaultExchange (getCamelContext (), ExchangePattern.InOnly); Foo.getIn () setBody (obj). Root R = Exchange .getContext (). GetRoute ("do_something_fun"); Creator Template Template = exchange.getContext () CreateProducerTemplate (); Template.send (r.getEndpoint (), foo); Generally, you should not create a productive template on each request as described here: / P> However, because I do not have a complete picture of your application, so you can cr...

ruby on rails - Collection is serializing with the each-object key being the pluralized key, cannot figure out why -

We have found a simple API endpoint that works like this: DIF Index: Json: country.all end This unfortunately gives us this output: {"countries" => [[0] {"Country" = & gt; {"Id" = & gt; 1, "iso" = & gt; "US", "Iso 3" = & gt; "USA", "iso_name" = & gt; "United States", "name" = & gt; "United States", "Nodecode" = & gt; 840}}, [1] {"Country" = & gt; {"Id" = & gt; 2, "iso" = & gt; "Ca.", "iso3" = & gt; "CAN", "iso_name" = & gt; "Canada", "Name" = & gt; "Canada", "Nodecode" = & gt; 124}}]} Note that the key for each individual object is the form of the plural key However, when we end the point DIF INDRED RENDER JASON: {country: country.all} and The output looks like this: / P> ...

angularjs - How do I share data between child directives in angular? -

Let's say I have two instructions- parent and child- dir & Lt; Div parent-directory & gt; & Lt; Div hairdryer & gt; & Lt; Div hairdryer & gt; & Lt; / Div & gt; & Lt; Div parent-dir> & Lt; Div hairdryer & gt; & Lt; Div hairdryer & gt; & Lt; / Div & gt; How can I share data between parent instruction and all child-directed instructions within that basic element, but different from other parents? It depends on how you are establishing your instructions. In a way, a new opportunity has to be created for parents and children's instructions. Parents 'area is automatically inherited in the children's area, and especially the parents' scope can be accessed by $ parent siblings [easily] reach within each other's sphere In your example, you can use child-dair their parents , but parents second parents -Dire You have returned the object while defining your instructions You can create ...

extend python list with a specified number -

Is there a way to expand the list with a specified number? Initially I have a list of size 5 and based on the return value of some functions, I have to expand the list of that size. This is my code list = [0,0] # size2 size = some_function () #function Returns 3 list. Extension (size) Print LAN (list) should print # 5 List of Python There is no concept of 'pre-allocation' size. The lists are applied in the form of arraylists and are dynamically developed from the partitions of fixed sizes. And there should always be a value in an index in the list, there is no such thing as allocated but empty index (at least that user has access). In most cases, there will be very little performance. Before artificially adding elements, artificially increasing the size of the list is complicated by the fact that the lists are given a list of references, You are not able to undo memory for special objects, for only one sign, if you really want, you can do the following: lst.ex...

java ee - How do I inject CDI beans into custom entity classes? -

We use Cassandra (and the DataStax driver) to store our entities. As we have a custom unit service that makes new instances of our institution classes when it receives data from the cadence I have to inject the services in my unit sections using the CDI. How do I do this? When I was on injection annotation, never injection. public class customer {@ inject private event & lt; Deactivation Program & gt; Arrangement; Private string UID; Public Zero Set (String UID) {this.uid = uid; } Public string getUid () {return.uid; } Public Zero Passive () {events.fire (New DeactivationEvent ()); }} Public CassandraEntityService {Public Static Customer Search Customer (String UID) {... Whatever the argument to see ... customer customer = new customer (); Customer.setUid (..) Clients.Set ... customer back; For reference, I am using JBys / Wildfire 8.1. CassandraEntityService.findCustomer () The immediate problem is that clients Example is not a cdi bean, because findCustomer ...

.txt file to arrays using Java -

I have a .txt file that contains document information (for 1400 documents). Each document has an ID, title, author, field and summary. A sample looks like this: . 1. Experimental investigation of a wing aerodynamics in the slipstream. A Bremenmen, me. B J. Ae SCS 25, 1958, 324. Experimental investigation of a wing aerodynamics in the sleepstream. [...] Specific configuration of the experiment I want to put each of them in every array dedicated to 5 arrays. I am having trouble in getting the title and the essence in an array position, can someone tell me what is wrong with this code? What I'm trying to do, read the text lines in the "x" and stop when it finds "A", when this happens, increase the position 1 to fill the next position Try {collection = new file (file location); Fr = new FileReader (archive); Br = new buffed reader (FR); String numDoc = ""; Int pos = 0; While ((numDoc = br.readline ()) = null {{(numDoc.contains (". T")...

go - mgo, mongodb: Finding documents that match one field from embedded struct -

विशिष्ट उदाहरण के उदाहरण हाय , mongodb में दस्तावेज़ों को सम्मिलित करने के लिए एमजीओ का उपयोग करके, मैं किसी दस्तावेज़ को किसी अन्य के भीतर एम्बेड करने का प्रयास कर रहा हूं। एमजीओ के साथ मैं इसके लिए दो स्ट्रेंक्ट्स का उपयोग कर रहा हूं: टाइप टेस्ट स्ट्रट {इनटेस्ट सबस्टेस्ट `बीएसन:" इन_स्टेस्ट "`} प्रकार सबटाइस्ट स्ट्रक्चर {टेस्ट 1 स्ट्रिंग `बीएसन:" टेस्ट 1 "टेस्ट 2 स्ट्रिंग` बीएसएन: "टेस्ट 2" `} मैं फिर एक दस्तावेज़ डालें: test: = test {inTest: सबटेस्ट} {टेस्ट 1: "टेस्ट", टेस्ट 2: "हैलो"}} err = col.Insert (test ) अगर गलती! = शून्य {fmt.Printf ("दस्तावेज़ सम्मिलित नहीं किया जा सकता है:% + v \ n", गलती) os.Exit (1)} अब मैं चाहूंगा एम्बेडेड दस्तावेज़ में फ़ील्ड के आधार पर इस दस्तावेज़ को ढूंढने के लिए: var परीक्षण [] परीक्षण err = sess.DB ("test")। ("परीक्षण")। एम {"in_test": bson.M {"test1": "test"}})। सभी (और परीक्षण) अगर गलती! = शून्य {fmt.Printf (...

javascript - Trouble getting CSS animation to work when AJAX call -

I am creating a website and when I first call the page, I can work with CSS animation, but I have to call every time the AJAX function is called. Here is the Javascript XML call that works function XML (infoId) {var xmlHttp = xmlHttpObjCreate (); If (! XmlHttp) {Warning ("Browser does not support this operation."); Return; } XmlHttp.onreadystatechange = function () {if (xmlHttp.readyState == 4 & xmlHttp.status == 200} {elemObj = document.getElementById ('textbox'); ElemObj.innerHTML = xmlHttp.responseText; ElemObj.className = "bounceInUp"; }} // Which quotes we want var reqURL = "FILE_NAME_HERE_? InfoId =" + infoId; XmlHttp.open ("GET", reqURL, true); XmlHttp.send (); } Here is an example call function Here is the CSS animation code named "bounceInUp" # Textbox {Width: 100%; Background color: transparent; Height: 200 pixels; Color: # 0000FF; font-weight: bold; Font-size: 22px; Overflow: Auto; Padding: 10; Webk...

excel - How to copy a VSTO Document level worksheet without registery installation? -

I understand that when I create a workbook VSTO solution, let me resolve the solution (implicitly or clearly) in the registry the wanted . Keeps this in mind while developing VS. What if I want to give more physical names than physical names and reuse the VSTO code? A simple copy / paste workbook will not be a course of the file. I do not want to register every new workbook in the Windows Registry because it can cause serious problems. The typical case will be: Say that a user workbook collects monthly data in the xlsx file. You need to run different VSTO codes in each workbook xlsx file. As a result you end 12 sheets per year. Using VBA, you can easily copy and rename files - how to do the same when VSTO is used? I thought about using a template, but I wanted to ask before I wasted time before. / P> I am using VS2010, C #, Excel 2007.

linux - Passing parameters to dependent kernel module during loading -

During a startup, some kernel modules are trying to see a way to pass parameter values. The problem is how do I pass a parameter For example, my requirements 1. I want to pass the parameter param1 = value During a load time, for a module mod1 2. During the load time, you want to pass param2 = value a module mod2 parameter mod1 depends on . We do modprobe mod1 param1 = value which takes care of the first requirement but mod2 load as part of the command given above Is happening so I can not pass it to param2 . Thanks Raj Place the module parameters in /etc/modprobe.d/ * conf as described in m. Odprobe.d (5) man page. option mod2 param2 = value

javascript - Sails.js : redirection after http delete request -

I start with Sail.js and I'm not considered redirection. When I post and use res.redirect ("/ articles /"), I have no problem. 'Post / Article': 'ArticleController.create', create: function (req, res) {if (req.param ('titre') || ! Req.param ('resume') || | req.param ('contenu')) {res.status (400); Returns res.json (); } And (Article: (titre: req.param ('titre'), resume: req.param ('resume'), contenu: req.param ('contenu'), url: req. Param ('titre'). (= (Count) post () (if (error) {console.log ("erreur T_T"); console.log (err); return res.json (mistake);} other {console .log ("article about."); Console.log (post); res.redirect ("/ article /");}})}} but when it is a HTTP If I delete the request, I get a "not found" response: 'Delete / article': 'ArticleController.delete', Delete: function (Rick, Ridge) {if (! Req.param ('id...

javascript - Missing SocketIO reference in Sencha CMD build? -

I am using ExtCs 5.0.1 with Senka CMD to produce the production version: ck app build-c output i socket IO libraries are serving directly with my NodesJSHTTP server and they have EXGES app Referencing Jason File: "js": [{"path": "/ socket.io/socket.io.js"}, ...] Then in my code, I'm calling the global io (): Ext.define ('MyController', {extends: 'Ext.app.ViewController ', MyFunction: function () {var socket = io (); / / do something with the software}}; While looking at my project in the browser, it all works well My Cena CMD build process fails with an error: 2014-10-17 17: 07: 44.457 Phitmaj [12 9 31: 7] Core Execution Note: To debug, set a breakpoint on CTFontLogSuboptimalRequest. Registering a Ready Listener ... Loading Widget Definition ... Widgets Presentation ... = = Uncontrolled Error == Reference Error: 'The variable could not be found: io I am convinced that it is a matter of simple disappearanc...

c++ - In-Place CUDA Kernel for Rectangular Matrix Transpose -

I have looked around for a while, but unable to find a suitable answer for this: Is there any implementation for mutilated matrix transfer in CUDA? I know about cublas geam , but there is a need to create another matrix for this: I tried a simple implementation from this: However, this only works for class matrix. Can someone explain to me why this argument does not work at all for the diagonal matrix? Although it is not in place, however, the 'inexperienced' approach works for the transfer. The following paper: The sequential algorithm for in-place matrix transactions is as follows (> O (nm) run time): // in: n rows; I colle // out: n cols; I lines zero metrics_transize (int * a, int n, int m) {int i, j; For (int k = 0; k & lt; n * m; k ++) {int idx = k; Doing {// Calculate the index in the original array idx = (idx% n) * m + (idx / n); } While (idx k); // Make sure that we do not swap std :: swap (a [k], an [idx]) elements twice; }}

html - Nintendo 3DS YouTube Embed Support? -

Does the Nindado 3ds (and perhaps 2DS) browser support provide embedded YouTube support for iframes? Thanks! These browsers can support iframe, but they do not support Flash or HTML 5 videos , So youtube video will not play in the browser. The only option is the dedicated YouTube app available in Nintendo EShop.

Appending Formats to Strings in Java -

I have this code in Java, Recipient Methods Back Strings: String StringBilder = " "; Stringbuilder = string.format ("% d /% d \ n", this.getSlotNum (), this.getPortNum ()); Stringbuilder = stringbill + string Format ("++ this.getPortSpeed ​​(+ + +" \ n "); StringBuilder = StringBiltter + String.format ("% d \ n ", this.getPortMode ()); There is a stringbuilder class in C # AndandFormat () is the method that allows me to insert the stringing ballilder instance directly without any formatted string. I do not see an addend format () method in the Java StringBuider class. Am I trying to do a better Which way do you want? Looks like a Java class that you want: Formatter format = new format (); Formatter.format ("hello, world \ n"); if (name! = Null) {formatter.format ("my name is% s \ n", name is);} Other {formatter.format ("Please email me at% s", email);} DoUse (formatter.toString ();

core location - Reading iBeacon measuredPower in iOS -

According to the Ibeacon protocol "measured power" in each of its advertising packets, it is assumed to be sent as the last value after each eibonon after yuyud. , Head & amp; In addition to the nominal price, there is no way in the iOS core-lockation service, which returns "MePower" apart, if we change a ibeacon and change its txPower then Beacon ideally should advertise a different "measured power" what all beacons do so We do? And how can we get the measured power of beacons in iOS / Corollocation. Straight, it is not possible to have iOS. Your closest RSSI is CLBeacon . Given the known distance, you should be able to calculate signal power.

.net - Is it possible to disable System.Console XOFF/XON flow control processing in my C# app? -

I am the developer of the console-based server software, sometimes it takes up until the input is locked until the key is pressed Pets. I suspect that this system has XOFF / XON (Ctrl-S / Ctrl-Q flow control) handling. Console windows. Is it possible to disable XOFF / XON (using net call or Win32 API functions) in my C # /? Flow control processing in .NET applications which is the system for output and input commands. Uses the console? (It also affects other system consoles like CMD.EXE window, but I do not care about those cases.) My app is server software; Never want any key that prevents the console, especially, which can start with a mistake, as it appears. Either way I believe that my server is getting a Ctrl-S on the app console input or it is thought that the Ctrl Qualifier is pressed when S is entered. Unless I hit Enter, the console locks (I'm thinking that Control-A might have released it, but there is no other chance of testing it yet.) My processes C # servers...

How to access iPhone/ipad native camera app from IOS app? -

In my application, I want to make an exact replica of the iOS 7.0 camera inside of my app. It is possible to call the Android app as the original camera app in iOS 7.0 / 8.0. Second question: Using UIImagePickerController Is it possible to apply filters to photos, slow mo, PANO? You can see the UIImagePickerController code> view this link

windows - Can't play WAV file -

I make a player on card 1 and set the player's file name to path / voice Saves standalone application for windows when I click on button to start sound does not sound what is happening? This is my code: Stack: If the platform is "Win32" then set DotUSETT to the correct set DontUseQTEffects right end To do this, if the end of the preOpenStack card: set the mouseUp item Dell to the slash in the actual path of this stack in the actual path, () Is not "mobile" then the name of the player's "player" (the actual path and slash and "asset / voice / click.Wow"), then bloom The current time of the player starts with "player" starting at 0 "player" player and "real path and slash" and "assets / voice / click.wow" in tpith, click "click btn" in tChannelName mobilePlaySoundOnChannel tPath , "Now" end if end mouseUview You can control a player without QuickTime Can no...

Issue with Rendering templates with jade, express, and node.js -

I am new to node. Js, Jade, & amp; Express, so please stand with me. I have the following files. layout.zade Layout block content label initial layout form (action = "/ getReports", method = "GET" , Enctype = "multipart / form-data") input (type = 'submit', value = 'generate report') child.jade Expanded index block attachment attaches to child server.js apgate ('/ millarports', function (reserve, rick) {Res.render ("child.jade");}); Process: The user arrives at the site and loads The call will present the child's template which is just " Added children "should be added. For the contents section of Index.jade. However, I'm not seeing this. I think I am trying to understand the best approach to adding a partial template to the original index. Z Page The problem I am having is that this code is the customer side index.jade page. The button triggers an action call on ...