There are severeal elements with the css class pageLink I would like to replace some strings within these links $(".pageLink").html($(".pageLink").html().replace("x", "y")); The problem is, the second $(".pageLink").html() gets the inner HTML of any of the elements and not necessarily the htm...
I have to create TCP service with TCPListener to handle multiple client. At a time 2000 client can connect with our service through their devices. Can someone please provide good example or article where I can find best way to implement that. I gone through multiple forum but confused in multiple...
I want to separate Unity configuration in my project to another project, but I have a some questions about the UnityWebActivator class in Unity configuration for MVC. In the UnityWebActivator class, it has this lines: // TODO: Uncomment if you want to use PerRequestLifetimeManager // Microsoft....
I am using SVG in my HTML. It works perfect in Safari 6.0 version but it is not working in Safari 5.1 version as seen in browserstack The code is : <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="255.766p...
I have developed one jsp,servlet project. In which I am making some images accessible over the local wifi network. I have placed all the images under "WebContent" folder. I have deployed this dynamic project on some machine "machinex", which is connected to wifi network "localwifi". I am able to ...
this has been asked several times, but I can't find any solution to my problem. I have a database with a table called 'DataPoint'. It has 513 rows. mysql> describe DataPoint; +-----------+------------+------+-----+-------------------+----------------+ | Field | Type | Null | Key | D...
select count(*) from table. I get count properly. Is it possible to get that count or convert that count in marathi language as i want to display that count in marathi?
i have list of plans.i want to allow to select more than one plan to user.i'm not able to find the option to allow them to select more than one plan subscriptions using one transaction only.
I need to copy database from one server to another. We follow the detach and attach method. However since replication is configured on the source server, every time we need to unconfigure the replication and detach the DB to copy. If I stop the SQL services and copy the .mdf and .ldf files, will ...
I have Java Application(Applet having two buttons Stop and Start) when i click start button method in script will be Executed.But my pure JavaScript code under Chrome Extension.When i click start button Click event method in JavaScript will be Executed.My question is Method calling fine but am ...
I couldn't install the mysql package and have looked at many solutions but nothing solved the issue. Please help, and tell what I need to do to make this work. After running the command, this was displayed: Collecting mysql-python Using cached MySQL-python-1.2.5.zip Installing collected package...
I need to have a datagrid with different column headers and cells data. E.g. one column Header is Text whereas other will contain Image object. I could not find HeaderTemplateSelector for this. Since these columns will be generated dynamically, I cannot declare these Header Templates statically ...
I need some help, why is it that the resolution of my html2pdf is blurry? How can I adjust the resolution?. Thank You.
Change script from IE(8) to Chrome or FireFox document.body.scroll = "no"; document.body.style.cursor = "progress"; document.all.frameBlock.style.left = document.body.scrollLeft; document.all.frameBlock.style.top = document.body.scrollTop; document.all.frameBlock.style.display = ""; document.fr...
Hey I am working on a decoder directshow filer. I am using libde265 library for this purpose. But I am facing some issues: HRESULT decoder::Transform(IMediaSample *pIn, IMediaSample *pOut) { FILE * fh; tn++; long sizein = 0; BYTE *bufin; BYTE *bufout; BYTE *centra...
I have the following model hierarchy: User.hasMany(Child); Child.hasMany(Profile); Once I have a User object loaded, I need to load its Children and their associated Profiles according to the following logic: Load all Children for the User, sorted by name. For each Child, load the first thre...
I have a high resolution Image (named 'content') and I set the ImageView image like it : ((ImageView)a1Butten).setImageResource((Integer)content) I get out of memory. Now, I don't really need this size of image. How can I reduce his size in runtime before I setImageResource? thanks
i want to declare a global variable which will be used in more than a method , this variable's value will be changed in a method , to be used in another method for example : class className{ var name : String = "" func setNameValue(){ name = "Sam" } func useNameVar...
I'm in a bit of a debacle. I don't know why, I've coded many top-down shooters in the years before. Successfully working, some multi-player, some with bots, mixtures, etc.. Usually in these games I handle collisions using simple instant-hit line collision. But I can't use that for this game, o...
I have made a folder with few images (web pages/images/..). I am not sure how to save image path in mysql database and how to retrieve the image path and display the image in jsp... can anyone help me with code...
I have scenario as follows, i have a text file, it has 105 millions of data, after aggregation the no: of records will be reduced to 21000-5 lakhs, is there a way to use same textfile memory after aggregation and visualize the data using d3.js without performance degradation.
I just found out how to use vimgrep command to find for a particular string in multiple files. I know that the search results are stored in quickfix I use :cnext to go to the next matching pattern. But this is not a feasible option if there are hundreds of search results. Can someone please exp...
I want to send mail using PHP. Mail body's content include printf function. But this printf function is not working in mail body. I want to display remaining warranty year month and days using PHP. My code is $message.='<p>'.printf("%d Years, %d Months, %d Days\n", $years, $months, $days).'</p>...
Probably a naive c++ question, I have a class in a library which has a public typedef of a function, which is also an argument to its constructor. I want to be able to call this constructor by creating a definition for this typedef. In order to simplify the understanding, I have created the sam...
I have a page named sample.aspx. This page reads image from user.and saved details shows to the user using a table....When the user click on the edit button it shows all the details back to the fields(including image).Update works fine for me.But The page shows the updated image only after cleari...
I have a requirement where i have to populate drop down with list of all the weeks in a particular year as shown in the image How can i achieve the list dynamically depending on the year using jquery or Rails?
I have a excel file. I wish to write a vba script to compare the system time and the cell value time. If system time is exceed the cell value time, it will show a pop out message to inform user that, the time is exceed. My file will look like this: I have been research a while but seem like...
I have a derived class: class LineCurve : public QObject, public CurveShape, public QGraphicsLineItem { Q_OBJECT public: LineCurve(QPointF beginPt,QPointF endPt); QVariant itemChange(GraphicsItemChange change, const QVariant &value); public slots: void printEndPoints(); private: void...
There is a PHP error somewhere in my page... <!DOCTYPE html> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <link rel="stylesheet" href="StyleSheet.css"> <?php $loggedIn = FALSE; setcookie("logged_in", crypt((string)$loggedIn), time() + (864...
I'm trying to develop a helpdesk & initially trying to input pre defined selected question with their solution. I'm stuck where i need to display different solution to different question depending on the question selected from the drop down list. Please Help <html> <head> <title>H...
I have a DatePicker (in android) which sets the value of EditText mEdit as the selected date. Now I want to store this date in Shared Preferences. Which of the following would be the best possible solution? Store the date as a String (I don't really want to do it this way) Store the date, month...
I am having a step container div in my form. Inside each step i am having controls that should be validate on the next button click, before going to the next step i need to validate the fields on the next button click. <div class="step-content pos-rel" id="step-container"> <div class="s...
I am new to AS3, and would like to trigger an as3 function from javascript. AS3 package code { import flash.display.MovieClip; import flash.external.ExternalInterface; import flash.text.TextFormat; public class Main extends MovieClip { public function Main() { ...
I am using android.support.v7.widget.Toolbar with view pager like this : TabLayout tabLayout = (TabLayout) findViewById(R.id.tabanim_tabs); tabLayout.setupWithViewPager(viewPager); the tab is displaying with text of the view pager when i add the dummy fragment to it adapter.addFrag(new Fr...
I have a time span string as 1.21:00:00 it means 45 hours and i need it as 45:00:00 is it possible to do that in c#?
I working on a php project using codeigniter. Please advise me what is the global way to set time zone for php and mysql . In which file i can set this. currently i am using this before every entry -: date_default_timezone_set("Asia/Kolkata"); $time = Date('Y-m-d h:i:s');
I have df with 4 variables: date, geo, name, value I want to transform the name (factorial) from rows to column where the ID is both date and geo. the problem is that each new name column may contain a different number of rows- so I want that my ids contain all possible combination and in some co...
Suppose I have the following div: <div id="container"> <form> <!-- cotent --> <span>__HERE_SHOULD_BE_THE_ERROR_MESSAGE_</span> </form> </div> The thing is the span's content containing the error message is generated from ajax request, therefore can be quite large. How c...
I have limited knowledge about batch file so pardon me if I ask any explanation on your answers :) Anyways, here's the problem: I have a text file that contains ISBN numbers, this corresponds on the XMLs that are saved in my hard drive. I want to know how to: read the text file and open each IS...
Which is better to get the current time for inserting to database? Efficiency, speed, ram consumption or any other factors which make a person to use this instead of that.
i want to use my macbook pro as wifi hotspot from ethernet .Is there any effect on its wifi driver of it.
I am new to a lot of the ASP.net MVC5 features. I wanted to know if there as a library that would automatically add the escape characters to a C# string that's intended to be output as html? Would HTMLAgility Pack be what I am looking for? Or is there soemthing built in that does it for you? May...
Consider two versions of a simple weather model which stores the location of clouds: class cloud: def __init__(self, x, y): self.x = x self.y = y collection = [] collection.append(cloud(1,2)) collection.append(cloud(4,6)) def update_all_clouds(collection): for c in coll...
I keep getting this error when my switch is executed. I can run through 'A' but when i try and execute 'B' it throws this error: Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at java.lang.String.charAt(Unknown Source) at PatientManagem...
there is one page java import "<%@page import="org.apache.velocity.runtime.directive.Foreach"%>" but after execute this page there is nothing in line 1. I was using jquery-1.10.2.min.js file and now I'm using jquery-2.1.4.min.js file. but same issue.
I have a .sql script that contain all mysql queries. Now suppose after executing the script I want to check if the queries run successfully or not. In scripting if we do echo $? Then it will return 0 if query is success and 1 if its not successful. No I want to do it in python Script. How ca...
i want to insert data from my registration form into database entryform. I have created a table named registration which has 7 columns. On running the code i m getting an exception "Table entryform.registration doesnt exist". please help me. Here is the code: enter code here package uclidit; im...
= r.input :date_start do = r.text_field :date_start, id: 'date_start' How can I set default value for this?
i developed cordova web app. i wanna use google map. google map is working on Chrome but, it is not working on android emulator. i don't know why. it is so strange situation. i use every solution but i coudn't fix it. please help me
i'm trying to use the message pack library from here i have visual studio 2005. i have added the "msgpack.hpp" file to the "header files" directory + all the other relevant ".hpp" files necessary . I have created my own "main.cpp" file and copied the program from the link : #include <msgpack.hpp> #include <vector> #include <string> #include…
There is one dropdown. Dropdown its contain multi language.when i select language from dropdown change the language whole application
How do you push unindexed numeric keys defined by a variable into an array with Javascript? var arr = [{ "1" : [{ "firstname": "John", "lastname": "Doe", "job": "Stackoverflow" }] }]
My organisation is retail. We are going to launch an app soon(10 days tops) in India for starters. I want to set up a Hadoop cluster for the same. We are expecting a minimum of one hundred thousand transaction/day for beginning. There are about two hundred thousand images on the apps and about on...
An ejb service takes a ldap filter as string and returns a result from ActiveDirectory. The problem is that sometimes attribute values contain special characters that need to be escaped for the entire filter as specified here: https://msdn.microsoft.com/en-us/library/aa746475(v=vs.85).aspx and fo...
I need to and new xml node before given node. Example : <doc> <a></a> <b></b> <c></c> <a></a> <d></d> <e></e> <a></a> </doc> I need to add new <n> node before every <a> node. so the output should be <doc> <n></n> <a></a> <b></b> <c></c> <n></n> <a></a> <d></d> <e>
There is an application inside which there are three buttons , when user clicks on the 1st the notepad exe file opens but when user clicks on the second the java .jar file doesnot open . can someone please help following is the code i am posting private void jButton2ActionPerformed(java.awt.e...
I want to Pin taskbar an application of metro app (app of win 8/win 10) please help me Pin Taskbar By C# in an metro app by C#..thank you read my risk! http://i.stack.imgur.com/b9zNR.png
When built a Maven based project on Jenkins it is failing. Asked developers in my project came to know that the dependencies x, y, z were not been built and their jar files are not getting pushed to Nexus repository. We use Sonatype Nexus, I believe the dependencies were not been configured in ...
does anyone know how to implement an alert message with sound? I essentially want it to use a default ios alert noise repeatedly while the message is up and off when dismissed. Right now I have the message implemented as such: UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"My Alert M...
This is an example: function func1() { setTimeout(function(){doSomething();}, 3000); } for(i=0;i<10;i++) { func1(); } after executing it , the delay happens only in the first loop, but it didn't happen in the rest of the loops in that 'for' expression. I want to make the delay happen i...
Using TSQL. My problem is I have a list of usersid and locationid. U user can only have one location. With the following query I get a list with all users with multiple location id's Select * From Userslocation WHERE [USER] IN ( SELECT [USER] FROM Userslocation GROUP BY [User] ...
does anyone know how to read pajek file in shiny and then find the degree of each vertex and output it to CSV file in descending order? Here's the Pajek file i want to import in and export the degree into CSV. In R, i know how to code it normally like this: #read the pajek file in igraph repon...
I am in a need to merge the Lucene indexes kept on HDFS. Wrote the customized version of the normal merge tool provided by Lucene. Code base is given below HdfsDirectory mergedIndex = new HdfsDirectory(new Path("/mergedindex"), new Configuration()); IndexWriter writer = new IndexWriter(mergedIn...
I have written a test Java application which retrieves selected LDAP user account attributes and prints them to console. Interestingly of the two date/time fields "accountExpires" & "pwdLastSet", only one returns valid value. "accountExpires" field returns 0 despite having a Long value. According...
I want to convert timestamp to readable date format, the timestamp is : /Date(1434434419100-0400)/ but not sure how to deal with it together with the timezone issue. date('Y-m-d H:i:s', substr($editDate, -20, -7)) Thanks
I'm using Url.Action to generate the request link in an AJAX call. Then I manually append the Id to it. $('#form #field').keypress(function (e) { if (e.keyCode == 13 || e.which == 13) { var val = this.value; var url = '@(Url.Action("action", "control"))' + '/' + val; ...
i am doing with dat function and want to calculate date difference with controller function "dayResult()" but if i write code in it,angular function stops working.can anybdy tell how to get result through dayresult() function AngularJS Plunker document.write(...
Hi i have used paypal's adaptive payment and it opens mini browser when I click on pay button, but I want it to be opened only if the radio is checked. <script type="text/javascript" charset="utf-8"> var returnFromPayPal = function() { document.getElementById('loading').style.display = 'blo...
I want to store bulk data (more than 1000 or 10000 records) in single operation by mongoose. But Mongoose do not support bulk operation so I will use native driver (mongodb for insertion). I know that I will bypass all mongoose middleware but Its ok. (Please correct me If I am wrong! :) ) I ha...
i have m3u8 file like that #EXTM3U #EXT-X-VERSION:3 #EXT-X-TARGETDURATION:11 #EXT-X-MEDIA-SEQUENCE:561 #EXTINF:10.799611, _c10_262_c10_148_c10_561.ts #EXTINF:9.599644, _c10_262_c10_148_c10_562.ts #EXTINF:9.599667, _c10_262_c10_148_c10_563.ts #EXTINF:10.799611, _c10_262_c10_148_c10_564.ts #EXTINF...
In my cocoa application, I am using WebView to load my URL. For my requirement, I will reload the URL for every 10 minutes. But sometimes, the app got crashed when I am trying to reload. I am using the below code to load the URL in webview. NSURLRequest *request = [NSURLRequest requestWithURL:[N...
I have two entities: Song and Author.The Song knows the Author with a ManyToOne relationship. I generated the form for Song that I use in the new and edit pages. Here is what it looks like: // ... public function buildForm(FormBuilderInterface $builder, array $options) { $builder ->add('n...
I use the following line of code to clear my gesture but its not clearing and NullPointerException Occurs. public void clear(View view){ gestureOverlayView.cancelClearAnimation(); gestureOverlayView.clear(true); }
I am trying to load a utility file called as apiclient which is present in app/stores/util My distribution folder has a file cfile.js which is calling this file using the following code : var api = require('../util/apiclient'); I am able to load the component files etc which are present in ...
I have been developing a free hand drawing app using Fabric JS, and some custom brush classes on top of it. However, when I tested it on an iPad now, certain brushes specially spray paint for example become super heavy and almost non-responsive after only 4-5 strokes. Irrespective of my project...
I would like a multi language menu on my micro-controller, but I don't know how. I thought of some ideas for structure languages who have more sub structure (English, Slovenian, German, ...), and on sub structure have: char title[] = "MENU"; //englsih But I don't know how access into my stru...
I have query like this: select empid,transDateTime from Trans_Details where empId='16510' and transDateTime >='2015-05-07 00:00:00.000' and transDateTime< ='2015-05-07 23:59:59.000' I'm getting output like this: empid transDateTime --------------- ----------------------- 16510 ...
I am trying to print contents of a file with approximately 4000 characters. Somehow the program records only the first 220 characters and terminates. int main(void) { char ch = ' ', file_name[25], payload[3904]; FILE *fp; printf("Enter the name of file you wish to...
I'm trying to create a Sign Up page for my Android system. I need to check validations for it like email_id already exists ,password should contain more than eight characters ,mobile number field should contain maximum 10 digits .How can I do it?? This is my code..I use java rest webservices and ...
I want to do the following: Connect to a Postgres database and select the contents of a particular table 2 rows at a time Take the 2 rows, convert them to CSV strings and send that string over the wire to a RESTful API endpoint The problem I am having is that in order to process the ResultSet...
I have this code to expand/collapse (toggle) that works fine. But when the page postback I want to maintain the state of the divs. Right now if I refresh the page all the divs are collapsed. How can I do it? JS: $(document).ready( function () { $(".header").click(function () { ...
I found this helper class: public sealed class QueuedLock { private object innerLock; private volatile int ticketsCount = 0; private volatile int ticketToRide = 1; public QueuedLock() { innerLock = new Object(); } public void Enter() { int myTick...
I'm currently working on a project, and I got this error. I do not know why it stops at Index 38. The error is org.apache.jasper.JasperException: javax.el.ELException: java.lang.IndexOutOfBoundsException: Index: 38, Size: 38 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j...
I downloaded Tizen SDK Manager and installed Tizen SDK for Native Application Development like below Image. Now it is not showing Application Template for Tizen, however it is installed and showing in Template folder Folder has Native Template How to add Template in IDE? Thanks
I can zip the selected Folder and save it to Desktop successfully. The thing I am wondering is, how can I prompt the user to select a save location? (Like a 'save as' functionality) using (ZipFile z = new ZipFile()) { z.AddDirectory(currentUrl+folderPath+sFold...
How can i insert data into html table without database first, and then when the table have the data it will be save on the database last, sorry for poor english. Thank you in advance
OK, sure this is really simple, but I'm new to Java / jQuery so all help knowledge is greatly appreciated! I have three sets of information, but i want each set to behave the same way, when I check a box, I want a certain div to appear, then disappear when the checkbox is unchecked... Started w...
Let's say I put the function calls into string of array, ['next_release()', 'last_release("com_disagg")'] Hope to get the equivalent results of following How could I get it in Python iterate the array and dynamically call the function with params. next_release() last_release("com_disagg...
I tried to make settings for my app using this guide from google Settings | Android Developers. But whenever I try to open settings it says Unfortunately has stopped. MainActivity.java ... Intent startSettings; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(sa...
I have mvc4 application, and I also have weapi applicatoin. Following way I have set up in my IIS 1 website - http://www.xyz.neet is point to D:\Application\Website - this had a global.asax file. 2 added webapplication to above website- http://www.xyz.neet/webapi is point to D:\Application\Websi...
I have created a POC project for Azure ServiceBus Queues and Azure Blob storage in Visual Studio 2013. I have simply added Nuget Packages for AzureStorage and Azure ServiceBus into project which added some configurations in projects app.config file. I just changed the connection strings in app s...
Is it possible to use a redelivery policy for a single message in a queue? So different Messages in a queue can have different policys. I found just a setting for the whole queue. Best regards, Peter
I am searching about the functionality like filtered inputs for the password. I need a functionality where the user will inputs their password in four diff-diff inputs as password. I have device gem with me, But Is it possible to have that functionality with that gem. If any other gems availabl...
I am fairly new to GLFW and Cocoa programming but have used C/C++ quite a bit over the years. From what I've gathered, GLFW abstracts the OS-level windowing details for you but does not allow for adding of menus and buttons. Additionally, it abstracts out input handling (e.g. keyboard input). So...
I am not being able to understand this case. Why just git pull origin develop does not do the fast-forward. Why I need to run git pull to update the files. It is a server copy. Local changes are never made. Developers update their work in the develop branch and then a pull is performed on the se...
I have log file continuously written to the datagridview. However I want to highlight row from search bar when clicked. I can easily go over 10000 lines of log from Ios, so I want it to be efficient as possible. How would I do it? Previously this is what i did which gives out error. It just doe...
I have a form with 2 different group of check boxes that are all required to have different names. The type of validation I need is that the user must select at least one option from Group 1 and at least one option from Group 2 before the form allows them to submit. I'm sure there is some way to ...
enter code here I have created a class to get the token that is needed to create the credentials then while creating storage account in azure environment using c# an exception "The server failed to authenticate the request. Verify that the certificate is valid and is associated with this subscrip...
I used VLC player to stream my rtsp stream. Using VLC i can be able to stream that, but using some other player(Lead Tools player) i am unable to play that stream. Anyway in my stream I do not have a audio channel. So what would caused to make that unplayable. I used wireshark to analyse data pac...
I have a problem that is still unsolved, with query insert in the PDO. My example will save an article like this. ARTICEL : This is the script mysql query insert serves to store data. code: <? php $ sql = "INSERT INTO MyGuests (firstname, lastname, email) VALUES ('Riski', 'febri', 'NAM...
Not sure if this has been asked. But here it goes. Let's say I have a text file containing 1 Why 2 We 3 Please 4 OR 5 I 6 AM 7 HUMAN 8 OR 9 ME Now I want to get lines 5-7. Do note that the OR word acts like a delimiter in the text file. I know the usual way of reading a text file in python i...
i tried to count the number of key points that are matched between referenced image and query image i need to calculate the number of inliers points matching , any one can tell me any function can calculate that ... in this example there is a function can show matched points : figure; showMatc...
I want to validate form using angularjs and angular-material built-in directives including messages under field like, input, select, radio buttons. There are some specific requirements: The Form fields should have equal heights The radio buttons i.e. md-radio should be inline The location of mes...
I'm building a web application that has a javascript chart in it. The idea is to select a time range, get the relevant data (temperatures) from the DB, deliver it to the page and display it in the chart. The data's datetime does not come in regular intervals, so from one row to the next, the tim...
I Have an array like this, who I print_r() from a sql query: Array ( [rfq_number] => [id] => 3 [nama_customer] => syaifudin amin [date] => 07-10-2009 [ship_to] => syaifudin [terms] => prepaid [phone] => 08378979487 [description] => deskription1,desk...
I have problem with validation on my follow code: <div id="change-lng"> <button class="select-lang"> <span class="fa fa-angle-down"></span> <a class="en flag actv" href="http://www.my-address.com/><span>english</span> </a> </button> <div> <a class="cz flag" href="http:/...
There are tons of responses to this general problem, but 99% are newbie errors or nested resource errors. Hopefully I'm not missing something obvious. Note: I'm using Rails 4.2 So, I have this error: No route matches {:action=>"-------", :controller=>"admin/-------", :format=>:js, :id=>23, :us...
Please see the following console output after executing activemq console command: /opt/apache-activemq-5.5.1/bin $ sudo activemq console sudo: /var/lib/sudo/vivek writable by non-owner (040777), should be mode 0700 [sudo] password for vivek: INFO: Loading '/usr/share/activemq/activemq-options...
i have the following in my en/transaltion.js 'AllDogs': { 'Dogs' :{ 'zero': 'ALL DOGS, ', 'one': '1 DOG SELECTED', 'other': '{{count}} DOG SELECTED' }} hbs has the following {{t AllDogs.Dogs count=filteredCount }} Which is not showing anything but if i...
I have a api call who give me the list of data, and I am iterating data via ng-repeat (its a list of more than 100 items) For getting list of data I have call an Api in App Controller in angularjs like this: var path = serverUrl + 'api/getAllMails'; $http.get(path).then(function (result) {...
I have an extra information to catch about my users, the sitecode associate. To do that, I use a request with a WHERE IN construction. But I have sometimes the same value in the IN clause, and I need to show the data for each line (my request return the result only once.) Here is my request : ...
I am facing problem to show chart multiple times in a page. following is my code. my application is dynamic. but if the following can show the chart twice or more, my problem will be solved. This code is showing chart once. <!DOCTYPE HTML> <html> <head> </head> <body> <script type="text/jav...
I am using Enigma theme for my site. and it comes with default slider-carousel. its works fine on my laptop but when i open it on my Phone the slider shrink so i cant see the content of slides(images). my website focus is on those slides so i want that when on mobile view it automatically crops ...
So I have two websites I have added a Google Font to and it is working in one but not the other on my Android 5.2 based Chrome browser. Seems to work fine in all other browsers. Not working: http://www.averagejoesarchery.com/ Working: http://www.imprintitems.com/ Any ideas on what I am missing...
INSERT INTO hive_table SELECT b.id,a,id FROM hive_table_1 a,hive_table_2 b WHERE a.id BETWEEN b.id1 AND b.id2; execute such SQL on spark-sql got errors: ERROR CliDriver: org.apache.spark.sql.AnalysisException: missing TABLE at 'hive_table' near ''; line 1 pos 12 at org.apache.spar...
I am using the phpqrencode library to generate QR codes within a WordPress plugin. There are 2 possible codepaths. In one, the image is created and everything is happy town. In the other, the call to ImagePng within the library returns false. I am writing lots of debug info to a file. The only ...
There's a mysterious white area under the footer in almost all bootstrap themes when viewed from Google Chrome but it doesn't show up when viewing from Internet Explorer or Mozilla firefox. For e.g http://webthemez.com/demo/mentor-free-html5-bootstrap-coming-soon-template/ But this white area u...
I have solution structure as: I want to call recommendationProcess function from CTL_RateRecommendationDetails.ascx.cs from CTL_RateRecommendationDetails.ascx So i written code as: $.ajax({ type: "POST", url: "/UserControls/CTL_RateRecommendationDetails.ascx/recommendationProcess",...
I am trying to import the library. I added it to the gradle script compile 'com.android.support:design:22.2.0' If I open the project structure( control+shift+alt+s ) It is added on dependencies of the module. But If I try to write the import it doesnt appear. There is a photo with the projec...
I am writing code for login and register application. Below is the android code & php script for register. The values are not storing in mysql database table (my_table). When i open "http://fooddoof.freevar.com/Register.php" in brower i am getting the "Parse error: syntax error, unexpected '$use...
I am currently learning D3.js and leaflet, I am new in this area. A example I learned from a blog, http://zevross.com/blog/2014/09/30/use-the-amazing-d3-library-to-animate-a-path-on-a-leaflet-map/ which gives how to animate a path on map. I try to figure out how to animate several paths after fi...
Need to clone JSON inside the same JSON at different hierarchy level. Below is a JSON for example Initial code goes like this: { "data": { "moduleName": { "content": { "moduleName": { "property1": "Lorem Ipsum Dummy Text", ...
I have the OccupancyResultList list List<Occupancy> occupancyResultList = new List<Occupancy>(); of Occupancy public partial class Occupancy { public Nullable<System.DateTime> on_date { get; set; } public string type_code { get; set; } public Nullable<int> available { get; set; }...
I'm trying to get the process respond as a string so I can use it in different place in my cod , this is the solution that i have so far const string ex1 = @"C:\Projects\MyProgram.exe "; const string ex2 = @"C:\Projects\ProgramXmlConfig.xml"; Process process = new Process(); ...
I'm trying to learn C programming with some practical exercises. This one for example should read 2 series of numbers (days of the month) input by the user. The problem that I'm having is that after the first serie, that works ok, the program skips the other scanf commands and terminates. Why...
Please find the plunker code app.js var app = angular.module('plunker', []); app.controller('MainCtrl', function($scope) { $scope.name = 'World'; $scope.levels = [{LevelId:0,LevelName: "Level 1"}, {LevelId:1,LevelName: "Level 2" }]; $scope.updateLevel = function() { ...
Is there any way to find unique elements in more than two arrays in ruby ? I have aar1, aar2, arr3, arr4 arrays and I want to find unique elements in these arrays.
I need to process a querystring and create records out of them. Originally the format was an escaped string in this format: relativeFilePath1^relativeFilePath2^relativeFilePath3^relativeFilePath4 where the ^ character was escaped with %5E. Is used to split the string at this posistion, create...
I want to save what user typing in textarea as a file. For that, I'm using file api but i couldn't. I'm new to file api. Please Help me. Many Thanks! Here is my code. document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady() { window.requestFileSystem(LocalFi...
I have a PFQuery that is querying a certain set of objects that I need to be displayed in a TextView. Normally I would do this like so: NSMutableString *favTeamsText = [NSMutableString string]; for (NSString *team in currentUser[@"FavTeams"]) { [favTeamsText appendFormat:@"%@\n", team]; } ...
Is there a way to simply seed a random generator but by using the <random> header instead of rand() and srand()? I found the documentation about it quite abstruse. I did notice that there is a seed_sq entry but I fail to understand it and it lacks example. Lastly, my search engine only yielded...
unordered_map<int,vector<int> > mymap; while ( i < n ) { cin>>foo; mymap[foo].push_back(i); i++; } auto it = mymap.begin(); while ( it != mymap.end()) { // How do I access the vector of ints pointed to by the iterator? } Here, I ...
I'm new to PHP. I'm trying to develop a quiz kind of application in PHP and MySQL. with 1 fetch, I fetched say 10 questions along with its answer and answer options and storing in php multidimensional array. My aim is to display 1 question at a time and the form will be submitted. The problem I'm...
I need only one bit to represent my data - 1 or 0. What is the best way to do so in C? The "normal" data types are too large.
I am trying to trigger a set of mouse events on the fly using a loop http://plnkr.co/edit/r3vqU7kbm0lo5AwHk1Zw?p=preview window.performEvent = function(eventType, element, data){ var clickEvent = document.createEvent("MouseEvents"); clickEvent.initMouseEvent(eventType, true, true, windo...
I have following url in laravel: 1.Need to change From: localhost/laravel/page/about-us/ to localhost/laravel/about-us/ My Route.php is Route::get('page/{title}/', array( 'as' => 'page', 'uses' =>'Frontcontroller@page')); But When I change to this, Route::get('/{t...
I am sending today date to server but server shows yesterday date what's wrong with me? here i am using the code for getting date and sending date . NSString *dateValue = borntext.text; NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; [formatter setDateFormat:@"MM/dd/yyyy"]; NSDate *...
I am just trying out a simple code and getting this Note. Program is compiled and executed successfully, but this note disturbs me. - What are the unsafe or unchecked operations here? And what is meant by unsafe or unchecked operation ? - What does -Xlint:Unchecked do? and how to use it? I used i...
php code:- // execute R script from shell // this will save a plot at temp.png to the filesystem exec(".\R\R-3.1.3\bin\Rscript .\R\R-3.1.3\bin\my_rscript.R"); // return image tag $nocache = rand(); echo("<img src='temp.png?$nocache' />"); } ?> //my_rscript.R args <- commandArgs(TRU...
I'm using reflections to get a list of java.lang.annotation.Annotation Annotation.getClass() or Annotation.getAnnotationType().getxxx() any class methods do return the interface class of the annotation. I need the interface class of the annotation in my Spring application to lookup beans by ann...
I have a table that looks like this: id pop fre A:1 sh 0.6 A:1 mi 0.2 A:2 sh 0.9 A:3 mi 0.5 .. .. .. What I want is creating a new table with the second column (pop) as a column names and values of (id) column without repetition. The corresponding values of (fre) column is to be u...
I have written a basic maven repository with java upon HTTP. That can handle both maven, gradle publish and dependency-request. I used Embeded jetty and Servlet to handle the request. Now as like original repo or archiva, they some time need userName and password for publishing or getting artif...
I am having getting proper outputs for this functions. Does datediff only calculate the difference in days for days in the same month? When I pass in a date in the form of '01 Jan 2015' it always sends me back a 0 =/ did I miss something in my logic or syntax? CREATE FUNCTION dbo.CanPolicy ( ...
I got error: object doesn't contain a defination for 'StyleCode'. Infact I get list of record in model when check it on breakpoint what am I missing? HomeController.cs public ActionResult Index() { using (var context = new ApronPointEntities()) { ...
I have a MySQL table column with enum data type "1","0" (Yes,No). On runtime I want to change the yes option with checkmark and No option with crossmark. I am using bootstrap glyphicon. So far I have done the following : <?php if ($row_healthplans['PlatinumPlan']=1) { echo '<span class="glyp...
I have the below scenario with google oauth 2.0 phonegap application A user logged in to my phonegap app with google oauth 2.0 The user changes account password from website after login to the app The issue is the user still capable of requesting google apis with the existing access token. Pl...
I write a java application, It spawns a process to run a command in docker docker run --dns=127.0.0.1 --name abcd -v /tmp:/share appium /test/run.sh But, when the docker starts to run, some warnings appear. *** glibc detected *** /usr/xxx/java/bin/java: free(): invalid next size (fast): 0x000...
queryIntentActivities (of Android PackageManager) sometimes returns an empty list, even though the app being checked does contain one or more activities. It seems that an activity which is named like this in the Manifest, is NOT found/listed:
My Linux distro is RHEL7, and kernel version is 3.10.0. Form the printk document, I know minimum_console_loglevel definition: minimum_console_loglevel: minimum (highest) value to which console_loglevel can be set Querying current log level of printk: [root@localhost kernel]#...
I am trying to make a media player and for this I need to show all of the mp3 files stored in "/sdcard/Music/" folder (and under its subfolders) in a listview. But the problem is, I cannot access the files that are stored in the subfolders,it is only showing the names of files which are stored in...
I have a problem using the class input-group-addon: my html code is generated by JavaScript and I generate it in identical structures in my various pages. But, in one page, it works, and in another page, it doesn't work. I can't figure out why! When it's working: And when it's not: Here i...
Why is it that division of an integer by 0 gives ArithmeticException whereas division of a non-zero double or float by 0,prints Infinity. Also division of an int 0 by 0 gives ArithmeticException whereas division of a double or float 0 by 0 gives NaN(Not a number). public class First { public...
I am trying to do data import handler in Solr.But not able to index the data from solr using the full_import command.It is giving a NumberFormatException even though I have defined the fields as string in schema.xml.I am using 5.2.1 version of Solr. WARN - 2015-07-09 07:14:19.137; [ king...
i have a problem in ReactJS I want to call this.props.onAction() method from Child class but i have an error: Uncaught TypeError: this.props.onShotImageClick is not a function http://jsfiddle.net/01fbL37L/ I want to call this method when buttons are generated dynamically in Parent class. ...
I'm using this jquery plugin to create a wysiwyg text editor, I created a textarea where I want to display the text editor: <textarea class="editor" rows="3" name="textEditor" id="textEditor"></textarea> and then I called the jquery function: <script type="text/javascript"> $(document).ready...
as i am new in programming doing my college project. i am creating one android application using web api in mvc c#. i just want to check that the current time is before 6 am of today and check the request counter b less than the specified number. so how could i get that specified date from the da...
Many times I find that I need methods that are not so widespread. I know I don't need a polyfill to solve this everytime but I think they are usefull and I'd like to know the steps to implement them. In this case, i'd like to polyfill the element.closest() method, but this is just an example. No...
Hi is there a way to calculate running count distinct in HIVE? I have a data frame that contains date and hours and the id of people that are currently visiting a website. What I would like to do is to know the "cumulative" count distinct of the id split by date. I can not use group by dt, hou...
I have the following package.json at the root of my app. .... "dependencies": { "LessonApi": "file:apis/lesson", "SearchAPI": "file:apis/search", "SlotApi": "file:apis/slots", "UserAPI": "file:apis/user", "bcrypt": "^0.8.3", "co": "^4.5.4", "co-mysql": "^1.0.0", "koa": "^0.20.0", "koa-basic-auth...
I have a problem with a SQL Command. I have a string that holds a SQL command, but when I run, it returns me an error: Column n1 does not exist Note: n1 is what I typed in my textField. Code: String nameprod tf_NameProd.getText = (); String sql = "select * from Product where prod_name...
Does EL Expression evaluation depend upon jsp version too? Or is it that it only depends upon Servlet Container version? My servlet version is 3.0 and JSP version is 2.1 After googling a bit, I found out that my JSP should evaluate EL Expressions efficiently because Servlet Container v...
can somebody help, my prob : after upgrading Osx Yosemite (To Last ver) i got an error Called : 403, or "Forbidden" from the root link in local environment, instead of the "IT Works" After verified httpd.conf, and other apache confs file, everything appear to be Ok. Any ideas ? Thank u.
Heres the scenario, I have array with 7 items and I want to separate them in every fourth iteration.. just like this $counter2 = 0; $counter3 = 0; $counter4 = 0; $sample_array = array('Aso','Pusa','Daga','Kuting','Tuta','Bubwit','Boom'); foreach($sample_array as $sample_array...
I got a phonegap project that only have the builded iOS platform files. Now I need add some plugin into the project, how can I do it. I try to download the plugin source file, add js into js folder,reference it in html file. And the add object-c file into the plugin folder. But the plugin doesn't...
Js code show(0101001003); function show(number) { alert(number); } Online Demo 0101001003 is not binary number but this function show alter(17039875)!? why?
In my application I am reading .png images and doing some processing. The output with OpenCV 2.4.9 and OpenCV 3.0.0 (both for windows) are not bit exact. What may be the potential error. Is there any difference in libpng in both the versions which is causing the problem. Also is there any possib...
I have TCP sockets to stream data and its a two way communication. When i am inside blocking call like(in.read) ,i may have to write to sockets. So i want to schedule these task let say 100ms to each task if i got the data Observable will emit it other wise to the next. But i am not finding way ...
i am a newbie to Javascript/jQUERY . Im loading a div from a url using load() .Then i would like to insert an image on the left on a span . Im using prepend but the image is not loading.When im running the code from console the image is loading properly. Your help is appreciated, The code ...
I am using Parse.com in order to message to my clients but i found Parse.com does not buffer messages and if my clients been offline after they become online they just receive the last message How i send messages: ParseQuery query = ParseInstallation.getQuery(); query.whereEqua...
I am working on winrt phone 8.1 project. I have this combobox. <ComboBox PickerFlyoutBase.Title=" " Name="ModelComboBox" x:Uid="ModelComboBox" DisplayMemberPath="vcModel" IsEnabled="False" /> And just use this code to in selection change event of combo box that is above that combobox. ...
im currently look for an Solution to open my custom URL Protocol in my C# Chromium Form. In Official Chrome Browser all work fine, here i found a Solution to check if my Protocol is enabled via Config-File, when i try it in my own browser the Page is still blank... So i'm thinking its just a co...
I have an application built on Yii 1.1. I'm having problems with the backend API. Here is the case. I am new to API building and I have been tasked to build the backend API of a project. Now when it comes to Form submission from the frontend, my Tech Lead says I should change the form request fo...
In my project I use the logging from catel. I add my own LogListener. LogManager.AddListener(_myloglistener) I catch the event from _logListener.LogMessage and want to display the log messages in my view. Now my question: Where do I get the information of the LogType. Is it a info, warning or ...
Plug-in org.springsource.ide.eclipse.commons.gettingstarted was unable to load class org.springsource.ide.eclipse.commons.gettingstarted.dashboard.WelcomeDashboard.
Let's say I have a simple contact form. <form action="/message" method="post"> {!! csrf_field() !!} <div class="form-group"> <label>Name: </label> <input type="text" name="name" class="form-control"> </div> <div class="form-group"> <label>Email: </label>...
I am developing the android H264 Video rendering application.While rendering the H264 video stream i am using the MediaCodec API and MediaCodec color format is COLOR_FormatYUV422Planar.I get the surface object from Texture View and pass the surface reference to the MediaCodec API.It renders the v...
I have deleted few application related services from registry on windows server 2012 R2, but the services still display on services management console. Can someone please help how to remove the deleted services from services management console ?
I'm creating a PHP/Javascript, i create a form, with a button who create new input onclick (it work, i can find with elements with the Google Chrome element inspector). The problem is, when i submit my form, i can't see the new input in the '$Post' array. How to fix this problem? My function f...
I have date data. It can be Mysql data, Java array list or javascript json array. [ { start=2015-07-02, id=3 }, { start=2015-07-03, id=4 }, { start=2015-07-06, id=5 }, { start=2015-07-07, id=8 } ] I want to make like "2015-07-02", "2015-07-03 ~ 2015-07-06", "201...
I am starting to learn php, I want to create and write a simple text file. My code is as follows: <?php //Name $filename = "newfile.txt"; //Pointer $file = fopen( $filename, "w" ); if( $file == false ) { echo ( "Error in opening new file" ); exit(); } //Write the data fwrite( $file, "This ...
So, I want to make a .bat to print words into a chat window, or more speifically, a steam chat window. Basically what I'm asking for is how to replicate key presses in a batch file, then loop it.
I'm making a report that compares the production of a cell to the average production (roughly) So a cell (cellule) is in a room (salle), and there are many cells in each room. We have for each day the production (Production brute) and the standard production in the database. The rows are group...
Suppose I have a table which displays rows of data from a backend service like this: <table> <tr ng-repeat="item in rows"> <td> <span> {{item.amount}} </span> </td> </tr> </table> How can I define a BS3 tooltip to disp...
I want to build a contacts autocomplete UI just like the "To" contacts box in Gmail. I haven't found Google provide such autocompletion service, but I've found maybe I can retrieve all the contacts, I found three relevant apis Domain Shared Contacts API Directory API Contacts API Which...
Ive got a couple of tables, exhibitions, languages, forms and questions. The questions have a lang_id and form_id in their table, and the exhibitions have got a form_id in the table. I want to select the languages which are linked to the forms. The only thing that is known is the exhibition id. H...
I am working on some data from which I want to extract unique values from a column and storing them in array and later using it for other calculations. Sub A_Unique_B() Dim X Dim objDict As Object Dim lngRow As Long Set objDict = CreateObject("Scripting.Dictionary") X = Application.Tra...
.....@events_all = [{"id"=>"c2", "name"=>"Kerala", "time"=>"14290"}, {"id"=>"c28", "name"=>"Ind", "time"=>"140"}].... <select id="event_month" name="event_month" style="width: 115px; height:32px;" onchange="filter_by_month('<%=@events_all%>')"> ...... ..... </select> <script type="text/javasc...
I HAVE GOT 10 GB SQL FILE, MILLIONS OF ROWS BELONGED TO 72 TABLE. MY STORAGE ENGINE IS INNODB PROBLEM I HAVE CREATED THE DATABASE WITH ALL REQUIRED TABLES AND FROM MYSQL COMMAND PROMPT I ISSUED THE FOLLOWING COMMAND LINE mysql> source path/to/my/sqlfile.sql IT WOULD RUN GREAT UNTIL IT GOT TO ...
As the title suggests , I have an Android application cordova 5.0.0 and if I install the device via command line work , but if I put the phone manually APK this does not install with the simple message " Application Not Installed " Why ?? I specify that I have not included any Key
I am creating one table name emp_inforamtion with checking that table is exist in database or not ,and if not then creating table then inserting the data from bank table in to emp_information table. DECLARE ncount NUMBER; v_sql VARCHAR2(4000); CURSOR c1 IS SELECT bank_code, ce...
Most likely a rather obvious question but nevertheless I am doubtful about it. For development purpose our team got an linux VM tot work on. Once in a while I met a lost+found directory. Most of the time it is not accessible (permission denied). What is the meaning of this directory. Has it been ...
In my project I use get_cpu() and put_cpu() to disable and enable the preemption in the kernel on a smp machine. Is there a safe way to get the current preemption status of the current in an smp machine i.e. whether the preemption is turned on or off.
I'm trying to make XHR request to server and to notify user if there is no connection. It's just HEAD request on txt file on server: var xhr = new XMLHttpRequest(); xhr.open('HEAD' , 'http://servername/keepalive.txt', true); xhr.channel.loadFlags |= Components.interfaces.nsIRequest.LOAD_BYPASS_C...
I will like to send my app to testers through a link. I tried differents way I found on the web. It seems like the beta testers need to install the provisionning profile first. Can you please help me? Many thanks
I want to call a function or change the value of variable/s which is there inside another controller. I looked online for the solution and understood that I have to create a service and use it inside both the controller, however I am not able to understand that how service will have access to $sc...
is possible to run two web apps at the same time, one using PHP the other using Ruby, each one on a Docker container ?
We have developed a hybrid mobile app using Phonegap (Telerik AppBuilder). We need In-App purchasing for the app and have come right with Apple. The problem is Android. We are in a country where Google merchant is not supported. We decided to go for Samsung's galaxy app store. They do got an ...
I am retrieving images from iPhone Gallery through ALAssetsLibrary: ALAssetsLibrary *assetLibrary=[[ALAssetsLibrary alloc] init]; NSMutableDictionary *imageDictionary = [[NSMutableDictionary alloc]init]; [assetLibrary assetForURL:info[i] resultBlock:^(ALAsset *asset) { ...
- (IBAction)btndlr:(id)sender { NSString *str =txtdata.text; lblfinal.text=[NSString stringWithFormat:@"%d/60",(int)str]; } After running this code without any errors i get garbage value as output in the label.any guidance will be appreciated.thank you.
I am new in Laravel I use almost all L5 packages outside Laravel. But I have some problems to make these work. Now I get this error when I try to use class View: [Fatal error] Uncaught exception 'ReflectionException' with message 'Class config does not exist' in /var/www/html/vendor/illuminat...
I have something like this: var appointments = { "1" : [ {"startTime" : "05:00:00", "endTime" : "07:00:00"}, {"startTime" : "08:00:00", "endTime" : "09:00:00"} ], "2" : [ {"startTime" : "07:00:00", "endTime" : "07:30:00"} ], "3" : [ {"start...
I have set up Ubertooth in combination with Kismet and Wireshark in Santoku Linux in order to sniff Bluetooth traffic between an Android device and a Bluetooth peripheral. I have opened the corresponding .pcapbtbb-file in Wireshark and all packets were recognized as Bluetooth packets; however, I ...
i have an controller that i want to use for reading from xml file. and im using xpath for parsing the xml. ok lets talk about code. public function index() { $this->load->view('index'); $xml = simplexml_load_file(base_url('JBPLNB0056.xml')); echo "<strong>Test</strong><br />"; $...
Since the source code is interpreted while running, I think it might make a difference in Performance. What I mean is: When you have a long (>9000 lines) code and then cut out as many spaces and linebreaks as possible, does it make the program run faster? If so, does this apply to languages usi...
For user identification,I need to send the url of localhost via mail in php codeigniter . . I also need to pass the token which I had generated for that user along with the url. My user need to be verified by clicking that link which must be identified by the corresponding token. And I have no id...
This is my db result, Array ( [0] => Array ( [shopname] => Shop name [fueltype] => Pertol [amount] => 1000 ) [1] => Array ( [shopname] => dfsdfsd [fueltype] => Pertol [amount] => 54456 ) [2] => Array ( [shopname] => dfsdfsd [fueltype] => Disel [amount] => 54456 ) ) I need result like [["Shop n...
I have json file "http://103.245.167.48/~icenter/video/api.php" that contain url youtube(watch?v) and how can I take it to display in IONIC mean that convert to youtube iframe (youtube.com/embed/) like that please help. .. !I have json file "http://103.245.167.48/~icenter/video/api.php" that ...
In android under material design how do i create toolbar whose tabs consist of an icons and text ? I want to achieve this kind of a toolbar
I have a simple Flask demo app (Python 3) containing some top level app initialisation code, and a blueprint that just sets/unsets some boolean flags. The structure looks like this: flaskery ├── config.py ├── flaskery │ ├── app.py - application init code (create app, db) │ ├── __in...
I have two jar file in my server having name: 1>computedist.jar and 2>request.jar And I want to run request.jar from sehll_exec command inside php code but unfortunately it always run computedist.jar Can anyone help me to find solution of this problem?
I came across to this code that I cant explain to myself: check_eeprom_data(); { unsigned char serial_num[5]; printStr("\nSerNUM:"); eeprom_read(confEE_SERIAL_NUM, serial_num, 5); printBuffAsHex(serial_num, 5); } Why these curly brackets needed to enclose this part of code? What ma...
Is it possible to read memory addresses (real, not virtual) without throwing a segment fault? I wish to read all live, used memory addresses and log findings.
I have tried many times to clear the console and have written this Runtime.getruntime.exec("cls"); but did not get any result, means the console is not being cleared in Windows. Please help me !!
I have a strange problem with Jasper Reports`iReport: I have to use Version 3.7.6 and in this version I have to create a dynamic table. The user is able to define how many columns the table will have and I am calculating this table in the Java - Backend before report initialization and present ...
In symfony2 I have created entity with created and updated parameters: /** * @var \DateTime $created * * @Gedmo\Timestampable(on="create") * @ORM\Column(type="datetime") * @Serializer\Expose */ protected $created; /** * @var \DateTime $updated * ...
How can i extract from this text: <html><body><br><br><br><script>window.location="/api.php?key=&username=&jdfwkey=yhd9h2";</script><script>var u=2;for(;u==1;u++);</script><br><br><br><center><h3><a href="/api.php?key=&username=&jdfwkey=yhd9h2"><p>çû¹ûúúµÒҳæÃûÐ×ÔԶ¯øøת£¬ëãµ÷»÷âÀï</p></a></h3></ce...
I have a task that can be long running, and it's blocking. I must wait for this task to complete to display results on the GUI. I know how long this task will take, so I want to notify user with a progress bar, how much time is left. All the examples on the internet are like this: Task<Integer>...
I'm trying to implement a basic GridView gallery as per the Android Developer Guide/Tutorial. The ImageViews inside my grid are Bitmaps taken from a user's camera. This works fine except for the fact that my images are incredibly small. My xml: <LinearLayout android:layout_width="matc...
Is there any way I can execute some JavaScript code after the Dynamics CRM entity form is saved. The available OnSave event fires before the form is saved actually. What I want to do is: to get the newly created record's id and set it on the lookup field on the opener window. For this I have: ...
I would like to know how can I do median centering in R for my dataset. I have done that in two ways but I am not sure about them if they are correct or not. here are my codes: simple dataset: set.seed(100) df = (matrix(rnorm(20), 5, 4)) df [,1] [,2] [,3] [,4] [...
I want to map md5 to sha1 and sha256 to sha1. Instead of using 2 different maps I thought of using std::map<pair<string, string>, string>. When inserting vlaues, I would have both md5 and sha256, but I can query only with md5 for exampe. Example : md5= x; map.find (x,null)--> return sha1 sha256...
I am working on a rating system and want to pull up each rating value by the jquery. For this purpose I am doing like this, but I am unable to get previous event variable value into next event. var r1Rating; $(".rating-input").on("click",function(){ //alert($(this).attr("id")); ...
I know its a in here somewhere but I cannot find the error: txtDealID.Text = Properties.Settings.Default.CurDealNo.ToString(); string server = Properties.Settings.Default.SQLServer; string constring = "Data Source=" + server + ";Initial Catalog=Propsys;Persist Security Info=True;User ID=sa;Passw...
I am trying to read the content of a website using cURL to compare some data. I accomplished to receive the content of the webpage with cURL but when I want to extract some data out of the content is it not working. I parse the content with DOMDocument but it seems that characters like & and € an...
The goal: Bridge. I want to build an synchronous-asynchronous-bridge (being a server to a REST client). A client is supposed to be able to connect via synchronous REST to my bridge, the bridge gives an asynchronous RPC by writing a message into a message queue. An other asynchronous system (the a...
i'm a beginner in Django and need a little help My application's layout is as following adray/ __init__.py admin.py migrations/ __init__.py models.py tests.py views.py static Templates/ adray/ index.html happen.html I'm trying ...
Currently I have a table with schema as follows: create table mData( m1 mediumint(8) unsigned, m2 smallint(5) unsigned, m3 bigint(20), m4 tinyint(4), m5 date ) m1, m2, and m5 are set as index in this table, unique/primary are not applicable in my case. As the data is getting big...
I am trying two merge multiple tables: this is how I am doing it: CREATE TABLE big3 AS SELECT * FROM trainSearchStream a LEFT OUTER JOIN SearchInfo b ON b.SearchID=a.SearchID LIMIT 3 LEFT OUTER JOIN AdsInfo c ON c.AdID=a.AdID LIMIT 3; However, I get an error: Error: near "LEFT": syntax error
When trying to build modules that require node-gyp like node-canvas on Openshift I get this error: > canvas@1.2.3 install /var/lib/.../repo/node_modules/canvas > node-gyp rebuild Traceback (most recent call last): File "/opt/rh/v8314/root/usr/bin/gyp", line 15, in <module> import gyp Impo...
i have this query and i want to retrieve the 2 first character of the adress. so i tried this one : var result = (from c in context.DB_CLIENT select new { c.CLI_NOM,ad.ADR_ADRESSE3.Substring(0,2)}); but i got an error. Can you help me
I use xUnit with standard Visual Studio (2012) test runner. For the time being I was using one test assembly for unit tests. The tests were detected. I've added new assembly for 'integration' tests. Test runner doesn't discovers it. Tests are configured to run x64. Output path is the same for bo...
What are the issues while doing asynchronous requests for Dynamo DB ? Is it advisable to use when we are using a lot of write operations ?
I'm creating an winforms application. In which one form is made transparent, This form is used to show some popup message boxes in background, using a timer this form queries database in each seconds. Currently I'm using database connection inside using method (here postgres Data Base). Method ...
I'm trying to implement a new control (XGrid), which contains a DataGrid. Most of the time I directly bind the data through a DependencyProperty and set AutoGenerateColumns to True. Now, in a specific case, I need the possibility to configure the columns of the DataGrid manually. I thought abou...
I'm using eclipse kepler to developer some java program and this morning I have a new problem: eclipse doesn't start. Until yesterday everything worked, but this morning when I try to execute it i get The log file contains the foolowing exceptions: !SESSION 2015-07-09 09:55:31.429 -------...
Hi ive been learning SQLite, trying to save strings in a table. The first time I ran the app it worked and i think i was able to add things to the database, but then after i closed it and restarted the app it goes to a white screen for 4 sec and then a blackscreen while logcat spits out the same...
The copy constructor and overloaded '=' operator are not being called when assigned with result of sum of two class objects. There are working properly when initialized and assigned with single object. the error says "no match for ‘operator=’ (operand types are ‘comp’ and ‘comp’)". Important cod...
Just upgraded to newest PDT 3.5.0 and found annoying new feature which is enabled by default. Every time I make reference to another class ($bar = new \Foo\Bar), use statement to another class is inserted automatically (use Foo\Bar). Is there some option which controls this? I looked in configur...
I have a RPC server class that accepts JSON data from an unspecified given 3rd party using cURL. I can see the data hit my class, I can store a var_dump into a for what appears to be the server request, but the output looks like receiving webserver info with references to the inbound object. But...
I have a class name RestClient which connect me to api "http://api.openweathermap.org/data/2.5" which queries weather data information public class RestClient { private static API REST_CLIENT; private static String ROOT = "http://api.openweathermap.org/data/2.5"; static { setupRest...
So AngularJs are deprecating the Replace property of a directive. reference context: .directive('myDir', function($compile) { return { restrict: 'E', template: '<div>{{title}}</div>' } }); this will ouput: <my-dir> <div> some title </div> </my-dir> So, Replace wo...
my code PHP in mySQLquery to unique product id function function kode($tabel, $inisial){ $struktur = mysql_query("SELECT * FROM $tabel"); $field = mysql_field_name($struktur,0); $panjang = mysql_field_len($struktur,0); $qry = mysql_query("SELECT MAX(".$field.") FROM ".$tabel); $row...
I have a geography column called Location. I need to SELECT the Location.Lat and Location.Long as a single VARCHAR result. Using the following I am losing precision: Query: SELECT CONVERT(VARCHAR(MAX), Location.Lat) + ' ' + CONVERT(VARCHAR(MAX), Location.Long) Original Location.Lat: 52.2...
I am initializing the object like this- ResourceBundle bundle = (locale != null) ? ResourceBundle.getBundle("myProperties", locale) : ResourceBundle.getBundle("myProperties"); I have 2 properties files - myProperties.properties which contains information in English and myProperties_fr.properti...
I have the following code: <?php class A { protected $v = 'a' ; public function f() { echo 'f in A: ('.get_class($this).' < '.get_class(parent).', '.$this->v.')<br/>' ; } } ; class B extends A { protected $v = 'b' ; public functi...
I have a dialog fragment in which I have toolbar in layout. I want to make back button(Navigation Icon) working in toolbar and exit the fragment when clicked. But I am unable to catch the click event on the toolbar's navigation icon in the (dialog)fragment. Here is how I am getting toolbar : t...
I'm using VideoView to play remote videos using HLS When video is VOD (video on demand - just a remote video file, no live stream) everything works fine. Problems start when i try to play live streams. If I'm on the fast network (wifi or 3g/4g) everything works as expected. If i try to play vid...
I know that websites are protect from bots by controlling the ip. Who connects to my website start a request to another website and each has the own ip, then the website see multiple ip for each request. I want to know if there a risk that the website block my requests seeing that those ip start...
I'm currently working on a C/C++ digital signal processing library and I have a few questions. I'm working on the filtering section and I have implemented a Direct Form II Transformed transfer function (like matlab) function for filtering data given the transform function coefficients. However, t...
I have some Powershell objects (created with [PowerShell]::Create()) acting as threads in my powershell application. How can I show the streams data (Verbose and Error streams) on the invoker's console, during the run itself, and not only after the thread terminates?
Facebook Graph API version has changed to 2.4 yesterday. I have been testing using Graph API Explorer and response to /me/photos request has changed. It returns only one photo. Is there a way to get all the photos as it was in v2.3 ?
Project Manager : {{ group.ProjectManager }} Duration : {{ group.StartDate | date:'MMM dd,yyyy' }} - {{ group.EndDate | date:'MMM dd,yyyy' }} ...
I have a very fundamental doubt about synchronization vis-a-vis the classic Servlet -> Service -> DAO pattern. Let's say I have a ticket booking application that is accessed by several concurrent users. No two users should end up booking the same ticket. When two different users try to access t...
I'm using Django and I have created several models in models.py. Some fields are optional and some fields are mandatory. Is a there a way that a user can view only mandatory fields in forms? I'm using crispy forms package to render my forms. Now the user can see all the fields from the models....
I need to remove all symbols in the String except (), but I don't know how to write correct Regex pattern and then use .removeAll() method. Example Some text (some 1 text()), and (some 2 text) -> (())().
In C++11 it is legal to write, for instance: int b = (some_function_returning_void(), 1020); And you'll get back 1020. But it won't let you write: int b = (static_assert(2 > 1, "all is lost"), 304); The documentation explains the legal spots where static_assert (a keyword, apparently) can ...
I've recently moved a Virtual machine from a server to another one. Both the servers are running Windows Server 2012 R2 as the guest host. The generation 2 VM run almost perfectly, but it doesn't recognize the network adapter. Integration services are updated (if I try to re-install it it says ...
We are using EF6 with the code first approach. For the versioning of our records we are using mapped stored procedures. This works great for the update since we pass all our values, including: ModifiedBy and ModifiedOn. Now the update stored proc only takes the Id. I was able to add the Modifie...
I need to be able to show certain elements in a list based on matching data attribute values. For example; <ul> <li data-album-id-trigger="1" class="album-trigger">Show / Hide album</li> <ul data-album-id="1" class="album-list" style="display:none"> <li>Track 1</li> <li>...
Hi I was trying volatile. I create 10 threads from my main Thread and I print value of static counter from each thread. The output is uncertain. Can anyone please let me know why its not working. public class Main { static AtomicInteger counter = new AtomicInteger(0); public static vo...
I am wondering if it is possible to initialize a class stored in a variable for example: class cl(): def __init(self, a): self.a = a return def print(self): print(self.a) return a In[27]: c = cl In[28]: c Out[28]: __main__.cl and now I want to initial...
I have a form where people enter their multiple codes. Now, I would like to delete the spaces between these codes. However, my code doesnt seem to work. Any ideas? $codes = $_GET['codes']; $spaces = strpos($codes, " "); for($spaces; $spaces=0; $spaces--){ str_replace(" ", "", $codes); echo $cod...
I have the following php code, which gathers data from a database, and displays it in a table. It works fine when used in chrome, But is not working properly, i.e, the border, rows etc.. are not being displayed, like the table tag itself is being disregarded. Here is the code, I have. <html> <head>
I am trying to create a simple semicircle donut using rCharts and the NVD3 javascript library. A minimum reproducible example of a full donut is provided below. library(rCharts) data1 <- data.frame(label=c("A","B","C"), value=c("1000","2000","3000")) n1 <- nPlot(value~label, data = data1, type =...
I have created a fucntion that slides through a defined array of jsp pages after a set interval.it works fine when the interval time is set <= 30000 i.e 30 seconds.But as soon I change it to 40/50/60 seconds, the pages won't slide and the page stops refreshing in order to load the next page in ar...
I have to show a loading message while appending other html elements into body. The loading panel is already in body i just change its z-index to show loading message. The problem is while appending other html elements the loading messaging is not showing. Any idea about this?
I have a simple class like this .h @interface DJMyClass : NSObject + (void)someFunction; @end .m #import "DJJavaFunction+UIAlert.h" @interface DJMyClass () @property (nonatomic, strong) NSString* someString; @end @implementation DJMyClass + (void)someFunction { [self showAlertWithTitle:ti...
I have array of objects, each object represents one row. each row(Object ) has different properties like property_name,property_no,Property_desc. I want to sort this array as per the property_name and i want to make it generic so that any array can be passed to comparator and it will sort it. Som...
I create a game in libGDX and have problem with scaling textures, which I have to use because of the different screen resolutions. When these textures move on screen, there is a distortion. You can see it on the video: https://www.youtube.com/watch?v=_Mo_LFWsuHs It can be seen good at the marking...
This is my query select a.id, a.title,count(x.id) as Orders -- from x_vendordeliveriesareas vda -- left join x_vendordeliveries vd -- on vd.id = vda.vendordelivery_id from x_orders x left join x_areas a on x.delivery_area_id = a.id -- on vda.area_id = a.id -- left join x_orders x left join x_ve...
Hello I am new in Java and I have stuck. I am trying to make chess game, I made everything except check and checkmate method, and if you have any suggestions I will be happy to read them. Here is my work till now: This is the board class where we play the game: public class Board { public ...
Suppose in Learning Management Systems student has to upload Assignment time limit is 4 days, after this he should not able to upload assignment. How to Implement in php 1 have 2 option - Abort() - die() What would you suggest ?
noob here trying to teach myself applescript and generally not very smart so apologies :| i was looking at this question and the answers Check for active internet connection with Applescript/Automator and i wanted to make a applescript that runs constantly in the background and that puts a red...
I am implementing a sync functionality in my app, mostly following the https://developer.android.com/training/sync-adapters/creating-stub-provider.html, i.e. implement the AbstractThreadedSyncAdapter. However, when the onPerformSync method is called, I do not synchronize the whole data that nee...
I have two dictionaries as follows: countriesdictionary={"USA":set('CHN', 10), ('ITA', 20), ('GRC', 30), "DEU":set('CHN', 40), ('ITA', 50), ('UK', 60), 'NAM': set([('MLT', '80'), ('RWA', '78')} and : costsdictionary={'USA': set([('CHN', 150), ('ITA', 200), ('GRC', 250), 'DEU': set([('CHN', 5...
Can I access the expression string of a ValueExpression passed as attribute value to my taglib component? My goal is to programmatically derive missing attribute values from it. In this case I'm trying to avoid having to repeat an attribute as a literal. now: <a:columnText title="name" value=...
ORA-01691: unable to extend lob segment XXXXXX by 8192 in tablespace USERS I get this error when i try to insert data in the database. I'm using an Oracle database (express 12c version). Googling the error i found that it means that there no more space in the tablespace and you need to incre...
I wanted to create a template for my fellow workers and create a Macro which "Saves As.." to a specific file, and also uses the title to suggest the name. This did not completely worked the way I wanted, but I got the first part right. It opened the "Save As.." Dialog in the right map with (.doc...
I have a notifications panel. I need to display it only if there are errors. So, I set attribute in my controller called errors : .controller('mainController', function($scope, $mdToast, $templateCache, $animate, $timeout, $mdSidenav, $mdUtil, $log) { var mainCtrl = this; mainCtrl.error...
first of all im noob when it comes to coding so please be gentle. I have a php while loop and inside the loop I have a form with input type of text with an Id, how can I make the id unique or ++? <form name='f1' method='post'> <input type='button' name='inc' onclick='javascript:d...
I have data array as follows: totalDays = ["mon", "tue", "wed", "thu", "fri", "sat", "sun"], saleDays = ["tue", "thu"], sale = [314,240]. I need to modify 'sale' array in a such a way that, sale array should compare with totalDays array with respective saleDays,if sale are present for that...
I have a JSON object like this : {"Successful":true,"Value":{"Materials":[{"MaterialID":37628,"MaterialID":0,"MaterialNo":26868,"Type":0,"MaterialName":Copper}], "Prices":[]}} I'm trying to get materials array like this : public ArrayList<Material> parseMaterial (JSONObject object)...
I need to use helper values in each template. each template renders another template. But when I try to use helper value inside template It doesnt work.. I hope below code will explain you well. <template name="notification"> {{#each notification}} {{> message}} {{/each}} </template> <temp...
config, run, ready, factory, controller, that is ionic calling order run on Safari, when I run on my android device, 'ready' became the last one. how to fix it? help me
(I would want to put screenshots put my reputation is low to put them...) Good Day.I Have two directions(markers) on google maps api(android) between which i want camera to be center,and camera being centered there.But problem is that one marker comes to one edge of screen and another marker to a...
I would like to make a Cloud games manager, but I think it is quite complicated. A manager where you can install the apk, and remain registered to the server (VirtualBox), so users can run your app in the nuve. I thought of a series of steps (there some tutorial about what I'm saying?). First s...
In Vim I try to delete all lines in a file not (containing a pattern and 2 lines above the pattern). I try: :g!/pattern/.-2 d But it says: invalid range... What to do?
I don't know if this is the right way to ask the question. I have two asp.net projects within one solution and I want to publish these projects after each successful build for the sake of automation to some folder within the solution. Can this be done using post build events ? and how this can...
I'm trying to use R to do some dataviz with maps but I keep having an error message when using Fortify. The code I use is: library(rgeos) library(maptools) library(RColorBrewer) library(classInt) library(ggplot2) data=read.csv(mydata) iris.shp <- readShapeLines(myshapefile)...
primefaces 5.2 i have a primefaces datatable, the table is very long which is why i want to show it in column stacked mode, i tried using reflow attribute of the datatable. now if i use the developers mode in chrome and switch to mobile view when i reduce the size of the screen it does in fact...
I have just started working in selenium and stuck at a point and need help. Here is my html. I am using python selinium <div id="d3_tree"> <svg> <g> <g class="node vm node_pe"> <image class="mainNode" xlink:href="images/edge.png"> </image> <image xlink:href="images/ga...
is there a easy way to add the ladybug debugget to magento with composer? When i try to add to Mage.php the line : require 'vendor/autoload.php'; using the ld($var) is not working Tx ladybug is here : https://github.com/raulfraile/ladybug/blob/master/doc/usage.md
We all have learned from trial and error that multiple blocking threads do not scale well, and that we should switch to using NIO where we see possible. Yet, there are not as many resources explaining why non-blocking is better by giving an under-the-hood example of how it actually works.
Im trying to create a redirect in my IIS for a site. It works with the wildcard setting but i cant get it to redirect with regex. The built in test tool shows that the correct URLs are passed with this regex and the others dont pass, yet nothing happens when the rule is applied. Are there any fau...
I want to use a attribute inside select keyword. Here is my xml <root rowselement="root/a/b"> <a> <b var="target1"/> </a> <a> <b var="target2"/> </a> and xslt <xsl:for-each select="/root/@rowselement"> <xsl:value-of select="@var"/> </xsl:for-each> and expected output target1 ...
c = re.split(r'\w+', message) print(c) message contains '!nano speak', but the regex is giving me this in return: >>> ['!', ' ', '\r\n'] I'm very new to regex, but this seems like something I should get, and I can't seem to find this problem in search. It seems like it's doing exactly the op...
Does anyone know how to read pajek file in shiny and then find the degree of each vertex and output it to CSV file in descending order? Here's the Pajek file i want to import in and export the degree into CSV. In R, i know how to code it normally like this: #read the pajek file in igraph repon...
I am trying to update the following query segment in a Sales Analysis cube. I'm not deeply familiar with SQL. The first CASE statement works as it should - returns a negative when OINV.Canceled = 'Y'. CASE OINV.Canceled WHEN 'Y' THEN - INV1.LineTotal ELSE INV1.LineTotal END AS LineTotal, CAS...
A htaccess protected subdirectory of my website somehow has been indexed (months ago) by google. I had to add this directory to robots.txt but I don't want the protected url to be visible in robots.txt anymore. I switched this directory to a new name and it won't probably be indexed again as it's...
I have following controller that has only private functions. I am struggling to test this controller. Shall I test if it is doing $emit, since the ImageService has been tested? How do I test $emit in this case? Or shall I test if it is calling the ImageService.fetchImageStacks method? In this cas...
Always when I try to invoke the HTTP-DELETE I get the status 405 'Method not allowed'. I'm getting this result: http://localhost:63831/api/name/1/john I don't know where is the error. resService: ... return { name: $resource(baseUrl + '/api/name/:Id/:name', { Id: '@Id', name: '@...
What is the procedure to follow in order to have a bmp image ready to be manipulated and in order to be able to perform aritmethic operations with them? For example, if I have image1.bmp and image2.bmp and I want to get some kind of correction factor so I would need to perform operations such as...
I am trying to make a http post request to obtain an api token. If successful, it is supposed to return string values of access token, token type (bearer) and expires_in. The code I have is a generic one which I was expecting to see working. But for some reasons, it throws an exception of 400 "...
Downloading attachment was working... but the delete wasn't? Can anyone tell me whats wrong and how to make it work? <?php $hostname = '{xxxxxxpop3/notls}INBOX'; $username = 'xxx@gmail.com'; $password = 'password'; $savedirpath = "/root/Fax"; $type = 'ReadAttachment'; $obj = new $type; $obj->g...
I have a function to capitalize onchange like this: <input type="text" id="abc" name="id" onchange="capitalize()"> And function definition is as follows: <script> function capitalize() { var x= document.getElementById('password'); x=x.toUpperCase(); document.g...
I have a function: function passParams($a, $b = null, $c) { echo "<pre>"; var_dump($a); echo "<br/>"; die('123'); } and I want to call it like this: passParams($a = 10, $c = 1); How do I have to?
I am creating a JAX-RPC web service client but when I am inovking the webservice it is giving me error: org.apache.naming.ServiceRef cannot be cast to javax.xml.rpc.Service Please resolve my issue urgently Client code Context ctx= new InitialContext(); Service service = (Service)ctx.lookup("j...
I'm beginner in programming and I'm trying to communicate with oscilloscope via USB port. I've found the device and recognised it by it's vid and pid. I created file (CreateFile()) without an error. Then, while trying to Read or Write file the error occured (error 50 (0x32). The request is not su...
Hi I want to plot my csv data (i named it p) on R using ggplot2 but i am having difficulties. Time d d d d c m m m m c c c........... (top row of data p) there are 14 coloumns and there are 304 coloumns including time. I want to plot Time on x axis against rest 303 on y axis on a single plo...
I am using this router to load my template pages. I want the router to wait for my data to be ready before loading the page. If this is the line of code that specifies the route jsRouter.route('/adr','adr/index',function() {}); And this is the code that displays the route: jsRouter.loadPage(...
I keep getting this error while installing Rubyracer with Rails 3.2 and Ruby 2.0 on yosemite. Building native extensions. This could take a while... ERROR: Error installing therubyracer: ERROR: Failed to build gem native extension. /Users/peeyushsingla/.rvm/rubies/ruby-2.0.0-p598/bin/ruby -r ....
I'm blurring out a div on scrolling using the following script. What's the best way to wrap it into something telling it: only do this until #element hits the views top and then stop it. Something like a max-val. $(window).on('scroll', function () { var blurrad = $(document).scrollTop() ...
Inside a foor loop I am performing some checks on objects of a custom class ( lets call them Bills). Objects are created after parsing them from an xml file. If the object passes all those checks it is added to the session and a flush is performed. Additionally, for every object (which passes o...
Below is powershell script. $Requests = Get-WmiObject -Class SMS_UserApplicationRequest -Namespace root/SMS/site_$($SiteCode) -ComputerName $SiteServer | Select-Object User,Application,CurrentState,Comments | Sort-Object User $Count = @($Requests).Count for ($i=0; $i -lt $count; $i...
I want to know that HashMap is give same sequence of key when iterated each time after adding records. I am using following code HashMap<String,String> mapObj=new HashMap<String,String>(); mapObj.put("a", "aValue"); mapObj.put("b", "bValue"); mapObj.put("c", "cValue"); for(String key:mapObj.k...
I am trying to measure a multi-thread program's execution time. I've use this piece of code in main program for calculating time: clock_t startTime = clock(); //do stuff clock_t stopTime = clock(); float secsElapsed = (float)(stopTime - startTime)/CLOCKS_PER_SEC; Now the problem i have is: fo...
I need to integrate PayUMoney for my freelancer job portal, that is developed in PHP Codeigniter. There are 3 type of user : 1)Employer (Job provider) 2)Freelancer (Person who doing the job) 3)Broker (this the portal take commission for the transaction) Currently the employer transfer fund t...
Is there an API for the java decompiler presented here: http://jd.benow.ca/. it claims that it has a JD-Core component, however I couldn't find any material on how to use the api. I am already using the eclipse plugin JD-GUI, i wanted to know if there is an available API for it.
I am trying to build transparent proxy with squid on OpenBSD 5.7 with pf firewall. I compile squid from source with below options: $ squid -v Squid Cache: Version **3.4.13** configure options: --prefix=/usr/local/squid --with-default-user=squid --enable-icmp --enable-storeio=ufs,aufs --enabl...
I have a web page in which when a user clicks on a specific element, a javascript function is triggered which uses $.post() (i.e. jquery) to send the user's data to a PHP script which modifies a database. On success, the PHP page simply prints <p id='success'>Yay!</p> On fail, it prints: <p ...
I have a simple piece of code that throws an exception when it shouldn't. All the appropriate headers were included and the program builds without errors. Code below. The exception occurs when executing result1.get(); Could some please tell me what I'm doing wrong? Thanks in advance for any help...
I want to use a third party jar, let's call it Third.jar. This Third.jar file is in a directory A/. In A/lib/ there are more jars (let's say from party X, and party Y). When I use maven-install-plugin, I only make available the Third.jar in the local Maven repository, but when I then try to run i...
CREATE TABLE IF NOT EXISTS `teststatus` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userid` int(11) DEFAULT NULL, `duration` varchar(45) DEFAULT NULL, `starttime` varchar(20) DEFAULT NULL, `endtime` varchar(20) DEFAULT NULL, `totaltime` varchar(70) DEFAULT NULL, `totaltime_minutes` var...
I am using Spring to select a value. This is the query in the repository: @Query(value = "select * from incidents where descriptioninfo like %:descriptioninfo% and fixed = :fixed and starttimestamp > :startTime and deviceid in (select id from devices) and deviceid in (select deviceid from device...
Do Joomla and Drupal provide any kind of APIs to publish articles? I have Ruby on Rails application for content authoring and need to publish articles to different sites which are runs on Joomla and Drupal.
I would like to add an 'addclass' button who appears when image is clicked in visual editor of wordpress. Currently, this menu appears : When my button will be click, the class '.w50' will be add to my image. Lot of plugins exist about add buttons to the wordpress editor but nothing about th...
I have a grayscale image ("lena" actually) which I want to experiment with. I got it as a 512x512 PNG file with 216 shades of gray. What happens is, when I read it with Java ImageIO, like that: String name = args[0]; File fi = new File(name); BufferedImage img = ImageIO.read(fi); ...
Scenario We are trying to use the Node.js QUnit Module aka qunitjs for our Server-Side Testing so that we can write one test and run it on both server and client e.g: https://github.com/nelsonic/learn-tdd/blob/master/test.js When we run a single file using the command: node test/my_test.js It...
My problem is to make some dynamic transitions using a User interface, so I want the process definition file to be created and altered during runtime. But, I am not sure whether is it possible. As everytime I have to deploy the process definition whenever I change it. So, how can I make it dyna...
« first day (617 days earlier) ← previous day next day → last day (457 days later) »