Posts

Showing posts from August, 2014

large data - How do i read only lines that fulfil a condition from a csv into R? -

I am trying to read a large CSV file in R. Although the file is large, I just want to work with some of the rows that satisfy a particular condition (such as variable 2> = 3). This is a very small dataset, instead of loading the entire dataset into the dataframe, I would like to read these lines directly in the datafire and then select according to the status. The main reason is that the dataset is not easily fit in the memory of a desktop or laptop. I'm looking for a solution that only uses R, and it does not require dragon or other languages. Thanks. You can use the read.csv.sql function in < Filter by using Code> sqldf package and SQL selection. read.csv.sql : library (sqldf) write.csv (iris, "iris.csv", quotation = incorrect, line name = FALSE) iris2 & lt; - read.csv.sql ("iris.csv", sql = "Choose from file * where SEPOL.LANG> 5", eol = "\ n") < / html>

SQL Query to join 3 tables with the same FK -

Say I have 3 tables: Products (id, product number) Quotation (ID, Quotation Number, Product ID, Order Ed) Order (ID, Order Number, Product Id) For all quotations No order, all orders are not quoted. The output I want to achieve is: no product. No quotation. Currently I can get it in 1 using the combined 2 questions. Is there any way, I can only use 1 question? Add SELECT Product.ProductNumber, Quotation.QuotationNumber, Order.OrderNumber Product. Order the product on the quotation. Id = quotation.ProductId LEFT JOIN Product.Id = Order.ProductId and Quotation.OrderId = Order.Id Union SELECT Product. ProductNumber, NULL, Order.OrderNumber Product Add Order Product.Id = Order. PRODUCTId LEFT JOIN QUOTATION at Product.Id = Quotation.ProductId and Order.Id = Quotation.OrderId where the Quotation Id is NULL Update: If there is no quotation in the product and there is no order, then not shown. The quotation and order has the link specified in the quotation tabl

unity3d - CharacterController and Normal rigidbody Box Collider Collision issues -

I am facing conflicts in various different cases. I will mention each of them and I will wait for your help. Case 1: I have an object in which the pigment controller is connected and running through this plugin: Object that controls the character The box attachments are connected with them. Most of the time the collision works perfectly with natural collision effects such as crates etc. and falling from oxygen to the objects with hard and object boxes are called without any problem. But sometimes, it stops. I try to debugging and searching on Google but nothing has been useful. Case 2: I have an object in which the character controller is connected and moving forward with its "simplemove" function. There can be no collision in this matter, there is no falling effect, there is no natural effect and there is no calling of oncollin, which has hardness and box collider attached. Please help fix these errors, I am trying to fix it for 4 days but no luck, finall

html - Dropdown menu pushes bottom link down -

