Posts

Showing posts from August, 2013

asp.net mvc - Why System.Web.Cache lost cache once in a while? -

I'm using System.Web.Cache for a while for testing purposes. It's a good cache store and makes my webpage much faster. But I do not know that there is some case, in which I run for some more pages, and when I change some more time on that page again, then the page query again (I am checking using a profiler ). Does the RAM or some kind of flash memory cache the system.web.cash which closes the cache at a time when memory is reduced? Or is it my fault somewhere? Is it good to use System.web.cache for production? Good luck with you :) Cache automatically starts deleting items When your system goes low on memory, then the item can be controlled to a certain extent when you put it in the cache. Use the CacheItemPriority enum to specify the priority in the cache. Add () method Yes, it is okay for cache production, whether it is good or not only can you tell for your specific implementation

jquery - Javascript in Virtual Directory unaware of Virtual Directory -

Say I have a virtual virtual directory where I have an Ajax request that is defined In a javascript file using JQuery, $ GetJSON ("/ controller / verb") When it is called, the customer tries to find the URL at the original level If I were to tilde (~ ), It turns into (if it was supposed to be done that I should have done it) Any ideas about fixing this? I used this solution successfully Put the following elements in your master page < / P> & lt;% = Html.Hidden ("HiddenCurrentUrl", Url.Action ("dummy"))% & gt; Announce a global variable in your main JavaScript file var baseUrl = ""; When your Javascript is loaded, set the base URL based on the "Hild Content URL" baseUrl = $ ("# HiddenCurrentUrl "). Val (); BaseUrl = baseUrl.substring (0, baseUrl.indexOf ("dummy")); Use baseUrl $. GetJSON (baseUrl + "verb") Edit Better Solution In your Controlle

iphone - parse string with tags -

I am getting a piece of data from PBX that contains a string with the tag. Something like this: & lt; / Get rid of & gt; 2 & lt; / Raid> & lt; Name & gt; 2101 & lt; Name & gt; PeerList & gt; & Lt; / PeerList & gt; & Lt; Status & gt; UNKNOWN & lt; / Status & gt; cont ... as long as it does not bring all names / users from PBX. What do I have to do to parse this string data by name and amp; Update the status and table where I can add the user to the phonebook in the iPhone. I started with NSScanner but in the end I have messed with it. If anyone has any ideas please help me !!!! You found an XML file, use an XML parser first. What language / OS / environment are you using? The NSScanner Mac looks specific.

ezpublish - Adding form in Ez Publish -

How can I add a custom form to publishing CMS to EZ < Div class = Alternatively, you can setup and embed a Google Docs form, and you can create a text block datatype field in your class (+ can set up raw output. In your visual template) your editors To allow you to create and add your own Google Docs form E.

c++ - Initializing Constant Static Array In Header File -

I just found out that the following is not valid. // header file class test (constant static four array [] = {'1', '2', '3'};} Where is the best place to start it? Thank you in advance; < P> The best place to be in a source file // header file class test {constant static four array [];}; // source file const char test :: array [] = { '1', '2', '3'}; You can initialize the integer type in class declaration like you All other types have to be started outside the class manifesto, and only once.

architecture - What are changes in the application would create a new tier? -

About all its N-Tier architecture I had to use JSON in one page in my web application. That's why I called a tier as a DTO. So my question is right or wrong, what are the changes that will introduce more levels to an application. Presentation / UI layer - Web page markup, styling e.t.c. Business Logic Level (BLL) - 1 or more middle level that includes your application / business rules and functions Data Access Layer (DAL) - level which relates to continuous Use of storage, such as unit structure, LINQ, etc. Persistency Layer - The actual data layer, usually a database. The development-of-development with N is that each layer plays an important role. It depends on the functionality of the underlying levels and does not know anything in the range above it. For example, you can have methods like DAL, Sevusur, Getuusser, etc. The Business Layer knows about these methods, but do not know about their implementation or do not even care about their implementation. Eve

cross platform - Are there any other .Net implementations other than Microsoft's and Mono? -

I know that anyone is curious to know about someone else. Other than Net Framework (any version) A Mono Project by Microsoft I remember reading about a version of Java (at that time .0.0), I remember, but I remember what he was told now. Though interesting ideas though. I have also read in a magazine that mono can be played on YI if you are a registered Wii developer and even the iPhone? Yes, there is at least one. Something in the Free Software Foundation. Known as that which are the NET resources. It has a CLI implementation and they are working on the webservice server. If you are looking for interopering with Java, Java is the implementation of Java platform. For Mono on WII, see this. Regarding running mono on iPhone - look.

CakePHP view variable scope issue -

मेरी राय फ़ाइल में ये पंक्तियाँ हैं //////// //////////////////// $ a = 5; शोमे () शोमे () {वैश्विक $ ए; प्रतिध्वन करें $ a; } ////////////////////////////// समस्या: $ a नहीं है Showme () फ़ंक्शन में पहुंच योग्य। मेरे पास तर्क के रूप में $ a पारित करने का कोई विकल्प नहीं है और दृश्य से फ़ंक्शन को स्थानांतरित करने के लिए कोई विकल्प नहीं है। और यह वैश्विक कीवर्ड के माध्यम से फ़ंक्शन में पहुंच योग्य होना चाहिए। मैं $ a को घोषणा के तरीके को बदल सकता हूं। आप बाद में कथन समाप्त करने के लिए सेमी-कोलन खो रहे हैं: $ a = 5 ; Showme () में बदलें: $ a = 5; मुझे दिखाओ(); आपका कोड ठीक लगता है, यह काम करना चाहिए, निश्चित नहीं, लेकिन अगर आप एक कक्षा में हैं, तो आप इसे आज़मा सकते हैं: $ a = 5 ; $ इस- & gt; ShowMe ();

git - Gitosis installation error -

I'm trying to install gitosis on my server, but I'm getting the error " Not allowed " pseudo-hu-u git jeetosis-init & lt; /tmp/id_rsa.pub with username "abhinav@115.118.212.234.static-delhi.vsnl.net.in" Any fix for this? Update I'm on Mac and I'm trying to install gitosis on Snow Leopard. Update I have changed the username in the public key of Abhinav@vindev.net and it worked. Probably this is a problem with the hyphen sign after I have tried it git clone git@vindev.net: gitosis-admin.git cd gitosis-admin but fails to say fatal: 'gitosis-admin.git': unable to store chdir or git This is the following guide: Is it related to the public key format, As mentioned, (I know that this refers to a window installation and you are on a UNIX server, but this idea is valid) I thought That PuttyGen generated a SSH2 public key file in a slightly different format, and ' ' was initially not a user.

c# - Cached item never expiring -

