Resolved it by putting correct change in .hbm file, no change is needed in .java files.
Resolved it by putting correct change in .hbm file, no change is needed in .java files.
Actually retrievel is alright in ASC order of primary key, this is done.
But when user enteries don't get inserted in (primary key) sequence, even when using LinkedHashSet is the actual question.
Hibernate is overriding LinkedHashSet behavior.
Yeah, for the display it is a Set, during retrievel TreeSet (using Comparator) is putting the sort order (ASC) based on primary key but this to work correctly on primary key, insert order in table should be correct.
Thanks JamesCherrill, trying it with "List".
If I try any example with LinkedHashSet, objects are in order but when in the project, when using Hibernate mapping file, watch/debug of that variable clearly shows it is not keepingthe objects in the order.
During watch/debug, it shows linksSet=PersitentSet.
May be I conclude, Hibernate mapping is forcing the disorder, if yes, how to force the order during insert into table, is the question.
Thanks for all the help here.
Yeah, but actually what we need insert should be "in the order" and "without duplicates".
"#1" Set<Object> linksSet = new LinkedHashSet<Object>();
"#2" LinkedHashSet<Object> linksSet = new LinkedHashSet<Object>();
Means #1 is not correct but #1 is standard declaration, then how to achieve insertion order without using #2, I am trying to know this.
Hi, Thanks for reply. So it means, if I use line #1 and add values, it won't be in correct order right?
You're recommending to use #1, and not #2 (LinkedHashSet<Object> linksSet = new LinkedHashSet<Object>();) Is this the reason, order is getting disturbed?
[quote]However the general principle applies that you should declare your variables in the least implementation-dependant way you can, to allow for future cdhanges.[/quote] So how would maintain insertion order in the Set? I prefer not to user List, to avoid changing lot of code.
What is the difference in:
Set<Object> linksSet = new LinkedHashSet<Object>();
LinkedHashSet<Object> linksSet = new LinkedHashSet<Object>();
Actually, I want to create a Set, that would hold the objects in the same order, I insert into it.
Many thanks for the help, in advance.
I've attached .DOC and images files for e-mail using code provided here: http://in2.php.net/manual/en/ref.mail.php
Use in-built function session_is_registered()
Editing *.tpl files means affecting design and layout.
PHP files are also to be edited.
However, code I've said is better (efficiency!) of two :)
You could really do all of these, but you need time to do it. First do it on your local machine, after all customization is done with, import posts from phpBB2 and make it available to people. Many skins/mods of vBulletin are free but not all like phpBB2.
What exactly is xml?
XML is difficult. It is a trend. It is used very much these days in B2B (Business to Business) data sharing. XSL and XSLT (style sheets methods to display a XML file) is actually diffiuclt and essential part of XML.
XML is exact, HTML is not. XML is a technology using that, you could separate presentation and data/text; this is not really possible with HTML. Note that XML is displayed as X/HTML since XML is not a human-friendly reading.
XML is not a presentation language; it won't replace X/HTML. To really comprehend it, use it in few test examples .. it is easy (only XSL/XSLT is difficult for beginners)
Notepad++ and Homesite+ both I use always.
Who here would prefer Java over PHP, or PHP over JAVA?
If you prefer one over the other, for whatever reason or application, why?
Specific code comparisons are appreciated
If looking for a nicely paid job and a not lasting developer challenging journey: Java
For corporate-level high scale, huge coding projects: Java
For programming beginners, looking for weekend freelance, just warm-up hobby programming, for personal Web sites: PHP
Go to command prompt and ping google.com or ping yahoo.com. If it is failing, your internet connection is not valid (you may be connected, but data is not come in, come out; so reset/reconnect your connection)
thumbnails
I'm sure GD has functions for image transformations like scaling and rotation. As such, I'ven't carried such work. I've also heard people use something called imagerick also, for the same purpose.
You mean to crop your images?
Here is one simple example to calculate age from birthday.
You can work on that basic PHP functions.
one teacher is best enough
I agree. In fact, live job experience, senior team members can take you high ..extremely high. However, I'd also same unfortunate who tried lonely ..!
one teacher is best enough
I'd be glad to help you further, in any way possible, if I can. However, I hope you're young college gard and you may try help yourself ;)
Hi,
My suggestion is to leave Windows XP. It is not quite a OS for developers. It is clearly metioned in Apache, PHP, MySQL docs to install and use these. If not all, most Web tutorials, you see on Web, are good or bad derivations from their Web sites. Hence, I suggest, you go to Apache, MySQL, PHP Web sites and refer there. Reading these bulky manuals are a bit difficult but still a fun. (You can download these easily, as a Windows CHM format also.)
I also suggest, use Apache lieu IIS. If you could move to Linux, it is better, else use Windows 2000 or Windows 2003. Please revert, once your installation is working.
References:
http://httpd.apache.org/
http://www.mysql.com/
http://www.php.net/
http://www.phpmyadmin.net/
http://www.osoft.com/
For a list of quick easy tutorials, why you not search Google?
Start with installation: PHP, MySQL, Apache/IIS and OS like Windows 2000, 2003 or Linux (Fedora Core). Internet (dial-up) also is obviously required. A coding tool like Homesite+ or Notepad++ is also a need. After installation, read PHP artcles, tutorials, PDF books. Read/download official AMP documentation. Try examples. Small ones. It's a process. It's a journey. However, PHP is much more easy than other languages. Except that, beginners find difficulty in configuring their local server.
If you're lonely, it'll take much more time thn if you've seniors and guides with you.
very simple calander function for what? Why it read db and *.txt files.
Please note that PHP has very very excellent date time functions. You may easily write a calendar using these in a couple of days ..
Observe every possibility of error ..
Apache NOT warns; while restarting that it can't load GD dll ..!
Is it mean, your PHP is working by IIS?
phpinfo page shows Apache or IIS?
phpi.ini is I hope in Windows OS directory. Some dll perhaps php4ts.dll (I'm not remembering exactly) is required to be copied in Apache2 bin directory. I hope you'll soon catch the error ..
What can I say? All the time, it works easily for me. They say PHP version atleast 4.3; and you're using php4.3.10
Last small thing, I may suggest, please check if you're able to alter other settings in php.ini (check it vs phpinfo()).
The clue should be in php.ini. It is scarce possibility, if that dll is corrupted. My inspiration to encounter errors is always simple: Machine never errors! Hence, humans should correct their errors. Because we're only ones to error.
I use Apache, and it warns (while re/starting), if it misses any dll or module to load. IIS shows no warning.
Hope, you get with GD :cool:
Check extension_dir and GD dll in it. Server restart is required. You should see GD module listed by echo phpinfo();
If you're talking about phpBB2 forums, you can download phpBB2 mods, hacks, skins, avatars for free from their Web site. They supply it all as archives and with installaion instructions. They've support forums also.
$abc_ = array(0, 0, 0, 1, 0, 2);
while( list($key, $value) = each($abc_) )
if( !($value=='0') )
$abc[] = $value;
There may be more efficient (execution time?) code than above.
You can use MAIL (and its derivatives) PHP PEAR packages to easily send e-mails with attachment.
For automation, Linux cron jobs, will serve as good as desired.
It takes little while for a beginner to experiment with Object-based PHP, PEAR and crons; still it is easy as is PHP.
Thanks for all the replies.
Yes, I downloaded that a fortnight before! What can I do with that .exe file. During college days, I used Turbo C++ :surprised
You don't download Java or Perl either, they're just languages.
I read this complicated theory before. I downloaded Perl from their Web site and Java from Sun and Apache. I written and ran few examples also. Please explain.
There's no vendor of C++ itself.
There's clear understanding of HTML, JavaScript, JScript, RSS, Atom, JDK, Tomcat, Perl vendors to me .. But, I'm really confused about C++. Who is Borland? Who is Turbo C++? What is C++ compilers? If I write a C++ program, will it run with all the C++ GUI/IDE editors?
The latest "version" of C++ is document called ISO/IEC 14882:2003, not freely available.
Why not free to read? Like HTML, XML, Atom are all free .. :?:
C++ can be used for CGI.
I thought Perl is CGI? I can run a Perl script and rename it with .pl or .cgi extension; it doesn't matter! Do, I rename my C++ program as .cgi? How can it run online .. :!:
Please help me: I'm very much confused .. (I knew now .. I remained confused all the time, in the college also ..)
Where can I download C++?
Hi all,
I've programmed C & C++ during my college days. I understood its OO model and coded many examples (this helped me in OO PHP now). I used something called Turbo C++, a set of some confusing files, which can be carried in a floppy or two.
I now have to ask: What is C++?
I know Java is by Sun and it is freely available downloadable as JDK, JRE and Tomat. These things can be used to deploy servets (complied code), etc. for a Web application. A real-world Web site often uses Redhat Linux, Apache, Tomcat, PHP, and MySQL, to deploy a Web application.
I heard Perl, which can be used for writing fast server-side code for Web application.
I know PHP, that can be used easily for dynamic Web sites.
I heard Redhat linux, which is non-free and used to deploy robust Web servers.
What is C++? Who is its vendor? Is it free? From, where they maintain latest version of it available for the public download? Is it can be use quickly for a real-world example? C++ to CGI? C++ to Web?
Though, I programmed C++, I'm not even able to get these answers :confused:
If someone, ask me that (while interviewing), I can't be able to satisfy h'm with my answers :rolleyes:
What you people have to say about this :?: