producer.send does't accept KeyedMessage type
◷
تاریخ انتشار: 1395/5/5 | ساعت: 5:42
Vote count: 0 I have tried to run this code but it doesn't work because of producer.send() doesn't accept KeyedMessage type. I tried to import kafka.javaapi.producer.Producer instead of kafka.producer.Producer; but still doesn't work The code is : package sources; import java.io.BufferedReader; impo...
FFMPEG: Overlaying one video on another one, and making black pixels transparent
◷
تاریخ انتشار: 1395/5/5 | ساعت: 5:42
Vote count: 0 I'm trying to use FFMPEG to create a video with one video overlayed on top another. I have 2 MP4s. I need to make all BLACK pixels in the overlay video transparent so that I can see the main video unde eath it. I found two ways to overlay one video on another: First, the following posi...
Getting the text from an external URL
◷
تاریخ انتشار: 1395/5/5 | ساعت: 5:42
Vote count: 0 Okay, so, say I was on this website; http://www.example.com/ I saw something I liked and I wanted to use it for my website, how would I get the text from it and what language would I have to use? http://i.stack.imgur.com/knFRN.png (I'm quite new to HTML, PHP and JavaScript so please be...
convert a ANSI (.csv) file to UTF-8
◷
تاریخ انتشار: 1395/5/5 | ساعت: 4:15
Vote count: 0 Requirements are as follows: a) convert a .csv file which would be in any character encoding to UTF-8. while converting it should overwrite the current file. b)This should work in both windows & linux enviroments c) Please post the code snippet if possible. Any help will be greatly app...
How to use Elasticsearch's Completion suggester with Javascript and typeahead.js?
◷
تاریخ انتشار: 1395/5/5 | ساعت: 4:15
Vote count: 0 I am trying since many day to build a simple demo autocomplete search form. I'm using javascript and typeahead.js library. I have a probleme to get all of them working together. I am using Elasticsearch service from amazon web services. When i type the first letter of the word am searc...
Marshal fails for struct with enum field of custom size
◷
تاریخ انتشار: 1395/5/5 | ساعت: 4:15
Vote count: 0 I have a struct which I am trying to Marshal which is defined as follows: enum BBB {BB1 =1, BB2 =2} [StructLayout(LayoutKind.Sequential, Pack = 1)] struct Foo { [MarshalAs(UnmanagedType.I2)] public BBB F1; public int F2; public short F3; } Seems like Marshal can't handle this enum fiel...
invalid drawable tag animated-vector
◷
تاریخ انتشار: 1395/5/5 | ساعت: 2:08
Vote count: 0 I've looked all over stackoverflow and no question was able to solve my problem. I'm trying to play an animated vector drawable on a device with API 15 but I keep getting the following runtime exception: android.content.res.Resources$NotFoundException: File res/drawable/animated_feedba...
C# Configuration Section Settings Not Initializing
◷
تاریخ انتشار: 1395/5/5 | ساعت: 2:08
Vote count: 0 I've spent several hours trying to determine what's causing my custom configuration section to fail, but I can't seem to find the root of the issue. I'm getting an error: An exception of type 'System.Configuration.ConfigurationErrorsException' occurred in System.Configuration.dll but w...
SQL Syntax Error In Java and MySql SELECT Query
◷
تاریخ انتشار: 1395/5/5 | ساعت: 2:08
Vote count: 0 I am developing a basic program that has 3 JFrames. A log-in, a registration and a Dashboard to be opened after successful log-in attempt. However, I am getting an error after typing in the use ame and password and clicking log-in button. Here's the error: com.mysql.jdbc.exceptions.jdb...
Conditionnaly rename the value depending on the previous row
◷
تاریخ انتشار: 1395/5/4 | ساعت: 21:51
Vote count: 0 I have a data frame df: Event Code Picture no$ Picture value Picture $ Picture value Picture no$ Picture value Picture no$ Picture value Picture $ Picture value I want to rename value to reward or no_reward depending on the previous row. If it's $ then reward, if it's no$ then no_rewar...
how to scan bootstrap elements in an image using open cv 3?
◷
تاریخ انتشار: 1395/5/4 | ساعت: 21:51
Vote count: 0 I was given a UI of a webpage and I have to sagregate the bootstrap elements like NAVBAR, ROWS, COLUMNS,HEADERS etc.. So anyone have any idea of how to do it? asked 41 secs agoAshish Rambhatla Let's block ads! (Why?)
Url value not able get in other component in angular 2.0.0-rc.1
◷
تاریخ انتشار: 1395/5/4 | ساعت: 21:51
Vote count: 0 localhost:5555/dashboard Currently I am in dashboard component. In view I have a grid that will having link button will move to another component city component. So I need to pass state id dynamically from view. localhost:5555/dashboard/states/1/cities localhost:5555/dashboard/states/2...
Ionic2 how to prompt an alert with checkbox inside?
◷
تاریخ انتشار: 1395/5/4 | ساعت: 20:45
Vote count: 0 Using Ionic2 and angular2: I want to show an alert box, inside which a text along with checkbox - to ask for user if he/she agree to the statement. Please help!! asked 39 secs agoAnkit Maheshwari Let's block ads! (Why?)
SMS send via SOAP
◷
تاریخ انتشار: 1395/5/4 | ساعت: 20:45
Vote count: 0 i have the code to send SMS via Web Service SOAP bellow: /* DATABASE CONECT */ $soapClient = new SoapClient(WEST_SOAP_WSDL, array("login" => WEST_SOAP_LOGIN, "password" => WEST_SOAP_PASS, 'compression' => S OAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP | 9)); try { $cliente = $soapCli...
php xml xpath foreach to get values of nodes with same name
◷
تاریخ انتشار: 1395/5/4 | ساعت: 20:45
Vote count: 0 Guys, I have this xml code: <items> <item type="boardgame" id="84876"> <versions> <item type="boardgameversion" id="317166"> <link type="boardgameversion" id="84876" value="The Castles of Burgundy" inbound="true"/> <name type="primary" sortindex="1" value="Chinese Edition"/> <link type...
How to find if element exists in jquery?
◷
تاریخ انتشار: 1395/5/4 | ساعت: 19:42
Vote count: -1 this part of the code is not working. $partofcode =' userid=8; if ($(".btn-follow[userid='+userid+']").length) { alert("ok found"); }'; this part of the code is working $partofcode =' if ($(".btn-follow[userid='8']").length) { alert("ok found"); }'; what is wrong here? asked 45 secs a...
How to implement a fight club core algorithm?
◷
تاریخ انتشار: 1395/5/4 | ساعت: 19:42
Vote count: 0 I'm implementing a fight club game. As you may known the fighters stay in a circle and fights with each other. In each round Tyler Durden randomly select one of the fighters and this fighter must fights with the one on his left. Whoever wins, stays in the circle. The one who loses leav...
React Native - Button Styling Trouble
◷
تاریخ انتشار: 1395/5/4 | ساعت: 19:42
Vote count: 0 I have a questions regarding React Native: Can i transition background colour like I would do using CSS :active selector and transition? If not, what would be the best alte ative to achieve at least similar design? asked 36 secs agoBalša Let's block ads! (Why?)
How to install JasperSoft Server with Oracle instead of prostgresql/mysql
◷
تاریخ انتشار: 1395/5/4 | ساعت: 16:58
Vote count: 0 Recently i have tried to install jasperSoft alongside Oracle but couldn't because there are some files missing in the C:Program Filesjasperreports-server-cp-5.2.0a-binbuildomaticconf_sourcedb , the files are missing i only found postgresql and mysql and the same thing in C:Program File...
Missing compiler required member 'System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AwaitOnCompleted'
◷
تاریخ انتشار: 1395/5/4 | ساعت: 16:58
Vote count: 0 After adding this method (first test on C# async keyword in my life) to my project I get the error below, why? public async Task<Member> AddOrUpdate(DownloadFormModel model) { IMailChimpManager mailChimpManager = new MailChimpManager(ConfigurationManager.AppSettings["mailChimpKey"]); M...