मेरे पास एक वर्ग है जिसमें निम्न गुण हैं: सार्वजनिक शब्दकोश & lt; स्ट्रिंग, इंट & gt ; टिप्पणी की गई {{string cacheKey = "टिप्पणी की गई" प्राप्त करें; HttpContext c = HttpContext.Current; यदि (सी। कैचे [कैचकी] == नल) {c.cache.indert (कैशकी, नया शब्दकोश & lt; स्ट्रिंग, इंट एण्ड (), रिक्त, डेटटाइम.यूटीसीएनओ। एडसेंकेंड (30), सिस्टम। वेब। कैशिंग। नो स्लिइडिंग एस्पिरेशन, कैश इटैम प्रियरियरी। हाई, रिक्त); C.Trace.Warn ("नई कैश आइटम:" + cacheKey); } वापसी (शब्दकोश & lt; स्ट्रिंग, एट एंड जी;) c.Cache [cacheKey]; } सेट {HttpContext.Current.Cache ["CommentCounts"] = मूल्य; }} ऐसा लगता है कि ट्रेस स्टेटमेंट केवल एक बार चलाता है, और कैश आइटम की समय सीमा समाप्त होने के बाद प्रत्येक 30 सेकंड नहीं। एकमात्र तरीका मैं इसे कैश्ड आइटम को ताज़ा करने के लिए प्राप्त कर सकता हूं एक कोड मौका बनाने और परियोजना को पुनर्निर्माण करना, जो स्पष्ट रूप से आदर्श से कम है। मुझे क्या याद आ रहा है? पहले से धन्यवाद ... संपत्ति का सेट हिस्सा शायद है कारण - क

android - Theme/Style is not applied when inflater used with ApplicationContext -

I have a theme that specifies textColor as text for textView. The problem I am using TextView for using LayoutInflater is that the styles do not apply to TextView when Inflator is created using ApplicationContext - the color is not red Why this happens, and how can it be decided? /res/values/styles.xml: & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Resources & gt; & Lt; Style name = "Myself" & gt; & Lt; Item name = "android: textViewStyle" gt; @ Style / MyTextView & lt; / Item & gt; & Lt; / Style & gt; & Lt; Style name = "MyTextView" parent = "@ android: style / widget.TextView" & gt; & Lt; Item name = "android: textcolor" & gt; # F00 & lt; / Item & gt; & Lt; / Style & gt; & Lt; / Resources & gt; Android: label = "@ string / app_name" Android: Android Manifest. XML: Android: Theme = "@ S

c++ - VC++ project never up-to-date -

I am using Visual Studio 2008. I have a solution with two projects, one creates a DLL, which is my "production code", creates another console app XAE, which is my unit test suite. For my unit test project, I have listed the linker input, the names of source modules from DLL. I.e., I have DLLMain.cpp in the DLL project, and a linker input is in the "DLLMain" exe project. This allows XE to connect to obj files created by the Dell Project, which helps in preventing the re-accumulation of those modules for unit tests. (Many times save time.) The problem is that OEB is made later than OBJE, and by a separate project, its timestamp is always newer than OBJE . So when you try to debug or try to debug, it always says that the XE project has been outdated and it needs to be rebuilt. Is there any way that I can configure the ext project to ignore the timeline? Or else, maybe more general, the solution I'm not looking at here? It seems that you are creatin

actionscript 3 - Flash 10 3D making text blur -

I got a sprite that I am rotating with rotation xx; RotationY It converts the clip to 3D Object. Which makes the texts blurred in it. When I am rotating this clip in rotation X = 0 and rotation Y = 0, then I am setting this up: this.transformation.matrix3D = null; Which makes the texts crisp But, when I am adding another clip to this sprite, it has z = 400 (or a z). The texts will not be crisp, the second clip in my phantom which has been rotated, still seems to be 3D, I set it: this.transformation.matrix3d ​​= null; I also have the rotation 0, when to remove the child on the clip with Z = 400. And also tried to set Matrix 3D = blank on that clip. But it does not help any person have any idea how to get rid of the "rid" of the clip with z = 400? Or do I have to transfer this clip from the clip to life, which I am moving (other things will have to mess)? As far as I thought your question was discussed in this post of Keith Peters, you Maybe you want to see it be

Filemaker repeating fields and ODBC -

So I am transferring an old filemaker database to MySQL and some repetitive fields are causing me some problems. It is read that the ODBC standard supports those areas, only when their type is "text" and each recurrence is added to a certain extent () However, I can not reproduce it. First of all I am getting it repetitive If I export the database in .csv format, then the field is correctly inserted, so I'm not completely trapped, but if possible I I want to be able to achieve the same result thanks to the ODBC connection! With JDBC and Filemaker 12 I can get the repeating area using bracket because It was beginning with the table index 1. It should be similar to the ODBC. Of course I recommend generalization but it can be helpful to know that there are other options.

Synonym for "Class" in java language not in English language? -

Whenever we talk about things, we have examples, methods: function: behavior, member variables: state, Like so many interchangeable words But for "class" so far I have not seen those people who use any other word. So there is another word in Java that can be used (or in use) (which does not tell any English equivalents) which I can use. While explaining my code. Edit: Do not invent it to see this question, it should be in use, which I do not know The concept of class belongs to 'universal' and all the logic (urgency / especially contradiction / universal) element comes from Aristotle (derived from plato) philosophy. The OOF is taking concepts from Palestine. The question for me is very relevant here. Here is a link from Wikipedia, and if you read it, then you can understand the relationship between Aristotle's philosophy and OOP. Aristotle disagrees with Plato on this point, and arguing that all universals are immediately Aristotle argued that there

python : mysql : Return 0 when no rows found -

तालिका संरचना - डेटा 5 मिनट के लिए मौजूद है स्लॉट्स - data_point | बिंदु_डेट 12 | 00:00 14 | 00:05 23 | 00:10 10 | 00:15 43 | 00:25 10 | 00:40 जब मैं क्वेरी के लिए 30 मिनट कहता हूं और यदि डेटा मौजूद है तो मुझे 6 पंक्तियां मिलेंगी (प्रत्येक 5 मिनट की स्टैम्प के लिए एक पंक्ति)। साधारण प्रश्न - select_note_there_to_table से, जहां point_date & gt; = start_date और point_date & lt; Dot_date द्वारा आदेश के लिए अब जब मेरे पास एक विशेष समय स्लॉट के लिए प्रविष्टि नहीं है (उदाहरण के लिए समय का स्थान 00:20 है लापता), मैं "डेटा_पॉइंट" को 0 REPLACE , IF , IFNULL मैंने सोचा था कि एक डिफ़ॉल्ट मान के साथ संघ काम करेगा, लेकिन यह असफल हो गया है या शायद मैंने इसका इस्तेमाल नहीं किया है नोट: पायथन 2.6 & amp; amp; Mysql संस्करण 5.1 जी हाँ, आप केवल एसक्यूएल का उपयोग करते हुए ऐसा कर सकते हैं एक समाधान एक संग्रहित रूटीन का उपयोग करने के लिए होगा। संभाल संग्रहित प्रक्रिया निम्न आउटपुट का उत्पादन करती है: प्रारंभ करें cnt 00:05:00 1 00:10:0