The dropdown menu works, but it pushes the link from below. I could not understand why this is happening. Having been with breadth or I am missing something please help me please let me remember something. Here is my HTML and CSS and css .linkbar {width: 200px; Height: 300px; Padding-top: 180px; Float: None; Margin: 0 auto; } Ul, ol {list-style: none; Line-height: 25px; } .nav & gt; li {float: left; } .nav li {display: inline-block; Cursor: indicator; Color: #fff; Font-family: 'helvetia'; Font-size: 15px; Text-decoration: none; Change the text: none; Text-align: left; Width: 250px; Height: 35px; line-height: 23px; Margin top: 1px; margin-left: -25px; }. Nav li a: Hover {Color: # 999; } .nav li ul {display: none; Status: Relative; Minimum-width: 20px; Correct: -110px; Top: -30px; }. nav li: hover & gt; Ul {display: block; } .nav li a.current-demo {color: # cc3333; Lesson shadow: none; } jsfiddle here try it out, .linkbar {width: 200px; Height: 300

auto-session-timeout - Ruby on Rails -

I'm new to Rail on Ruby. Mani is trying to end the session time out of auto-session-time. My session is ending. But what do I want to do when the session is over, I should go to a specific link (say www.abcd.com). I want a method even when the session expires. Now after 1 minute when I reload my session, it ends, but it moves to the same page. I have this in my application controller auto_session_timeout 1.minute and in my routes matches 'active' = & gt; 'Session # active' match 'timeout' = & gt; 'Session # timeout' and in my session controller DIF activated P "-------------- Active - ------------- "End Def Timeout P" ------------ Timeout -------------- "Rest Client Post 'http: //www.abcd.com' ,: ApplicationName = & gt; 'ABCD website and application',: URL = & gt; 'http://www.xyz.com/login/' end I think I will find this method when the session expires. But it is not w

grails - Only perform onclick if field is blank -

I was thinking that someone could help me with any issue in Grates. I have a method that a user simply clicks on to read: textField which populates the field with the current user name, but I only need the method if textField is blank so that a user can access other users The user could not override the name if they already entered in. Any suggestions? Thanks! "post-text" itemprop = "text"> given & lt; This jQuery script should do $ (' # name '). Click (function () {if (! $ (This) .val ()) send an AJAX request to get {var name = // username name (this) .val (name);}}); Of course, you must also check on the server side that the username is empty

c# - Capture dropdown change and update -

I have a gridview in one page and I have an update button which updates bulk for gridview. I have 5 columns in my gridview, the first of which 3 columns are not editable and the last two columns have dropdown value. If I change any one dropdown in a page and click Update it, then I save all the rows on that page. I have to capture only the selected row values ​​and only need to update that line item along with how I can capture the old values ​​of this two dropdown and save it in a different table, which is called the History table. Can any suggestion or suggestion to get me this? & asp: GridView runat = "server" id = "gv" auto generated column = "wrong" & gt; & Lt; Columns & gt; & Lt; ASP: TemplateField & gt; & Lt; ItemTemplate & gt; & Lt; asp: dropdown list id = "ddl1" runat = "server" & gt; & Lt; / Asp: dropdown list & gt; & Lt; asp: HiddenField id = "hfddl1Val&quo

How to cast .NET exception to Java Exception using IKVM? -

मेरा समाधान डिजाइन folows के रूप में है + --------- ----------- + | .NET exe | फेंकता है। NET अपवाद | -------------------- | | IKVM | | & lt; ------------ स्वत: रूपांतरण? + -------------------- + वी | जावा जार विधानसभा | जावा अपवाद + -------------------- + जब .net exe एक अपवाद फेंक, जैसे System.NotSupportedException जावा में जार लाइब्रेरी असेंबली, जावा-आधारित विधानसभा को उम्मीद है कि जावा अपवाद फेंक दिया जाता है, जबकि .net लायब्रेरी अपवाद गैर-जावा अपवाद पर आधारित होता है। यह ठीक काम करता है यदि .NET कोशिश {} पकड़ {} को। ikvm जावा अपवाद। लेकिन मुझे नहीं लगता कि यह स्मार्ट तरीका है। क्या जावा अपवादों के लिए नेट अपवाद अपरिवर्तनीय रूप से बदलने का कोई तरीका है? मैं जावा परत में .NET अपवाद नहीं डालूंगा, इसके अलावा मैं अपने एचटीटीपी परत से सीमा पार करने के लिए अपवाद की अनुमति देता हूं। क्लाइंट दृश्य में मुझे लगता है कि .net घटक को सभी अपवादों को पकड़ना और संभाल करना चाहिए और क्लाइंट के लिए बेहतर तरीके से जावा में विफलता का संचार करना चाहिए।

javascript - Binding text inputs to a directives attribute -

I am trying to force a text input to an attribute within an instruction, the reason is that I do not want every time I add a new instruction like this, to present the controller. Is it also possible or do you always have to specify the controller while using the NG-model. Example of code is equal to thousand words, please take a look. As you type input, the amount should be changed. There are two problems with your code: < code> scope $ Watch (attrs.amount, function (v) {...}); & lt; = & Gt; scope $ watch ('100', function (v) {...}); Whoever is not going to change, does not do what you want. Since element attribute will never change, function draw (anime) {var zodiac = etter.mount; Not very useful. You can fix them like this: area. $ watch ('zodiac', function (v) {...}); and function draw (anime) {var zodiac = scope.mount; ... Also see . If you need to set up two-way data-binding in the field of parent, and to

oop - PHP PDO Database class parameter passing -

I want to set up an array with multiple parameters in it, pass it into my database class Currently I only assign one parameter I can send, but generally my SQL queries have many parameters. Sample database method: public function fetchQuery ($ Sql, $ params, $ conn) {try {$ queryparams = array ($ Params); $ X = $ conn- & gt; Ready ($ SQL); $ X- & gt; Execution ($ queryparams); $ RArray = $ x- & gt; Get All (PDO :: FETCH_ASSOC); Return $ Rier; } Hold (exception $ e) {die (print_r ($ e-> getMessage ())); }} Call the database method: $ params = $ vendID; $ Sql ​​= "Contact email where Vendid =?" Choose; {$ Email = $ db- & gt; Try Fetchquio ($ sql, $ params, $ conn); $ eCount = Count ($ email); If ($ eCount> gt;) {foreach ($ line $ email) {$ eArray [] = $ line ['email']; }} Else {resonance "email addresses not associated with this vendor"; }} Hold (exception $ e) {die (print_a ($ e-> getMessage ()); } Now say that m

javascript - jquery .find/.closest/.next -

I have a row that is below 4 cells & Lt; / TD & gt; & Lt; Td style = "width: 116px" & gt; & Lt; Asp: checkbox runat = "server" id = "rcp" type = "checkbox" enabled = "wrong" /> & Lt; / TD & gt; & Lt; Td id = "RC2" class = "contLabel" & gt; Related companies are used to improve the results? & Lt; / Td> & Lt; / TR & gt; And under the table, I have a text box inside the box, the code is below: & lt; Div id = "rcn" class = "panel2" style = "width: 100%;" & gt; & Lt; div class = "contentTB" & gt; & Lt; ASP: Text Box ID = "RCnt" Runat = "Server" Textual = "Multiline" width = "99.5%" enabled = "wrong" & gt; & Lt; / Asp: text box & gt; & Lt; / Div & gt; & Lt; / Div & gt; What I want to achieve is the moment, I click on

python - Which Django template layout is better? -

कौन सा लेआउट बेहतर है (Django 1.4 +),: project / templates / base .html # प्रोजेक्ट / टेम्पलेट / ऐप / base.html # परियोजना स्तर पर कुछ ऑप्शन कोड, वैकल्पिक प्रोजेक्ट / ऐप / टेम्पलेट / ऐप / बेस_पेप / प्रोजेक्ट / एप / टेम्पलेट्स / ऐप / बेस_एप_ इंडेक्स.html base_app_index.html base_app.html विस्तारित करता है - ऐप स्तरीय base_app.html आधार.html विस्तारित करता है - प्रोजेक्ट स्तर। या यह पसंद है (एक परियोजना के साथ क्षुधा के बीच कोई साझा नहीं) project / app / templates / app / base_app.html project / app / templates / app / base_app_index.html < ul> बस base_app_index.html base_app.html विस्तारित करता है संदर्भ: से: एक base.html बनाएं टेम्पलेट जो आपकी साइट का मुख्य स्वरूप और अनुभव रखता है। प्रत्येक के लिए base_SECTIONNAME.html टेम्प्लेट बनाएं अनुभाग ??? आपकी साइट का उदाहरण के लिए, base_news.html, base_sports.html। ये सभी टेम्पलेट्स आधार 2.0 का विस्तार करते हैं और अनुभाग-विशिष्ट शैली / डिज़ाइन शामिल करते हैं। प्रत्येक प्रकार के पेज के लिए व्यक्तिगत टेम्पल

mysql - Duplicate entry for key 'PRIMARY' .Ignoring the spaces for strings -

mysql> Create table primary 2 (boom text, id int, primary key (boom (5))); The query is ok, affected 0 rows (0.04 seconds) mysql & gt; Include primary 2 values ​​('viok', 1); The query is fine, 1 row affected (0.00 seconds) mysql & gt; Include primary 2 values ​​('viok', 1); Error 1062 (23000): Key 'primary' mysql & gt; For duplicate entry 'viok' include the primary 2 values ​​('viok', 1); Error 1062 (23000): Duplicate entry of 'viok' for key 'primary' STRING 'viok' and 'viok' are different. How to add a wire with spaces? Question: How to add a string with spaces? A: This is not possible. In relation to how MySQL stores these as index entries, the TEXT values ​​'viok' and 'viok' are not unique. It is: If a text column is indexed, then the comparison of the index entry is end-padded. This means that, if index specific values ​​are required, there will be dupli

html - Actionscript 3.0 Reg Exp Find first URL, Ignore Email -

I've got some code where I have a loop with string. Search () to parse a string of HTML Its purpose is to find any valid URL and to properly engage everyone with the HREF tag while ignoring anything like email address. The problem is how can I modify the regular expression, it either brings back or highlighted the part of the email address after the @ sign or it ignores or ignores everything. An example string will be: " Weisglegrace: " Where weaselgrease.weasel.grs' will be identified as a proper URL and ignore 'weaselgrease@weasel.grs' will be given. Do I currently have the code / ([fh] t {1,2} ps ?: \ / \ /)? [\ w -] + \. \ w {2,4} / I know that this is not simple, but there is no need to be complicated yet. / p> I have tried conditionally and without any effort I can be remembered, but my search and even people playing with me have not brought me closer. In the end I do the following: Identify the symbol of a valid URL string -

node.js - Why it use client.set/get instead of Object property? -

all. I have a question in socket.io socket. O, it provides socket.Set / method for storing and retrieving the value related to the socket. It seems useful but I have a question about it. Instead of using the socket.Set (key, value) I think the object properties can be an alternative solution like this socket [key] = value What is the use of user socket Does any special benefit / substitute property get / get profit? Like Cluster Detailed Replication etc. Thanx in advance I have analyzed the socket.io source code. Uses an internal set / memstor, it stores the value for the property property and if it uses rediscover, the set value is stored in Redis. So the value to other nodes Js can be shared using Redis, by example.

jQuery: how to optimize/clean this basic animation code? -

I am trying to make the hand animation to attract the shape, it works fine, but the code is long and Does non-professional look it's any solution to make this animation short and professional? Here's an example, my actual animation is too long, but it has the same idea: $ (hand) .mate ({top: 30, left: 255}, function () {$ (hand) .mate ({top: 130, left: 250}, function () {$ (hand) .mate ({top: 140, left: 265}, function () {$ (an_element). fadeOut ();});});}); Any suggestions? You can write it as: $ ( Hand) (top: 30, left: 255}). Value ({top: 130, left: 250}). Value ({top: 140, left: 265}, function () {$ (an_element). FedEight ();}); update: You can also write it in this way: handcurArr = [[30,255], [130,250], [140,265]]; (i = 0; i & lt; hand hirerr.langham; i ++) {$ (hand). Sammet (Top: Hand Coirer [i] [0], left: hand crow Array [i] [1]}); } / * 400 is the speed of the default animation * / $ (an_element) .delay (400 * handCoorArr.length). Fade

python maya: Align group pivot to supplied position -

I have a script here where I will create a bundle of circle and place them in a group. Then I pitch the groups in the bounding box. In the end, I want to align the position of the group in the position of the position by collecting the first locketers position. How do I fix it? Currently it does not seem to be aligning properly. The error is in the last line of the code. Thanks to the advanced people Importing CMD cmds.file (new = true, f = true) a = cmds.spaceLocator (n = 'pipeCtrl_00') x = random .uniform (- 10,10) z = random.uniform (-10,10) cmds.xform (a, t = (x, 0, z)) Select all locators that you want to decrease on locList = cmds. ls (type = 'locator') nodes = maya.cmds.listRelatives (locList, type = 'transform', parent = true) Sorted (nodes) point = [] # Nodes in position number for: pos = cmds .xform (n, q = true, ws = true, t = true) points.append (pos) # Create 2D grid of circle numRows = 4 numColumn = 4 # Create empty groups for nodes nodeGroup =

javascript - Why is rowsAffected not returning an integer -

I am calling execution SQL statement for SQLite on iOS. I'm using success [and error] callback methods so that I can confirm my records affecting numbers. When it comes back, it gets 3 well defined variables, but when I try it is in a mascara service ... here's my code: $ DBService.ExecuteQuery (script, the ultimate function (insertId, rowsAffected, rows) {window.logger.logIt ( "rowsAffected:" + rowsAffected.toString ()); if (RowsAffected == 1) {Deferredkreject ( "record failed to update. question 1 record has not been affected");} else {Deferredkresolve ();}}, function (error) { deferred.reject ("Failed to update record." + T Ti. Message);}); When I break into the debugger and hover over rowsAffected variable, it does appear as if it is a property of a class, where it shows: insertId, rowsAffected = 1 , And the rows. These success callbacks have 3 parameters. When I'm just walking around the rows, why is all this 3? Also, when

java - TO_TIMESTAMP in Insert Statement String -

I am creating an Oracle insertion statement in Java and I need to include the timestamp given below. Works below, but I want to make it more dynamic Is there another way to make TO_TIMESTAMP in addition to hardcoding in my inclusion string? string sqlStmt = "insert in table (date_create); sqlStmt + =" TO_TIMESTAMP ('2008-03-17 21:43 43: 58.000000', 'YYYY-MM-DD HH24: MI : SSFF ') "; Both Java and SQL developers provide you with bind variables (Date_create1) ' Now you only have one timestamp parameter date_create1. To create and pass it.

excel - Need to copy certain data over workbooks -

New for VBA here. I have been stuck on this problem for a while: Essentially, I need to create a macro that copies specific copies of data from a sheet to specific data, to specify the user Grab it is that all the data is in a column (B), not all the entries in the column are relevant entries; Some are empty and some other data that I do not want Only entries that begin with 4 digits, they want me to see how the repetitive copy works; Here's how I came from: Define the direct deployment = range ("B2") as the direct director if dater = False then "not specified date" MsgBox If string string = "B5" in the form of shading = "" Sheetin = "" MSBBC "is not specified in the input sheet, exit the sub if the string wobbin = range (" B4 ") like dim wbin if wbin = "" MsgBox "input workbook is not specified "Exit the subtitle" if the string sheet = range ("B9") as the signal sheet, if

entity framework - EntityFramework 6.1 cannot connect -

I have an orbit library which I have been using for more than a year, which recently upgraded to EF 6.1 After the work has stopped working. I have tried various types of ways to pass my context class constructor in the connect string, but when I correctly pass the string, I always get: '(((System.Data.Entity.dibcontext) (reference) .database. Connection) .ServerVersion' type 'system threw an exception. Unknown Operation Exception ' and the connection state remains closed. Here's my AppConfig: & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Configuration & gt; & Lt; ConfigSections & gt; & Lt; Section name = "Antennaframework" type = "system.data.intninal.configfile.entitieframeworksite, entity framework, version = 6.0.0.0, culture = neutral, public keycon = b77a5c 561934a090" expectedprimation = "wrong" /> & Lt ;! - For more information about entity framewo

optimization - CSS: Duplicate Selectors vs. Duplicate Declarations -

Image
Which CSS writing techniques provide technology more efficiently: 1) The same style Repeat property Example 1: Duplicate font-size, but less rule Code> P {font-size: 1em; Color: # 000; } H1 {font-size: 1em; Color: #fff; } or example 2: more rules but a font-size p, h1 {font-size: 1em; } P {color: # 000; } H1 {color: #fff; } This is the best source I found on this topic. I demonstrate that performance Duplicate property / value pairs are very bad: < / P> "Long" refers to Gregory as "bloated" format where the qualities are repetitive in many selectors.

c++ - qt simultaneous MySQL queries in different threads = crash -

I have written a multi-layered QT5 app that is written in C ++, where each thread is written in the same database. Used to be. I share the database QSqlDatabase variable similar to a thread, but each thread creates its query I'm crashing regularly and I have taken this information in the time of an accident: driver error [QVMSQL 3: Unable to store results of statement] Database error [coming out of sync; You can not run this command anymore] Type [2] number [2014] First of all, can I query mysql together in multiple sources simultaneously? If so, do I need to protect the SQL call with a Mute X? Or I need to post more information .... UPDATE: I have a separate DBManager thread which manages to open / close DB, and writes simple database. I did this because my db used to go offline, and I do not want the second thread to last for 2 minutes, while a db open fails. No, I have more threads that report, and DB should recover enough data. As mentioned below, sharing the DB

XML output using javascript function -

मेरे पास निम्न XML है: & lt; root & gt; & LT; प्रस्ताव & gt; & LT; EVENTTITLE & gt; फुटबॉल & lt; / EVENTTITLE & gt; & LT; catdesc & gt; खेल & lt; / catdesc & gt; & LT; eventprice & gt; 10.00 & lt; / eventprice & gt; & Lt; / प्रस्ताव & gt; & Lt; / जड़ & gt; मैं एक जावास्क्रिप्ट फ़ंक्शन का उपयोग करके इस एक्सएमएल को एचटीएमएल में एक समान दृष्टिकोण के साथ कैसे रूपांतरित कर सकता हूं: (जहां उत्पादन 'रेटवाल' var में संग्रहीत है) फ़ंक्शन डिस्प्ले XML (डेटा) {var retval = ""; // एक्सएमएल टैग दस्तावेज़ प्राप्त करें। एटलमेंटबीआईआईडी ('डिस्प्ले')। InnerHTML = रिव्लैवल; } (मैं मूल रूप से पता है कि कैसे एक्सएमएल टैग प्राप्त करने के लिए और 'retval' var में उन्हें स्टोर करने की आवश्यकता है) एक xml दस्तावेज़ में नोड्स एक्सेस करना html में नोड्स तक पहुंचने के समान है। उदाहरण के लिए: var priceNode = xmlDoc.getElementsByTagName ( "eventprice") [0]; var pric

python - Extracting data from txt files -

OK, GIT is using it from Bash. After running with me, I have securities and exchange commission db < code> txt file which is Edgar on my hard drive. I'm using Win 7. txt has the HTML tag in the files. I was wondering because the files in the text are in this strict format. If the SEC agency has a way to remove certain things from the early nineties, then we say that & lt; us-gaap: iTaxxPensBenfit Reference = "eol_PE9523 ---- 1310-K0013_STD_365_20131231_0" decimal = "-3" id = "id_3914012_7 F3BEF88-8CD1-49E7-8A78-91A091178D1B_1_13" Unitof = "ISO 4217_USD" & gt; 40315000 & lt; / us-gaap: iCarac expensebnit & gt; What is strict with the use of a script or GIT repository after the format? For example, can anyone remove the hole table from the TXT file? Can any of these come in the gate and do such a job? No work can be done, no library, guit, scripts can be picked up with some work and amendment. I read the

JQuery not returning select box values if no element is selected -

Image
Not sure what is happening here, I should remember something. I have two selected boxes and users can choose those elements to which they want to download data elements, hold the screen here: Everything is very good when the user moves some elements back to the" Data Concepts "box, which has no selected elements in the" selected data " Does not leave, as seen here: Here is the code that is gaining the values ​​of" selected data "box: var ExportSel = []; $ ('# DataList2') Each (function () {ExportSel = $ ('# DataList2'). Val ();}); But it gives empty array if nothing is selected, regardless of the number of elements in the "empty data" box. However, when I see it in firebug, it shows that elements and value selectors are present in the box. Am I understanding the .each function, the wrong function or something even more fundamental? A great thanks in advance, always impressed by the Stack community! a &

linux - init.d/mysql - Default configuration is blocking one of my instances on startup -

I am facing an issue which was spread last weekend. One of my servers was rebooted and when the server came, a default instance of mysql was started which is configured on the installation. This port uses 3306 as the default and blocks one of my examples in the future. How can I remove this default instance from booting and how to boot my installation in /etc/my.cnf? I think what is happening is going to / var / lib / mysql and start an example based on some default configuration because There is not a my.cnf file present here, but I am getting this code init.d: ​​ #display mysqld_pid_file_path = if test -z " $ basedir "then basedir = / usr bindir = / usr / bin if test -z" $ datadir "then datadir = / var / lib / mysql fi The my.cnf file is not visible which it is configured Connection options pulling. My data directories change per instance and they are all specified in the /etc/my.cnf I help with this problem Appreciate any effort spe

JQuery for loop of css class names in slidedown() -

Is it possible for a loop to go through the loop and assign a specific code to different CSS classes? My CSS classes are defined in the template.css file (there are 100 squares with the same name), then it should clearly look like the code given below, which is not in BitD? <$ {'(outside'. '$') ($ "'(' .in '+ i) .hide (); $ (' out '+ i) .hover (function () {$ ('.in internal' + i, this) .stop (true, true) .SlideDown (200);}, function () {$ ('internal' + i, this) .stop (true, true). slideUp (200);});}); } and my classes are: outsude1, out of 2, out of 3 ... inner 1, inner 2, inner3 ... Yes, this is possible, but due to a very common peeph in JavaScript your code will fail: your loop's Each recurrence creates a series of functions, and each of these functions stops at same variable i later, when the functions are executed, they < code> i < / code> will have all the same values ​​for a single s

ms access - Asp.net+MsAccess WebApp is not correctly working on the server -

Work properly on local but on server; Only work for selected questions. How can I fix this? Please help me T. You need a grant to read in the folder that contains the MSAccess database (.mdb / .msacc) file / Write permissions The easiest way is to give full permission to "everyone" group (only on that folder). Use "explorer" (MyComputer) to set it.

c# - .NET Regex To Remove Line Breaks Within Quotes -

I am trying to clear a text file so that it can be imported into Excel, but in many text files Inner line breaks. File of double quoted fields has been delimited. The example would be: "12313" \ t "1234" \ t "123 5679" "test" \ t "test" \ t "test" "test" I need to remove line breaks like this: < / P> "12313" \ t "1234" \ t "1235679" \ t "test" \ t "test" "test" \ t "test" \ t "test" "12313 "\ t" 1234 "\ t" 1235679 " " \ t "is the tab delimiter. I saw many other solutions on SO, but they do not seem to deal with many lines. We have tried to use several CSV parser solutions but for this scenario they do not seem to work. The goal may be to give the full string in a regedx expression and return it between quotation marks with all line breaks, whereas the line two outside the quotat

php - Zend Framework 2 - Separate Environment Development/Staging/Production/Testing -

I am having trouble finding those information. It is possible to split into the environment in ZF1 development, production, scaffolding and testing. In ZF1, I have a database configuration different for each type of environment data. I have 4 settings ready and the files are written in application.ini. I In ZF2, I suspect how to make these 4 environments, I actually use 4 in my application cycle. I have many files on / config / autoload cache.local.php global.php zenddevelopertools.local.php zfcuser.global.php The documentation says: By default, this app is < / p> 'is configured to load all the configuration. / Config / autoload / {*. } {Global, local} 'php 2 indicates that only the environment, global and local in my development machine My main question: 1 - How does the structure recognize the environment, like Global / Local? ZF1 was set in index.php by line defined ('APPLICATION_ENV'). | Define ('APPLICATION_ENV' (getenv (

get contents of data array from fwrite parameter - to print out data with objective-c -

Image
मेरे पास कुछ कोड है जो इसे पढ़ता है: int SaveTemplateToFile (चार * नाम, FTR_DATA खाका) {// एनएसएलॉग (@ "फ़ाइल में टेम्पलेट को सहेजने की कोशिश कर रहा है"); फ़ाइल * एफपी; fp = fopen (नाम, "w + b"); अगर (एफपी == नल) वापसी गलत; इंट रिजल्ट = फ्राइट (टेम्पलेट। पीडीएटा, 1, टेम्पलेट। डीएससीआईएस, एफपी) == टेम्पलेट डीवसिज़? सही गलत; fclose (एफपी); वापसी परिणाम; } मुझे समझ में आ रहा है कि यह Template.pData से प्राप्त फाइल को नाम में संग्रहीत फ़ाइल में लिखा जाएगा। चर। यह .tmpl की सामग्री पढ़ता है: कार्य / प्रश्न: मैं बस इस डेटा को एक चर में संग्रहीत करने की कोशिश कर रहा हूं ताकि मैं इस डेटा को अपने वेबसर्वर डेटाबेस में भेज सकूं और उसे एक में संग्रहीत कर सकूं बाद में समय की पुनःप्राप्ति के लिए ब्लॉब फ़ाइल। यह मुझे fwrite फ़ंक्शन से छुटकारा पाने की भी अनुमति देता है, जिसे मैं स्थानीय रूप से भंडारण के बजाय सबबर्सवर पर सब कुछ भंडारण के बाद की आवश्यकता नहीं चाहता। मुझे वर्तमान में इसे पढ़ने में परेशानी हो रही है जानकारी। इस डेटा सरणी को आउटपुट करने की कोशि

html - How to get QR code to open javascript bookmarklet -

I have a JavaScript bookmark, when you open, runs a script that is a mailbox link that puts a timestamp in the body is. The QR code will open the mailto links completely, but I need to have a timestamp in it, then I use it: javascript: location.href = 'mailto: example @ gmail .com? SUBJECT = Data and Body = Time: '+ (New% 20 Dot.) GetTime ()) This will run on my iPhone or iPad as a bookmark, Instead of opening the URL, click the QR code to open JavaScript inside Safari. The problem is with the QR code generator, they automatically enter http: // at the beginning of all the URLs that the script closes. I can send it as plain text, but I It can not be found to open in Safari. Any thoughts on how this can be done? Even a dumb enough QR reader knows that he will not be able to put http: // in front of the link, but will still try to open it in Safari? Use a URL that automatically runs the script, but it will not work without an internet connection, an

Spring Jdbc binding java.sql.timestamp to oracle date issue -

I am currently using the NamedParameterJdbcTemplate of Spring so that some values ​​are inserted into a SQL When I am injecting two java.sql.Timestamp values ​​in SQL, which is the Orkel column type DATE and executes, I am having performance issues I It is extremely slow (about 4 minutes), but when I run it through a SQL developer, it is implemented in less than one because I have that code There is an index on the column. Here is a snippet of my debug log: Tess * Determine * Select * from * test_loom where events & gt; =: Startups and Events & lt; =: Endadet and Logename =: Login and Channel Ind =: Channel Ent 2014 -04-21 15:02:50 48416 [http-8080-1] DEBUG org.springframework.jdbc.core.JdbcTemplate- Executed Ready SQL Query 2014- 04-21 15:02:50 48417 [http-8080-1] DEBUG org.springframework.jdbc.core.JdbcTemplate - Perform the finished SQL statement [select from test_table.test_column * where events & gt; =? More events & lt; =? And loginname =? And chan

php - How to put a value in a checkbox using Laravel? -

What I'm trying to accomplish is something like this: & lt; Php if (session :: is ('vaccine')) {$ tk = session :: mill ('vaccine'); } And {$ tk = 1; } If (Session is :: ('NTK')) {$ ntk = Session :: Mill ('NTK'); } And {$ ntk = 0; }? & Gt; {{Form :: open (array ('url' = & gt; 'envulen'))}} < Table & gt; & Lt; TR & gt; & Lt; TD & gt; {{Form: submit ('toepassen')}} & lt; / Td> & Lt; TD & gt; {{Form :: checkbox ('tzdcrktic', & lt ;? php $ tk? & Gt; true)}} tectructic (vaccine) & lt; Br> {{Form :: checkbox ('nitizidricit', & lt ;? php $ ntk? & Gt; false)}} neat-tjdctitich (NTK) & lt; Td> & Lt; / TR & gt; & Lt; / Table & gt; {{Form :: Closing ()}} In any way, it does not work in my Form :: Checkbox, so my question is how can I complete it? Whatever I tried was: Session :: Mill ('vaccine', 1); Session

c# - Controller cannot be found -

I am working on an asp.net mvc 4 site. I have an Artist Controller within the Controllers folder. East> routes MapRoute (name: "Artist API", URL: "API / Artist / {Action} / {ID}}", default: new {controller = "artist", verb = "go", id = UrlParameter.Optional}); When I try to test this call, I get: No HTTP resource found which matches the request URI . No type was found which matches the controller named 'Artist'. This works if I remove the API part from the path: url: "artist / {action} / {id}" I am not using webapp, just a general controller. Why did not the controller get on this route thanks! Make sure that you do not have any WebApiConfig.cs file in your App_Start folder to your root definition Can override.

jquery - How do I cancel a promise inside the "done" callback? -

मेरे पास निम्न परिदृश्य है ... $। जब ($ .getScript ( 'script.js')) .done (function () {if (scriptIsAlreadyLoaded) {// मैं यह वादा रद्द करना चाहता हूं। // मुझे अब script.js नहीं चाहिए क्योंकि // यह पहले से एक अन्य / उदाहरण में लोड हो चुका है ।} // मैं नहीं चाहता हूं कि यह ऊपर चलने के लिए अगर उपरोक्त // स्थिति सही है। DoStuff ();}); मैं समझता हूं कि यह done () के अंदर करने से परिभाषा के बाद से ज्यादा मायने नहीं रखता, यह वादा रद्द करने में बहुत देर हो चुकी है। तो यहां सबसे अच्छा तरीका क्या होगा? नोट: इस स्निपेट को कई बार निष्पादित किया जा सकता है। यही कारण है कि मैं स्क्रिप्ट को एक से अधिक बार लोड होने से बचना चाहता हूं। यह .done () हैंडलर के अंदर एक वादा रद्द करने का कोई मतलब नहीं है। जब .done () हैंडलर को कहा जाता है कि ऑपरेशन पहले से ही पूर्ण है (ऐसा लगता है कि आप पहले से ही जानते हैं)। इसलिए, जब आपका .done () हैंडलर कहलाता है, तो आपकी स्क्रिप्ट का लोड पहले ही पूरा हो चुका है। रद्द करने के लिए कुछ भी नहीं बचा है। अगर आप अपने कोड को स्क्रिप्ट को

Why is the standard error different in these two fitting methods (R Logistic Regression and Beta Regression) for a common dataset? -

I try to understand the difference between two different fitting methods for a data set with the rotating response variable I am doing The response variable is a fraction and therefore there is a limit of [0,1] I have revealed through my Google search that there are many different methods because it is a normal operation. I am currently interested in the difference between stock R GLM fit and beta regression which is given in the Bitterag package. I am using the gasoline yield data set from the "betareg" package as my sample data set. Before I post the code and the results of my two questions are as follows: Am I initially using RGL GLM in RT? Why are there fewer reasons than standard errors for anti-insensitive regression due to standard errors in beta regression? R setup code library (beta) data ("gasoline yield", package = "bitrate" Beta regress code "betareg" package gy = betareg (yield ~ batch + temporary, data = &qu

Hadoop Spark (Mapr) - AddFile how does it work -

I'm trying to understand how it works. Say I have 10 databases on HDF, this is a 100 file, which I want to process with SPARC. In the book - Fast data processing with SPARC This file needs to be available on all nodes in the cluster, which is not much of a problem for a local Mode If you are in a distributed mode, you want to use Spark's addFile functionality to copy the file on all the machines in your cluster. I can not understand that, the copy will be sparking on the file on each node what should I need to read the file that is present in that directory (if it Directory exists on that node) Sorry, I'm a bit confused, how to handle the above situation in SPARC. The relation is itemprop = "text"> submit SparkContext :: addFile in a misleading context. This is a section titled "Loading data in RDD", but it immediately gets separated from that goal and introduces SparkContext :: addFile as a way to get data in SPARC . Over the nex

coq - the decidable equality definitions for mutually defined inductive types -

अब मेरे पास एक परस्पर परिभाषित आगमनात्मक प्रकार ए और टी है: प्रेरक एक: प्रकार : = | मूल: स्ट्रिंग - & gt; (स्ट्रिंग * स्ट्रिंग) - & gt; एक | जटिल: स्ट्रिंग - & gt; सूची ए - & gt; नेट - & gt; सूची टी - & gt; (स्ट्रिंग * स्ट्रिंग) - & gt; एक | जटिल 2: स्ट्रिंग - & gt; सूची ए - & gt; टी के साथ: प्रकार: = | t_intro: स्ट्रिंग * a * (सेट स्ट्रिंग) * (सेट स्ट्रिंग) - & gt; टी। मेरी समस्या यह है कि कैसे उनमें से प्रत्येक के लिए परिभाषित समरूपता परिभाषा के सबूत हैं? परिभाषा a_dec: forall (xy: a), {x = y } + {X & lt; & gt; y}। परिभाषा t_dec: forall (x y: t), {x = y} + {x & lt; & gt; y}। आपके पास यहां दो अलग-अलग समस्याएं हैं: आप परस्पर आगमनात्मक प्रकार हैं, इसलिए आपको एक पारस्परिक निश्चित बिंदु घोषित करने की आवश्यकता है, उदाहरण के लिए फिक्सपॉइंट ए_ डीसीई (xy: a): {x = y} + {x इस तरह से कॉक एक आपसी फिक्सपॉइंट उत्पन्न करता है जहां आप दोनों प्रेरण अवधारणाओं का उपयोग कर सकते हैं (हालांकि गार्ड की स्थिति से सावधान रहन

How to get the real height of a character (fontmetrics/graphics2d) -

I currently need to get the actual height of a character. I know about functions like getDecsent (), getAscent () ... but they only allow to obtain value in relation to hole font (in this context). I also tried to use GetStringBounds (), but this is the same story. Like the title, I am looking for a way to get the height value of only one four at a time. For example 'N' is more then 'N', 'I' is a bit higher then 'I' and so on Thanks for your time use this Rectangle2D bounds = font.getStringBounds ("here's your string Apply ", context); // font which you want, can be set / / My suggestion is that you use the same font for both characters / context font // Instead of printing it you can do it another time and compare 2 strings

vbscript - Determine if a program started through my script is still running without using minmgmts:// -

संक्षिप्त परिचय मेरे पास एक एसएसडी है और मैं अक्सर फिल्मों को रिकॉर्ड करता हूं Fraps। दुर्भाग्य से, मेरा एसएसडी इतना बड़ा नहीं है और मेरे द्वितीयक हार्डड्राइव फिल्मों को रिकॉर्ड करने के लिए फ़्रेप्स के लिए तेज़ पर्याप्त नहीं है मैंने एक स्क्रिप्ट लिखने का निर्णय लिया जो मेरे लिए फ्रेप्स शुरू करेगा, और फिर जांचता है कि क्या फ़्रेप्स रिकॉर्डिंग कर चुका है, फ़ाइल को मेरी दूसरी हार्डडिस्क पर ले जाता है और इस घटना की मुझे सूचित करता है। यह काम करता है महान समस्या यह है कि जब मैं फ़्रेप्स बंद करता हूं, तब स्क्रिप्ट से बाहर निकलना चाहता हूं। एक ही रास्ता VBScript ऐसा करने में सक्षम होने लगता है (कम से कम, जो हर किसी के लिए सिफारिश करता है) प्रोसेस्लेट को पूछता है कि क्या कार्यक्रम सक्रिय है। क्योंकि फ्रेप्स एक भारी कार्यक्रम है, और मैं एक ही समय में कई कार्यक्रम चलाता हूं, बस इस सूची से पूछताछ करने से मेरी रिकॉर्डिंग में अंतराल की वृद्धि होती है। यह केवल तभी होता है जब मेरे पास बहुत से प्रोग्राम खुले हों, लेकिन कार्यक्रम खुद ही समस्या नहीं हैं, केवल राशि। यह देखते हुए कि एक जांच प

group by - Neo4J: Query to return nodes grouped by relation attributes? -

In my case, nodes are associated with one or more of the relation type similar in this regard The two attributes are fldName and value . For example: (x) - [r: same {fldName: 'e-mail', value: 'name @ xycom'}] - & gt; (y) (x) - [R: same {fldName: 'phone', value: '123-45-67'}] - & gt; (y) (q) - [r: identical {fldName: 'e-mail', value: 'other @ xycom'}] - gt; (p) (q) - [r: same {fldName: 'phone', value: '891-23-45'}] - & gt; (P) (S) - [R: Like: {FDLNname: 'E-MAIL', Value: 'NEW @xcom'}] - & gt; (T) Question: 1) What's the query to return the following different groups : group 1: x, y; Number of Relationships: 2 Group 2: Q, P; Number of relationships: 2 group 3: s, t; Number of relationships: 1 2) Is it possible to write the value of the relationship properties without prior knowledge of this query? what you want to achieve, I suggest that you use the label Can be

javascript - 'Culling' in a voxel world -

Image
I have the world that is full of the vox, to say that my world is 320 * 320 * 96 voxels That is to fill the whole world in the rubbings of my video cord so there is no difference in moving the GPU to a new "block". The amount of face generated for displaying Wickslawarld should be easily brought to the memory of the modern graphic card. However, now the problem is that how can I cope with not showing some parts of that world, I want to limit it to see this world (for example) 128 * 128 * 96 and variations around the world or camera to show different parts. To demonstrate my problem, a ground with a (simple) white "can be seen" field, I just restrict the view of the white part to the right WebGL / three.js I'm looking for functions. You can remove the waxles that you do not want to display from the scene. scene.remove (mesh) And when you want them, add them to this view and display them. scene.add (mesh) I recommend splitting into your

php - safely load HTML from user into textarea -

I am using TinyMCE 4 on a project, where I'm able to pre-populate the texture with HTML Should submit through the post (for server side error handling without deleting all of their work) I know that a Teddera works like a tag, that HTML is not parsed in the dom inside, so most site demos Shows: & lt; Textarea name = "demo" & gt; & Lt ;? = $ _ POST ['Demo']? & Gt; & Lt; / Textarea & gt; But what happens when a user submits HTML in which an unmatched & lt; Textarea & gt; or & lt; / Textarea & gt; tag? Is there a standard way to manage this risk? use htmlspecialchars ($ _ POST ['demo']) in php When outputing

powershell - Find a list of stopped services using user input wildcard -

I am trying to create a power shell script that, when executed, a specific, user input wildcard. I would like to save the wildcard as a string, then used here in the service that I have done so far. $ SearchPrefix = $ ("Specify search prefix": ")" go-service | where-object {$ _. Position-eq "stopped"} | where I'm new to learning PowerShell, so I'm a little bit up-to-date and I'm new to learning PowerShell. Any help stuck will be appreciated. change -ike - match -accent is for strict similarity -mail pattern A If you ask for a prefix, then add a permutation accent at the beginning: $ _ .name -mail "^ $ SearchPrefix" One side note In the form, your two previous foreach is useless and will block the ouput AFAICS. gate-service | where-object {$ _. Position-eq "stopped"} | where-object {$ _name-match $ SearchPrefix} The output will be something like this Status Name DisplayName ------ --- -

linker - Undefined reference to constructor and destructor c++ -

The error I am getting is: = === Build: Debug in Building Sim (compiler: GNU GCC compiler) === | Obj / debug / main.o || `__static_initialization_and_destruction_0 'in the function: | Reference to '/home/josh/Documents/cpp/building_sim/main.cpp | 15`` Reference: User: ~ User ()' | Regarding '/ user: user' References referred to in context of `home/josh/Documents/cpp/building_sim/main.cpp | 20`````` Building :: ~ Building () '| Regarding '/ user: user' || === Build Failed: 4 Error (), 0 Warning (0 Minutes, 0 Seconds (Seconds)) === | I have been facing this error for a few days and I have seen 14-18 sources who answer this issue which do nothing for me. At this point my project is made up of five files: main.cpp user.hpp user.cpp building.hpp building.cpp main. Cpp link building.hpp and user.hpp, create and link user.cpp with their respective header files and building.cpp links user.hpp. I have tried to make this project several times in

c# - HttpListener running on Ubuntu/Mono returns 400 bad request -

मेरे पास एक समस्याग्रस्त समस्या है। Ubuntu 12.04LTS और मोनो (मोनो-पूर्ण-2.10.8.1) चलने वाले नेट अनुप्रयोग स्थानीय हॉस्ट पर एक एचटीटीपीएलस्टनर: 80 9 0 कभी भी मैं सर्वर से अनुरोध भेजता हूं कि वह 400-बुरा अनुरोध वापस भेजता है। मुझे लगता है कि यह एक उबुंटू बात हो सकती है क्योंकि: - सटीक एक ही आवेदन प्रक्रिया Windows पर चलते समय ठीक से अनुरोध करती है वास्तव में, यह अनुरोध करता है कि क्या यह MSFT CLR के भीतर या Windows CLR के लिए मोनो में क्रियान्वित कर रहा है। - अन्य लॉगिंग के अनुसार बाँध सफल होता है - मेरे पास संदर्भ प्राप्त करने के तुरंत बाद लॉगिंग स्टेटमेंट है, जैसे: try {var context = httpListener.GetContext (); लॉग। डिबग ("अनुरोध प्राप्त"); // हेन्डलर्स, आदि भेजें ...} पकड़ (अपवाद पूर्व) {लॉग। त्रुटि ("एचटीटीपीएलस्टेर त्रुटि: {0}", पूर्व। मेसेज); } अब Ubuntu सेटअप पर, यह लॉगिंग स्टेटमेंट कभी भी रिपोर्ट नहीं किया जाता है, लेकिन मैं अभी भी 400 वापस प्राप्त करने का प्रबंधन करता हूं, इसलिए मैं केवल मान सकता हूँ कि HttpListener को कभी भी अनुरोध नहीं मिला है य

How to Plot a US state in R? -

Image
I can interview data for a particular situation across the entire US map. But I want to plot map of the state only with data (Oklahoma). How can I do this in R? ggplot () + geom_polygon (data = all_states, AES (x = long, y = lat, group = group), color = "black", fill = "white") + gom_point ( Data = Station, AES (X = long, y = axis), color = "red",) + ggtitle ("distribution of flash flood events in Cones") + xlab ('longitude') + elab ('latitude') DPT (Station) structure (list (coop = c (340017 l, 340179 l, 340256 l, 340292 l, 340548 l, 340593 l, 340 9 08 l, 341243 l, 341504 l, 341724 l, 341828 l, 342678 l, 342912 L, 342944 l, 343497 l, 343628 l, 343821 l, 343871 l, 344055 l, 344204 l, 344235 l, 3442 98 L, 344573 l, 344766 l, 344861 l, 34563 l, 34550 9 l, 345855 l, 346130 l, 346139 l, 346278 l, 346629 l, 346638 l, 346670 l, 346926 l, 346935 l, 347012 L, 347,254 L, 348501 L, 348677 L, 34 9, 395 L, 349422 L, 34445, L), Lat = C