Posts

Showing posts from May, 2012

laravel - Entrust not finding user's roles -

I have the following in my controlling method that gives JSON on my view: Public Function RolesForUser () {$ userid = input :: get ('userid'); $ Assigned = DB :: table ('assigned_roles') - & gt; Select (Arrays ('role_id')) - & gt; Where ('user_id', '=', $ userid) - & gt; get (); $ User = user :: find ($ userid); $ Roles = $ user- & gt; Roles (); $ Data = array ('assigned' = & gt; $ assigned, 'roles' = & gt; $ roles); Return Feedback: Jason ($ data); } The following (inspected using Fiddler): {"Assigned": [{"role_id": "2" }, "Role_id" "3"}, {"role_id": "4"}], "roles": {}} SQL statements using query builder correct results , But the method that uses anestust (copying since making a change to my user model) does not return any role. I also tried to solve, but it only returns a SQL error. My User Model: Exten...

Performance decays exponentially when inserting bulk data into grails app -

Before we run the demonstration test, we need to apply with 3 million institutions to simulate 3 million entities 3 years of real data simulation Should be loaded through the application. We are putting 1-5000 units at a time. Initial reaction is very good in time, but after some time they rapidly decay. We use on Groovy script to kill a URL to begin each round of the inclusion. Restarting the application resets the response time - that means it temporarily fixes the problem. The script's rearrange, without restarting the app, has no effect. We use the following to increase performance 1) After every 100 entries, GORM: def Session = sessionfineCR session session Full () Session.clear () DomainClassGrailsPlugin.PROPERTY_INSTANCE_MAP.get (). Clear () (Old Ted Nellied trick :) 2) We use GPars for parallel insertion: GParsPool.withPool {(0 .. .. lt; 1000) .eachParallel {def unit = new unit (...) insertion service. Institution (unit)}} Notes Looking at...

c# - Get all pixel information of an image efficiently -

I created a program to get all the image pixel RGB color code from the picture. And the X position changes from zero to width and also by looping the Y. OK, this is work, but the problem is that it can take any more than 20 minutes to image all the pixels (1000 * 604 height width) Can someone help? I wonder if this process looks so long, how can we create programs like image bar code reader. I want to get all the pixel value from the image, here's my C # code below. I have also uploaded my program, if you do not agree then check it out. zero myimage () {mypic = new bitmap (pathname); Int imwid = mypic.Width; Int imhei = mypic.Height; Intel Total = IMWD * EHEILLY; For (int z = 0; zlt; iiii; z ++) {for (int i = 0; i & lt; imwd; i ++) {color pixel collar = mypic. Gatepixel (I, Z); Textbox2.AppendText ("" + pixelcolor.R + "" + pixelcolor.G + "" + Pixel Color. B + "" + Pixel Collar. A + Environment. NewLine); }}}} Take a loo...

php - Creating an array within a method -

