we are about to finish our first app with parse.com. This first app is for the enduser. PushNotifications and everything are working fine. Now we want to create an app for our admins to manage everything. We want it to be a separate app. Therefore I was wondering: will this be possible? Two apps...
I am trying to connect remote Microsoft SQL server using PDO. Before installing required drivers (SQLSRV30) my phpinfo()'s configure command section shows- cscript /nologo configure.js "--enable-snapshot-build" "--without-dblib" "--without-pdo-dblib" "--without-pdo-mssql" "--with-pdo-oci=C:\php...
I'm working on a financial site and part of the functionality will be transfers between accounts. We initially developed it using Ruby on Rails referencing stored procedures on the database. Due to the need for a mobile app to be developed we have now moved to json/nancy. I am okay with getting d...
I have a single HTML page on which I would like to use 2 separate JS scripts. In my first script lets call it ScriptA I create a KnockoutJS model that is updated every second with AJAX call and return it. So model is then mapped to UI elements using data-bind attribute. Now since I want this page...
How does Apache Storm Divide the tasks amongst it's workers, I read that storm does it by itself, and it's a function of parallelism, but what I don't know is how do I figure out which node does what and how many nodes would do which task, basically so that I can calculate the optimal number of n...
I have several SVG elements in a container. If I drag an element over the top of another element I want to move that element out of the way. I understand that with SVG I would need to redraw all the elements but I need to know the ID of the element I need to move to reposition it. Tried identifyi...
I am trying to create a registration form and passing in mysqli_real_escape_string and salt on my form. However for some reason my codes won't go on. Even if I will enter the right information on my form it won't just process it correctly. Basically I created a function that will do the verificat...
I'm a bit confused with Busboy module. I don't understand where it takes file data to stream as it accepts only request headers as parameter?! Take a look on example from docs: var busboy = new Busboy({ headers: req.headers }); busboy.on('file', function (fieldname, file, filename, encoding, mim...
I have a Django command that takes data from the database and generates a CSV file to be used for summary. I wish to test this command to ensure that it generates the correct data. Some of the tests that I need are to: Ensure the correct CSV file is always generated The correct object count is ...
I'm lerning design patterns and now I'm trying to understand the difference between adapter and decorator. Consider the following decorator on the List: Collections.synchronizedList(List<T> lst) creates a synchronized decorator on the specified List. The adapter pattern, in turn, also incapsul...
I am new to programming, I tried to create a sub that contains a SQL statement in it using parameterized query. My code is not working, there might something lacking to it or am I doing it wrong. My connection string is in the app.config: <?xml version="1.0" encoding="utf-8" ?> <configuration>
I have MUltiple login in laravel 5 with using differeent different controller like that Account controller and Admin controller . i want to use Middleware on route for authorize the user. what can i do ?
Due to certain plugins I have to set architecture for my cordova iOS app to armv7. But everytime I build the I have to use X-Code to do that. Is there a way I can automate this process in cordova build or cordova compile phase
If user is opening app first time, then i want to show some other (tutorial) view controller and then go to Main View Controller. But if user is already visited app before, then go to Main view controller. How to implement that check in AppDelegate? I am using Objective-c.
I am developing a simple multiplayer game in Unity3D and using Google Play Services to match player. Recently I started getting the following error: WARNING: RoomServiceStateMachine: Current room ChkKCAjOs5yzQhACEAEYACD___________8BENCzt-rG8cWA2wE does not match room ChkKCAjOs5yzQhACEAEYACD___...
I tried to learn LocalBroadcastManager. Searched in web and implemented a simple app with Two activity to perform LocalBroadcastManager. But it's not working. I can't found what's wrong with my code. please help me! here is my code. FirstActivity.java public class FirstActivity extends Activit...
i ve created an empty extbase/fluid extension and added an ImportCommandController for a scheduler task. For some reason i am not able to load that task in my scheduler. ext_localconf.php <?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['e...
i m trying to create local enviroment for learning node.js i m following the link below http://www.tutorialspoint.com/nodejs/nodejs_environment_setup.htm i downloaded Windows Installer (.msi) on my computer and create a file named main.js console.log("main.js"); and i double clicked node.exe ...
I created a moodle action plugin to embed videos and everything works fine. Expect the Action menu and other popups. So normally it should be shown like this But when I enabled my plugin on the click nothing happens. And it is not working until I uninstall the plugin completly. Uninstalling...
I am not able to implement facebook applinks fallback which redirects it to google play store if the app does not exist on the device .. My applink works if app is installed on the device .I havent posted my applink due to privacy reasons... Please any help would be useful ... Thank u in advance ...
Ok, i have this part of code but it not working and i dont know why. Any suggestion?I think that problem is in $viewContentLoaded that is not firing but how to do that? $scope.ConfirmTicketPayOut = function (ticketPin, username) { $scope.ticketPin = ticketPin; localStorag...
I am working on something very tricky, and I am wondering if anyone can help. here is my problem: Given a number 569 I want to find the largest number which means that I want to return 965 can anyone give me hands in that please
I have in a file (cvs) a column with the following 2015051308384828 and i want to convert this char in my sql loader to timestamp and inser the value in database. I do this in my sql loader : DATE_MAJ TIMESTAMP "yyyymmddhh24missff" I have the following error : ORA-01821 Not recognized format...
I would like to plot two data series (same type and number of measures, but measured at two timepoints) in the same barplot. Preferably the first series is plotted in grey, with the second series plotted in colours with transparency such that the series 1 data is still visible. The data I have is...
I have a photo viewer with a comment function for it that everyone can give comment regarding that photo like Facebook. 1- My question is that is it possible to have all the comments in one cell of MySQL based on photo id, like: PhotoId | Path | Date | Comments 198 | p/car.png | ...
Can we include static variable in header files. If yes,Can other files can access it ? Suppose we are including any static variable in file1.c and any function from file2.c is trying to access the same.if it is possible ?
I need to create a Desktop application for visualizing data. I want to use Google Visualization API for this purpose. I haven't seen any such related thing on web, is it possible to do so?
guys. The docs say I shoud put them in EventServiceProvider boot() method like this public function boot(DispatcherContract $events) { Raisefund::saved(function ($project) { //do something }); } But I have many model want to linsten, put all in here is a right way? thanks
int main() { int *pnPtr = new int; delete pnPtr; *pnPtr = 4; cout<<*pnPtr; } Ans) 4 while i tried to execute in visual studio 2010. please explain me how 4 is displayed as output?
Code below runs forever (something like 20 min) iterating over 100k keys. If I comment the 'Set Trade' line it runs instantaneously. Same if I uncomment 'Set sb' line. So it must be something in my 'GetItem' method that goes very wrong. But why it is so slow if I'm using dictionaries all the ti...
what is the JavaScript equivalent of strip_tags($input, ''); in php. i already have tried jquery $('.class').text(); but i want strip only some tags. Thanks in advance.
We want to design a system (server and clients) like so: The main reason for using this design is to make the synchronization process easier to implement and saves a lot of headache: When the client creates an entity, it first persists it to the local data store (SQLite/Core Data) with a l...
I am working on wpf slider, i want a cross round button on the slider control, i have attached the image, can you please help me what style me should write to get attached ?
firstly, I read this and use this simple code to multiple notification: public static void notifyMessage() { NotificationManager notificationManager = (NotificationManager) context .getSystemService(Context.NOTIFICATION_SERVICE); int notifyID = 1; Notificati...
I'm having a problem with spacing in Android while putting together a GridView. Essentially, I'm putting together a 9x9 gameboard. I've got a GridView working OK, but it's got unwanted spacing after each define square on the horizontal (vertical is OK) - so it doesn't fit the working area properl...
I am not able to return value in ng-keypress event. Idea is to prevent few characters being pressed. I Know I can do the same without returning true/false by event.preventdefault(). ng-keypress="return press($event,'text')" not working if ((charCode > 31 && (charCode < 48 || charCode > 57)) ||...
public class perform{ public static void Main(String args[]) throws IOException { perform obj = new perform(); obj.run(); } public void run() throws IOException { String inputfile= "c:/file_adress"; List<String> field = null; ...
Here my code: var obj ={ "item":{ name:"manu", nachname:"kostner", beruf:"astronaut" }, "item":{ name:"juliad", nachname:"sib", beruf:"mönch" } }; alert(obj.item[0].name); alert(obj.item.name); is working, but i dont want to give every i...
<div> <label for="vehicie_type">Vehicie Type:</label> <select id="vehicie_type"> <option>11111</option> <option>22222</option> <option>33333</option> </select> </div> ...
i was just looking at how the srollr.js plugin works and basically the following code was used to initialize the plugin :: var s = skrollr.init({ forceHeight: false }); ofcourse the plugin can also be initialized like so :: skrollr.init({ forceHeight: false }); now...
My task is: I need to download the Excel file, which can be a set of columns with different information about the students. I have a database "Students" in which one table called "Profile" with these fields (for example): name, surname, mobilephone, homephone. When you download a file, I had to e...
I'm pretty new to Bootstrap and i'm trying to get my datepicker to work. I use the bootstrap-datepicker-rails gem with bootstrap-sass. But it seems that there are some styles missing when i do the imports mentioned on the site. An import this way works: @import "bootstrap" But then all the b...
I have an app which I have localised into several languages. Part of the app involves speaking sentences (in the appropriate language) using AVSpeechSynthesizer. The problem is that if the device is in a region that I have not yet localised, it will use the Base localisation with the regional vo...
I have some UIWebViews that I am using for rich text editing. They have a div that is contentEditable. The problem is that when switching between fields, the keyboard will get dismissed for a split second if the user taps into a UIWebView. Going from UIWebView to native UITextView, the keyboard ...
I have use this trinary operator. To check my length variable $len, based on that return values My length is taken from $len = strlen($indChar); // values up to 3 ... 8 when it pass the value of 3... it strangely returns 30 $lft = ($len <= 4) ? 10 : ((5 <= $len) && ($len <= 6)) ? 20...
I added an ImageView in the middle of my view (no constraints set). With this code I want to move this ImageView from its original position to a new one. Unfortunately, it moves from the new to its original position - why? let opts = UIViewAnimationOptions.CurveEaseInOut UIView.animateWithDurati...
I have set tab order in QT to go through the UI in a logical order for the user - but upon running the software and testing I found it was skipping custom widgets from the UI. It's meant to go into the custom widgets and go through the different combo boxes/spin boxes and other various UI object...
I have this application where I want to use you date, but the problem is that the date is not working as I expect. I create a date object like this: // Get today's date today: function () { // Create a new date var date = new Date(); // Set to midnight date.setHours(0, 0, 0, 0)...
I'm new to android.I wanna to fill my SharedPreference from ArrayList.. how can I place details to preferences.. preference screen contain some edittext and radiobutton sections ArrayList<Info> infoList = new ArrayList<Info>(); InfoHandler infoHandler = new InfoHandler(); infoLis...
This is my usecase to raise custom fault exception with error code and description in WCF. new FaultException<CustomFaultException<CustomFaultExceptionCode>>( new CustomFaultException<CustomFaultExceptionCode>( ErrorCode, ErrorMessage); H...
I am attempting to redirect specific pages to their counterparts on a new replacement website, but the redirect is keeping the page name from the old website, resulting in a 404. For example, the redirect I am currently getting is: www.hadrianbooks.co.uk/about.asp -> www.barpublishing.com/about....
Hi i am working on Django project but not able to give Inline class. How to apply CSS class in class-base view form.
I have this layout with 2 buttons but they are attached side by side, How can I put a gap or spacing between them. And how can I make the buttons change color when I click <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_h...
hi i have a little problem when i go to my gridview in website my button for row comand doesnt work i dont know why i will put the code here This is my code for the page protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "Ver")...
I want to learn how to open multiple image files in a JScrollPane. I have looking for answers to this but haven't been to find much helpful data. Initially, I select multiple files using a Dialog Box and save those files into an array. The following code does that: JFileChooser fc = new JFileCho...
Network topology serverA -> internet ---> router1 ---> router2 -> clientB Network topology is roughly like this, router2 is used to limit rate with tc. router1 insert a piece of content into tcp html packet . Both router1 and router2 system is Ubuntu. When tc is closed on route1 or insertin...
I'd like to get the key of the ng-repeat in angular. In this case, I expect the result to be: "-JtltdrUg7cfaMeXvUmG" using firebase as data sample: https://sweltering-heat-772.firebaseio.com/users/simplelogin%3A53. I've tried 4 different ways, but no luck. Please help. 1st: <ion-item ng-repea...
How can i find the no. of distinct substrings of a string using Z-FUNCTION/Z-ARRAY ? Time complexity should be less than O(n2). I know there is a way using suffix array but i am more interested in solving this using Z-array/Z-function.
Why I can't embeded pdf file in my website? I've try using tag but, when the page is load. My pdf file is automatically downloaded by browser. and the pdf doesn't appear. But when I use it on my local server like XAMPP, it's work
Here is my Test Class; <?php namespace stats\Test; use stats\Baseball; class BaseballTest extends \PHPUnit_Framework_TestCase { public function setUp() { $this->instance = new Baseball(); } public function tearDown() { unset($this->instance); } public function testOps() { ...
I basically want to convert tab delimited text file http://www.linux-usb.org/usb.ids into a csv file. I tried importing using Excel, but it is not optimal, it turns out like: 8087 Intel Corp. 0020 Integrated Rate Matching Hub 0024 Integrated Rate Matchin...
I've installed docker following installation tutorial on docker.com, using wget https://get.docker.com/ | sh command. Now i need to remove it entirely. apt-get remove docker, apt-get --auto-remove docker, apt-get remove docker.io, apt-get --auto-remove docker.io or any other combination doesn't w...
I am new to jquery and a novice in struts2. My current situation is this: Scenario I have a JSP Page where i am populating a select box with values(I am using struts 2 framework) Problem I need to make the the elements of the select box draggable to a text area on the page. Tried: I can't ...
I'm trying to load a node under a diffrent parent through the IContentFinder. I can locate the correct node by useing some kind of wildcard system. So an example: www.example.com/group1/overview/id www.example.com/globalOverview/id The node from group1 can be shown with the correct ...
I have a problem with MSCaptcha. I'm using IIS7.0 when I host the website to the localhost It works fine. After I edit the binding and go live when I acces the website the captcha doesn't appear I checked the System.web , system.webserver sections in my web.config, they are correct <system...
Ok I am very new to the world of Symfony, but I have used CakePHP quite a lot, so I have a good understand of MVC. However when you bake in CakePHP, it goes away and maps all the associated IDs with there primary key. Symfony dose not seem to do that, or more Doctrine dose not seem to do more th...
In my application i want the image which is inside the linear layout.So for that i have used view.setDrawingCacheEnabled(true); // this is coming as undefined view.buildDrawingCache(); // this is coming as undefined Bitmap cache = view.getDrawingCache(); //here am getting null But...
How can i determine the subtype of an entity with a TPT-Inhertiance? If i have a base class Person and two subclasses Manager and Customer, it should be possible to query all persons and then group by their subclasses through using the GetType-Method, yet the returned type is always person. E.g....
SO! I've reached an impasse regarding code-design. Here's the scenario. I am required to either copy, move or delete files. OK, sure, no problem. I can easily write it like this. public class SimpleFileManager { public void copy(String sourcePath, String targetPath) { ... } public void ...
In my question about sorting CSV files that you can view here: http://stackoverflow.com/a/31290947/2169327 I got an excellent answer from @fedorqui, which gave me the following code. It essentially just prints the values matching the coordinates into a new file. #!/bin/sh for f in *.out do ...
I use the imagePicker and the mapKit in my app, using Swift. The new guidelines from apple says, you have to ask the users before you can access those services. Some big and great apps out there can ask for permission, but in a view before as example the maps are used. Some examples: http://pttr...
Below is an example of direct variable declaration. double multiplyByTwo (double input) { double twice = input * 2.0; return twice; } Below is an example of dynamic memory allocation. double *multiplyByTwo (double *input) { double *twice = malloc(sizeof(double)); *twice = *input * 2.0...
i am fresher and i am doing my app in swift language and i want to know that what is the difference between func cellForRowAtIndexPath(indexPath: NSIndexPath) -> UITableViewCell? and func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell/ d...
And my code List<NameValuePair> params = new ArrayList<NameValuePair>(); params.add(new BasicNameValuePair("type", "android")); params.add(new BasicNameValuePair("token", "123")); HttpClient httpClient = new DefaultHttpClient(); HttpPost httpPost = new HttpPost(url); httpPost.s...
I need to use a Jquery script for using a viewer of pdf. But I don't know very well jQuery and I don't know how to use this script. What code I use for use this viewer pdf? I found this code but I don't see anything: <!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/li...
I am trying to delete a row from two tables User and UserRoleMapping. UserRoleMapping is referenced to User table using User.id => UserRoleMapping.user_id. I need to delete a row from both the tables using the user specific id. My code session_delete_mapping = Session() session_delete_us...
I have a default file that upon signup of a new account, gets send to an amazon bucket. That worked. But suddenly, without changing any code, all my tests that use this method, fail with the error: Errno::ECONNREFUSED: Connection refused - connect(2) for "(bucketname).s3-eu-west-1.amazonaws...
I am really new to scala. I am trying to access a companion class variable from outside the class. How do I do this if at all possible without creating an instance of the class. object Foo { private var counter = 0 private def increment = { counter += 1; counter } } c...
I use Declarative flavor of SQL Alchemy with a PostgreSQL database. I have a ClaimAccount that manages Claim objects. Something like: class Claim(MyBase): manager_id = Column(UUID, ForeignKey(ClaimAccount.id)) manager = relationship(ClaimAccount, backref='claims') created = Column(DA...
I'm using Visual Studio 2013 to generate coverage file and sonarqube-5.1.1 for viewing code coverage, after analysis by sonar-runner-2.4. The output of sonar-runner is: Sensor org.sonar.plugins.csharp.CSharpSensor@7aa9b038 (done) | time=33447ms Sensor org.sonar.plugins.csharp.CSharpCodeCoverag...
The latest version (0.5.0) comes with constant crashes, so I wish to go back to the previous version (0.3.0), which actually worked. How can I achieve this on a Windows machine? First, I embarrassingly don't know where to actually download the old version, and second, I don't know how to stop it...
I have the blobkey of the file stored in the Google Cloud Storage. This is the only information I have. Having this information, I can read the file (but I don't know and can not get its filename). Is there any way to get the file type or read its metadata (Content type, for ex., image/jpeg) eith...
Seems that Intraweb 14.0.42 does not generate anymore hidden fields. I define one or more of them in the "HiddenFields" stringlist but they are not generated on the page. Is this true ? Thanks. Maurizio.
I have written a piece of code that produces an invoice statement on an 'Invoice' tab based on a selected Client ID with the data being pulled from the 'Data' tab. What I would like it to do is produce an invoice statement for each different ClientID. So the data from my data tab will be spli...
The paragraph "See more" doesn't move, it just stays in it initial position. I indicated : top: 270px and left 100px but nothing. The rest of the code is working, also if I try to give that paragraph the same color from the css file it returns to black. <!DOCTYPE html> <html> <head> <link ty...
I'm using the following code to prevent a page from caching a twig random() command. <?php header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Cache-Control: no-store, no-cache, must-revalidate'); header('Cache-Control: post-check=0, pre-check=0', FALSE); header('Pragma: no-cache'); ?> I...
I'm doing this tutorial which is about scripting in VMD using TCL. At the 7th dot in step 5, what does mean '.r' in simdata($i.r) ? Thank you in advance.
I wanted to show an Image in an Email. Embedded image into HTML email message with image tag something like this <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAACR0lEQVRYha1XvU4bQRD+bF/JjzEnpUDwCPROywPgB4h0PUWkFEkLposUIYyEU4N5AEpewnkDCiQcjBQpWLiLjk3DrnZnZ3buTv4ae2...
I have a csv file that is in the following format: name1 Date,Type 11/06/2015 18:13:42,Red name2 Date,Type 08/06/2015 18:53:38,Blue name3 Date,Type 10/06/2015 17:13:33,Yellow 10/06/2015 17:55:11,Green name4 Date,Type 15/06/2015 11:19:01,Blue 10/06/2015 13:45:05,Orange name5 Date,Type 10/06/2015 ...
.directive('scrollWatch', function($rootScope) { return function(scope, elem, attr) { var start = 0; var threshold = 150; elem.bind('scroll', function(e) { if(e.detail.scrollTop - start > threshold) { $roo...
I am trying to parse specific columns from a csv using map reduce.I have some empty cells in my csv. When I am trying to run it shows some exceptions.But When i run a csv which has no empty cells I get my output. sss xx asdas sddf saq asdsds sdsds ewe zz asdsd ...
can you please help me with this issue. I need to connect to json API and authenticate (connectorauth) via two parameters - key and connector_id. Key is the API key, and connector_id is just an id. I also have a url to extract the data from. All I know is that I have to get the data via post a...
i have array where each element is array of sql columns. One element of MAIN array looks like this: Array( [x] => a [x2] => b [x3] => c [x4] => d [x5] => e [x6] => f [x7] => g [x8] => h [x9] => i ) now i need to build nested array which looks like this: array( [x] => a [x2] => b ["KEY"] =>...
I am using Following jquery in master page my project in asp.net. <script src="js/jquery-1.3.2.min.js"></script> <script type="text/javascript"> var $ = jQuery.noConflict(true); </script> <%--<script src="js/jquery.easing.1.3.js"></script>--%> <script src="js/jquery-galleryview-1.1/jque...
I need to get time in the below mentioned format: 20150708T142052:635719620529014063 The real problem I am having is with so long miliseconds- 635719620529014063.
I have my javascript variable ass name array in this i have to print this selected values in to my jsp page. This is my sample code(For Example): <script> var namesArray = []; var checkBoxes = document.querySelectorAll('input[type=checkbox]'); for(var i = 0; i < checkBoxes.length; i++) { che...
I'm trying to login to a website, but my code returns only 2 cookies instead of more than 10 cookies. Here is what I'm using: cookies = Jsoup.connect("https://www.e-cigarette-forum.com/forum/login") .userAgent("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KH...
I add to my map a popup var popup = new Popup({ fillSymbol: new SimpleFillSymbol(SimpleFillSymbol.STYLE_SOLID, new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID, new Color([255, 0, 0]), 2), new Color([255, 255, 0, 0.25])), titleInBody: true }, domConstruct.cre...
How would your convert a std::string to BSTR*? STDMETHODIMP CMyRESTApp::rest(BSTR data, BSTR* restr) { RESTClient restclient; RESTClient::response resp = restclient.get(data); Log("Response Status code: %s", resp.code); Log("Response Body: %s", resp.body); *restr = // here...
Is it possible to re-arrange the cells of a FlowPane by drag and drop operation. If possible, how can it be achieved?
I have created this code: window.onload = function() { for (var i = 10; i < 100; i += 10) { document.getElementById("overlayInner").innerHTML += '<div style="top:' + ((8 * i) - 15) + 'px;" class="number lat lat' + i + '">' + i + '</div>'; document.getElementById("overlayInne...
I have created a window with custom window frame using DWM with the reference to Custom Window Frame Using DWM. I tried to add a bitmap to the title bar using StretchBlt. Yet, it did not show properly. The image will be brightened if it is drawn on the frame (Image). How to solve this problem?
I am a bit stuck here. Tried many posts and ideas here from Stack, but could not get it to delete content from the table view. Neither deleting a record from COREDATA or a simple testing array. Apart from that the code works fine, lists data and displays in the tableview. This is the error I a...
I'm trying to target the first ten images on my page which have a class of .lazy I'm using unveil to lazy load images, it waits for a scroll to load images but you can trigger all images to load with this line: $("img").trigger("unveil"); I want to trigger just the first 10 images to always s...
I am using DBUnit and Spring Test DBUnit to initialise my database into a known state for testing purposes. I have a my_tbl table in my H2 DB (as in memory db for ubit test.). --schema.sql CREATE TABLE my_tbl( [name] character varying(255) NOT NULL, `type` character varying(255) NOT NULL, lang...
I'm having this function data NestedList a = Elem a | List [NestedList a] deriving (Show) flattenList::NestedList a -> NestedList a flattenList (Elem a) = List [Elem a] flattenList (List l) = foldl (\x y -> List ( x : unfoldedList) where (List unfoldedList) = flattenList y) [] l The problem ...
I'm implementing the share dialog using the Facebook SDK for iOS. Everything works fine except for the callback. This is the function that displays the dialog: FBSDKShareLinkContent *content = [[FBSDKShareLinkContent alloc] init]; content.contentURL = <my content url>; content.contentTit...
There are a ton of proposed answers to my question, but even with all the answers I have found, I can not seem to get any to work. I can make the JS work by adding a delay in execution of the code, but I can't rely on a delay to execute the JS after div has finished loading it's HTML. I'm creati...
From yesterday I have problems compiling with maven because of itext jar My project has a dependecy of jasperreports-2.0.1 that depends on itext-1.02b <dependency> <groupId>com.lowagie</groupId> <artifactId>itext</artifactId> <version>[1.02b,)</version> <scope>compile</scope> </d...
A very good day to all of you. I have code which does exactly what a Excel Pivot does in the matter of few seconds. Whereas, my code does the same thing in not less than 30 minutes. I am awestruck with the difference! I am pretty sure I can optimize my code to make much faster than currently. ...
here's my plunker: http://plnkr.co/edit/HSVBuzzp1IIDjFdbuf4E?p=preview in short: I cannot find a way to put the footer at the bottom of the page. I tried to just rely on html: <footer></footer> I tried using bootstrap ui's class: <div class="modal-footer"> or <div id="footer"> <div cl...
I am using the UIControlEventEditingChanged to find the changes in textfield. But UIControlEventEditingChanged works only for keyboard input. I want to make it by picker input, asusually its not working. Is any alternative for UIControlEventEditingChanged.
I need to have 5 random posts on post page (http://7cuteoutfits.com/2015/07/08/suits-rachel-z-office-fashion/) excluding current post. Random posts should be on chosen dates (for example posts from last 2 months until yesterday ) I added a few lines of code to single.php of my wordpress and now h...
I have a question about how spark-on-yarn works. I have a spark program that compute some narrow transformations on a RDD of 62 partitions. So All of these transformations are done in a single stage, with 62 tasks. Then, I have a "groupByKey" transformation. So it starts a new stage. I've set de...
i have devlope wordpress site it's complete, but i have some probme, Site contact us page have h contact fotm 7 Plugin in this page not sending mail, show this Message "Failed to send your message. Please try later or contact the administrator by another method." check site page http://www.novelt...
I use RollerworksMultiUserBundle over FOSUserBundle to handle multi user but i cant override template of each bundle seperatly I have 2 bundle AdminBundle DesignerBundle I override AdminBundle but DesignerBundle template was overrided ! I try to override DesignerBundle but this error accur...
this is my jsp code by using itext libraries.Before adding watermark i was executing fine. I want to add a image as watermark in this pdf. try { Document document=new Document(PageSize.A4); if(str.equals("pdf")) { response.setContentType("application/pdf"); PdfWriter.getInsta...
How can I replace tags based on the attributes when the end tags are the same? Example: <tag id='bold'><tag id='italic'>Hello World</tag></tag> to <b><i>Hello World</i></b> Is this possible with RegEx or will I need to write a custom parsing method? Note: This is a simplified example and ...
So after watching some tutorials I created my first test app, but for some reason it is not working. The goal of the app is to get product info out of a json file and put it in a ng-repeat. My HTML code: http://pastebin.com/fa9iLHim My AngularJS code: http://pastebin.com/GJKzAwWZ My JSON data:...
The question is I have implemented android downloadmanager to download files from internet. how can i pause and resume the download? i have read lots of posts and searched google but could not find a working answer. Thanks DownloadManager.Request downloadRequest = new DownloadManage...
I'm using Wix to create my application installer and recently I remove the copy of a DLL to the local folder and instead installed it in GAC. My issue is when I executing the installation my service is not being installed cause it can't find this dll in the local folder and it's not being instal...
In my MVC 5 application I'm using Unity for dependency injection. I have a controller having as contructor argument a Dictionary: public MyController(Dictionary<string, string> messages) {} In UnityConfig I registered this instance: var messages = new Dictionary<String, String>(); messages.A...
https://codeforgeek.com/2014/07/angular-post-request-php/ Hi I was following the above link to give post request from angular js to node js. I received the data posted in below format when i give console.log(req.body); { '{"email":"test@test.com","pass":"password"}': '' } and when i try to g...
I have a time span string as 1.21:00:00 it means 45 hours and i need it as 45:00:00 and i use following method from Need only HH:MM:SS in time span string it works perfectly for this above problem but when i change the string as 1.21:30:00 then mentioned code return me one hour more ...
From flickr API doc: Signing Requests You must sign all requests to the Flickr API. Currently, Flickr only supports HMAC-SHA1 signature encryption. First, you must create a base string from your request. The base string is constructed by concatenating the HTTP verb, the request ...
The title says it all. Is there any way to serialize (so that it can be loaded later) a function generated by sympy.lambdify?: import sympy as sym import pickle import dill a, b = sym.symbols("a, b") expr = sym.sin(a) + sym.cos(b) lambdified_expr = sym.lambdify((a, b), expr, modules="numpy") pic...
Right now my login session is saved in filesystem using werkzeug.contrib.sessions.FilesystemSessionStore I wanted to store this session in cache system using RedisCache. Is there is any way to modify it?
I want to load some external html page(below is google.com) in nw.js window and inject some context menus to that external html. My files content are below. file inde.html: <!DOCTYPE html> <html> <head> <title>Demo</title> </head> <body> <script src="outerWnd.js"></script> </body> </html> f...
I've written a simple java program that creates a ServerSocket and returns some html. The program seems to work properly, but I can only get a response from using a browser on the localhost and not external devices. Only when my mac (OS X 10.10; Yosemite) goes to sleep and then wakes up is when e...
I've been straggled with how to config my Android emulator to connect to Internet, and of course I tried a lot of solutions such as disable the LAN card or add dns server, http proxy in eclipse. Unfortunately, those solution seems work very well for lots of people but not for me. Finally I found ...
Given the following array: a = [] a.append({'c': 1, 'v': 10, 'p': 4}) a.append({'c': 2, 'v': 10, 'p': 4}) a.append({'c': 3, 'v': 10, 'p': None}) a.append({'c': 4, 'v': 0, 'p': None}) a.append({'c': 5, 'v': 10, 'p': 1}) a.append({'c': 6, 'v': 10, 'p': 1}) Where c = code, v= value and p=parent t...
I have code in python that integrates c++ code using swig. The c++ class has a field with the long value 1393685280 which is converted to python. The problem is that when calling the getter of this field from python I get the int value -2901282016 instead. How can I fix it? Thanks
I am not using prepared statements and i dont want to use it if not necessary Example : $sqlServ = new mysqli(SQL_HOST, SQL_USER, SQL_PASS); $char = isset($_GET['char']) ? sanitize($_GET['char']) : null; $check = $sqlServ->query("SELECT name FROM player.player WHERE name LIKE '{$char}'"); func...
I tried to install Genesys 8.1 with SQL Server 2012. I have made the configuration but when I tried to start CME it says Configuration server cannot be found. Please check the host and port In documentation I could see that for SQL Server 2008 and newer, it needs Genesys DB Server 8.1.2 or...
function createOrder($entityid, $customerid, $dateorder, $warehouse, $price, $qty) { $json = '{"orderNo":"$entityid",' . '"customerCode": $customerid,' . '"dateOrdered": "08-07-2015",' . '"warehouseId" : 103,' . '"orderLineList":' ....
I have the following function: public function findByIds($ids = array()) { return Database :: fetchAll('SELECT * FROM foo_bar WHERE test = 0 AND id IN :ids', array( array(':ids', $ids) )); } But it doesn't work of course. The $ids variable has the following structure: array(3)...
Is it possible to have nested expressions in angularjs? I tried to access a variable like {{item.{{model.key}}}} where item = { ac_no: "123" address: "Delhi" dob: "1990-02-24" first_name: "Joe" last_name: "Weller" } and model.key = 'ac_no' But it gave an error. How can I access a variabl...
I implement CommitEditingStyle for UITableView. But Delete Button is not look good as shown below. I also try to resize button Frame as follow but not working -(void) layoutSubviews { NSMutableArray *subviews = [self.subviews mutableCopy]; UIView *subV = subviews[0]; [subviews removeObjectAtI...
this is not a duplicate of the many malloc failed around SO.let me explain the project firstI have these third party libraries that I use in my project, so I want to keep them on a GIT repository to be able to easily maintain the history and rollback the libraries to a previous version if somethi...
I'm playing with a simple cart system in Laravel, using PHPCart and Vue.js. When the user hits my basket route, Vue.js gets the basket data: new Vue({ el: '#basket', ready: function(){ this.fetchBasket(); }, methods: { fetchBasket: function(){ this...
- (void)someMethodThatIsCalledTwice{ NSURLSession *session = [NSURLSession sharedSession]; NSString *noteDataString = [NSString stringWithFormat:@"album_id=%@&pic_id=%@", albumId,photoId]; NSURL *url = [NSURL URLWithString:stringUrl]; NSMutableURLRequest *...
I would like to navigate the user to Settings-Application Manager-'My App'. No action value in : http://developer.android.com/reference/android/provider/Settings.html seem to allow that. The reason is to allow the user to easily turn "Show notification" on. Is it possible? This action was uns...
There are three classes: class A is abstract and a MappedSuperClass class B inherits from A class C inherits from B PHP-wise this works fine. Also generating getter and setter using php app/console doctrine:generate:entities App works. The Problem The problem comes when creasting the schema...
I have problem in with links with svg images. It shows it with scroll bar and i do not know why. I thought maybe it's becouse images are sprites, nut when I give them 100% instead of 200% it's still there. CSS #footer .Wrapper > div.col-4 ul.icons{border-top:1px solid #ededef; margin-top:25p...
While implementing angular translate i ran into French translation words such as: 'Propriété Catégorie' appearing in the view as Propri�t� Cat�gorie. Dont know what this means. Is it that the used font doesnt have this character implemented? I think not since writing the HTML name é parse...
i have a function to convert integer to indian rupees format. It is work on onclick event function and give it result, but when it is apply on onkeyup event it doesn't work. where is problem ? plz suggest i am new .thanks my function is below. function numberWithCommas(x) { x = x.replace(",...
There is a case where last name has 'Null' ex: name = 'Sachin Null'First name = 'Sachin' Lastname= 'Null'. when we store into the database string null is in the last name. and we store it as a blob object. while retreving i am getting an empty string "" as last name. Is the value string 'Null' i...
I am using jsf as a font end to generate a Excel-spreadsheet.xslx. What i have done, Created a process.xhtml with command button named "Start Process". Created a managed bean called ProcessBean.java with session scope which contains a method called startProcess(long processId). when user...
I'm working on an engineering application, and the interface is written in TCL TK. Everything went fine until I need to use a (extremely) large array. 370.000.000 of elements, each element from 2 to 10 characters length (linear grown). My question is, ¿where is the size limit for TCL arrays? ...
I am trying to use Amazon's S3 as my backup storage. I have used FUSE till now and getting latency issues. So is there any other way to access S3 as storage from Linux system? Is there going to be any improvement if I use block device driver to access the S3 storage? Is there a way to mount S3 st...
I have a form with a table on it. The table lists multiple rows each one with a 'Create' button. The table itself uses a for loop and appends the rows value to the end of the buttons ID as shown below <button type="button" class="btn btn-default" id="create_<%: stck.Stock%>" onclick="SetupDisi...
private static final String BasePath = "/home/rafael/pesquisa/ImageSimilarity"; I am working on an Image comparison program, and found this line of code from somewhere. However in the above case, the path is set for a linux system, and As a Windows user I want to set my path for windows device,...
I was wondering how can I calculate the time difference between two times which have PM and AM next to them for example. I have 12:16:44 pm and 01:01:45 pm but when I use this code: from datetime import datetime from datetime import timedelta s1=12:16:44 s2=01:01:45 FMT = '%H:%M:%S' tdelta = d...
I am using multiple annotations such as @NOTNULL @MIN(1) Integer x; Running an individual test works as expected, but when I run multiple tests, the message produced gets mixed-up, for example: When I send a number lower than 1, I get the "may not be null" message. I am resetting the client af...
this is a stack trace from Flurry crash analytics. Any Idea what is going wrong in my Core Data table view implementation? Full Stack Trace: 0 CoreFoundation 0x182d5c2d8 <redacted> + 132 1 libobjc.A.dylib 0x194a280e4 _objc_exception_throw + 60 2 Cor...
Im trying to modify a current script that I've found on the internet for a navigation menu. Basically its just a navigation that when on click appears the sub nav but I'd like to be able to modify it to have a sub nav underneath appear when clicked that will be able to add another to be clicked t...
i have a html select box that needs to be populated using jquery ajax with select options that come from a php (Laravel) database query. I tried many approaches but no result, i only get 'undefined' as result. The Laravel script: public function loturi($articol) { $loturi = DB::select("select m...
I am new to Rabbitmq and just doing producer-consumer implementation below is my producer which fetches data from API and push to queue, so problem is that for some time everything works fine but suddenly it throws exception (after 20-24 hours) and everything stops working. So I want is to work t...
I was bit curious if I was going about this the wrong way. I am trying to read numbers from two different lists, sort the numbers, and then output ALL the numbers to a3rd file. I understand getline is probably not the best option but I still would like to use it. list1 = 1,4, 5, 18 list2 = 2, ...
I use AMQ v 5.9.0 with non-persistent message and below settings: <policyEntry queue="foo.bar.>" memoryLimit="500mb" producerFlowControl="false"> <pendingQueuePolicy> <fileQueueCursor /> </pendingQueuePolicy> </policyEntry> Heap Size below ...
This is the website where I have the issue: http://florin-pop.com/work/ The body has the following CSS: body { height:100%; font-family: "Open Sans",sans-serif; background-image: url("bg.jpg"); -webkit-background-size: cover; background-size: cover; b...
I have a script whose internals boil down to: trap "exit" SIGINT SIGTERM while : do mplayer sound.mp3 sleep 3 done (yes, it is a bit more meaningful than the above, but that's not relevant to the problem). Several instances of the script may be running at the same time. Sometimes I wa...
I have used syncfusion grid and i want to bind data to syncfusion grid from API but data binding to syncfusion grid is not working here is HTml code for grid <div ng-controller="ContactsController as contact"> <div id="Grid" ej-grid e-datasource="contact.Cdata" e-columns="contact.columns" ...
In Linux usb-serial converters usually show up as a node in the /dev directory: /dev/ttyUSBx. To use the serial converter the first step it to open the port, then configure it and so on. port = open("/dev/ttyUSB0", O_RDWR); If you want to use a serial device (I2C or SPI), ftdi offers devices...
I have a base test calss with a testInitialize method which invokes the unit method I want to test. In one of the tests I am expecting an exception but since the test initialize method is invoking the unit of execution the exception is thrown and I feel that it never reaches my child classes tes...
Hi I'm an absolute beginner in high-performance Java programming, so bare with me if you please. I have clients that request from my application same data basically every 5 seconds. ATM i am going to DB for every user... As You can see this is a sh..y approach. I a am considering creating thre...
Iam having some problems with the ProgressDialog in android. I thought it would be relatively easy to use but it turns out otherwise LOL. basically i have an Instance of progreesdialog in my activity "RegistrationActivity". I press a button and registration commences by showing a progressdialog w...
I am using facebook ShareOpenGraphObject to share a custom object, I am sharing this story with an image and this only makes it feasible to work with a facebook app installed on the device. Now I have two questions: I want to submit my app for review for the custom share object I have created f...
The file globals.d.ts references the file typings/zone/zone.d.ts but there isn't a typings directory in the repository nor is there a zone directory in Boris Yankov's DefinitelyTyped repository. Where can I find zone.d.ts or the typings directory zone? Google doesn't produce any results.
I have two websites hosted on the same server: www.examplea.com and www.exampleb.com Example A is the primary site, and holds lots of files that Example B uses, however their root directories are parallel. Example A = public_html/examplea Example B = public_html/exampleb Whenever Example B wa...
I have to read a line from a file do some computation and write to another file. I have done something like this fd= open("abc.txt","w") for line in open("test.txt","r"): Do something Here fd.write(modifiedline) I have usually used with open and for open for line by line operations....
i have created a quite extensive solution contained in a visual webpart. From within this webpart i open up a Telerik RadWindow and open another webpart in it to display/edit//create a new item (list[s]). This webpart is supposed to replace the default list forms but is again quite heavy customi...
i am Using JSF 2.2, Jboss 7. While running its just keep saying " Tag Library supports namespace: http://java.sun.com/jsf/html, but no tag was defined for name: inputFile" this error.. Anyone help me to solve this problem.. Below is that xhtml file. the error is on "" this line. index.xhtml: <...
Why in MsSQL some milliseconds are rounded to next? For example: SELECT CONVERT(datetime, '2006-04-25 15:50:59.996', 120) Produces 2006-04-25 15:50:59.997
I have to save base64 file on my local drive, but image corrupted when I have use file_put_contents. I am able to see the image in my browser using following tag, but when I am using file_put_contents so it's not working. $data = '<img src="data:image/png;base64,'.$image.'"/>'; code: $data = '<
I tried to do app with sliding tabs, i did by this tuto by this site http://www.android4devs.com/2015/01/how-to-make-material-design-sliding-tabs.html And then i wanted add map to 1 of tabs, and this map will show current location by this tutorial: http://wptrafficanalyzer.in/blog/showing-current...
Before I explain, I will present code, because it is the best way to express the question in this case. a simple WPF window, his base node contains this: <StackPanel> <Menu> <TextBox x:Name"A" Width="200" /> </Menu> <TextBlock Margin="0,10,0,0">--richTB--</TextBlock> <R...
I have : A running application on localhost:8080 A domain name "www.domain.com" An installed SSL Certificate Now my first Issue is that, I want to access my application from url: http://www.domain.com and second part is to assign the certificate, making the url: https://www.domain.com How c...
I have a List where I am storing 2 ArrayLists inside this. metadataList.addAll(countryList); metadataList.addAll(languageList); In the other method, I want to access these two lists. I am trying this code: List<String> countriesList = metadataValues.get(0); List<String> langu...
I have installed sleuthkit library in my Ubuntu 14.04 system and I am developing a C++ program using eclipse IDE. My program compiles without any error.. However while running it throws an error as : undefined symbol: tsk_img_open_sing. The corresponding statements in my program is : char* ws = ...
The following ajax request fails with empty error message: $.ajax({ type: "POST", url: loginUrl, data: JSON.stringify({login : u, password : p}), contentType: "application/json; charset=utf-8", success: function(data){ console.log("========================== succes ====...
I have a dataset containing measurements at two timepoints. I have made a barplot of the data of the first timepoint, and would like to add points for the second timepoint (this is just meant as a reference). As you can see below the points are there, but they are not in the correct x-axis positi...
Is there a better way to temp alloc a string of unknown length in C in a way that doesn't require cleanup? I currently use the following, which does use alloca/_alloca or insert the name your compiler likes for this function #define stackdup(s) \ memcpy(memset(_alloca(strlen(...
I must develop a web application java based and in that application i want acquire a lot of documents as pdf with physical scanner. I need to know if exist opensource api that can help me. How can do it with java?
problem im implementing bookmark functionallity when ic click on heart symbol it throws Converting circular structure to JSON. html code <a href="javascript:void(0)" onclick="dataLayer.push({'event':'addtofav'})" class="fa-heart-o favourate_dextop" data-toggle="tooltip" title="" id="...
How can I put in a tuple containing 3 elements to a Set? Say, I have a Set of type: Set[(String, String, String)] How can I simply add 3 String's to my Set definition? The following has the compiler complaining? set + ("a", "b", "c") Why is the tuple treated differently? It is just like a...
I have a list of items where an item is some text and a button. I want text to be aside the button. I used inline-block but it doesn't work. Note that I want text to wrap too. <ul> <li> <div class="inline-block"> Side by side </div> <div class="inline-block"> ...
I have to panels one with the current data and one to update. I need a smart way to update the number for tab5 and tab6 for each element. Without repeating any of the numbers. The Tab only works if the 2 Numbers are only there. I tried calculating inside the template with |add but that works onl...
I am trying to use/install the Community SQLite plugin. Using nuget everything seems to install OK, e.g I get no errors. However,in my Core project there are no references to the plugin. In the iOS and Android references there are references to the plugin. Do I need to reference the plugin expl...
Please Help , i get always Error , Terminated App and more Error , Error , Error.. Where is the Error pls ? var mutableeItems:NSMutableArray = NSMutableArray() override func viewDidAppear(animated: Bool) { var userDefauls:NSUserDefaults = NSUserDefaults.standardUserDefaults(...
I'm having trouble figuring out the right aggregation pipe operations to return the results I need. I have a collection similar to the following :- { "_id" : "writer1", "Name" : "writer1", "Website" : "website1", "Reviews" : [ { "Film" : { ...
For experts this might seem little naive but i am trying to learn to use perl modules in my scripts. So basically I need to sort an excel file based on two columns and write it to a fresh file, which i can acheive using Spreadsheet::SimpleExcel $excel->sort_data($file,12,'ASC'); $excel->sort_dat...
here is my PHP code. $query = "INSERT INTO user (email, password) VALUES('".mysqli_real_escape_string($link, $_POST['email'])."', '"md5(md5($_POST['email']).$_POST['password'])"')"; I cann't avoid this lines error report like this: Parse error: syntax error, unexpected 'md5' (T_STRING) i...
Both of them works without errors, is there any difference? (function(){}()); (function (){})(); here are some working examples: console.log( (function (a) {return a*2;}(3)) ); console.log( (function (a) {return a*2;})(3) );
I've asked about this before, because I'm still not too familiar with dictionaries, but what's happening is every time I attack the monsters health resets automatically: #MONSTER STATS corpsefinder_stats = { "corpsefinder_strength" : 7, "corpsefinder_speed" : 1, "corpsefinder_mana" :...
How to upload my vendor folder to live as while commiting the project to bitbucket. it ignores the vendor folder of yii2 advanced application tamplate.
I have got problem with native messagins. When I try to connect with native app I'm getting this error: Connecting to native messaging host com.google.chrome.example.echo Failed to connect: Specified native messaging host not found. First native application C# static void Main(string[] args...
I have an issue with the EF's DBContext's life cycle using SimpleInjector , I have a worker service that is running continuously but I want the DBContext to be initialized during the messages' lifespan and not for the life time of the worker service application. There are examples on how to do...
I want to install GitHub Enterprise on Linux/Linux server. I am getting help for installing on virtual box , clouds ,Azure but I want a GitHub enterprise on my Linux server.
I have an Elastic Beanstalk environment that is running the following version 64bit Amazon Linux 2015.03 v1.3.1 running Tomcat 8 Java 8 When I added an environment variable for the word ENVIRONMENT and value TEST - it shows up in the process in unix as follows - which is as expected -DENVIRONM...
The auto Complete in eclipse displays all constructors with parameters, but Android studio doesn't. For example see the following screenshot in eclipse, it displays all constructors of Intent class. While auto complete in android studio for Intent class is displayed without parameters as fol...
I'm wondering if somebody has also a similar "problem" while installing Qt5 from MacPorts. I've installed a frech MacPorts distribution yesterday (on Yosemite) and installed the ports qt5-mac and qt5-creator-mac. First, I have noticed that (compared with my previous experience) there is no longe...
There android device without a screen. When connecting the USB device automatically appears the system dialog to permit the use of USB. It is necessary to obtain a permit without using the device's screen. It is assumed that the device application will be installed in advance, and when the USB de...
I'm fairly new to VB Script - been learning it since last week and I wanted to review my findings and I know this is the silliest thing you're going to come across. I keep getting a '424' run-time error and then saying 'Object Required'. Here is the code: Sub Button1_Open() Button1.OnClick M...
I have a List<string[]> parsedData. I have another List<string[]> newData = {n, 1, 2, 3}. The strings in parsedData seems to be stored the following way: 1. a b c 2. 1 2 3 3. 1 2 3 Which is perfect. When I add the newData to parsedData it becomes like this: 1. a b c 2. 1 2 3 3. 1 2 3 4. n ...
I have installed Oracle 10g on my machine but not able to run ed for edit option error: SP2-0110: Cannot create save file "afiedt.buf" Please, help me out to solve this. I have already tried so many options for fix it. Thanks in Advance.
I am looking for a "Integer Linear Programming" (ILP) library which is open source and 100 % Java. [As an alternative a 100 % Java SAT-Solver would also work. Currently I am using SAT-4J.] What I've searched so far: I've found wrapper like 'lp_solve, glpk, ..' which are not 100%-Java, since ...
I am using the following code to create 2 radio buttons. <StackPanel HorizontalAlignment="Center" Margin="0,40,0,0" Width="300"> <RadioButton x:Name="rbTargetURLTypeHttps" GroupName="rgTargetUrlType" Foreground="Black" BorderBrush="#A0A0A0" Content="HTTPS" IsChecked="True"/> <RadioButton...
I am trying to use amazon S3 for storing and retrieving files from my rails application, have setup the changes in configuration file for aws_credentials, but what is supposed to by sent as hash to the below configuration.rb file is being sent as string. Credentials in development.rb in my appli...
I'm experiencing a weird lexer behaviour in Boost.Spirit: I have a rule to match the UTF-8 BOM, R"(\xef\xbb\xbf)", that correctly works. But once I introduce certain additional rules, for example R"(\"([^\n\"\\]|\\[\"nrt\\])*\")", I get no matches whatsoever. Am I missing something or is this a b...
any ideas how to show this numbers 5106'1' -- 1356'2' -- 56'3' 1,2,3 are subscript.? cell = row.createCell(cellindex++); cell.setCellStyle(cellStyle3); cell.setCellValue(new HSSFRichTextString(String.valueOf(values.get("recurrings"))));
I'm trying to replace a couple of nodes in a syntax tree using roslyn. But the immutable nature of it seems to get in my way. public static string Rewrite(string content) { var tree = CSharpSyntaxTree.ParseText(content); var root = tree.GetRoot(); var methods =ro...
I have a script that count downs the time until an event start Start date and start time is retrieved from a database. My Problem Days is calculated correctly but hours are the same for each event and does not get calculated correctly while(){ $gameDate = $row['event_date']; $time=$row['eve...
When using the MediaWiki software, how do you disable the popup saying "Your edit was saved." from appearing?
I know there are a lot of similar questions here, but none of them could solve my problem. When I access the URL: http://localhost:42626/dealer/edit/2 Error occurs: The model item passed into the dictionary is of type 'System.Int32', but this dictionary requires a model item of type 'IMS....
I don't know if it is a problem started in Swift 1.2 or not. I am new to both swift and SpriteKit. I was watching an online tutorial and the guy there was able to put a green box on the bottom-left corner of the screen by doing the following: let greenBox = SKSpriteNode(color: UIColor.greenColor...
I am trying to conditionally format an excel spread sheet. I have two columns J and K with 5 rows 10, 11, 12, 13, 14 and 15. I want to make it so that if K10 is greater than J10 it turns green, if K11 is greater than J11 it turns green etc. so in effect:if Kn > Jn for values of n between 10 and...
i built a game engine with blender and now i want to export it as exe file. i opened the user preferences and in game engine i chose the "Game Engine: save as game engine runtime" then i pressed file -> export -> save as game engine runtime i also pressed file -> external data -> pack all into...
I am building a REST service using spring boot. My controller is annotated with @RestController. For debugging purposes I want to intercept the ResponseEntity generated by each of the controller methods (if possible). Then I wish to construct a new ResponseEntity that is somewhat based on the one...
Is it possible change the style of a external wms layer?? im trying to use this layer: https://firms.modaps.eosdis.nasa.gov/wms/?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=fires24&width=400&height=250&BBOX=-26,34,35,82 with this code on openlayers3 var fill = new ol.style.Fill({color: 'G...
I'm using a repository (B) as a submodule of my project (A). In that repo (B), there is an ingored directory, dedicated to local config files for that project. I'd like to version the content of that directory from my own project (A). Since those files are gitignored from (B), I thought I could...
Hello, I am currently having an issue with MySQL! What's going wrong here? I am a cPanel user, and yes I have searched this and found no definitive answers. It appears this is more specific than other people with the same error codes issues. Please add a detailed response that I can follow along...
The first code throws null pointer exception. object TryBroadcast extends App{ val conf = new SparkConf().setAppName("o_o") val sc = new SparkContext(conf) val sample = sc.parallelize(1 to 1024) val bro = sc.broadcast(6666) val broSample = sample.map(x => x.toString + bro.value) broS...
Fast Example, lets say, i have this js file, test.coffee alert 'test!' my goal is, I dont want this code to be loaded in every pages so i manually included where i want, <%= javascript_include_tag 'test'%> but the tragedy happens in production mode, this test.coffee is not minified in ...
i want to use Bonobo git server and want to initialize --shared --bare repositories. i check the source code of bonobo git server and by default it creates bare repositories. i need to include --shared as well, but there is no function in LibGit2Sharp.init(path, bare) with shared option. i chec...
I have a nested if loop like this: if (condition 1) if (condition 2) statement end else if (condition 3) statement end en...
I'm trying to queue mail using Laravel-5. The code I am using is below. I was expecting the mail to get stored in the database in the 'jobs' table but it just gets sent instantly. Mail::queue('emails.orderthankyou', ['first_name' => 'My Name'], function ($m) { $m->to('me@myemail.com')->sub...
I'm using MySQL 5.5 so that's why I can't use FULLTEXT search so please don't suggest it. What I wanted to do is if user I have 5 records for example : Amitesh Ami Amit Abhi Arun and if someone searches for Ami then it should returns Ami first as exact match then Amit & Amitesh
I'm getting the following error in when I'm trying to upload video ad: Error Code : 1363030. "Your video upload timed out before it could be completed. This is probably because of a slow network connection or because the video you're trying to upload is too large. Please try again" the connection...
I am developing an app that uses bluetooth to connect to my self made device and send simple text commands. Device's bluetooth is 2.1 version (profiles like SPP, HID, HDP supported, but LE not supported). Is there any way that my iPhone (4s and later) could talk to this device(MFI needed?)? Or I ...
I was wondering whether it is possible (and if it is, the way) to perform the following task in Microsoft Access: there are two tables; first one consists of three columns 1) ID 2) tweet text and 3) date. Second table is a single vector of words, like a lexicon. For every row of the first table, ...
I want to display an animated loading form while executing some code in the main form. The animated form is used only to show the user that an operation is executing and I want to close it once the operation finishes. The code that I'm using is: public partial class Form_main_admin : Form ...
I am using AWS Elasticbeanstalk for my project.When I uploading new version app it is giving error Update environment operation is complete, but with errors. For more information, see troubleshooting documentation My IAM role has AWSElasticbeanstalkFullAccess Then why I am getting this error...
I have the following code in the migration configuration seeding method: string sqlQuery = // 22 mb file contents context.Database.ExecuteSqlCommand( sqlQuery ); The ExecuteSqlCommand function is making Azure throw this error: The service has encountered an error processing your request. P...
I have a class in my c# project. Let's say Sample.cs I want to call it's method using ajax, but don't know how to use class name in url of ajax, I am doing like this, but it's not working $.ajax({ type: "POST", url: "Sample.cs/MethodName", ...
I'm working on my Add Materials for my Sales and Inventory. So far I need a validation where when adding a material, Selling Price must be greater than Purchase Price. Here is my code and I'm getting an error in the if/else statement where the values of my txtPurchasePrice and txtSellingPrice ar...
I have this code below: I want to view every line by line in textview but there is a problem, public class Resulat2 extends Activity { private Handler h = new Handler(); private Handler mHandler = new Handler(); public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstance...
I am looking for way to ungroup objects in MS Publisher 2010. For now I've noticed that groups are not catched by foreach (Publisher.Shape vShp in vPage.Shapes). Do you know how to catch them, or ideally ungroup? File for reference if needed: https://drive.google.com/file/d/0BxCNBW0W1-ZUQmVYSXc...
here is a scenario that I am stuck at: What I have A MVC ActionResult that's returning a Json: public ActionResult GetUpdates(string productId) { var updatesForProduct = _repository.GetUpdates(productId); if (updatesForProduct.Count != 0) { return Json( ...
So I have my UpdateMethod here: public void gvProducts_UpdateItem(Int32 ProductID) { ProductListModel model = new ProductListModel(); Product product = db.Products.Find(ProductID); if (product == null) { // MAF: The item wasn't found ModelState.AddModelError("",...
I am using AWS Lambda and will read some file from Lambda function. A text file can be read, even though A png file can not be read. It seems to be kind of strange. Does AWS lambda can not read the PNG file? I did the following process: In order to upload to AWS Lambda, archiving a project. ...
Often you have a data model with many tables sharing a date column as part of the composed primary key for e.g. and you want to partition your data by that column. If you use a filegroup for each partition it make sense to also have the small tables partitioned in this model. This makes it easy ...
Is this the correct way of taking input from the keyboard (CTRL L)? dim WshShell set WshShell = CreateObject("WScript.Shell") wait(2) WshShell.SendKeys("^108") wait(2) or dim WshShell set WshShell = CreateObject("WScript.Shell") wait(2) WshShell.SendKeys("^l") wait(2)
I'm using the core-selector for multiple selection in this way: <core-selector> valueattr="label" value="{{foo.bar}}" on-core-select="{{selectFoo}}"> <core-item repeat="{{foo in foos}}" label="{{foo.bar}}> </core-item> </core-selector> Foo is defined like so: class Foo...
I have used kodeine for Laravel user roles and permissions. No problem in installation and all the migrations. In documentation of kodeine/laravel-acl there is Blade Template Extension so the code to check users role is : // @if(Auth::check() && Auth::user()->is('admin|moderator')) // would be @...
I have the following information in input.txt file I would need to extract only below details from the input.txt file with out the "" (double quotes), Can some one help me on that please ? name="abc.net" model="Virtual" configuration="Server" text=""> name="def.net" model="Virtual" configura...
I migrate my system from Visual Studio 2010 (VS2010) to Visual Studio 2013 (VS2013) by installing VS2013 side by side to VS2010. Then I opened a VS2010 project where I didn't convert it to VS2013 file format. When I open the property dialog it is empty. And deleting the .suo files didn't fix the ...
I came across following implementation of singleton design pattern in javascript. var Singleton = (function () { var instance; function createInstance() { var object = new Object("I am the instance"); return object; } return { getInstance: function () { if (!instance){ ...
i am using usergrid module of node.js on my one machine, but now i got my new laptop, and installed all the required packages on laptop, but here the execution of usergrid module fails, while the same code and same modules gets executed on my machine. can anyone help me with this? and what i am...
I have Xcode 6.4 installed and I also have Xcode 7 beta installed. Recently I launched Xcode 6 and I showed multiple versions of the iOS simulators and they had long id/like uuid looking ids in the names. Some of them do not work. Has anyone seen this and does anyone have an idea of how to fix...
I wanted to add an image with text inside my link_to so I wrote this piece of code that is working fine : <%=link_to image_tag('fleche_droite.svg') + "Ajouter un joueur à la liste", invite_player_path(@tournament), class: "btn btn-success", id: "convocation-submit" %> the problem is that I nee...
I am using pure PHP language for my amateur programming, now. And, I am using Prolog language for logic courses, too. Many weeks ago, I found this interesting topic (2D1456), some Prolog interpreters in PHP (on GitHub). I don't want to use complex interpreters as available interpreters on GitHu...
I'm trying to make all B, S, M table combinations with all joins. B in S in M from var0 in ctx.B join var1 in ctx.S on var0.B_id equals var1.parentId into var1Group from var1 in var1Group join var2 in ctx.M on var1.S_id equals var2.parentId B in S le M from var0 in ctx.B join var1 in ctx.S ...
Guys can any one help me to create two way chat application in java using MVC. Me done with windows application using Socket programming but now i have to develop same thing in web application. Please provide me some stuff which can help me to move forward...
Say I have a Map<String,String> and a POJO like below class Model { String name; String value; } I need to populate the name and value of Model by key and value of EntrySet of Map. Apart from iterating over the Map and doing the same is there any API available that can convert this map t...
Is it possible to achieve the following web application infrastructure in IIS? I would like to have a web site with 3 or more applications in it: Foo Bar Site (Web Site) ScheduledServices (Web Application) Administration (Web Application) Store (Web Application) URLs that look like http:/...
I have used the below command to compress and backup my data in a Linux server. mysqldump -u root --triggers --routines --all-databases | gzip > MyDBs.sql Now i would like to have all these data restored in my local machine which is a windows 7 machine. When i tried importing the same in MySQL G...
I compress all my JavaScript files and CSS files with YUI Compressor yuicompressor -o '.js$:.min.js' *.js -v Should I keep the minified files in my subversion system or not? I know both is possible but I'm searching for "best practice" and the pros and cons
I have developed a C#.Net desktop application to import/export invoices from XERO, using XERO API. Connectivity with XERO is perfect when application executed on Windows 7 or Windows 8 machine. But when executed on Windows Server 2008 R2 it fails. Message displays on the page... "Xero requires...
I want to add the database from my jform and there's a column which will be auto incremented, like when i click done, the data will be inserted and a column 'receipt_no' will have a value 1. Next time i click done then this value should be 2 and so on. So the problem is, i have created a table wi...
hey i am working on making an interface between matlab and arduino. in other words , i want to send some data from matlab to arduino. i have written programmes both in matlab and arduino ide. matlab programme: c = 1; if (c ~= 0 ) f = 1; else disp('vhxhjf'); end disp(f) arduino=...
<td class="data-display-field" width="20%" valign="top"> <table class="printtotal" cellspacing="0" cellpadding="0" width="100%" ><tbody> <tr class="list-row"> <td class="data-display-field" width="60%" style="font-weight: bold" align="center" colspan="2">Order Totals</td> </tr> ...
I have data like this. recode raw_model start_date stop_date. I wanna find out any Raw Model with more than one Recode where the the manufacturing Start and Stop dates overlap between recodes (two are active at the same time using SAS EG or proc sql. Any help would be really appreciated. Thanks
I have Jboss 7.1.1 AS and when I run it as service, after some time when I use jasper reports I get exception: java.lang.OutOfMemoryError: PermGen space Notice that this does not happen at all when I run it from Jboss developer studio. What should I do ?
I have a user input request box basically written as matlab suggests in http://www.mathworks.com/help/matlab/ref/inputdlg.html . prompt = {'Enter spot number'}; dlg_title = 'Input'; num_lines = 1; def = {'9'}; answer = inputdlg(prompt,dlg_title,num_lines,def); handles.count = str2double(answer{...
I know, this is a very basic question but i have no idea why my paintComponent does nothing. Its main functionality should be to draw an image but it not even draw a rect or circle. So please help me -.- Class with JFrame: public class JuliaView extends JFrame implements Observer{ //:::: ACTIO...
I just created a cms block from magento admin panel and now I want to get it into the phtml I tried this way: $this->getLayout()->createBlock('cms/block')->setBlockId('ostore_footerb1-it')->toHtml(); But its not working for me showing nothing.
I am learning python from a video tutorial series that uses a GUI called 'simpleGUI'. It is not inbuilt in python so I had to download install a similar module called 'simpleGUITK'. I'm new to python and I wish to know if there is any inbuilt module that I can import without any installation ...
I am trying to update my combobox values while user changing it. in html codes: <select class="combobox" id="recs" name="recs" onchange="changeRecs"> <option value=5>5</option> <option value=10>10</option> <option value=20>20</option> </select> javascript codes: $scope.changeRecs...
im new to Java. I found this example in a book. I expected it to print "ab" or "abc", but it throws exception instead. Can somebody explain why it happens? Thanks in advance. public class Test { class A { String str = "ab"; A() { printLength(); } ...
WHERE (K.PATH OR K.ITEM_NAME) LIKE '%File Delivery and Specialized Product Team (CSTART)%' Is this a valid query for WHERE clause?
I have two table tblclients and mod_autorenewdomain tblclients columns which I required: id firstname lastname mod_autorenewdomain columns: id userid autorenew days I have inserted in mod_autorenewel table, next I want to show the clients which are not added in mod_autorenewel table The q...
I am new to android. I heard we can create android applications using HTML5, is it true ? If yes, which software i have to use to create and test applications.
Here's my problem. I want to change all the occurrence of blank spaces in the href attribute of the response HTML to the plus (+) sign. href="example.com/sites/site-name/index.page?path=categotry1/category2/sub category1/file.xml" should get change to: href="example.com/sites/site-name/index....
I have 900000 csvfiles which i want to combine into one big data.table. For this case i created a forloop which reads every file one by one and ads them to the data.table. The Problem is that it is performing to slow and the amount of time used is expanding exponentially. It would be great if som...
def traverse_dir(fd): for dir_path,subpaths,files in os.walk(fd): print dir_path,subpaths for file in files: print "file:%s" %file def traverse_func(arg,dirname,files): print dirname for file in files: print "file:%s" %file os.pa...
I am trying to find a way to give a list of tuples, for example the following one: [((1,2), (4,5)), ((1,4), (5,6))] as input to a neural network using pybrain.
I have left link in my project and i want to create tab dynamically and load a view or partial view in the same tab while click on left link.
Q)i got one compile error 10::non-static variable this can not be refferenced from the static content what to do now?? class Computer { void method() { System.out.println("this i objects"); } public static void main(String[] args) { Laptop mtd = ne...
Try the bootstrap dashboard example http://getbootstrap.com/examples/dashboard/ My interest is primarily in using their fixed sidebar template. But interestingly, the sidebar and its contents disappear when you switch to a smaller viewport (in case of desktop, smaller window screen). Is it rea...
This is my php sample script: <?php try{ $db=new PDO('mysql:dbname=_mydb;host=localhost', 'root', 'xxxxxx'); }catch(PDOException $e) { echo "Error: ".$e->getMessage(); } ?> And I have returned: could not find driver Also: user@nbook:~$ php -i|grep PDO PDO PDO support => enabled PD...
I have this div, and i need it to be fixed, but i can't use position fixed (the site goes to the left when i push a button, and if the div it's fixed, t will stay in the same spot)... How can i do it? #baar{ height: 56px; width: 100%; background: linear-gradient(top, #e3e3e3 0%, #f9f9f9 100%); ...
Everytime I run my mapreduce job, I will create a fatjar which is very big and time consumption. I wonder whether hadoop provides an option that I can put dependent jars on hdfs like spark-addjars option.
I have problem to play video (ts file & m3u8) from cloudfront. I used https://s3.xxxx/bucketname/live.m3u8 and it's working it can play using mediaelement.js, but if I use https://xxx.cloudfront.net/live.m3u8 is not working. If I use browser to download the m3u8 file using both urls from s3 or c...
As you can see in the image, my logo is partially under my image. How can I display it fully above it? Z-index doesn't seem to work..
Im very new for android,Im using java restful webservice for login purpose.. Webservice url: http://localhost:8084/TestWebApp/webresources/userbay/signin?mobile=username&code=password Here username and password Edittext value from android. My question is ,How to pass the Edittext value from a...
Strange multiple exceptions in Plya logs (1.2.5) Java. Any reason of such behavior ? play.exceptions.UnexpectedException: Unexpected Error at play.mvc.ActionInvoker.invoke(ActionInvoker.java:264) at play.server.ServletWrapper$ServletInvocation.execute(ServletWrapper.java:561) ...
I've written this code to get cpu Id for creating a fingerprint, So I can use it for generating a request code and software activation: System.Management.ManagementClass m = new System.Management.ManagementClass("Win32_Processor"); System.Management.ManagementObjectCollection moc = m.GetInstanc...
i am using WKWebView for iOS 8 devices and wants to check if the error occuring is NSURLErrorDomain then I want to make some changes, till now, I have added below code, but somehow the compiler goes into else part, now sure why. - (void)webView:(WKWebView *)webView didFailNavigation:(WKNavigatio...
I am making successful xDomain requests with appropriate CORS headers. As soon as I introduced the Authorization header, Chrome started making the preflight OPTIONS request before every API request. I'd really rather not go make the authorization token part of the query string. Preflight check ...
I have a function which returns something like this: return array($row['city_for_work'],$row['id'] ); Where city_for_work is string which need to be unserealize and id is simple integer. If I return just city_of_work I can simply use this, but i cant right now becuase it expect string and get...
First of all, this is taken from documentation: Passing an array of strings GET /_search/template { "template": { "query": { "terms": { "status": [ "{{#status}}", "{{.}}", "{{/status}}" ] } } }, "params": { "status":...
i want to extract properties, like phone number, society, email,... from an e-mail which is in my inbox ! Thanks a lot !
My app similar to todo application where list of todos are associated with a tag Ex: tag1: "Sunday" todo list: Task: "wake up late" info: "task1" Task: "break fast" info: "task2" tag2 : "Monday" todo list: Task: "wake up at 6" info: "to early wakeup" Task...
I need to filter different sheets. I'm using Advanced Filters and it works with one sheet but now I need to add the other sheet. Is this the right way to do this because I'm getting the 438 error:"object doesn't support this property or method" ? Sheets(Array("RawData", "RawData2")).Range("Tab...
I have this multi language rewrite url from .htaccess: RewriteEngine On RewriteBase /pms/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^((fr))/([A-Za-z0-9-]+)/([0-9]+)/([A-Za-z0-9-]+)/?.html$ article.php?page=$3&id=$4&title=$5$lang=$1 [NC,L,QSA] in articl...
I need to attach a force directed graph to set of rectangles arranged together using d3. You can see the reference image http://i.imgur.com/x8E70S2.jpg for the desired result. Looking forward for answers.
I'm trying to use synchronizedjs in my testcaes, but now any test passes. test.it("Clicking previous week button, causes loading previous week",()=>{ sync.fiber(()=>{ var currentMondayText = sync.await(driver.findElements(webdriver.By.className("date"))).getText(); ...
Suppose on facebook a user puts his status and then others comment on that status. So, a situation like this evolves: User 1 : My status 1 FB user 2: comment1 FB user 3: comment2 FB user 2: comment3 FB user 4: comment5 User 2 : My status 2 FB user 2: comment6 FB user 3: comment7 FB user 2: com...
I am working on a Spring-MVC application and I would like to integrate Dropbox functionality into it. As I read the examples, I saw that there is some code which I can use. But this involves the user copy pasting the access token, which is not applicable in real world applications, plus I cannot...
« first day (617 days earlier) ← previous day next day → last day (457 days later) »