Posts

Showing posts from June, 2015

mysql - Store sequence of records to a particular id in a database -

Image
बनाएँ तालिका imaged विवरण (imageid INTEGER प्राथमिक कुंजी, कल्पनाकरण VARCHAR (50), अध्ययन अभिन्न, विदेशी कुंजी (अध्ययन) संदर्भों का अध्ययन (अध्ययन)); मैं निम्नलिखित मानों को इनपुट करता हूं: इन्हें इमेजेट किए गए वैल्यूज (1, 'img1.jpg', 1) में शामिल करें; INSERT में मूल्यों का मूल्यांकन किया गया (2, 'img2.jpg', 2); INSERT में मूल्यों का मूल्यांकन किया गया (3, 'imp3.jpg', 3); INSERT में मूल्यों का मूल्यांकन किया गया (4, 'आईएमजी 4। जेपीजी', 4); अभी छवियों को सर्वर पर संग्रहीत किया जाता है, मैं विशिष्ट ID से संबंधित एकाधिक छवियों को कैसे स्टोर कर सकता / सकती हूं?

1)Is there a Google Appscript command that can convert a .gDraw to a .jpg? 2)Can a trigger be set to perform this conversion on .gdraw file edit? -

1) Is there a Google Appscript command that can convert .gdraw to .jpg? 2) Can Google .gdraw file edit be set to this conversion? 1) My answer is so far (in Google / Phony Code) function gDrawTO_jpeg () {Var gDrawFile = DriveApp.getFilesByID ('gDraw_fileID') gDrawJpg = gDrawFile. GDrawPdf = gDrawFile.getAs ("App / PDF");} does not work due to known disturbances, because of getAs ("image / jpg") // current getAs () boundaries does not work, The following is a mistake in converting files to PDFs on Google. Is this an alternative solution for an obscure blob function? 2) My answer is still: function triggerSet () {ScriptApp.newTrigger ('GDrawTO_jpeg') .forDocument ('gDraw_fileID') .onOpen (). Create (); // error on this line} Works only on Google Docs / Sheets / Forms, no success Does a blob work with gidra? ** As a commentary on this question, it would be great for GDR / GDOS to feature or option for autosaving / standa

php - Invalid request error in symfony on Linux server -

I developed web applications in symfoy2, my development environment is using Windows (a vip server), but when This is a Linux server posted on one, which gives me the "invalid request" error, I checked the URL and parameters, this was also a query, everything was the same, it works in windows, but Linux Not in Is there a case sensitive problem? Or variables naming and parameters? The problem was case sensitivity, my controller's name was like viewalaraytemplate.php, but the link to this file Was specified as: & lt; A href = "directory / see selearly plate" & gt; Click to view & lt; / A & gt; Then I can change my code in: & lt; A href = > HTML>

css3 - How to create a speech bubble in css? -

