Do you feel like helping those who don't help anyone?
I have a confession to make: sometimes if the person asking a question has been on SDN for years, has hundreds of posts but 0 points, I just don't feel like replying. It could be that this person actually helped a lot of other SDNers, but they were ungrateful and didn't assign any points, but I think that most likely this person only goes to SDN to ask his/her question and hasn't bothered at all to help others. So why spend any time helping this SDN "vampire"?
Am I the only one thinking like that? Is it wrong?
Yes, I normally do a bit of a background check on folks before I answer.
You don't need moderator access to do this; only to reject the post if they have still not learnt to use the search or expect others to do their work for them...
That is why Abuse Reports are great as well, and you are one of my favourite SDN'ers who's reports can always be relied upon.
In special cases we investigate further when folks are using one account to ask questions and another to answer. This is not only limited to both being within the same thread which is the obvious (and very stupid) option...
9 times out of 10 they loose everything for sufficient reasons.
My 2 cents,
Julius
Similar Messages
-
Why can't i send text messages to those who don't have apple products?
I am unable to send text messages to those who don't have apple products. Can someone help with how to do this? I know imessages don't work to them, but I should still be able to text them. Help?
Hi there!
If you want to send text messages on your iPad, you may be talking about the recent Continuity Feature. To do this you will also need an iPhone connected to the same wi-fi network.
On your iPhone:
Go to Settings
Then to Messages
Then 'Text Message Forwarding'
Turn on the device you want to send a text message, in your case your iPad.
Your phone should ask a code that it sent to your iPad. In the box type in the code that shows up on your iPad and press Allow.
You should be good to go. -
JavaFX have ProgressMonitorDialog like jface? ProgressIndicator don't help.
javaFX have ProgressMonitorDialog like jface? ProgressIndicator don't help.
I need a loading page like ProgressMonitorDialog in jface.
Then when i do some time-consuming operation, a loading page will be loaded until the operation is over.
The problem is that when i use a Service class, i must put the time-consuming operation outside the Platform.runLater(new Runnable().
and i must put the javaFX controls set operation in the Platform.runLater(new Runnable(), it's very difficult to seperate them sometimes.
ProgressIndicator doesn't help in this case.
Thank you.
button.setOnMouseClicked(new EventHandler<MouseEvent>() {
public void handle(MouseEvent me) {
stage.show();
final Task<Integer> task = new Task<Integer>()
@Override
protected Integer call()
throws Exception
// TODO Auto-generated method stub
System.out.println("ssss");
try
Thread.sleep(5000);
catch (InterruptedException e)
// TODO Auto-generated catch block
e.printStackTrace();
Platform.runLater(new Runnable()
@Override
public void run()
// when do something time-consuming here, then stage.Show(); above can't be loaded immediately when button clicked //,why? The thread will always wait the time-consuming operation.
button2.setText("dddddddd");
stage.close();
// TODO Auto-generated method stub
return null;
Service<Integer> service = new Service<Integer>()
@Override
protected Task<Integer> createTask()
// TODO Auto-generated method stub
return task;
service.start();
}});>
I need a loading page like ProgressMonitorDialog in jface.
Then when i do some time-consuming operation, a loading page will be loaded until the operation is over.
The problem is that when i use a Service class, i must put the time-consuming operation outside the Platform.runLater(new Runnable().
and i must put the javaFX controls set operation in the Platform.runLater(new Runnable(), it's very difficult to seperate them sometimes.Use the various update(...) methods in the Task class, such as updateProgress(...). These will cause changes to the Task (and Service) properties, and these changes will be made on the FX Application thread for you.
You can also listen for changes to the state property of the service, or use the various utility methods such as setOnSucceeded(...) to execute code when the service finishes running. Again, these methods are executed on the FX Application thread, so you don't need to manage the Platform.runLater(...) yourself.
ProgressIndicator doesn't help in this case.Why not?
There are lots of examples out there. Here's another one :)
import javafx.application.Application;
import javafx.beans.binding.Bindings;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.concurrent.Service;
import javafx.concurrent.Task;
import javafx.concurrent.Worker.State;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.ProgressIndicator;
import javafx.scene.layout.BorderPane;
import javafx.stage.Modality;
import javafx.stage.Stage;
public class ProgressDialogDemo extends Application {
@Override
public void start(Stage primaryStage) {
final BorderPane root = new BorderPane();
Button button = new Button("Click me to start...");
root.setTop(button);
final Service<Void> service = new Service<Void>() {
@Override
protected Task<Void> createTask() {
return new Task<Void>() {
@Override
protected Void call() throws Exception {
final int numThingsToDo = 50;
for (int i = 0; i < numThingsToDo && !isCancelled(); i++) {
Thread.sleep(100);
updateProgress(i + 1, numThingsToDo);
return null;
// Disable button while service is running:
button.disableProperty().bind(service.runningProperty());
final Stage progressDialog = createProgressDialog(service, primaryStage);
button.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
progressDialog.show();
service.reset();
service.start();
final Label status = new Label();
status.textProperty().bind(Bindings.format("%s", service.stateProperty()));
root.setBottom(status);
Scene scene = new Scene(root, 400, 400);
primaryStage.setScene(scene);
primaryStage.show();
private Stage createProgressDialog(final Service<Void> service, Stage owner) {
final Stage stage = new Stage();
stage.initModality(Modality.WINDOW_MODAL);
stage.initOwner(owner);
final BorderPane root = new BorderPane();
final ProgressIndicator indicator = new ProgressIndicator();
// have the indicator display the progress of the service:
indicator.progressProperty().bind(service.progressProperty());
// hide the stage when the service stops running:
service.stateProperty().addListener(new ChangeListener<State>() {
@Override
public void changed(ObservableValue<? extends State> observable,
State oldValue, State newValue) {
if (newValue == State.CANCELLED || newValue == State.FAILED
|| newValue == State.SUCCEEDED) {
stage.hide();
// A cancel button:
Button cancel = new Button("Cancel");
cancel.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
service.cancel();
root.setCenter(indicator);
root.setBottom(cancel);
Scene scene = new Scene(root, 200, 200);
stage.setScene(scene);
return stage;
public static void main(String[] args) {
launch(args);
} -
How do those who don't watch boards find out about firmware updates?
Since 'Software Update' doesn't alert users to firmware updates, I wonder how those that don't monitor these boards and other 'Mac news' sites find out about firmware updates?
Yes, Boot Camp made headline news in many major newspapers and those who wanted to install it found they needed to update the firmware first.
But, had I not read about it elsewhere earlier, I would not have known about the second MBP firmware update (which, apparently, solves some of the 'whine' issues - I've had no whining but I like to keep my firmware, in particular, up to date!).
Just as a note to Apple - you've a database of all who have registered their MPB's (at least those with AppleCare if not those who simply run set-up with new Mac purchases). If firmware updates aren't included in the 'Software Updates' procedure, shooting off an email to those with machines that might be in need of firmware updates may save a world of grief to overworked phone support techs.Yes, I'm familiar with the support page but my point is that not all (in act, likely very few) are familiar enough with that page to go to "Top Downloads" to find firmware updates.
On page 25 of the MacBook Pro Users Guide, Apple DOES suggest, in the next to the last paragraph, suggest "For support information, user discussion boards, and the latest Apple software downloads, go to www.apple.com/support."
But if a new user is having problems he or she is more likely than not to pick up the phone first - and although there's the 90-day phone support and 3 year phone support for those who purchase AppleCare (which new users may not - particularly if buying from, say, CompUSA or other stores who push 'extended warranties' even with the purchase of products whose manufacturers already provide LIFETIME warranties) Apple has thoughtfully provided automated Software Updates (which Windows switchers understand all too well!) but no automated way to be lead to firmware updates. It's my feeling that if firmware notification were included in SU notifications, or via email, it might reduce the number of phone calls and result in happier computers.
While I enjoy reading all the Mac news on a daily basis, a lot of users don't and there may be an even greater number who don't know the wheat from the chaff (or even know where to find the wheat!).
Some firmware updates are critical, some of minor importance, and some (more and more of late, it seems) just a bit cryptic (for instance, 1.01 says "This firmware update is for (MacBook Pro)/iMac (early 2006) computers with Intel processors only. It now runs on localized systems that use languages that read right to left." and then lists the languages supported - which do not include Hebrew or Arabic, two "languages that read right to left".
The only reason that I brought this up is that there are a number of sites that reported that the firmware update alleviates some of the 'whine' that some MBP users are reporting (and now I am reading of 'hum' issues - forget GarageBand! An hundred MBP's could replace a symphony!). Now is that true or not? Apple doesn't say - some users report yes, some no. And as there are no whine or hum issues on the iMac, I doubt 1.01 would 'solve' any of those problems with that machine (and interesting, too, that the "iMac (early 2006) Firmware Update 1.0.1" isn't in the "Top Downloads" section as is "MacBook Pro (early 2006) Firmware Update 1.0.1": what's up with that? Are there really more MBPs out there than Intel iMacs? Or are MBP owners running Windows in Arabic more than Intel iMac owners? Or just hopeful that the update does, indeed, help with the whine problem.
I keep getting off topic (sort of)...
...my point is that it would be simple to notify, and simpler for (in my opinion), Apple to notify customers of firmware updates. -
Debugging that makes you feel like a dope
I have a PHP page with this code -
<?php ini_set('display_errors', 1); ?>
<?php
require_once("../WA_Universal_Email/Mail_for_Linux_PHP.php"); ?>
<?php
require_once("../WA_Universal_Email/MailFormatting_PHP.php"); ?>
<?php
/*echo '$_SERVER["REQUEST_METHOD"] = ' .
$_SERVER["REQUEST_METHOD"] .
"<br>";
echo '$_SERVER["HTTP_REFERER"] ';
echo (isset($_SERVER["HTTP_REFERER"]))?'TRUE' .
'<br>':'FALSE' . '<br>';
echo "1st part = " . (urldecode($_SERVER["HTTP_REFERER"])) .
'<br>';
echo '2nd part = ' .
$_SERVER["SERVER_NAME"].$_SERVER['PHP_SELF'] . '<br>';
echo 'last part --> strpos>0 = ' .
(strpos(urldecode($_SERVER["HTTP_REFERER"]),
urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) >
0)?'TRUE':'FALSE';
echo (isset($_POST))?'<br>$_POST IS
SET':"<br>$_POST IS NOT SET" . '<br>';
?>
<?php exit("here<br>"); ?>
Can you see why the exit is not working? <wringing
hands>
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================I had broken out of using the default quiz slides and had recreated as my own slides mainly so the user only had to click once and regardless of what was clicked, they received feedback and went on to the next slide.
I'm thinking about rewriting the script to include a few scenario based interactions that should meet the requirement of knowledge checking and, hopefully, not feel like a quiz.
The questions won't be scored. I'll look at your blog too, thanks! -
FIXED my missing files problem....for those who still need help.
My son got an iPod so we made a separate user on my computer. He decided it would be easier to share my entire music file instead of individually pulling all of his music files out of my music folder.
He MOVED all of my music files to the 'shared music' folder instead of COPYING the files. SO my iTunes simply couldn't find the files. I copied all the files back into 'My Music' and now my library is back.
I thought I'd post this separately as it seems this is a common problem. A lot of us seem to have more than one iPod user per computer.
I'll just wait for the sound & artwork fixes, at least I don't feel like I need to uninstall iTunes 7 at the moment.
Hope this is helpful to someone!
~Terry~
Dell Dimension 8300 Windows XP Prowhen i load the swf from outside, i want it to then be able
to return to the main navigation file which i guess would be level
0. So does that mean that the code for buttons navigating back to
the main flash file would be more like:
on(release){
mcl.addListener(mclListener);
mclListener.onLoadInit = function(mc:MovieClip){
mc._visible=true;
mc.gotoAndPlay(76);
_level1._visible=false;
mcl.loadClip("darnen.swf", 0);
As i load in all these different files from outside I've been
loading them all into level 1 because that seems to be the only way
to get them to display at all with the code I'm using. I assume it
might be better to load them all into individual levels? I'm not
sure. I'm still just kinda learning AScript as i go along.. -
Rant complete.
You can contact Adobe directly using the link below. Use the dropdown menu for boxes (1) & (2) to scroll down the list and choose:
1. Adobe Photoshop Lightroom
2. Adobe ID, and signing-in
3. Click on the blue button: Still need help? Contact us – then click the area marked chat 24/7, then click “start chat ”
It’s usually possible to start a live chat, if an Adobe agent is free, and often to get the problem fixed right away. Have your serial number available. The agent can directly troubleshoot your system if you agree to activate the Adobe Connect add-on.
Click here to get help now Contact Customer Care -
Apple is paying individuals $500 weekly for carrying "Apple" logo on your car, truck, boat or bike. This is an "Auto Wrap Advertising program" Get back to me with your email if you wish to know more about this program.
<Edited by Host>Hi machiavelli,
Do not click on any links in that email.
Send the email to
[email protected]
and then delete it.
More information here:
https://www.apple.com/legal/more-resources/phishing/
Regards,
Ian. -
For those who don't want to use devfs (me)
I love Arch Linux. It's my third distro, I've been using it for two days now, and it absolutely owns me. Definitely a keeper.
The one thing I didn't like is devfs (it's not that it's a bad technology, but more that it's on its way out), so I decided to go with a classic /dev layout while I wait for udev to be finished.
Here's the steps I took:
1) Grab MAKEDEV. This is a nice automated utility to create all the standard character and block nodes you'd find in /dev.
2) Mount your root partition at a second mount point (I used /mnt/hd). This is important, as devfs is still running. You want to make these changes in /mnt/hd/dev.
3) Change directories to /mnt/hd/dev and run MAKEDEV.
4) In your grub or lilo configuration, make sure to change the path to the root device to a standard /dev path (in my case, /dev/hda3)
5) In inittab, where it runs agetty, make sure to change all the tty nodes from vc/x to ttyx (starting at tty1).
6) Do the same in /etc/securetty so you can log in as root!
7) If you are running gpm, make sure to change the path to your mouse device in /etc/conf.d/gpm to a new one (if it's using a devfs path like mine was). Do the same for any other daemons where such a change might be relevant.
8) Rebuild your kernel without devfs, reboot, and pray. (It took me a few panics to get this procedure down )
If I'm missing anything, let me know.
Arch linux owns meHmmm, I, too, tried the LFS MAKEDEV. but AFAIR there were some issues with a slightly different group/user setup. The MAKEDEV tried to change ownerships to non-existent users/groups. Did you run in such problems ?
P.S.:
For the hammer port, I do need this, since devfs is broken in the amd64 kernel. You can't even select it in the various "make *config". There seems to be some memory corruption going on on amd64 uisng devfs.
P.P.S.: I have an almost working base system in (almost) complete 64bit mode. -
IPod Shuffle 2nd Gen not recognized. I feel like I've tried everything. Help.
iPod Shuffle 2G is not recognized by my 2013 MacBook Air. It is not viewable anywhere. I am getting the blinking orange light.
iTunes is up to date & has been reinstalled.
I have restored the iPod according to the instructions I have seen in similar threads.
Tried plugging into a USB hub with its own power source.
Shuffle will charge in USB wall plug & play music.
I am using the original USB dock that it came with it.
Thanks for any suggestions.If you do
Apple Menu -> About This Mac -> More Info -> System Report
to run System Information (or System Profiler), does the "iPod" appear as a connected device under
Hardware -> USB
Try doing the above with the shuffle connected directly AND using the power USB hub you mentioned.
Have you tried connecting something else to that USB port, to confirm it is working properly? Preferably, it should be something similar, like a USB flash drive or port-powered external drive (data storage devices that get power from the USB port).
Two other related tests... Create a new user account in System Preferences Users & Groups pane. The new user account can be Standard or Admin. Log out and log in to the new user account (do not use Fast User Switching). In the new user account, run iTunes and connect the shuffle.
And the other test. Start up in Safe Mode
http://support.apple.com/kb/ht1564
Connect the shuffle while started up in safe mode, to see if it appears anywhere. These two test are to see if you have a process running when you start up normally, that interferes with the iPod being recognized. -
Feel like I am trapped here, please help!
Hi, I posted recently about an aperture problem. As it went I restored from a back up, but I knew there is something inherently at risk, its been a problem doing simple things.
Attempts to repair the database, or permissions or what ever have failed.
However the library would still open so I have been exporting the images, either as masters or as versions. I got them all out to individual folders so felt better. The plan now to transfer them to an external USB drive and just do a complete OSC reinstal because to be frank its bolloxed.
However when trying to copy out, its failing time after time with various fails telling me random images could not be read or written with error code -36
This is from the back ups and as far as I can tell I am in the process of loosing all my precious family photos and for the life of me I cannot work out why.
I can revert to any number of back ups, but I just cannot seem to get the photos out safely.
Any advice given will be greatly appriciated.
I have to say after this last issue, me and aperture are finished. I will say catagorically it and RAW files from an fuji S3pro simply are not compatible.Gary i,
I remember seeing your post about your library issue recently.
Not sure, but you may have been experiencing an issue some were posting about on the ApertureExpert site.
The solution was to fix permissions on the Home directory if your library was stored there. Your post indicated a USB drive formatted correctly, but I wasn't clear on whether your library was in the Home directory on the internal drive or on the external. If the latter, then this fix may not work - but here is the link (see the bottom of the post):
http://www.apertureexpert.com/tips/2012/10/19/pretty-well-confirmed-fix-for-repe ated-inconsistencies-pleas.html -
OS X Server. Please help me. I feel like crying.
Hello.
I am so tired of this. My Mac mini server is acting up again. There were over 80 user accounts that seemed like they should be hidden that appeared in the Server app. I deleted them. Then over 110 groups appeared in the server app appeared. I deleted three of those. Open Directory isn't working. Authentication is acting up. It won't let me connect remotely to the server from other Macs using my main user account on the server. I looked on my user accoount on the server, and whenever I try to give myself permission to administer the server, the Server App just freezes. Please help me. I am so tired of this.
ANY HELP, ANY AT ALL WOULD BE GREATLY APPRECIATED!!!
Thanks.
Sincerely,
AustinHi
Without any more details regarding which accounts you deleted (I don't want to appear harsh as you are asking for help) it's possible you may have shot yourself in the foot?
There are a large number of (UNIX) accounts you should not be deleting that are essential to the proper working order, not only of the server but, more fundamentally, of the OS itself. Ordinarily you won't see these accounts although a situation may sometimes arise where you (or some other mechanism) may have inadvertently and/or unknown to you, selected an option that shows you those hidden accounts in the Server.app GUI.
Apart from the Server.app you'd normally use Terminal or Directory Editor (available in the Directory Utility app stored in /System/Library/CoreServices) to see hidden accounts. I usually use the command line utility 'dscl' to view users (hidden or visible) in OS X. Below is the output of pretty much any OS X (server or otherwise) going back to at least 10.2:
dscl . -list /Users
_amavisd
_appleevents
_appowner
_appserver
_ard
_assetcache
_atsserver
_avbdeviced
_calendar
_ces
_clamav
_coreaudiod
_coremediaiod
_cvmsroot
_cvs
_cyrus
_devdocs
_devicemgr
_dovecot
_dovenull
_dpaudio
_eppc
_ftp
_geod
_installassistant
_installer
_jabber
_kadmin_admin
_kadmin_changepw
_krb_anonymous
_krb_changepw
_krb_kadmin
_krb_kerberos
_krb_krbtgt
_krbtgt
_launchservicesd
_lda
_locationd
_lp
_mailman
_mcxalr
_mdnsresponder
_mysql
_netbios
_netstatistics
_networkd
_postfix
_postgres
_qtss
_sandbox
_screensaver
_scsd
_securityagent
_serialnumberd
_softwareupdate
_spotlight
_sshd
_svn
_taskgated
_teamsserver
_timezone
_tokend
_trustevaluationagent
_unknown
_update_sharing
_usbmuxd
_uucp
_warmd
_webauthserver
_windowserver
_www
_xcsbuildagent
_xcscredserver
daemon
Guest
localadmin
nobody
root
user1
user2
user3
etcetc
There's a similar amount of hidden groups as well:
dscl . -list /Groups
_amavisd
_appleevents
_appowner
_appserveradm
_appserverusr
_appstore
_ard
_assetcache
_atsserver
_calendar
_ces
_clamav
_coreaudiod
_coremediaiod
_cvms
_cvs
_detachedsig
_devdocs
_developer
_devicemgr
_dovenull
_geod
_guest
_installassistant
_installer
_jabber
_keytabusers
_launchservicesd
_lda
_locationd
_lp
_lpadmin
_lpoperator
_mailman
_mcxalr
_mdnsresponder
_mysql
_netbios
_netstatistics
_networkd
_odchpass
_postdrop
_postfix
_postgres
_qtss
_sandbox
_screensaver
_scsd
_securityagent
_serialnumberd
_softwareupdate
_spotlight
_sshd
_svn
_taskgated
_teamsserver
_timezone
_tokend
_trustevaluationagent
_unknown
_update_sharing
_usbmuxd
_uucp
_warmd
_webauthserver
_windowserver
_www
_xcsbuildagent
_xcscredserver
accessibility
admin
authedusers
bin
certusers
com.apple.access_screensharing
com.apple.access_ssh
consoleusers
daemon
dialer
everyone
group
interactusers
kmem
localaccounts
mail
netaccounts
netusers
network
nobody
nogroup
operator
owner
procmod
procview
staff
sys
tty
utmp
wheel
If you've deleted all of the the users and/or groups beginning with underscore then you've truly shot yourself in the foot and unless you really know what you're doing it may be quicker if you simply reinstalled the OS? Possibly even format and install? If you've deleted some of these user/groups then it's likely you will start seeing random and intractable behaviour with either the OS, Server.app or both. In either case it's not surprising you feel like crying.
There are a number of 'golden' rules you should be aware of that are crucial to the proper working order of OS X Server. In no particular order these are:
1. before doing anything else configure DNS services properly
2. try and understand the UNIX underpinnings of OS X
3. avoid using .local (mDNS) as the basis for your internal/private domain
4. unless you really know what you're doing try not to fiddle
5. DNS
6. backup as often as possible
7. DNS
8. have as many backups as you can afford
You'll notice DNS is mentioned a number of times because it really is very important. The above is not definitive in any way.
HTH?
Tony -
Is it only those who upgrade who have problems?
Just for interest - what about the people who are buying brand new Macs with Leopard already installed - are they also having problems - or is it just us lot who have older machines with Tiger or Panther?
My G5 upgraded perfectly. See my minute-by-minute post somewhere herein.
The machine is now dual-boot - Tiger and Leopard - one on each internal drive, and an old Maxtor 160Gb FW drive is what TM is using. So far my box has not complained about anything important.
Even my VPC running XP runs as well as my 2004 StudioMX.
I still have my two MPBs to go, but am waiting for another LaCie HD before going any further - rushing never solves anything. I once was told never to rush or take shortcuts - - unless you have plenty of time
I would also point out that these boards are not a fair sampling of users. These are Support boards, so basically only those needing support will post here. These boards would be overloaded with posts if all the successful Leopard upgraders each posted here only once
This is the doctor's office - think triage - those who have successfuly installed Leopard are out partying, which is a good thing; here we enjoy helping those who need assistance. It's a way of sharing our good experiences.
Message was edited by: nerowolfe -
Macbook Pro feel like vibrating when charging
When I charge my battery and continue to work on my Macbook Pro, the part of the Macbook where you rest the heals of your hands when typing vibrates, it is very fine and feels like the casing is electrostatically charged. Anyone else get this/can explain this? Is this bad for my MBP late 2011?
Many have reported the same. But none said it was a problem.
If MBP has 7200 RPM HD, it may produce vibration.
http://support.apple.com/kb/TS2666
You can always take the computer to the Apple Store for evaluation.
Best. -
I need help with this... Anyone?
Read the following code and:
a) Explain what the code is supposed to do.
b) Identify any errors in the code.
c) If there are errors, please fix them.
public String mystery(String num) {
if (num == null) {
return "N/A";
int len = num.length();
int c = 0;
char[] sb = new char[len];
for (int i = 0; i < len; i++) {
sb[c++] = num.charAt(i);
if ((len - 1 - i) % 3 == 0 && i != len - 1) {
sb[c++] = ',';
return new String(sb);
Assume you are given two fixed lists of numbers (arbitrary size, but you can assume the lists are large):
a) Write a method that can efficiently find out if there is any element in the 2nd list that is an element of the first list.
b) Describe some of the tradeoffs you can make with regards to memory and complexity.Dear Brett,
You need to be aware that this site is dedicated to helping those who help themselves. That means helping you debug problems in code that you have written or heling you get a better understanding of something Java related once you tell us what your current understanding is.
This site is NOT a do-your-homework for you service.
So to answer your questions...
brett3120 wrote:
a) Explain what the code is supposed to do.What do you think that code is supposed to do?
brett3120 wrote:
b) Identify any errors in the code.What errors have you identified in that code?
brett3120 wrote:
c) If there are errors, please fix them.What fixes do you think you should make?
brett3120 wrote:
a) Write a method that can efficiently find out if there is any element in the 2nd list that is an element of the first list.Please post your formatted code showing what you have done to answer this question and please ask a specific question relating to where you are stuck. For example for a compile error identify the problem code, for a runtime error a stacktrace or error message.
brett3120 wrote:
b) Describe some of the tradeoffs you can make with regards to memory and complexity.What tradeoffs do you think you can make from the code you wrote in answer to the last question with regards to memory and complexity?
Maybe you are looking for
-
Hi, I have a macbook pro 10.6.8 and an iphone 4s. I have already created an icloud account. I want my normal mails to be saved on icloud. how should i go about?
-
Kernal panic: help me solve the mystery.
Hey-oh. I've got a kernal panic on my hands. It's happened about half a dozen times this afternoon and I don't know what is triggering it. Just wanted to start this thread to see if anyone could help spot what is up. The screen gets dark and the rest
-
New status for changed records or Additive Delta
Hi Guys, I have a design question for ODS and Extractor. The requirement is as follows... There is a table in CRM with service point as primary key. The fields in the table for example are bill account and Meter ID. Key figure is a XYZ value. In CRM
-
Wrt54gs & network 233.x.x.x
I have wrt54gs v7, firmware 7.50.5 First question: I need add, to the static route, network 233.15.17.1. But if i enter number 233 to the "Destination LAN IP" filed, have message "IP value out of rage 0...223" How add to the static route network more
-
Can anyone please give me the logic for this....
I have a database table and in it i have a field department code. now, that department code might have '00' or ' ' (blank) or anyother value. now i want to add up all the currency amounts with department code '00' and ' ' (blank) which have same