A good HTML object model in Java? -

I am looking for an HTML object model in Java, which is capable of parsing HTML (not required) and All HTML elements and CSS also) in a brilliant object model I am looking for the pure Java version of Groovy's HTML Builder. (I have no luck with this request on Google.) I want to work as stuff: html html = new HTML (); Body body = html.body (); Table Table Body Adytile (Mike's Style); Line line = table.ADRO ("a", "b", "c"). With CSS (cssRowStyle); and so on ... Is what you want to do

SQL Server 2005 Connectivity problem from .NET -

I am unable to connect to .NET from SQL Server 2005. I'm getting the error "A network-related or example-specific error occurred when installing a connection to the SQL server. The server was not found or was not accessible. Verify that the name of the instance is correct and to configure SQL Server Remote Connection is configured for. (Provider: Named Pipes Provider, Error: 40 - Can not open connection to SQL Server) ". The strange thing is, I'm able to connect through a management studio using the same credentials (SQL Server Authentication). My connection string is: server = server name; User ID = xxx; Password = xxx I am using the 2005 Native Client. Besides, I just realized that the management studio can not connect using the designated pipes, only TCP / IP. Which protocol does ADO.NET ask to use? SQL Server 2005 can not allow inbound pipe connections. It can be configured separately for the old SQL Server Protocol and the 2005 + Native Client.

entity framework - Get just Count values from EF -

I have a table table, I need a way that returns a person by ID, number of cars, Number of houses, etc. Do I have to load this table together? I see that SEL generated by EF is a monster. Ex: get public people () {reference context. People include ("car"). "Houses"). Where (x => x.Id = 1). first (); } My view used: name: & lt;% = people.Name% & gt; Cars: & lt;% = people.Cars.Count% & gt; Houses: & lt;% = People. House.Count% & gt; you can do var results = (In PTX with PEs, where people select PIID == 1 new {person = P, cars = p.seres.count (), house = p.house.count ()}) first orphalt (); That will just bring back what matters.

reporting services - SSRS error handling -

Is the SSRS a way to report its logs? I would like SSRS to report membership errors in a database, is there any way to do this? Thank you SSRS already reports your subscription status to the report server On the server that your SSRS example is running. You can run the following queries on your report server and it will show you the last run status of the subscription. I send a report to the report server database that sends to different people in order to make them subscribe to the report that exists on the report server, in conjunction with an SSIS package this query is used select use ReportServer CatalogParent.Name ParentName, name --Folder Catalog.Name ReportName, --Actual rpt name ReportCreatedByUsers.UserName ReportCreatedByUserName, --first Catalog. Deployed by CreationDate ReportCreationDate, but --deployed ReportModifiedByUsers.UserName Repo RtModifiedByUserName, Recent revisions by catalog. ModifiedDate ReportModifiedDate, CountExecution.CountStart TotalExecu

sql server - How to get cumulative sum -

@t तालिका घोषित करें (id int, SomeNumt int) @t select 1,10 union select 2 में डालें, 12 संघ का चयन 3,3 संघ चुनें 4,15 संघ चुनें 5,23 चुनें @ से चुनें ऊपर दिए गए मुझे रिटर्न देता है। आईडी कुछ नं 1 10 2 12 3 3 4 15 5 23 मैं निम्नलिखित कैसे प्राप्त करूं id srome cumsrome 1 10 10 2 12 22 3 3 25 4 15 40 5 23 63 चुनें t1.id, t1 कुछ नॉट, एसयूएम (टी 2। कुछ न्यूमेट) टी 1 एआईटी से जुड़ते हैं, टी 1 एआईडी पर टीटीआई पर टी 1.आईडी & gt; = टी 2.आईड ग्रुप टी 1.आईडी, टी 1 द्वारा। टीओ.आईडी द्वारा क्रमबद्ध कुछ ऑर्डरः आउटपुट | आईडी | SOMENUMT | SUM | ----------------------- | 1 | 10 | 10 | | 2 | 12 | 22 | | 3 | 3 | 25 | | 4 | 15 | 40 | | 5 | 23 | 63 | संपादित करें: यह एक सामान्यीकृत समाधान है जो कि अधिकांश डीबी प्लेटफॉर्म पर काम करेगा। जब आपके विशिष्ट प्लेटफॉर्म (उदाहरण के गैरेथ के) के लिए बेहतर समाधान उपलब्ध होता है, तो इसका उपयोग करें!

ruby - When and where do I require files in a rails application? -

Assume that I have the following file in my lib directory of my Rail application: # Lib / proxy.rb module SomeService class ServiceProxy def do_something end end end If I want to use ServiceProxy in a model, I can use it like this: < / P> # app / model / product. Rb is known as 'Proxy' category product & lt; ActiveRecord :: Base Def do_something proxy = SomeService :: ServiceProxy.new Proxy.Do_Last End End This works, but I think if I want to use serviceproxy in any other model I do not need it, then I do not need it. "Proxy Required" in the second model file "It appears that" in any model 'a proxy is required' it will add to the lookup path Update: Based on Floyd's answer below, And my service process file was saved as such, # lib / some_service / service_proxy.rb Then I need to explicitly file There is a useful post about this problem. In short, the Rail Autoloads Classes only follow the appropriate namin

c# - Post/Redirect/Get Pattern in ASP.NET MVC -

