Posts

Showing posts from September, 2010

Typo3 Formhandler Default Values not working -

I have a problem with typo 3 and default values. I add them like this: preprocessors {1.class = Tx_Formhandler_PreProcessor_LoadDefaultValues ​​1.config {1 {name.defaultValue = text name.defaultValue.value = name email.defaultValue = text email. DefaultValue Data = e-mail}}} And here's my HTML template: That does not seem to work if I put those values ​​directly into my template-file, then the required check will not work. Make sure I'm confused ... If you have nested in this config exactly what it should be, ( plugin.Tx_Formhandler.settings.preProcessors {1.class = Tx_Formhandler_PreProcessor_LoadDefaultValues ​​1.config {1 {name.defaultValue = text name.defaultValue.value: when the top layer of your TS) placed = name}}} on the other hand, DefaultValue still has a value, so if I placeholder for you to understand right, you HTML Instead of attribute (want to use any TS config) No need) & lt; Input placeholder = "Your online name" cl...

java - How to check if a certain period of time passes an exact timestamp? -

How do I check that the time period (together with two temporary timelines (start and end) passes for example midnight ? I am trying to use the local Dat Time class, but there can not be anything useful .. It is best that I can come up with it: public static boolean pass time (Local Datetime startup , Localized time, local time time) {// If the period is more than one day, any time will be passed (period. (Between, start, end) .toDays ()> = 1) return true; // Otherwise, Time is to be passed on the start day ... local datetime timeOnstartDay = localDatetime (start.TolocateDate), time); if (timeOnDARTDAY. Later (start) & timeOnDrartData.First (end)) Come true; // local datetime tu on the last day Mondedy = Lokldettaim. (End. Tulokl date), time); If (time induced. Indirectly (start) and timeanded. Before (end)) is true; return false; } java.time tested with the API. If you are using Joda then the code should be the same (if not equal).

web services - Asynchronous processing not supported on Servlet 2.x container jersy -

I am doing an example on asynchronous processing which is using jersy restful web services and receiving the following Asynchronous Processing Servicelet 2.x is not supported on container I am running on the Tomcat 7 server. I have kept the servlet-api-3.0 jar file in the Tomcat / Lib file. But still I'm getting the error. The reason for the exception can be Thanks in advance ...

http - Content Type not being set in cURL in PHP -

Image
I am sending a request to use an API (Xero, to be specific) to cURL, but I Clearly sending the empty requests I checked the cURL information and it seems that I do not have any content-type set, even if I'm setting it up in code. Here's my code: $ content = $ this- & gt; GetContent (); $ Header = ["content-type: app / x-www-form-urlencoded", "content-length:". Strlen ($ content), "Connection: Off"]; $ Ch = curl_init (); Curl_setopt ($ c, CURLOPT_URL, $ this- & gt; getUrl ()); Curl_setopt ($ CH, CURLOPT_RETURNTRANSFER, 1); Curl_setopt ($ CH, CURLOPT_TIMEOUT, 10); Curl_setopt ($ CH, CURLOPT_HTTPHEADER, $ headers); Curl_setopt ($ CH, CURLOPT_HEADER, true); Curl_setopt ($ ch, CURLOPT_POST, true); Curl_setopt ($ CH, CURLOPT_POSTFIELDS, $ content); D ($ header, curl_gateInfo ($ CH)); D () AA is a "dump and exit" function, and it outputs it: array (3 ) {[0] = & gt; String (47) "content-type: app / x-www-form-url...

java - Setting worker threads for undertow server -

I am trying to customize the overhough server and I set the I / O thread (WORKER_IO_THREADS and WORKER_TASK_CORE_THREADS) Want to try HttpListener Can you please help me with the necessary steps? Below server = Undertow.Builder (). AddHttpListener (80, "") .setHandler (new HTTP handler () {Public Zero Handle Request (Last HttpServerExchange Exchange) Exception {String String_change = Exchange .getQueryString (); str = & lt; String; Some works on Exchange; Exchange GateresSansSender (). Send (strip);}}). Build (); Server.start (); I have read that the XNIO worker associated with the listener needs to be configured. Although I am not clear on how to go about it. I'm afraid that you need to take a long way to bootstrap as described manually below have been shown. The reason for this is that all handlers share the NIO pool with an XnioWorker. XnioWorker worker = xnio.createWorker (OptionMap.builder () .set (Options.WORKER_IO_THREADS, ioThreads) .set (opt...

Unix: How to merge many compressed (.gz) files together and exclude header for files nr. 2 etc -

I have 20 .gz files I want to merge together (but still keep original). They all have the same variables in the same order and are the headers of all I want to merge them into a .gz file and only want to include the header for the first file. These files are very "big" and therefore I can not use R to merge them because it will take a lot of time. See the "Advanced Usage" section of the manual page for gzip section. I'm not sure that you can basically be decomposed and easily without recompressing them in the same destination file.

javascript - Pick Date from Jquery Calender and Check it WIth DB and Print Events on That Date -

I have a jquery calendar that stores in the selected "date" variable ... I get the events stored on it Want to print that date from the database and print them ... Please help me ... & lt; Div id = "calendar" & gt; & Lt; / Div & gt; Date: & lt; Script & gt; Var x = ''; $ ('# Calendar'). DatyPirate: "yyyy / mm / dd", day names: ['sun', '', ' Select 'Work' (date text) '$' ('# event-date'). (DateText) x = 'Date' DateText; // Alert (x); $ .ajax ({type: "post", url: 'check_events.fpp', data: {dateText: x}, datatype: 'jason', success: function (data) {warning ("Data");}}}}}}); & Lt; / Script & gt; check_events.php: - & lt; Php mysql_connect ("localhost", "root", "") or die (mysql_error ()); Mysql_select_db ("user") or die (mysql_error ()); If (isset ($ _ POST [...

batch file - cmd.exe doesn't close after starting exe -

I have a bat file that starts the .exe file, however, cmd.exe is not closed after the command is executed Happen . Start / D "C: \ Projects" myProgram.exe The program starts and behaves as it should, but CMD is close What will be the reason for this? Try using EXIT in your script For example: remove

android - Custom Camera PictureCallback does not run if flash used on S4 devices -

I wrote a basic custom camera that I recently changed to use Flash (where available) on the device Was there. Once I made the change, the code was okay on my HTC One Mini 2, but now has not worked on my Galaxy S4. After stepping through, I found that my JPEG callback never returns to S4, but rather a raw callback is run, but with the supply of an empty byte []. I got this same question: which confirm problems and solutions on these devices, but the solution has not been documented. To repeat, code works fine on S4, unless I do not turn on Flash: Camera. Parameter p = mCamera.getParameters (); P.setFlashMode (Camera.Parameters.FLASH_MODE_AUTO); // or FLASH_MODE_ON mCamera.setParameters (P); Can anyone provide any solutions with experience on these devices? After a lot of testing and error in the last week I have stumbled upon two possible solutions to this problem First of which I do not understand: Forcing Zoom to be greater than X1 For some reasons if I set th...

r - Knitr: creating a standalone page with animations -

I have an R presentation using RStudio I would like to upload it to RPBs (or anywhere!) There are some animations in the document, which are the fig. Show = 'Animate' . I also use the scianimator package: Library (knit) opts_knit $ set (animation.fun = hook_scianimator) However, when I Knit RStudio, Animations are saved in a separate directory. Then if I upload document RPubs, animations are not uploaded and slides do not work. Do anyone have any suggestions or workings? I am using R 3.1.1, Niter 1.7 and Rstidio 0.98.1028 on Mac.

php - working control flow if the page has 2 html tags -

कार्य नियंत्रण प्रवाह के संबंध में यदि पृष्ठ में 2 html टैग हैं & lt; html & gt; ..... & lt; / html & gt; & LT; html & gt; ..... & lt; / html & gt; जो दोनों या केवल पहली बार लागू किया जाएगा .... मैं एक cs50 परियोजना पर काम कर रहा हूं जिसमें मैं कॉल करता हूं & lt ;? Php डंप ($ _ सर्वर); रेंडर करें ("login_form.php", ["title" = & gt; "प्रवेश करें"]); ? & Gt; केवल डंप निष्पादित होते हैं जबकि & lt;? Php रेंडर ("login_form.php", ["title" = & gt; "प्रवेश करें" ]); डंप ($ _ सर्वर); ? & Gt; दोनों को निष्पादित किया जाता है डंप का विवरण और रेंडर फ़ंक्शन हैं .. फ़ंक्शन रेंडर ($ टेम्पलेट, $ मान = []) {// यदि टेम्पलेट मौजूद है, तो इसे रेंडर करें (file_exists ("../templates / $ template")) {// स्थानिक गुंजाइश निकालने ($ मान) में चर को निकालें; // रेंडर शीर्षलेख की आवश्यकता होती है ("../templates / header.php"); // रेंडर टेम्पलेट की आवश्यकत...

asp.net web application with an interface to dynamically select the data providers listed in a dropdown -

I was searching for a sample asp.net web application dynamically select data providers with an interface Which is listed in a dropdown I have found a sample: Since I am using VS 2010, I have discovered similar samples..but I want to meet someone .. Please get a sample web application with such interfaces Help Eri.

entity framework - How to use migrations after adding a Key attribute to a property? -

Package Manager Console: One or more validation errors were detected during model: p6.DAL.Password :: EntityType 'password' has no key defined. Define the key for this EntityType Password: EntityType: EntitySet is based on the 'password' type 'password' in which no key is defined. class password: public class password {key} public entry password ID {get; Set; } Public string password name {get; Set; } Public string IsValid {get; Set; } Public Virtual Person (Received; Set; }} using -force in this way Try: You can name your configuration name instead of "Configuration" . update-database-verbose -force-configurationTypeName One chance my answer will help you here:

javascript - empty() and then append() gives a blinking effect -

After I have this code $ .ajax ({type: "post", url : "Display.aspx / getSchedules", data: '{"_facilityID": "' + facilityID + '", "_facilityTime": "' + m + '", "_facilityOffset": "' + + OS +" "_facilityClock ":" + FacilityClock + '"," _FacilityDisplayPastEvents ":"' + FeatureDisplayPastEvents + '' ', contentType: "application / json; charset = utf-8", datatype: "json", success: function {$ ("# MySchedule") empty () enclosed (data.d); ..}, error: function (data) {toastr.error ("error in getSchedules");}}); Actually, I'm fetching data from the server and then reloading the table Re-structuring in the webmath since I am using the empty () function and then adding markup to the table, reproducing that table, whatever is highlighted in that table , It becomes empty for the other, an...

git - How to commit changes after I clone a repository which is forked from others? -

I'm new to GeT / Geethub. What I'm trying to do here (and not yet able to reach the goal): I'm stuck with someone else's repository. This is an amacus configuration, so now my guithe page shows this new repository. Then I'm cloning it on my local computer so that my amax can read the configuration. I git clone https://github.com/MY_NAME/My_EMACS_SETUP ~ / .emacs.d Now everything is fine and Emacs Reads the configuration. Then I want to customize my Imax by adding my own configuration. Let me assume that I have modified the ~ / .emacs.d / init.el . When I run git status , then it says that init.el has been modified. Then I run git add init.el and git commit -m "modified init.el" , which though my repository Then I go to my zithub page and refresh it. However, I do not show my repository commitment. Am I forgetting something? Do I need to run some git remote add ? Because I feel that my commitment has not made Github any change because ...

Make famo.us / Angular scrollview with many elements per line -

Image
I have a bee with several tiles and each tile is placed below as a modifier: My code looks like this: & lt; FA-scroll-view FA-pipe-to = "ScrollAventHandler" FA-Options = "Scroll Option" & gt; & Lt; Fa-visible ng-repeat = "tile in tiles" & gt; & Lt; Fa-corrective fa-transform = "tile.transform" & gt; & Lt; Fa-surface fa-background-color = "tile.color" /> & Lt; / Father-modifiers & gt; & Lt; / Papa-view & gt; & Lt; / Father-scroll-view & gt; and tile.transform return: this.transform = function () {var currentTilePosition = position.get (); Return Transform. Translestate (Thetonel term [0], the current word [1], the current word [2]); } The situation comes back when it is correct, but if I put a look into the debug window, the situation is modified. But if I 'FA-modifier' (necessary to scroll), all my tiles are collapsed: My hexagons look like this:...

c++ - How to place QGraphicsSimpleTextItem in the middle of a QGraphicsLineItem? -

I inherited the kgfixicsline itam for a new class, whose name is linepointline. When I create a point line in every way, I have to put some text in the center of the line: // Draw Line Setline (localPoint1.X (), localPoint1.Y (), LocalPoint 2.x (), Local Point 2.Y ()); // Set the parent item for the text, so it can be appropriately deleted later .setParentItem (this); Text.setPos ((localPoint1.X () + localPoint2.X ()) / 2, (localPoint1.Y () + localPoint2.Y ()) / 2); Text.setText ("some"); However, the text does not appear in the middle of the line ... How can I fix this? I think that when you set the text as a child of the line, its The coordinates should be relative to it. You will do something like text.setPos ((width ()) / 2,0);

sql server - Import XML to SQL -

Sorry to put one more post about this topic, but I am trying to import this XML database without success. This is XML: & lt; Session xmlns = "http://winscp.net/schema/session/1.0" start = "2014-11-03T17: 23: 22.376Z" & gt; & Lt; Ls & gt; & Lt; Destination value = "/ output" /> & Lt; Files & gt; & Lt; File & gt; & Lt; Filename value = "." / & Gt; & Lt; Type value = "d" /> & Lt; Revision Value = "2014-11-03T12: 17: 58.000Z" /> & Lt; Permission value = "rwxr-sr-x" /> & Lt; / File & gt; & Lt; File & gt; & Lt; Filename value = "7215_SG.csv" /> & Lt; Type value = "-" /> & Lt; Size value = "1584161" /> & Lt; Revision Value = "2014-11-03T12: 06: 46.000Z" /> & Lt; Permission value = "rw-r - r--" /> & Lt; / File & gt; & Lt; File & gt; & L...

zoom - Firefox goes blank when zooming -

and When you zoom in or out on Firefox, the screen is empty Sometimes it also shows some words or parts of the style. I do not know where to start. I think it has been decided. Apparently there was something with an hidden element with an animation, whose precise position was When I removed the fixed position, then all worked well. I hope this helps people who have the same problem.

jquery mobile - Invoke native file browser using phonegap -

Image
I have to implement the File Upload feature in my phonegap project. The user should be able to upload any type of file with phone memory or SD card. I designed the application screen using jQuery Mobile Framework. I tried the input type = "file", but it is not supported in Android 4.4. I also tried the PhoneGraph Camera API, but it only supports media files (I found some Cordova plugins) But using the Custom UI I want to open the original file browser to select the file & amp; It is the Android & amp; Both have to work in Is there any way to implement the iPhone platform in the same way? I found the plugin to choose the Cordova file () would be useful for the Android platform, but I am unable to work it. Successful callback function is not triggered immediately after file selection (tested with Android 4.4.2). Please find your code below, input type = "file" id = "fileinput" name = "fileinput" /> $ ("# Fileinput"...

android - getCheckedRadioButtonId() of RadioGroup returns 2131034181/2/3/4 -

As part of my application, I have to create four radio buttons in a radiogram and click on the radio button. I wrote the following code but my selection id attribute gives value 2131034181 when the first option is selected and 2131034182 when the second option is selected and likewise, when 3 and 4 are clicked, the change in the unit number of the value it happens. Why is it like this? int selectId = rbg.getCheckedRadioButtonId (); Radio button selected = (radio button) rbg.findViewById (selectId); String selected_user = (string) selected .gettext (); To get Radoboton , click findViewById instead of radiogram , then replace radio button selected = (radio button) rbg.findViewById ( SelectId); String selected_user = (string) selected .gettext (); to selected radio button = (radio button) searchWBIID (selection ID); String selected_user = selected.getText (). ToString ();

xcode - didSelectRowAtIndexPath method is not called in another viewcontroller -

I have two views controllers, they are the first page and homepage I have a hosted in the homepage and this view controller has the first page view The controller has to add as follows. homepage * objHomePage = [[homeophone] init]; ObjHomePage.view.frame = CGRectMake (0.0, 520.0, 375, 667); [Self.view addSubview: objHomePage.view]; But when it calls the didSelectRowAtIndexPath of the table view in the home page, it is not called. I did not know this question, but this is not the correct implementation of viewController prevention. .. Homepage * View Controller = [Information Item]; [Add self childview controller: view controller]; ViewController.view.frame = CGRectMake (0.0, 520.0, 375, 667); [Self.view addSubview: viewController.view]; [ViewController didMoveToParentViewController: Self]; I will also check inside the homepage, this is the table view. The Delegate is set on its own. This is the first thing that I will examine with your problem.

To remove background greyed pixels from image -

Image
मैं ऊपर छवि में पृष्ठभूमि अनावश्यक greyed पिक्सल हटाने के लिए चाहते हैं मुझे पता है कि यह कैसे करना है। छवि मैजिक के साथ त्वरित और गंदा: 9AWLa.png -blur x1- थ्रेसहोल्ड 50% आउटकॉन्मेंट परिवर्तित करें कुछ हद तक बेहतर, अभी भी छवि मैजिक: 9AWLa.png- मार्जोलॉजी परिवर्तित करें '1x3 & gt;: 1,0,1' आउट .png अपडेट किए गए उत्तर छवि में कहीं और शोर को हटाने के दौरान शोर बॉर्डर को बरकरार रखने के लिए यह कठिन है। क्या किनारे के चारों तरफ से 3 पिक्सल ट्रिम करने के लिए स्वीकार्य है, फिर एक 3 पिक्सेल चौड़ी काली सीमा को वापस जोड़ना है? 9AWLa.png- मार्जोलिजन '1x3 & gt; , 1 '\ -shave 3x3 -bordercolor black-border3 out.png

java - JTable how to render different swing objects in the same column -

I want to present different swing components in the same JT column. For example, I have to have some different combobox, jellybos and jacquack boxes in the same column. Provides information on how to render only one type of Cambodia per column, although this is not enough. How can I set up a table cell renderer so that it can achieve this functionality? If you want to use different editors / renderers in the same column, then the approach described above And you can override the JTable #getCellEditor () on the basis of cell (column and line intersection). JTable # getCellRenderer () can be overridden if necessary. Here's a description of the strategy behind the tables to get the renderer / editor so that you can solve it, your problem

php - How to calculate difference between values coming from the same row in mysql -

I am trying to calculate the difference in the value list coming from a database. I would like to use it PHP or mysql, but I do not know how to proceed. I have a table named Player_coreres, it has scored one of the lines. E.g. Of pl_date pl_scores 03/11/2014 18 2014/02/11 15 2014/01/11 10 matches I played in goal different dates For example, you want to echo the difference between runs scored For example:. Pl_date pl_scores diff 03/11/2014 18 + 3 02/11/2014 15 +5 01/11/2014 10 No difference How do I get the desired result? You seem to want to compare a score against the score on a previous line. Perhaps the most simple, the sub-query that is used to maximum pl_date is that the current row is less than pl_date, then return the results of inquiry against the sub player_scores table join to get information for each date: - ps1.pl_date, ps1.pl_scores, IF (ps2.pl_date ps1.pl_scores = ps1.pl_scores, 'no diff ', ps1.pl_scores zero or - ps1.pl_scores) diff (...

"no such element" exception when using Selenium with C# -

Image
In my web project "Calculator Web" I have a web page where I have a single text box with the ID "txtNum1" Is kept & lt ;! DOCTYPE html & gt; & Lt; Html xmlns = "http://www.w3.org/1999/xhtml" & gt; & Lt; Top & gt; & Lt; Title & gt; & Lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Form id = "frmCalc" & gt; & Lt; Div style = "padding-top: 20px;" & Gt; My sample text box & lt; Br / & gt; & Lt; Br / & gt; & Lt; Input id = "txtNum1" type = "text" / & gt; & Lt; / Div & gt; & Lt; / Form & gt; & Lt; / Body & gt; & Lt; / Html & gt; Nothing is fancy, so the page load is as below Now I have created a feature file" BrowserTest1.feature "for my project" Calculator. Specs ". To check the code Feature: BrowserTest 1 URL as a browser, I want to see the URL o...

c++ - is there a way to remove the select count(*) from this sql statement and logic -

I have some C ++ code that updates the column when a row is present otherwise there is nothing here Code looks like now and the selection count (*) takes about 15-20 seconds I would like to make this code more efficient. Runupdate Lockless Timestamp sCommand & lt; & Lt; "Set up APCLoXX ALIVETIMESTAMP = Update"; SCommand & lt; & Lt; "SYSTIMESTAMP (7)"; SCommand & lt; & Lt; "Where TRANSACTIONID =?"; RunScheckCat accountCubblocks sCommand & lt; & Lt; "Count (*) from APP_CC_LOCKS"; SCommand & lt; & Lt; "Where ((SCENARIOID =? And YEARID =? And ENTITYID =? And PARENTID =? And VALUEID =?) And (LOCKTYPE =?)) Or (LOCKTYPE =?)) And (transactionId! =?) And ((TIMEINSERTED & Lt; (Selection Max (TIMEINSERTED from APP_CC_LOCKS) "; sCommand Main DWORD dwIterationNumber = 0; // accquire lock trying cStartTime = DateTimeUtil :: currentDateTimeAsMilliseconds (); While (bLockWasAcquired...

Excel VBA Dealing with 64 values for one argument -

Image
I have a VBA script that I read an incoming email in an account and then marks the respective cell in it spreadsheet . if InStr (itm.subject, "test backup") & gt; There were 9 jobs in my trial, which were looking for in a nested IF statement. 0 then j = 2 ALSIF inset (itm.subject, "TESTdchq") & gt; 0 then j = 3 alsèf inf (itm.subject, "TESTdynamics") & gt; 0 then J = 4 ALSIF int (itm.subject, "TEST-VSS-HQ") & gt; 0 then J = 5 ALSIF int (itm.subject, "TESTWSUS01") & gt; 0 then j = 6 ALSIF inset (itm.subject, "test-camera") & gt; 0 then J = 7 ALSIF ins (itm.subject, "test-Vcenter") & gt; 0 then j = 8 ALSIF inset (itm.subject, "test-view connection") & gt; 0 then j = 9 ALSIF inset (itm.subject, "TESTktsrv1") & gt; 0 then J = 10 end if Although I have 64 works in a practical application I would like to give me a more efficient way to allocate the value o...

javascript - How to set ngFocus directive on element at runtime? -

मैं प्रत्येक तत्व को केंद्रित करते समय एक घटना को कॉल करना चाहता हूं। हालांकि मुझे लगता है कि प्रत्येक तत्व पर ngFocus निर्देश को सेट करना अच्छा नहीं है क्योंकि उनमें से बहुत से हो सकते हैं। मैं रनटाइम पर प्रत्येक तत्व को फोकस ईवेंट हैंडलर पर कैसे जोड़ सकता हूं? & lt; ng- फ़ॉर्म का नाम = "myForm" & gt; & Lt; p & gt; & lt; लेबल & gt; नाम 1: & lt; / लेबल & gt; & lt; इनपुट प्रकार = "टेक्स्ट" नाम = "नाम 1" एनजी-फ़ोकस = "ऑनफिल्डफोकस (myForm, 'name1')" / & gt; & lt; / p & gt; & Lt; p & gt; लेबल & gt; नाम 2: & lt; / लेबल & gt; इनपुट var ऐप = कोणीय। मॉड्यूल ('plunker', []); App.controller ('MainCtrl', फ़ंक्शन ($ दायरा) {$ scope.name1 = 'text1 here'; $ scope.name2 = 'text2 here'; $ scope.result = "nothing"; $ scope.onFieldFocus = फ़ंक्शन ( _formCtrl, _fieldName) {$ scope.result = "फ़ॉर्म" + + _fieldName + ...

ios - UISplitViewController: Navigationbar for master view hidden after rotation -

I have two navigation bars, one for my master view and one for my details. I created my UISplitviewController in the built-in interface builder and a navigation controller has been attached as a guru and description and linked to the actual views. The details view always shows a working navigation bar, the master view only when the iPad does not rotate after the app starts, and in landscape mode I have double-checked the source-code of my storyboard, but the Master and Extension Navigation Controller ID and X Similar to / Y: & Lt; Autoresizing mask key = "autoresizingmask" /> & Lt; / NavigationBar & gt; & Lt; Connection & gt; & Lt; Segue destination = "VeO-5d-klv" type = "relation" relationship = "rootviewculator" id = "gtO-mE-rzu" /> & lt; / Connection & gt; & Lt; / NavigationController & gt; & Lt; Placeholder placeholder identifier = "IBFest responder" ID = "...

c# - Reference an EF5 project from an EF6 project -

Is it possible to use a project that is used as a reference to a project that uses the unit framework? Was written and created using framework 5? While doing so, I get the "method not found" errors on the functionality that have been deprecated in EF6, but it works fine when used only in the EF5 project as a single standalone project. A call like this: dataContext.Database.SqlQuery () throws an error: {"Method not found: 'System .Collections.Generic.IanMarable' 1 & lt; !! 0> System.Data.intte Database SQLQII (System.String, System.Object []). "} System. Execution {system.missimedexception}

magento SOAP API -

How can I use the Magento SOAP API description of an existing user's cart? I have a Magento based e-commerce application already for a desktop application for this ecommerce application. My use case is - -> User from desktop webpage Log in and then adds an item to the cart -> User now logs from mobile with the same credentials I want to be able to show the item which is being added to the desktop page . But right now I do not see any SOAP API that asks for the current cart information for a user. Note: I'm trying this with an Android application. So please suggest anything with the SOAP API that you use the magento The information can be found in the API . Using SOAP V1, you can get the information of the cart like $ client = new SoapClient ('http: // magentohost / api / soap /? Wsdl'); // if somestuff requires api authentication, // a session token $ session = $ client- & gt; Get the login ('APIUser', 'APKY'); $ Result = $...

php - Access components in Joomla directly -

I have an iframe on the Joomla site that should show an element. So I want to use a Joomla component directly without using a template. Is this possible? To load Joomla content without templates and modules, Finally & amp; Tmpl = component is inserted. Hope this helps

ios - MPMoviePlayerController Full Screen Custom Overlay wrong in IOS7 -

Image
Works perfectly on iOS 88, but this mess is made on iOS 7. There is a custom overlay on the video game with the MP4 Video Playback Controller works perfectly on iOS8, but this mess happens on iOS7 . I have something like that. UIView * bar = [[UIView alloc] initWithFrame: rect]; / * // Adds the stuff to the scene / / [window separator: bar]; The video is in the correct orientation (Landscape on both), it just gets messed up in the overlay IOS8 IOS7

haskell - Non exhaustive pattern in function in GHCi -

I want to create a function that displays the last element in the list. This is my code: ghci & gt; My last :: [A] - & gt; A GSC & gt; My last [] = error ghci & gt; My real [x] = x ghci & gt; My list (x: xs) = myLast xs and I get the following error: *** Exception: The non-complete pattern My latest in the function I understand that when you recall a case you get this error, but I think I have included all the possibilities . Any ideas? If you use two in each line, then each definition A new function will be named myLast , to hide all the previous definitions, then whatever you are ending with is GHCI> Is equal to: let alone my last (x: x) = my last x > You probably want to create a hyscale file, MyLast.hs , where module is MyLast, where is myLast :: [a] ] - & gt; A myLast [] = error with myLast [x] = x myLast (x: xs) = myLast xs then you will get that file with ghci MyLast.hs Can load in GHCi. Code>. The ke...

Excel - Linear Programming Model Formulas -

Image
I am studying for an exam and I have trouble with a question on the sample exam but have not responded. I went. Can anyone help me please? This is not a programming question strictly speaking, but I was sure that I could get help on the stack. This question is: This question is: In the Melbourne Central Complex sells GamesShop, two new computer games, French flops and Argentine Agonies. Client purchase patterns require that at least 20 copies of French flops and at least 25 copies of Argentine pain should be held in stock. The lack of performance requires that at least 50 games and more than 60 games will be stocked. The average cost for the French flop game is $ 130 and how much stock should each game play in order to reduce $ 110 for Argentine agony games? I need to set up linear functions and then graph it, but I'm stuck in linear formulas. I'm usually setting it in the first table but I'm confused with the barriers of the 50-60 game part. I am not looking fo...

phpunit - syntax error, unexpected T_USE, expecting T_FUNCTION in my SauceLabs test case -

I tried to follow SOSLSBs' PHP tutorials: I tried to run it on Windows. So I follow every step to run this order: seller \ bin \ phpunit.bat WebDriverDemo.php this one Error generates: Parse error: Syntax error, unexpected T_USE, C: \ xampp \ htdocs \ sauce-tutorial \ vendor \ sauce \ sausage \ src \ sauce \ sausage \ WebDriverTestCase.php on line 6 T_FUNCTION is expected> So I tried to view WebDriverTestCase.php on line 6 and this code is: Named place sauce / sausage; Abstract class WebDriverTestCase Extended \ PHPUnit_Extensions_Selenium2TestCase {Use TestCase; // this is row 6} Is this incorrect with the code? I have not changed anything, I tried to tell the tutorial only. Any ideas? I do not use PHP but on the basis that I found a Google search, Ensure that you are running a code with PHP 5.4 or later. Using the old version of PHP, I found the error in the case found on the web.

vb.net - RSA Cypher VisualBasic to Java -

I'm having trouble encrypting some strings in Java, I need to encrypt it with the VisualBasic code in the same way: public function encrypt (as KeyPair, as in the use of public key to encrypt // in as the wild plaintext string) string M_objRSAkFromXmlString (Ankripshnkeepiyr .m. Get it and compare it with the length of plain text // If the length of plain text is gt; (Modulus size - 11), then plain text would need to break into pieces the size (modulus size - 11) // will be encrypted separately to each segment of them // and at least 11 bytes padding) // When If decrypting, then encrypted text string & gt; The modulus size will be divided into sections of this size, which will be equal to the modulus size. // Each of these encrypted text segments will be decrypted separately, resulting in plain text segments re-assembled. String = "as dim intBlockSize = GetModulusSize (EncryptionKeyPair.PublicKey.Key) - 11 dim strencryptedText as integer" while Lane (plaintext)...

Java - how to make class 1 and class 2 both know about each other? -

I have a program in the middle of the program that means imitating bugs to find food. In short I have a There is a grid (a world) in which there are bugs, obstacles and food of various energy values. Each bug will look in every direction, find the closest food within its "close look" and take a cell instead to move in a random direction instead. I have 3 clauses: Abig Awesome Main Ebug and Everland clearly populate a grid to transfer food and obstacles, food to understand, a bug etc. Includes all methods, and the main class controller that creates a world creates many bugs based on user input and adds them to the world. My question is this: Is the bug a better way of getting to know the world, whenever its bugs are known in the world, in every function world Does the context of this require a bug in the bug? I currently have an array list of bugs inside world class and then 2D array is required in the bug class in the function. Sorry for the long...

iOS autolayout visual format language translate -

मैं निम्नलिखित बाधा है: [NSLayoutConstraint constraintsWithVisualFormat: "@ वी: | [ drawerView (== tapView)] | " विकल्प: 0 मीट्रिक: विचारों शून्य: viewDictionary] मैं इसके साथ कुछ एनीमेशन क्या करना चाहते हैं और इसलिए मैं इसे parameterised की आवश्यकता है। मैं एक ही बात लेकिन एपीआई का उपयोग करना चाहते हैं। यह वही है जो मैंने करने की कोशिश की लेकिन यह काम नहीं करता है: [एनएसएलयूट कंटेंट प्रतिबंध के साथहम ITemem: ड्रॉवरदृश्य विशेषता: एनएसएलआउटअट्रिब्यूटहैइट संबंधितः NSLayoutRelationEqual toItem: self.drawerMenuVC.tapView विशेषता: NSLayoutAttributeHeight गुणक: 1.0 निरंतर: 0] क्या मैं चाहता हूँ दोनों विचारों बराबर ऊंचाई है। इस तरह एक और बाधा जोड़े और यह काम करना चाहिए: [NSLayoutConstraint constraintWithItem: drawerView विशेषता: NSLayoutAttributeHeight relatedBy: NSLayoutRelationEqual toItem: शून्य विशेषता: NSLayoutAttributeNotAnAttribute multiplie आर: 1.0 निरंतर: yourHeightValue];

node.js - WebSocket connection to 'wss://site.com/socket.io/1/websocket/6CFI8y7Ls3LgCqLCeX5k' failed -

I wanted to test the server on a VPS. I am using Express.io in the background. There is no problem with localhost but I get this error in the VPS: WebSocket Connection 'wss: //site.com/socket.io/1 / Websocket / 6CFI8y7Ls3LgCqLCeX5k 'Failure: Error during WebSketting handshake: Unexpected response code: 520 I am able to send / receive data from socket.io but It needs to be fixed, what can be the reason? Thank you.

How to cast a function pointer to a LLVM value so I can call it in my IR? -

मैं एक जेआईटी पर काम कर रहा हूं मेरे पास निम्न कोड है: Obj doSomething (Obj o, Selector sel) {...} और मेरे पास इस फ़ंक्शन का एक संकेत है, मेरा प्रश्न यह है कि मैं एक LLVM: value में सूचक को कैसे लपेटूंगा ताकि मैं इसे अपने आईआर में IRBuilder.CreateCall का उपयोग कर सकता हूं, मुझे क्या करना चाहिए ? (मुझे आपके प्रश्न के रूप में समझा गया है: मेरे पास एक एलएलवीएम फ़ंक्शन के लिए सी + + पॉइंटर है और I इसे कॉल करने की आवश्यकता है, अगर मुझे इसे गलत मिला है तो कृपया इसे पोस्ट में या नीचे दिए गए टिप्पणियों में स्पष्ट करें) LLVM वर्गों में से अधिकांश llvm :: Value , जब आप ऐसा कुछ करते हैं llvm :: फ़ंक्शन * thefunction = llvm :: फ़ंक्शन :: बनाएँ (...); llvm :: Value का उपवर्ग है और आप इसे CreateCall मान * परिणाम = बिल्डर। क्रेट कॉल (फ़ंक्शन, ...); // यह कॉल निर्देश है

php - CakePHP bake all unknown issue -

मैं केक php के लिए नया हूँ सार्वजनिक $ माइग्रेशन = सरणी ('अप' = & gt; सरणी ('create_table' = & gt;) उपयोगकर्ता तालिका के साथ माइग्रेशन की स्थापना की है। सरणी ('उपयोगकर्ता' = & gt; सरणी ('user_id' = & gt; सरणी ('प्रकार' = & gt; 'पूर्णांक', 'अशक्त' = & gt; गलत, 'कुंजी' = & gt; 'प्राथमिक'), 'उपयोगकर्ता नाम '= & Gt; सरणी (' प्रकार '= & gt;' string ',' null '= & gt; गलत,' लंबाई '= & gt; 250),' पासवर्ड '= & gt; सरणी (' प्रकार '= & gt; , 'शून्य' = & gt; गलत), 'निर्मित' = & gt; सरणी ('प्रकार' = & gt; 'स्ट्रिंग', 'अशक्त' = & gt; झूठी, 'लंबाई' = & gt; 14), 'संशोधित' = & gt ; सरणी ('प्राथमिक' = ' & Gt; सरणी ('स्तंभ' = & gt; 'user_id', 'unique' = & gt; 1)))))), 'डाउन' = & gt; ...

Is it possible to prevent users from viewing some content in files using Active Directory property permissions? -

Here is the scenario: I manage a desktop enterprise application for mid-sized companies, and on some apps' screens. Field layout is controlled by XML files (1 XML file controls the field layout for your app screen) The XML file contains an XML tag for each field, and the property tag in each field There is a group; Here is an example of a field-level XML tag, with its properties / sub-tags (properties / sub-tags for all areas are identical, only data tags will change between each tag): & lt; Control & gt; & Lt; ButtonHint> & Lt; / ButtonHint> & Lt; CascadeTable & gt; & Lt; / CascadeTable & gt; & Lt; Columns & gt; 6C64CB49-0968-4062-B882-20FC730B9656 & lt; / Column & gt; & Lt; ColumnSize & gt; 0 & lt; / ColumnSize & gt; & Lt; ColumnType & gt; D & lt; / ColumnType & gt; & Lt; ControlType & gt; QaDate & lt; / ControlType & gt; & Lt; DataField & gt; QDATEREMOVEDTOF & lt;...

python - Input to a web page and retrieve the output -

I am trying to enter a password in the "howsecureismypassword" website and am recovering the output using webscraping. It is possible that here is the HTML from the web page and the code below which I have done so far, any help would be appreciated. & lt; Div role = "main" & gt; & Lt; Div class = "input" & gt; & Lt; Input type = "password" id = "password" ng-model = "password" ng-change = "password (replace)" placeholder = "enter password" class = "password" autofocus & gt; & Lt; / Div & gt; & Lt; Div class = "phishing" ng-hide = "password" & gt; & Lt; P & gt; This site can steal your password ... is not it, but it can easily be & lt; Em> Can & lt; / Em> & Lt; Br / & gt; Be careful where you write your password. & Lt; / P & gt; & Lt; / Div & gt; & Lt; Div ng-show = "password...

expression - SSIS Substring Extract based on qualifier -

I have seen some different posts to find a solution for this. I have a column that includes details following the following formats: string & lt; Numerical & gt; However, the column is not limited to one set of the previously mentioned format, it can be something like this UNI Jpg & lt; 84 & gt; Jpg & lt; 84 & gt; From UNI & lt; 01 & gt; Jpg & lt; 84 & gt; From UNI & lt; 01 & gt; and other variations without any controlled patterns. What I need to do is remove the number between & lt;> in a different column in another table based on that, the string before & lt;> then the UNI will go to a certain table Will qualify for the following numericals. Columns, while JPGs will qualify for other table etc. I have not been able to see the numerical removal work, but it works only to qualify and draw only numerical if it has a given qualifiers string Only one type of token (foo, bar, blot depending on the scope ...

sql - where is something wrong with my query? -

with as StudentTakes (name, id, curriculum_id) (choose name, student.id, course_id Take the student to join.Ed = Student.Id. Select a different name, ID from the student, where in an anonymity (student selection b.name b where b.name = a.name and b.id A.id and A.course_id = b.course_id); I want to find the student's name and id , each of which has the same name with other students, and Students have the same name, they should read in that class which has the same course_id table takes in ID and course_id . The table student has id and name . Those students with similar names are 788 and the result of the above question is 755. Can someone explain that when I change the above code, then the result is 788 . With studenttakes (name, id, course_id) (select name, student.id, course_id from le.ad = student.id by joining the student) select a different name, StudentTakes A to id where a.name (select b.name from StudentTakes b where b.name = a.name and b.id a.i...

excel VBA web service give error METHOD OR DATAOBJECT NOT FOUND -

I have a strange problem with the Excel VBA app. It uses a Web service to connect a MySQL database. All of this runs well in most computers .... However, in some computers it throws an error: error when "method or data is not found" All computers are running Windows 7 and Office 2007. Here is an example of the web service code (where the error occurs) public function wsm_get_portscountries (string as ByVal str_SQLQuery) error on MSXML2.IXMLDOMNodeList GoTo wsm_get_portscountriesTrap set Exit wsm_get_portscountries = sc_WebService1.wsm_get_portscountries (str_SQLQuery) function wsm_get_portscountriesTrap: WebService1ErrorHandler "wsm_get_portscountries" end function The error highlights the bolded part here: sc_WebService1. wsm_get_portscountries (str_SQLQuery) Has anyone encountered the same problem ?? any idea ?? As I said, on most computers it runs well, there is no problem, it only happens with some. Thanks in advance. Additional in...

java - Android: removing elements from list with iterator -

प्राइवेट व्यर्थ लेलटरफ़ॉर्ममेकशब्द (सूची & lt; स्ट्रिंग & gt; ए, सूची & lt; स्ट्रिंग & gt; बी) {ईटरेटर & lt; स्ट्रिंग & gt; मैं = a.iterator (); के लिए (स्ट्रिंग एस: बी) जबकि (i.hasNext ()) {ऑब्जेक्ट ओ = i.next (); अगर (ओ.स्टोस्टिंग ()। बराबर (एस)) {i.remove (); टूटना; }}} मैं अपनी सूची के माध्यम से एक इटरेटर का उपयोग करके पाश के लिए उपयोग करता हूं और यदि एक मैच होता है तो सूची से एक तत्व को हटा दें उदाहरण के लिए: यदि a = [a, y, f, z, b] और b = [a, f] -> आउटपुट a = [ y, z, b ] समस्या है अगर a = [a, y, f, z, b] और ख = [f, a] -> आउटपुट होगा ए = [ a, y, z, b ] और इटरेटर शुरुआत में [[code> a ] मान नहीं निकालता है क्या पुनरावृत्त को रीसेट करने का कोई तरीका है जिससे कि हर बार मैं break इटरेटर शुरुआत से शुरू होता है? या इस मुद्दे को हल करने का कोई बेहतर तरीका है? आप एक इटरेटर को "रीसेट" नहीं कर सकते, लेकिन आप जब आप फिर से शुरुआत से फिर से फिरना चाहते हैं, तो आप एक नया प्राप्त कर सकते हैं इस तरह से: यदि (ओ.स्ट...

c++ - error C3861: 'D3DCompileFromFile': identifier not found -

I'm trying to use the D3D function D3DCompilFromFile and it was working perfectly fine, as long as I Your shader has made a little change and now all of a sudden stopped my program recognizing the D3DCompileFromFile function, I have checked what header / libraries / dll I need to include and they see all for my information. I am using VS2013 Here are some example codes application.cpp HRESULT application :: CompileShaderFromFile (WCHAR * szFileName, LPCSTR szEntryPoint, LPCSTR szShaderModel, ID3DBlob ** ppBlobOut) {HRESULT HR = S_OK; DWORD dwShaderFlags = D3DCOMPILE_ENABLE_STRICTNESS; #if define (DEBUG) || Define (_DEBUG) // To set debug info in the senders, set D3DComIEl_DBUG flag. // Setting this flag makes the shader debugging experience better, but still allows to customize / shaders and the way they will run in the release configuration of this program, DwShaderFlags | = D3DCOMPILE_DEBUG; #endif ID3DBlob * pErrorBlob; Hour = D3DCompileFromFile (szFileName, nullptr...

api - Socrata SODA and Python -

Socrata confirms that there is no official Python API. I would like to know that there is some reason for this that it would be appropriate to learn a language that supports the official API, i.e. Python (and packages like Pundo) are not the best choice for data ranging. The specific things that I want to do include seeing sites like data.lacity.gov, I do not set the dates or other parameters in the database that I see on the browser. I get results of a few months, where I was expecting years or decades. Due to this the lack of API and Python support was seen besides the emerging fork of a failed project. I'm assuming that the APIs allow this high visibility, of course. Old boy at the club We have a Python Library Why not yet, about this you might want to check out. is a short version - this is not because there is something particularly wrong in Python or we do not like it (I think this is a great language), it is high that we have only one There is no in-house exper...

php - Using Mailchimp API with Shopify -

Image
I am trying to use the Mailchimp API to allow site visitors to subscribe to the site newsletter. Currently, with a default action, any signup that Mailchimp offers provides an opt-in email and opens a new email to thank you for subscribing, which I want to save. Instead, if I use the API, then I can set those options to false. The problem is that it does not appear that shopkeeping allows PHP or Ruby in its store code. I am looking for a week to solve, but I am getting hurt. Here's a change for: 1.- Create a Wufu form with: Email Address 2.- Paste this Wufu form to your store. We will repeat the javascript version to paste it. It can look like this 3.- On your Wufoo form, choose to send notifications to your notifications tab, in other applications. On the dropdown, click on MailChimp Ad Integration and follow the steps. You will send all the email addresses in your desired mailchip list. The small problem is that Placeholders on the Wufu form are not disappe...

node.js - Prompt module in NodeJS repeating the input -

Image
I am making an application using Nodes and its one CLI application; To get input from the user, I am using the "quick" module I can use it, but when typing in the prompt of the prompt, each letter is being repeated, though the output is OK! Code is below Please help. Prompt. Start (); Prompt.get ({properties: {name: {description: "What is your name?"} Magenta}}}, function (mistake, result) {console.log ("You said your name is:" Saini + Results Name.cyan);}); Image: var readline = required ('readline'); Var rli = readline.create interface ({input: process.stdin, output: process.stdout}); Rli.question ('what is your name?', Function (answer) {console.log ('you have given your name:' + reply); rli.close ();});

node.js - PassportJS not redirecting after user is authenticated -

मेरे पास प्रमाणीकरण / अधिकृत उपयोगकर्ता के लिए पासपोर्टजएस का उपयोग कर साइनइन अनुरोध की प्रक्रिया के लिए निम्नलिखित कोड है: / (पीओ), (यदि उपयोगकर्ता के पास है, तो) (यदि) {Return next (err);} यदि (! उपयोगकर्ता) {रिटर्न res.json (info);} req.logIn (उपयोगकर्ता, फ़ंक्शन (गलती) {if (err) {return next (err);} res.redirect ( '/ उपयोगकर्ता'); // पर रीडायरेक्ट नहीं करने के लिए / उपयोगकर्ता});}) (रिक, रेस, अगली);}); लेकिन उपयोगकर्ता को मिल जाने के बाद यह / उपयोगकर्ता पर रीडायरेक्ट नहीं कर रहा है। क्या कोई मुझे समझने में सहायता करता है कि वह क्यों नहीं रीडायरेक्ट कर रहा है? यदि आप कंसोल। लॉग स्टेटमेंट को अपनी रीडायरेक्ट लाइन के ऊपर डालते हैं, तो क्या होता है? क्या उस कोड को निष्पादित किया जा रहा है? ऐसा मुझे लगता है जैसे आपका कोड रीडायरेक्ट कॉल पर कभी नहीं जाता।

haskell - Parallel processing in conduit flow -

I really like the concept of a conduit / pipes to implement the operation for a streaming IO source. I'm interested in building tools that work on very large log files, an easy way to write a parallel code of attraction from Pisson / Ruby to Haskel, but I'm not getting any documents about it. How can I install a drain flow which reads lines from a file and works in parallel (i.e. with 8 cores, it should read eight lines, and be handed over to eight different threads to process them, And then to be re-collected etc.), possibly as small as the "function" ... Alternatively, it can be noted that the lines need to be added in sequence Have Or not, if it could affect the speed of the process? I am sure that it would be possible to use ideas from parallel Haskell's book to spray them together, but it seems that uniform work should be performed in the middle of a drain workflow Too easy? Petr Pudlák, in his comment as an example of "internal similarity",...

asp.net mvc - Which data layer / handling architecture or pattern to choose for a non-enterprise web application? (MVC / EF) -

I want some help in designing for my application. This is a fairly straightforward web application, certainly the enterprise class or enterprise -nothing. Architecture is standard MVC 5 / EF 6 / C # ASP.NET, and pages talk to back-end databases in SQL Server, and VS with all tables. EF Designer and I do not think change anytime in the near future. So the super essence is creating "what happens if my database changes" etc. Separation is probably meaningless; I am an operation of one person so that we can not talk to big teams. What do I want to do is a clean way of doing CRUD and query operations on my database, and LINQ operations - but I'm not good with database related code design here are my approaches Fixed class with 1 methods - I should create a stable class (my DAL) which keeps my datacentext and then provides the function that the controller can call directly ud D. MyStaticDBLib.GetCustomerById (id) But when we try to update the records with dis...