List topic bin\windows\kafka-topics.bat --list --bootstrap-server localhost:9092 bin\windows\kafka-topics.bat --describe --bootstrap-server localhost:9092 bin\windows\kafka-topics.bat --describe --bootstrap-server localhost:9092 --topic test
Producer:
console bin\windows\kafka-console-producer.bat --broker-list localhost:9092 --topic test
Power shell to pipe apache web server access log gc access.log | D:\dvp\kafka\kafka_2.12-2.2.0\bin\windows\kafka-console-producer.bat --broker-list localhost:9092 --topic test
gc access.log -wait -tail 1 | ... (Like linux tail -f access.log. Not working)
Configure apache httpd.conf TransferLog "| d:/dvp/kafka/kafka_2.12-2.2.0/bin/windows/kafka-console-producer.bat --topic test --broker-list localhost:9092"
For both pipe and TransferLog, I really doubt the reliabliability.
Consumer:
Console bin\windows\kafka-console-consumer.bat --bootstrap-server localhost:9092 --topic test --from-beginning
I installed HttpWatch to inspect all my media. They were all in the same domain.
Took me a while to narrow the cause. Javascript like this obj.style.backgroundImage:url(myimage.gif); wass trouble. Image url need need to be full path.
Google around some tab samples : University of Illinois and YUI, as I said before they were very complicated.
I believe my tab page design is very generic for web designers. So this is my address book sample of Work and Home tab. I don't provide those complicated key navigation. All user need is just "tab" key.
My question is do I present "tab" role properly in my above design?
I though to make page AREA aware is just role attribute. When, I try to put together tablist and tab, then things are getting complicated. In IE8 with JAWS10, it read out all tabs are visited, so I guess there should be another attribute to tell which tab is on.
When I look at example. It's so complicated. A long long of javascript to create widget. This is really not simple and create burden to developer.
Firefox 3.1 comes with css transform. I learn IE also has matrix equally.
Previously, I use writing-mode: tb-rl; filter: flipv fliph; for IE vertical text. Unfortunately, the text is very jagged after rotated. I decide to give matrix a try.
<div id="vt" class="displayretainer" style="filter:progid:DXImageTransform.Microsoft.Matrix(M11='1.0', sizingmethod='auto expand');"> Vertical Text </div>
<SCRIPT> var deg2rad = Math.PI * 2 / 360; function setRotation(obj, deg) { var rad = deg * deg2rad; var costheta = Math.cos(rad); var sintheta = Math.sin(rad);
I try to make a SELECT and DIV side by side with outline (style by border) in the same height; unfortunately, IE6 has always few pixels short.
I play it more. This situation only happens on heavy styling -- font is problem. So, I try to set my SELECT with fixed size font (font-family:monospace,Courier,Courier New;), then both SELECT and DIV are in the same height.
In IE, that is straight forward -- I got "Print" to the right side. But, not Firefox. According to http://bytes.com/forum/thread100308.html"The text-align property affects, by CSS specifications, the alignment of text lines inside the element. The inner table is a block element, so it is not affected.", that is make sense to me. However, it just give my style sheet more complication.
Just installed IE 8 beta 2. Before I installed it, I need to go through a whole bunches of windows update -- they were incredible huge.
The most obvious change I noticed is tabs. Better interface is always plus.
The long time most inconvenience feature in IE is open new URL by hitting "Ctrl+l". In Firefox and Safari, the window focus move to address bar once "Ctrl+l" hit. However, IE 8 still comes out a small pop up. The problems are : 1) It covers up some page content. 2) This pop up can be fake by malicious site. 3) It has very short text field. 4) Unfortunately, when new page open, the url don't show in the address bar. Well, it's beta.
UPDATE : IE 8 is going to have another beta and not going to release this year.
I put a log in to the front page (http), but I put log in to a iframe (https) to make sure user always use https to log in and has less chance to be hacked. But, I got "allow sub-frames to navigation across different domains". I have main window and iframe all in the same domain, but just http and https difference. Why IE send up this warning by the default? It's getting annoying.
Actually, I am looking how to have cascading menu disappear when mouse out. I hope this example http://bytes.com/forum/thread553630.html is going to help. Got to try it later on.
Also, file object should have "progress" properties, which show what is uploading percentage. So, javascript function can read that.
For the UI, once the file is starting to upload, INPUT file area show progressInitColor as background color and progressFilledColor flooding in base on uploading percentage. Also, the upload percentage number show next to file name.
This is what I think.
I saw some of ajax implementations show the file upload status bar. They are all by stage, not really progressive. As browser security, server don't know the file size until fully upload, so there is no way to use ajax to create real progress bar.
I can replace a pattern with line break. Let's say I have
"AAA" "BBB" "CCC" "ABC"
I enter CTL+F to open Find, then switch to Replace. In Find What, I enter " " and Replace With \n, then I need to check Search Mode > Extended (\n, \r ...). Then hit "Replace All" button. I got
"AAA BBB CCC ABC"
I just delete two quotes simply. Then in the menu > TextFX > Text FX Tools > Sort Line ...
That's all. Notepad++ is getting better and better,
Java is programming language, but PHP is only presentation layer for web.
Some feature PHP can't do that.
Java is sophisticated. Java has more libraries.
Java can do thing more organized. People is arguing PHP code is messy.
Ideally, we would like to some layer in the application for better developer collaboration, like presentation layer, logic layer, database layer.
PHP is still evolving and some fundamental structure is not well planned. New version of PHP add some lack features. However, when update to new version PHP, backward compatible is big issue.
More vendors support java. More enterprise certify java. More community force for java.
PHP use oci to connect database. OCI is considering faster than thin drive, but more depend on system environment. Oracle suggest to use thin driver as server-side internal driver.
I can replace a pattern with line break much easy with latest jEdit; however, I found notepad++ is more lightweight and powerful. So, I intend to use notepad++.
Notepad++ has so many options, configurations and tools. I intend to it can do many jobs. However, it takes me a while for how to replace a pattern with line break. The tricky part is how to put line break into "Replace with". I tried "\n", but not translate to line break. Also, tried "crtl+enter" key. Still no.
After, I look at http://forums.whirlpool.net.au/forum-replies-archive.cfm/911631.html, then it give me some hint.
I need to turn on "End of Line" in the "View" menu, then I copy "LF" into "Replace With". Then a pattern can be replaced with real line break.
My next goal is to replace HomeSite with Notepad++.
IE is sometime very innovation, but at one point you need to cry for bugging design. IE came up first HTML editor (WYSIWYG) back to 5.x.
Eventually, Firefox (Mozilla) catch up this feature. And, it's in HTML 5 spec. When you look at the Mozilla midas definition is very simple, but when you look at MSDN document that is very complicated and bloated. Mozilla implement most basic parts from IE and work perfect. As security reason, the copy and paste are not scriptable in FF.
The line break is annoying in IE. Most of times, user experience double line break which is not user expected. To avoid double spaces, must use DIV tag as hint. If current cursor position's parent node is not DIV, then double line spaces which from P tag. This is part of developer know how.
Another interesting part is when you apply indentation (Indent), you can find out IE has DIV inside of BLOCKQUOTE. Obviously, the IE folks are trying to avoid double line break.
One time, I did handle key event to force all ENTER key BR tag. Unfortunately, it caused alignment problem. In IE, the alignment is applied to DIV, P, BLOCKQUOTE tag, but not between BR tags.
I am sure many peoples are fighting this issue. Despite, we can use SHIFT+ENTER to force as single line break, but who are going to know that.
Yesterday, I were happy with new Firefox 3 beta -- no crash in the yahoo new mail.
But in today, I still got one crash.
For the Firefox 3 beta, I have noticed the table spacing (or padding) is little bit different, but I haven't look at the detail. Generally, Firefox 3 beta is very good. I will will be nice if it don't crash Yahoo mail.
With this feature, single sign on and web service can be done in the client. Hopefully, this feature is not going to open new chapter of security issue.
For the rest of browsers, need to use SVG. <embed class="svgex" src="vertical_text.svg" type="image/svg+xml" frameborder="no" width="30" height="90" />
For svg, <?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <script type="text/javascript"> <![CDATA[ //this will create htmljavascriptfunctionname in html document and link it to changeText top.htmljavascriptfunctionname = changeText; function changeText(txt){ targetText=document.getElementById("thetext"); var newText = document.createTextNode(txt); targetText.replaceChild(newText,targetText.childNodes[0]); } // ]]> </script> <text id="thetext" transform="rotate(270, 90, 0)" font-size="12" x="3" y="-60" font-family="Verdana">Vertical Text</text> </svg>
I am very impressed Firefox 3 beta speedy. Right now, I feel it fly like Safari 3.
One thing I don't really like it is "Location bar & auto-complete" because the search result is too wide. And, it really change user experience. For example, I type "d", Firefox 2 shows the first item on the list is "digg .com", but not Firefox 3. I prefer auto-complete to work on url search only.
I also try to see how good its memory management, so I let it run a day and back to my start up page, default google search page. Windows Task Manager show 90 MB. The first start up page is 26 MB only. Looks like there is still big gap to improve in the memory management.
Today, I am looking Eclipse plugin and find a interested javascript editor, JSEclipse.
I am also browsing around Adobe Labs to see other helpful resources. I always doubt how to design AJAX framework. So I check Spray and get some concept of how to design some APIs. I look at form validation demo and its source codes. The AJAX validation is registered at the end of page, which make the code very portable. But I have different view of those attributes related validation, like minChars:20, maxChars:180 in the textarea. I believe it's better put those attributes into TEXTAREA object for easy maintenance.
In the CVS repository Exploring, I can compare by day and the result come out a tree list. I only get "Expand All" in the context menu. Can any plugins export the tree list to a report?
I have two kind of sources (english and chinese in html files). English is developing mainly and I would like to synchronize chinese files immediately and need a way to verify sources. If you have any idea, please advice. Thanks in advance.
[SCRIPT language="JavaScript"] function addOption(obj, text, value) { value += ""; //in case of number if (!document.all) { //Firefox text = text.replace(/\s/g, "\xA0"); } var newOption = new Option(text,value); obj.options[obj.options.length] = newOption;
return newOption; }
addOption(document.myForm.loc, "Please select location" , 0); addOption(document.myForm.loc, " City Hall A101" , 1); addOption(document.myForm.loc, " Governor Hall 1" , 2); addOption(document.myForm.loc, " Constitution Hall 1" , 3); addOption(document.myForm.loc, " State Hall 1" , 4); [/SCRIPT]
In IE, when window.close() or self.close() is executed, the window is closing perfectly. But when after opening a print preview window from file menu in IE and after closing the print preview with [X] button, then the window.close() is not working. Is there any solution to close the window even after closing the print preview window?
I am looking this solution, too. Unfortunately, this post land to wrong forum and no answer provide.
In the above sample layout, I can see the header H2 in the Fieldset outline correctly only in IE, but Firefox.
This gives me some trouble. I would like to use FIELDSET for better layout. Also, I would like to use H2 for better accessibility -- screen reader (JAWS) can separate different section of content. Unfortunately, it doesn't look great in Firxfox. Sine I have urgent of accessibility. I need to drop FIELDSET/LEGEND.
It's interested three major internet services(Google, Yahoo, MSN) competing each other. Microsoft is the one like to chase Google.
Google got the 3D Map for a while. I were fascinated that we can fly around the around and see trees, rivers, houses. The satellite map is really helpful to visualize the distance from the top and give me more solid idea from point to point and turn to turn because I can always reference the building, landmark. I trace through train rail line, my bike route, and optimize the local route.
At sometime, MSN came out satellite map, too. Unfortunately, the map was so old. I didn't see my house and the community I living and that's black white. I were wondering that picture was taken back to '80s. Despite the recent MSN claim whatever they have and improvement, I still see the same old map.
One time, I did update to 3.01. After that, I still got 3.02 upgrade dialog. I was busy at that time, and decide to do it later. So, I canceled the upgrade.
Well, where is the auto upgrade in the Safari 3? I don't see it in the menu and preference.
I am getting frustrated on Eclipse. I have very a large of code base. One time, I may open more than ten files.
1, I may put some debugging code in the java files, like System.out.println(). But, when I finish, I may forget where do I put the debugging code. Therefore, I need to search all open files -- tons of files. I can't just search workspace, some of debugging codes are for testing. Now, I am missing my favor java editor, jEdit. It allow me to search all opening files.
2, When I open java and html files, but it's getting hard to manage them. Eclipse should have view of all open files. Or to have better way to group different file extensions. Right now, it is hard to look up other files.
3, Another my favor feature in jEdit is tab/space character indicator. My code base is huge and a lot of legacy issue. I need to use space for indentation, but I want to know any tab characters in the files.
<DIV style="line-height:250%;"> <IMG SRC="http://i.i.com.com/cnwk.1d/i/hdft/xml_sm.gif" ALT=""><A HREF="#"> Yahoo is your e-mail portal</A> <IMG SRC="http://i.i.com.com/cnwk.1d/i/hdft/xml_sm.gif" ALT=""><A HREF="#""> Goolge is your search portal</A> <IMG SRC="http://i.i.com.com/cnwk.1d/i/hdft/xml_sm.gif" ALT=""><A HREF="#""> Amazon is your shopping portal</A> </DIV>
<BR><BR> <DIV style="line-height:250%;"> <A HREF="#"> Yahoo is your e-mail portal</A> <A HREF="#"> Goolge is your search portal</A> <A HREF="#"> Amazon is your shopping portal</A> </DIV>
Apple - iPhone It has built-in google map. That's cool. What kind of connection for google map? Does it has intelligent to use wi-fi connection if available?
I would like to compare the performance of dynamic content creation between document.createElement and innerHTML, because I were looking how to improve the very large table rendering.
This is definitely worth to give it a trial. I am somehow to prefer to use innHTML, because it's easy to trace down the code. But, sometimes, DOM manipulation can't be avoided.
Just learn Firefox display style -moz-inline-box and -moz-inline-block.
What's the difference? For two nesting DIVs.
When outside DIV is "-moz-inline-box" and inside DIV is "-moz-inlineblock", then "-moz-inline-box" allows to expand the width if content length overflow.
When both outside and inside DIV are "-moz-inline-block", then content will be overlay if inside DIV content length overflow.
Using the electric field would pose a health risk, and would be better employed in applications in which people aren't nearby, he says. Conversely, using the magnetic field would be much safer and could be implemented just as easily. "I can't think of any reason to worry [about health concerns]," he says, "but people will."
As technology improvement, everything are getting handy, but doesn't mean people are getting healthy. Got to make some search how electric field and magnetic field affect to people health.
The new Motor Trend web site is much better than before. It's more like an enterprise now. Previously, the page was design for small screen and had no enough space for padding.
Unfortunately, my Firefox 2 understood window.console. I was surprised, but I didn't see it in the mozilla DOM reference.
But, I didn't have this problem in my new laptop's FF2. So, I looked at my extension. I disabled Firebug, then I found my script was good again.
So to be safe, I change my Safari condition as if (window.console && window.console.log) //safari Another Notes : When I tried if (window.console && window.console.log()) //safari Safari crashed. Despite Safari is rarely crashed, but I still don't like.