Posts

Showing posts from September, 2012

resize - WPF Viewbox only shrink if I shrink the window horizontally -

I have a grid in a view box If I reduce the width of the window then the grid gets reduced. But if I reduce the height, then nothing happens. Looks like there is a problem like the original container! I've decided that the original container will be converted to a grid (for example, item control from the default stackpellel. ItemsPanelTemplate). See full xaml!

java - Regexp to compact default method implementations in Eclipse -

I use Eclipse Galileo to develop Java code while implementing an interface for joke, I want to specify the behavior of the methods and mostly want to keep the default behavior (nothing or empty zero / 0). Eclipse will produce a well-formatted default implementation such as: HTTPSvRTuQVTMOC = new HTTPServativeTystem () {public string getQueryString () {return "FOBOOR"; } Public Zero SetActivate (String RGR, Object AGR1) {// TODO Auto-Generated Method Stub} Public Inc getServerPort () {// TODO Auto generated method stub returns 0; } Public string getServerName () {// TODO auto generated method stub returns empty; } ... for the puribilili and cleanliness, I'm looking for a regxp (search / substitute search of eclipse) to release it, This will produce the following code while running the following code: HttpServletRequest mock = new HttpServletRequest () {public string getQueryString () {return "foobar"; } Public Zero Set Attribute (String RGR, Object AG 1

How can I center align the content of a header template for a Silverlight 3 datagrid? -

I want a checkbox in the header of my datagrid, however, I can not see the center in the alignment of the checkbox. This is my xaml: & lt; Data: DataGrid x: name = "myDataGrid" vertical alignment = "top" width = "300" grid. Column = "0" AutoGenerateColumns = "false" & gt; & Lt; Data: DataGrid.Columns & gt; & Lt; Data: DataGridCheckBoxColumn binding = "{Binding IsNew}" width = "80" & gt; & Lt; Data: DataGridCheckBoxColumn.HeaderStyle & gt; & Lt; Style TargetType = "Dotetramm: Datagrams Column Headers" & gt; & Lt; Setter Property = "Content Template" & gt; & Lt; Setter.Value & gt; & Lt; DataTemplate & gt; & Lt; Border background = "red" width = "80" horizontal align = "center" & gt; & Lt; Checkbox x: name = "chkAll" horizontal alignment = "center" horizontal alignmen

php - Navigating objects and arrays -

Can you please show an example in php how to capture specific information in some sort of loop, I want [language] and [answer] => [Question] = & gt; Every time it's there. Array ([0] = & gt; stdClass object ([type] = & gt; text [cue] = & gt; stdClass object ([type] => text [text] = & gt; AE ([0] = & gt; STDClass object ([type] = & gt; mean [text] [preferences] = & gt; [language] = & gt; EO [part_of_speech] = & gt; Pripishn) [responses] = & gt; = About [language] = & gt; n [quiz] = & gt; array ([0] => stud class object ([type] => multiple_choose [answer] => pre [Question] => about, related))) [Author] = & gt; StdClass object ([profile] => stdClass object K ([name] = & gt; Tomo [Profail_urli] = & gt; http://smart.fm/users/yubizume [icon_url] = & gt; http://assets2.smart FM / assets / users / Yyubijhyum / Ebbf7_midim.gegg) [username] => yibizum) [language] => eo [dc_creator] => Yu

asp.net - How to access an enum in master page -

Can we use an enum that is defined in the master page? I read about the master page on my blog. If you have an actual enum , defining it elsewhere is a better option , But the same functioning given below also works to get it. If you want to use the property that enum then enter your page's master property on the type of your master page like this: / P> Secure Zero Override OnLoad (EventAGRS E) {(MyMasterPagesType Master). MyEnumProperty = MyEnum.Value; } Edit: Almost forgotten, you may also have a master property on your page, These types of behaviors are performing as your ASPX markup. & lt;% @ MasterType VirtualPath = "~ / masters / SourcePage.master" "%>

How to change font size in a textbox in html -

How do I change the font size of text inside html text box element for input & lt; Input type = 'text' & gt; {Font-size: 18px; } or & lt; Textarea & gt; : textarea {font-size: 18px; } or & lt; Select & gt; : select {font-size: 18px; } You get drift

cross browser - jQuery awkward behaviour -

I am trying to load the whole page on the whole page, and finds it in a loaded one like mine Used to be. Some of a practical practice. The result of the AJAX call is a string in which the page is html. To make it simple, I gave an example string containing something of a page. & lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; Some tests & lt; / Title & gt; & Lt; Style type = "text / css" & gt; .dv810 {height: 810px; } & Lt; / Style & gt; & Lt; Script src = "scripts / references / jquery.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; Spage = + '& lt ;! DOCTYPE html public "- // W3C // DTD XHTML 1.0 Transitional // N" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> '+' \ N & lt; Html xmlns = "http://www.w3.org/1999/xhtml" & gt; + '\ N & lt; Principal & gt; + '\ N

logging - Loggers in GWT Client Side -

Is there a way to report log messages in client-side GWT applications for development purposes (ie standard GWT libraries External libraries)? That is to say, catalina.out can be used in output log messages when developing things for tolat. Look at the GVT-log project It seems that you are searching.

Jquery ui, joomla and safari problem -

I have a jquery ui slider that scrolls the contents of a div when it is moved, this code is : var parahite = $ ("#dePara"). Height (); Var maxScroll = Parahite-250; Var activeSolol; If (maxScroll and lt; = 0) {// nothing} Second {$ ("# slider2"). {{Orientation: "vertical", minimum: 0, animate: true, maximum: maximumcroll, value: maximum scroll, slide: function (event, UI) {$ ("#despara"). Stop (.) Chetan ({' Below ': (-E.V.V. + Maxcoll) +' PX '}, 1000);}}); } It works fine in Firefox but not in Safari / Chrome What happens in safari and chrome, when the slider clicks on the rail and when the page load is not loaded, the slider is operated, it can not be dragged, yet clicking on the slider rail This problem is obvious only when CMS is used in Joomla, outside of this CMS, it works perfectly in all browsers. strange. Does anyone have any such problem? It would be really helpful, thanks. Joomla often help you alon

iPhone force rotation -

I'm reading a ton of rotation, but I'm not looking for solutions to my query. Here goes: There is a portrait app in my tab near a tabbar and hidden navigation controller in the app, in a point in the app, there should be a scenario in the next scene. XIB is done in layout scenario, so I want to bring xib without any translation or pixel moving code. (I do not have to think this) I have just tried to portray scenes, have moved the scene using different methods (non-line object looks properly). Is there a way to say it I'm positive that you have a 'force' can not do. Determines the device when to change the device's orientation; Therefore the 'orientation' attribute is basically just to read. I was seeing this problem a long time ago when I wanted to ensure that a particular view is always displayed in an orientation. Because of this, most applications allow all of their ideas and controllers can see in any work that supports the App of Ori

php - stripping out all characters from a string, leaving numbers -

Hey, I have such a string: v8gn5.8gnr4nggb58gng.g95h58g N48fn49t .t8t8t57 I just want to leave all the numbers (and .s) How to do any idea? Is there a function prebilt? Thanks $ str = preg_replace ('/ [^ 0-9. ] + / ',' ', $ Str); Replace the substrings that are not with the digits or not. nothing.

apache - Sites that do server aliasing for other websites to use an external platform -

First of all, this question is not very descriptive - it is very difficult to summarize what I mean in the title. Ol> Any of these is hosting the Isoowise platform independently. So my question is, how do you think that they are aliasing the user? Do you think that there are too many server aliases in the exception user configuration or just the userwave? I'm very curious. I hope this question will have meaning. Be a good day. It depends on whether they are using a web server to do virtual hosting, which That is, you have to use HTTP 1.1, which sends the name of the server which is requesting in the browser host: Header. Therefore, if the user requests, the request looks like this: received / path / something / HTTP / 1.1 host: www.foo.com Web The server can then see "host" how to handle the request.

html - Is XHTML 1.1 better than other doctypes? -

This is said on this page XHTML 1.1 for easy creation of different displays Allows formats, such as page format for printing, wireless device and PDA, and television based browsers, by writing a new CSS (cascading style sheet) for new documents. > Update: And it has been said on XHTML 1.1 (modular XHTML) Small devices can not support all XHTML functions, so XHTML 1.1 divides the specification into modules with limited functionality. Small browsers can reduce their complexity by supporting only the selected module Let me know what the author is saying in this statement, and this XHTML 1.0 Strike Or HTML 4.01 can not be done by tough? The author of that quote is right now. This is CSS, which allows things like HTML or XHTML. STYLE and LINK were introduced with HTML 4 and CSS 2.

django - how to check in a clean method of a form whether it is an insert or an update -

I have a form where I clearly agree that a project ambership object already exists, whose project There is equal value for the member. This is the reason that I have defined the unique_tagent barrier for the project and member in the Project Membership model. It actually works fine. ProjectMembershipForm (forms.ModelForm): Project = forms.ModelChoiceField (Project.objects, Widget = HiddenInput ()) Category Meta: Model = ProjectMembership def Clean ( Self): cleaned_data = self. Cleaned_data project = cleaned_data.get ("project") member = cleaned_data.get ("member") print project membershiphip.objects.filter (project = project, member = member) .count () if ProjectMembership.objects.filter (project = project , Members = members). Calculate ()> 0: del cleared_data ["project"] del cleared_data ["member"] increase the forms. Validation Error (User '% s' is already part of the project team for project "% s".'% (Member, Pr

xml - Simple XSL transform -

OK, Friday afternoon and I need to complete it: The following should be XML Converted: & lt ;? XML version = "1.0" encoding = "UTF-8"? & Gt; & Lt; ProfiledSettings & gt; & Lt; Property Set file = "properties.txt" & gt; & Lt; Property Name = "Scheduler Time" & gt; 19h30 & lt; / Property & gt; & Lt; / PropertySet> & Lt; Property Set file = "Properties 2.txt" & gt; & Lt; Property Name = "inclusions.filters" /> & Lt; Property Name = "Inclusion" /> & Lt; / PropertySet> & Lt; / ProfiledSettings & gt; To do this: & lt ;? XML version = "1.0" encoding = "UTF-8"? & Gt; & Lt; ProfiledSettings & gt; & Lt; Property Set file = "properties.txt" & gt; & Lt; Property Name = "Scheduler Time" & gt; 19 & lt; / Property & gt; & Lt; / PropertySet> & Lt

c - What happens if I cast a function pointer, changing the number of parameters -

I just started to wrap my head around the function pointers in C. To understand how the function of pointers works, I wrote the following program: It basically creates a function pointer in a function that takes a parameter, put it on the function pointer with three parameters and the function call Supports three parameters. I was curious what would happen: #include & lt; Stdio.h & gt; Int Square (Return) * Return Val * } Zero print (zero * PTR) {int (* FTPP) (int, int, int) = (int (*) (int, int, int)) (ptr); Printf ("Call Function. \ N" with 2,4,8 parameters); Printf ("Result:% d \ n", fptr (2,4,8)); } Int main (zero) {print (square); Return 0; } It compile and runs without errors or warnings (GCC - Wall on Linux / x86) The output on my system is: call function with parameter 2,4,8 result: 4 Then apparently abandoned unnecessary arguments goes. Now I want to know what exactly is happening here. As validity: If I understand the answer co

db2 - How to call a stored procedure in IBM System i Access for Windows GUI Tool -

I would like to test a DB2 stored procedure running on an AS400 system. I can run the System I Access and SBQ commands for IBM Windows against the DB2 database. My question is: What is syntax for executing a stored procedure that takes you into a parameter and returns results as an output parameter and print the value on the screen? Just to clarify: I'm not asking how to call a call in the code. I want to execute proc and see the result in GUI tool (which is similar to SQL Enterprise Manager). Use keyword call and pass in the parameter. call myStoredProc (parm1, parm2,?); Interesting part Figure 5. Using the Command Editor to call a SQL Process < / Html>

c++ - moving code from unix to windows xp -

I have code written c ++ of its console app that takes an input and display output. Now I can send someone to someone without giving my code to me and it should work on other Unix systems. But what if they have a Windows environment? I would like to learn how to dell them so that they can run it. Also, if they were going to use it as part of another program, then I think that I would need to create an API or a function. But I'm not sure how it works with DLS like I have never done before. For Windows, either on the Windows machine or using the Crosstomler, to recompile your app Is required. It requires that all the routines you use also need to be available under Windows Either you use your application for portable libraries (read: no unix / posix system calls) Written by scratch, or you will have problems porting your code to run under Windows. Saigwin may possibly help to check it. If you call it a pure console app, then I think that you can see the std :: cout a

php - Does unsetting an array of objects unset just the array or also all the objects? -

I have an array of objects if I call the unset ($ array), then in that array and in organ. Will all the objects be unset or just array? Let's assume that these objects have not been referenced anywhere. If that object contains only the reference of the object, then yes. Otherwise notwithstanding, keep in mind with some PHP documentation: unset () what does its name say - do not set a variable - do not force it to free instant memory PHP's garbage collector will do this when it looks - soon intent, because those CPU cycles are not needed anyway, or the script is delayed before being out of memory, whatever happens before is.

Spring Hibernate Integration -

मैं स्प्रिंग हाइबरनेट के लिए नया हूँ मैं http://www.vaannila.com/spring/spring-hibernate-integration-1.html से वसंत हाइबरनेट एकीकरण ट्यूटोरियल की कोशिश कर रहा था और मैं उदाहरण को चलाने में सक्षम था.इस उदाहरण के साथ एक टेबल। अब मैं एक और मेज के साथ कोशिश कर रहा हूँ मेरे पास कुछ सवाल हैं मेरी समझ के अनुसार हमें निम्नलिखित चीजों को जोड़ने की आवश्यकता है डीएओइंफ़र्फ़ डीएओइंपल तालिका POJO < / Li> ऐसा क्या यह अधिक तालिकाओं को जोड़ने का एकमात्र तरीका है? क्या हमें नये तालिका के लिए एक और नियंत्रक जोड़ने की आवश्यकता है यदि यह नया रूप है। हम इस नई तालिका प्रविष्टि को प्रेषक-सर्वलेट.xml में कैसे जोड़ देंगे धन्यवाद अग्रिम में। मैं एक किक स्टार्टर अनुप्रयोग के रूप में उपयोग करके स्प्रिंग हेइबरेट इंटिग्रेशन की सिफारिश करना चाहता हूं - जिसे किसी भी JPA2 कार्यान्वयन (सीतनिद्रा में होना, ग्रहण का उपयोग करने के लिए अनुकूलित किया जा सकता है)। लिंक आदि) आप जिन बातों पर गौर करेंगे उनमें से एक यह है कि वसंत आरओ वेब अनुप्रयोग में एक समर्पित डीएओ परत बिल्कुल नहीं है, इ

Flex -- C++ connection? -

How do I add a Flex application (Internet site) and C ++ togator? What do I mean (User Story): Frank goes to www.myflexsite.de 2 text boxes and 1 button (label = two numbers added). He inserts 2 in the first text box and 5 in the ohter. Now he clicks on the add button. Backend: We have an add.cpp file where an add method is defined: int add (int a, int b) ... After clicking on the "Add two numbers" button, the add-manager is called in C ++ file and the result will be returned. A warning window is displayed with the result. This is what I want to accomplish, but I do not know how I can make a bridge between these two languages. How can they communicate? The easiest to write a small console is to apply in C ++ and then to the CPI Open it via Apache or any other web server. There are performance problems with it but this is a good start, and then you can proceed just to request Flex from HTTP and let your program parse - for example, You can send the XML b

python - ImportError: Model A references Model B, Model B references Model A -

I think this is more dragon questions than Django. But basically I am doing a model: A: Import ModelB from myproject.modelb.models And on Model B: Import Model A Model from myproject.modela Result: Name of Can not import ModelA Am I refusing to do anything? Thank you A python module is imported from a top to bottom in a new name space. When the module has stopped evaluating A.py until an import module B, module B loads. When module B then imports module A, then it receives partial initial name of module A. - In your case, there is a lack of ModelA class because myproject.modelb .models occurs before the definition of that class. In Django, you can correct it by referencing a model by the name of class object instead. Therefore, instead of saying to your project, import Model A Class ModelB: a = model You will use (without import): class ModelB: a = model Ferrinki ('ModelA')

ajax - Testing Internet connectivity problems such as hangs and timeouts with Javascript -

I have a web app that I provide to small to medium sized businesses as a service. Most support calls are related to speed issues that are caused by problems on my client network. I want to be able to point them to a particular web page which will run an X-minute test where many HTTP requests will be made in Javascript every y seconds, which will then be used for any problems Reporting as long as the normal responses (> 5 seconds) and in the time-end theory, it is not possible to duplicate things like database hits without duplication of the use of the normal web app. Will keep in the vehicle and help in intermittent hanging. My question is two times: Is there a simpler way to determine whether simple HTTP connectivity (beyond ping / trackcrack) Is the client's experience slow to relate to HTTP? Does anybody know about any such kind of thing? I'm not looking for the necessary code; I'm curious whether this is a viable solution to help my clients connect

With Git, how do I commit a load of deleted files in one go? -

I have a load of deleted files that I want to do. But I do not want to type GIT RM for each one. If I type GIT RM see GIT status below, but not updated Update: ("Add GIT" / RM ... "What will be updating ) (Use "GIT checkout - ..." to discard changes in the work directory) deleted: ProjectX / ProjectX / Content / Site .css deleted: ProjectX / ProjectX / Controllers / HomeController.cs deleted: ProjectX / ProjectX / Global.asax deleted: ProjectX / ProjectX / Global.asax.cs deleted: ProjectX ProjectX / Models / HomeIndexView.cs deleted: ProjectX / ProjectX / ProjectX.csproj deleted: ProjectX / ProjectX / Properties / AssemblyInfo.cs deleted: ProjectX / ProjectX / Script / MicrosoftAjax.debug.js deleted : ProjectX / ProjectX / Script / MicrosoftAjax.js Deleted: ProjectX / ProjectX / Script / MicrosoftMvcAjax.debug.js Removed: Project X / Project X / Script / Microsoft MvackEx.JS Deleted: Project X / Project X / Script / microsoftmvc deviation.debug.J D

security - Unexpected PHP file showed up in OSCommerce -

My site was digging through OSX files and found a file in the / image folder that I never remember Would have been before I have not checked the original install package, but I suspect it is not a part of it. The file is 27kb and it is called vidovic_pretty.php. It is encoded or compiled in some way, so the content is viewable (see below) Running displays is a single HTML text box and a button that says, Thank you This is probably a hacker injection - encoded and minimized.You base64_decode (...) < Rather than looking at the results of / code> instead of evaluating it, you can see it and try to perform it. BTW, actually Was running'm probably a big mistake.

http - Why is command line computed base64 string different than curl computed base64 string? -

is actually confused - it seems to be done with a single character placement at the end or possible with the basic digest Padding Therefore, if I execute it, you can see the product of base 64 encode: echo 'host@mail.com: password' | Now, if I request curl: curl-v-yo host@mail.com: https: password: https: // https: // // aG9zdEBtYWlsLmNvbTpwYXNzd29yZA == You will notice that the base 64 strings are not the same..what is it? Base64 command line one is actually wrong - if you change into the option, then it fails. SO - Does basic Python really not use a base64 string? More thoughts? EDIT: So, this was the last new line echo: -n indexed new lines do not output thanks! & gt; & Gt; & Gt; 'AG 9zdEBtYWlsLmNvbTpwYXNzd29yZA =='. Decode ('base64') 'host@mail.com: Password' & gt; & Gt; & Gt; 'AG9zdEBtYWlsLmNvbTpwYXNzd29yZAo ='. Decode ('base64') 'host@mail.com: password \ n' Try echo -n

How can I extract html escape chars/entities as text when scraping web? (ruby & nokogiri) -

I use this code in my ruby ​​+ mechanized (nokogiri) script: On a forum where the headline HTML of the line appears: & lt; A href = "showthread.php? T = 233891" & gt; & Amp; Amp; Lt; / Body & gt; On footer? & Lt; / A & gt; And I get this string & amp; Lt; / Body & gt; Is obtained from xpath; Power on? I use the web browser & lt; / Body & gt; I can see in On the footer, How can I do this for all the HTML participating characters / entities?

sockets - How can I avoid blocking with Java ServerSocket? -

I am working on a socket listener who has to listen to 2 types of data (port 80 and port 81) on 2 ports. I These data are very similar to the type of operation that is done on the data and are just different because they reach different ports. I went ahead and coded an implementation using Java's ServerSet class, only to understand later that the acceptance of the ServerSocket class () method and can not handle my implementation, I now implement it using Java NIO But after going through some tutorials, I feel more confused than how I started. It would be great if a person can walk me through the whole process, even in the phony code or the texts, "what to do next" is what this is what I am planning to achieve. Listen, calling on two similar threads as usual for 2 ports. (Non-blocked) connects a remote device from some network location, sends data and then disconnects. I think that if the NIO can be used to set up a server to listen to the port, port 80 can be achi

sql - "access denied" error in phpmyadmin -

We have decided to transfer one of our websites from one web hosting service to another. Therefore, I supported all the files and moved them to the new host. The problem here is that I can not import the SQL file into the new database on the new host, I get the "login denied" error strange. I am using CPNL version 11. Any ideas? Do you need to change file permissions?

Assigning the result of a JavaScript confirm box to a PHP variable -

// यह php फ़ंक्शन msgbox ($ msg, $ type) में है {if ($ type == " सतर्क ") {// सरल चेतावनी विंडो? & Gt; & Lt; स्क्रिप्ट भाषा = "जावास्क्रिप्ट" & gt; चेतावनी ("& lt ;? echo $ msg;; & gt;"); & Lt; / स्क्रिप्ट & gt; के & lt ;? } Elseif ($ type == "confirm") {// दर्ज करें कोड की पुष्टि करें यहां और उपयोग के लिए $ परिणाम वेरिएबल निर्दिष्ट करें इसमें "ठीक" और "रद्द करें" बटन शामिल होना चाहिए ? & Gt; & Lt; स्क्रिप्ट भाषा = "जावास्क्रिप्ट" & gt; यदि (पुष्टि करें ("& lt ;? echo $ msg;; & gt;")) {& lt ;? $ परिणाम == "ठीक है"; ? & Gt; } और {& lt ;? $ परिणाम == "रद्द करें"; ? & Gt; } & Lt; / script & gt; के & lt ;? }} यदि ($ page_title- & gt; मौजूद है ()) {msgbox ("पृष्ठ मौजूद है, क्या आप हटाना चाहते हैं", "पुष्टि करें"); } यदि ($ परिणाम == "ठीक") // कोड .. समस्या यह है कि $ परिण

GPS on iPhone and Android...is there any way to get the EXACT location of the phone (not approximate)? -

I know that this is mostly "approximate" But, I know the exact location of the phone Should I need the exact location of the phone, whether battery life or whatever! Is this possible? It depends on what you mean exactly! Any location technology will have a level of accuracy and most of it depends on using your hardware. Mill Speak GPS will cost a lot more than chipset in your iPhone and too much power will be used. The best I have been able to use the browser with the iPhone 3GS GPS in the open space + / -17M usually the best way to design it around you. Apply for, for example, turn-by-turn-SAT-eh believes that you should be on the road and have to correct the space for it.

c# - How to load an image, then wait a few seconds, then play a mp3 sound? -

After pressing a button, I would like to show an image (using a picture box), wait a few seconds and then mp3 3 sound, but I do not get it to work. I use the system to wait a few seconds. threading. Thread Sleep (5000) The problem is that the image always appears for waiting time but I want to show it first, then wait, then run MP3 ... I < Code> WaitOnLoad = true but it does not work, should it not load the image first and continue to read the next code line? The code I used here (which does not work): Private Zero Button 1_Click (Object Sender, EventArgs e) {pictureBox1.WaitOnLoad = true ; PictureBox1.Load ("image.jpg"); System.Threading.Thread.Sleep (5000); << Code I also tried to load the image with "LoadSync" and put the code in "LoadCompleted" event to wait and run MP3, but it Then it does not work ... itemprop = "text"> I will use LoadCompleted Event and start a timer with 5 second interval after loading t

SQL result to PHP multidimensional array -

I am retrieving some classified data from an Oracle database using the" Connect by "function. Then I look like a PHP array popup with the result of my question: while ($ row_branches = oci_fetch_array ($ query_tree)) {$ tree [] = '$ String_branches [' id '],' parent '= & gt; $ row_branche [' PARENT '],' data '= & gt; htmlspecialchars ($ row_branches [' name ' ]), 'Level' = & gt; $ row_branches ['level']); } The field ID is the unique id of the field is the parent of the PARENT parent's field area field level is the level of the item in the hierarchy of the item's name. I would rather have a multidimensional array because my goal is to use the PHP function json_decode (). The depth of the hierarchy is never known in advance. So my question is:. How can I populate a multidimensional array with the result of my question Thank you in advance for your answer Try it functi

Why is the + operator for List deprecated in Scala? -

सूची के लिए + ऑपरेटर Scala में पदावनत क्यों है? अच्छा सवाल है, इसलिए मैंने इसे ओडर्स्की एट अल द्वारा पुस्तक में देखा यह निम्नलिखित कहते हैं (उम्मीद है कि यह यहां उद्धृत करने के लिए कॉपीराइट उल्लंघन नहीं है; -)): सूची में क्यों नहीं जोड़ें? कक्षा सूची किसी अपेंड ऑपरेशन की पेशकश नहीं करता है क्योंकि सूची में शामिल होने का समय सूची के आकार के साथ रैखिक रूप से बढ़ता है, जबकि :: निरंतर समय आपके विकल्प यदि आप तत्वों को जोड़कर एक सूची बनाना चाहते हैं तो उन्हें शामिल करना है, फिर जब आप कॉल करते हैं तो रिवर्स ; या ListBuffer का उपयोग करते हैं, एक अस्थायी सूची जो एक अपेंड ऑपरेशन प्रदान करती है, और जब आप toList कॉल कर रहे हैं। < P> जहां तक ​​मैं एफपी को समझता हूं, कम से कम शुद्ध कार्यात्मक भाषाओं में एक सूची में शामिल होने से पहले, जोड़ना अधिक आम है मैं केवल मान सकता हूँ कि स्काला के डिजाइनर ने जावा डेवलपर्स की सुविधा के रूप में + ऑपरेटर को जोड़ा है, जो कि add () का उपयोग करने के लिए उपयोग किया जाता है, और उसके बाद दूसरे विचार थे यह।

spring - JPA Detected reentrant flush -

I have very little problem with the OpenJapa implementation of JPA with Speed ​​2.5. My claim method: @Transactional public user getUserByName (last string name) {return (get) user (getende) createEntityManager () createQuery ("U as user selector where u.name =: name ".) .setParameter (" name ", name) .getSingleResult (); } org.springframework.dao.InvalidDataAccessApiUsageException returns: org.apache.openjpa.persistence.InvalidStateException: Detected reentrant flush. Make sure that your flush-time instance callback management or event listeners do not call any operation, for which a complete flush is required to be completed. org.apache.openjpa.kernel.BrokerImpl.flushSafe (BrokerImpl.java:1904) on org.apache.openjpa.kernel.BrokerImpl.flush (BrokerImpl.java:1679) on org.apache.openjpa.kernel.QueryImpl.isInMemory on org.apache.openjpa.kernel.QueryImpl.execute (QueryImpl.java:779) on org.apache.openjpa.kernel.QueryImpl.execute (QueryImpl.java:838) (Query

CSS/HTML vertical alignment of links in horizontal navigation bar -

निम्न कोड को देखते हुए: HTML: & lt; div id = "nav_bar" & gt ; & LT; ul & gt; & Lt; li & gt; & lt; a href = "#" वर्ग = "चालू" & gt; होम & lt; / a & gt; & lt; / li & gt; & Lt; li & gt; & lt; a href = "#" & gt; गैलरी & lt; / a & gt; & lt; / li & gt; & Lt; li & gt; & lt; a href = "#" & gt; पीना & lt; / a & gt; & lt; / li & gt; & Lt; li & gt; & lt; a href = "#" & gt; खाओ & lt; / a & gt; & lt; / li & gt; & Lt; li & gt; & lt; a href = "#" & gt; LOCATION & lt; / a & gt; & lt; / li & gt; & Lt; li & gt; & lt; a href = "#" & gt; संपर्क & lt; / a & gt; & lt; / li & gt; & Lt; li & gt; & lt; a href = "#" & gt; & lt; img वर्ग = "ध्वज" src = "चित्र / italy_flag.png&qu

cryptography - what is wrong with my ripemd160 python code? -

Whatever I have tried, he has given me incorrect output. I also copied the code and changed it So that they work in dragon and I still get wrong output. If the value is [-1] == 'L': value = hex (value) [2:] if there is a value, is it wrong? import os, math def makehex (value, size = 8) value = value [0: -1] while lane (value) Size: Value = '0' + Value Return Value DEF MacBin (value, size = 32): value = bin (value) [2:] value) & lt; Size: Value = '0' + Value Return Value ROL (Value, N): Return (value 32-n) def little_end (string, base = 16): t = '' if base == 2: s = 8 if the base == 16: s = 2 in the range x (len (string) )) / S): T = String [S * x: s * (x + 1)] + T Return T DF F (x, y, z, round): If round and lieutenant; 16: Returns x ^ Y ^ J Elif 16th lieutenant; = Round & lt; 32: returns (x and y) | (~ X and Z) Elife 32 & Lt; = Round & lt; 48: Returns (x | ~ Y) ^ JL Elife 48th Lieutenant; = Round & lt; 64: Returns (X and Z)

delphi - Programs built on Datasnap -

I did a search on Google for applications written with Datayant and I did not receive much information. What good information have been written in Daytonap 200 9/2010? Using Daytonet 2010 is a viable option compared to comparing other frameworks such as RIM Objeaks, Midware or KBMMD. Cheers AJ I think that Applications written with Datasap will be primarily custom build applications and therefore will not be listed on any public website. At least all the projects I used to work on Datanet used in custom design applications.

Passing String parameter into Javascript -

I am passing string parameters in javascript. But it is not being called. This is my script: function downloadpop (test) {warning (test); } I am calling javascript from my jsp page like this: test = "DSfsdsfd"; & Gt%; & Lt; A href = "javascript: downloadpop (& lt;% = test%>)" & gt; & Lt; / A & gt; How can I solve it? I think you are missing quotation around your string: & lt;% string tests = "DSfsdsfd"; & Gt%; & Lt; A href = "javascript: downloadpop ('<% = test%>')" & gt; & Lt; / A & gt;

wpf controls - Free WPF Carousel Implementation -

I have seen too many carriers to show WPF though I do not need one before. Is there a decent free one? I have one from Dev Express, but I am creating an open source project and will not put code in it, which can not be easily compiled by others. There are many controls in it which are great I'm one of them in this control One of the great ideas methods is one of them. (As a side note, after seeing all of them, I think I like the best of the form and cover flow ideas. They look like a carol, but one is out Many items with the requirement.)

multithreading - C# ParameterizedThreadStart not supported in Visual Studio 2003? -

I am doing a multi-threaded application in C # and some parameters have to pass in a thread. Try to use the ParameterizedThreadStart class so that I can pass a class variable (all the parameters I want to pass). However, the square is not being recognized (in the source code there is a red line below it) and on compilations I have been parameterized to name a "type or namespace" did not get the restart (do not you remember the use director or assembly reference Are you?) ". I am using the following libraries from the framework: Using the system; Using System.Collections; Using the system. threading; Am I doing something wrong? I VS 2003 (7.1.6030) and using the .NET Framework 1.1 Thank you. This parametric thread type is not present before NAT Framework 2.0, but you have a similar target Can pass) and create a simple class and use the good old threadstart representative to do the following: Class Paramahlders {Private Object Data; Public ParamHolder (O

Java packages com and org -

जावा में ओग और कॉम का क्या अर्थ है? के अनुसार, पैकेज को आपके डोमेन नाम के व्युत्क्रम के अनुसार नामित किया जाना चाहिए, और उसके बाद उसके बाद जो भी आपको फिट दिखाई देगा। ज्यादातर कंपनियों या संगठनों में एक .com , या .org डोमेन नाम है, और इसलिए अधिकांश संकुल com। या org से शुरू होते हैं। । से उद्धृत करने के लिए: एक अनूठे पैकेज नाम का उपसर्ग हमेशा सर्व-लोअरकेस एएससीआईआई अक्षरों में लिखा जाता है और शीर्ष-स्तरीय डोमेन नामों में से एक होना चाहिए, वर्तमान में कॉम, एड्यू, जीओवी, आईएसओ मानक 3166, 1 9 81 में विनिर्दिष्ट देशों के रूप में मिलान, नेट, ओर्ग या अंग्रेजी दो-अक्षर कोडों में से एक। पैकेज नाम के बाद के घटक एक संगठन के अपने आंतरिक नामकरण सम्मेलनों के अनुसार अलग-अलग होते हैं। ऐसे सम्मेलनों में यह निर्दिष्ट हो सकता है कि कुछ निर्देशिका नाम घटक विभाजन, विभाग, प्रोजेक्ट, मशीन या लॉगिन नाम हैं। और जो उदाहरण वे देते हैं, यह स्पष्ट रूप से स्पष्ट करें कि आप उपयोग करने के लिए हैं कंपनियां DNS नाम: com.sun.eng com.apple.quicktime.v2 edu.cmu.cs.bovik.cheese आप भी edu।

php - Uploading a file through exec, hanging script -

In essence, I'm using exec () to run WinSCP, which is holding the script to keep the file as long as possible. Uploaded. Is it anyway to do so that the script continues, and the upload takes place in the background? Running PHP 5.3.1 on Win7. "post-text" itemprop = "text"> $ pipe = popan ("/ bin / bash. / Mon_should_script. Sh argument 1", "r"); Works under Linux and Windows. (Do not just close the pipe and do not try to read it) Your PHP script will continue to run, while the process created by Popin runs in the background. When your script file ends or calls to die, then it will wait for the pipe to stop before the second process ends and leave it completely.

Need an ASP.Net eCommerce app that I can make specific changes to (MVC preferred) -

I am planning to set up an online store for a friend, unfortunately, his product line introduces some demands The box solution is not fit, I'm hoping someone has some experience here with an open source package they can recommend. The specific problem is that the number of products is going in hundreds of thousands since the types of products have very clearly defined specifications, search and sorting can be very grainy and efficient, due to this, the primary requirement It is that I change the product and search-related parts of the app, but only in those parts I am hoping that there is an ecommerce solution with the product segment May include database tables, product performance code, could change the search code and shall make clear code to interact with databases. DAS Epnet likes to do something on MVC because it plays well with some extensions, I am considering for the future, but I consider the webform. I should also like to work on hosting GoDaddy, although I am no

php - xajax alternative? -

I really love the simplicity of xajax calls from PHP, although the Xazex project is dead yet ... Is there any good option or is equivalent to xajax which is actively in development? OK, in all my projects, I use code using all javascript, it's a very powerful javascript There is a library in which Dome is the complete armory of manipulation and the AJAX request code is generated in it. In this, jQuery is encoded in PHP so that the jQuery code can be called in php code, and this jQuery code will be included in the page output. But for myself, I like to write all the JavaScript code inside the script tag inside the view file (I use CodeIgniter). has been actively developed, and the latest version (1.4) has been launched a few days ago.

c - priority queue, where to insert? -

Therefore, I'm having trouble implementing the priority queue for the priority queue, I need the first place where it is empty ... where the element goes, we will swap later. But I am troubling to find out the algorithm to find out. Even I have so far: zero pq_inert (struct tnode * p) {struct tnode * curr = NULL; Structure tnode * prev = NULL; Printf ("insert:% c, f% \ n", p-> symbol, p-> freq); If (qhead == NULL) / * qhead is empty * / {qhead = p; / * TODO: Type the code to insert when the queue is empty * /} / * TODO: * / curr = qhead Enter the code to find the correct position to enter; While (curr! = NULL) {// I think it is wrong if ((curr -> left) == NULL) {curr = curr -> right; } And {curr = curr - & gt; Left; }} If (curr == qhead) {/ * TODO: insert code to insert before the start of the current * /} and / * insert between the previous and next * / {/ * TODO: code to insert between Type *}} Yes, you think the code is incorrect: whil

.net - Do we need to install Complete Dotnet framework -

Do we need to install the full donated framework to execute only Net application, we just do not embedded CLR Can be able to execute itself You have two options here are: "Client Framework ", which is a trim-down version of the .Net Framework. There are also certain assemblies in it, and therefore are more limited, but it can be enough. Using a "linking" tool to collect .Net Framework DLLs in your application. While it may work, it will not be used to update is not recommended framework, when installed another version of the .NET Framework, or other applications that are running, use the framework ... In fact, the latest figures, more than 90% of Windows computers already have Net Framework 2.0 and more than 65%. Net Framework 3.5 SP1 means that you should not have any problem planning your app without the framework ...

VMime and odd "commercial" LGPL licensing? -

Greetings, I'm looking for a MIME library, which is available under LGPL. After some googling, I found First of all, they present under the terms of VMEM GPL, which is very clear. Second, they provide VMEM under the "Commercial" license - LGPL. They allow the use of the library under the terms of LGPL, but you to pay "fee" to use the LGGL license You will have to pay "fee" for each project for which you use this library. This made me curious, and I started browsing the FSF site for more information about it, which states: Does GPL want to charge me for downloading programs from my site? Yes you can charge a fee to distribute a copy of the program. If you distribute binaries by downloading, you will have to provide "equal access" to download the source - hence downloading the source can not be higher than the fee for downloading binary. I understand this, but they offer their downloads through SourceForge, so

unicode - How to choose migration path from Delphi 2007 -

For a big application with Delphi 2007, I am working with a team. It uses a large heritage structure to access the data. Both apps and framework use string as strings for strings. I have started modifying the code in the framework to support the Delphi 2009 string, see my previous questions about this. I now see 2 options: Alt 1 - Continue to use the string as before, it is probably the safest solution because the structure After this it will support Unicode. But for this to work, the code should be modified very much in the framework. In this framework, there is a need to understand the internal algorithms in depth. Alt 2 - Change the string around with AnsiString and AnsiChar. This is probably a very simple solution and how I am starting to modify the code (but then I started thinking and asking this question ...) There is no support for Unicode on its negative side. Unicode support is not a requirement as previously worked but it is good. It may also be useful in the futur

sqlite - Implementing SaveAs with NHibernate -

I am working in a project We are developing the Save-As functionality for a desktop desktop application. This user should allow his work to be saved in a separate location (saveAs;) Our project file has a slit DB with our domain objects and continuity is done using NIHbernet, now our SaveAs logic looks like this: Current Copy the project file (DB) to the location. Open a new Nihberbanner session (session 2) Disconnect the existing session (session 1) For the session of the new session, session 1 (NHibernate Use the session. Reconnect ()) Open the new connection This is considered to be a little complicated that I have not got a better connection. So my questions are: How does a SaveAs implement for an open session in Nhibernate?

datetime - Easy to use time-stamps in Python -

I'm working on a journal-type application in Python. The application originally allows entry entries in the user magazine and later adds time-stamp to the journal for inquiries. So far, I use the time.ctime () function to generate time-stamps that are favorable in view, thus journal entries appear in this way : Thursday 21 January 19:59:47 2010 Something happened 21 January 2010 20:01:07 What else was Now, I have some I would like to be able to use these timetables for searching / inquiry. For example, "2010", or "Fab 2010", or "23 February 2010" need to be able to search me. My questions are: 1) What time module should be used: time versus datetime ? 2) What is the proper way to create and use time-stamp objects? Many thanks! Option 1: Do not change anything. Use to parse your timestamp. Option 2: Change to Date Time . You can format the timestamp in the same way, and use it to parse them. It does not matter too much

exception - How to build a PyObjC project on Mac OS X 10.6, that runs 10.5? -

I have a PyObjC project that I created on Mac OS X 10.6 on XCode 3.2 and I'm not able to run at 10.5 . All I am using is the official PoobJesi project template (which opens only a window) to create an empty project. Then I'm building the app and copying it to 10.5. But the app always crashes at 10.5: Application specific information: *** Application for canceling the exception of an exception is' NSINIININNCENCIVENCENTIE EXPRESSION ', CAUSE:' / USERS / HPP / Development / PAHLL World / Manem : 44 Main () See console for errors in PyRun_SimpleFile file '/Users/hupf/Desktop/PyHelloWorld.app/Contents/Resources/main.py'. ' What can I do to run it at 10.5? Why is this path still / user / hupf / development / on my 10.6 machine? Greetings, Hoop PS I have installed Python on my 10.6 machine through the MacPorts ... Is this a problem? I do not know anything about PyObjC, but your project is using Xcode, then All you have to do is set the d

Ruby / Sinatra / HAML flash message problem -

I have the following small synthora applications (I've removed the extra redundant code): Helpers deaf Flash (Args = {} session [: Flash] = Args & DefFlash_on (Args = {}) @ Flash = Args and Fly @ Flash = Sessions [: Flash] || {} Session [: Flash] = Zero End Post '/ Post' Client = Twitter = Customer :: Client (NewJet: Login => 'xxxxxxx', password => 'xxxxxxx') User Name = Param [ User name] type = param [: type] tag = param [: tag] budget = consultation [: budget] if user name =! '' & Amp; Amp; type! = '' & Amp; Amp; Tags! = '' & Amp; Amp; Budget! = '' Message = username '' + tag + 'with skill' + type + 'is looking for budget =' + budget + '# ferilance # job' status = customer.states (: post, message) flash (: Notice = & gt; 'gig posting successfully sent!') And flash (: error = & gt; 'gig posting failed - please check the marked field!) End redire

.net - How to get "raw" facts data from Analysis Services -

We have developed a custom engine for processing large amounts of data in the process. And now we need to integrate SSAS with our system. It is very easy to get meta information and property data of the dimension, but how can I get data without SSAS to calculate the data, i.e. only stored data on the cards? Aggregates and calculations we do ourselves. Selecting data from the SQL database is not a solution because the cube can be attached, filtered when loaded. Clearing of data etc. Example: Let's say we have product dimensions: Products. All Products + Products Bread ++ product. Charg + product. Book and fact tables - sales: | Products | Volume | Bread 1 | | Chair | 3 | I just want to get real data from the cube, not one consolidated: | Products | Volume | | All | 4 | | Book | 0 | Bread 1 | | Chair | 3 | Try drillthrough in SSAS It can display fact-grain data, and is available in Excel as a default task when you double-click on a cell. You can customi

sockets - Network programming in Python -

What library should I use for network programming? Is socket the best, or a high level interface, which is the standard? I need something that will be very cross-platform (ie Linux, Windows, Mac OS X), and be able to connect it to other python programs using only one library. needed. Would you like to send python data between bus nodes (possibly on separate computers)? If you want to see SimpleXMLRPCServer, it is based on an inbuilt HTTP server, which is based on the inbuilt socket server, none of which are around the most industrial power servers, but it is easy to install in a hurry: SimpleXMLRPCServer Server = SimpleXMLRPCServer (("localhost", 9876)) def my_func (A, B): Return A + B server.register_function (my_func) server.serve_forever () and import xmlrpclib S = xmlrpclib.ServerProxy ('http: // localhost: 9876') to connect Easy print Mitigation s.my_func (2,3) & gt; & Gt; & Gt; 5 Print Types (s.my_func (2,3)) & gt; & Gt;

css - What em can do which can't be done by %? -

क्या em कर सकते हैं जो % द्वारा नहीं किया जा सकता है ? प्रत्येक मूल्य का निर्धारण करने का एक अलग तरीका प्रदान करता है, और प्रत्येक के पास कुछ फायदे / नुकसान हैं यह विशेष रूप से विशिष्ट संपत्ति के आधार पर भिन्न होता है। फ़ॉन्ट-साइज़िंग के लिए, इन दोनों को अलग करने के लिए बहुत कुछ है: दोनों अपने माता-पिता के फ़ॉन्ट के सापेक्ष फ़ॉन्ट आकार करेंगे, और दोनों एक ही मान (& lt; संख्या & gt;) तो समान रूप से सटीक होना चाहिए। अन्य गुणों जैसे चौड़ाई के लिए, अंतर बहुत महत्वपूर्ण है प्रतिशत मूल्य प्रभावी रूप से विंडो आकार के अनुसार भिन्न होने की क्षमता प्रदान करते हैं। एम-आधारित मान आपको फ़ॉन्ट आकार के अनुसार आयामों को अलग करने की अनुमति देते हैं। पूर्व आउटपुट उपकरणों की एक श्रृंखला को संभालने के लिए महान है। उत्तरार्द्ध लगातार लाइन लंबाई को बनाए रखने में महान है।

c++ - Inconsistent SDL/OpenGL results? -

I have this small SDL / OpenGL game on which I am working. It runs fantastic, but only on one computer. If I compile it and run it on my desktop, it just pops up an empty screen. If I run it on my netbook, it works just fine and I am able to see what I am trying to render. My question is: What are these inconsistent rendering results? Why is a program going on completely, while the other is suffering? I think that when you use SDL via SDL_Init and API Ask for other resources that you are actually checking that your requests are successful? If not, and if you solve it, then it can explain why you are getting blank screen.

memory - Is there anyway to access a listing of all PHP variables? -

I have created a single registry to include all of my object examples, and when they are no longer in use, So I try to unset the variable. However, I can never search all of the variable in use. It seems that one hundred hundred kb. I always think that can not understand floating around ... I'm not sure this is possible, but do you have internal variable lists in PHP somewhere? This will definitely help to code the code to keep things clean and work faster. I tried to search for xDebug and it was the closest thing to tracking references and more detailed variable information - but it can not guess the value already exists. & lt; Php var_dump (get_defined_vars ()); ? & Gt;

Code translation, from Python to Ruby -

I would like to convert some dragon lines on Ruby to this excellent article signed by Thomas Guest: (Note: I am actually a big python knot) Here is a copy of the original Python version: def expand_blanks (fen): '' 'in the empty space Extend points in a FEN string & gt; & Gt; & Gt; ("RK4q3") 'RQQ' '' DEF Expansion (match): Return '' * Ent (MatchGroup (0)) Reactor Package (R 'D'). Sub (extension, fan) def external junction (sep, ss): '' 'like string, but joins the result with an external separator. Example: & gt; & Gt; & Gt; External_joint ('|', ['1', '2', '3']) '| 1 | 2 | 3 | ' Returns'% s% s% s'% (sep, sep.join (ss), sep) def ascii_draw_chess_position (fen): '' 'Returns an ASCII image of pieces on a chess. '' Fragments = broad_bank (fen) .replace ('/', '') divider = '+ + + + + + + + + + + + + + + \

Date difference in PHP? -

I am trying to compare two dates in PHP and statistics show how many days are there apart? I am receiving a MySQL database on the first date and the second date is the current date. The date in the MySQL database looks like this "2010-01-21 15:21:46" $ date1 = Date ("YMD", $ product ['hold_date']) $ date2 = date ("YMD"); How can I compare these two dates and just return the quantity of days? Edit ------------- ------------------------- ------------------------- ------------------ This works: $ date1 = date (strotom ('2009-12-25 15:21:46')); $ Date2 = time (); $ Sec references = $ date2 - $ date1; $ Day = floor ($ sec difference / 86400); Echo every day; $ sec references = $ date2 - $ date1; This is a second between date 2 and date 1. According to the future, depending on which more recent / future you have to reorder. If you want a positive number then it is definitely. Or you can use it: $ secondsDifferenc

directory - How to use the MATLAB search path -

I have a few questions about the MATLAB search path: existing The directory is on the search path, but why is it not in the production of "path"? Where can I find the complete search path? What are all possible ways to add a search path? Possible methods of adding search path (such as pathdef.m, startup.m, MATLABPATH env variables, etc.), keeping in mind what the sequence of search paths was added is? I think this is important because when files with the same name are present in different search paths, one will be selected at the top. Links to the answers to your questions will be quite useful. To address them more specifically: The contents of the pathdef.m file from the output will appear, in which the following should be included: < / P> Folders provided with MATLAB and other MathWorks products (i.e. toolbox). These folders are located in the root MATLAB folder, which you can use the function. The MATLAB user folder (i.e. My Documen

ImageMagick - Resize image to square -

I have just started working some image magic. I am currently trying to convert an image with a file size that is almost square (1411 x 1486) or the same size in a square shape, such as 1024x1024 Unfortunately the size change function is not doing the size of the canvas So, I get the number 1024x982, I'm thinking that if any type of squire image is converted to a square image using its C ++ library, A anyway. The reason for this is not that I am converting GPS posts into UTM and taking a square shape, but unfortunately due to the curve of the Earth, it usually closes around 400 meters of the square You are ... you think you were thinking. You can add! Like your geometry "1024x1024!" Create a clear geometry for resize or resize method. You may also need to set the aspect flag! It is supposed to be done (I have read that some people are required to do this, although there is no explanation for you on this).

php - how to convert content between two html elements into image? -

I want to convert html content to image, is it possible? & lt; Div class = 'temporary' & gt; & Lt; Img class = 'tt' & gt; & Lt; Div & gt; & Lt; Img class = 'tt1' / & gt; & Lt; / Div & gt; & Lt; / Div & gt; I want to save the entire div (class = 'temp') as an image with my content. You will need some type of HTML render engine, this usually means that WebKit To run some porting and drag it to bitmap. Not in any way trivial In fact, you need more information about what you are actually trying to do (i.e., this is your own HTML or arbitrary web site, it is PHP code by server or via javascript [is not possible]. Do you want to use a thumbnail service, etc.)

php - Where is a good place to host user uploaded images? -

Each user will have at most one image, which will probably be resized as a thumbnail by resizing. I was wondering where would be the best place to store those images on the server or I could get some sort of outside host? Besides, what is some good image hosting website? It depends on how often it will load. At some time at some time, your own server should be exactly the same as on S3 or some service.