Image
मैं इस तरह एक भाषण बनाना चाहता हूं, मैं सीएसएस का उपयोग करने की कोशिश करता हूं। लेकिन मैं इस तरह शीर्ष तीर को संरेखित नहीं कर सकता। मेरा कोड है, .bubble {स्थिति: रिश्तेदार; चौड़ाई: 275 पीएक्स; ऊंचाई: 40px; पैडिंग: 5 पीएक्स; पृष्ठभूमि: # C00006; -विबिट-सीमा-त्रिज्या: 14px; -मोझ-सीमा-त्रिज्या: 14px; सीमा-त्रिज्या: 14px; } .bubble: after {सामग्री: ''; स्थिति: पूर्ण; सीमा-शैली: ठोस; सीमा चौड़ाई: 0 19px 79px; सीमा रंग: # C00006 पारदर्शी; प्रदर्शन क्षेत्र; चौड़ाई: 0; Z- सूचकांक: 1; मार्जिन-बाएं: -19 पिक्सेल; शीर्ष: -79 पीएक्स; बाएं: 69%; } & lt; br & gt; & lt; br & gt; & lt; br & gt; & lt; br & gt; & Lt; div class = "bubble" & gt; & lt; / div & gt; (पर JSFiddle) । आप इसे निम्नानुसार उपयोग और निर्दिष्ट करके प्राप्त कर सकते हैं: .bubble {स्थिति: रिश्तेदार; शीर्ष: 4.8em; चौड़ाई: 275 पीएक्स; ऊंचाई: 40px; पैडिंग: 5 पीएक्स; पृष्ठभूमि: # C00006; -विबिट-सीमा-त्रिज्या: 14px; -मोझ-सीमा-त्रिज्या: 14

How to work with python 2 and 3 -

I've found that some Libs depend on Python2 and some Libs work on python3. I know that there is something that can port code from Python 2 to Python 3. I'm not sure that these Libs are an easy way to work together. How can I use these labs? Thanks a lot EDIT: To make the question more specific, I want to write the script to copy the copy from the transcriptor and insert it into the script. So I want to use both P4Python and can only work on Python 2 (although Python 3.3 compatibility is its current target of evaluation), while P4Python can only work on Python 3. How can I do this work? Python 3.x to port Python 2.x and to write code Many tools and tricks are compatible with both versions. You will find that topic devoted to Python 3 documentation on that topic. Some referenced tools: : To convert Python 2 to Python 3 Canyiopiethon 3 (,: To help with writing 2: low-level project-3 compatible code : To help porting the current code in six, and last but l

how to fix java.lang.arrayindexoutofboundsexception: 0? -

I'm a newbie for java . Anyone can help me solve the error arrayindexoutofboundsexception . Public square minesweeper {public static zero main (string [] args) {int m = integer. Paracet (Argos [0]); Int n = integer Paracet (Argos [1]); Double P = Double. PRSDAB (Args [2]); // Game Grid is [1.M] [1. N] is used to handle border borders Boolean [] [] Bomb = new bullion [M + 2] [N + 2]; (Int j = 1; j & lt; = n; j ++) bomb [i] [ja] = (Math.rendum ());) (int i = 1; i And here is an exception: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 in Minesweeper.Mine (Minesweeper. : 5) Two things possibly as it is called index 0 (see first case The array index always starts with 0 and does not have 1 . So you may need to change either Is: To start with 0, your loop and I I instead of A Use the array index as 1-1. The reason you are getting the ArrayIndexOfBound exception is that the reason that you have 2 elements in an

android - Custom circular view -

Image
I want to create a view shown in the picture below I think it's too late to react , But it can also be useful for others. I am getting a library, again implement list inventory and circular list. Library and some snippet of code Public Zero Change Group Flu (Object obj) throws an exception {field} f = obj.getClass (). GetSuperclass (). GetSuperclass (). GetDeclaredFields (); // for members of the mapping array (Field TEM: F) {if ( Tem.getName (.) Equal ("mGroupFlags") {tem.setAccessible (true); integer mGroupFlags = (integer) tem.get (obj); int newGroupFlags = mGroupFlags & amp; 0xfffff8; Tem.set (obj, newGroupFlags I hope this will help. Happy coding ... / P>

c# - WPF why isn't error message shown? -

मैं TextBlock में कुछ टेक्स्ट को मान्य करना चाहता हूं > टेक्स्टब्लॉक xaml: & lt; टेक्स्टब्लॉक x: नाम = "numInput" मान्यकरण। त्रुटि-चिह्न = "{stataticResource errorTemplate}" & gt; & LT; TextBlock.Text & gt; & Lt; बाध्यकारी पथ = "पाठ" रिलेटिव सोरस = "{रिलेटिव एसर्स}" अधिसूचनाओनवालिडेटेशनएयर = "ट्रू" & gt; & LT; Binding.ValidationRules & gt; & Lt; स्थानीय: नंबर वैलिडेट / & gt; & LT; /Binding.ValidationRules> & Lt; / बाइंडिंग & gt; & LT; /TextBlock.Text> & Lt; / TextBlock & gt; जीयूआई (यानी टच स्क्रीन) में कुछ बटन क्लिक्स द्वारा कोडबीहिंड में टेक्स्ट जोड़ दिया गया है errorTemplate & amp; नियंत्रण; कस्टमरमेट एक्स: कुंजी = "त्रुटिप्रतिमा" & gt; & LT; StackPanel & gt; & Lt; TextBlock अग्रभूमि = "लाल" & gt; त्रुटि msg & lt; / TextBlock & gt; & LT; AdornedElementPlaceholder / & gt; &

sql - Select date time with condition (Oracle) -

I have a problem that has not been resolved for several days, I am following the search and answers in many questions; It seems that the structure data for datetime in my database is very strange. I have read this post: but it is not working on me right, we start for this problem, I The solution to connect is to use the client to bring data into the Oracle database. I'm staying. When I select from a simple query like this: Create_Date from HP_D_Help_Desk_SLA The result of: Create_Date 2014-07-01 05: 27: 02.000 2014-07-02 05: 27: 02.000 But when I try this question: < / P> Choose Create_Date from the HPD_help_cycle code SLA where Create_Date & gt; = TO_DATE ('2014-05-03', 'YYYY-MM-DD') and Create_Date & lt; TO_DATE ('2014-08-04,' 'YYYY-MM-DD') The result of: Warning: odbc_exec (): SQL error : [AR System ODBC Driver] column was not found:. SQL State S & End SQLLXAC Direct .... And I try this simple query

jquery - Simple image slider is not working -

I want to create simple image slider. As long as you can not reach the last image (Div), everything works fine. The slider starts again, the first image covers all other images. I have tried to change the z-index images, but still I have the same problem. var index = 1; Function jimg () {$ ('# trace'). Text ('image index' + index); If (index & lt; 5) {changeimg (index); Index = index + 1; } And {index = 1; }} Function changeimg (indexofImg) {$ ('# imgid' + indexofImg) .slideToggle (); } SetInterval (isimg, 1000); #imggruop li {display: inline; Swim left; List style: none; } #imagewapper {width: 600px; Height: 400 pixels; Hidden flurry; } #imagid1, #imgid2, #imgid3, #imgid4 {width: 300px; Height: 300px} # imgid1 {background color: # FF0000; } # Imgid2 {background-color: # 63ff1b; } # Imgid3 {background color: # fff717; } # Imgid4 {background color: # 2a6aff; } & lt; Script src = "https://ajax.googleapis.com/ajax/libs/JQuery/1.1.1/

html - PHP get a value from array index -

मेरे पास यह स्ट्रिंग है: $ hours = '7, 8, 12'; $ घंटाडाटा = विस्फोट (',', $ घंटे); अगर मैं var_dump ($ hourData) , यह देता है: array (3) {[0] = & gt; स्ट्रिंग (1) "7" [1] = & gt; स्ट्रिंग (2) "8" [2] = & gt; स्ट्रिंग (2) "12"} और मेरे पास यह कोड है: & lt; php for ($ i = 0; $ i & lt; = 23; $ i ++) {? & Gt; & Lt; div class = "fl" & gt; & Lt; इनपुट प्रकार = "चेकबॉक्स" नाम = "सीमा_हौर []" मान = "& lt;? Php echo $ i? & Gt;" Class = "fl limit_hour" & lt;! - ======================================= ================================= - & gt; & Lt;? Php echo (isset ($ hourData [$ i]) & amp; amp; $ i == $ घंटाडाटा [$ i]? 'चेक किया गया': '')? & Gt; & gt; & Lt;! - ============================================= =========================== - & gt; & Lt; span class = "fl lmbox" & g

installation - how to install SQL server 2012 from your application installer -

मेरा अनुप्रयोग (WPF 4.0) SQL Server 2012 की आवश्यकता है और मुझे अपने इंस्टॉलर (installshield) के साथ पैकेज करने की आवश्यकता है I क्या ऐसा करने का एक सही तरीका है?

java - heap space exception during adding a random integer in an ArrayList in an infinite loop? -

पैकेज com.org; आयात करें java.util.ArrayList; आयात java.util.Random; सार्वजनिक कक्षा मेमोरीबॉब {/ ** * @ परम आर्ग्स * / सार्वजनिक स्थिर शून्य मुख्य (स्ट्रिंग [] आर्ग्स) {यादृच्छिक यादृच्छिक = नया रैंडम (); // मैप & lt; पूर्णांक, स्ट्रिंग & gt; SampleMap = नया हैशमैप & lt; पूर्णांक, स्ट्रिंग & gt; (); ArrayList & LT; पूर्णांक & gt; ए = नया अर्रेलिस्ट & lt; पूर्णांक & gt; (); जबकि (सच) {// एक यादृच्छिक जोड़ी बनाएँ और संग्रहीत करें। Int randomValue = random.nextInt (); System.out.println ("ssss" + यादृच्छिक मूल्य); a.add (randomValue); System.gc (); // मैंने इसे जोड़ लिया है और यह देरी है या यह समस्या // नमूना map.put (randomValue, String.valueOf (randomValue)) संभालता है; }}} लेकिन मेरी चिंता के लिए मुझे ArrayList में सभी सम्मिलित वस्तुओं की आवश्यकता है, मुझे यकीन नहीं है कि क्या System.gc (); कॉल ArrayList में शुरू में संग्रहित यादृच्छिक संख्या को हटाता है, कृपया मदद करें और वास्तविक सुधार होना चाहिए PS: इससे पहले System.gc () को

php key giveaway script doesnt work -

Whenever a person enters their mail in the input, I have to make a major cheap script to remove a key I am trying. I came very far but now I have 1 problem, when he sends mail, I should send you the key, but it is not, it only sends the text "Your code": " This key Whenever he sends it "$ message", he should run a function dispatch and grab the key out of the database. Can anyone see a problem? & lt ;? php // fill mail mail echo "& lt; Form method = 'post' action = ". $ _SERVER ['PHP_SELF']" & Gt; Email: & lt; Input name = 'email' & gt; & Lt; / Input & gt; & Lt; Br> & Lt; Input type = 'submit' value = 'get your key' name = 'submit' & gt; & Lt; / Input & gt; ; & Lt; Br> & Lt; Br> & Lt; / Form & gt; "; If (empty ($ _ POST [" email "])) {resonant" please enter an email address ";} Else {// mail

I can't insert new records from textarea in database - PHP and mysql -

Hi everyone :) I have problems with my php project, I can not put records from database to textarea. This is my code: vnesiMagacin.php & lt ;? Php $ con = mysqli_connect ("localhost", "root", "", "db_mmm"); If (mysqli_connect_errno ()) {echo "failed to connect to MySQL:". Mysqli_connect_error (); } $ ID_Magacin = mysqli_real_escape_string ($ con, $ _POST ['idimagasin']); $ IME = mysqli_real_escape_string ($ cu, $ _POST ['IME']); $ Adresa = mysqli_real_escape_string ($ cu, $ _POST ['adresa']); $ Grad = mysqli_real_escape_string ($ conn, $ _POST ['grad']); $ Compzirosatmate = mysqli_real_escape_string ($ cu, $ _POST ['composerosamet']); $ Telefon = mysqli_real_escape_string ($ conn, $ _POST ['Telefon']); $ Email = mysqli_real_escape_string ($ cu, $ _POST ['email']); $ Sql ​​= "Magisin (ID_Magacin, Ime, Adresa, Grad, KompZiroSmetka, Telefon, Email) Prices ('$ ID_Maga

asp.net mvc - MSBuild: MSB3061 - cannot access file because it is used by another process -

I am trying to create an ASP.NET MVC project through the command line. I am running this command: msbuild / p: platform = "no cpu" In this project, we use the configuration transformations with MSBuild are doing. We have a pre-build event that looks like this: "$ (MSBuildBinPath) \ msbuild.exe" "$ (ProjectDir) [MSBuild] \ BuildSpecificConfigTransforms.xml" / p: configuration = $ (configuration name) (PreBuildEvent target) -> gt; C: \ Users \ xxxx \ Development \ EPiServer \ GIT \ xxxx \ xxxx \ [MSBuild] \ BuildSpecificConfigTransforms.xml (86,5): Error MSB3061: Unable to delete file ".. \ connection.Strings.config.temp" . The process can not use the 'C: \ user \ xxxx \ development \ EPiServer \ GIT \ xxxx \ xxxx \ connectionStrings.config.temp' file because it is being used by another process. Does anyone know what this is? I have learned about this error during MSBuild during my ASP.NET MVC deployment automatio

How to wite PHP code with the following SQL query? -

I'm trying to check a result, it works in a SQL query, but I use PHP I am trying to get results. SELECT prs_amtdb Where is `prs` from FROM prs_amtcrck = 0 use of mysqli Note: Make sure you tie your value. Mysqli does not automatically save your query $ connection = mysqli_connect ($ host, $ user, $ password, $ database); $ query = "select prs_amtdb from prs WHERE prs_amtcrck = 0"; $ Result = mysqli_query ($ connection, $ query); // $ Connection // Get your result while // // is // connection // $ echo $ row ['column_name'] & Lt; Br / & gt; '; }

c# - Why won't Mvc 4 application pick up email column added to UserProfile table? -

As the question shows, I've added an email column in the UserProfile table. (As I want a valid email address for each user) However, when I try to access it in the "Lost Password" feature, I get the following error. {"column name is not valid. [Node name (if any) = extension1, column name = user email]"} Blocked code in my account in my lost password action. // Email value can not reach the UserProfile table with var foundUserName = (from Ub in db.UserProfiles where u.UserEmail == Model. Select email u.UserName). FirstOrDefault (); How do I obtain an application to identify the email column to check against user input? Please note that this is an MVC 4 application built with VS 2010 and is using a simple subscription. Thank you.

shell - How to launch a mouse click button with PowerShell? -

Good morning, I am starting with PowerShell scripting and I am trying to create a PowerShell script. The goal is to automatically set up the Google search engine in the internet web browser. Link here for the add-on: Google's URL that asks the user if he wants to add Google as the default web browser Is: I like to have my script click on "Ok" on the question "Report Google About Google." Which basically means "update your web browser with Google, here's the beginning of my script." "lang-PS prettyprint-override"> $ pathURL = "http: / /www.google. Com / search? Q = & amp; Sourceid = ie7 & amp; Rls = com.microsoft & amp; I.e. = & amp; Oe = "$ i.e. = new object-comobject InternetExplorer.Application $ ie.visible = $ true $ ie.silent = $ true $ ie.Navigate ($ pathURL) Does anyone know How to get started to click on "Ok"? I got this type of code in another subject, but I do not know how to use

regex - regular expression to evaluate or validate expression entered by user in C# -

I want to split the sensible / relational / logical expression that the user uses Reggae so that at run-time I can evaluate the expression recorded by the user below, some example expressions have been recorded by the user. Expression 1: (a == b & amp; amp; (c> = 10 || d! = 0)) || (A and G; B) Expression 2: (C == D & amp; A = A = B) Now I want to separate the whole expression in string array for example Take the expression 2 and it will be like string str1 = c == d; Str2 = a = b =; There may be several situations of expression that the user enters and therefore there is no information to proceed. Thanks Regular expression is not the right tool for this task. If you want to be able to evaluate arbitrarily expressions, then you have a simple form of at least one parser. In the past I have used simple expression evaluation functions. It's really easy to use, supports all you used in the box and you can also use it. There are other libraries avai

Laravel count numbers based on more than one tables -

मेरे पास 3 तालिकाओं, उत्पाद , आदेश और Order_product , order_product एक पिवट तालिका है जो product_id और order_id पर आधारित उत्पादों और ऑर्डर को मैप करता है। एक product_id को देखते हुए, मैं इस उत्पाद की कुल बिक्री का पता लगाना चाहता हूं, मेरे दिमाग में यह है: इस उत्पाद_आईडी में शामिल सभी आदेशों का पता लगाएं, और अगर किसी भी ऑर्डर की स्थिति पूर्ण है, तो उत्पाद को इस आदेश के लिए बेचा जाता है, अब मुझे कैसे -> गिनती () का उपयोग कर अपनी क्वेरी लिखनी चाहिए? वैसे, मेरे पास सभी मॉडल और संबंध सेटअप हैं। इसे आज़माएं: < पूर्व> उत्पाद :: खोजें (1) - & gt; ऑर्डर () - & gt; जहां ('orders.status', 'done') - & gt; गिनती ()

php - Replacing the value without splitting the structure -

This is part of my structure, what I have to do is' d 'value is empty, so I can say' 'value' xky With 'D' value Please help me how to replace that value without the division and construct the structure. array ([0] => stdClass object ([a] => 1 [b] => 1b [c] => dl [d] = & Gt; [E] => 2015-01-08T0555 [F] = & gt; BOM [G] => T [H] = & gt; XYZ [i] => 2015-01 -08T0815 [J] => 1c [k] => 851)) Note: I am saying that if I divide it because it has many complications for me The reason will be because it is only a part of the structure. Please help it. After updating it should appear below. Array ([0] => stdClass object ([a] => 1 [b] => 1b [c] = & Gt; DL [D] => xky [E] => 2015-01-08T0555 [F] => BOM [G] = & gt; T [H] => XYZ [i ] = & Gt; 2015-01-08T0815 [J] = & gt; 1C [K] => 851)) Something like this? $ array [0] - & gt; D = 'XKY'

php - avlancheimagine bundle not generating images -

I have just installed AvalancheImagineBundle in Symphony and I try to convert the image to a thumbnail I am not but img src = "{{'/ hrms / web / uploads / profileimage / 8999226bcc8341dc7e076eb09226f8521bbac106.jpeg' | apply_filter ('my_thumb')}}" /> This is my config file .. avalanche_imagine: Filter: my_thumb: Type: Thumbnail Option: {Size: 120, 90], Mode: Outbound} The routing file is as follows. _imagine: Resource:. Type: Imagine I'm getting it as HTML I have not created any folder, it is necessary ..? If I hrms / "> Hello I use the Himswamy Imagine bundle My config and route are just like you but I take your IMG src in some other way and you do not have to create any folder: routing: < / P> avalanche_imagine: filter: my_big_banner: type: relative_source option: {width: 940, format: jpg, quality: 100} _imagine: resource:. Type: Imagine HTML: & lt; img id = "big-bannerImgShow&q

Regex Search with delimiters in and Mysql -

I am trying to convert a regex which works fine in MySQL in PHP, forward to see MySQL negative I do not allow (?!) So I need a solution or solution My DB column data is a string like this: Title: Book Title # Note: Book Details # $ 10.57 I can use regex in PHP (^ | ¬ # ¬) Title : (((?!? ¬ · ¬.).) * Book ((?! # ¬).) *) But in mySQL I am struggling to have any advice or suggestions

vb.net - asp.net Auto complete textbox from database -

I tried to create a text box which suggests with the database column. However, it is showing the error when I run that page. Error - The file or assembly could not load 'AjaxControlToolkit' or one of its dependencies can not get a system specified file ASP code & Lt; ASP:. ToolkitScriptManager id = "ScriptManager1" runat = "server" & gt; & Lt; / ASP: ToolkitScriptManager & gt; & Lt; ASP: AutoCompleteExtender id = "autoComplete1" runat = "server" EnableCaching = "true" BehaviorID = "AutoCompleteEx" MinimumPrefixLength = "2" TargetControlID = "myTextBox" ServicePath = "AutoComplete.asmx" ServiceMethod = "GetCompletionList" CompletionInterval = "1000" Completion list = "20" Closing listCSSClas = "AutoComplete Connection Lilite" Closing ListItamsCSSClass = "AutoComplete List List" Closing List Highlighted ITMS Cla

mobile - Do Google Analytics offer a end-user opt-out option? -

मुझे आश्चर्य है कि अगर Google Mobile Analytics एक ऑप्ट-आउट अंतिम उपयोगकर्ताओं को उनके डेटा एकत्रित करने का विकल्प नहीं है, और यदि ऐसा है तो मैं इसे अधिक जानकारी कहां प्राप्त कर सकता हूं? "post-text" itemprop = "text"> < P> वे ऑप्ट आउट दृष्टिकोण की पेशकश नहीं करते हैं यदि आप ट्रैक किए जाने से ऑप्ट आउट करना चाहते हैं, तो आप साइट पर ट्रैकिंग को अक्षम करने के लिए ब्राउज़र एक्सटेंशन जैसे 'भूतरी' का उपयोग कर सकते हैं। विज़िटर को एक वेबसाइट के लगातार उपयोग के द्वारा डेटा संग्रहण पद्धतियों और गोपनीयता नीतियों के लिए सहमति के रूप में देखा जाता है।

unix - Scheduling in Cron tab for regular interval -

Hello I have 2 jobs, where the second job is to run 30 minutes after the first job. I am using Krantab-A to setup cron jobs 1 job 0 * * * * /home/hadoop/datapull.sh Second job / Homo / HDOP /loaddata.sh I have set my first task (datapull.sh) which will move upwards. After this, my second job needs to be run after 30 minutes of first job. Come, my first job runs at 1 PMAMPM3 PM4 PM and my second job should be around 1.30 PM, 2.30 PM, 3.30 PM, 4.30 PM. How do I schedule my second job in the Cran tab to setup this way? Ned help for the installation of Cron Tab. Second task: 30 * * * * / home / Hadoop / loaddata.sh This will play your chronos, at 0:30, 1:30, 2:30, 3:30, ... at < Generally a chronboat is prepared: # * * * * * Order to execute # │ │ │ │ │ # │ │ │ │ │ # │ │ │ │ of the week (0-6) (Saturday from 0 to 6 on Saturday, or use the name; 7 is Sunday, equal to 0) # │ │ │ └── ──────── Month (1 - 12) # │ │ Of month of month (1 - 31) # │ └─────────

hadoop - How can I compute week dates in hive? -

background Good job in postgresql date_trunc () which it creates It's easy to calculate the start date of a week. It's great for aggregation at week level. E.g. SELECT date_trunc ('week', create_date), count (*) from ... group by 1; HiveQL's function is WEEKOFYEAR () which gives you the number of weeks. If you combine it with YEAR () , you can create the same type of aggregate as a postgraze SELECT YEAR (create_date), WEEKOFYEAR (create_date ), Count (*) to ... GROUP BY YEAR (create_date), WEEKOFYEAR (create_date); This is great but if I want the actual date of the week? Question How can I calculate the date of the week in HiveQL, either by a year and week number or directly from the timestamp? There are not many functions in the hive properly, therefore it is supported for custom UDF 1. 2. 2. 2. P> Hope this helps .. !!!

mysql - get data from DB as range using php -

I have such a table_db id data value 1 2014-01-01 10 2 2014-01-02 10 3 / 2014-01-03 10 4/2014 Bar, 2014-01-04 Listened: 10 5, 2014-01-01, 20, 2014-01-01, 20, 7, 2014- 01-01, 30, 2014-01-01, / code> I have a SQL query that will give me this output from 2014-01-01 to 2014 -01-04 Price is from 2014 10- 01-05 to 2014-01-06 Price 20 to 2014-01-08 to 2014-01-08 Price is 30 How do I Can i For example ... being present in my table Drop Table on; Create table_m_table (id INT not outgraded primary key, date not DATE, zero, INT not zero); Enter my_table values ​​(1, '2014-01-01', 10), (2, '2014-01-02', 10), (3, '2014-01-03', 10), (4, '2014-01-04', 10), (5, '2014-01-05', 20), (6, '2014-01-06', 20), (7, '2014-01-07' , 10), (8, '2014-01-08', 10); SELECT a.date start, MIN (c.date) end, a_price my_table with one left left my_table b b.price = a.price and b.id = a.id - 1 right I = A.price and c.id & Gt; = A.id

how to upload users into lync using lync api -

I want to upload users to a link through an XML file. Is there any link API or C # code to do this ?? I like the XML file below and lt; Ns1: linksOnline one page xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns: ns1 = "http: /sschemas.microsoft.com/online/mco/2011/02/acp" & Gt; - & lt; ns1: ACPUser & gt; & lt; ns1: Username & lt; first.last@test.com< / ns1: Username & gt; - & lt; ns1: UserAudioConferencingInfo & gt; - & lt; Ns1: Provider & gt; & Lt; Ns1: Identity & gt; BT Conferencing & lt; / Ns1: Identity & gt; & Lt; / Ns1: Provider & gt; & Lt; Ns1: tollenumber & gt; 1720 9 882090 & lt; / Ns1: Toll number & gt; & Lt; Ns1: tollfree number & gt; 18666708282 & lt; / Ns1 also: TollFreeNumber & gt; & Lt; Ns1 also: Passcode & gt; 99,999,999 & lt; / Ns1 also: Passcode & gt; & Lt; / Ns1 also: ACPUser & gt; & Lt; / Ns1 also: Use

asp.net mvc - MVC5 bundling issue when deploy to Azure service -

We have an MVC5 project that has many script files and styles, and we system. Use Web.Optimization. The problem is that when the auction is deployed, we get an error similar to the following: The object reference is not set for an instance of an object : An uncontrolled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where the code originated from it. Exception Description: System.NullReferenceException: Object References Object is not set to an instance of Source Error: Line 4: Line 5: @ Section Scripts {Line 6: @ Scripts. Render ("~ / bundles / timeApp") Line 7: & lt; Script & gt; Please note that this is working normally on a local machine. We tried to downgrade "WebGrage", but no luck Thank you. In many instances, it was related to errors in JavaScript when I was running on this issue when / p> Comment by loading and testing all the files, th

Perl command dbmopen not working -

We have snippets like the following, DBMPane (% NEWHASHTABLE, "$ hashfile ", $ Mode); Where hash file is like below 1: - D: / InterUnion / TeamSite / Local / Config / PublicWeb / Module / Module LightingEighteEEEEEEE - Main - Shared - STAGING.db 2: - D: / InterUnion / TeamSite / Local / Config / PublicWeb / Module / -w-main.db and mode is 666. When I tried to take out data from the hash table (% NEWHASHTABLE), I did not find any data in it. > Could you please inform that what can be added? And this code is working in the version of our old teams, but this is not in the new version. The error in your snippet should be checked. You are checking errors, okay? dbmopen (% NEWHASHTABLE, "$ hashfile", $ mode) or die "$ hashfile can not be opened: $!"; If you have not checked errors, and you are not running with sequoce ( hard use ), then you will have an empty hash dbmopen fails. --------------- 2014-10-31 update ---------

KQL Syntax using a variable - Exchange 2013 -

यह अपेक्षित रूप से कार्य करता है: खोज-मेलबॉक्स jdoe -SearchQuery 'भेजा गया:' आज "और विषय:" 1234 "-एस्टेमआरसल्ट केवल यह 1 परिणाम देता है जैसा चाहिए। 1234 को एक चर के साथ बदलने की कोशिश कर रहा है पर बेकार। मुझे लगता है कि यह मेरी वाक्यविन्यास के साथ एक मुद्दा है, लेकिन मैंने उद्धरण और डबलक्वाट्स के हर संयोजन के बारे में अभी भी कोशिश की है और फिर भी यह कुछ भी वापस नहीं लाती है। $ subject = "1234" खोज मेलबॉक्स jdoe -SearchQuery {'भेजा गया: "आज" और विषय: "' $ विषय '' '} -एस्टेमआरसल्ट केवल मैं एक वेरिएबल के साथ" 1234 "कैसे बदल सकता हूँ? <> क्योंकि भेजा गया: "आज" और विषय: "'$ विषय' ''} एक है स्क्रिप्टब्लॉक आपका वैरिएबल विस्तार नहीं करेगा तो आपको सिर्फ स्क्रिप्ट ब्लॉक जैसे कि $ Varible = "1234" $ Search = [scriptblock] :: create ("'भेजा गया:`' आज का `'और विषय: $ Varible बनाने की आवश्यकता है '') खोज-मेलबॉक्स जेडीओ -शोधक खो

sql - Why doesn't a "where not in (select statement)" criteria return the same resault as "where (select statement > parameter)"? -

यह एसक्यूएल स्टेटमेंट कोई रिटर्न नहीं देता: SELECT [AutoNo], [PersonID] FROM [व्यक्तिटीबीएल] जहां किसी व्यक्ति को अपेक्षित नतीजे नहीं देता है: SELECT [AutoNo], [PersonID] से [PersonTBL] WHERE (SELECT TOP 1 FDate FROM अनुवर्ती टीबीएल कहां अनुवर्ती टीबीएल। PersonID = PersonTBL.PersonID ORDER BY FDate DESC) & lt; '0 9/24/2014 ' मुझे उन सभी लोगों को वापस करना होगा जिनके पास '0 9/24/2014' के बाद कोई फॉलो-अप है, पहले एसक्यूएल क्वेरी क्यों काम नहीं करती? दूसरा प्रश्न सही डेटा वापस करता है! क्या पहली क्वेरी वापस एक ही परिणाम बनाने का कोई तरीका है (मेरा मतलब है "IN (चुनें)" का उपयोग करें)? मुझे सभी व्यक्तियों को वापस करने की जरूरत है जिसने '0 9/24/2014 'के बाद, पहले क्यों काम नहीं किया! आपका पहला कथन आपके में नहीं खंड का उपयोग कर रहा है कहां स्टेटमेंट यह आपको वही चाहता है जो आप चाहते हैं

html5 - Easeljs 'createPattern' on 'CanvasRenderingContext2D Issue -

I'm developing the game using the easeljs frame work, I'm getting the following error. Uncaught TypeError: Failed Anyone please help me. Thanks in advance Manoj Kumar

junit - Is there a type parameter matcher in hamcrest? -

I want to test a method like this public list & lt; String & gt; GiveStrings (); I can test for the returned type using the Hamrocast, for example assertThat (giveStrings (), instanceOf (ArrayList.class) ); But I want to know whether it is a list of strings. So simple answer is not because it runs on runtime Type-error so that all generators are converted to objects . Then your list at runtime & lt; String & gt; In fact only one list or list & lt; Object & gt; . Type information of string is lost. Consider using IsIterableContainingInOrder.containsInOrder (CoreMatchers.instanceOf (String.class), ...) Per comment, use assertThat (myList, Every.everyItem (instanceOf (String.class));

javascript - owl carousel random order -

I am trying to randomize the order of slides during Autoplay in Owl Carousel. I have referenced this () on my site, but whatever it does is already reset to load (first point). I tried to play with other callbacks, but no luck. Anyone there is a solution? Here is an example that I thought would work. Apparently, I'm missing the callback point: function random (owl selector) {owlSelector.children (). Sort (function () {return Math.round (Math.random ()) - 0.5;}) each (function () {$ (this) .appendTo (owlSelector);}); } $ (".wl-carousel"). OwlCarousel ({beforeMove: function (elem) {random (elem);}}); Resolve (of type) I finished using the WoW slider slider in it Slide sequence random There is an option to make.

ios - Fetching JSON Response from Server -

I want to get feedback from the server using JSON. I have rotated other responses in stack overflow and some other websites. But I did not find the easiest and easiest way to get a response from the server. If someone helps me do this then it will be better. If you just see your code, you can easily understand and get feedback . // Simply enter your URL instead of the URL NSMutableURLRequest * request = [NSMutableURLRequest requestWithURL: [ns URL = URLWithString: @ "http://api.worldweatheronline.com/free/v1/search.ashx ? Query = London & amp; num_of_results = 3 & format = json & key = xkq544hkar4m69qujdgujn7w "]]; [Set http system: @ "gET"]; [Request Set Value: @ "App / Jason; Charset = UTF-8" forHTTPHeaderField: @ "Content-Type"]; NSError * err; NSURLResponse * response; NSDT * responseData = [synchronous request to send NSUr connection: Response returning request: Response error: & amp; Err]; // You need to check th

testing a function which takes input from user (python) -

The function below takes the password from the user I need this test unit test / (socks). def create_auth (): username = '{user}' Format (user = getpass.getuser ()) pwd = getpass I am new to python, any sign will be useful thanks Do: Class TestCreateAuth (Unittest.TestCase): @ mock.patch ('getpass.getpass') @Mock. Patch ('getpass.getuser') def test_create_auth (auto, recipient, getpw): getuser.return_value = 'user' getpw.return_value = 'pass' self.assertEqual (create_auth (), 'user: pass')

c# - PageMethods not working because method is not calling from javascript -

मेरे पास एक पृष्ठ विधि है, PageMethods.AuthUser (उपयोगकर्ता नाम, पासवर्ड, ऑनसाइट, पर विफल); मेरा codebehind निम्नलिखित है सार्वजनिक स्ट्रिंग AuthUser (स्ट्रिंग उपयोगकर्ता नाम, स्ट्रिंग पासवर्ड) {return ""} मुझे नहीं पता कि मैं क्या कर रहा हूं, यह सिर्फ काम नहीं कर रहा है हां मुझे मिल गया विधि के पीछे मेरे कोड पर स्थिर और मुझे लगता है कि विधि को वेबमैथ ​​के साथ होना चाहिए टिप्पणी के लिए धन्यवाद xyz [WebMethod] सार्वजनिक स्थिर AuthUser (...)

security - ASP.net WebRequest Internal SSL protocol? -

Recently, servers with many gateways, with discovery, are disabling SSLv3 on their servers and its uses Are forced to TLS Do anyone know that the SSL protocol is used internally by the ASP.NET Framework for things like WebRest? If it uses SSLv3 and does not return automatically to TLS, then is there a way to configure it? Note: We have already disabled SSLv3 by the registry and it does not seem that HTTPS traffic affecting our website I am not sure now that when the payment gateway closes at its closing what will happen. It is user-controllable via the default security protocol type Tls. SecurityProtocolType.Ssl3 .

javascript - jquery ui slider value undefined -

I am developing an app using jquery mobile with phone jeep. If there is a problem when trying to retrieve the value of the slider, for some reason I can not take it, I $ (document) .ready (function () {like something ) $ ("#Incomplete_field_correo") $ ("# sliderVer") has been found. $ ("Minimum: 10, Max: 100, Orientation:" vertical ", step: 1, value: iValue}); hide (); $ (" #Incomplete_field_secret "). Hide (); $ (" #fix_field_corero ") Hide ();}); I have tried $ ("sliderVer"). value; Also $ ("sliderVer"). Slider ("value"); and $ ("sliderVer"). Slider (ui.slider); But does anything work, any thoughts? Thanks in advance! Get or get value options after initialization: // getter var value = $ (".selector") .slider ("option", "value"); // Setter $ (".selector"). Slider ("option", "value", 10);

ios - Why does my UITableView's formatting go completely awry when I return from a view controller I segued to? -

Image
After I have a UITableView a custom cell, with some label dynamically fixed in it When I return to all the formatting for the height of the cell when I tap on a cell and, segue cells from any new view controller are completely messed up, and I can not do what it is getting. Here's what cells look like normally: And I have some very basic obstacles that are set on them. I have been pinned on top label top and left margins, and should always be => right from 20 other Labels are aligned to the left of this first label, vertical space set between them. The middle label margin has the right to barrier space, and the label below is aligned to the first baseline and horizontal spacing between them all. I can not know that since I left, there was a reason to separate the layout. If I scroll around, then they "reset" what they want, but they are actually messed up on the initial load. If desired I can attach the project, but there is not really much beyond the

javascript - Bootstrap3: Firefox bug - Cannot set div height -

Firstly there is a link: Everything is fine in Chrome. The slider is pushed in Firefox on the right side, this is because a 'nav.navbar.navigation-9' height is 50px. I have set height to 40px, while the page load shows it 40px, after loading it reverts to 50px, so the slider is pushed to the right I have tried all possible solutions which I know, any help would be appreciated. set main-nav height of 38px. .header-9-navigation .main-nav {height: 38px; Status: Stable; } If your main-nav is equivalent to the top-9-form, only the slider will be shown below.

mysql - PHP if with an array SQL -

मुझे यहाँ एक समस्या है $ resultContLog = mysql_query ("SELECT count ( *) दैनिक लॉगस से WHERE data_log & gt; NOW () - INTERVAL 30 MINUTE और server_id_log = "। $ Fid।"; "); $ Adata = mysql_fetch_assoc ($ परिणामकॉन्टलॉग); अगर ($ Adata & gt; 0) {गूंज 'ओके'; } Else {गूंज 'नहीं ठीक'; } मेरी php फ़ंक्शन पंक्तियों की संख्या देता है; मैंने ऐसा किया कि नए लॉग शामिल करने के लिए यदि यह 10 मिनट से अधिक समय बाद होता है यदि ($ Adata & gt; 0) कथन ठीक से काम नहीं करता है क्या आप लोग मेरी मदद कर सकते हैं, कृपया इसे जांचने के लिए, इसका उपयोग करें यदि आपको शून्य से अधिक गर्तिका मिलती है, तो आपको क्वेरी से मिलने वाली गिनती कॉलम की जांच करने की आवश्यकता है, यहां इसका उपयोग "कुल" के उपनाम के रूप में किया जाता है $ resultContLog = mysql_query ("SELECT count (*) दैनिक लॉग्स से कुल के रूप में WHERE data_log & gt; NOW () - INTERVAL 30 MINUTE और server_id_log = "। $ Fid।"; "); $ Adata = mysql_fetch_assoc ($ res

android - Google Cloud Messaging no push notification receive to my device -

I've followed everything "" I've successfully registered my emulator [5554], but coming from my local server No information can be obtained, what did I miss in the tutorial? I used the vector as my back-end database. Use: & lt; Use-SDK Android: minSdkVersion = "8" Android: targetSdkVersion = "16" /> My emulator: google APIs 19 Please help. In many cases it may be. You must debug your application Send push notification Go to Eclipse and click on Logcat . Then go to " Verbose ". Then send a message to a device from your server using GCM. Then, go to that quick logkit screen. Now the Verbose screen will grow faster, copy all the text and paste it into Notepad. Here you can see whether the weather broadcast receiver has been implemented successfully or not. Receives Broad Broadcast Announcements of the Broadcast Receiver System On the arrival of the GCM message, the Android OS has announ

exchangewebservices - Office365 REST v1.0 API calendar does not return recurrences -

The Microsoft Office team in Office365 suite provides the availability of a second API, as well as a guide to writing apps in various apps ecosystem . To evaluate the API, I just wanted to get a list of your events for today. seems relatively unchanged The basic GET is quite simple: https://outlook.office365.com/api/v1.0 / Me / events It returns back to get a specific day of listing calendar events, we should be able to use it. For example: https://outlook.office365.com/api/v1.0/me/events? $ Filter = & GT 2014-10-28 and start left 2014-10-29 This gives a very small list, but it is not perfect. There are no recurring events that were not created in that time frame This is a known issue with preview (EWS / Odata) API: Some of the above mentioned issues are mentioned around work, but there are notes that the API is in flow and this approach works in release v1.0 can not do. Apart from this those work areas still do not apply, which is why this ques

Get image profile of gmail or Google+ in android -

I want to get the profile image of the owner or terminal of Google + Gmail, where the app is running, working with markers Googlemaps . I have noticed that class person (deprecated) and GoogleApiClient latter is not working, always gives me nullpointerexeption (). Be sure that you are making your GoogleApiClient properly, for the Google Plus login and profile information Scope is required You must also add Plus API. Note that the following example class assumes that this code also applies to appropriate connection listeners. // Remove any GoogleApiClient = new GoogleApiClient.Builder (this) .addConnectionCallbacks (this) .addOnConnectionFAiredListener (this) .addScope (plus. SCOPE_PLUS_LOGIN) .addScope (plus. SCOPE_PLUS_PROFILE) .addApi (Plus.API) .build (); // Other code .... @Override Public void onconnected {// profile image get here}

ios - Resize UICollectionViewCell on rotation -

I have takes a UICollectionView entire screen UICollectionView in cells UICollectionView < / Code>, and I use paging. Adjust I want cells their shape on device rotation to the new UICollectionView I present size isAnimateRotationToInterfaceOrientation: : - (minus) Vilanmetroteshntointrfesorianteshn: (UIInterfaceOrientation) Seintrfesopreshn period: (NSTimeInterval) term {{super Vilaanmetroteshntointrfesorianteshn: ToInterfaceOrientation period: period]; [_collectionView Set Calling Quote Layout: [Self-Storage ViewFlowLayoutForOrientation: ToInterfaceOrientation] Animated: Yes]; } The collectionViewFlowLayoutForOrientation: being is as follows: - (UICollectionViewFlowLayout *) collectionViewFlowLayoutForOrientation: (UIInterfaceOrientation) Orientation {CGSize screenSize = [[UIScreen main screen] border]. Shape; CGFloat width = UIInterfaceOrientationIsLandscape (Orientation)? Max (Screensized.width, screen size. Height): MIN (Screen Size. Width, Screen Size.

c++ - Should I include every header? -

Should I include every headers, even if it has been included earlier? Or maybe I can avoid it when I can? for example. If I use std :: string and std :: vector in some file if & lt; String & gt; contains & lt; Vector & gt; Only me & lt; String & gt; or & lt; String & gt; and & lt; Vector & gt; ? If you use a header related unit (for example some type) in the file, you For this, the respective headers should be included. Do not trust the header to include each other. If you use it, include it . C ++ Standard Library & lt; String & gt; in & lt; Vector & gt; ; And in contrast to using such functionality, the code will be limited to a specific implementation. In general, standard library headers can not include or include other headers (or their own internal headers) in an unspecified order or way is a notable exception & lt; Initializer_list & gt; which needs to be included in any may also ch

java - Confusion regarding JDBC Driver Manager component and DriverManager class -

के अनुसार, जेडीबीसी के 'आम' घटक हैं: ड्राइवर प्रबंधक कनेक्शन कथन परिणाम वाला SQLException हालांकि अनुसार जावा सर्वर प्रोग्रामिंग जावा ईई 6 ब्लैक बुक, जेडीबीसी के 'मुख्य' घटक हैं: जेडीबीसी एपीआई DriverManager जेडीबीसी परीक्षा सुइट जेडीबीसी-ओडीबीसी पुल तो बुनियादी तौर पर मैंने जो समझा है वो है कि जेडीबीसी के घटक दोनों सूचियों (काले किताब और ट्यूटोरियल बिंदु द्वारा उल्लिखित) का संघ हैं। मैं सही हूं? पुस्तक आगे बताती है कि जेडीबीसी एपीआई के आर्किटेक्चर में निम्नलिखित चीजें हैं: ड्राइवर प्रबंधक ड्राइवर विवरण तैयार कथन कॉल करने योग्य वक्तव्य Resultset डेटाबेस मेटाडेटा ResultSet Metadata एसक्यूएलएडाटा ब्लॉब क्लॉब अब, किताब स्पष्ट रूप से "ड्राइवर प्रबंधक "और" जेडीबीसी एपीआई "जेडीबीसी के दो अलग-अलग घटकों के रूप में। हालांकि, यह "जेडीबीसी एपीआई" के एक भाग के रूप में "ड्राइवर प्रबंधक" वर्ग को सूचीबद्ध करता है। तो JDBC एपीआई के ड्राइवर प्रबंधक वर्ग और जेडीबीसी के ड्राइवर प्रबंधक घटक

Python 1500% Memory Overhead from loading binary file -

I am trying to load a binary file containing 120MB of data using the following routine: < Pre> However, when I execute it, my python process starts using RAM up to 2.2 GB, which is me - very wrong The breakfast. Are there any obvious errors that can explain this behavior? Am I misusing any pretty useless dragon features? One more thing, I do not want to use generator functions for it, I really need all the data in memory. I try to change more data at a time to cut per-object memory overhead Will do Your data takes around 12 bytes to 3-Tupal, so for 120-MB file you have 10 million Tuples. If you look at it, you can see it: An integer has an overhead of 24 bytes. A float also does. < 10 million toplas (2 * 24 + 24 + 63) bytes each weighed on 1.35 GB, but maybe the d list is increasing There is extra garbage.

matrix - Collapse data frame into single row and creating new columns based on row R -

I have a data frame with an object name and a list of statistical moments for that object, such as: IQR SCU X 1 1 2 2 2 3 3 3 3 3 For every line, I want statistical moments and object names to be preceded by attached. Such as: xMean xIQR xSkew yMean yIqR ySkew zMean zIQR zSkew 1 1 2 2 2 3 3 3 In short, what do I need in one line Data frame as it lists all statistical moments on a line because I get many lines like the last line but a limited set of columns. You can: df1 $ id & lt; - 1 Again the shape (df1, idvar = "id", timevar = "object", direction = "wide") [- 1] # min.x IQR.x Skew.x mean. Using IQR.y Skew.y Mean.z IQR.z Skew.z # 1 1 1 2 2 2 3 3 3 or dcast , select < Code> melt to reshape2 library (reshape2) dcast (molten (df1, id.var = c ('id', 'object' ), Id ~ ..., value.var = 'value') [- 1] # x_Mean x_IQR x_Skew y_Mean y_IQR Y_Skew z_Mean z_IQR z_Skew # 1 1 1 2 2 2 3 3 3 Or Usin g d

php - How to make Freeswitch ESL phpmod? -

Freeswitch 1.5 has been successfully installed, Fs_cli is working perfectly. I am using Centos 6. I want ESL to work with PHP, so I have followed the steps written in Freeswitch wiki to create ESL for PHP. But it is giving the error as below: to create MYLIB = ".././. Libs / libesl.a" SOLINK = "- Shared-Xlinker -x" CFLAGS = "- I / Usr / local / src / freeswitch / libs / esl / src / include -i / usr / local / src / freeswitch / src / include -i / usr / local / src / freeswitch / src / include -i / usr / local / src / Freeswitch / libs / libteletone / src -fPIC -fvisibility = hidden -DSWITCH_API_VISIBILITY = 1 -DHAVE_VISIBILITY = 1 g -ggdb -DHAVE_OPENSSL "CXXFLAGS =" - I / usr / local / src / Freeswitch / libs / ESL / src / include I / usr / local / src / Freeswitch / src / include I / usr / local / src / Freeswitch / src / include / usr / local / src / Freeswitch / libs / libteletone / src -fPIC -fvisibility = Chipi- DSWITCH_API_VISIBILITY = 1

java - Converting a variable from Double to Int -

Let's say I have variable tmp which is double, and I want to convert the TMP to an integer, But still how would I do this variable named Tmp? Thank you You do not have the same variables as both int Can be a double . You may have it though: double D = 0.1d; Int i = (int) d; D = (double); Println (d); In fact, for the first time you enter your double in a integer , then lose the numerator. Afterwards, you place it on double and specify it in your d variable. You do not have to explicitly cast int to double because it is a comprehensive conversion, but it makes it clear what happens. The end result is that your d variable is now a value that can be interpreted properly by an integer, but on the other hand, well, basically Your variable threw your variable no to change its type, though. You can write it like this in a lesser way: double d = (int) 0.1d;

cluster computing - Batch script for LSF when only one MPI process among the others has 2 or more threads -

My program uses MPI + pthreads, where N1 MPI processes are pure MPI codes whereas only one MPI process uses pthreads. The final process consists of only 2 threads (main threads and pathreads) Suppose that the HPC cluster on which I want to run this program has calculated nodes, each of which has 12 cores to maximize the use of hardware How should I write my batch script? The following is my batch script I have written I export using OMP_NUM_THREADS = 2 because the previous MPI process has 2 threads and to assume that others have 2 threads together with each other. Then I allocate 6 MPI processes per node, then each node can run 6xOMP_NUM_THREADS = 12 (= the number of cores on each node) Despite the fact threads all the MPI processes but one that is 1 thread. #BSUB -J LOOP.N200.L1000_SIMPLE_THREAD #BSUB -O Loop. J.J.B.B.-W. 00:10 # BSUB-M 1024 # BSUB-N # BSUB-A OpenMPi # BSUB-N20 # BSUB-M xxx # BSUB-R "Spain [PT = 6]" #BSUB-EXPORT OMP_NUM_THREADS = 2 How do I write a

Facebook Ads API: Fetch page_id by ad_account_id -

I am trying to get all comments related to a certain advertising account via the Facebook Ads API, I know That ad_account_id Is there a way to get Page_ID related to this ad account to get a comment on that page? If you are starting with an Advertising Account ID, you will see that graph as 'Downwards' Posts need to be promoted that are being promoted and comment on those posts For an advertising account, there are one or more campaigns, those campaigns have one or more ad groups, one or the other There are more ads - See the structure in (A Once you have ads, each ad will be displayed on the ad. Creative is attached - For most of those creatives, the promoted object page is the post, whose ID is the ad code of the creative object_story_id provided you have an entry token for the page or The user who can see the post on the page Not (can be a page or post demographic restricted), you then / & lt; API VERSION & gt; / & Lt; POST ID & gt; with

sencha touch select field change event not firing if store has duplicate names -

If there are duplicate names in the store, then select the Touch Touch field is not a field change event Suppose My data looks like this: 'schnachatouch'}, {text: 'sencha animator', value: 'centcha touch', value: 'extents'}, {text: 'cent touch' Help me The incident of change only Is when the new value is actually different from the old value. Not just for selected areas, but for all the fields

Windows 8.1 unable to run batch file without command prompt flashing -

I have defined a task to run a batch file, and currently every time a task is executed, a command prompt Box is glowing It is very undesirable Node.js executes the command prompt window At least this is a Windows Command Prompt that is Flash This is the task that runs the specified task: cmd / min / C "c: \ users \ computeruser \ Building Intelligence \ javadobe \ runCheck.bat" And here is the content of the batch file, (possibly showing unnecessary, but I basically He was trying to run these orders directly from the task scheduler. By typing in the file instead of what I really need to do: run at least one javascript file at node.js): CD "C: \ Program Files (x86) \ Building Intelligence \ javadobe \ "& Amp; START / MIN node index.js / exit One of the commands I have tried: cmd.exe / c start / min "C: \ user \ computer gonna \ Building Intelligence \ javadobe \ runCheck.bat" cmd.exe / c start / minute "c: \ Users \ ComputerUyure