Posts

Showing posts from July, 2014

ios - A container view and scroll view present an representation which is offset -

Image
I have a UIScrollView app that contains all UI elements containing a container that is prepared on a UIScrollView UIImage and some UILabels prepared on it. One of the elements in an embedded UIViewController is I, however, are having a problem with the presentation in the Container UIScrollView as UIImage, which is considered to fill the whole scrolling material, but once the top is offset it is upset, But it also throws my calculation of points (the image should fill the full rounder border. I set the size of the container view (using constrains) to the UIViewController ViewDi Set in dLoad (and results, box, expected): [Self FloorplancontainerwidthConstraint] .constant = [self view] .frame.size.width - self.marginWidthConstraint.constant * 2; If ([delegate isiPad]) {[self-floor portal-controller-right consultant] .centent = 300;} [_floorPlanContainer layoutIfNeeded]; Then in the Container's UIViewController, on ViewWillDisplay, I have the UIImageView dimensions Upda...

AppleScript: Create new file using custom New Text File dialog? -

Image
I have just created a script, which I can now create a blank, untitled file in the focused window in the focused window. Allow to change the name of the file quickly I want to use the new text file dialog, but without the file format and encoding Whether to create this dialog box on its own? Any way Here's how I will create a new file in the current location: You can try something ... Set user display dialog "Enter a name ..." Default answer "Response" button {"Cancel", "OK"} Default button "OK") Show the application "Finder" if the Finder window exists Create a new file then 1 (Target Target Finder Finish {name: userResonse} with the win properties and then end {name: userResonse} with the new file (Path to Desktop) properties, if you specify the end

Convert PDF file to one JPG or PNG image on centOS -

I have to convert a pdf file into a PNG file. I have tried, convert-thumbnail 400x300 test.pdf test.png This will convert the PDF file to PNG, but if in the PDF file Multiple image files are created after multiple pages, I want to convert the whole document to an image file.

php - AngularJS - Dropdown Select Values are not in Order with ng-repeat -

I have a select drop down with the following data; (This is also the output of the console in Chrome). {8: "something", 9: "something again!", 10: "and then", 11: "and then!", 12: "etc ..." 13: "etc etc ...",} HTML and angle for selection drop down; & lt; Select name = "name" ng-model = "selected" & gt; & Lt; Option value = "" & gt; Please select & lt; / Select & gt; & Lt; Option ng-repeat = "data (key, value)" value = "[[key]]" & gt; [[Price]] The following list is obtained from the list of functions within Laravel (4.2); Model :: lists ('name', 'id'); For any reason the data is changed again in my drop down; & lt; Name name name = "name" ng-model = "selected" & gt; & Lt; Option value = "" & gt; Please select & lt; / Select & gt; & Lt; Option value...

Android WebView: shouldOverrideUrlLoading called when svg or webm are in object tag in HTML -

I am testing a strange webview behavior in my Android app: When an HTML file In which & lt; Object & gt; Elements pointing to SVG and WebM files are loaded, webview calls should be override url loading and I think the old URL (getUrl ()) is the current file , The new URL is Svg / webm content file (for each event) It is not that the content is a MP4 or an image Object elements are in HTML, when the content is " To jump ", Webvwe are requested to know how to Avoid? What are the other elements, like For example, which can cause problems like this? It is necessary to capture the body weight and only after removing this phenomenon some variables Is set correctly; While the variable is wrong IOverrideUrl loading will be returned immediately after the call. To achieve this, the Javascript interface is set to WebWevo with the appropriate method, and the method is called the change by progress with progress when the body ONLOGE event set in HTML ...

SQL Server 2012 row_number ASC DESC performance -

Image
I have a query like this in SQL Server 2012 version 11.0.5058 , o.Oid, StopAzioni selected tmpTestPerf TOP 30 ROW_NUMBER () (by SequentialNumber ASC order) as [ROW_NUMBER] Where the inner more o StopAzioni = 0 O.Stato = s.Oid Join the composite when I use the command by SequentialNumber ASC this 400 ms when I use the command by DESC In ROW_NUMBER function it takes only 2 MS (This is a fairy In Shn environment, output is 7000, 7 seconds vs. 15 ms!) Analysis of the execution plan, I found it is the same for both questions interesting difference is that slow all rows works with Statajiani = 0 condition, 117k rows in fast it uses only 53 lines tmpTestPerf The primary key on the query and the sequential number is the ASC key indexed on the column Land. How can it be explained? Regards. Daniel This is a script of their index tmpTestPerfQuery and the combined query create a table [dbo]. [TmpTestPerf] ([OID] [uniqueidentifier] NOT NULL, [SequentialNumber] ...

assembly - What Linux does when I make write system call? -

I'm a newbie for Linux, for assembly programming (GAS) and English. So, sorry if I write something wrong. I hope Google Translate will help me not write all this bad. I want to know how to write a set of numbers, in the section .data , any libraries (like printf) ) without a function called text file and such assembler-only prospects. I do not want a ready-made solution. I want to know what the Linux kernel does in writing. how it works? How was it designed? I am trying to print the list of numbers STDOUT, but I get a strange mark in my terminal. I thought this happens because I do not understand how to work with call system call is right. What this is for me now .section Data list:. Long time 12, 31, 42 .section .text .globl _start _start: $ 4,% eax movl $ 1,% EBX movl $ list, movl% ECX movl $ 12,% EDX integer $ 0x80 movl $ 1,% eax Movl $ 0,% EBX integer $ 0x80 This code works for .ascii "World Hello \ 0" , but not a list of numbers is. First of a...

extjs5 - ExtJS custom theme: Generating darker icons for panel. -

I need to create a custom theme in my project. The base color of components is very light (almost white). The icons appearing at the top of the issue panel / windows (around, max) are almost invisible. What are the saas variables that I need to announce that the images used for these panels and windows are dark (as opposed to white)? And in which scasset file do I have to include them? You will need to change these images exjs 5 you can get them here: Your project folder / ANST / package / your theme / resource / images / tools / There you have two files, tools- sprites.png and tools- sprites-dark.png You can change if you are using standard theme or you can save new image in your custom theme folders path. Note that for this to work properly with all Browsers, you have to rebuild your subject using the sencha command.

javascript - How to invoke general function of angular factory from karma test script file? -

I need to write one of my corner factories in my tenure, for which I have typed that factory in my tenure File like this First of all (injection (function (injected fabric) {injectedfinor.getuserdata ();})); and injectextactor with this method var InjectedFichermic module = angular Module ('injectfinic module'); Injected Factor module.Fattery ('Injectable', [], function () {function getUserData () {user user object;}}); But this code entry does not apply to the getUserData () method how to solve it?

javascript - Meteor: Render template inside a template -

I have a list of names on the 'postlist' template. It is the user name of the person who created the post. I have created a href link so that when a user clicks on a name, they are able to see a new template 'viewupost' / view the full post document. However, I would prefer to provide the 'Viewupstate' template, where I have put {{> produce}} inside the 'Postlist' template. How can I configure LayerMelt because I already have a job for the second part of the app. Of course, this post document should be clearly changed according to the name of the user name. See examples of meteorite Todos, depending on whether you click on 'Incorporated' or 'Signin', relevant templates are sung. So far, everything that is: postlist.html (showing the list of 'full name' fields in the post documents). & lt; Template name = "Postlist" & gt; & Lt; Div class = "container" & gt; & Lt; Div class...

BigCommerce - how to add an extra column in the category page layout? -

I am new to this, so I hope that my question is relevant and useful to others. I have a big tanning store and I have removed the side category display panel from category category (I did not want a side category) but now I have only been left with 4 column products. Page 5 Column wide Any kind of person can tell me how to add an extra column of products so that the width of the page is completed again, or how to change the image size, so that 4 column Tpad images before 4+ fill the space occupied by Saidsiget? To change the layout of your category page, you should type category.html . According to your requirement, you must delete the code below from category.html (Any changes to this file will be displayed in all your category pages) & lt ; Div square = "left flap" & gt; %% SNIPPET_SubCategories %% %% Panel. Side CharacterShopPrice %% & lt; / Div & gt; I am asking to delete the entire column column because you want full page layout but yo...

windows - How to create a Python wrapper for a DLL library -

I am trying to take a rendered DLL file from a software SDK and trying to create a python wrapper In order to integrate it with the rest of my code base I have followed a lot of guides online, and there is still no luck. I have the current Python code: import from ctypes.wintypes from ctypes imported HWND import OS class OptistarDLL (object ): Dll_path = 'OSDS142MRT.dll' with open (dll_path) as thefile: passed _dll = WinDLL (dll_path) init_library = _dll ['OSDS142M_Initialize'] init_library. Restype = c_int init_library.argtypes = (c_int, c_bool, hwnd, c_bool, c_int) Category OpticstarControl (object): def __init __ (self): An = OptistarDLL.init_library (c_int (0), c_bool (false), HWND (0 ), C_bull (wrong), CIIT (0)) if mistake! = 0: Extend exceptions ("doom") The SDK I am using provides the header for documentation functions: DLLDIR integer OSDS142M_Initialize (integer iModel, bool bOutVid, HWND hwOutVid, bool bStarView, IRT int); More exampl...

java - What happens if the length attribute is not specified on the @Column annontation for a String -

What if I do not specify length attribute for the following comment? Notice that the field is string. @column (name = "region", nullable = false) public string getRegion () {return region; } If you do not specify the length attribute Hibernate takes the default length which is 255 if the type of attribute is string . Check it out

encryption - Arranging Vigenere Cipher into columns -

I understand as if you find a Vigenere cipher in the columns you can use index of coincidence to locate the key length for. I am struggling to write an algorithm that will take a piece of text and this arrangement in the column For example - 1 2 3 4 5 6 7 8 9 10 The return will be if this period is 2 - 1,3,5,7,9 2,4,6,8,10 And test the IOC on each of these strings IF duration is 3 - 1,4,7,10 2,5,8 3,6 9 and each of these strings Test IoC etc. I have been building an IOC test 'but I am struggling to think of an algorithm to split the text into collumns, how much more sounds like a computer scientist and this way? If you already know the key length, then it is very insignificant is. If you do not know the key length, then you have to guess it by entropy, here is an example in Python, for example: If you_dont_know_key_length: key_length = find_key_length_by_entropy (cipher) columns = [cipher [I: key_length] for xrange (key_length)] Any language should be or...

angularjs - How to mock service in angularAMD with karma/jasmine? -

I have a project using AngularAMD / RequireJS / Karma / Jasmin, I have basic configuration to do all the work, I have: I have: I have: Services / MyService.js defined ([ 'App'], function (app) {app.factory ('myService', ['$ document', function ($ document) {function add (html)) {$ Document.find ('body'). Attachments (html );} Return {add: add};}]);}); // Define the test (['angularAMD', 'angular mocks', 'application', 'services / MyService'], function (aamd, joke, not app) {Description ('MyService' function () {var myBodyMock = {Enclosed: function () {}}; myDocumentMock = {looks: function (sEL) {// it is never called console.log ('selector:' + sel); return myBodyMock;}}; SVC; beforeEach (function () {// ({$ provide.value ('$ document', myDocumentMock) function ($ rendered);}); NG-standard way to ridicule a service through fake mocks.module Try // Rescue my bets - incomplete The attempt to h...

Initializing a static variable in VBA with non-default value -

VBA में स्थिर चर पर्याप्त सरल हैं: सार्वजनिक उप foo () स्टेटिक मैं के रूप में पूर्णांक i = i + 1 डीबग। प्रिंट I end उप आउटपुट (जब कई बार कहा जाता है): 1 2 3 ... समस्या यह है कि, VBA घोषणा के रूप में एक पंक्ति पर एक चर को प्रारंभ करने का समर्थन नहीं करता है ( : का उपयोग करके एक पंक्ति दो पंक्तियां रखने की गणना नहीं कर रहा है): सार्वजनिक उप foo () Dim I जैसा पूर्णांक = 5 'संकलित नहीं होगा! डीएम जे एस इंटीजर जे = 5 'हमें इसके बजाय एंड सब स्थिर चर के साथ यह संघर्ष करना है: सार्वजनिक उप foo () स्टेटिक i पूर्णांक के रूप में 'हम यहां एक प्रारंभिक मूल्य नहीं डाल सकते हैं ... I = 5' तो यह है कि हम आम तौर पर इसे आरंभ करते हैं, लेकिन ... i = i + 1 डीबग। प्रिंट I end sub आप संभवतया देख सकते हैं कि क्या होता है - सबसे पहले चीज हर बार foo को बुलाया जाता है, इसे वापस 5 पर सेट किया जाता है। आउटपुट: 6 6 6 ... आप अपने डिफ़ॉल्ट के अलावा किसी अन्य मान के लिए VBA में स्थिर वैरिएबल कैसे आरंभ कर सकते हैं? या यह सिर्फ वीबीए गेंद छोड़ने वाला है? ऐसा करन...

xslt - XSL doesn't transform an array given as parameter -

There is a template "print retractable" file to change the array given in the parameters of my converter object in my XSL & lt ;? XML version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Xsl: stylesheet xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns: xsl = "http://www.w3.org/1999/XSL/Transform" Excluded-Results -prefixes = "This xls" version = "1.0" & gt; & Lt; Xsl: output indent = "yes" /> & Lt; Xsl: Ultimate Name = "Destination Recovery" /> & Lt; Xsl: Template Name = "Print Documentation" & gt; & Lt; Xsl: Ultimate Name = "Array" /> & Lt; Xsl: if test = "$ array" & gt; & Lt; Xsl: each selection = "$ array / item" & gt; & Lt; Ban & gt; & Lt; Xsl: Select value = "@ value" /> & Lt; / Ban & gt; & Lt; / XSL: for-each & gt; & Lt; / XSL: If ...

regular expression matching 4 letter word -

I am correcting with most regular expressions, although I do not have a regular expression to match the 4-letter word In the middle of a line, I have torn through my notes for 2 days and I can not find it either, I slept at that point or it was not accidentally covered. Any help would be appreciated.

java - Set width of HTML td the same as image in td has -

This question is probably not right here, but maybe you can save me a few hours by doing some work. Can it be done by Jessup? Or I should repeat it through the whole HTML document: Start the code and get a tag ending, and then get the width of the image between the tag TD ? Looks a bit complicated. Try using the following CSS: td img {Display: block;}

Debugging QT app in WinDbg -

I have developed a QT application using Qt Creator. The program sometimes crashes on Windows 7 and XP. This happened last time, I used Task Manager to create a dump file. I tried to use WinDbg, but got loads of errors about it, which is not able to find 'symbol' files for Qt: *** Error: symbol File not found. Error for exporting symbols for QtWebKit4.dll - *** Error: Icon file was not found. Fix for exporting symbol for QtCore4.dll - *** Error: Icon file not found. Error in exporting symbols for QtGui4.dll - *** Error: Module load complete but symbols can not be loaded for MyApp1.1b.exe *** Alert: Icons: mswsock.dll for symbol timestamp * ** Warning Incorrect 0x522be0b3 0x522bdb3e Timestamp is incorrect 0x4a5be0b0 0x4ce7ba42 for winmm.dll *** Warning: Incorrect 0x4a5be093 0x4a5bdb3c for symbols timestamp uxtheme.dll *** Alert: Symbols timestamp is incorrect 0x53b9ff75 0x53b9f968 for AudioSes.dll Do anyone know How to use an API WinDbg a QT app in the App or similar to...

How far can multidimensional arrays go in PHP? -

I know that it is possible to have an array within an array like this. Array01 ([0] => Array ([0] => 40292633 [1] => 412) [1] = & gt; Array ([0] = & Gt; 41785603 [1] => 382) [2] = Array ([0] => 48792980 [1] => 373) [3] => Array ([0] = > 44741143 [1] => 329)) Can you create an array in an array like this in an array? Array01 ([0] = & gt; array ([0] => array ([0] = 402262633 [1] = 1] 412) [1] = & Gt; Array ([0] => 41785603 [1] => 382)) [1] ([0] => 41785603 [1] => 382) [2] = & gt; Array ([0] => 48792980 [1] => 373) [3] = & gt; Hey ([0] => 44741143 [1] = & gt; 329 )) I'm curious about how far it can go, how many arrays can you have? OK, let's maximize calculate what are our maximum possible needs? We need to know how much storage / need to be stored in PHP. We have to know what kind of memory we can use (best Case scenario) Split the amount of memory from the amount of memory r...

