Posts

java - org.eclipse.core.expressions.definitions doesn't work with equals -

java - org.eclipse.core.expressions.definitions doesn't work with equals - i'm starting out with eclipse e4 swt , have problem core expressions. i'm trying set core look optionally display popup menu items treeview. when define look instanceof myobject, works fine; menu item displays if instanceof myobject, doesn't show when instance of other object. i tried show menu item equals value , can't work. the menu item won't show @ all, when value correct. have integer range form 0 4 want show menu items particular integer value. i've tried comparing value integer , string no menu items show, yet when alter instanceof integer or string, display. can tell me how equals supposed work? equals work objects of type string, boolean, integer or float. illustration ant editor: class="lang-xml prettyprint-override"> <extension point="org.eclipse.core.expressions.definitions"> <definition ...

Problems in running class java files in ubuntu -

Problems in running class java files in ubuntu - i have coded java file (party.java) in ubuntu through gedit - java code of file follows: import java.awt.*; import java.awt.event.*; class party { public void buildinvite() { frame f = new frame(); label l = new label("party @ tim's"); button b = new button("you bet"); button c = new button("shoot me"); panel p = new panel(); p.add(l); } // more code here... } and compiled code terminal. after doing stuff when tried run party.class through terminal commands: kirat@virus:~$ cd ~/desktop kirat@virus:~/desktop$ java party its showing me error message: exception in thread "main" java.lang.nosuchmethoderror: main i don't know whether there wrong code. please help me issue exception in thread "main" java.lang.nosuchmethoderror: main in core java can execute programme has main method class don't have main method defined ...

Monitor a mule process from another mule flow -

Monitor a mule process from another mule flow - i have process reads file , uploads database. flow goes below. file connector processing within for-each loop (update database) the problem above approach @ time when exception occurs, processing stops @ record , rest of records not processed. work around, have changed flow below: file connector for each - within for-each flow-ref placed phone call separate flow processing. the thing noticed that, @ point of calling new flow, separate threads used processing, due exception not cause records fail. facing difficulty, after processing completes, need initiate study finish processing details (no of records processed, rejected, etc). since records processed asynchronously in different threads, not able figure out when processing completed. there way monitor whether processing finish mule flow, can generate study when complete? at point of calling new flow, separate threads used processing a flow-ref doesn'...

python - Scrolling Progress Bar in Tkinter -

python - Scrolling Progress Bar in Tkinter - i have been trying set progress bar in python tkinter gui shows process running. process long , have no way measure progress, need utilize indeterminate progress bar. however, dislike style of ttk indeterminate progress bar bounces , forth. want 1 scrolls across bar on , on again, kind of image is possible tkinter? have tried ttk's determinate progressbar? can create progress continuously scroll across bar. for example: #!/usr/bin/env python3 import tkinter import tkinter.ttk ttk root = tkinter.tk() frame = ttk.frame() pb = ttk.progressbar(frame, length=300, mode='determinate') frame.pack() pb.pack() pb.start(25) root.mainloop() python tkinter progress-bar ttk

ios - What are must-have libraries for RubyMotion? -

ios - What are must-have libraries for RubyMotion? - i'm relatively new rubymotion development, have experience ios in objective-c. when started using rubymotion found quite lot libraries that. there helpful libraries networking, info storage , on, confuses me these layout (ui) libraries. there bunch of them , popular are: - sweettea - sugarcube (not ui) - motionkit - teacup - rmq (not ui) i'd of them useful , 1 should reject. i'm starting brand new project scratch flexible take , want start useful , commonly supported tools allow me develop layouts ios. can suggest must-have tools , libraries rubymotion? things people use: bubblewrap motion-cocoapods afmotion (if need networking ) motion-hockeyapp (or testflight) awesome_print_motion from there, depends. promotion popular, people want closer metal. gem rmq popular, people utilize (like do) or parts of it. many people utilize promotion , rmq together. a lot of people utilize sugarcube. poll...

php - MySQL insert & Update query gives error while inserting large data -

php - MySQL insert & Update query gives error while inserting large data - table structure: id int(11) bcontent longtext when run insert query through php if info going store in bcontent little (2-3 lines paragraph) query runs when size of info increases (10-11 lines paragraph) query gives error. there problem longtext info type? tried longblob no change. php code: include("conn.php"); $bcontent = $_post['bcontent']; $query = mysql_query("insert blocks (bcontent) values ('$bcontent')"); if($query) { //success message } else { //error message } when size of bcontent big php throws //error message. i increment size of post_max_size 200m in php.ini no change. error: you have error in sql syntax; check manual corresponds mysql server version right syntax use actually gives me output coded in else condition is there error query or in table structure? please help me. your content contains quote characters, ...

php - can't get permission to post on facebook read_stream -

php - can't get permission to post on facebook read_stream - i need permission post facebook status via application and can't access read_stream $loginurl = $facebook->getloginurl(array( "scope" => "read_stream,publish_stream")); header('location: '.$loginurl); do have submit review ? sorry english language the way not send review, it's if selected permissions on admin (of facebook app) users. example, if want create app post new status when create topic on forum, you'll access own "manage_pages,publish_stream" permissions, , administrator of app, review not require. but, when want access website users permissions, need send review. takes ~2 business days. php facebook