What is the best practice to implement post / redirect / gate pattern in ASP.NET MVC? Specifically, when you want to redirect the initial action / controller back then what is the best way to do this Display the form for the user < Ul> In the form, and % = Html.Hidden ("returnUrl")%> to use In action, ViewData ["ReturnUrl"] = Request.Url; User submits form via post returnUrl model binding, if not < Code> null . Otherwise, redirect to the homepage. This work has been done, but it seems that it will result in much more repetition. I also realized that I might have to Request.UrlReferrer ... , what is to do, is this the ideal way to accomplish this? The way you are doing it is fine, but it seems that you have a bit of it Can overhauling. Does your post action take posts from more than one form? If not, why bother with the hidden field? You can get away from a simple Redirection Tiection ("Mayation"

Javascript browser Bookmarklet -

I have the following Javascript bookmarket that opens a new popup window that has a Facebook post page with it. javascript: var d = document, f = 'http: //www.facebook.com/share',l=d.location,e=encodeURIComponent,p='.php? Src = BM & amp; V = 4 & amp; I = 1261526047 & amp; U = '+ E (LHRF) +' & amp; T = '+ (D. Tetal); 1; Try {if (! / ^ (. *.. Phase (Photography) () () () () () R '+ p,' sharer ',' toolbar = 0, status = 0, resizable = 1, Width = 626, height = 436 ')) l.href = f + p}; If (/Firefox/.test(navigator) .userAgent)) setTimeout (a, 0); Else {a ()} zero (0) I just add that code to the URL of the shortcut link in my browser and opens the Facebook post page and the URL and something on that page It gives information that I am on it. I need to do a very simple job, I need to get the URL of the page that I have and either open a new tab or even use the tabs and Then open a link like this http: // mydomain com /

Issue between Office 2010 and Visual Studio 2008 in ASP.NET? -

There is really no programming question in the technical sense, but it is affecting my development and yet I am hoping that any person coming here may have to face. And before this problem was resolved. I have recently been a bold and office 2010 beta on my PC, and I have found that whenever I am editing an ASPX file, sometimes right away, sometimes something Minutes after In my research I came to this post: It seems that there is a dependency between the office and the visual studio. Is anyone here successfully running with Office 2010 64-bit Visual Studio 2008? I'm on Windows 7 64-bit. Josh Edit: I have confirmed that the Setup.exe file referenced in that post is actually VS. This is actually an undoubtedly one of the Office 2007 suits. I had transferred that directory, and (i.e.) the process has not been generated, but VS is hanging on the project "loading cache". I think I'm getting closer. Hope it helps:

file extension - What is the significance of a source folder/directory with a .tproj suffix? -

स्रोत कोड / निर्देशिका का .propro प्रत्यय के साथ क्या महत्व है? .propro ट्रिनिटी प्रोजेक्ट फ़ाइल है। ट्रिनिटी को अब ग्राफ इंजन कहा जाता है। आप को स्थापित करने के बाद उन्हें विजुअल स्टूडियो में खोल सकते हैं।

C#: Sorting with anonymous function -

Let's say I have a list of objects, and I want to sort it according to the date dated property. Why can not one use a representative? How do I sort them by date dated if not as shown below: Sort public stringDated (list & gt; CartItem & gt; items) {items.Sort (new function & quot; Cart item, Cart item, Bold & gt; ((itemA, Item B) = & gt; {Return Item A.Detted; Item BaidDate;});); } Why not use lambda expressions? public string sorted by date (list & gt; item); items (. (A, b) = & gt; a.DateModified.CompareTo (b.DateModified)); }

c++ - How to show a MFC dialog without stealing focus on the other window -

I have a dialog shown with ShowWindow (hWnd, SW_SHOWNOACTIVATE); But this does not work, the new dialog is still stealing the focus, why is it? Here are some code snippets from my program, the MFC communication class associated with QueryWindow dialog is: Query window window; //window.DoModal (); Window.Create (QueryWindow :: iodine disorder); Window.ShowWindow (SW_SHOWNOACTIVATE); There are a few ways to leave the dialog by focus: Create OnInitDialog () to return the zero value to you Example: BOOL Query Window :: OnInitDialog () {CDialog :: OnInitDialog (); return false; This is the best and most accurate solution. Add Style WS_EX_NOACTIVATE In your dialog, you can edit the dialog resource properties or change it to runtime: BOOL QueryWindow :: PreCreateWindow ( CREATESTRUCT and CS) {cs.dwExStyle | = WS_EX_NOACTIVATE; Return CDialog :: PreCreateWindow (CS); Side effects: You can use control over your window, but it will appear that it was not active.

performance - Is there any benefit to update new version of jquery library on each release to my site? -

Is there any benefit to updating the new version of the jquery library on every release on my site? Do my other added jquery codes and plugins stop working on the new library? Depending on what you actually use it and the nature of each release release notes Carefully read and do a comprehensive test before deploying. Here are some reasons I will upgrade: Performance benefits New features that I find useful Some people might say, "If it does not break, do not fix it". However, the more you use to upgrade the version, the harder it is, the next time there is a new release. Compatibility with existing plugins is a major concern. Plugin owners can give updates about comaptibility, whatever testing, testing and testing.

visual c++ - linker errors with openssl on VS 2008 -

I have installed openssl 0.9.8l and added and VS Library path for directories (I did this before installing bootl libraries) but I continue to get the linker errors Anyway I can solve the same thus Error 1 error LNK2019 errors are: .. Unsolved exotic symbol _BN_free _main RSA.obj RSA error 2 error referenced in LNK2019 function: Unsolved external symbol _BN_bn2dec _main RSA.obj RSA error 3 error referenced in LNK2019 function: Unsolved external symbol _main RSA.obj RSA error 4 error referenced in LNK2019 function _BN_num_bits : Unsolved external symbol _BN_generate_prime _main RSA.obj RSA error 5 error referenced in LNK2019 function: Unsolved external symbol _main RSA.obj RSA error 6 serious error in the LNK1120 function The following is the text "itemprop =" followed by: _BN_new: 5 unsolved external C: \ Visual Studio 2008 \ Projects \ RSA \ debug \ RSA.exe RSA You also need to specify the name of the library as" additional dependency ". In the p

eclipse pdt - Anyway to get Aptana PHP back with Aptana 1.5.1? -

I accidentally uninstalled Aptana PHP because I did not know that PDT would like to suck too much ... it is not acceptable to me Theme color files for PHP's docs I know that this is not a relevant question for this community, but I did not know where and where to go. Please help. Thank you. Knowledge Base: Download Aptana Studio 1.5.1 and Aptana PHP < / Html>

How to import Blender 3D animation to iPhone OpenGL ES? -

I'm trying to do an animation on iPhone using OpenGL ES. I am able to do animation in Blender 3D software. I can export from Blender as a .obj file for OpenGL and it works on iPhone. But I can not export my animation work from Blender 3D to OpenGL. Can anyone help me solve this? If you have a look, then you get the Blender script which produces 3D models in the C header file I am also the one to improve on the above script. After you run the script, it is as simple as adding the header to your source and missing the corner array through your drawing function. Ideally you want a method of loading arbitrary model files on the runtime, but the simplest to implement this method is to prototype As you already have to import the model Looking at a method (obj) can not be applied above. However, the advantage of using Blender Script is that you can modify the script according to your own needs, perhaps even exporting bone information or modelframeframe.

screen scraping - Is there a library similar to lxml or nokogiri for Java? -

I want to scrap some screens, using the ideal CSS selectors and not XPath. Is there a library in Ruby or Python? There are dozens of screen scraping libraries in Java. To quote just a few: - A SAX-compliant parser written in Java, instead of parsing well-formed or valid XML, the form of HTML Parsed as it is found in the wild: dirty and cruel, though often far away. TagsSupup is designed for those who have processed this stuff using some visualization of rational app design. By providing a secs interface, this allows standard XML implementations to be applied on the worst HTML. - Jericho HTML Parser is a simple but powerful Java library that analyzes and manipulates parts of the HTML document. Some common server-side tags, while verbatically redesigning any unfamiliar or invalid HTML, also provides high-level HTML form manipulation functions. T is neither an event, nor a tree based parser, but rather a combination of simple text search, efficient tag recognition and a tag

php - Array of all subjects -

Let me first introduce two arrays to all the other subjects and all the degrees that are read in all universities (all over the world) But a big problem is that I do not know how many subjects and how many degrees are. (In the whole world) I just want two arrame that I already made the remaining logic. All topics should be like array list. $ theme [0] = & gt; 'Computer science', $ theme [1] = & gt; 'Math', $ theme [2] = & gt; 'Engineering', $ theme [3] = & gt; $ degree [0] = & gt; BS ', $ Degrees [1] = & gt; 'Ms', $ deg [2] = & gt; 'Ba', $ deg [3] = & gt; "MA", ... Keep in mind that ** I do not know how many subjects and how many degrees. (In the whole world) .. ** I just used these two categories in two different arrays; Everything .... Can anyone help me? Thank you. Your problem appears to be double-fold; The issue of catching data, and the issue of storing it

Does PHP 5.3.1 add a slash ("\") by default? -

जब मैं लिखता हूँ इनपुट डेटा : hel'l "लो प्रिंट_आर ($ _ POST) डिस्प्ले हैल्डेड \" लो और जब मैं का उपयोग करता हूं (get_magic_quotes_gpc ()) {mysql_real_escape_string ($ _ POST); प्रदर्शन हेल \\\ '\\\ "lo क्योंकि PHP स्वचालित रूप से स्लैश जोड़ता है, क्या mysql_real_escape_string ? नहीं उपयोग करना आवश्यक है , संस्करण 5.3 से बाद में, डिफ़ॉल्ट रूप से कोई स्लैश नहीं जोड़ा जाएगा। यह भी ध्यान रखें कि addslashes mysql_real_escape_string के लिए प्रतिस्थापन नहीं है; आप पढ़ सकते हैं इसके बारे में अधिक।

javascript - Autocomplete with jquery and codeigniter php MVC -

मैं साइट से jquery प्लगइन स्वत: पूर्ण का उपयोग कर एक स्वत: पूर्ण बनाने का प्रयास कर रहा हूं। अब मैंने दस्तावेज़ तैयार कार्य के एक हिस्से के रूप में वेबसाइट में पूर्व लोड किए गए स्थानीय परिणामों का उपयोग करके स्वत: पूर्ण हासिल करने में कामयाबी हासिल की है, इसे स्थानीय स्तर पर करना आसान है। , Php फ़ाइल से परिणामों को खींच रहा है यहां मैंने यह कैसे किया है: $ ("#post_tags")। Autocomplete ("http: // localhost / tags / filter", {width: 260, selectFirst: गलत, हाइलाइट: गलत रिटर्न: फ़ंक्शन (पंक्ति, स्थिति, कुल, लौटाया गया) {वापसी की पंक्ति [0] [return row] [return row] [return row] [return row] [return row [0];}, formatResult: function (row, position, totalReturned) ]। (/ (& Lt;। +? & Gt;) / gi, '');}}) परिणाम (फ़ंक्शन (इवेंट, डेटा, फ़ॉर्मेट किया हुआ) {$ ("& lt; li & gt;")। Html (! डेटा ? "कोई मैच नहीं!": "चयनित:" + फ़ॉर्मेट किया गया) .appendTo ("# परिणाम");}); जब मैं मैन्युअल रूप से http: // loc

c - Does reading from stdin flush stdout? -

stdout is a line-buffer when connecting to a terminal, but I remember reading somewhere (at least stdin) automatic Flush standout all the implementations I have used have done this, but I can not get it now in the standard. It seems that it works like that, otherwise code like this: printf ("Type some input:"); Fgets (line, line of shape, stdin); will need an additional Fflush (stdout); Is there a need for a stand out here to be flavored here? Edit: As many answers have said, in the standard no embarrassment seems to be in my example The output is read from Stdin before stdout, but on the other hand, this effect is given in the standard (my free draft copy): Input and output dynamics of interactive devices 7.1 9 Must be as specified. The intent of these requirements is to ensure that the signal that appears when the message appears to be actually appearing before any program that is waiting for input, without clutter or line-buffer output will appear

html - How to make separating lines/borders in a table disappear with CSS? -

I have a simple HTML table, and I want to separate the lines (/ ranges?), The desired final result is such a The table is invisible except for the actual text. I tried to set the "border" attribute to 0, it did not help. What is the correct CSS attribute I should use? table, tr, td, th {border: 0; }

c++ - Linker errors even though I prevent them with #ifndef -

I suggest the linker errors that I'm not using #ifndef and #define. 1> Tijielloderkobije error Elanke 2005: "Structure TGA TGA" (? Tga @@ 3UTGA @@ A) already went defined Mukykobije 1> Tijielloderkobije : error Elanke 2005: "structure Tiajiacdder Taghader" (? Tgaheader @@ error LNK2005: "unsigned char * defined uTGAcompare" (uTGAcompare @@ 3PAEA) already main.obj 1> TGALoader.obj: error LNK2005: "unsigned 3UTGAHeader @@ a) already 1> TGALoader.obj defined main.obj four * cTGAcompare" (? cTGAcompare @@ 3PAEA) are already Fixed in main.obj 1> Link: Warning LNK4098: defaultlib 'LIBCMTD' conflict with the use of other libs; Use / NODEFAULTLIB: library I have a header file Texture.h and tga.h from Nehe OpenGL tutorials in your project. I have #ifndef TGAISCOOL #define TGAISCOOL #endif in my tga.h file. If I include it more than once, then I get errors from the linker that I had stuck up earlier than the two t

php - Facebook stream.publish and outdated template bundles? -

I have not tried to mess with the Facebook PHP API for months. Since the template bundle is apparently ending now, how can I publish a story in my users' news feed for my friends? I have already requested permissions. Edit: This issue does not arise from the requested permissions for the user when they are provided. So far let me know this P> $ appapikey = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; $ Asrace = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; $ Facebook = new Facebook ($ APK, APRICAN $); $ Fb_user = $ facebook- & gt; Need_login (); {$ Facebook- & gt; API_client- & gt; Feed_publish user action (); } Hold (exception $ E) {} Edit: I've seen many times through Facebook "API documentation", it's not clear for me yet, I can not tell What do they dislike in the tutorial, do they link 2-3 years of tutorials! If there is a problem reloading your IFrame application and trying to use it $ facebook-> Need_frame () Have yo

Understanding functions and pointers in C -

This is a very simple question, but what does the following function prototype mean? int square (int y, size_t * x) What size does _T * mean? I know size_t is a data type (int> = 0) but how do I attach it? Is this an indicator on the memory space for x? Normally I am having problems with this stuff, and if someone can provide easy reference, I would appreciate it. Thanks everyone, I understand what an indicator is, but I think it is a difficult time to understand the relationship between pointers and functions. When I define a function prototype as int sq (int x, int y) , then it is very clear to me what is going on. However, when I see something like int sq (int x, int * y) I can not do - for my life - understand what the second parameter really means. At some level, I understand that it means "pass an indicator" but I can not understand enough things to manipulate it on my own. How about tutorials? However in this case, the pointer is probably used t

java - Random ID Generator, mapping vs. same-column -

There are some institutions that we want to hide our exact ID from customers - the main reason is that we do not Wish that customers know how many of them are in DB. By example URL, it says that it is 27th user. Therefore, I am implementing a solution that provides random ID (which should be unique). In other words, instead of using the unique sequence number, going for a unique non-sequence + is the number solution random For example from URL, which is actually the 27th user. My question is here, knowing that some users here may experience this kind of problem, do I use the map or the primary ID of the Random ID column? For example, if the table does not exist then the 'test' (`id 'int (10) is not unsigned, tap autoncriment,' some else 'varchar (255) null, primary key (` id` ) ID '(' ID` int (10) unsigned non-zero, / * foreign key to test the table * / `parent` integer (11) null, primary key (` id`) when creating the table. , Key `parent` (` p

iphone - UIView not responding to touches after 'removeFromSuperview' -

In my app representative, I am creating a tab controller with a group of view controllers for it and then a separate UIViewController I Show the top-most view as long as the user does not take a certain action. I am initially covering my tab controller with another controller, but in the end, the second controller is rejected through 'removeFromSuperview', however, after this, the tab controller view Will not respond to any tap or any UI interaction. My app is not hanging because I can see that the processing is happening. Is there a way to become a tab controller D-Facto Response after watching the most? Here's how I get started both the Visual Controller: Navigation controller is a tab bar UITabBarController * tabBarController = [[UITabBarController alloc ] Init]; TabBarController.viewControllers = [NSArray arrayWithObjects: Controller 1, Controller 2, Controller 3, Zero]; // Add tab bar to view [Window Adsview: Tab Bark Controller See]; // Creating a second n

serialization - Is it possible to automatically serialize a C++ object? -

क्या सी / ++ के लिए जावा / एनईटी सीरियलाइजेशन के समान कुछ है? बूस्ट में शामिल हैं I मैंने खुद का इस्तेमाल नहीं किया है, लेकिन आमतौर पर बढ़ावा देने वाली लाइब्रेरी काफी अच्छी तरह से काम करती हैं।

php - How to make a post to wordpress using the api? -

How can I create a post on a user's blog after giving me his login information using the WordPress API? What method do I need to use, should be the permutators, etc.? The sample code would be great. I would like to use XML-RPC api, but others will also be acceptable. Yes, you can metaWeblog.newPost or blogger.newPost < / Code>, an example of the first: uses curl and xmlrpc_encode_request Another example: < P> yes and @ french is correct

Loading an object from a db4o database -

I am developing an e-commerce website which uses DB4O as backend. Everything was just fine last week when I had a problem that I could not solve. The codes below are quite straightforward. I open a database file, save the object and then try to retrieve it. Although I did not get anything back, the "user" variable is counting zero. Public class program {Private Static String _ Connection String = String Format (@ "C: \ AARRRD DB4O"); Fixed zero main (string [] args) {TestUser container = new test user () {id = 1, name = "mohammad", alias = "rafiq"}; Db4oFactory.Configure (). Diagnostic (). AddListener (New DiagnosticsToken ()); (Using var dbc = db4oFactory.OpenFile (_connectionString)) {dbc.Store (container); } IiLIT & lt; Testusor & gt; User = null; (Var dbc = db4oFactory.OpenFile (_connectionString)) using {user = dbc.Query & lt; TestUser & gt; (X => x.id == 1) .toList (); } If (users.Count> 0) {Console.WriteLine (&

debugging - jquery .replaceWith() not playing nice with .clone() in IE7 -

I am using jQuery to create a linked TOC in a dialog box. To do this, I used to type the function I found in all the h4 page and to link them to id s Adds some numerical performance information Clone them The clone changes to li s In anchor tag Anchor adds a click function on anchor to close a dialogue function title s and Href links to the original h4 s Adds li s to However, li s> in IE 7 , cloned h4 s to li S not working in Firefox works in IE7, there is something like this in Firefox, such as .replaceWith () appears to be ignored ... why? It looks like: In action: < P> I really can not understand why people love so many cloning ...) I will do something like this $ ('# content h4' ). (Function (index) {index = index; 1; $ (this) .attr ('id', 'tutorial_' + index). First (function () {return '& quot; div class = "how_to" & Gt; How & lt; Div & gt; &

objective c - Justifying UIVIews on the iPhone: Algorithm Help -

I am moving in a way to align a collection of UIView subclasses within one view. I'm having a problem with the algorithm and was hoping someone can help me solve my errors. Here's a pseudocode where I am: // 1 See that How many items are int count = [item count]; // 2 shows how much white space has been omitted in the sarcastic view floatspace = [width]; [item total with]; // To apply additional left margin for items through 3 items, see [1] through objects [calculation -1] float margin = whites / (count-1); // 4 Understand the size of each sub container, if it is equally divided float sub-containerwidth = [width]] / calculation; // Apply the 5 margins, start with the second item for (ii = 1; i & lt; [Count of items]; i ++) {UIView * item = [Item ObjectExtends: i]; [Item setlift margin: (margin + i * sub-containerwidth]]; } Items do not appear evenly here. not even close. Where am i going Here is a shot of this algorithm in verb: EDIT: The code above is the co

Python Syntax Error but looks fine to me. Help? -

Now I am working on a Tetris game (sorta, I got an example of Tetris for Python on a website, we Copying it, but adding some of your things), and just finished writing all the codes, but there are some syntax errors. I am able to fix them all, but this final syntax error is misleading me. def piece drop (self): for category i (4): x = self.curX + self.curPiece.x (i) y = self.curY - self.curPiece.y (I) itself .setShapeAt (x, y, self.curPiece.shape) self.removeFullLines () The specific syntax is on the last line of the error function and I do not understand Is that why, indentation and whitestas all look correct. So can someone tell that this is a syntax error? You have not closed the bracket of self.setShapeAt .

Can I use private APIs for an iPhone Enterprise application? -

I'm looking at developing an enterprise iPhone app because it will be owned and not stored in the app store Am I Free to Use Private API? I'm pretty sure the answer is yes, you can do whatever you like. Keep in mind that private APIs are more likely to break with iPhone OS updates.

dynamic - Calculate width dynamically (jQuery) -

एचटीएमएल: & lt; div class = "parent" & gt; & Lt; div वर्ग = "एक" & gt; & lt; / div & gt; & Lt; div वर्ग = "दो" & gt; & lt; / div & gt; & Lt; div वर्ग = "तीन" & gt; & lt; / div & gt; & Lt; / div & gt; jQuery पैरेंटवड्थ = $ ("माता-पिता")। बाह्यवादि (सच); एक चौथाई = $ ("अभिभावक। एक")। बाह्यवास्तव (सच); दोविंड = $ ("माता-पिता। दो")। बाह्यवास्तव (सच); $ ('माता-पिता। तीन') चौड़ाई (पैरेंटवड्थ - एकविड्थ - दोविंड); लेकिन यह बात है, या तो div। एक या। दो कुछ समय मौजूद नहीं हो सकते, मैं इसके लिए jQuery को कैसे संशोधित कर सकता हूं? धन्यवाद आप इसकी लंबाई प्रॉपर्टी को चेक करके मौजूद तत्व की जांच कर सकते हैं: parentWidth = $ ( "। जनक") outerWidth (सही)। OneWidth = $ ("माता पिता। एक")। लंबाई? $ ("माता-पिता। एक")। बाहरी वाइड (सच): 0; दोविंड = $ ("माता-पिता। दो")। लंबाई? $ ("माता-पिता। दो")

PHP Read CSV and filter by date -

मेरे पास निम्न सीएसवी है दिनांक, घटना, विवरण 24/01/2010, फुटबॉल, सभी वर्षों के लिए फुटबॉल अभ्यास। 24/01/2010, क्रिकेट, सभी वर्षों के लिए क्रिकेट प्रैक्टिस। दिनांक, घटना और विवरण हेडर हैं, जिन्हें मैं फ़िल्टर करना चाहता हूं। मुझे आज की तारीख हो रही है और फिर मैं सीएसवी को पढ़ना चाहता हूं और उस ईवेंट से मेल खाता है जो आज की तारीख से मेल खाता है। मैं भी टॉमराओ घटनाओं को भी प्राप्त करना चाहता हूं। जैसा कि ऊपर उल्लेख किया गया है आप fgetcsv () । यहां बताया गया है कि आप इसे कैसे कर सकते हैं (untested): & lt;? Php if (($ handle = fopen ("test.csv", "r")) == FALSE) {$ आज = स्ट्रटोटाइम ("आज"); $ कल = स्ट्रोटोमेट ("कल"); जबकि (($ डेटा = fgetcsv ($ संभाल, 1000, ","))! == गलत () (यदि (स्ट्रेटोटेम ($ डेटा [0]) == $ आज

JavaScript: What is the equivalent of PHP's "$this->$somefunc()"? -

Is it possible to store the name of the function as a string in JS, and open it from the object, much like PHP Is the code down? $ this-> $ SomeFunc (); this [someFunc] ();

I'm trying to implement factorial in an xml language -

I am trying to implement factual in XML language. & lt; Phase ID = "FAC" & gt; & Lt; Alias ​​name = "p" value = "= {$ n} * {$ p}" / & gt; & Lt; Alias ​​name = "n" value = "= {$ n} -1" /> & Lt; Operation Name = "Decision" & gt; & Lt; When testing = "'{$ n}'> '0'" phase = "FAC" /> & Lt; / Operation & gt; & Lt; / Step & gt; & Lt; Alias ​​name = "p" value = "1" /> & Lt; Alias ​​name = "n" value = "4" /> & Lt; Operation name = "call" value = "FAC" /> My code works, but I think this is a little word. How does this language compare to other XML languages? Particularly variable, selection, loops and suburban phone calling

JQUERY - ensuring only one div ID of a particular class shows when user clicks its corresponding image and the rest are set to hide -

I have 10 images in a flash hindojal that are set to trigger jquery commands through an XML document i.e.: & lt; Photo image = "picture / 01.jpg" url = "javascript: toggleDetail1 ()" target = "_self" & gt; & Lt; Photo Image = "Picture / 02.jpg" url = "javascript: toggleDetail2 ()" target = "_self" & gt; Etc. ... When a user clicks on an image, I want to make sure that only the corresponding divide of that particular image is shown and another 9 is hidden. i 'we have given all 10 divisions in the class of "toggletime" and each device has its own ID ("extension1", "description2", etc.). Now I need to write my junkies and lose a bit. So far it has been found at this point that when I click on an image in the carousel, I want to show it. But I do not know exactly what to do about getting another device in the 'toggletime' category to hide at that point. &

c# - Software stack for convention based ASP.NET MVC development -

In addition to the clear conferences of ASP.NET MVC, what are the minimum boot stupaping, mapping objects, and library access to data access? like this? I want to develop domain argument to spend more energy in the form of protests to deal with the details of object persistence (for example). I used Structured Map and NHibernate for great effect. Whether there are other tools or other libraries, I should consider that to facilitate the further process? You can write your core of the project to be used: < Li> NHibernate - Data Access Structured Map - IoC, Bootstrapping ... Just like you want or use just one:

Python - Rpy2 - Can't import a bunch of packages -

I have just started using rpy2 with Python. I have set it up and able to do basic things, like the right plot function from within Python. I have used imported calls, which I have done: import rpy2 import rpy2.robjects I can work with the robbers I want to do it. However, if I want to use things like ggplot2, then I'm unable to get the related import to work. After the steps, I try: rpy2.robjects.packages from the importer but I get an error message that someone The module is not called "packages." I am not really sure why this is happening, because I am able to import other things from Robbie, such as rpy2.robjects.numpy2ri I am hoping that this is a clear problem that has been dealt with by other people. is! I did some googling and tried to roam the env variable with $ PYTHONPATH but I do not think this is a problem. You can do general library () from command robitzs.r Rpy2 Load a library in 2.0.x: rpy2.robjects r r.library ("lattice")

ruby on rails - How can I determine whether a controller action has rendered (rather than redirected?) -

क्या किया गया? विधि एक कोड नियंत्रक में true देता है मैं कैसे निर्धारित कर सकता हूँ कि क्या अनुप्रयोग प्रदान किया गया है (रीडायरेक्ट की बजाय)? , मैं @performed_render को देख सकता हूं, लेकिन यह हैकी लगता है। संपादित करें: मुझे ऐसा क्यों करना है? मैं एक नियंत्रक कार्रवाई के आउटपुट को कैश करने का प्रयास कर रहा हूं केवल उस मामले में यह एक रेंडर में परिणाम (और एक रीडायरेक्ट नहीं)। यहाँ कोड है जो मैं अब उपयोग कर रहा हूं: (पर आधारित) def render_with_cache (options = {}) = ([request.request_uri, request.format] | (options.delete (: Key_additions) || []))। ("::") body = rails.cache.read (key) में जोड़ें अगर शरीर रेंडर: text = & gt; शरीर और उपज अगर ब्लॉक_जीवन? जब तक प्रदर्शन रेंडर नहीं? यदि @performed_render Rails.cache.write (कुंजी, response.body, विकल्प) #: expires_in अंत अंत समाप्ति @performed_render को देखो। :) आप क्यों आपको यह पता लगाने की आवश्यकता नहीं है, इसलिए मैं वैकल्पिक समाधान का सुझाव देने में असमर्थ हूं।

rails lazy load of model attributes -

But I would like to go through any other way: Always select only "id" and automatically load the properties later when necessary. Example: user.description should be accessed, if it has not been loaded yet, select "WHOE id = # {self.id}" from users and set it . Does anyone know if there is a rail plug-in which does this? Or how to implement it? Thanks, Corin I wrote a rail plug-in that actually did it Note that to make a bigger model for better columns, which you want to load on demand with large columns (since rail load related objects are dormant by default).

php - Any preg_match to check if a url is a youtube/vimeo/dailymotion video link? -

URL / YouTube / Video / Dailymotion video link, what is the best preg_match syntax to know? If this is difficult, then just check the domain name. Thank you I preg_match () I do not use it, I think maybe a better option, you can pass a URL string in it, and it will break it for you in all subcomputations. I do not know what you think of specific video URLs for those sites, I'm sure you can come up with some identification criteria for each identifier, which you can call parse_url () with the results. For example, here's what the breakdown of YouTube link can look like: $ res = parse_url ("http://www.youtube.com/watch?v=Sv5iEK -IEzw "); Print_r ($ race); / * Output: Array ([scheme] = & gt; http [host] => www.youtube.com [path] => [clock] => v = S55iEK-IEzw) * / You can probably identify it on the host name and the path in this case.

C++ Expected class-name before '{' token. Inheritance -

I'm googling and reading about this and have not yet come up with an answer, maybe someone can help me this. I want my UserPile class to be able to access data members and classroom member functions from my cardpiece class. I am mentioning an error in the title. Can anyone explain what is happening? The legacy tutorial I have seen looks like my code, except for me, which has many source code files. // CardPile.h #include & lt; Iostream & gt; #include & lt; String & gt; # Include & lt; Vector & gt; using namespace std; Class card; Class cardpile {secure: vector & lt; Cards & gt; Pile; // card card []; Int size pile; Public: CardPil (); Insert zero card (card); Card Access Card (Int); Zero display file (); Zero alteration (); // Start the heap zero Start (deck); // Create Deck of Card Deal (CardPyle & CardPil & amp ;;); Zero absence (); Bull Check Fraci (); Zero discard (cardpelle); Zero Draw Card (CardPil & amp; nbsp;); }; // user

image - How do I fix "java.lang.OutOfMemoryError at sun.misc.Unsafe.allocateMemory(Native Method)"? -

I am a Java application that uses the library to load images. However, on some computers, I get this error when the program is trying to run: formula exception "main" java.lang.OutOfMemoryError on sun.misc.Unsafe.allocateMemory (Native resident method). Init & gt; (DirectByteBuffer.java:99) Org on java.nio.DirectByteBuffer organization on java.nio.ByteBuffer.allocateDirect (ByteBuffer.java:288) org.lwjgl.BufferUtils.createByteBuffer (BufferUtils.java:60) & lt. newdawn.slick.opengl.CompositeImageData.loadImage (CompositeImageData Java: 43) I VM options: -Djava.library.path = lib -Xms1024M -Xmx1024M -XX: PermSize = 256M -XX: MaxPermSize = 256M the program some large images in the beginning (1024 x 768 resolution) loads. Any help to solve this problem would be greatly appreciated. Op = "text"> Just indicates that the JVM has gone out of memory The first line of the stacktrace is actually relevant here it just happens as "not" by

php - accepting user uploads best practices! -

I am trying to add a multi page form, with the Zand framework in php, where the user is someone on my site You can list items on the first page, enter details about those items (which are then stored in the session), page 2 they can upload images, and then page three, they can verify the listing. Are there. If they confirm, the listings are added. What is the best way to allow users to upload images? I am going to use either SWFUpload or Uploadify, but I should add images directly to the database and if so, under list id? I am creating list id until the user does not confirm. So what is the best practice? Do I place them in a Temple folder in the name of the session? Address in the database under the temporary name + session or what? Edit: Sorry, maybe I did not express myself very clearly. I do not see a way to upload files. What I am asking is that before I knew I'm sure the user is going to confirm the listing, before they will have the best store. Should I store them in

datetime - Is there a function in c# which returns date&time when given GMT values(-12 to -1 and 1 to 12)? -

Is there a function in C # that gives the GMT values ​​(-12 to -1 and 1 to 12) and Gives time? Edit: I have a dropdownlistbox that contains all GMT pricing. Now I want to display the date and time of a selected GMT value. Am .. .. GMT is Greenwich Mean Time, is not it? Or better known as UTC? I think that you are talking about UTC offset In other words, the offset has been given by GMT, what is the time of that place ? I think this is date time. Specify the quad (datetime .Utcano + new timepace (offsethors, 0,0), datetimecund. Local time); Except for , this is not really true, because the "type" of that time will be local, which means where the computer is now which you really want It is a date timbered with a specific timezone. Also see the TzTimeZone class which is included in the Public Domain project on Codex. The system. As timezones are included in .NET 2.0, no time zone object allows an application to instantiate the timezone's short

In Emacs, how can I jump between functions in the current file? -

I want to move the function quickly in my AMACS buffer. I want to run some functions and ask me for the name of the function, completed for each function defined in the current buffer. I usually use ATAGs to navigate around, but sometimes there is a framework method that is overridden in many files. In these cases, I can find that file Which I want but then I want to jump fast in the function there. There is a similar facility in Textamat, where you can choose a definition from the list on the lower right of the editor. Just to jump around the function in the existing file? Use It is the easiest and lightest of all the options listed so far and it is possible that what you want. This is also built in Imax and there is a minimal setup problem in it, there are graphical and text interfaces, anything better than extra and you will be better off using one of the other excellent tips here.

sql - Oracle analytic function window defined by data -

I have a table that represents the line-by-line dump of data read from a particular text file format . Each row represents a "master" or "description" line, which is represented by the rec_type code. I would like to write a query that has the "Master" line with related extension rows. I have come up with something that works, but it looks a bit hackish and is interested in better way, if any. table mdtest (make rec_seq number main key, VARCHAR2 (3 rec_type) null, rick_data varchar2 (100) not tap); INSERT (1, '100', 'Bill Jones') in MDTest Value; INSERT in MDTest value (2, '200', '20080115, 100.25'); Include MDTest value (3, '100', 'John Smith'); INSERT (4, '200', '200 9 70180.95') in MDTest Value; INSERT in MDTest value (5, '200', '20091231,110.35'); desired results: SEQ_EMP EMP_NAME SEQ_DATA EMP_DATA ======= ========== ===== === =============== 1 bill Jones 2 20