javascript - how to update google map center when user scrolls -

After text "itemprop =" text "> I enabled the following code to be used to put a marker in the center of Google Map and clicking on the marker show one Has been infowindow about the center coordinates. But when I scroll the map and then click on the marker, it shows the same coordinates. How to update that when I pan zoom / scroll / map it will show the updated center? Please help initialize the function () {var mapOptions = {zoom:. 14, center: new google.maps.LatLng (52.54, 98783, 13.425209099999961), mapTypeId: google.maps.MapTypeId.ROADMAP}; Map = new google.maps.Map (document.getElementById ('map_canvas'), map options); $ ('& Lt; div / & gt;') .. AddClass ('centerMarker') appendTo (map.getDiv ()) // (function () {var onclick .click to do something that = $ (this); if (! That.data ('win')) {that. Data ('win', new google.maps.InfoWindow ({content: myGeoCode (map.getCenter ())}). That.data ('win') bindTo ...

java - Refresh JComboBox with SwingX AutoCompleteDecorator -

Image
I am using SwingX AutoCompleteDecorator on a JComboBox. Everything works fine, I want to allow my user to change the name of my object, the name also appears in the combo box. The problem is that I can refresh myself, but as shown in the picture remains the string displayed by the autocomplete decorator: The code looks like this to refresh the combobox: try {Aannemer a = getNewAannemer (); MainController.getInstance () updateAannemer (a). AannemerBox.revalidate (); AannemerBox.repaint (); } Hold (Exception Pre) {//}} String Update When I search with Object ComboBox again I also use a personal renderer and editor for Cambodia. Tried Any ideas how can I refresh the string shown as shown? After the With the current code, it is difficult to say what is going wrong. The following code works fine for me import org.jdesktop.swingx.autocomplete.AutoCompleteDecorator; Import javax.swing.DefaultComboBoxModel; Import javax.swing.JButton; Import javax.swing.JComboBox; Import ja...

java - Jersey UniformInterfaceException when doing a POST with docker-client -

When trying to post a rental service through a dock-client in my personal Docker Registry, I get the error The deceptive thing about it is that the input stream changes as you can see here. It's made in the background of jerseys but I'm not getting the reason for this. I think the problem is anywhere within jersey logic method public static service initService (string image id) {last com .spotify.docker .client.DockerClient Docker = New DefaultDockerClient ("http: //10.######.143: 2375"); String s = null; Try {s = ("10. ###. ### 143: 5000 / user / iptest and tag = latest"); Docker.pull (s); Println (docker.toString ()); } Hold (DockerException | blocking exception e) {// TODO self-generated blocking block e.printStackTrace (); } Exceptions com.spotify.docker.client.DockerRequestException: Request Error: Post http: // 10 # ## ### 143: ..? 2375 / v1.12 / images / making fromImage = 10 ### ### 143% 3A5000% 2Fuser% 2Fipatest% 26tag% 3Dlatest: ...

awk - bash - check for word in specific column, check value in other column of this line, cut and paste the line to new text file -

My text files contain ~ 20k lines and look like this: file_A: Atom 624 SC1 SER 288 54,730 23,870 56,950 1,00,0,00 Atom 3199 NC3 Pop 487 50,780 27,750 27,500 1,00 3,18 Atom 3910 C2B Pop 541 96,340 99,070 39,500 1,00 7, 00 Atom 4125 W PW 559 55,550 64,300 16,880 1,00,00 Now I need to check POP in column 4 (row 2 and 3) and check Is the value of the previous column (10) greater than a specific threshold (i.e. 5.00) These lines - in this case only 3 lines - need to be removed from file_a and copied to a new file. Meaning: file_A: Atom 624 SC1 SER 288 54.730 23.870 56.950 1.00 0.00 Atom 3199 NC3 Pop 487 50.780 27.750 27.500 1.00 3.18 Atom 4125 W PW 559 55.550 64.300 16.880 1.00 0.00 file_B: Atom 3910 C2B pop 541 96.340 99.070 39.500 1.00 7.00 I am not sure whether I am in the weather to use Cal, GRP or AVC or some couple: / By now I can simply delete lines and make a new file without these lines I ... awk '! / POP / 'file_A & gt; File_B ...

python - How do I extend a list from a parent class? -

I have the following code: Parents have a list of items in the class, which children have to add. For every example of parents this list should be, and every child needs that list + additional values. class generator (object): a_list = ['parent_item1', 'parent_item2',] def print_list (self): print (self.a_list) class child1 (parent): def __init __ ( Self, * args, ** kwargs): super (child1, self) .__ init __ (* args, ** kwargs) self.a_list + = ['child1_item'] Category Child2 (parent): def __init __ (self, * Args, ** kwargs): super (child2, self) .__ init__ (* args, ** kwargs) self.a_list + = ['child2_item'] parent = child (child1 = child1) child2 = child2 () Parent.print_list () # & gt; & Gt; ['Parent_itum 1', 'Parent_time 2', 'child1_item', 'child2_item'] child 1.print_list () # & gt; & Gt; ['Parent_itm1', 'Parent_itum2', 'Child1_item', 'Child2_item'] Child 2.print_l...

c# - View with multiple tables -

I have two tables in my database that are similar data but not the same. I like finding the tables in the same view to search in the Internet is the most recommended way to use a Vuododal class. So ... this is my class array: iCareIndoorAlert.cs Created a ViewModel folder with an iCareAlertViewModel.cs class: Public listing & lt; ICareIndoorAlert & gt; {Get; ICareIndoorAlert; Set; } Public listing & lt; ICareOutdoorAlert & gt; {Receive ICareOutdoorAlert; Set; } and added those rows to iCareEntities.cs: Public DbSet & lt; ICareIndoorAlert & gt; {Receive ICareIndoorAletters; Set; } Public DBSet & lt; ICareOutdoorAlert & gt; {Receive ICareOutdoorAletters; Set; } Public DbSet & lt; ICareAlertViewModel & gt; {Receive ICareAlertsViewModels; Set; } After I created iCareAlertController.cs and saw the index.cshtml but I get the "key not found" error, then in ViewModel I added a dummy variable with the [key] attribute And...

arrays - AS3 Refference memory length/size -

I was wondering how much memory is in possession of a single reference for any object in the ActionScript? If I have an example of some object and want to process them on a specific sequence, then I make them indents in the first array with an array or vector of uint Give it I can count on how much memory it will take to allocate this specific code to uint , but it is not known how to create another array as a set of references. How much will it take for it. I need to specify that the type of every reference object is needed so it will probably be more than 32bits. I think that number objects also need reference at some point but if I make vector it is going to be constant data in memory and only about what type of members in this vector Will the information be in and how can the processing capacity be affected? Maybe a simple code w would be better what I would say. On mo, thou, we, th, bit, fr, su: object, basically my question which is more in terms of memory usage...

asp.net mvc 4 - Deployment Issue: (MVC4 HotTowel SPA) -

I have developed a web application using VS2012 MVC 4 (Hot Towel SPA). If I run it through Visual Studio then it works fine. But when I put it on the IIS server, I'm getting an exception. My server is server server 2008 R2 and IIS version 7.5. All dependencies are installed. Due to code section error: On index.cshtml page if if (session ["user"] == faucet) Load Load Login (Login.cshtml) Load the Home View if the session is not zero. Everything is working fine while walking through the visual studio. If I remove the check of the session then the home page is loaded successfully. But I have to check the session before going home. But I get the following exception: Object references are not set for an example of an object. Description: An uncontrolled exception occurred during the execution of the current Web request. Please review the stack trace for more information about the error and where the code originated from it. Exception Description: System.NullRe...

angularjs - How to wrap route's business logic to forward to other routes? -

I have a UI router path front my intention is That when the app goes to front , it will use some business logic to redirect to another route: front.register , front.login , Front.loginFirsttime , etc. This is the first time I go to the route (front -> front.register), but not for the second time. front - (auto)> front.register - (click) -> front.info - (click ) -> front -! -> front.register then the controller is not reloaded at all (). Okay, but how do I do this? Angular Module ('wmw'). Controller ('front', ['$ radius', 'global', 'user', '$ state', function ($ radius, global, user, $ state) {$ scope.Global = Global; $ scope.User = User; console.log ('only play first'); User.loadData (). Then (function (routerstate) {$ state.go ('front.' + RouterState);});}]); User.loadData () prompts a promise when the data has been loaded (then runs). RouterState is the next place to vis...

Intellij sbt plugin with project definition in project/Build.scala -

Image
मैं निम्नलिखित में sbt परियोजना संरचना का उपयोग कर रहा हूं Intelli-j 13.1 । ├── build.sbt ├── प्रोजेक्ट │ ├── Build.scala │ ├── plugins.sbt ├── src │ ├── मुख्य │ └── परीक्षण └── लक्ष्य मेरा built.sbt बहुत सरल है, मैं सिर्फ कुछ निर्भरता घोषित करता हूं। मेरा project / Build.scala थोड़ा और अधिक जटिल है, यह एक नई परियोजना को परिभाषित करता है: आलसी वैल रिएपेटेकेनल = प्रोजेक्ट (आईडी = "रीपेटे-कर्नेल", बेस = फाइल ("।"), सेटिंग्स = डिफ़ॉल्ट सेटिंग्स) इंटेलिज करता है ऐसा लगता नहीं लगता है यह परियोजना सेटिंग्स में दो अतिरिक्त मॉड्यूल सेटअप करता है, जैसे: और जब मैं अपनी प्रोजेक्ट को संकलित करने की कोशिश करता हूं, तो मुझे निम्न त्रुटि मिलती है: त्रुटि: स्केलैक: आउटपुट पथ / होम / सिमौओ / कोड / राइपेटे / प्रोजेक्ट / लक्ष्य / विचार-परीक्षण-वर्गों के बीच साझा किया जाता है: मॉड्यूल 'रीपेटे-बिल्ड' टेस्ट, मॉड्यूल 'राइपेटे-कर्नल-बिल्ड' टेस्ट आउटपुट पथ / होम / सिमौओ / कोड / रीपेटे / प्रोजेक्ट / लक्ष्य / आयडें-क्लास के बीच साझा किया जाता है: म...

c# - 2D rectangle should stop moving when colliding -

I have made two rectangles, you can go ahead and jump with one of them, and the other one Still standing on the form As an obstacle, I want the obstacle to work as an obstacle (or if you do the wall), basically I want to run the rectangle when on the left side of the barrier on the right ( And so forth). How do I find this code No detects conflicts (because it is not easy to detect conflicts) between two rectangles in an article: outside byte = write 1 Down & lt; Recta2 Outside hat = out 1 Tap & gt; Recta2 Outside the outside = rectangle Lift & gt; Rect 2 Right outright = rectangle Fine and lieutenant; Rect2.Left // or do not return (Rect1.Bottom Rect2.Bottom) or (Rect1.Left> Rect2.Right) or (Rect1.Right & Lt; rect2 left)) But I'm not sure how to implement it. I have a bowl called "player1.left" which is correct when I press 'A' on the keyboard Press (to move 'D' to the right, and 'W' to jump), on which the rectang...

pentaho - Simulating For inside For in SQL -

I am using HTT Vortica 7 as a data warehouse dB I have to update two tables at the same time. foreach (line r in table_1) {foreach (line r2 in table 2) {if (r.key1 == r2.key1 & amp; r.key2 == r2 .key2and ; R.soldQuantity & gt; r2.quantity) {updateRowInT1 (); // R. Partner = R2. Partner; UpdateRowInT2 (); //r2.Quantity = r2.Quantity - r.soldQuantity; break; }}} This part of the code best describes what I should do. Is there a way in SQL to do this (with user-defined work) due to changes in the second table, can not I use the update and be included in it or can I? In addition, this is part of the process of ETL by Pattah Kettle, maybe this is the way to do this tool. Thanks Edit: I have changed the code above. What do I need to achieve? Regular sales by partner. What's wrong now? When some SKUs are sold in a retail shop, then I can see the final partner of SKU. But, the company I work for is buying a single SKU from more partners. The gradually...

visual c++ - Make MFC form active -

I have an application disabled. I need to activate it on timer event Why do I need to call? This-> SetActiveWindows () does not help. Try set window pauses (hwd, hwtipopost, 0 , 0,0,0,0,0, SWPISHOVONDO); It should work on all windows.

go - Querying mongodb from golang using the _id stored in an array -

So here's my question I have an array that stores the _id of mongodbs objects What is the correct way to retrieve all these in a query using the MGO and BSN package? So if the array is such: id: = ["543d171c5b2c12420dd016", "543d171c5b2dd016"] How do we query? I tried to do this but I have a wrong address. query: = bson.m {"_ id": bson.m {"$ in": ids}} c.Find (query) All () Thanks in advance If the documents are stored With string id, the code looks correct. ID hex looks like encoded object ID if object identifiers are object IDs, then you need to convert hex strings to object ID: i i = class IDs {AIDS [i] = BSN . Object IDHX (ID [I])} query: = BSONM. {"_ ID": BSONM M {"$ in": ODS}}

Can't rename folder (PHP + Linux) -

I have a weird problem: I will create subfolders in the Linux TMP folder with the help of PHP mkdir (sys_get_temp_dir (). DIRECTORY_SEPARATOR. 'Subfolder'); Then I try to rename the PHP name with this name (func) I try to do this: rename ('/ tmp / Subfolder ',' / other / folder / name '); But this gives me a strange warning: Warning: Rename (): The first argument of the copy () function can not be a directory Do these folders have something to do with access rights? Any ideas? Do your / tmp with a different file system on / Other ? If you want to separate your temporary file storage, this would be a good practice, which could fill the garbage, e.g. / var (which can be filled with logs!) If this is the case, then PHP is a main bug that prevents from renaming () to work on file system firmly: to use exec ("mv" ...) Quoted, but more strongly you can: if (@dename ($ from, from $)) {return; } Exec ("mv...

ruby - Can't get 'mysql' gem to work after installing Yosemite -

I installed Yosmith last night and found that mysql was de-installed in this process. I am from MISQL website The DMG file is downloaded, it is restored, it has started, there is no problem. However, when working on the SackRata project, the 'Rake DB: Migrate' is being run to regenerate the database but I found the following: sh-3.2 $ rake dB: Uninstall the rack! Load Errors: Dlopen (/usr/local/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-13/2.1.0-static/mysql-2.9.1/mysql/mysql_api.bundle, 9): Library Not Loaded: Referenced by libmysqlclient.18.dylib: /usr/local/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-13/2.1.0-static/mysql-2.9.1/mysql/ Mysql_api.bundle Reason: Image not found - /usr/local/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-13/2.1.0-static/mysql-2.9.1/mysql/mysql_api.bundle/ User / Identification /Documents/ios/projects/GagnonPhoto/app.rb:1:in 'On Top (Required) & gt; / User / identity / document / iOS / project / Gagan photo / rackfile: 1: in `...

html5 canvas - Android drawing lines with arrows -

I'm doing Java + Android leverage, and this topic helped me a lot in allowing users to draw lines Of But, in my app I want to add a head of the arrow to each line. Attempted to use Path.lineTo to add this triangle, but the problem is that I can not do it to rotate in the right direction. Thinks for help You have to do some math. Say that the last point of your line is A, and the last but one is B. Then we have to calculate the direction vector D as A-B. That vector should be normalized, that is to be divided by its length, and then to be extended to that length from which you want the key lines of your arrow, the use of Android PointF class for A, B and D It should look like this: PointF a = & lt; Start with the last point of your line & gt; PointFB = & lt; Start with the last but one point of your line & gt; // difference vector point d = new point (ax-bx, ai-bi); // normalized d.set (d.x / d.length (), d.y / d.length ()); // segment, say, 10 units ...

Enable / Disable kendo ui drop down list using AngularJS ng-disabled -

I'm unable to get the following example working in IE9. The drop down list is not enabled or disabled. Use of Angiens v1.2.22 and Candido UI v2014.2.903 Any help would be greatly appreciated. HTML: & lt; Div kendo-drop-down-list k-data-source = "names" ng-model = "selected" ng-disabled = "disabled" & gt; & Lt; / Div & gt; & Lt; Label & gt; Ng-disabled & lt; Input type = "checkbox" ng-model = "disabled" /> & Lt; / Labels & gt; & Lt; Div kendo-drop-down-list k-data-source = "names" ng-model = "selected" k-enable = "enabled" & gt; & Lt; / Div & gt; & Lt; Label & gt; Q-enabled & lt; Input type = "checkbox" ng-model = "enabled" /> & Lt; / Labels & gt; & Lt; Pre & gt; Unable to: {{disabled}} Enabled: {{Enabled}} & lt; / Pre & gt; js: $ scope.names = ['option1', 'opti...

clojure - How to make namespace alias available after initial compile time? -

I am working on a Closer app which needs to be able to read the closer code from the shell command line. The app has a - main function that reads a string on the command line with a single closure form, and passes this string to the closure function load-string Which parses string and executes the code, it is successfully using both using lean run and uberjar. I've found that the code given on the command line may include full-name namespace names if the code at the top of the file containing the name space > main > required . For example, if the source file starts with (ns popco.core.popco (: [popco.core.reporters: as rpt]) The string I pass on the command line can refer to my function ticker popco.core.reporters / ticker However, I can not use the nickname rpt if I am referred to by the ticker rpt / ticker , I get an exception: java. Lang.RuntimeException: No such namespace: rpt . I am feeling that this is because the nickname is available only...

In Rails, how to translate buttons in javascript popup confirm box -

When contains the data: {confirm: "Are you sure?" } For an Auxiliary, how do we translate "cancel" and "OK" two buttons in the popup? Is the Rail I18n implemented in any way? By default ( verify data attribute and calling Window.confirm () ) uses the Rail-Uses browser's basic confirmation dialog, so you can not actually translate them, they will use the browser's translation. If you use some options, the solution (which actually changes the data-confirmation attribute with something else) depends on the particular solution you choose. Does (for example) TL; DR: You can not

mysql - Inserting php arrays into mysqli database rows? -

In my MySQLi database, I have 2 columns in the table, an 'author' and the other is 'book' There is an array called '$ author' and a '$ book' in which there are unknown numbers. I'll call column 'books' with values ​​inside' $ books' and 'other column variables' $ author' which will remain constant in all rows. Please help if you provide it in a procedural way rather than OOP, it will be appreciated and appreciated. Let's assume that $ author is a string and $ books is an array of integers, $ sql = "books in your table (author, books); foreign currency ($ books $ book_data) {$ sql. =" ($ Book_data , '$ Author'), ";} $ sql = rtrim ($ sql,", ").") "; // execute query this constant $ author with each $ books will be included as a new line. >

javascript - Using an array of values in Factory -

Currently I have a factory that is using a json file wrapped in $ http.get request. Not ideal, it works for testing. I need to test the same solution within the SharePoint environment, but json files are not allowed, eventually it will be connected to a web API call. How can I specify the JSON values ​​within the factory to allow for testing? (function {} PersonalViewFactory = function ($ http) {var factory = {} factory .get customer = function ($ $ http.get ('relationshiptracker.json'); }; Return Factory;}} Individual VIFFracture $ Inject = ['$ Http']; Angular Module ('Client App'). Factory ('Customer Feature', Personal Vffect);} ()); Example of Json [["Segment": "Trading", "Title": "Narima Ajam", "Role": "Oil and Shipping Ability Center Manager", "Last Meeting Date ":" 1/1/2000 "," Next meeting ":" "," created date ":" 9/14/201...

ocaml - Using qtest and quickcheck, fail to compile the test code -

मेरे ओकमल सेटिंग निम्न है: ओकमल 4.01.0 ओफ़ाम 1.1.2 qtest 2.0.1 (ओपैम सूची qtest) त्वरित जाँच 1.0.0 परीक्षण के साथ स्रोत कोड inlined : आरईसी एफू x0 एफ = समारोह [] - & gt; 0 | X :: xs - & gt; F x (foo x0 f xs) ;; (* $ T foo foo 0 (+) [1; 2] = 3 *) qtest -o footest2.ml निकालने foo.ml तब दुर्भाग्य से, Footest2.ml को संकलित करने में असफल रहता है: कोर बिल्डिल्ड पॉवरस्ट 2। एनएटी -पीकेजी त्वरित चेक चलो ___ परीक्षण = रेफरी [] चलिए ___add परीक्षण = ___ परीक्षण: = परीक्षा ::! ___ परीक्षण खुला OUnit ;; मॉड्यूल Q = Quickcheck ;; let (== & gt;) = क्यू। (== & gt;) ;; Random.self_init () मॉड्यूल Test__environment_0 = struct open Foo ;; Let_test_2 = "foo" & gt; ::: ["foo.ml:6" & gt; :: (6) "foo.ml" फ़ू = फ़ू मज़े () - & gt; OUnit.assert_bool "foo.ml: 6: एफू 0 (+) [1; 2] = 3 "(# 6" फू। एमएल "एफयू 0 (+) [1; 2] = 3)); ] ;; चलो _ = ___add _test_2 ;; अंत त्रुटि: = "त्रुटि: अनबाउंड मॉड्यूल Quickche...

ios - Xcode 6 Misplaced Views -

Image
I am preparing a layout on storyboard and setting constraints. Suppose that I have a UIImageView that fills the width of the screen, after some time after setting it, it gets smaller and gives the wrong view warning. I am fixing the problem by updating the frame, it again replaces the width of the screen, but after some time, the same problem occurs. And this is not just a scene, it is for my IVIUIUIUIUUTIOLATOR / HED: EDIT: Perhaps some screenshots help you understand the situation; I am adding my components as below and setting barriers like margin from left and right But after some time, it is done by itself, When I update the frame, it becomes what I want but less time for one .. / Div>

javascript - Appending a preloaded image to a div -

So, I did not think it would be complicated, but I could not understand myself. I use JSON with & lt; Head & gt; Load images already in . // Images publish original = new image (698, 360); Original src = "imagenes_png / bosque_mapa.png"; ... Then I want to add preloaded images with a DIV tag name test, as well as JS. // This is in my div tag body & lt; Div id = "test" & gt; Testext & lt; / Div & gt; Although this does not work div still testext For people with the same problem: Keep Documents. GetElementById ('test'). AppendChild (original) here $ (document) .ready (function () {/ * code here * /}); $ (Document) .ready (function () {document.getElementById ('test'). AppendChild (original)}); Why? Read the comments of David Thomas and follow the post link! ** Note: This solution requires jQuery which can be loaded like this: & lt ;! - LINK Zu JQUERY online - & g...

optimization - Optimisation of a simple vector operation (python) -

I, j] = a [i] - b [j] gave two arrays a and b (of the same length, but this is probably not relevant)? To be more precise, do I have N points in a 2-dimensional space, whose posts are stored in two arrays DX and D, and more digits of N, whose position in Tx and T I need a matrix a [i, j] = (dx [j] -tx [i]) ** 2+ (dy [j] -ty [i]) ** 2 The only way I have thought that for the range (nData) I A = np.empty ([nData, nData] In: A [I] = (dx-tx [i]) ** 2+ (DI-TE [ii]) ** 2 returns a The problem is very slow (Ndita is going to grow) (By the way, x * 2x * x or slower than equivalent?) You want to calculate the Eclidian distance between all the pairs of your partner class. scipy.distance.cdist : & gt; & Gt; & Gt; Will be the fastest to use. Np & gt; & Gt; & Gt; CCSSA.A. Import from CDIST & gt; & Gt; & Gt; X = np.random.rand (10, 2) & gt; & Gt; & Gt; T = np.random.rand (8, 2) & gt; & Gt; ...

php - Combining two preg_replace into one -

I want to add those 2 preg_replace to one. For example data-thumb-bg = " with style =" background-image: url (' and followed by if .jpg replace it with , .jpg); . $ Input = preg_replace ('# data-thumb-bg = "# s',' style =" background-image: url (', $ input); $ input = preg_replace (' # .jpg # s', '.jpg);', $ input); // This will be executed only when one of the above matches How can I do this? Edit I think I have expressed myself wrongly .jpg to only data-thumb-bg = has been changed. As you change the data-thumb-bg , you replace .jpg with data-thumb-bg Kind regards I assume that your ultimate goal is to change the attribute of an element data-thumb-bg = "photo.jpg" to style = "background-image: url (photo.jpg);" This can be used one more (note that since we do not use . is unnecessary): $ input = Preg_replace ('/ data-thumb -bg =' ([^ "] + /", ...

TypeError: 'str' object is not callable (python 2) -

To start the program if the program starts & amp; The same letter ends with def match_letter (): count = 0 for the word in words: if len (word)> = 2 and the word [0] == word [- 1]: Count words in the list of words: words.append (word) count = match_letter () = count = 1 return count def main (): word = [] words_list = raw_input ('enter word:') words_list = Word_list (). This is my Python code, this is error traceback (most recent call final): file "D: \ Programming \ Python Python 2.7 \ Same_letter.py ", line 21, & lt; Module & gt; Main () file "D: \ Programming \ Python \ Python 2.7 \ same_ letter.py", line 13, key words_list = words_list (). Split () type error: 'str' is not worth the object corner I am very grateful if someone can help me .. This line is an additional parenthesis words_list = word_list (). It may just be words_list = words_list.split () Actually, You have several external steps, your co...

svg filters - SVG clipPath with 2+ paths breaking in Chrome 38 -

Image
latest after updating Chrome to what is happening with the icons of my SVG, ensure that they still I seem to be displaying correctly in Firefox which I am supporting. I was fully working in earlier versions of Chrome, I'm testing with it. Appears that there are two or more path elements inside the clippath element in the example, where the expected symbols are not rendering according to:. I can place any number of elements allowed inside the clippath so I believe that I am doing this right ... so the reason is to lose it as it is suddenly broken on me. > so providing basically if you how pupil images to see cockroaches and eye kill you are now on the right hand side ... code> & lt; Svg & gt; & Lt; Defs & gt; & Lt; ClipPath id = "diff-path" & gt; & Lt; Path d = "M17.19,7.349 C18.753,7.349 20.019,8.626 20.019,10.202 C20.019,11.777 18.752,13.056 17.19,13.056 C15.628,13.056 14.361,11.778 14.361,10.202 C14.361,8.625 15.627, 7...

asp.net - hosts file on windows azure website -

I use a web reference windows blue in an ASP.NET website. I use blue as my QA environment and on quality assurance, the site should connect to the QA web context. On my previous QA environment, I used the file entry to indicate the web reference domain name for the host QA IP address. But after migrating to the windows blue, I do not know how to point the web reference to QA IP addresses. Is there any other way to do this? I do not think you can affect the host in Azure. Instead, suggest using I SlowCheetah is based on an open source project that can change your configuration file (or any XML file) you are targeting. I use it to change the connection string in web.config for QA and Prod Build. This package enables you to change any other XML file based on your app.config or build configuration. It also adds extra tooling to help you create XML conversion. You can set your web context to be dynamic, so that the features can be loaded from your web. Config

Word-Scripting: replace nonbreaking spaces with thin spaces? -

I use the term to open (special) HTML documents for printing and fix a small problem I want to write a script for: In the html file I have the number of '15cm' which is '15 & nbsp; Cm ', so there will be no line break between the number 15' and the unit 'cm'. My problem is: The vacancy is very broad, especially when the word spreads to spread the vacancies on the margins. So I want to change these & nbsp; With the use of a word VBA script, I think that I need to calculate the paragraphs, but I'm not sure how the text should be replaced there. This is what I have come up to yet, but I do not know how to write the HTML NP in the word and what to use for the thin spaces, maybe someone can help me here? Sub-MakeThinSpaces () for paragraphs of each paragraph ActiveDocument. Paragraphs as DimPara & amp; Nbsp; Replace with some more Thinsp; here? The next ending sub The diluted location is Unicode 8201. (Narrow non-break space ho ...

javascript - attach loading animation untill highcharts rendred -

I have set a high chunk in a div, which contains some other static information. I would like to add a loading ring for the entire divan when I was given high chancel. I know how to do it in general but with high charch, I can not catch the load event. Can someone suggest me how to do this?

c# - Make containing elements ishittestvisible = false while contained elements are ishittestvisible = true -

I was wondering if it is possible that the original container isHitTestVisible = false while Ishhtest Vajibil is right for children and is still able to reach the children. This is what I have tried now and definitely does not work. Example: & lt; Grid IsHitTestVisibile = "False" & gt; & Lt; Button IsHitTestVisibile = "True" /> & Lt; / Grid & gt; My argument behind this is that I am changing the style of my data-grid headers so that all the available filters have a drops (pop-up control) even when you pop-up If you click on the white / spaces of the control, the header is clicked and to sort the data, so if I am used to filter only the actual elements, then I can end this problem. .