मेरे पास है: वर्ग खाता {निजी फ़ंक्शन कुछ () {# एआरआरईईईईईटी}} लेकिन जब मैं इनमें से किसी एक का उपयोग करता हूं, तो मुझे एक त्रुटि देता है। मैं एक कक्षा में किसी सरणी को कैसे तैयार करूं, कोई फायदा नहीं हुआ। निजी सरणी विकल्प = ['लागत' = & gt; 20]; सरणी विकल्प = ['लागत' = & gt; 20]; यह कैसे किया जाता है? धन्यवाद। आपको लगता है कि PHP के कुछ मूलभूत तत्व गायब हैं। आपको निम्न कोड के रूप में अपने कोड को रिफैक्टर करना होगा: वर्ग खाता {निजी $ विकल्प; निजी समारोह कुछ () {$ options = array (); $ विकल्प ['लागत'] = 20; $ This- & gt; विकल्प = $ विकल्प; }}

curl - PHP whois via proxy -

This is the PHP script to bring which domain information I have to get it, but when I connect via proxy It does not work, so it does not work. What do I do wrong? Thanks for the help. $ server = "whois.nic.cz"; $ Domain = "ucedan.cz"; FunctionWhoisServer ($ server, $ domain) {$ proxy = "85.111.25.189:8080"; $ Ch = curl_init (); Curl_setopt ($ CH, CURLOPT_URL, $ server); Curl_setopt ($ CH, CURLOPT_PORT, 43); Curl_setopt ($ CH, CURLOPT_PROXY, $ proxy); Curl_setopt ($ CH, CURLOPT_FOLLOWLOCATION, 1); Curl_setopt ($ CH, CURLOPT_HEADER, 1); Curl_setopt ($ CH, CURLOPT_RETURNTRANSFER, 1); Curl_setopt ($ ch, CURLOPT_TIMEOUT, 30); Curl_setopt ($ CH, CURLOPT_CUSTOMREQUEST, $ domain. "\ R \ n"); $ Data = curl_xac ($ ch); Curl_close ($ ch); $ Return data; }

asp.net mvc - @Html.BeginForm Post value from dropdown Change event instead of a submit button -

I am trying to implement a 'refined' option within my MVC project. My thoughts on top, I have something like this + ---------------------- ---------- ----------------- + | ______ | | Select: | 1 | ▼ || | | | + ------------------------------------------------- + Where the user can choose a number from the drop down list. However, in order to post it, it requires 'Submit Button': + --------------- --------------------------- ------- + | ______ | | Select: | 1 | ▼ || [Live] | | | + ------------------------------------------------- + Is there a way to delete this 'GO' button so that it automatically sends this value to the controller when I select a value from the dropdown? VIEW & lt; One style = "font-size: big; font-weight: bold; padding-bottom: 50%" & gt; Select: @ Html.DropDownList ("number") & lt; Input type = "submit" value = "go" id = "subBtn" /> gt; & Lt; / A & ...

jquery - On scroll video pause and play with javascript code -

After I can stop writing jQuery code and play a video. Here I have used the embed tag (the video tag) is working in Firefox but not in Chrome. jquery (document) .ready (function () {jQuery (document) .scroll (function () {jQuery ("login content .wonderplugingallery") .Each (function (index) { Var ETOP = jQuery ('Access content .html5gallery-container -' '+ index) .offset (top); Topy = ETOP - jQuery (window) .scrollTop ();; if (Topy> 80 & amp; & Lt; 340) {jQuery ("html5gallery-container -." + Index + ".html5gallery-video-play -" + index ") .trigger (" click on "); jQuery (" html5gallery - Container - "+ index +" .html5boxPlayPause .html5boxPlay ") trigger (" click ");} else {jQuery (". Html5gallery- container - "+ index +" .html5box PlayPause .html5boxPause ".) Trigger (" click on ");}});});}); itemprop = "text"> code in this link ...

CouchDB to Excel -

I would like to import data from CHDB to Excel 2013 In particular, I would like to set up a connection (it may be refreshing) in CouchDB in Excel I know, but I was wondering if there was an interface for Excel. I tried to search and there is no luck for Excel references. What would be the best way to set up a connection in CouchDB in Excel? By installing Microsoft's additional PowerQuec in Excel and using the Data Explorer, it may be possible to:

java - Concurrent ArrayList -

I need an array like an ArrayList which only functions get index (int index) add (e element) set (int index, element E) iterator () Due to the use of the iterator in many places, collection # indexed synchronized By using also error prone this list can increase to some thousand elements and flowing Of which some use, so I'm pretty sure that CopyOnWriteArrayList will be very slow, I'll start to avoid premature optimization, but I'm sure it will not work well. Most of the access will read single-threaded. That's why I am asking what is the proper data structure for it. Although it provides a synchronized errator, it invokes the synchronized list in something, but it will not be the concise improvements concept Due to encouraging concurrent behavior, I am obviously required that all the changes will be seen by later reading and Dwarkas. The itater does not need to show a consistent snapshot, it can be updated or used by the set (int ...

AngularJS : How to get the uncompiled transclude content of a directive -

I am trying to use As I, transclude content of a directive (directive, not the original content of the template) A line HTML template in the grid. & lt; Grid etters = "..." & gt; & Lt; Action-column-templates & gt; ... (html I want) ... & lt; / Action-column-template & gt; & Lt; / Grid & gt; This is the idea that I needed raw HTML action column template (uncompiled, unbinded any scope). I do not control the generation of each line, so I can not bind using Tronskaicc (Line Scope) within each line manually the action template. I just need it as plain HTML (i.e. with "{{}}" and inside directions are insulated). Transclude () is running fn from the link function, gives me transcluded content, but expanded with a bound scope and internal instructions. And the compilation function of Telem template instructions HTML param () returns HTML, not content transcluded for So the question is :. Can I get content to believe that the...

php - Laravel filter not executed -

I have a very strange problem. On my local machine (Windows 8, XAMPP) Laravel filter should work, but they do not do on the server. (Ubuntu with Apache). Route: filter ('test_filter', function ($ request) {echo 'inside filter & lt; br / & gt;';}); Path: get ('test_server2', array ('first' = & gt; 'test_filter', function () 'return & gt;';}) after filter; When I run it on my local server, the output is: inside the filter after filter When I run the same script from the Web, I get: after the filter As you can see, the filter Not being implemented, they are never executed. There is no random or temporary thing. I saw this problem in a large application that I have. Does anyone know why the filter can not be executed? / P> I have checked the routing classes in Laravel's source code and I did not find anything that could help me solve my problem. First: Always define which specific vers...

asp.net - "is ambiguous" Error message in vb.net when nothing is ambiguous -

We have asp.net vb.net application that gives us random error conditions. We are getting this error message: exception message: D: \ xxxxxx \ xxxxxx \ artikkelit \ bootstrapbartikkeli.aspx.vb (14): error BC30554: 'Masterit_bootstrapb' is ambiguous & LT;% @ Page Language = "VB" debug = "false" AutoEventWireup = "false" CodeFile = "bootstrapbartikkeli.aspx.vb" Inherits = "bootstrapbartikkeli" MasterPageFile = "/ masterit / bootstrapB.master"% & gt; The problem is that masterit_bootstrapb does not have any double reference. The name of the class is unique on the site. Many times this error occurs when we modify master or nested master. We can solve this error with the master and app vb-file again, sometimes it needs to be saved again so that it can work. It seems that by compiling the code in the correct order, does it have some magic ...? The same application and master is working fine on our test s...

java - How to pass session variables in JDBC url properly? -

I have to increase the group_concat_max_len I can not do this by prepaidment, and I can not even do it in mysql my.conf file . I found on mysql documents that there is an option to pass the session variable in the URL. But there is no example, I tried to do this: jdbc.url = jdbc: mysql: //xxxx.xx.xx.xx/dbName? SessionVariables = group_concat_max_len: 204800 and I have an exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: one in your SQL syntax Error is; Check the manual related to your MySQL server version for the correct syntax for using 'Nearest': 204800 'Line 1, and I also tried it like this: jdbc.url = jdbc: mysql: //xxxx.xx.xx.xx/dbName? SessionVariables = group_concat_max_len, 204800 Because the official document says: sessionVariables names / values ​​separated by a comma separated list as SET session Can be sent ... when the server connects the driver. Version: 3.1.8 to Any ideas ??? Try it out: jdbc.url = jdbc: ...

oracle10g - How to open .dmp oracle backup file -

I have a backup.dmp file, which is a backup file of my database created in Oracle I Please suggest to me how can I see Schema etc in that table, which is stored in backup.dmp? Should I install some software to open this backup.mmp file? Thank you in advance. .dmp files are generated from the Oracle Devices (data pumps or exports). In order to take advantage of these files, you must install Oracle (for example, try for Oracle 10G Expect) and then import (APP) or Data Pump (DPDB)

javascript - Run Jquery/JS function on button click with parameter -

I have 5 buttons, which all need to click or run the same function, which can The best way is .. but I have to pass the button ID as a parameter on the function. The button functions are running BuyItem (Button ID), I have to keep the button in the past so that I can run the same function and only find out why they are buying based on the passage of the button ID. The button is being created in my PHP file & lt; Input type = 'button' id = '$ id' name = '$ id' onsubmit = "funciton ($ id)" style = 'width: 185px; 'Value =' buy equipment '& gt; I do not know how it works, how should I call the function, but when the button is clicked, then I should have an id passing the function this.id will present the current ID of the element & Lt; Input type = 'button' id = '$ id' name = '$ id' subtitle = "funciton (this.id)" style = 'width: 185px;' Value = 'buy equipment...

SQL Server a lot of Single use objects -

We have a database with approximately 50-60% recompilation, this value [batch request / sec] together with [SQL] Coming / Seconds] comes from We feel that this value is slightly If we look at this question: / P> SELECT.dll_exec_sql_text (qs.sql_handle) ST WHERE qs apply the. Plan_generation_num & gt; 1 ORDER plan_generation_num DESC If you compare it to performance count then we do not have many plan_generation_num, we have the same object of use and why am I trying to understand it ? There is an application created in our ASP.NET and we always use the parameters that are queryed. We use both SP and SQL-statement in the application, but are always parametida. The webpage that is running this database again is a very large website, approximately 500 000 pageviews per day and approximately 10 000 requests per minute if this information helps. We do not have long-lasting questions and indexes and Statistics is in order. This is one of the last things to optimize....

bash - sqlite3 database locked on multiple inserts -

I am using a binary script which writes "never" in multiple tables in the same scilit databases. I am getting database locked errors, I have read, but I am not sure that I should get the error that I am writing in different tables in the same database, anytime the same table Not in The same database. Was not it wrong to me? Regards SQLite uses a file for all tables to complete it Lock the file, not a single table. As an alternative solution, you may need to repeat the operation several times after a time interval, until it succeeds.

java - What is the difference between writing and writing with flush? -

Recently I was experimenting with NATI I came into the following problem: ctx.channel () Write (New TextWebSet Frame ("Hello")) Hello on the back side of the customer, but ctx.channel () Write and flush (New TextWeb Sockfreem ("Hello")) What is the difference between the two? ctx is ChannelHandlerContext . According to the doctor channel .writeAndFlush (msg); is a shortcut for channel.write (msg); Channel.flush (); and flush () flush ( writes ) all pending buffers.

r - Add trend lines to some plots -

I am new to ggplot2, but decided to learn it because I like its simplicity and view. In many cities, I have a time-series with rain, seeing other questions, I came to know how to make it a new look and conspiracy: df I really like the final result in terms of scenes, because it's one in the city Plots but with global axes and I came to know how to add trends: stat_smooth (method = "lm") The problem is that I have some tendency to plots Add lines I do not want them all, but only for those people where a trend is important (I have vectors with zero and zero) I know that base graphics (using conspiracy and conspiracy) And adding only one line if this trend is important), but is there a way to do it in ggplot2? As suggested, just a data frame of that subset Naaa you want to smoothing and use it data stat_smooth () . subdf

jquery - JavaScript, add in string to text area based on cursor position -

I currently have a system that works like a user when hit hits, so I & lt; Br / & gt; to add. The way it works now is to capture the current content of the texture, attach it & lt; Br / & gt; outputs it and then a whole lot, then it works, but at the end of the content & lt; Br / & gt; Adds . $ ("# postcontent"). Keypress (function) {// If entered key entered (eg == 13) {var current HTML = document.gate elementBiID ("poststrain") value; Var current html = current html + "\ n " Document.getElementById ("Post-content"). Value = currentHTML;}}); The above action's I know that the current solution is & lt; Br / & gt; will not work to add to the tag. I was thinking something like this, but not to make sure how to handle it. $ ("# postcontent"). Keypress (function (e) {// If the Enter key is pressed (E. == 13) {// Find the position of the cursor // Hold all the contents before the c...

r - Finding 1 occurrence of a value within array of variables in a dataframe -

I am transitioning from SAS to R and am "feeling" some difficulties. The following dataset: key var1 var2 var3 var4 res1 res2 res3 res4 1 1 2 3 4 100 121 34565 4345 2 2 1 4 3 200 56 345 345 3 4 3 2 1 100 34 3 6 4 1 4 1 2 100 3 2 43 5 1 4 4 2 400 6 34 3 structure (list (key = 1: 5, var1 = c (1l, 2l, 4l, 1l, 1L), var2 = c (2L, 1L, 3L, 4L, 4L), VAR3 = C (3L, 4L, 2L, 1L, 4L), 4W (4L) , 3L, 1L, 2L, 2L), Race 1 = C (100 L, 200 L, 100 L, 100 L, 400 L), Ridge 2 = C (121 L, 56 L, 34 L, 3 L, 6 L), Riz 3 = C (34565 L, 345 L, 3 L, 2 L, 34 L), Race 4 = C (4345 L, 345 L, 6 L, 43 L, 3 L)). = C ("key", "var1", "var2", "var3", "var4", "res1", "res2", "res3", "res4"), class = "data.fr var1 - var4 for example The time (var1 - J Un, var2-jul, etc.) goes to the same array res1-res4 but this is an amount I'm trying to do: To find the first appearance (working in line) for the key...

Runtime error 2115 at Access 2013 -

My Access database is connected to my SQL Server 2008. Called diverNo) is a number (only numbers are allowed in this area). I want to validate the user as well as leave the field, and if the user tries to put any character which is not a number, then the field will be cleared: Private sub Form_interval (Answer as integer, as the DataErr integer) If DataErr = 2113 then response = acDataErrContinue MsgBox ("Only numbers in dieer numbers are acceptable") Me.diverNo = "" ' > I get the runtime-error 2115, which states, "For this field set the macro set for earlier or later Microsoft Office Access is being prevented from saving data in the Function field. " Any suggestions for deciding this? undo method and cancel From True to update before handler works. Private sub-dieer Noebeforeforedate (Cancel as integer) If IsNumeric (Me.diverNo) = False Then Cance L = true 'prevents record from saving Me.diverNo.Undo' only Contr...

vba - Parsing Data in Excel Causes Crash -

I was thinking that anybody knows a way to parse large data files in VBA because whenever I'm simple Parsing data crashes the program 59 :: 59.820,9519,9519, Px (25.5), 9519,9500,10001,10226,10451,0,0,0 data such as 593,972, data is formatted as 15, 0,0,28.7604,25.4800,25.4841 and approximately 3 million lines are formatted exactly the same way and I Want to get some value If the first value (in the above is 593972) is a specific number. I'm rather new to VBA so any help would be greatly appreciated. Thanks so much for your time attempts to use FSO; Modify your needs accordingly. Sub-ParseFile () as the FSO define the object FSO set = CreateObject ("Scripting.FileSystemObject") as the dim strLine string dim arrLine () string for slow objFile console as ForReading = 1, ForWriting = 2, ForAppending = 8 set objFile = fso.OpenTextFile ("C: \ Temporary \ text file.txt", ForReading) '& lt; ObjFile.AtEndOfStream strLine = trim (objFile.Readli...

c# - Property Changed Notification Binding to a Static Dictionary? -

Together with this problem the circles become round. I have 2 comboboxes User makes a selection on the first combo box & amp; 2 ComboBox Displays Option 1 on the basis of selection I am binding on a constant dictionary ComboBox ; String, string & gt; In my thoughts model I have another public property that raises the INPC on the static dictionary. In the UI, changes are not displayed. I have not found any errors in the output window, am I missing something? It worked fine under .NET4.0. As soon as the user installed .NET4.5 machines, this behavior started with this 1 ComboBox bound for a dictionary ... Properties: Private static Dictionary & LT; String, string & gt; _ModelArticleTypeCodeToChangeTitleMap; Public stable dictionary & lt; String, string & gt; ModelArticleTypeCodeToChangeTitleMap {Get {Return _ModelArticleTypeCodeToChangeTelTemp; } Set {_ModelArticleTypeCodeToChangeTitleMap = Value; }} // The default ArticleTypeCodeToTitleMapFilter...

bash - Write a script which prints all 10 arguments which have been passed to it. UNIX TERMINAL -

Hi guys, I am trying to answer the following question, but having a hard time trying to solve it: Write a script that prints all 10 arguments that have passed it. Once the script has printed the arguments, the arguments were changed to 2 and print them again This is my code #! / Bin / sh Echo "\ $ 1 now $ 1" resonance shifts "\ $ 2 now $ 2" echoing change "$ 3 is now $ 3" ​​echo "$ 4 is now $ 4" echo "\ $ 5 now $ 5 "echo" $ 6 is now $ 6 "echo" $ 7 is now $ 7 "echo" $ 8 is $ 8 now "echo" $ 9 is $ 9 now "echo" $ $ 10 $ {10} " And here is my code in Unix terminal #! Bin / sh echo "change $ $ 1" now $ 1 "change" is "$ 2 now $ 2", "$ 3 now $ 3" ​​$ 4 is now $ 4 "echo" $ $ $ 5 5 "echo" $ 6 is now $ 6 "echo" $ 7 is now $ 7 "echo" $ 8 is $ 8 now "echo" $ 9 is $ 9 now "echo" $ $ ...

php - Smarty concatenate string and variable as parameter for a modifier -

How can I add multiple strings and variables inside a parameter in a modifier in Smarty 3? {$ message | Modifier: 'something': 'bla' $ foo'bla ':' hello '} // returns error: unexpected "$", expected of: "}" {$ message | Modifier: 'some': 'bla'. $ Foo.'bla ':' hello '} // returns error: unexpected ".", Expect one of these: "}" {$ message | Modifier: 'something': 'bla'` $ Foo_'bla': 'hello'} // returns error: unexpected "` `, expect one of these:"} "{$ message | modifier: 'something': 'Bla' {$ foo} 'bla': 'hello'} // returns error: unexpected "{", one of these is expected: "}" {$ message | Modifier: 'Something': 'bla {$ Foo} bla ':' hello '} // parameter evaluates for "bla {$ foo} bla" using cat modifier Does not work because you can not use i...

user interface - How to create android screen (activity) like the Google Play Store v4.9/5.0 (Parallax image+Fading in action bar) -

Image
I think the question I have asked clearly shows. Tried various solutions available on the internet but it is getting more confusing. Firstly I get fading effects in the action bar Tried to get it But the result was that, in the action bar the image view was kept on the activity screen as well, the image also started to change the display of the same qualities, the action bar is completely transparent Done, and the image still continues to display the property Any help will be very binding. Thank you You can put a look into the Google IO 2014 app, which is of this effect. Source code and info on Google Dev Blog: You can also use parlors like Library: Combine this with tutorials for evaporation in the ActionBar and you can go that's good. / P>

spring - Server side events with desktop client .i.e no browser (java) -

We need a "push notification" mechanism, in desktop clients written in Java and mobile clients such as Android, Ios and windowsphone8 I came across "server side events" which fits very well because we require unidirectional communication from the server to the customer, so for this scenario, the websites are overkill. We currently use voting as a fallback. Hey, but we are as much as to avoid this possible. As I think the server should have some kind of "Publish Subscription" module, but I'm not sure whether the "Spring Framework" provides any help here or if other frameworks Pipelining I have read about being a good candidate for publishing published membership module. However, what structure or component should be used to connect this publication subscription module to the Java desktop client, what help do I need? There is a bunch of technical / frameworks on html5 websites, socket.oos and so on, but they work only for the web, i.e...

image processing - Did I find a bug in MATLAB imfilter for single precision input? -

AI found strange non-deterministic behavior in my matlab code and I can reduce it to the following minimum code snippet: image = single (zero (16,14)); Grade = IM filter (image, [0 0 0; 0 0 0 0 0]); Tcn = norm (grad (:)); Fprintf ('Model:% F \ n', Double (TCN)); First of all I do a "clear all" , then I run the code snippet six times and get the following output Model: 1075709088948162000000000000000000.000000 Model: 0.0 Model: 0.0 Model: NA Model: 0.0 Model: 0.0 ... Then the right ouput continues forever. I can "restart" wrong behavior using "clear all" I tested it on MATLAB 2014b and 2013 at two different computers running Windows 7. The solo () artist seems to fix the problem, apart from changing the size of the input image, the problem can be solved with some values. However, am I missing something here, or is this a bug, which is a bug with the same implementation? I will answer my question because it proved to be a rea...

angularjs - sails.js and angular file upload -

I'm trying to create an app that takes a file and upload it to sails.js server. I have tried many ways but with any success, can anyone of you give me an example of uploading client and server side files? Thanks a lot. Check this blog: You can find other related content.

angularjs - What are the best practices of using ngInclude with ControllerAs syntax? -

I intend to use a template in many views with different controllers. But now I realize that I can not just write universal bindings in templates because the value is $ scope.concreteControllerName . Will be put in. Connectional Documents to Say This instruction creates new scope. I can use the ng-init instructions and pass controller example from the scope of the template: or better Type in the and then {{controller.boundvalue}} template. This is a working solution, I think. And here I would like to know if there are other better ways and if not, then what templates can always be used to remove originally with some ideas of the passed model? Use John Papa and you will see separate code in ng-included instructions. But the same sources use the HTML template. The normal vm variable name is used in the template. index.html & lt; Div ng-ng-controller = "controllerOne as vm" src = "'same.html" "& gt; ...

Get-acl repeating groups - Powershell -

I try to get a list of groups specified in a folder by using the PowerShell command on the remote server I am: get-acl '\\ testster \ test' | | % {$ _. Admission} | Foot IdentityReference -HideTableHeaders What happens there is a group that is repeated 3 times I checked the NTFS permissions and this group was allocated only once. Is there any help on this output below? : ( TestDiamin \ Test Group TestDiamond \ Test Group TestDomin \ Test Group Bultin \ Administrator Just to add, I upgraded to the folder and this group Security check is assigned once. If I take the feet off the order, then all the attributes look identical to repeated groups! I have a test folder where I have allowed a user and In the windows, if I look at the Security tab of the folder, then I list the user once. However, when I use Get-Acl on that particular I see the permission breaks. Yes, the user is listed several times, but FileSystemRights and AccessControlType are different.Yo...

svg - How can I add different images instead of text inside d3.js piechart slices -

Now I have only one and it is hard work instead of pulling it out of grape drops. I also need an image in the center of the circle. Please consider If all images Continuous width and height, you only add image URLs to your data array and dynamically set the xlink: href attribute using the data function. var piedata = [[label: "test", image: "http://placeimg.com/40/40/any", value: 50}, {label: "", Image: "http://placeimg.com/42/42/any", value: 50}, {label: "Jonathan", image: "http://placeimg.com/44/44/any", Value: 50}, {label: "Lorenzo", image: "http://placeimg.com / 46/46 / any", value: 50}, {label: "Hilary", image: "http: // placeimg. Com / 38/38 / any ", value: 50}] .... g.append (" g ") .attr (" transform ", function (d) {return" translation "(+ + arc.centroid (d) + ")";}) .append ("svg: image") .at...

kde - Dual monitor different resolution -

What is the correct way to configure a dual monitor environment with different screen resolutions? I have different font sizes in both screens and I do not have to configure different DPI per monitor or anything. Thanks in advance! The answer depends on your particular hardware. The DPI standard will not be directly configurable using the Kubuntu Display Configuration Tool, but if you try the worst resolution with the best DPI in the monitor then you can get close to the desired effect. You can also try to create and zoom the xorg.conf file, but you will not go much further than using the display tool.

javascript - Run jquery ajax with multi diemnstion array without form -

I am trying to scrape some element data from a page using jquery and save the database in php file I am sending what I am doing: I am creating a two-dimensional array and want to pass the data to the php file so that I can run a foreach load to save in the database : Error: Receiving Message Now: Syntax Error: In the Warning Box Unexpected token A is the warning (errorThrown); My jquery code is: function scraps () {var Info = new array (); $ ("Div.clip"). Each (function (index) = {}; info [index] ['name'] = $ (this) .find (".fn"). Text (); Info [index] ['rating' ] = $ (This) .find ("span.tinypush"). Text (); info [index] ['review'] = $ (this) .find ("p.description") .text ();}) ; Console.log (info); $ AZ ({type: "post", url: "save_scrap.php", data: {info: info}, datatype: "jason", preceded: function () {// something before sending the request to server} Error: Function (jqXHR, t...

xml - extract data from different database tables in spring batch -

I must remove the data from a particular database and put it in an XML file. > & Lt; Property name = "whereClause" value = "co_id in WHERE (select contact_all from contact_ where customer_id =: CUSTOMER_ID) and cs.dn_id = d.dn_id and cs.sncode = 1 and CS.MAIN_DIRNUM = 'X'" / Gt; & Lt; Property name = "sort key" value = "MSISDN" /> & Lt; / Bean & gt; & Lt; / Property & gt; & Lt; Property Name = "Parameter Valve" & gt; & Lt; Map & gt; & Lt; Entry key = "CUSTOMER_ID" value = "# {Job parameter ['CUSTOMER_ID']}" /> & Lt; / Map & gt; & Lt; / Property & gt; & Lt; Property Name = "Page Size" Value = "10" /> & Lt; Property name = "rowmapper" & gt; & Lt; Bean class = "com.ooredoo.model.inputDB.MSISDNRowMapper" /> & Lt; / Property & gt; & Lt; / Bean ...

ruby on rails - test if a method is called inside a controller action -

मेरे पास यह कोड कुछ नियंत्रक से बनाने है अगर @ company.save & amp; amp; ServiceCompany.create (service_id: params [: service_id], company_id: @ company.id) update_vendor_on_customer_io sign_in (: कंपनी, @ कॉम्पैनी) redirect_to edit_vendor_company_url (@ कंपनी। सीक्रेट) अन्य कार्य सौंपनेवाला: "नया", लेआउट: "सहायक" अंत मैं आरएसपीसी के साथ परीक्षण करना चाहता हूं यदि update_vendor_on_customer_io को कॉल किया जाता है। मैंने ऐसा कुछ करने की कोशिश की: उम्मीद (subject.create)। प्राप्त करने के लिए (: new_or_update_vendor) .with (param) लेकिन काम नहीं किया क्या यह संभव है परीक्षा?

java - NoRouteToHostException trying to connect to remote host via org.apache.commons.net.ftp.FTPClient in SFTP mode -

मैं org.apache.commons.net.ftp.FTPClient के साथ सुरक्षित FTP के माध्यम से एक फ़ाइल अपलोड करने का प्रयास कर रहा हूं लेकिन मुझे "Java.net.NoRouteToHostException: होस्ट करने के लिए कोई मार्ग नहीं" कनेक्ट करते समय मेजबान पिंगेबल है और मैं इसे फाइलज़िला एसएफटीपी कनेक्शन के माध्यम से अपने एफ़टीपी उपयोगकर्ता के साथ फाइलें पढ़ या लिख ​​सकता / सकती हूं। मेरे राउटर में कोई फ़ायरवॉल सक्रिय नहीं है मेरी चश्मा: टेंट 17 x 64, जावा 7, राउटर नेटगीयर डीजीएनडी 4000 (शायद यह सहायता) यह कोड है: पैकेज it.eproject.pdf; आयात करें java.io.File; आयात करें java.io.FileInputStream; आयात java.io.IOException; Import java.io.InputStream; आयात करें org.apache.commons.net.ftp.FTPClient; सार्वजनिक कक्षा परीक्षण {सार्वजनिक स्थिर शून्य मुख्य (स्ट्रिंग [] आर्ग्स) {System.out.println ("अपलोड फ़ाइल प्रारंभ करें"); स्ट्रिंग स्रोतफ़ाइल = "pdf / d00001.pdf"; स्ट्रिंग pdfName = "d00001.pdf"; स्ट्रिंग pdfDestFolder = "/ pdf"; स्ट्रिंग ftpHost = "itsa.pingable.hos...

java - Successful Oryx Install on Google Compute Engine? -

I'm trying to get Oryx up and running on Google Compute Engine. I created a new installation and installed Oryx to: git clone https://github.com/cloudera/oryx.git cd oryx mvn -DiskipTests install and saved this installation as an image on Google Compute Engine ("oryx-image"). Finding Issues with the Orics and Google File Systems () I am using hdfs: // as the default file system. Finding issues with the default Hadoop package on Google Compute Engine (e.g., any lenient libraries required for the default Oryx configuration), I have also tried Showcount 2.4 After making the 1Turbal with affectionate, these instructions have been followed: (Side note: is the JDK version described here is sufficient for the oracles?). I then used my saved image with Orex ("orix-image"): ./bdutil --bucket & lt; A few-bucket & gt; --image oryx-image -n $ number \ --env_var_files hadoop2_env.sh --default_fs hdfs and my saved hoodop turbul: # File: To dep...

sql - How to check every Nth entry in a mysql database? -

I am trying to find the first entry in my huge database where "FU" first began to appear, but this question too Slow: Choose from mytable minimum (ID) where '% foo%' data such as; I will be happy to count on millions of people, but this question does not seem to run any faster: choose the least Id) mytable where data like mod (id, 1000000) = 0 and '% foo%'; Any ideas how mysql needs to check only every million entries? The only thing I can think of is that there is a floating table with the first integer and to join it, multiplying each integer by 1000000. Added mod (id, 1000000) = 0 due to your The second query is most likely going to slow which gets every code . To move it fast, you should have an index on the data column. In addition, use the LIMIT you might like: Select min (id) from mytable where '% foo' Data ID range such as% '100000000 This will only search for the first 0 - 100000 rows. If you can not ...

sapui5 - Strange sap.m.TextArea behavior inside a sap.m.List -

मैं sap.m.TextArea नियंत्रण का उपयोग sap.m.List में कर रहा हूँ जहां प्रत्येक टेक्स्टएरिया के मान को मैप किए गए थे JSONModel। यहां xml-view code है: & lt; सूची आईडी = "अन्य पिक्लिकलिस्ट" बढ़ती = "सही" आइटम = "{पथ: 'newRequest & gt; / OtherPic'}" & gt; & LT; आइटम & gt; & Lt; कस्टम लिस्टआईटैम प्रकार = "निष्क्रिय" & gt; & Lt; छवि आईडी = "अन्य पिक" src = "{नया अनुरोध}" "चौड़ाई =" 90px "ऊंचाई =" 60px "/ & gt; & LT; VBox & gt; & Lt; TextArea मान = "{newRequest & gt; text}" / & gt; & Lt; / VBox & gt; & Lt; / CustomListItem & gt; & Lt; / आइटम & gt; & Lt; / सूची & gt; जब मैं sap.m.TextArea के अंदर टाइप करना शुरू करता हूं तो यह पहले अक्षर के बाद फ्रीज हो जाता है। अगर मैं नियंत्रण के बाहर और फिर से अंदर क्लिक करता हूँ तो मैं केवल एक और वर्ण का उपयोग कर सकता हूँ मुझे लगता है कि यह बग एक एसएपी.एम. के अ...

c# - ASP.Net Web API returns null instead of non-simple properties -

I have just begun trying to produce some test ASP .NET Web API app, and there is a problem: / P> I have the model: public class property {public entry ID (Received); Set; } [Foreign ("Assettype")] Public Insurance Assetize ID {Receipt; Set; } Public Access Type Asset {get; Set; }} Public class asset type {public entry id (get; set;} public string name {get} set;}} and try to get all records of DB public IEnumerable & lt; Asset & gt; GetAssets () {return db.Assets.AsEnumerable ();} I get some strange results (at least my For this, it is weird). Instead of expanding the setset - I get zero: gt0; AssetTypeId> 1 & lt; / AssetTypeId & gt; & Lt; id = 1 gt; AssetType i: zero = "true" /> I have checked my DB - pointing in to correct the property type in this, both the Assetipid and Assetep regions The only way to expand the field is by changing the following GetAssets: Public HTTPRPS Pacemus GetAssets () {Return Reque...

spring mvc - How do I add attributes to a root element when the class is generated by JAXB? -

I'm developing a REST API which uses Spring MVC Anseepeedeepi () object which Akssdis I consumption and production I am (using JAASB) is generated when everything comes to me in the requests, but I want to add additional properties to the outward requests on the original element. Right now, my outward response looks like this: And it should look like this: & lt ;? XML version = "1.0"? & Gt; & Lt; Transport: Send xmlns: transport = "http://www.ncpdp.org/schema/transport" xmlns: datatypes = "http://www.ncpdp.org/schema/datatypes" xmlns: script = "http: // www.ncpdp.org/schema/script "xmlns: structures =" http://www.ncpdp.org/schema/structures "xmlns: find structures =" http://www.ncpdp.org/schema/ find structures " xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" StructuresVersion = "v2014041" ECLVersion = "v2014041" DatatypesVersion = "v2014041" PA-S...

notepad++: Query regarding highlighting a word -

In Notepad ++ if I have a word good day and I double click on the best then I want the whole word I.e. good day), only good is chosen. After double click on the good part of the good day: - Good - Day After the double click on the good part of the good day : - Good day

cordova - Strange URL with Google Maps API Javascript v3 -

मेरा कॉर्डोबा एप्लिकेशन Google मानचित्र एपीआई जावास्क्रिप्ट का उपयोग करता है, & Lt; स्क्रिप्ट प्रकार = "टेक्स्ट / जावास्क्रिप्ट" src = "http://maps.google.com/maps/api/js?sensor=false" & gt; & lt; / स्क्रिप्ट & gt; जब भी पेज लोड हो जाता है, तो डिवाइस वेब ब्राउजर को एक बहुत अजीब यूआरएल के साथ स्वचालित रूप से लॉन्च किया जाता है: अगर मैं संस्करण पैरामीटर के साथ संदर्भ बदलता हूं, तो यह समस्या हल हो गई है। & lt; स्क्रिप्ट प्रकार = "टेक्स्ट / जावास्क्रिप्ट" src = "http://maps.google.com/maps/api/js?v=3.17&sensor=false" & gt; & lt; / स्क्रिप्ट & gt; मुझे लगता है कि यह Google के संस्करण 3.18 को 18 सितंबर को अपडेट किए जाने के बाद हुआ। कोई भी मेरे साथ पुष्टि कर सकता है कि यह Google मानचित्र एपीआई मुद्दा है या नहीं। अग्रिम धन्यवाद।

Python regex matches string it shouldn't -

I am completely lost how it matches this string in the regx dragon. Can anyone feel it? import re regex = "^ PHP / 5. \\ {3 | 2 \\}. \\ {1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 \\} \\ {1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 \\} $ "ua = 'Mozilla / 5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident / 5.0) 'Recompens'. Search starts with (UAE) rijax php , while the string does not exist. Should not a match be made unqualified by this happening? You need grouping (preferably non-capturing) Your Promotion: PHP / 5 \\ {(?: 3 | 2) \\} \\ {(?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 |) | \\} \\ {(?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | | 9 | 0) \\} $ ^ ^ ^ ^ ^ ^ Other intelligent you will change the entire expression: PHP / 5 or 2 or \ \}. \\ {1 or 2 or 3 or 4 or 5 Found! Think and nested conditions ( if (a and amp;) ).

post - PHP check if there is a file selected for upload -

I have this form and I would like to know if the user has chosen a file or not. & lt; Form action = "upload.php" method = "POST" encrypt = "multipart / form-data" & gt; & Lt; Select Name = "Category" & gt; & Lt; Option value = "cat 1" name = "cat 1" & gt; Product photos & lt; / Options & gt; & Lt; Option value = "cat 2" name = "cat 2" & gt; Portraitan & lt; / Options & gt; & Lt; Option value = "cat 3" name = "cat 3" & gt; Achattuur & lt; / Options & gt; & Lt; / Select & gt; & Lt; Input type = "file" name = "file_upload"> & Lt; Input type = "submit" name = "submit" value = "photo upload" & gt; & Lt; / Form & gt; I have written this PHP code to test it if (empty ($ _ POST) === incorrect) {$ fileupload = $ _POST [file_upload ']; If...

C# XNA: Custom drawing class isn't printing text though it has the location right -

So I'm trying to attract some text with C # and XNA. I have been properly loaded SprintFont , there is no bug in the code and there are no compile time warnings or errors. I will not get any error during execution. When I pull text from my main game class, it works fine. However, I have found a different category that I am trying to attract. I have created an example of this, which is named Constructor and the Draw () function, yet it still does not work. Here is the main game class (the relevant bits anyway): Protected Override Zero Draw (GameTime Game Time) {GraphicsDevice.Clear (Color.Turquoise); If (! StartScreen.hasRun) {// Works fine spriteBatch.Begin (); Spritebatch.DrawString (spaceAge, "Score 0", new vector 2 (50, 50), color. Black); SpriteBatch.End (); // start.screen.Draw (spritebatch) failed to attract; } And {} base.Draw (gametime); } Here is the startScreen example of the draw () function that references (differently created by StartScr...

c++ - Any difference between (T)value and T(value)? -

(T) मान और T (मान) के बीच कोई अंतर ? उदाहरण के लिए (float) 3.14 और फ्लोट (3.14) । जो तेज़ या बेहतर है? उनके पास एक ही प्रभाव और अर्थ है: आईएसओ / आईईसी 14882: 2011 5.2.3 स्पष्ट प्रकार रूपांतरण (कार्यात्मक संकेतन): एक सरल-प्रकार-विनिर्देशक (7.1.6.2) या टाइपनाम-स्पेसिफायर (14.6) उसके बाद एक कोष्ठक अभिव्यक्ति की सूची में अभिव्यक्ति की सूची के अनुसार निर्दिष्ट प्रकार के मूल्य का निर्माण होता है यदि अभिव्यक्ति की सूची एक एकल अभिव्यक्ति है, तो प्रकार रूपांतरण अभिव्यक्ति समकक्ष (परिभाषा में है, और अगर परिभाषित शब्द में) संबंधित कलाकार अभिव्यक्ति (5.4)। कास्ट-एक्सप्रेशन ।

java - Parsing XML returns nothing -

I am currently trying to parse some XML using XmlResourceParser and then using ArrayAdapter on a ListView Showing information. The problem is, I did not get the result of ant. My XML structure is like this: & lt; Resources & gt; & Lt; Categories & gt; & Lt; Animals & gt; & Lt; Words & gt; & Lt; English & gt; Animals & lt; / English & gt; & Lt; French & gt; Animals & lt; / French & gt; & Lt; Spanish & gt; Animals & lt; / Spanish & gt; & Lt; Portuguese & gt; Animals & lt; / Portuguese & gt; & Lt; / Words & gt; & Lt; / Animal & gt; & Lt; Transportation & gt; & Lt; / Transportation & gt; & Lt; Location & gt; & Lt; / Location & gt; & Lt; Clothes & gt; & Lt; / Clothes & gt; & Lt; Color & gt; & Lt; / Color & gt; & Lt; People & gt; & Lt; / People & gt; & Lt; Work & gt; & Lt; / Work ...

Can I run two same devices separately on Arduino on I2C? -

My problem is: I have Arduino mega and two 16x2 LCD display with I2C converter on each and I want to show two different texts. On them. Is this possible and if so, how to do it? An I2C module uses several devices on the same line to separate the hardware address . Usually your module will have a way to change or a random coded address. If it is the former, then the documentation is your friend. If this is the latter then use the I2C address scanner: find out more. If you need further information then what should I do, what kind of modules are you using, so that we have a data sheet simultaneously?

python - How do I move a specific part of a string to a new string -

For example, suppose I'm using the following string key = "XPMGTDHLYONZBWEARKJUFSCIQV" Example = "test" newKey = "" And I want to get a random section of that string and I know the length. Then length = lan (example) rand = random.rendant (0, lane (key) - length) I believe this The code length is less than the random number key from a 0. It should be insured that I always have enough letters, the part I'm stuck on is that how do I use them to take a specific part of the starting point, rand and end point, length, and key. For example, suppose that rand = 2 and length = 4 . Then there should be newKey , newKey = "MGTD" . Which string command can I use to get this result? You can simply slice the key: newKey = key [Rand: rand + length] demo: & gt; & Gt; & Gt; Length, rand = 4, 2> and gt; & Gt; Key = "XPMGTDHLYONZBWEARKJUFSCIQV"> gt; & Gt; & Gt; Key [rand: rand + le...

oracle - Get Connection String from datasource to customcode -

In the SSRS report, is there any way to get the custom code dynamically to get a connection string from the Reporting Services datasource? Any help would be appreciated. Thanks constring SDS.DEF. Nodes ('/ DataSourceDefinition') Maybe it can help

python - Scapy: TypeError when adding new protocol/ layer -

I am trying to create a new layer / protocol in the scp. I see this error when I'm trying to send / show it. I have added breakpoints to see what is happening but somehow the interior is being converted into a string tube. I'm not sure what I'm missing. Can anyone help me in this problem nail? & gt; & Gt; & Gt; P1 = PCEOPOPEN ()> gt; & Gt; & Gt; P1.show2 ()> /usr/local/lib64/python2.6/site-packages/scapy/fields.py (71) Adfield () - & gt; Returns s + struct.pack (self.fmt, self.i2m (pkt, val)) (PDB) Val 1 (PDB) P '' (PDB) C & gt; /usr/local/lib64/python2.6/site-packages/scapy/fields.py (71) Adfield () - & gt; Returns s + struct.pack (self.fmt, self.i2m (pkt, val)) (pdb) ps '\ x01 \ x10' (pdb) val 4 (pdb) ps '\ x01 \ x10' (pdb) c & Gt; /usr/local/lib64/python2.6/site-packages/scapy/fields.py (71) Adfield () - & gt; Returns s + struct.pack (self.fmt, self.i2m (pkt, val)) (PDB) Val 10 (PDB) ps ('...

sql - Convert the multiple rows Select statement result into a single row string result -

I have the following SQL query: I want the results to be combined with a , And I want to do this as a single query. select LOCATION_CODE from LOCATION where ZIPCODE = '555555'; Location table location_id | Location_code | Zipcode -------------------------------------------- 1 | ASDFSFD | 555555 2 OUIXVCX | 555555 3 2 KLJSDF | 555555 14 | 887 CCD | 555555 The results below require ... ASDFSFD, OUIXVCX, 2KLJSDF, 887CSD

PHP curl send public key -

I am trying to connect to an API and I am told that to match the public key, Need to send a public key I sent them via email. I am setting up the public key by using: curl_setopt ($ c, CURLOPT_SSLCERT, [path file]); I am getting this error: Unable to set a private key file: [path of file] Type PEM Am I missing something? I know that key-based encryption generally requires a personal and public key, but they wanted to send me a public key especially via email and especially wanted to send me a public key through code . It turns out that I also need CURLOPT_SSLKEY which is a private key, apparently to both CRL Required, but only send the public key?

algorithm - Why is insertion sort not dynamic programming -

A dynamic programming problem has the optimal infrastructure and can be described by a recursive connection. A sorted list combines an element in the previously sorted list, so the optimal basis in the entry sort can be described as a recurrence relationship Sorted_List_n = Sorted_list_n_ 1 + Next element So why is not a dynamic programming algorithm sorted in the entry? I understand how this applies to fibonacci numbers and how to edit the distance, but in fact it is not. A 1) Extra problems (OSP) 2) Optimal sub-structure (OSS) Although the merge sort is the property of the optimal sub-structure, but sub-problems in it, the property is not overlapping. A slightly detailed explanation is as under. Fibonacci number calculation case, we are clearly attaining the above two properties osp: Phib (5) in the form of phab (3) in the calculation It has its subproblem at the same time, Fib (4) has its subproblem as Fib (3) in calculation but Fib (5) = Fib (4) + Fib (...